content
stringlengths 1
1.04M
| input_ids
sequencelengths 1
786k
| ratio_char_token
float64 0.38
14.2
| token_count
int64 1
786k
|
---|---|---|---|
import numpy as np
from uwb.generator import BlobGenerator
from uwb.map import NoiseMapNormal
def test_generate_normal_noise_map():
bg = BlobGenerator(
grid_dims=[2, 4, 6],
step_size=10,
measurements_per_location=100,
modal_range=(1, 5),
deviation=1.0,
)
noise_map = NoiseMapNormal(generator=bg)
noise_map.gen()
assert noise_map.means.shape == (2, 4, 6, 3)
assert noise_map.covs.shape == (2, 4, 6, 3, 3)
def test_conditioned_prob():
bg = BlobGenerator(
grid_dims=[2, 4, 6],
step_size=10,
measurements_per_location=100,
modal_range=(1, 5),
deviation=1.0,
)
noise_map = NoiseMapNormal(generator=bg)
noise_map.gen()
prob = noise_map.conditioned_probability(
np.array([[1.0, 1.0, 1.0]]), np.array([[12.0, 13.0, 14.0]])
)
assert prob.shape == (1,)
prob = noise_map.conditioned_probability(
np.array([[1.0, 1.0, 1.0], [2.0, 2.0, 2.0]]),
np.array([[12.0, 13.0, 14.0], [20.0, 20.0, 21.0]]),
)
assert prob.shape == (2,)
def test_samples_from():
bg = BlobGenerator(
grid_dims=[2, 4, 6],
step_size=10,
measurements_per_location=100,
modal_range=(1, 5),
deviation=1.0,
)
noise_map = NoiseMapNormal(generator=bg)
noise_map.gen()
samples = noise_map.sample_from(np.array([[1.0, 1.0, 1.0]]))
assert samples.shape == (1, 3)
samples = noise_map.sample_from(np.array([[1.0, 1.0, 1.0], [20.0, 20.0, 20.0]]))
assert samples.shape == (2, 3)
| [
11748,
299,
32152,
355,
45941,
198,
198,
6738,
334,
39346,
13,
8612,
1352,
1330,
1086,
672,
8645,
1352,
198,
6738,
334,
39346,
13,
8899,
1330,
30964,
13912,
26447,
628,
198,
4299,
1332,
62,
8612,
378,
62,
11265,
62,
3919,
786,
62,
8899,
33529,
198,
220,
220,
220,
275,
70,
796,
1086,
672,
8645,
1352,
7,
198,
220,
220,
220,
220,
220,
220,
220,
10706,
62,
67,
12078,
41888,
17,
11,
604,
11,
718,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
2239,
62,
7857,
28,
940,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13871,
62,
525,
62,
24886,
28,
3064,
11,
198,
220,
220,
220,
220,
220,
220,
220,
953,
282,
62,
9521,
16193,
16,
11,
642,
828,
198,
220,
220,
220,
220,
220,
220,
220,
28833,
28,
16,
13,
15,
11,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
7838,
62,
8899,
796,
30964,
13912,
26447,
7,
8612,
1352,
28,
35904,
8,
198,
220,
220,
220,
7838,
62,
8899,
13,
5235,
3419,
198,
220,
220,
220,
6818,
7838,
62,
8899,
13,
1326,
504,
13,
43358,
6624,
357,
17,
11,
604,
11,
718,
11,
513,
8,
198,
220,
220,
220,
6818,
7838,
62,
8899,
13,
66,
709,
82,
13,
43358,
6624,
357,
17,
11,
604,
11,
718,
11,
513,
11,
513,
8,
628,
198,
4299,
1332,
62,
31448,
276,
62,
1676,
65,
33529,
198,
220,
220,
220,
275,
70,
796,
1086,
672,
8645,
1352,
7,
198,
220,
220,
220,
220,
220,
220,
220,
10706,
62,
67,
12078,
41888,
17,
11,
604,
11,
718,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
2239,
62,
7857,
28,
940,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13871,
62,
525,
62,
24886,
28,
3064,
11,
198,
220,
220,
220,
220,
220,
220,
220,
953,
282,
62,
9521,
16193,
16,
11,
642,
828,
198,
220,
220,
220,
220,
220,
220,
220,
28833,
28,
16,
13,
15,
11,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
7838,
62,
8899,
796,
30964,
13912,
26447,
7,
8612,
1352,
28,
35904,
8,
198,
220,
220,
220,
7838,
62,
8899,
13,
5235,
3419,
628,
220,
220,
220,
1861,
796,
7838,
62,
8899,
13,
31448,
276,
62,
1676,
65,
1799,
7,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
58,
16,
13,
15,
11,
352,
13,
15,
11,
352,
13,
15,
11907,
828,
45941,
13,
18747,
26933,
58,
1065,
13,
15,
11,
1511,
13,
15,
11,
1478,
13,
15,
11907,
8,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
6818,
1861,
13,
43358,
6624,
357,
16,
35751,
198,
220,
220,
220,
1861,
796,
7838,
62,
8899,
13,
31448,
276,
62,
1676,
65,
1799,
7,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
58,
16,
13,
15,
11,
352,
13,
15,
11,
352,
13,
15,
4357,
685,
17,
13,
15,
11,
362,
13,
15,
11,
362,
13,
15,
11907,
828,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
58,
1065,
13,
15,
11,
1511,
13,
15,
11,
1478,
13,
15,
4357,
685,
1238,
13,
15,
11,
1160,
13,
15,
11,
2310,
13,
15,
11907,
828,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
6818,
1861,
13,
43358,
6624,
357,
17,
35751,
628,
198,
4299,
1332,
62,
82,
12629,
62,
6738,
33529,
198,
220,
220,
220,
275,
70,
796,
1086,
672,
8645,
1352,
7,
198,
220,
220,
220,
220,
220,
220,
220,
10706,
62,
67,
12078,
41888,
17,
11,
604,
11,
718,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
2239,
62,
7857,
28,
940,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13871,
62,
525,
62,
24886,
28,
3064,
11,
198,
220,
220,
220,
220,
220,
220,
220,
953,
282,
62,
9521,
16193,
16,
11,
642,
828,
198,
220,
220,
220,
220,
220,
220,
220,
28833,
28,
16,
13,
15,
11,
198,
220,
220,
220,
1267,
628,
220,
220,
220,
7838,
62,
8899,
796,
30964,
13912,
26447,
7,
8612,
1352,
28,
35904,
8,
198,
220,
220,
220,
7838,
62,
8899,
13,
5235,
3419,
628,
220,
220,
220,
8405,
796,
7838,
62,
8899,
13,
39873,
62,
6738,
7,
37659,
13,
18747,
26933,
58,
16,
13,
15,
11,
352,
13,
15,
11,
352,
13,
15,
11907,
4008,
198,
220,
220,
220,
6818,
8405,
13,
43358,
6624,
357,
16,
11,
513,
8,
628,
220,
220,
220,
8405,
796,
7838,
62,
8899,
13,
39873,
62,
6738,
7,
37659,
13,
18747,
26933,
58,
16,
13,
15,
11,
352,
13,
15,
11,
352,
13,
15,
4357,
685,
1238,
13,
15,
11,
1160,
13,
15,
11,
1160,
13,
15,
11907,
4008,
198,
220,
220,
220,
6818,
8405,
13,
43358,
6624,
357,
17,
11,
513,
8,
198
] | 2.011524 | 781 |
import sklearn
from classifiers.classification_model import ClassificationModel
class DecisionTree(ClassificationModel):
def __init__(self, training_samples, test_samples, training_labels, test_labels):
super().__init__(training_samples, test_samples, training_labels, test_labels)
self.initializer = sklearn.tree.DecisionTreeClassifier
self.name = "decision-tree"
| [
11748,
1341,
35720,
201,
198,
201,
198,
6738,
1398,
13350,
13,
4871,
2649,
62,
19849,
1330,
40984,
17633,
201,
198,
201,
198,
201,
198,
4871,
26423,
27660,
7,
9487,
2649,
17633,
2599,
201,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
3047,
62,
82,
12629,
11,
1332,
62,
82,
12629,
11,
3047,
62,
23912,
1424,
11,
1332,
62,
23912,
1424,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
34409,
62,
82,
12629,
11,
1332,
62,
82,
12629,
11,
3047,
62,
23912,
1424,
11,
1332,
62,
23912,
1424,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
36733,
7509,
796,
1341,
35720,
13,
21048,
13,
10707,
1166,
27660,
9487,
7483,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
366,
12501,
1166,
12,
21048,
1,
201,
198
] | 2.819444 | 144 |
"""A helper for running inference callable multiple times, and ensemble the
predictions with a simple majority vote.
"""
from typing import Callable
from collections import Counter
def majority_vote_ensemble(eval_func: Callable, num_runs: int):
"""
Args:
eval_func: call without argument to get a prediction or
a list of predictions.
num_runs: how many times to run the eval_func to get the predictions
Returns:
a prediction or a list of predictions after majority vote.
"""
if num_runs == 1:
return eval_func()
def _vote(prediction_list):
results = list()
for i in range(len(prediction_list[0])):
votes = Counter([pred[i] for pred in prediction_list])
results.append(votes.most_common(1)[0][0])
return results
all_predictions = [eval_func() for _ in range(num_runs)]
if not isinstance(all_predictions[0][0], list):
# eval func gives single prediction
return _vote(all_predictions)
else:
# eval func gives a list of predictions
results = list()
for i in range(len(all_predictions[0])):
results.append(_vote([pred_list[i]
for pred_list in all_predictions]))
return results
| [
37811,
32,
31904,
329,
2491,
32278,
869,
540,
3294,
1661,
11,
290,
34549,
262,
198,
28764,
9278,
351,
257,
2829,
3741,
3015,
13,
198,
37811,
198,
198,
6738,
19720,
1330,
4889,
540,
198,
6738,
17268,
1330,
15034,
628,
198,
4299,
3741,
62,
27257,
62,
1072,
11306,
7,
18206,
62,
20786,
25,
4889,
540,
11,
997,
62,
48381,
25,
493,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5418,
62,
20786,
25,
869,
1231,
4578,
284,
651,
257,
17724,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
1351,
286,
16277,
13,
198,
220,
220,
220,
220,
220,
220,
220,
997,
62,
48381,
25,
703,
867,
1661,
284,
1057,
262,
5418,
62,
20786,
284,
651,
262,
16277,
198,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
257,
17724,
393,
257,
1351,
286,
16277,
706,
3741,
3015,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
997,
62,
48381,
6624,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5418,
62,
20786,
3419,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
4808,
27257,
7,
28764,
2867,
62,
4868,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2482,
796,
1351,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
28764,
2867,
62,
4868,
58,
15,
12962,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5690,
796,
15034,
26933,
28764,
58,
72,
60,
329,
2747,
287,
17724,
62,
4868,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2482,
13,
33295,
7,
29307,
13,
1712,
62,
11321,
7,
16,
38381,
15,
7131,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2482,
198,
220,
220,
220,
220,
198,
220,
220,
220,
477,
62,
28764,
9278,
796,
685,
18206,
62,
20786,
3419,
329,
4808,
287,
2837,
7,
22510,
62,
48381,
15437,
198,
220,
220,
220,
611,
407,
318,
39098,
7,
439,
62,
28764,
9278,
58,
15,
7131,
15,
4357,
1351,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5418,
25439,
3607,
2060,
17724,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4808,
27257,
7,
439,
62,
28764,
9278,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5418,
25439,
3607,
257,
1351,
286,
16277,
198,
220,
220,
220,
220,
220,
220,
220,
2482,
796,
1351,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
439,
62,
28764,
9278,
58,
15,
12962,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2482,
13,
33295,
28264,
27257,
26933,
28764,
62,
4868,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2747,
62,
4868,
287,
477,
62,
28764,
9278,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2482,
198
] | 2.503831 | 522 |
import logging
import os
import shutil
import subprocess
import psutil
from patroni.postgresql import Postgresql
logger = logging.getLogger(__name__)
class _PostgresqlUpgrade(Postgresql):
_INCOMPATIBLE_EXTENSIONS = ('amcheck_next',)
def adjust_shared_preload_libraries(self, version):
from spilo_commons import adjust_extensions
shared_preload_libraries = self.config.get('parameters').get('shared_preload_libraries')
self._old_config_values['shared_preload_libraries'] = shared_preload_libraries
if shared_preload_libraries:
self.config.get('parameters')['shared_preload_libraries'] =\
adjust_extensions(shared_preload_libraries, version)
def no_bg_mon(self):
shared_preload_libraries = self.config.get('parameters').get('shared_preload_libraries')
if shared_preload_libraries:
tmp = filter(lambda a: a != "bg_mon", map(lambda a: a.strip(), shared_preload_libraries.split(",")))
self.config.get('parameters')['shared_preload_libraries'] = ",".join(tmp)
def restore_shared_preload_libraries(self):
if getattr(self, '_old_shared_preload_libraries'):
self.config.get('parameters')['shared_preload_libraries'] = self._old_shared_preload_libraries
return True
def start_old_cluster(self, config, version):
self.set_bin_dir(version)
version = float(version)
config[config['method']]['command'] = 'true'
if version < 9.5: # 9.4 and older don't have recovery_target_action
action = config[config['method']].get('recovery_target_action')
config[config['method']]['pause_at_recovery_target'] = str(action == 'pause').lower()
# make sure we don't archive wals from the old version
self._old_config_values = {'archive_mode': self.config.get('parameters').get('archive_mode')}
self.config.get('parameters')['archive_mode'] = 'off'
# and don't load shared_preload_libraries which don't exist in the old version
self.adjust_shared_preload_libraries(version)
return self.bootstrap.bootstrap(config)
def get_cluster_version(self):
with open(self._version_file) as f:
return f.read().strip()
def set_bin_dir(self, version):
from spilo_commons import get_bin_dir
self._old_bin_dir = self._bin_dir
self._bin_dir = get_bin_dir(version)
def _get_all_databases(self):
return [d[0] for d in self.query('SELECT datname FROM pg_catalog.pg_database WHERE datallowconn')]
def drop_possibly_incompatible_extensions(self):
from patroni.postgresql.connection import get_connection_cursor
logger.info('Dropping extensions from the cluster which could be incompatible')
conn_kwargs = self.local_conn_kwargs
for d in self._get_all_databases():
conn_kwargs['database'] = d
with get_connection_cursor(**conn_kwargs) as cur:
for ext in self._INCOMPATIBLE_EXTENSIONS:
logger.info('Executing "DROP EXTENSION IF EXISTS %s" in the database="%s"', ext, d)
cur.execute("DROP EXTENSION IF EXISTS {0}".format(ext))
def drop_possibly_incompatible_objects(self):
from patroni.postgresql.connection import get_connection_cursor
logger.info('Dropping objects from the cluster which could be incompatible')
conn_kwargs = self.local_conn_kwargs
for d in self._get_all_databases():
conn_kwargs['database'] = d
with get_connection_cursor(**conn_kwargs) as cur:
logger.info('Executing "DROP FUNCTION metric_helpers.pg_stat_statements" in the database="%s"', d)
cur.execute("DROP FUNCTION IF EXISTS metric_helpers.pg_stat_statements(boolean) CASCADE")
for ext in ('pg_stat_kcache', 'pg_stat_statements') + self._INCOMPATIBLE_EXTENSIONS:
logger.info('Executing "DROP EXTENSION IF EXISTS %s" in the database="%s"', ext, d)
cur.execute("DROP EXTENSION IF EXISTS {0}".format(ext))
if d[0] == 'postgres':
logger.info('Executing "DROP TABLE postgres_log CASCADE" in the database=postgres')
cur.execute('DROP TABLE IF EXISTS public.postgres_log CASCADE')
cur.execute("SELECT oid::regclass FROM pg_catalog.pg_class WHERE relpersistence = 'u'")
for unlogged in cur.fetchall():
logger.info('Truncating unlogged table %s', unlogged[0])
try:
cur.execute('TRUNCATE {0}'.format(unlogged[0]))
except Exception as e:
logger.error('Failed: %r', e)
def update_extensions(self):
from patroni.postgresql.connection import get_connection_cursor
conn_kwargs = self.local_conn_kwargs
for d in self._get_all_databases():
conn_kwargs['database'] = d
with get_connection_cursor(**conn_kwargs) as cur:
cur.execute('SELECT quote_ident(extname) FROM pg_catalog.pg_extension')
for extname in cur.fetchall():
query = 'ALTER EXTENSION {0} UPDATE'.format(extname[0])
logger.info("Executing '%s' in the database=%s", query, d)
try:
cur.execute(query)
except Exception as e:
logger.error('Failed: %r', e)
def cleanup_new_pgdata(self):
if getattr(self, '_new_data_dir', None):
self.remove_new_data(self._new_data_dir)
def cleanup_old_pgdata(self):
if os.path.exists(self._old_data_dir):
logger.info('Removing %s', self._old_data_dir)
shutil.rmtree(self._old_data_dir)
return True
def switch_pgdata(self):
self._old_data_dir = self._data_dir + '_old'
self.cleanup_old_pgdata()
os.rename(self._data_dir, self._old_data_dir)
if getattr(self, '_new_data_dir', None):
os.rename(self._new_data_dir, self._data_dir)
self.configure_server_parameters()
return True
def switch_back_pgdata(self):
if os.path.exists(self._data_dir):
self._new_data_dir = self._data_dir + '_new'
self.cleanup_new_pgdata()
os.rename(self._data_dir, self._new_data_dir)
os.rename(self._old_data_dir, self._data_dir)
def pg_upgrade(self, check=False):
upgrade_dir = self._data_dir + '_upgrade'
if os.path.exists(upgrade_dir) and os.path.isdir(upgrade_dir):
shutil.rmtree(upgrade_dir)
os.makedirs(upgrade_dir)
old_cwd = os.getcwd()
os.chdir(upgrade_dir)
pg_upgrade_args = ['-k', '-j', str(psutil.cpu_count()),
'-b', self._old_bin_dir, '-B', self._bin_dir,
'-d', self._data_dir, '-D', self._new_data_dir,
'-O', "-c timescaledb.restoring='on'"]
if 'username' in self.config.superuser:
pg_upgrade_args += ['-U', self.config.superuser['username']]
if check:
pg_upgrade_args += ['--check']
else:
self.config.write_postgresql_conf()
logger.info('Executing pg_upgrade%s', (' --check' if check else ''))
if subprocess.call([self.pgcommand('pg_upgrade')] + pg_upgrade_args) == 0:
os.chdir(old_cwd)
shutil.rmtree(upgrade_dir)
return True
def prepare_new_pgdata(self, version):
from spilo_commons import append_extentions
locale = self.query('SHOW lc_collate').fetchone()[0]
encoding = self.query('SHOW server_encoding').fetchone()[0]
initdb_config = [{'locale': locale}, {'encoding': encoding}]
if self.query("SELECT current_setting('data_checksums')::bool").fetchone()[0]:
initdb_config.append('data-checksums')
logger.info('initdb config: %s', initdb_config)
self._new_data_dir = os.path.abspath(self._data_dir)
self._old_data_dir = self._new_data_dir + '_old'
self._data_dir = self._new_data_dir + '_new'
self.remove_new_data(self._data_dir)
old_postgresql_conf = self.config._postgresql_conf
self.config._postgresql_conf = os.path.join(self._data_dir, 'postgresql.conf')
old_version_file = self._version_file
self._version_file = os.path.join(self._data_dir, 'PG_VERSION')
self.set_bin_dir(version)
# shared_preload_libraries for the old cluster, cleaned from incompatible/missing libs
old_shared_preload_libraries = self.config.get('parameters').get('shared_preload_libraries')
# restore original values of archive_mode and shared_preload_libraries
if getattr(self, '_old_config_values', None):
for name, value in self._old_config_values.items():
if value is None:
self.config.get('parameters').pop(name)
else:
self.config.get('parameters')[name] = value
# for the new version we maybe need to add some libs to the shared_preload_libraries
shared_preload_libraries = self.config.get('parameters').get('shared_preload_libraries')
if shared_preload_libraries:
self._old_shared_preload_libraries = self.config.get('parameters')['shared_preload_libraries'] =\
append_extentions(shared_preload_libraries, float(version))
self.no_bg_mon()
if not self.bootstrap._initdb(initdb_config):
return False
self.bootstrap._running_custom_bootstrap = False
# Copy old configs. XXX: some parameters might be incompatible!
for f in os.listdir(self._new_data_dir):
if f.startswith('postgresql.') or f.startswith('pg_hba.conf') or f == 'patroni.dynamic.json':
shutil.copy(os.path.join(self._new_data_dir, f), os.path.join(self._data_dir, f))
self.config.write_postgresql_conf()
self._new_data_dir, self._data_dir = self._data_dir, self._new_data_dir
self.config._postgresql_conf = old_postgresql_conf
self._version_file = old_version_file
if old_shared_preload_libraries:
self.config.get('parameters')['shared_preload_libraries'] = old_shared_preload_libraries
self.no_bg_mon()
self.configure_server_parameters()
return True
def do_upgrade(self):
return self.pg_upgrade() and self.restore_shared_preload_libraries()\
and self.switch_pgdata() and self.cleanup_old_pgdata()
def analyze(self, in_stages=False):
vacuumdb_args = ['--analyze-in-stages'] if in_stages else []
logger.info('Rebuilding statistics (vacuumdb%s)', (' ' + vacuumdb_args[0] if in_stages else ''))
if 'username' in self.config.superuser:
vacuumdb_args += ['-U', self.config.superuser['username']]
vacuumdb_args += ['-Z', '-j']
# vacuumdb is processing databases sequantially, while we better do them in parallel,
# because it will help with the case when there are multiple databases in the same cluster.
single_worker_dbs = ('postgres', 'template1')
databases = self._get_all_databases()
db_count = len([d for d in databases if d not in single_worker_dbs])
# calculate concurrency per database, except always existing "single_worker_dbs" (they'll get always 1 worker)
concurrency = str(max(1, int(psutil.cpu_count()/max(1, db_count))))
procs = []
for d in databases:
j = '1' if d in single_worker_dbs else concurrency
try:
procs.append(subprocess.Popen([self.pgcommand('vacuumdb')] + vacuumdb_args + [j, '-d', d]))
except Exception:
pass
for proc in procs:
try:
proc.wait()
except Exception:
pass
def PostgresqlUpgrade(config):
config['postgresql'].update({'callbacks': {}, 'pg_ctl_timeout': 3600*24*7})
# avoid unnecessary interactions with PGDATA and postgres
is_running = _PostgresqlUpgrade.is_running
_PostgresqlUpgrade.is_running = lambda s: False
try:
return _PostgresqlUpgrade(config['postgresql'])
finally:
_PostgresqlUpgrade.is_running = is_running
| [
11748,
18931,
198,
11748,
28686,
198,
11748,
4423,
346,
198,
11748,
850,
14681,
198,
11748,
26692,
22602,
198,
198,
6738,
19686,
72,
13,
7353,
34239,
13976,
1330,
2947,
34239,
13976,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
4871,
4808,
6307,
34239,
13976,
44948,
7,
6307,
34239,
13976,
2599,
628,
220,
220,
220,
4808,
1268,
9858,
47,
1404,
34563,
62,
13918,
16938,
11053,
796,
19203,
321,
9122,
62,
19545,
3256,
8,
628,
220,
220,
220,
825,
4532,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
7,
944,
11,
2196,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
422,
599,
18526,
62,
9503,
684,
1330,
4532,
62,
2302,
5736,
628,
220,
220,
220,
220,
220,
220,
220,
4888,
62,
3866,
2220,
62,
75,
11127,
796,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
27691,
1136,
10786,
28710,
62,
3866,
2220,
62,
75,
11127,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
727,
62,
11250,
62,
27160,
17816,
28710,
62,
3866,
2220,
62,
75,
11127,
20520,
796,
4888,
62,
3866,
2220,
62,
75,
11127,
628,
220,
220,
220,
220,
220,
220,
220,
611,
4888,
62,
3866,
2220,
62,
75,
11127,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
17816,
28710,
62,
3866,
2220,
62,
75,
11127,
20520,
796,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4532,
62,
2302,
5736,
7,
28710,
62,
3866,
2220,
62,
75,
11127,
11,
2196,
8,
628,
220,
220,
220,
825,
645,
62,
35904,
62,
2144,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4888,
62,
3866,
2220,
62,
75,
11127,
796,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
27691,
1136,
10786,
28710,
62,
3866,
2220,
62,
75,
11127,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4888,
62,
3866,
2220,
62,
75,
11127,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
8106,
7,
50033,
257,
25,
257,
14512,
366,
35904,
62,
2144,
1600,
3975,
7,
50033,
257,
25,
257,
13,
36311,
22784,
4888,
62,
3866,
2220,
62,
75,
11127,
13,
35312,
7,
2430,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
17816,
28710,
62,
3866,
2220,
62,
75,
11127,
20520,
796,
366,
553,
13,
22179,
7,
22065,
8,
628,
220,
220,
220,
825,
11169,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
35226,
7,
944,
11,
705,
62,
727,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
17816,
28710,
62,
3866,
2220,
62,
75,
11127,
20520,
796,
2116,
13557,
727,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
825,
923,
62,
727,
62,
565,
5819,
7,
944,
11,
4566,
11,
2196,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
8800,
62,
15908,
7,
9641,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2196,
796,
12178,
7,
9641,
8,
628,
220,
220,
220,
220,
220,
220,
220,
4566,
58,
11250,
17816,
24396,
20520,
7131,
6,
21812,
20520,
796,
705,
7942,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2196,
1279,
860,
13,
20,
25,
220,
1303,
860,
13,
19,
290,
4697,
836,
470,
423,
7628,
62,
16793,
62,
2673,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
796,
4566,
58,
11250,
17816,
24396,
20520,
4083,
1136,
10786,
260,
1073,
548,
62,
16793,
62,
2673,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4566,
58,
11250,
17816,
24396,
20520,
7131,
6,
32125,
62,
265,
62,
260,
1073,
548,
62,
16793,
20520,
796,
965,
7,
2673,
6624,
705,
32125,
27691,
21037,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
787,
1654,
356,
836,
470,
15424,
266,
874,
422,
262,
1468,
2196,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
727,
62,
11250,
62,
27160,
796,
1391,
6,
17474,
62,
14171,
10354,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
27691,
1136,
10786,
17474,
62,
14171,
11537,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
17816,
17474,
62,
14171,
20520,
796,
705,
2364,
6,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
290,
836,
470,
3440,
4888,
62,
3866,
2220,
62,
75,
11127,
543,
836,
470,
2152,
287,
262,
1468,
2196,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
23032,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
7,
9641,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
18769,
26418,
13,
18769,
26418,
7,
11250,
8,
628,
220,
220,
220,
825,
651,
62,
565,
5819,
62,
9641,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
944,
13557,
9641,
62,
7753,
8,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
277,
13,
961,
22446,
36311,
3419,
628,
220,
220,
220,
825,
900,
62,
8800,
62,
15908,
7,
944,
11,
2196,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
422,
599,
18526,
62,
9503,
684,
1330,
651,
62,
8800,
62,
15908,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
727,
62,
8800,
62,
15908,
796,
2116,
13557,
8800,
62,
15908,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8800,
62,
15908,
796,
651,
62,
8800,
62,
15908,
7,
9641,
8,
628,
220,
220,
220,
825,
4808,
1136,
62,
439,
62,
19608,
18826,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
67,
58,
15,
60,
329,
288,
287,
2116,
13,
22766,
10786,
46506,
4818,
3672,
16034,
23241,
62,
9246,
11794,
13,
6024,
62,
48806,
33411,
4818,
12154,
37043,
11537,
60,
628,
220,
220,
220,
825,
4268,
62,
39363,
62,
259,
38532,
62,
2302,
5736,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
422,
19686,
72,
13,
7353,
34239,
13976,
13,
38659,
1330,
651,
62,
38659,
62,
66,
21471,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
35442,
2105,
18366,
422,
262,
13946,
543,
714,
307,
27294,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
48260,
62,
46265,
22046,
796,
2116,
13,
12001,
62,
37043,
62,
46265,
22046,
628,
220,
220,
220,
220,
220,
220,
220,
329,
288,
287,
2116,
13557,
1136,
62,
439,
62,
19608,
18826,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
62,
46265,
22046,
17816,
48806,
20520,
796,
288,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
651,
62,
38659,
62,
66,
21471,
7,
1174,
37043,
62,
46265,
22046,
8,
355,
1090,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1070,
287,
2116,
13557,
1268,
9858,
47,
1404,
34563,
62,
13918,
16938,
11053,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
23002,
15129,
366,
7707,
3185,
27489,
16938,
2849,
16876,
7788,
1797,
4694,
4064,
82,
1,
287,
262,
6831,
2625,
4,
82,
1,
3256,
1070,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
7203,
7707,
3185,
27489,
16938,
2849,
16876,
7788,
1797,
4694,
1391,
15,
92,
1911,
18982,
7,
2302,
4008,
628,
220,
220,
220,
825,
4268,
62,
39363,
62,
259,
38532,
62,
48205,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
422,
19686,
72,
13,
7353,
34239,
13976,
13,
38659,
1330,
651,
62,
38659,
62,
66,
21471,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
35442,
2105,
5563,
422,
262,
13946,
543,
714,
307,
27294,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
48260,
62,
46265,
22046,
796,
2116,
13,
12001,
62,
37043,
62,
46265,
22046,
628,
220,
220,
220,
220,
220,
220,
220,
329,
288,
287,
2116,
13557,
1136,
62,
439,
62,
19608,
18826,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
62,
46265,
22046,
17816,
48806,
20520,
796,
288,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
651,
62,
38659,
62,
66,
21471,
7,
1174,
37043,
62,
46265,
22046,
8,
355,
1090,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
23002,
15129,
366,
7707,
3185,
29397,
4177,
2849,
18663,
62,
16794,
364,
13,
6024,
62,
14269,
62,
14269,
3196,
1,
287,
262,
6831,
2625,
4,
82,
1,
3256,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
7203,
7707,
3185,
29397,
4177,
2849,
16876,
7788,
1797,
4694,
18663,
62,
16794,
364,
13,
6024,
62,
14269,
62,
14269,
3196,
7,
2127,
21052,
8,
35106,
34,
19266,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1070,
287,
19203,
6024,
62,
14269,
62,
74,
23870,
3256,
705,
6024,
62,
14269,
62,
14269,
3196,
11537,
1343,
2116,
13557,
1268,
9858,
47,
1404,
34563,
62,
13918,
16938,
11053,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
23002,
15129,
366,
7707,
3185,
27489,
16938,
2849,
16876,
7788,
1797,
4694,
4064,
82,
1,
287,
262,
6831,
2625,
4,
82,
1,
3256,
1070,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
7203,
7707,
3185,
27489,
16938,
2849,
16876,
7788,
1797,
4694,
1391,
15,
92,
1911,
18982,
7,
2302,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
288,
58,
15,
60,
6624,
705,
7353,
34239,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
23002,
15129,
366,
7707,
3185,
43679,
1281,
34239,
62,
6404,
35106,
34,
19266,
1,
287,
262,
6831,
28,
7353,
34239,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
10786,
7707,
3185,
43679,
16876,
7788,
1797,
4694,
1171,
13,
7353,
34239,
62,
6404,
35106,
34,
19266,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
7203,
46506,
267,
312,
3712,
2301,
4871,
16034,
23241,
62,
9246,
11794,
13,
6024,
62,
4871,
33411,
823,
19276,
13274,
796,
705,
84,
6,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
555,
6404,
2004,
287,
1090,
13,
69,
7569,
439,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
2898,
19524,
803,
555,
6404,
2004,
3084,
4064,
82,
3256,
555,
6404,
2004,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
10786,
5446,
4944,
34,
6158,
1391,
15,
92,
4458,
18982,
7,
403,
6404,
2004,
58,
15,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
18224,
10786,
37,
6255,
25,
4064,
81,
3256,
304,
8,
628,
220,
220,
220,
825,
4296,
62,
2302,
5736,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
422,
19686,
72,
13,
7353,
34239,
13976,
13,
38659,
1330,
651,
62,
38659,
62,
66,
21471,
628,
220,
220,
220,
220,
220,
220,
220,
48260,
62,
46265,
22046,
796,
2116,
13,
12001,
62,
37043,
62,
46265,
22046,
628,
220,
220,
220,
220,
220,
220,
220,
329,
288,
287,
2116,
13557,
1136,
62,
439,
62,
19608,
18826,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
62,
46265,
22046,
17816,
48806,
20520,
796,
288,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
651,
62,
38659,
62,
66,
21471,
7,
1174,
37043,
62,
46265,
22046,
8,
355,
1090,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
10786,
46506,
9577,
62,
738,
7,
2302,
3672,
8,
16034,
23241,
62,
9246,
11794,
13,
6024,
62,
2302,
3004,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1070,
3672,
287,
1090,
13,
69,
7569,
439,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12405,
796,
705,
1847,
5781,
27489,
16938,
2849,
1391,
15,
92,
35717,
4458,
18982,
7,
2302,
3672,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
7203,
23002,
15129,
705,
4,
82,
6,
287,
262,
6831,
28,
4,
82,
1600,
12405,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
13,
41049,
7,
22766,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
18224,
10786,
37,
6255,
25,
4064,
81,
3256,
304,
8,
628,
220,
220,
220,
825,
27425,
62,
3605,
62,
6024,
7890,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
35226,
7,
944,
11,
705,
62,
3605,
62,
7890,
62,
15908,
3256,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
28956,
62,
3605,
62,
7890,
7,
944,
13557,
3605,
62,
7890,
62,
15908,
8,
628,
220,
220,
220,
825,
27425,
62,
727,
62,
6024,
7890,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
944,
13557,
727,
62,
7890,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
8413,
5165,
4064,
82,
3256,
2116,
13557,
727,
62,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
944,
13557,
727,
62,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
825,
5078,
62,
6024,
7890,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
727,
62,
7890,
62,
15908,
796,
2116,
13557,
7890,
62,
15908,
1343,
705,
62,
727,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
27773,
929,
62,
727,
62,
6024,
7890,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
918,
480,
7,
944,
13557,
7890,
62,
15908,
11,
2116,
13557,
727,
62,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
35226,
7,
944,
11,
705,
62,
3605,
62,
7890,
62,
15908,
3256,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
918,
480,
7,
944,
13557,
3605,
62,
7890,
62,
15908,
11,
2116,
13557,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
495,
62,
15388,
62,
17143,
7307,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
825,
5078,
62,
1891,
62,
6024,
7890,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
944,
13557,
7890,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
3605,
62,
7890,
62,
15908,
796,
2116,
13557,
7890,
62,
15908,
1343,
705,
62,
3605,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
27773,
929,
62,
3605,
62,
6024,
7890,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
918,
480,
7,
944,
13557,
7890,
62,
15908,
11,
2116,
13557,
3605,
62,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
918,
480,
7,
944,
13557,
727,
62,
7890,
62,
15908,
11,
2116,
13557,
7890,
62,
15908,
8,
628,
220,
220,
220,
825,
23241,
62,
929,
9526,
7,
944,
11,
2198,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
8515,
62,
15908,
796,
2116,
13557,
7890,
62,
15908,
1343,
705,
62,
929,
9526,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
929,
9526,
62,
15908,
8,
290,
28686,
13,
6978,
13,
9409,
343,
7,
929,
9526,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
929,
9526,
62,
15908,
8,
628,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
929,
9526,
62,
15908,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
66,
16993,
796,
28686,
13,
1136,
66,
16993,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
929,
9526,
62,
15908,
8,
628,
220,
220,
220,
220,
220,
220,
220,
23241,
62,
929,
9526,
62,
22046,
796,
685,
29001,
74,
3256,
705,
12,
73,
3256,
965,
7,
862,
22602,
13,
36166,
62,
9127,
3419,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12,
65,
3256,
2116,
13557,
727,
62,
8800,
62,
15908,
11,
705,
12,
33,
3256,
2116,
13557,
8800,
62,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12,
67,
3256,
2116,
13557,
7890,
62,
15908,
11,
705,
12,
35,
3256,
2116,
13557,
3605,
62,
7890,
62,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12,
46,
3256,
27444,
66,
1661,
66,
3021,
65,
13,
2118,
3255,
11639,
261,
6,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
29460,
6,
287,
2116,
13,
11250,
13,
16668,
7220,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23241,
62,
929,
9526,
62,
22046,
15853,
685,
29001,
52,
3256,
2116,
13,
11250,
13,
16668,
7220,
17816,
29460,
6,
11907,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2198,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23241,
62,
929,
9526,
62,
22046,
15853,
37250,
438,
9122,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
13564,
62,
7353,
34239,
13976,
62,
10414,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
23002,
15129,
23241,
62,
929,
9526,
4,
82,
3256,
19203,
1377,
9122,
6,
611,
2198,
2073,
10148,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
850,
14681,
13,
13345,
26933,
944,
13,
6024,
21812,
10786,
6024,
62,
929,
9526,
11537,
60,
1343,
23241,
62,
929,
9526,
62,
22046,
8,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
727,
62,
66,
16993,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
929,
9526,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
825,
8335,
62,
3605,
62,
6024,
7890,
7,
944,
11,
2196,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
422,
599,
18526,
62,
9503,
684,
1330,
24443,
62,
2302,
298,
507,
628,
220,
220,
220,
220,
220,
220,
220,
36693,
796,
2116,
13,
22766,
10786,
9693,
3913,
300,
66,
62,
26000,
378,
27691,
69,
7569,
505,
3419,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
21004,
796,
2116,
13,
22766,
10786,
9693,
3913,
4382,
62,
12685,
7656,
27691,
69,
7569,
505,
3419,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2315,
9945,
62,
11250,
796,
685,
90,
6,
17946,
1000,
10354,
36693,
5512,
1391,
6,
12685,
7656,
10354,
21004,
92,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22766,
7203,
46506,
1459,
62,
33990,
10786,
7890,
62,
42116,
5700,
6,
2599,
25,
30388,
11074,
69,
7569,
505,
3419,
58,
15,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2315,
9945,
62,
11250,
13,
33295,
10786,
7890,
12,
42116,
5700,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
15003,
9945,
4566,
25,
4064,
82,
3256,
2315,
9945,
62,
11250,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
3605,
62,
7890,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
944,
13557,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
727,
62,
7890,
62,
15908,
796,
2116,
13557,
3605,
62,
7890,
62,
15908,
1343,
705,
62,
727,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
7890,
62,
15908,
796,
2116,
13557,
3605,
62,
7890,
62,
15908,
1343,
705,
62,
3605,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
28956,
62,
3605,
62,
7890,
7,
944,
13557,
7890,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
7353,
34239,
13976,
62,
10414,
796,
2116,
13,
11250,
13557,
7353,
34239,
13976,
62,
10414,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13557,
7353,
34239,
13976,
62,
10414,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13557,
7890,
62,
15908,
11,
705,
7353,
34239,
13976,
13,
10414,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
9641,
62,
7753,
796,
2116,
13557,
9641,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9641,
62,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13557,
7890,
62,
15908,
11,
705,
6968,
62,
43717,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
8800,
62,
15908,
7,
9641,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
4888,
62,
3866,
2220,
62,
75,
11127,
329,
262,
1468,
13946,
11,
20750,
422,
27294,
14,
45688,
9195,
82,
198,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
796,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
27691,
1136,
10786,
28710,
62,
3866,
2220,
62,
75,
11127,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
11169,
2656,
3815,
286,
15424,
62,
14171,
290,
4888,
62,
3866,
2220,
62,
75,
11127,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
35226,
7,
944,
11,
705,
62,
727,
62,
11250,
62,
27160,
3256,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1438,
11,
1988,
287,
2116,
13557,
727,
62,
11250,
62,
27160,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
27691,
12924,
7,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
58,
3672,
60,
796,
1988,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
329,
262,
649,
2196,
356,
3863,
761,
284,
751,
617,
9195,
82,
284,
262,
4888,
62,
3866,
2220,
62,
75,
11127,
198,
220,
220,
220,
220,
220,
220,
220,
4888,
62,
3866,
2220,
62,
75,
11127,
796,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
27691,
1136,
10786,
28710,
62,
3866,
2220,
62,
75,
11127,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4888,
62,
3866,
2220,
62,
75,
11127,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
727,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
796,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
17816,
28710,
62,
3866,
2220,
62,
75,
11127,
20520,
796,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24443,
62,
2302,
298,
507,
7,
28710,
62,
3866,
2220,
62,
75,
11127,
11,
12178,
7,
9641,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3919,
62,
35904,
62,
2144,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
18769,
26418,
13557,
15003,
9945,
7,
15003,
9945,
62,
11250,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18769,
26418,
13557,
20270,
62,
23144,
62,
18769,
26418,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
17393,
1468,
4566,
82,
13,
27713,
25,
617,
10007,
1244,
307,
27294,
0,
198,
220,
220,
220,
220,
220,
220,
220,
329,
277,
287,
28686,
13,
4868,
15908,
7,
944,
13557,
3605,
62,
7890,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
277,
13,
9688,
2032,
342,
10786,
7353,
34239,
13976,
2637,
8,
393,
277,
13,
9688,
2032,
342,
10786,
6024,
62,
71,
7012,
13,
10414,
11537,
393,
277,
6624,
705,
8071,
1313,
72,
13,
67,
28995,
13,
17752,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4423,
346,
13,
30073,
7,
418,
13,
6978,
13,
22179,
7,
944,
13557,
3605,
62,
7890,
62,
15908,
11,
277,
828,
28686,
13,
6978,
13,
22179,
7,
944,
13557,
7890,
62,
15908,
11,
277,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
13564,
62,
7353,
34239,
13976,
62,
10414,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
3605,
62,
7890,
62,
15908,
11,
2116,
13557,
7890,
62,
15908,
796,
2116,
13557,
7890,
62,
15908,
11,
2116,
13557,
3605,
62,
7890,
62,
15908,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13557,
7353,
34239,
13976,
62,
10414,
796,
1468,
62,
7353,
34239,
13976,
62,
10414,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9641,
62,
7753,
796,
1468,
62,
9641,
62,
7753,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1468,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
1136,
10786,
17143,
7307,
11537,
17816,
28710,
62,
3866,
2220,
62,
75,
11127,
20520,
796,
1468,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3919,
62,
35904,
62,
2144,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
495,
62,
15388,
62,
17143,
7307,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
825,
466,
62,
929,
9526,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
6024,
62,
929,
9526,
3419,
290,
2116,
13,
2118,
382,
62,
28710,
62,
3866,
2220,
62,
75,
11127,
3419,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
290,
2116,
13,
31943,
62,
6024,
7890,
3419,
290,
2116,
13,
27773,
929,
62,
727,
62,
6024,
7890,
3419,
628,
220,
220,
220,
825,
16602,
7,
944,
11,
287,
62,
301,
1095,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
17076,
9945,
62,
22046,
796,
37250,
438,
38200,
2736,
12,
259,
12,
301,
1095,
20520,
611,
287,
62,
301,
1095,
2073,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
10786,
28951,
6963,
7869,
357,
85,
330,
13814,
9945,
4,
82,
8,
3256,
19203,
705,
1343,
17076,
9945,
62,
22046,
58,
15,
60,
611,
287,
62,
301,
1095,
2073,
10148,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
29460,
6,
287,
2116,
13,
11250,
13,
16668,
7220,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17076,
9945,
62,
22046,
15853,
685,
29001,
52,
3256,
2116,
13,
11250,
13,
16668,
7220,
17816,
29460,
6,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
17076,
9945,
62,
22046,
15853,
685,
29001,
57,
3256,
705,
12,
73,
20520,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
17076,
9945,
318,
7587,
20083,
4726,
415,
1927,
11,
981,
356,
1365,
466,
606,
287,
10730,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
780,
340,
481,
1037,
351,
262,
1339,
618,
612,
389,
3294,
20083,
287,
262,
976,
13946,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2060,
62,
28816,
62,
67,
1443,
796,
19203,
7353,
34239,
3256,
705,
28243,
16,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
20083,
796,
2116,
13557,
1136,
62,
439,
62,
19608,
18826,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
20613,
62,
9127,
796,
18896,
26933,
67,
329,
288,
287,
20083,
611,
288,
407,
287,
2060,
62,
28816,
62,
67,
1443,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
15284,
1673,
13382,
583,
6831,
11,
2845,
1464,
4683,
366,
29762,
62,
28816,
62,
67,
1443,
1,
357,
9930,
1183,
651,
1464,
352,
8383,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1673,
13382,
796,
965,
7,
9806,
7,
16,
11,
493,
7,
862,
22602,
13,
36166,
62,
9127,
3419,
14,
9806,
7,
16,
11,
20613,
62,
9127,
35514,
198,
220,
220,
220,
220,
220,
220,
220,
386,
6359,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
288,
287,
20083,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
796,
705,
16,
6,
611,
288,
287,
2060,
62,
28816,
62,
67,
1443,
2073,
1673,
13382,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
386,
6359,
13,
33295,
7,
7266,
14681,
13,
47,
9654,
26933,
944,
13,
6024,
21812,
10786,
85,
330,
13814,
9945,
11537,
60,
1343,
17076,
9945,
62,
22046,
1343,
685,
73,
11,
705,
12,
67,
3256,
288,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
329,
13834,
287,
386,
6359,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13834,
13,
17077,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
35528,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
198,
4299,
2947,
34239,
13976,
44948,
7,
11250,
2599,
198,
220,
220,
220,
4566,
17816,
7353,
34239,
13976,
6,
4083,
19119,
15090,
6,
13345,
10146,
10354,
1391,
5512,
705,
6024,
62,
34168,
62,
48678,
10354,
4570,
405,
9,
1731,
9,
22,
30072,
628,
220,
220,
220,
1303,
3368,
13114,
12213,
351,
23842,
26947,
290,
1281,
34239,
198,
220,
220,
220,
318,
62,
20270,
796,
4808,
6307,
34239,
13976,
44948,
13,
271,
62,
20270,
198,
220,
220,
220,
4808,
6307,
34239,
13976,
44948,
13,
271,
62,
20270,
796,
37456,
264,
25,
10352,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4808,
6307,
34239,
13976,
44948,
7,
11250,
17816,
7353,
34239,
13976,
6,
12962,
198,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
6307,
34239,
13976,
44948,
13,
271,
62,
20270,
796,
318,
62,
20270,
198
] | 2.232312 | 5,583 |
__all__ = ["tosca_parser", "tosca_rdcl_graph"] | [
834,
439,
834,
796,
14631,
83,
418,
6888,
62,
48610,
1600,
366,
83,
418,
6888,
62,
4372,
565,
62,
34960,
8973
] | 2.190476 | 21 |
import asyncio
import contextlib
from typing import Dict, Any, Optional
import aioboto3
import botocore
import statey as st
SubnetConfigType = st.Struct[
"vpc_id" : st.String,
"cidr_block" : st.String,
# Optional args
"ipv6_cidr_block" : ~st.String,
"map_public_ip_on_launch" : st.Boolean(default=False),
"assign_ipv6_address_on_creation" : st.Boolean(default=False),
# Missing: tags
]
SubnetType = st.Struct[
"vpc_id" : st.String,
"cidr_block" : st.String,
"ipv6_association_id" : ~st.String,
"ipv6_cidr_block" : ~st.String,
"map_public_ip_on_launch" : st.Boolean,
"assign_ipv6_address_on_creation" : st.Boolean,
# Missing: tags
"id" : st.String,
"owner_id" : st.Integer,
]
class SubnetMachine(st.SimpleMachine):
"""
Maching representing an AWS subnet
"""
UP = st.State("UP", SubnetConfigType, SubnetType)
subnet_resource = st.MachineResource("aws_subnet", SubnetMachine)
Subnet = subnet_resource.s
RESOURCES = [subnet_resource]
def register(registry: Optional["Registry"] = None) -> None:
"""
Register resources in this module
"""
if registry is None:
registry = st.registry
for resource in RESOURCES:
registry.register(resource)
| [
11748,
30351,
952,
198,
11748,
4732,
8019,
198,
6738,
19720,
1330,
360,
713,
11,
4377,
11,
32233,
198,
198,
11748,
257,
72,
672,
2069,
18,
198,
11748,
10214,
420,
382,
198,
198,
11748,
1181,
88,
355,
336,
628,
198,
7004,
3262,
16934,
6030,
796,
336,
13,
44909,
58,
198,
220,
220,
220,
366,
85,
14751,
62,
312,
1,
1058,
336,
13,
10100,
11,
198,
220,
220,
220,
366,
66,
312,
81,
62,
9967,
1,
1058,
336,
13,
10100,
11,
198,
220,
220,
220,
1303,
32233,
26498,
198,
220,
220,
220,
366,
541,
85,
21,
62,
66,
312,
81,
62,
9967,
1,
1058,
5299,
301,
13,
10100,
11,
198,
220,
220,
220,
366,
8899,
62,
11377,
62,
541,
62,
261,
62,
35681,
1,
1058,
336,
13,
46120,
13087,
7,
12286,
28,
25101,
828,
198,
220,
220,
220,
366,
562,
570,
62,
541,
85,
21,
62,
21975,
62,
261,
62,
38793,
1,
1058,
336,
13,
46120,
13087,
7,
12286,
28,
25101,
828,
198,
220,
220,
220,
1303,
25639,
25,
15940,
198,
60,
628,
198,
7004,
3262,
6030,
796,
336,
13,
44909,
58,
198,
220,
220,
220,
366,
85,
14751,
62,
312,
1,
1058,
336,
13,
10100,
11,
198,
220,
220,
220,
366,
66,
312,
81,
62,
9967,
1,
1058,
336,
13,
10100,
11,
198,
220,
220,
220,
366,
541,
85,
21,
62,
562,
41003,
62,
312,
1,
1058,
5299,
301,
13,
10100,
11,
198,
220,
220,
220,
366,
541,
85,
21,
62,
66,
312,
81,
62,
9967,
1,
1058,
5299,
301,
13,
10100,
11,
198,
220,
220,
220,
366,
8899,
62,
11377,
62,
541,
62,
261,
62,
35681,
1,
1058,
336,
13,
46120,
13087,
11,
198,
220,
220,
220,
366,
562,
570,
62,
541,
85,
21,
62,
21975,
62,
261,
62,
38793,
1,
1058,
336,
13,
46120,
13087,
11,
198,
220,
220,
220,
1303,
25639,
25,
15940,
198,
220,
220,
220,
366,
312,
1,
1058,
336,
13,
10100,
11,
198,
220,
220,
220,
366,
18403,
62,
312,
1,
1058,
336,
13,
46541,
11,
198,
60,
628,
198,
4871,
3834,
3262,
37573,
7,
301,
13,
26437,
37573,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7080,
278,
10200,
281,
30865,
850,
3262,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
15958,
796,
336,
13,
9012,
7203,
8577,
1600,
3834,
3262,
16934,
6030,
11,
3834,
3262,
6030,
8,
628,
198,
7266,
3262,
62,
31092,
796,
336,
13,
37573,
26198,
7203,
8356,
62,
7266,
3262,
1600,
3834,
3262,
37573,
8,
198,
198,
7004,
3262,
796,
850,
3262,
62,
31092,
13,
82,
198,
198,
19535,
2606,
7397,
1546,
796,
685,
7266,
3262,
62,
31092,
60,
628,
198,
4299,
7881,
7,
2301,
4592,
25,
32233,
14692,
8081,
4592,
8973,
796,
6045,
8,
4613,
6045,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
17296,
4133,
287,
428,
8265,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
20478,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
20478,
796,
336,
13,
2301,
4592,
628,
220,
220,
220,
329,
8271,
287,
15731,
2606,
7397,
1546,
25,
198,
220,
220,
220,
220,
220,
220,
220,
20478,
13,
30238,
7,
31092,
8,
198
] | 2.430769 | 520 |
class constants:
"""Class of constants for each component of detector
"""
class bgsub:
"""Background subtraction/segmentation
mod [str] the segmentation model (MOG2, KNN, GMG)
"""
mod = 'MOG2'
class HSV:
"""HSV inRange filtering
maximum values and initial values
"""
max_value = 255
max_value_H = 360//2
low_H = 40
low_S = 30
low_V = 30
high_H = 75
high_S = 255
high_V = 255
low_H_name = 'Low H'
low_S_name = 'Low S'
low_V_name = 'Low V'
high_H_name = 'High H'
high_S_name = 'High S'
high_V_name = 'High V'
class window:
"""Window control
names of windows
"""
window1 = 'Altered'
window2 = 'Original'
class asth:
"""Aesthetics
font [enum int] font used for description
text [bool] should text be imprinted on image?
"""
font = 0
text = False
class cntr:
"""Controls for program
next_k - next image
prev_k - prev image
save - save single image (in mode)
save_all - save all images (in mode)
exit_k - exit the program
dice - calculate dice value
dice_more - show all dice values based on dataset
m1_k etc. - mode selection
modes [dict] dictionary with mode names
"""
next_k = ord('m')
prev_k = ord('n')
save = ord('s')
save_all = ord('z')
exit_k = 27
dice = ord('d')
dice_more = ord('f')
m1_k = ord('1')
m2_k = ord('2')
m3_k = ord('3')
m4_k = ord('4')
m5_k = ord('5')
modes = {
0: 'original',
1: 'hsv_filter',
2: 'ws_mask',
3: 'ws_mask_bg',
4: 'fgbg_segm',
5: 'ws_fgbg_segm'
}
class xtra:
"""Ends and odds
disco [bool] random colors for masks on each loop?
show_save_all [bool] run saving all in foreground?
"""
disco = False
show_save_all = True
| [
4871,
38491,
25,
198,
220,
220,
220,
37227,
9487,
286,
38491,
329,
1123,
7515,
286,
31029,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1398,
275,
70,
7266,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
21756,
13284,
7861,
14,
325,
5154,
341,
628,
220,
220,
220,
220,
220,
220,
220,
953,
685,
2536,
60,
262,
10618,
341,
2746,
357,
44,
7730,
17,
11,
509,
6144,
11,
6951,
38,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
953,
796,
705,
44,
7730,
17,
6,
628,
220,
220,
220,
1398,
18070,
53,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7998,
53,
287,
17257,
25431,
628,
220,
220,
220,
220,
220,
220,
220,
5415,
3815,
290,
4238,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
8367,
796,
14280,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
8367,
62,
39,
796,
11470,
1003,
17,
628,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
39,
796,
2319,
198,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
50,
796,
1542,
198,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
53,
796,
1542,
198,
220,
220,
220,
220,
220,
220,
220,
1029,
62,
39,
796,
5441,
198,
220,
220,
220,
220,
220,
220,
220,
1029,
62,
50,
796,
14280,
198,
220,
220,
220,
220,
220,
220,
220,
1029,
62,
53,
796,
14280,
628,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
39,
62,
3672,
796,
705,
20535,
367,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
50,
62,
3672,
796,
705,
20535,
311,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
53,
62,
3672,
796,
705,
20535,
569,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1029,
62,
39,
62,
3672,
796,
705,
11922,
367,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1029,
62,
50,
62,
3672,
796,
705,
11922,
311,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1029,
62,
53,
62,
3672,
796,
705,
11922,
569,
6,
628,
220,
220,
220,
1398,
4324,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27703,
1630,
628,
220,
220,
220,
220,
220,
220,
220,
3891,
286,
9168,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
4324,
16,
796,
705,
2348,
4400,
6,
198,
220,
220,
220,
220,
220,
220,
220,
4324,
17,
796,
705,
20556,
6,
628,
220,
220,
220,
1398,
6468,
71,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
32,
395,
24965,
628,
220,
220,
220,
220,
220,
220,
220,
10369,
685,
44709,
493,
60,
10369,
973,
329,
6764,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
685,
30388,
60,
815,
2420,
307,
29122,
276,
319,
2939,
30,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10369,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
10352,
628,
220,
220,
220,
1398,
269,
429,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
15988,
82,
329,
1430,
628,
220,
220,
220,
220,
220,
220,
220,
1306,
62,
74,
532,
1306,
2939,
198,
220,
220,
220,
220,
220,
220,
220,
8654,
62,
74,
532,
8654,
2939,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
532,
3613,
2060,
2939,
357,
259,
4235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
62,
439,
532,
3613,
477,
4263,
357,
259,
4235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8420,
62,
74,
532,
8420,
262,
1430,
628,
220,
220,
220,
220,
220,
220,
220,
17963,
532,
15284,
17963,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
17963,
62,
3549,
532,
905,
477,
17963,
3815,
1912,
319,
27039,
628,
220,
220,
220,
220,
220,
220,
220,
285,
16,
62,
74,
3503,
13,
532,
4235,
6356,
628,
220,
220,
220,
220,
220,
220,
220,
12881,
685,
11600,
60,
22155,
351,
4235,
3891,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1306,
62,
74,
796,
2760,
10786,
76,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
8654,
62,
74,
796,
2760,
10786,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
796,
2760,
10786,
82,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
62,
439,
796,
2760,
10786,
89,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
8420,
62,
74,
796,
2681,
628,
220,
220,
220,
220,
220,
220,
220,
17963,
796,
2760,
10786,
67,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
17963,
62,
3549,
796,
2760,
10786,
69,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
285,
16,
62,
74,
796,
2760,
10786,
16,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
285,
17,
62,
74,
796,
2760,
10786,
17,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
285,
18,
62,
74,
796,
2760,
10786,
18,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
285,
19,
62,
74,
796,
2760,
10786,
19,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
285,
20,
62,
74,
796,
2760,
10786,
20,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
12881,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
25,
705,
14986,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
25,
705,
11994,
85,
62,
24455,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
362,
25,
705,
18504,
62,
27932,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
513,
25,
705,
18504,
62,
27932,
62,
35904,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
604,
25,
705,
69,
22296,
70,
62,
325,
39870,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
642,
25,
705,
18504,
62,
69,
22296,
70,
62,
325,
39870,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
1398,
220,
742,
430,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
12915,
82,
290,
10402,
628,
220,
220,
220,
220,
220,
220,
220,
4655,
685,
30388,
60,
4738,
7577,
329,
20680,
319,
1123,
9052,
30,
198,
220,
220,
220,
220,
220,
220,
220,
905,
62,
21928,
62,
439,
685,
30388,
60,
1057,
8914,
477,
287,
36282,
30,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
4655,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
905,
62,
21928,
62,
439,
796,
6407,
198
] | 1.940179 | 1,120 |
import logging
from pathlib import Path
import time
import boto3
# This module requires a directory `.aws/` containing credentials in the home directory,
# or environment variables `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
logger = logging.getLogger(__name__)
def _get_client():
return boto3.session.Session().client('s3')
def _has_key(s3_client, bucket: str, key: str) -> bool:
response = s3_client.list_objects_v2(Bucket=bucket, Prefix=key)
for obj in response.get('Contents', []):
if obj['Key'] == key:
return True
return False
def _delete_key(s3_client, bucket: str, key: str) -> None:
s3_client.delete_object(Bucket=bucket, Key=key)
def has_key(bucket: str, key: str) -> bool:
return _has_key(_get_client(), bucket, key)
def delete_key(bucket: str, key: str) -> None:
return _delete_key(_get_client(), bucket, key)
class Bucket:
def __init__(self, bucket):
for header in ('s3://', 's3n://'):
if bucket.startswith(header):
bucket = bucket[len(header):]
break
if '/' in bucket:
bucket = bucket[: bucket.find('/')]
self._bucket = boto3.resource('s3').Bucket(bucket)
def _remove_bucket_key(self, key):
for header in ('s3://', 's3n://'):
if key.startswith(header):
assert key.startswith(header + self.name + '/')
key = key[(len(header) + len(self.name) + 1):]
return key
def upload(self, local_file: str, s3_key: str) -> None:
'''
Upload a single file to S3.
`local_file`: path to local file.
`s3_key`: S3 'key'.
Example: suppose current bucket is s3://my-org, with
local_file: /home/zepu/work/data/xyz/memo.txt
s3_key: mysurvey/memo
--> remote file: s3://my-org/mysurvey/memo
Existing file with the same name with be overwritten.
'''
local_file = Path(local_file)
if not local_file.is_file():
raise Exception('a file name is expected')
data = open(local_file, 'rb')
s3_key = self._remove_bucket_key(s3_key)
self._bucket.put_object(Key=s3_key, Body=data)
def upload_tree(self, local_path: str, s3_path: str,
pattern: str = '**/*') -> None:
'''
`local_path`: directory whose content will be uploaded.
If `local_path` contains a trailing `/`, then no part of this path name
becomes part of the remote name; otherwise, the final node in this path name
becomes the leading segment of the remote name.
`pattern`:
'*' (everything directly under `local_path`),
'**/*' (everything recursively under `local_path`),
'*.py' (every Python module directly under `local_path`),
'**/*.py' (every Python module recursively under `local_path`),
etc.
Example: suppose current bucket is s3://my-org, with
local_path: /home/me/work/data/xyz, containing
.../xyz/a.txt,
.../xyz/b.txt,
../xyz/zyx/aa.txt)
s3_path: dataset1
s3_name: '**/*'
--> remote files:
s3://my-org/dataset1/xyz/a.txt
s3://my-org/dataset1/xyz/b.txt
s3://my-org/dataset1/xyz/zyx/aa.txt
local_path: /home/me/work/data/xyz/ (note the trailing '/')
--> remote files:
s3://my-org/dataset1/a.txt
s3://my-org/dataset1/b.txt
s3://my-org/dataset1/zyx/aa.txt
'''
with_root = not local_path.endswith('/')
local_path = Path(local_path)
if not local_path.is_dir():
raise Exception('a directory name is expected')
nodes = [v for v in local_path.glob(pattern) if v.is_file()]
s3_path = self._remove_bucket_key(s3_path)
for node in nodes:
key = node.relative_to(local_path)
if with_root:
key = local_path.name / key
key = s3_path / key
self.upload(node, str(key))
def download(self, s3_key: str, local_file: str = None) -> None:
s3_key = self._remove_bucket_key(s3_key)
if local_file is None:
local_file = str(Path(s3_key).name)
self._bucket.download_file(s3_key, local_file)
def download_tree(self, s3_path: str, local_path: str = None) -> None:
s3_path = self._remove_bucket_key(s3_path)
raise NotImplementedError
def ls(self, key, recursive: bool = False):
# List object names directly or recursively named like `key*`.
# If `key` is `abc/def/`,
# then `abc/def/123/45` will return as `123/45`
#
# If `key` is `abc/def`,
# then `abc/defgh/45` will return as `defgh/45`;
# `abc/def/gh` will return as `/gh`.
#
# So if you know `key` is a `directory`, then it's a good idea to
# include the trailing `/` in `key`.
key = self._remove_bucket_key(key)
z = self._bucket.objects.filter(Prefix=key)
if key.endswith('/'):
key_len = len(key)
else:
key_len = key.rfind('/') + 1
if recursive:
return (v.key[key_len:] for v in z)
# this is a generator, b/c there can be many, many elements
else:
keys = set()
for v in z:
vv = v.key[key_len:]
idx = vv.find('/')
if idx >= 0:
vv = vv[: idx]
keys.add(vv)
return sorted(list(keys))
def has(self, key: str) -> bool:
key = self._remove_bucket_key(key)
if not hasattr(self, '_s3'):
self._s3 = _get_client()
return _has_key(self._s3, self._bucket.name, key)
def delete(self, key: str) -> None:
key = self._remove_bucket_key(key)
if not hasattr(self, '_s3'):
self._s3 = _get_client()
_delete_key(self._s3, self._bucket.name, key)
def delete_tree(self, s3_path: str) -> int:
s3_path = self._remove_bucket_key(s3_path)
n = 0
while True:
nn = self._delete_tree(s3_path)
if nn == 0:
break
n = max(n, nn)
time.sleep(0.5)
return n
def _delete_tree(self, s3_path: str) -> int:
'''
Return the number of objects deleted.
After this operation, the 'folder' `s3_path` is also gone.
TODO: this is not the fastest way to do it.
'''
assert s3_path.endswith('/')
n = 0
for k in self.ls(s3_path, recursive=True):
kk = s3_path + k
self.delete(kk)
n += 1
return n
def reduce_boto_logging():
import boto3.s3.transfer
assert boto3.s3.transfer # silence pyflakes
for name in logging.Logger.manager.loggerDict.keys():
if name.startswith('boto') or name.startswith('urllib3') or name.startswith('s3transfer'):
logging.getLogger(name).setLevel(logging.ERROR)
| [
11748,
18931,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
640,
198,
198,
11748,
275,
2069,
18,
198,
198,
2,
770,
8265,
4433,
257,
8619,
4600,
13,
8356,
14,
63,
7268,
18031,
287,
262,
1363,
8619,
11,
198,
2,
393,
2858,
9633,
4600,
12298,
50,
62,
26861,
7597,
62,
20373,
62,
2389,
47671,
290,
4600,
12298,
50,
62,
23683,
26087,
62,
26861,
7597,
62,
20373,
44646,
628,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
4299,
4808,
1136,
62,
16366,
33529,
198,
220,
220,
220,
1441,
275,
2069,
18,
13,
29891,
13,
36044,
22446,
16366,
10786,
82,
18,
11537,
628,
198,
4299,
4808,
10134,
62,
2539,
7,
82,
18,
62,
16366,
11,
19236,
25,
965,
11,
1994,
25,
965,
8,
4613,
20512,
25,
198,
220,
220,
220,
2882,
796,
264,
18,
62,
16366,
13,
4868,
62,
48205,
62,
85,
17,
7,
33,
38811,
28,
27041,
316,
11,
3771,
13049,
28,
2539,
8,
198,
220,
220,
220,
329,
26181,
287,
2882,
13,
1136,
10786,
15842,
3256,
17635,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
26181,
17816,
9218,
20520,
6624,
1994,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
198,
220,
220,
220,
1441,
10352,
628,
198,
4299,
4808,
33678,
62,
2539,
7,
82,
18,
62,
16366,
11,
19236,
25,
965,
11,
1994,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
264,
18,
62,
16366,
13,
33678,
62,
15252,
7,
33,
38811,
28,
27041,
316,
11,
7383,
28,
2539,
8,
628,
198,
4299,
468,
62,
2539,
7,
27041,
316,
25,
965,
11,
1994,
25,
965,
8,
4613,
20512,
25,
198,
220,
220,
220,
1441,
4808,
10134,
62,
2539,
28264,
1136,
62,
16366,
22784,
19236,
11,
1994,
8,
628,
198,
4299,
12233,
62,
2539,
7,
27041,
316,
25,
965,
11,
1994,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
1441,
4808,
33678,
62,
2539,
28264,
1136,
62,
16366,
22784,
19236,
11,
1994,
8,
628,
198,
4871,
48353,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
19236,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
13639,
287,
19203,
82,
18,
1378,
3256,
705,
82,
18,
77,
1378,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
19236,
13,
9688,
2032,
342,
7,
25677,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19236,
796,
19236,
58,
11925,
7,
25677,
2599,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
611,
31051,
6,
287,
19236,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19236,
796,
19236,
58,
25,
19236,
13,
19796,
10786,
14,
11537,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
27041,
316,
796,
275,
2069,
18,
13,
31092,
10786,
82,
18,
27691,
33,
38811,
7,
27041,
316,
8,
628,
220,
220,
220,
825,
4808,
28956,
62,
27041,
316,
62,
2539,
7,
944,
11,
1994,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
13639,
287,
19203,
82,
18,
1378,
3256,
705,
82,
18,
77,
1378,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
13,
9688,
2032,
342,
7,
25677,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
1994,
13,
9688,
2032,
342,
7,
25677,
1343,
2116,
13,
3672,
1343,
31051,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
1994,
58,
7,
11925,
7,
25677,
8,
1343,
18896,
7,
944,
13,
3672,
8,
1343,
352,
2599,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1994,
628,
220,
220,
220,
825,
9516,
7,
944,
11,
1957,
62,
7753,
25,
965,
11,
264,
18,
62,
2539,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
36803,
257,
2060,
2393,
284,
311,
18,
13,
628,
220,
220,
220,
220,
220,
220,
220,
4600,
12001,
62,
7753,
63,
25,
3108,
284,
1957,
2393,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4600,
82,
18,
62,
2539,
63,
25,
311,
18,
705,
2539,
4458,
628,
220,
220,
220,
220,
220,
220,
220,
17934,
25,
11691,
1459,
19236,
318,
264,
18,
1378,
1820,
12,
2398,
11,
351,
628,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
7753,
25,
1220,
11195,
14,
89,
538,
84,
14,
1818,
14,
7890,
14,
5431,
89,
14,
11883,
78,
13,
14116,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
2539,
25,
616,
11793,
3304,
14,
11883,
78,
198,
220,
220,
220,
220,
220,
220,
220,
14610,
6569,
2393,
25,
264,
18,
1378,
1820,
12,
2398,
14,
28744,
333,
3304,
14,
11883,
78,
628,
220,
220,
220,
220,
220,
220,
220,
1475,
9665,
2393,
351,
262,
976,
1438,
351,
307,
6993,
9108,
13,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
7753,
796,
10644,
7,
12001,
62,
7753,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1957,
62,
7753,
13,
271,
62,
7753,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
35528,
10786,
64,
2393,
1438,
318,
2938,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
1280,
7,
12001,
62,
7753,
11,
705,
26145,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
2539,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
82,
18,
62,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
27041,
316,
13,
1996,
62,
15252,
7,
9218,
28,
82,
18,
62,
2539,
11,
12290,
28,
7890,
8,
628,
220,
220,
220,
825,
9516,
62,
21048,
7,
944,
11,
1957,
62,
6978,
25,
965,
11,
264,
18,
62,
6978,
25,
965,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3912,
25,
965,
796,
705,
1174,
15211,
11537,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
4600,
12001,
62,
6978,
63,
25,
8619,
3025,
2695,
481,
307,
19144,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1002,
4600,
12001,
62,
6978,
63,
4909,
257,
25462,
4600,
14,
47671,
788,
645,
636,
286,
428,
3108,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4329,
636,
286,
262,
6569,
1438,
26,
4306,
11,
262,
2457,
10139,
287,
428,
3108,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4329,
262,
3756,
10618,
286,
262,
6569,
1438,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4600,
33279,
63,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9,
6,
220,
220,
220,
357,
37814,
3264,
739,
4600,
12001,
62,
6978,
63,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1174,
15211,
6,
357,
37814,
664,
1834,
2280,
739,
4600,
12001,
62,
6978,
63,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
24620,
9078,
6,
357,
16833,
11361,
8265,
3264,
739,
4600,
12001,
62,
6978,
63,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1174,
15211,
13,
9078,
6,
357,
16833,
11361,
8265,
664,
1834,
2280,
739,
4600,
12001,
62,
6978,
63,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3503,
13,
628,
220,
220,
220,
220,
220,
220,
220,
17934,
25,
11691,
1459,
19236,
318,
264,
18,
1378,
1820,
12,
2398,
11,
351,
628,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
6978,
25,
1220,
11195,
14,
1326,
14,
1818,
14,
7890,
14,
5431,
89,
11,
7268,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2644,
14,
5431,
89,
14,
64,
13,
14116,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2644,
14,
5431,
89,
14,
65,
13,
14116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11485,
14,
5431,
89,
14,
7357,
87,
14,
7252,
13,
14116,
8,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
6978,
25,
27039,
16,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
3672,
25,
705,
1174,
15211,
6,
198,
220,
220,
220,
220,
220,
220,
220,
14610,
6569,
3696,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
18,
1378,
1820,
12,
2398,
14,
19608,
292,
316,
16,
14,
5431,
89,
14,
64,
13,
14116,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
18,
1378,
1820,
12,
2398,
14,
19608,
292,
316,
16,
14,
5431,
89,
14,
65,
13,
14116,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
18,
1378,
1820,
12,
2398,
14,
19608,
292,
316,
16,
14,
5431,
89,
14,
7357,
87,
14,
7252,
13,
14116,
628,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
6978,
25,
1220,
11195,
14,
1326,
14,
1818,
14,
7890,
14,
5431,
89,
14,
357,
11295,
262,
25462,
31051,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
14610,
6569,
3696,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
18,
1378,
1820,
12,
2398,
14,
19608,
292,
316,
16,
14,
64,
13,
14116,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
18,
1378,
1820,
12,
2398,
14,
19608,
292,
316,
16,
14,
65,
13,
14116,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
18,
1378,
1820,
12,
2398,
14,
19608,
292,
316,
16,
14,
7357,
87,
14,
7252,
13,
14116,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
351,
62,
15763,
796,
407,
1957,
62,
6978,
13,
437,
2032,
342,
10786,
14,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
6978,
796,
10644,
7,
12001,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1957,
62,
6978,
13,
271,
62,
15908,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
35528,
10786,
64,
8619,
1438,
318,
2938,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
13760,
796,
685,
85,
329,
410,
287,
1957,
62,
6978,
13,
4743,
672,
7,
33279,
8,
611,
410,
13,
271,
62,
7753,
3419,
60,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
6978,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
82,
18,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
10139,
287,
13760,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
10139,
13,
43762,
62,
1462,
7,
12001,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
351,
62,
15763,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
1957,
62,
6978,
13,
3672,
1220,
1994,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
264,
18,
62,
6978,
1220,
1994,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25850,
7,
17440,
11,
965,
7,
2539,
4008,
628,
220,
220,
220,
825,
4321,
7,
944,
11,
264,
18,
62,
2539,
25,
965,
11,
1957,
62,
7753,
25,
965,
796,
6045,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
2539,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
82,
18,
62,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1957,
62,
7753,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
7753,
796,
965,
7,
15235,
7,
82,
18,
62,
2539,
737,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
27041,
316,
13,
15002,
62,
7753,
7,
82,
18,
62,
2539,
11,
1957,
62,
7753,
8,
628,
220,
220,
220,
825,
4321,
62,
21048,
7,
944,
11,
264,
18,
62,
6978,
25,
965,
11,
1957,
62,
6978,
25,
965,
796,
6045,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
6978,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
82,
18,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
628,
220,
220,
220,
825,
43979,
7,
944,
11,
1994,
11,
45115,
25,
20512,
796,
10352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
7343,
2134,
3891,
3264,
393,
664,
1834,
2280,
3706,
588,
4600,
2539,
9,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
4600,
2539,
63,
318,
4600,
39305,
14,
4299,
14,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
788,
4600,
39305,
14,
4299,
14,
10163,
14,
2231,
63,
481,
1441,
355,
4600,
10163,
14,
2231,
63,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
4600,
2539,
63,
318,
4600,
39305,
14,
4299,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
788,
4600,
39305,
14,
4299,
456,
14,
2231,
63,
481,
1441,
355,
4600,
4299,
456,
14,
2231,
63,
26,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4600,
39305,
14,
4299,
14,
456,
63,
481,
1441,
355,
4600,
14,
456,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1406,
611,
345,
760,
4600,
2539,
63,
318,
257,
4600,
34945,
47671,
788,
340,
338,
257,
922,
2126,
284,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2291,
262,
25462,
4600,
14,
63,
287,
4600,
2539,
44646,
628,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
2539,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1976,
796,
2116,
13557,
27041,
316,
13,
48205,
13,
24455,
7,
36698,
844,
28,
2539,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
13,
437,
2032,
342,
10786,
14,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
11925,
796,
18896,
7,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
11925,
796,
1994,
13,
81,
19796,
10786,
14,
11537,
1343,
352,
628,
220,
220,
220,
220,
220,
220,
220,
611,
45115,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
85,
13,
2539,
58,
2539,
62,
11925,
47715,
329,
410,
287,
1976,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
428,
318,
257,
17301,
11,
275,
14,
66,
612,
460,
307,
867,
11,
867,
4847,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8251,
796,
900,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
1976,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
85,
796,
410,
13,
2539,
58,
2539,
62,
11925,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
410,
85,
13,
19796,
10786,
14,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4686,
87,
18189,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
85,
796,
410,
85,
58,
25,
4686,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8251,
13,
2860,
7,
25093,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
23243,
7,
4868,
7,
13083,
4008,
628,
220,
220,
220,
825,
468,
7,
944,
11,
1994,
25,
965,
8,
4613,
20512,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
2539,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
468,
35226,
7,
944,
11,
705,
62,
82,
18,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
82,
18,
796,
4808,
1136,
62,
16366,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4808,
10134,
62,
2539,
7,
944,
13557,
82,
18,
11,
2116,
13557,
27041,
316,
13,
3672,
11,
1994,
8,
628,
220,
220,
220,
825,
12233,
7,
944,
11,
1994,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
2539,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
468,
35226,
7,
944,
11,
705,
62,
82,
18,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
82,
18,
796,
4808,
1136,
62,
16366,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
33678,
62,
2539,
7,
944,
13557,
82,
18,
11,
2116,
13557,
27041,
316,
13,
3672,
11,
1994,
8,
628,
220,
220,
220,
825,
12233,
62,
21048,
7,
944,
11,
264,
18,
62,
6978,
25,
965,
8,
4613,
493,
25,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
62,
6978,
796,
2116,
13557,
28956,
62,
27041,
316,
62,
2539,
7,
82,
18,
62,
6978,
8,
628,
220,
220,
220,
220,
220,
220,
220,
299,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
77,
796,
2116,
13557,
33678,
62,
21048,
7,
82,
18,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
299,
77,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
796,
3509,
7,
77,
11,
299,
77,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
299,
628,
220,
220,
220,
825,
4808,
33678,
62,
21048,
7,
944,
11,
264,
18,
62,
6978,
25,
965,
8,
4613,
493,
25,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
262,
1271,
286,
5563,
13140,
13,
628,
220,
220,
220,
220,
220,
220,
220,
2293,
428,
4905,
11,
262,
705,
43551,
6,
4600,
82,
18,
62,
6978,
63,
318,
635,
3750,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16926,
46,
25,
428,
318,
407,
262,
14162,
835,
284,
466,
340,
13,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
264,
18,
62,
6978,
13,
437,
2032,
342,
10786,
14,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
2116,
13,
7278,
7,
82,
18,
62,
6978,
11,
45115,
28,
17821,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
74,
796,
264,
18,
62,
6978,
1343,
479,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33678,
7,
28747,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
299,
628,
198,
4299,
4646,
62,
65,
2069,
62,
6404,
2667,
33529,
198,
220,
220,
220,
1330,
275,
2069,
18,
13,
82,
18,
13,
39437,
198,
220,
220,
220,
6818,
275,
2069,
18,
13,
82,
18,
13,
39437,
220,
1303,
9550,
12972,
2704,
1124,
198,
220,
220,
220,
329,
1438,
287,
18931,
13,
11187,
1362,
13,
37153,
13,
6404,
1362,
35,
713,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1438,
13,
9688,
2032,
342,
10786,
65,
2069,
11537,
393,
1438,
13,
9688,
2032,
342,
10786,
333,
297,
571,
18,
11537,
393,
1438,
13,
9688,
2032,
342,
10786,
82,
18,
39437,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18931,
13,
1136,
11187,
1362,
7,
3672,
737,
2617,
4971,
7,
6404,
2667,
13,
24908,
8,
198
] | 2.039862 | 3,487 |
import numpy as np
import cudamat as cm
def matrix_factorization_clustering(X_aux, k, l, norm=False, num_iters=100):
cm.cublas_init()
m, n = X_aux.shape
U = cm.CUDAMatrix(np.random.rand(m, k))
S = cm.CUDAMatrix(np.random.rand(k, l))
V = cm.CUDAMatrix(np.random.rand(n, l))
X = cm.CUDAMatrix(X_aux)
# if norm:
# X = Normalizer().fit_transform(X)
XV = cm.CUDAMatrix(np.random.rand(m, l))
XVSt = cm.CUDAMatrix(np.random.rand(m, k))
US = cm.CUDAMatrix(np.random.rand(m, l))
USVt = cm.CUDAMatrix(np.random.rand(m, n))
USVtXt = cm.CUDAMatrix(np.random.rand(m, m))
USVtXtU = cm.CUDAMatrix(np.random.rand(m, k))
U_aux = cm.CUDAMatrix(np.random.rand(m, k))
XtUS = cm.CUDAMatrix(np.random.rand(m, l))
VSt = cm.CUDAMatrix(np.random.rand(n, k))
VStUt = cm.CUDAMatrix(np.random.rand(n, m))
UtX = cm.CUDAMatrix(np.random.rand(k, n))
VStUtXV = cm.CUDAMatrix(np.random.rand(n, l))
V_aux = cm.CUDAMatrix(np.random.rand(n, l))
UtXV = cm.CUDAMatrix(np.random.rand(k, l))
UtUS = cm.CUDAMatrix(np.random.rand(k, l))
UtUSVt = cm.CUDAMatrix(np.random.rand(k, n))
UtUSVtV = cm.CUDAMatrix(np.random.rand(k, l))
S_aux = cm.CUDAMatrix(np.random.rand(k, l))
error_best = np.inf
error = np.inf
for i in range(num_iters):
# compute U
cm.dot(X, V, target=XV)
cm.dot(XV, S.T, target=XVSt)
if i is 0:
cm.dot(U, S, target=US)
cm.dot(US, V.T, target=USVt)
cm.dot(USVt, X.T, target=USVtXt)
cm.dot(USVtXt, U, target=USVtXtU)
cm.divide(XVSt, USVtXtU, U_aux)
cm.mult(U, U_aux, U)
# compute V
cm.dot(U, S, target=US)
cm.dot(X.T, US, target=XtUS)
cm.dot(V, S.T, target=VSt)
cm.dot(VSt, U.T, target=VStUt)
cm.dot(VStUt, XV, target=VStUtXV)
cm.divide(XtUS, VStUtXV, target=V_aux)
cm.mult(V, V_aux, V)
# compute S
cm.dot(U.T, X, target=UtX)
cm.dot(UtX, V, target=UtXV)
cm.dot(U.T, US, target=UtUS)
cm.dot(UtUS, V.T, UtUSVt)
cm.dot(UtUSVt, V, target=UtUSVtV)
cm.divide(UtXV, UtUSVtV, target=S_aux)
cm.mult(S, S_aux, target=S)
error_ant = error
cm.dot(U, S, target=US)
cm.dot(US, V.T, target=USVt)
error = cm.sum(cm.pow(cm.subtract(X, USVt), 2), axis=0)
if error < error_best:
U_best_cm = U
S_best_cm = S
V_best_cm = V
error_best = error
if np.abs(error - error_ant) <= 0.000001:
break
U_best = U_best_cm.asarray()
S_best = S_best_cm.asarray()
V_best = V_best_cm.asarray()
Du = np.diag(np.ones(m).dot(U_best))
Dv = np.diag(np.ones(n).dot(V_best))
U_norm = U_best.dot( np.diag(S_best.dot(Dv).dot(np.ones(l))) )
V_norm = V_best.dot( np.diag(np.ones(k).dot(Du).dot(S_best)) )
rows_ind = np.argmax(U_best, axis=1)
cols_ind = np.argmax(V_best, axis=1)
cm.shutdown()
return U_norm, S_best, V_norm, rows_ind, cols_ind, error_best
| [
198,
11748,
299,
32152,
355,
45941,
198,
11748,
269,
463,
321,
265,
355,
12067,
628,
198,
4299,
17593,
62,
31412,
1634,
62,
565,
436,
1586,
7,
55,
62,
14644,
11,
479,
11,
300,
11,
2593,
28,
25101,
11,
997,
62,
270,
364,
28,
3064,
2599,
198,
220,
220,
220,
12067,
13,
66,
549,
21921,
62,
15003,
3419,
628,
220,
220,
220,
285,
11,
299,
796,
1395,
62,
14644,
13,
43358,
198,
220,
220,
220,
471,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
479,
4008,
198,
220,
220,
220,
311,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
300,
4008,
198,
220,
220,
220,
569,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
77,
11,
300,
4008,
628,
220,
220,
220,
1395,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
55,
62,
14644,
8,
628,
220,
220,
220,
1303,
611,
2593,
25,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
1395,
796,
14435,
7509,
22446,
11147,
62,
35636,
7,
55,
8,
628,
220,
220,
220,
29922,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
300,
4008,
198,
220,
220,
220,
29922,
1273,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
479,
4008,
198,
220,
220,
220,
1294,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
300,
4008,
198,
220,
220,
220,
1294,
53,
83,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
299,
4008,
198,
220,
220,
220,
1294,
53,
83,
55,
83,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
285,
4008,
198,
220,
220,
220,
1294,
53,
83,
55,
83,
52,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
479,
4008,
198,
220,
220,
220,
471,
62,
14644,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
479,
4008,
628,
220,
220,
220,
1395,
83,
2937,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
76,
11,
300,
4008,
198,
220,
220,
220,
569,
1273,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
77,
11,
479,
4008,
198,
220,
220,
220,
569,
1273,
18274,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
77,
11,
285,
4008,
198,
220,
220,
220,
7273,
55,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
299,
4008,
198,
220,
220,
220,
569,
1273,
18274,
55,
53,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
77,
11,
300,
4008,
198,
220,
220,
220,
569,
62,
14644,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
77,
11,
300,
4008,
628,
220,
220,
220,
7273,
55,
53,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
300,
4008,
198,
220,
220,
220,
7273,
2937,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
300,
4008,
198,
220,
220,
220,
7273,
2937,
53,
83,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
299,
4008,
198,
220,
220,
220,
7273,
2937,
53,
83,
53,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
300,
4008,
198,
220,
220,
220,
311,
62,
14644,
796,
12067,
13,
34,
8322,
2390,
265,
8609,
7,
37659,
13,
25120,
13,
25192,
7,
74,
11,
300,
4008,
628,
220,
220,
220,
4049,
62,
13466,
796,
45941,
13,
10745,
198,
220,
220,
220,
4049,
796,
45941,
13,
10745,
628,
220,
220,
220,
329,
1312,
287,
2837,
7,
22510,
62,
270,
364,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
24061,
471,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
55,
11,
569,
11,
2496,
28,
55,
53,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
55,
53,
11,
311,
13,
51,
11,
2496,
28,
55,
53,
1273,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
318,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
52,
11,
311,
11,
2496,
28,
2937,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
2937,
11,
569,
13,
51,
11,
2496,
28,
2937,
53,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
2937,
53,
83,
11,
1395,
13,
51,
11,
2496,
28,
2937,
53,
83,
55,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
2937,
53,
83,
55,
83,
11,
471,
11,
2496,
28,
2937,
53,
83,
55,
83,
52,
8,
628,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
7146,
485,
7,
55,
53,
1273,
11,
1294,
53,
83,
55,
83,
52,
11,
471,
62,
14644,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
16680,
7,
52,
11,
471,
62,
14644,
11,
471,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
24061,
569,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
52,
11,
311,
11,
2496,
28,
2937,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
55,
13,
51,
11,
1294,
11,
2496,
28,
55,
83,
2937,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
53,
11,
311,
13,
51,
11,
2496,
28,
53,
1273,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
53,
1273,
11,
471,
13,
51,
11,
2496,
28,
53,
1273,
18274,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
53,
1273,
18274,
11,
29922,
11,
2496,
28,
53,
1273,
18274,
55,
53,
8,
628,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
7146,
485,
7,
55,
83,
2937,
11,
569,
1273,
18274,
55,
53,
11,
2496,
28,
53,
62,
14644,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
16680,
7,
53,
11,
569,
62,
14644,
11,
569,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
24061,
311,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
52,
13,
51,
11,
1395,
11,
2496,
28,
18274,
55,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
18274,
55,
11,
569,
11,
2496,
28,
18274,
55,
53,
8,
628,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
52,
13,
51,
11,
1294,
11,
2496,
28,
18274,
2937,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
18274,
2937,
11,
569,
13,
51,
11,
7273,
2937,
53,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
18274,
2937,
53,
83,
11,
569,
11,
2496,
28,
18274,
2937,
53,
83,
53,
8,
628,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
7146,
485,
7,
18274,
55,
53,
11,
7273,
2937,
53,
83,
53,
11,
2496,
28,
50,
62,
14644,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
16680,
7,
50,
11,
311,
62,
14644,
11,
2496,
28,
50,
8,
628,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
415,
796,
4049,
628,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
52,
11,
311,
11,
2496,
28,
2937,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12067,
13,
26518,
7,
2937,
11,
569,
13,
51,
11,
2496,
28,
2937,
53,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
796,
12067,
13,
16345,
7,
11215,
13,
79,
322,
7,
11215,
13,
7266,
83,
974,
7,
55,
11,
1294,
53,
83,
828,
362,
828,
16488,
28,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
4049,
1279,
4049,
62,
13466,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
471,
62,
13466,
62,
11215,
796,
471,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
311,
62,
13466,
62,
11215,
796,
311,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
569,
62,
13466,
62,
11215,
796,
569,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
13466,
796,
4049,
628,
220,
220,
220,
220,
220,
220,
220,
611,
45941,
13,
8937,
7,
18224,
532,
4049,
62,
415,
8,
19841,
657,
13,
2388,
486,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
628,
220,
220,
220,
220,
220,
220,
220,
471,
62,
13466,
796,
471,
62,
13466,
62,
11215,
13,
292,
18747,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
311,
62,
13466,
796,
311,
62,
13466,
62,
11215,
13,
292,
18747,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
569,
62,
13466,
796,
569,
62,
13466,
62,
11215,
13,
292,
18747,
3419,
628,
220,
220,
220,
10343,
796,
45941,
13,
10989,
363,
7,
37659,
13,
1952,
7,
76,
737,
26518,
7,
52,
62,
13466,
4008,
198,
220,
220,
220,
360,
85,
796,
45941,
13,
10989,
363,
7,
37659,
13,
1952,
7,
77,
737,
26518,
7,
53,
62,
13466,
4008,
628,
220,
220,
220,
471,
62,
27237,
796,
471,
62,
13466,
13,
26518,
7,
45941,
13,
10989,
363,
7,
50,
62,
13466,
13,
26518,
7,
35,
85,
737,
26518,
7,
37659,
13,
1952,
7,
75,
22305,
1267,
198,
220,
220,
220,
569,
62,
27237,
796,
569,
62,
13466,
13,
26518,
7,
45941,
13,
10989,
363,
7,
37659,
13,
1952,
7,
74,
737,
26518,
7,
35660,
737,
26518,
7,
50,
62,
13466,
4008,
1267,
628,
220,
220,
220,
15274,
62,
521,
796,
45941,
13,
853,
9806,
7,
52,
62,
13466,
11,
16488,
28,
16,
8,
198,
220,
220,
220,
951,
82,
62,
521,
796,
45941,
13,
853,
9806,
7,
53,
62,
13466,
11,
16488,
28,
16,
8,
628,
220,
220,
220,
12067,
13,
49625,
2902,
3419,
628,
220,
220,
220,
1441,
471,
62,
27237,
11,
311,
62,
13466,
11,
569,
62,
27237,
11,
15274,
62,
521,
11,
951,
82,
62,
521,
11,
4049,
62,
13466,
198
] | 1.759207 | 1,765 |
from typing import Union, Dict, List, Any, Tuple, Optional
import json, tempfile, os, logging, re, shutil, mimetypes, good
from tornado import httpclient, web, queues
from storitch import utils, config
from storitch.decorators import run_on_executor
from wand import image, exceptions
class Base_handler(web.RequestHandler):
def write_object(self, data: Union[Dict, List]) -> None:
self.set_json_headers()
self.write(json.dumps(data))
def set_json_headers(self) -> None:
self.set_header('Cache-Control', 'no-cache, must-revalidate')
self.set_header('Expires', 'Sat, 26 Jul 1997 05:00:00 GMT')
self.set_header('Content-Type', 'application/json')
def write_error(self, status_code: int, **kwargs) -> None:
self.set_json_headers()
error = {'error': 'Unknown error'}
if 'exc_info' in kwargs:
error['error'] = str(kwargs['exc_info'][1])
self.set_status(status_code)
self.write_object(error)
def get_content_type(self, path: str) -> str:
# From: https://www.tornadoweb.org/en/stable/_modules/tornado/web.html#StaticFileHandler
mime_type, encoding = mimetypes.guess_type(path)
# per RFC 6713, use the appropriate type for a gzip compressed file
if encoding == "gzip":
return "application/gzip"
# As of 2015-07-21 there is no bzip2 encoding defined at
# http://www.iana.org/assignments/media-types/media-types.xhtml
# So for that (and any other encoding), use octet-stream.
elif encoding is not None:
return "application/octet-stream"
elif mime_type is not None:
return mime_type
# if mime_type not detected, use application/octet-stream
else:
return "application/octet-stream"
class Multipart_handler(Base_handler):
class Thumbnail_handler(Base_handler):
def move_to_permanent_store(temp_path: str, filename: str) -> Dict[str, Any]:
hash_ = utils.file_sha256(temp_path)
path = os.path.abspath(os.path.join(
os.path.realpath(config['store_path']),
utils.path_from_hash(hash_),
))
if not os.path.exists(path):
os.makedirs(path, mode=0o755)
path = os.path.join(path, hash_)
if not os.path.exists(path):
shutil.move(temp_path, path)
os.chmod(path, 0o755)
else:
os.remove(temp_path)
extra = {
'type': 'file',
}
d = os.path.splitext(filename)
if len(d) == 2:
ext = d[1]
if ext.lower() in config['image_exts']:
wh = image_width_high(path)
if wh:
wh['type'] = 'image'
if wh:
extra.update(wh)
return {
'stored': True,
'filesize': os.stat(path).st_size,
'hash': hash_,
'filename': filename,
**extra
}
def image_width_high(path) -> Optional[Dict[str, int]]:
try:
with image.Image(filename=path) as img:
return {
'width': img.width,
'height': img.height,
}
except (ValueError, exceptions.MissingDelegateError):
return None
def thumbnail(path: str) -> bool:
'''
Specify the path and add a "@" followed by the arguments.
This allows us to easily get the original file, make the changes,
save the file with the full path, so the server never has to do
the operation again, as long as the arguments are precisely the same.
Arguments can be specified as followed:
SXx - Width, keeps aspect ratio
SYx - Height, keeps aspect ration.
Ignored if SX is specified.
ROTATEx - Number of degrees you wise to
rotate the image. Supports
negative numbers.
RESx - Resolution, used for PDF
files, the higher the number,
the better the quality.
PAGEx - Page index in the PDF document.
The file format can be specified by ending the path with
E.g. .jpg, .png, .tiff, etc.
The arguments can be separated with _ or just
don't separate them. Works either way.
Example:
/foo/14bc...@SX1024_ROTATE90.png
Resizes the image to a width of 1024, rotates it 90 degrees and converts
it to a PNG file.
:param path: str
'''
p = path.split('@')
if len(p) != 2:
return False
if os.path.exists(path):
return True
size_match, rotate_match, resolution_match, \
page_match, format_match = __parse_arguments(p[1])
# a specific page in a PDF document
if page_match and page_match.group(1) != None:
page = '[{}]'.format(page_match.group(1))
else:
# Prevent a dicom file or pdf file from extracting multiple images
page = '[0]'
o = {
'filename': p[0]+page
}
if resolution_match and resolution_match.group(1) != None:
o['resolution'] = int(resolution_match.group(1))
with image.Image(**o) as img:
if size_match:
# resize, keep aspect ratio
if size_match.group(1) != None:# width
img.transform(resize=size_match.group(1))
elif size_match.group(2) != None:# height
img.transform(resize='x'+size_match.group(2))
if rotate_match:
if rotate_match.group(1) != None:
img.rotate(int(rotate_match.group(1)))
if format_match:
img.format = format_match.group(1)
img.save(filename=path)
return True
def __parse_arguments(arguments: str) -> Tuple[str, str, str, str, str]:
size_match = re.search(
'SX(\d+)|SY(\d+)',
arguments,
re.I
)
rotate_match = re.search(
'ROTATE(-?\d+)',
arguments,
re.I
)
resolution_match = re.search(
'RES(\d+)',
arguments,
re.I
)
page_match = re.search(
'PAGE(\d+)',
arguments,
re.I
)
format_match = re.search(
'\.([a-z0-9]{2,5})',
arguments,
re.I
)
return (
size_match,
rotate_match,
resolution_match,
page_match,
format_match,
) | [
6738,
19720,
1330,
4479,
11,
360,
713,
11,
7343,
11,
4377,
11,
309,
29291,
11,
32233,
198,
11748,
33918,
11,
20218,
7753,
11,
28686,
11,
18931,
11,
302,
11,
4423,
346,
11,
17007,
2963,
12272,
11,
922,
198,
6738,
33718,
1330,
2638,
16366,
11,
3992,
11,
43359,
198,
6738,
336,
273,
2007,
1330,
3384,
4487,
11,
4566,
198,
6738,
336,
273,
2007,
13,
12501,
273,
2024,
1330,
1057,
62,
261,
62,
18558,
38409,
198,
6738,
11569,
1330,
2939,
11,
13269,
198,
198,
4871,
7308,
62,
30281,
7,
12384,
13,
18453,
25060,
2599,
628,
220,
220,
220,
825,
3551,
62,
15252,
7,
944,
11,
1366,
25,
4479,
58,
35,
713,
11,
7343,
12962,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
17752,
62,
50145,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13564,
7,
17752,
13,
67,
8142,
7,
7890,
4008,
628,
220,
220,
220,
825,
900,
62,
17752,
62,
50145,
7,
944,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
25677,
10786,
30562,
12,
15988,
3256,
705,
3919,
12,
23870,
11,
1276,
12,
260,
12102,
378,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
25677,
10786,
16870,
2387,
3256,
705,
20245,
11,
2608,
5979,
8309,
8870,
25,
405,
25,
405,
16987,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
25677,
10786,
19746,
12,
6030,
3256,
705,
31438,
14,
17752,
11537,
628,
220,
220,
220,
825,
3551,
62,
18224,
7,
944,
11,
3722,
62,
8189,
25,
493,
11,
12429,
46265,
22046,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
17752,
62,
50145,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
796,
1391,
6,
18224,
10354,
705,
20035,
4049,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
41194,
62,
10951,
6,
287,
479,
86,
22046,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
17816,
18224,
20520,
796,
965,
7,
46265,
22046,
17816,
41194,
62,
10951,
6,
7131,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
13376,
7,
13376,
62,
8189,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13564,
62,
15252,
7,
18224,
8,
628,
220,
220,
220,
825,
651,
62,
11299,
62,
4906,
7,
944,
11,
3108,
25,
965,
8,
4613,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3574,
25,
3740,
1378,
2503,
13,
45910,
4584,
1765,
13,
2398,
14,
268,
14,
31284,
47835,
18170,
14,
45910,
4533,
14,
12384,
13,
6494,
2,
45442,
8979,
25060,
198,
220,
220,
220,
220,
220,
220,
220,
285,
524,
62,
4906,
11,
21004,
796,
17007,
2963,
12272,
13,
5162,
408,
62,
4906,
7,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
583,
30978,
8275,
1485,
11,
779,
262,
5035,
2099,
329,
257,
308,
13344,
25388,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
611,
21004,
6624,
366,
70,
13344,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
366,
31438,
14,
70,
13344,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1081,
286,
1853,
12,
2998,
12,
2481,
612,
318,
645,
275,
13344,
17,
21004,
5447,
379,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2638,
1378,
2503,
13,
7484,
13,
2398,
14,
562,
570,
902,
14,
11431,
12,
19199,
14,
11431,
12,
19199,
13,
87,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1406,
329,
326,
357,
392,
597,
584,
21004,
828,
779,
19318,
316,
12,
5532,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
21004,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
366,
31438,
14,
38441,
316,
12,
5532,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
285,
524,
62,
4906,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
285,
524,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
285,
524,
62,
4906,
407,
12326,
11,
779,
3586,
14,
38441,
316,
12,
5532,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
366,
31438,
14,
38441,
316,
12,
5532,
1,
198,
198,
4871,
7854,
541,
433,
62,
30281,
7,
14881,
62,
30281,
2599,
198,
198,
4871,
536,
20566,
62,
30281,
7,
14881,
62,
30281,
2599,
198,
198,
4299,
1445,
62,
1462,
62,
525,
44172,
62,
8095,
7,
29510,
62,
6978,
25,
965,
11,
29472,
25,
965,
8,
4613,
360,
713,
58,
2536,
11,
4377,
5974,
198,
220,
220,
220,
12234,
62,
796,
3384,
4487,
13,
7753,
62,
26270,
11645,
7,
29510,
62,
6978,
8,
628,
220,
220,
220,
3108,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
5305,
6978,
7,
11250,
17816,
8095,
62,
6978,
20520,
828,
198,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
6978,
62,
6738,
62,
17831,
7,
17831,
62,
828,
198,
220,
220,
220,
15306,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
6978,
11,
4235,
28,
15,
78,
38172,
8,
198,
220,
220,
220,
3108,
796,
28686,
13,
6978,
13,
22179,
7,
6978,
11,
12234,
62,
8,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4423,
346,
13,
21084,
7,
29510,
62,
6978,
11,
3108,
8,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
4666,
7,
6978,
11,
657,
78,
38172,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28956,
7,
29510,
62,
6978,
8,
198,
220,
220,
220,
3131,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4906,
10354,
705,
7753,
3256,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
288,
796,
28686,
13,
6978,
13,
22018,
578,
742,
7,
34345,
8,
198,
220,
220,
220,
611,
18896,
7,
67,
8,
6624,
362,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1070,
796,
288,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1070,
13,
21037,
3419,
287,
4566,
17816,
9060,
62,
2302,
82,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
348,
796,
2939,
62,
10394,
62,
8929,
7,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
348,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
348,
17816,
4906,
20520,
796,
705,
9060,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
348,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3131,
13,
19119,
7,
1929,
8,
628,
220,
220,
220,
1441,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
301,
1850,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
16624,
1096,
10354,
28686,
13,
14269,
7,
6978,
737,
301,
62,
7857,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
17831,
10354,
12234,
62,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
34345,
10354,
29472,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12429,
26086,
198,
220,
220,
220,
1782,
198,
198,
4299,
2939,
62,
10394,
62,
8929,
7,
6978,
8,
4613,
32233,
58,
35,
713,
58,
2536,
11,
493,
60,
5974,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
351,
2939,
13,
5159,
7,
34345,
28,
6978,
8,
355,
33705,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10394,
10354,
33705,
13,
10394,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
17015,
10354,
33705,
13,
17015,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
2845,
357,
11395,
12331,
11,
13269,
13,
43730,
5005,
34637,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
198,
4299,
40901,
7,
6978,
25,
965,
8,
4613,
20512,
25,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
18291,
1958,
262,
3108,
290,
751,
257,
44212,
1,
3940,
416,
262,
7159,
13,
628,
220,
220,
220,
770,
3578,
514,
284,
3538,
651,
262,
2656,
2393,
11,
787,
262,
2458,
11,
198,
220,
220,
220,
3613,
262,
2393,
351,
262,
1336,
3108,
11,
523,
262,
4382,
1239,
468,
284,
466,
198,
220,
220,
220,
262,
4905,
757,
11,
355,
890,
355,
262,
7159,
389,
10582,
262,
976,
13,
628,
220,
220,
220,
20559,
2886,
460,
307,
7368,
355,
3940,
25,
628,
220,
220,
220,
220,
220,
220,
220,
44205,
87,
220,
220,
220,
220,
220,
220,
220,
220,
532,
38807,
11,
7622,
4843,
8064,
198,
220,
220,
220,
220,
220,
220,
220,
19704,
87,
220,
220,
220,
220,
220,
220,
220,
220,
532,
27280,
11,
7622,
4843,
36535,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16583,
1850,
611,
44205,
318,
7368,
13,
198,
220,
220,
220,
220,
220,
220,
220,
371,
2394,
1404,
3109,
220,
220,
220,
220,
532,
7913,
286,
7370,
345,
10787,
284,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23064,
262,
2939,
13,
45267,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4633,
3146,
13,
198,
220,
220,
220,
220,
220,
220,
220,
15731,
87,
220,
220,
220,
220,
220,
220,
220,
532,
22406,
11,
973,
329,
12960,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3696,
11,
262,
2440,
262,
1271,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
262,
1365,
262,
3081,
13,
198,
220,
220,
220,
220,
220,
220,
220,
350,
4760,
3109,
220,
220,
220,
220,
220,
220,
532,
7873,
6376,
287,
262,
12960,
3188,
13,
628,
220,
220,
220,
383,
2393,
5794,
460,
307,
7368,
416,
7464,
262,
3108,
351,
198,
220,
220,
220,
412,
13,
70,
13,
764,
9479,
11,
764,
11134,
11,
764,
83,
733,
11,
3503,
13,
628,
220,
220,
220,
383,
7159,
460,
307,
11266,
351,
4808,
393,
655,
198,
220,
220,
220,
836,
470,
4553,
606,
13,
10933,
2035,
835,
13,
220,
628,
220,
220,
220,
17934,
25,
628,
220,
220,
220,
220,
220,
220,
220,
1220,
21943,
14,
1415,
15630,
986,
31,
50,
55,
35500,
62,
49,
2394,
6158,
3829,
13,
11134,
628,
220,
220,
220,
1874,
4340,
262,
2939,
284,
257,
9647,
286,
28119,
11,
5724,
689,
340,
4101,
7370,
290,
26161,
220,
198,
220,
220,
220,
340,
284,
257,
36182,
2393,
13,
628,
220,
220,
220,
1058,
17143,
3108,
25,
965,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
279,
796,
3108,
13,
35312,
10786,
31,
11537,
198,
220,
220,
220,
611,
18896,
7,
79,
8,
14512,
362,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
198,
220,
220,
220,
2546,
62,
15699,
11,
23064,
62,
15699,
11,
6323,
62,
15699,
11,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
62,
15699,
11,
5794,
62,
15699,
796,
11593,
29572,
62,
853,
2886,
7,
79,
58,
16,
12962,
628,
220,
220,
220,
1303,
257,
2176,
2443,
287,
257,
12960,
3188,
198,
220,
220,
220,
611,
2443,
62,
15699,
290,
2443,
62,
15699,
13,
8094,
7,
16,
8,
14512,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
796,
44438,
90,
92,
60,
4458,
18982,
7,
7700,
62,
15699,
13,
8094,
7,
16,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
31572,
257,
288,
291,
296,
2393,
393,
37124,
2393,
422,
37895,
3294,
4263,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
796,
44438,
15,
49946,
628,
220,
220,
220,
267,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
34345,
10354,
279,
58,
15,
48688,
7700,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
611,
6323,
62,
15699,
290,
6323,
62,
15699,
13,
8094,
7,
16,
8,
14512,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
267,
17816,
29268,
20520,
796,
493,
7,
29268,
62,
15699,
13,
8094,
7,
16,
4008,
628,
220,
220,
220,
351,
2939,
13,
5159,
7,
1174,
78,
8,
355,
33705,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2546,
62,
15699,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
47558,
11,
1394,
4843,
8064,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2546,
62,
15699,
13,
8094,
7,
16,
8,
14512,
6045,
43922,
9647,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
13,
35636,
7,
411,
1096,
28,
7857,
62,
15699,
13,
8094,
7,
16,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2546,
62,
15699,
13,
8094,
7,
17,
8,
14512,
6045,
43922,
6001,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
13,
35636,
7,
411,
1096,
11639,
87,
6,
10,
7857,
62,
15699,
13,
8094,
7,
17,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
23064,
62,
15699,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
23064,
62,
15699,
13,
8094,
7,
16,
8,
14512,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
13,
10599,
378,
7,
600,
7,
10599,
378,
62,
15699,
13,
8094,
7,
16,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5794,
62,
15699,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
13,
18982,
796,
5794,
62,
15699,
13,
8094,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
13,
21928,
7,
34345,
28,
6978,
8,
198,
220,
220,
220,
1441,
6407,
198,
198,
4299,
11593,
29572,
62,
853,
2886,
7,
853,
2886,
25,
965,
8,
4613,
309,
29291,
58,
2536,
11,
965,
11,
965,
11,
965,
11,
965,
5974,
198,
220,
220,
220,
2546,
62,
15699,
796,
302,
13,
12947,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
50,
55,
38016,
67,
10,
14726,
23060,
38016,
67,
28988,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7159,
11,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
40,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
23064,
62,
15699,
796,
302,
13,
12947,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
49,
2394,
6158,
32590,
30,
59,
67,
28988,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7159,
11,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
40,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
6323,
62,
15699,
796,
302,
13,
12947,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
19535,
38016,
67,
28988,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7159,
11,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
40,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
2443,
62,
15699,
796,
302,
13,
12947,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4537,
8264,
38016,
67,
28988,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7159,
11,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
40,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
5794,
62,
15699,
796,
302,
13,
12947,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
59,
12195,
58,
64,
12,
89,
15,
12,
24,
60,
90,
17,
11,
20,
30072,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7159,
11,
198,
220,
220,
220,
220,
220,
220,
220,
302,
13,
40,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
1441,
357,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
220,
220,
23064,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6323,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2443,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5794,
62,
15699,
11,
198,
220,
220,
220,
1267
] | 2.184156 | 2,878 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Lucas Miguel S Ponce"
__email__ = "lucasmsp@gmail.com"
from ddf_library.bases.metadata import Status, OPTGroup
from ddf_library.bases.context_base import ContextBase
from ddf_library.ddf import DDF
from ddf_library.bases.ddf_model import ModelDDF
from ddf_library.utils import generate_info, read_stage_file, \
create_stage_files, save_stage_file
from pycompss.api.api import compss_wait_on, compss_delete_object
from pycompss.api.task import task
from pycompss.functions.reduce import merge_reduce
from pycompss.api.parameter import FILE_IN, COLLECTION_IN
import pandas as pd
import numpy as np
__all__ = ['PageRank']
# TODO: this algorithm can be optimized
class PageRank(ModelDDF):
# noinspection PyUnresolvedReferences
"""
PageRank is one of the methods Google uses to determine a page's
relevance or importance. The idea that Page Rank brought up was that, the
importance of any web page can be judged by looking at the pages that link
to it.
PageRank can be utilized in others domains. For example, may also be used
as a methodology to measure the apparent impact of a community.
.. note: This parallel implementation assumes that the list of unique
vertex can be fit in memory.
:Example:
>>> pr = PageRank(damping_factor=0.85)
>>> ddf2 = pr.transform(ddf1, inlink_col='col1', outlink_col='col2')
"""
def __init__(self, damping_factor=0.85, max_iters=100):
"""
:param damping_factor: Default damping factor is 0.85;
:param max_iters: Maximum number of iterations (default is 100).
"""
super(PageRank, self).__init__()
self.inlink_col = None
self.outlink_col = None
self.max_iters = max_iters
self.damping_factor = damping_factor
def transform(self, data, outlink_col, inlink_col):
"""
Generates the PageRank's result.
:param data: DDF
:param outlink_col: Out-link vertex;
:param inlink_col: In-link vertex;
:return: DDF with Vertex and Rank columns
"""
df, nfrag, tmp = self._ddf_initial_setup(data)
self.inlink_col = inlink_col
self.outlink_col = outlink_col
col1 = 'Vertex'
col2 = 'Rank'
"""
Load all URL's from the data and initialize their neighbors.
Initialize each page’s rank to 1.0.
"""
adj_list = [{} for _ in range(nfrag)]
rank_list = [{} for _ in range(nfrag)]
counts_in = [{} for _ in range(nfrag)]
for i in range(nfrag):
adj_list[i], rank_list[i], counts_in[i] = \
_pr_create_adjlist(df[i], inlink_col, outlink_col)
counts_in = merge_reduce(_merge_counts, counts_in)
for i in range(nfrag):
adj_list[i] = _pr_update_adjlist(adj_list[i], counts_in)
compss_delete_object(counts_in)
for iteration in range(self.max_iters):
"""Calculate the partial contribution of each vertex."""
contributions = [_calc_contribuitions(adj_list[i], rank_list[i])
for i in range(nfrag)]
merged_c = merge_reduce(_merge_counts, contributions)
"""Update each vertex rank in the fragment."""
rank_list = [_update_rank(rank_list[i], merged_c,
self.damping_factor)
for i in range(nfrag)]
merged_table = merge_ranks(rank_list, col1, col2)
result, info = _pagerank_split(merged_table, nfrag)
new_state_uuid = ContextBase\
.ddf_add_task(self.name,
status=Status.STATUS_COMPLETED,
opt=OPTGroup.OPT_OTHER,
info_data=info,
parent=[tmp.last_uuid],
result=result,
function=self.transform,
parameters=data)
return DDF(last_uuid=new_state_uuid)
def _pagerank_split(result, nfrag):
"""Split the list of vertex into nfrag parts.
Note: the list of unique vertex and their ranks must be fit in memory.
"""
result = compss_wait_on(result)
result = np.array_split(result, nfrag)
outfiles = create_stage_files(nfrag)
info = [0] * nfrag
for f, table in enumerate(result):
save_stage_file(outfiles[f], table)
info[f] = generate_info(table, f)
return outfiles, info
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
834,
9800,
834,
796,
366,
22946,
292,
29825,
311,
350,
27078,
1,
198,
834,
12888,
834,
796,
366,
75,
1229,
34432,
79,
31,
14816,
13,
785,
1,
198,
198,
6738,
288,
7568,
62,
32016,
13,
65,
1386,
13,
38993,
1330,
12678,
11,
39852,
13247,
198,
6738,
288,
7568,
62,
32016,
13,
65,
1386,
13,
22866,
62,
8692,
1330,
30532,
14881,
198,
6738,
288,
7568,
62,
32016,
13,
1860,
69,
1330,
360,
8068,
198,
6738,
288,
7568,
62,
32016,
13,
65,
1386,
13,
1860,
69,
62,
19849,
1330,
9104,
35,
8068,
198,
6738,
288,
7568,
62,
32016,
13,
26791,
1330,
7716,
62,
10951,
11,
1100,
62,
14247,
62,
7753,
11,
3467,
198,
220,
220,
220,
2251,
62,
14247,
62,
16624,
11,
3613,
62,
14247,
62,
7753,
198,
198,
6738,
12972,
5589,
824,
13,
15042,
13,
15042,
1330,
552,
824,
62,
17077,
62,
261,
11,
552,
824,
62,
33678,
62,
15252,
198,
6738,
12972,
5589,
824,
13,
15042,
13,
35943,
1330,
4876,
198,
6738,
12972,
5589,
824,
13,
12543,
2733,
13,
445,
7234,
1330,
20121,
62,
445,
7234,
198,
6738,
12972,
5589,
824,
13,
15042,
13,
17143,
2357,
1330,
45811,
62,
1268,
11,
20444,
16779,
2849,
62,
1268,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
198,
834,
439,
834,
796,
37250,
9876,
27520,
20520,
198,
198,
2,
16926,
46,
25,
428,
11862,
460,
307,
23392,
628,
198,
4871,
7873,
27520,
7,
17633,
35,
8068,
2599,
198,
220,
220,
220,
1303,
645,
1040,
14978,
9485,
3118,
411,
5634,
19927,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7873,
27520,
318,
530,
286,
262,
5050,
3012,
3544,
284,
5004,
257,
2443,
338,
198,
220,
220,
220,
23082,
393,
6817,
13,
383,
2126,
326,
7873,
10916,
3181,
510,
373,
326,
11,
262,
198,
220,
220,
220,
6817,
286,
597,
3992,
2443,
460,
307,
19589,
416,
2045,
379,
262,
5468,
326,
2792,
198,
220,
220,
220,
284,
340,
13,
628,
220,
220,
220,
7873,
27520,
460,
307,
21487,
287,
1854,
18209,
13,
1114,
1672,
11,
743,
635,
307,
973,
198,
220,
220,
220,
355,
257,
20411,
284,
3953,
262,
4156,
2928,
286,
257,
2055,
13,
628,
220,
220,
220,
11485,
3465,
25,
770,
10730,
7822,
18533,
326,
262,
1351,
286,
3748,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
460,
307,
4197,
287,
4088,
13,
628,
220,
220,
220,
1058,
16281,
25,
628,
220,
220,
220,
13163,
778,
796,
7873,
27520,
7,
67,
37843,
62,
31412,
28,
15,
13,
5332,
8,
198,
220,
220,
220,
13163,
288,
7568,
17,
796,
778,
13,
35636,
7,
1860,
69,
16,
11,
287,
8726,
62,
4033,
11639,
4033,
16,
3256,
503,
8726,
62,
4033,
11639,
4033,
17,
11537,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
21151,
278,
62,
31412,
28,
15,
13,
5332,
11,
3509,
62,
270,
364,
28,
3064,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
21151,
278,
62,
31412,
25,
15161,
21151,
278,
5766,
318,
657,
13,
5332,
26,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3509,
62,
270,
364,
25,
22246,
1271,
286,
34820,
357,
12286,
318,
1802,
737,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
7,
9876,
27520,
11,
2116,
737,
834,
15003,
834,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
259,
8726,
62,
4033,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
448,
8726,
62,
4033,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9806,
62,
270,
364,
796,
3509,
62,
270,
364,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
67,
37843,
62,
31412,
796,
21151,
278,
62,
31412,
628,
220,
220,
220,
825,
6121,
7,
944,
11,
1366,
11,
503,
8726,
62,
4033,
11,
287,
8726,
62,
4033,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2980,
689,
262,
7873,
27520,
338,
1255,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1366,
25,
360,
8068,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
503,
8726,
62,
4033,
25,
3806,
12,
8726,
37423,
26,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
287,
8726,
62,
4033,
25,
554,
12,
8726,
37423,
26,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
360,
8068,
351,
4643,
16886,
290,
10916,
15180,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
47764,
11,
299,
8310,
363,
11,
45218,
796,
2116,
13557,
1860,
69,
62,
36733,
62,
40406,
7,
7890,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
259,
8726,
62,
4033,
796,
287,
8726,
62,
4033,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
448,
8726,
62,
4033,
796,
503,
8726,
62,
4033,
628,
220,
220,
220,
220,
220,
220,
220,
951,
16,
796,
705,
13414,
16886,
6,
198,
220,
220,
220,
220,
220,
220,
220,
951,
17,
796,
705,
27520,
6,
628,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8778,
477,
10289,
338,
422,
262,
1366,
290,
41216,
511,
12020,
13,
198,
220,
220,
220,
220,
220,
220,
220,
20768,
1096,
1123,
2443,
447,
247,
82,
4279,
284,
352,
13,
15,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
9224,
62,
4868,
796,
685,
90,
92,
329,
4808,
287,
2837,
7,
77,
8310,
363,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
4279,
62,
4868,
796,
685,
90,
92,
329,
4808,
287,
2837,
7,
77,
8310,
363,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
9853,
62,
259,
796,
685,
90,
92,
329,
4808,
287,
2837,
7,
77,
8310,
363,
15437,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
77,
8310,
363,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9224,
62,
4868,
58,
72,
4357,
4279,
62,
4868,
58,
72,
4357,
9853,
62,
259,
58,
72,
60,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
1050,
62,
17953,
62,
41255,
4868,
7,
7568,
58,
72,
4357,
287,
8726,
62,
4033,
11,
503,
8726,
62,
4033,
8,
628,
220,
220,
220,
220,
220,
220,
220,
9853,
62,
259,
796,
20121,
62,
445,
7234,
28264,
647,
469,
62,
9127,
82,
11,
9853,
62,
259,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
77,
8310,
363,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9224,
62,
4868,
58,
72,
60,
796,
4808,
1050,
62,
19119,
62,
41255,
4868,
7,
41255,
62,
4868,
58,
72,
4357,
9853,
62,
259,
8,
628,
220,
220,
220,
220,
220,
220,
220,
552,
824,
62,
33678,
62,
15252,
7,
9127,
82,
62,
259,
8,
628,
220,
220,
220,
220,
220,
220,
220,
329,
24415,
287,
2837,
7,
944,
13,
9806,
62,
270,
364,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
9771,
3129,
378,
262,
13027,
10156,
286,
1123,
37423,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9284,
796,
685,
62,
9948,
66,
62,
3642,
822,
84,
1756,
7,
41255,
62,
4868,
58,
72,
4357,
4279,
62,
4868,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
77,
8310,
363,
15437,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23791,
62,
66,
796,
20121,
62,
445,
7234,
28264,
647,
469,
62,
9127,
82,
11,
9284,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
10260,
1123,
37423,
4279,
287,
262,
24225,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4279,
62,
4868,
796,
685,
62,
19119,
62,
43027,
7,
43027,
62,
4868,
58,
72,
4357,
23791,
62,
66,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
67,
37843,
62,
31412,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
77,
8310,
363,
15437,
628,
220,
220,
220,
220,
220,
220,
220,
23791,
62,
11487,
796,
20121,
62,
81,
2283,
7,
43027,
62,
4868,
11,
951,
16,
11,
951,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
11,
7508,
796,
4808,
79,
3536,
962,
62,
35312,
7,
647,
2004,
62,
11487,
11,
299,
8310,
363,
8,
628,
220,
220,
220,
220,
220,
220,
220,
649,
62,
5219,
62,
12303,
312,
796,
30532,
14881,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
1860,
69,
62,
2860,
62,
35943,
7,
944,
13,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3722,
28,
19580,
13,
35744,
2937,
62,
41335,
36493,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2172,
28,
3185,
51,
13247,
13,
3185,
51,
62,
31858,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7508,
62,
7890,
28,
10951,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2560,
41888,
22065,
13,
12957,
62,
12303,
312,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
28,
20274,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2163,
28,
944,
13,
35636,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10007,
28,
7890,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
360,
8068,
7,
12957,
62,
12303,
312,
28,
3605,
62,
5219,
62,
12303,
312,
8,
628,
628,
628,
628,
198,
4299,
4808,
79,
3536,
962,
62,
35312,
7,
20274,
11,
299,
8310,
363,
2599,
198,
220,
220,
220,
37227,
41205,
262,
1351,
286,
37423,
656,
299,
8310,
363,
3354,
13,
628,
220,
220,
220,
5740,
25,
262,
1351,
286,
3748,
37423,
290,
511,
9803,
1276,
307,
4197,
287,
4088,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1255,
796,
552,
824,
62,
17077,
62,
261,
7,
20274,
8,
198,
220,
220,
220,
1255,
796,
45941,
13,
18747,
62,
35312,
7,
20274,
11,
299,
8310,
363,
8,
198,
220,
220,
220,
503,
16624,
796,
2251,
62,
14247,
62,
16624,
7,
77,
8310,
363,
8,
198,
220,
220,
220,
7508,
796,
685,
15,
60,
1635,
299,
8310,
363,
628,
220,
220,
220,
329,
277,
11,
3084,
287,
27056,
378,
7,
20274,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
62,
14247,
62,
7753,
7,
448,
16624,
58,
69,
4357,
3084,
8,
198,
220,
220,
220,
220,
220,
220,
220,
7508,
58,
69,
60,
796,
7716,
62,
10951,
7,
11487,
11,
277,
8,
628,
220,
220,
220,
1441,
503,
16624,
11,
7508,
628,
628
] | 2.246047 | 2,024 |
import PySimpleGUI as sg
from uart_serial import uart
arduino = uart()
class tela:
def __init__(self, portas):
#Layout
sg.theme('Black')
layout = [
[sg.Text('Porta:',size=(7,0)),sg.Combo(values=(portas),key='porta')],
[sg.Text('Baudrate:',size=(7,0)),sg.Combo(values=([9600,115200]),key='baudrate')],
[sg.Checkbox('Dados da Missão',key='dados_missao'),sg.Checkbox('Beacon',key='beacon')],
[sg.Button('Continuar')],
]
"""layout = [
[sg.Text('Nome',size=(5,0)),sg.Input(size=(15,0),key='nome')],
[sg.Text('Idade',size=(5,0)),sg.Input(size=(5,0),key='idade')],
[sg.Text('Email:')],
[sg.Checkbox('Gmail',key='gmail'),sg.Checkbox('Hotmail',key='hotmail'),sg.Checkbox('Yahoo',key='yahoo')],
[sg.Radio('Sim','email',key='email_sim'),sg.Radio('Não','email',key='email_nao')],
[sg.Button('Enviar dados')],
[sg.Output(size=(30,20))]
]"""
#Janela
self.janela = sg.Window("dados do Usuário").layout(layout)
#Extrair os dados da tela
self.button, self.values = self.janela.Read()
def iniciar(self):
while True:
self.button, self.values = self.janela.Read()
if self.button == sg.WIN_CLOSED:
break
print(self.values)
| [
11748,
9485,
26437,
40156,
355,
264,
70,
198,
6738,
334,
433,
62,
46911,
1330,
334,
433,
198,
198,
446,
84,
2879,
796,
334,
433,
3419,
198,
198,
4871,
256,
10304,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2493,
292,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
32517,
198,
220,
220,
220,
220,
220,
220,
220,
264,
70,
13,
43810,
10786,
9915,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
12461,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
8206,
10786,
13924,
64,
25,
3256,
7857,
16193,
22,
11,
15,
36911,
45213,
13,
5377,
2127,
7,
27160,
16193,
634,
292,
828,
2539,
11639,
634,
64,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
8206,
10786,
33,
3885,
4873,
25,
3256,
7857,
16193,
22,
11,
15,
36911,
45213,
13,
5377,
2127,
7,
27160,
16193,
58,
4846,
405,
11,
15363,
2167,
46570,
2539,
11639,
65,
3885,
4873,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
9787,
3524,
10786,
35,
22484,
12379,
4544,
28749,
3256,
2539,
11639,
67,
22484,
62,
3927,
5488,
33809,
45213,
13,
9787,
3524,
10786,
3856,
7807,
3256,
2539,
11639,
1350,
7807,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
21864,
10786,
17875,
84,
283,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
39786,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
8206,
10786,
45,
462,
3256,
7857,
16193,
20,
11,
15,
36911,
45213,
13,
20560,
7,
7857,
16193,
1314,
11,
15,
828,
2539,
11639,
77,
462,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
8206,
10786,
7390,
671,
3256,
7857,
16193,
20,
11,
15,
36911,
45213,
13,
20560,
7,
7857,
16193,
20,
11,
15,
828,
2539,
11639,
312,
671,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
8206,
10786,
15333,
25,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
9787,
3524,
10786,
38,
4529,
3256,
2539,
11639,
14816,
33809,
45213,
13,
9787,
3524,
10786,
21352,
4529,
3256,
2539,
11639,
8940,
4529,
33809,
45213,
13,
9787,
3524,
10786,
56,
12992,
3256,
2539,
11639,
40774,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
26093,
10786,
8890,
41707,
12888,
3256,
2539,
11639,
12888,
62,
14323,
33809,
45213,
13,
26093,
10786,
45,
28749,
41707,
12888,
3256,
2539,
11639,
12888,
62,
2616,
78,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
21864,
10786,
4834,
8903,
283,
9955,
418,
11537,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
45213,
13,
26410,
7,
7857,
16193,
1270,
11,
1238,
4008,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
12128,
10304,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13881,
10304,
796,
264,
70,
13,
27703,
7203,
67,
22484,
466,
471,
2385,
6557,
27250,
11074,
39786,
7,
39786,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
27726,
343,
28686,
9955,
418,
12379,
256,
10304,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16539,
11,
2116,
13,
27160,
796,
2116,
13,
13881,
10304,
13,
5569,
3419,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
287,
291,
12571,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16539,
11,
2116,
13,
27160,
796,
2116,
13,
13881,
10304,
13,
5569,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
16539,
6624,
264,
70,
13,
37620,
62,
5097,
48751,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
944,
13,
27160,
8,
628
] | 1.941341 | 716 |
# Generated by Django 2.2.6 on 2019-11-27 20:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('babybuddy', '0016_auto_20191127_1424'),
]
operations = [
migrations.AddField(
model_name='promocode',
name='max_usage_per_account',
field=models.IntegerField(default=1),
),
]
| [
2,
2980,
515,
416,
37770,
362,
13,
17,
13,
21,
319,
13130,
12,
1157,
12,
1983,
1160,
25,
2078,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628,
198,
4871,
36991,
7,
76,
3692,
602,
13,
44,
4254,
2599,
628,
220,
220,
220,
20086,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
40252,
65,
21584,
3256,
705,
405,
1433,
62,
23736,
62,
1264,
6420,
16799,
62,
1415,
1731,
33809,
198,
220,
220,
220,
2361,
628,
220,
220,
220,
4560,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
4550,
15878,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
3672,
11639,
16963,
420,
1098,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
9806,
62,
26060,
62,
525,
62,
23317,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2214,
28,
27530,
13,
46541,
15878,
7,
12286,
28,
16,
828,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
2361,
198
] | 2.214286 | 182 |
from django.contrib.auth.models import User
from tinymce.models import HTMLField
from django.db import models
# Create your models here.
class Pic(models.Model):
pic = models.ImageField(upload_to = "pics/",null = True)
user = models.ForeignKey(User,null=True)
pic_name = models.CharField(max_length = 30,null = True)
likes = models.IntegerField(default=0)
pic_caption = models.TextField(null = True)
pub_date = models.DateTimeField(auto_now_add=True,null=True)
# profile = models.ForeignKey(Profile, null=True)
comments = models.IntegerField(default=0)
def __str__(self):
return self.pic_name
def delete_pic(self):
self.delete()
def save_pic(self):
self.save()
def update_caption(self,new_caption):
self.pic_caption = new_caption
self.save()
class Meta:
ordering = ['-pub_date']
def __str__(self):
return self.user.username
def save_profile(self):
self.save()
class Profile(models.Model):
username = models.CharField(default='User',max_length=30)
email = models.CharField(default='email',max_length=30)
profile_pic = models.ImageField(upload_to = "profile/",null=True)
Phone_number = models.CharField(max_length =30)
Amount = models.CharField(max_length =30)
withdraw = models.CharField(max_length =30)
Balance = models.CharField(max_length =30)
def __str__(self):
return self.username
def delete_profile(self):
self.delete()
def save_profile(self):
self.save()
| [
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
27530,
1330,
11787,
198,
6738,
7009,
76,
344,
13,
27530,
1330,
11532,
15878,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
198,
2,
13610,
534,
4981,
994,
13,
198,
4871,
15085,
7,
27530,
13,
17633,
2599,
198,
220,
220,
220,
8301,
796,
4981,
13,
5159,
15878,
7,
25850,
62,
1462,
796,
366,
79,
873,
14,
1600,
8423,
796,
6407,
8,
198,
220,
220,
220,
2836,
796,
4981,
13,
33616,
9218,
7,
12982,
11,
8423,
28,
17821,
8,
198,
220,
220,
220,
8301,
62,
3672,
796,
4981,
13,
12441,
15878,
7,
9806,
62,
13664,
796,
1542,
11,
8423,
796,
6407,
8,
198,
220,
220,
220,
7832,
796,
4981,
13,
46541,
15878,
7,
12286,
28,
15,
8,
198,
220,
220,
220,
8301,
62,
6888,
1159,
796,
4981,
13,
8206,
15878,
7,
8423,
796,
6407,
8,
198,
220,
220,
220,
2240,
62,
4475,
796,
4981,
13,
10430,
7575,
15878,
7,
23736,
62,
2197,
62,
2860,
28,
17821,
11,
8423,
28,
17821,
8,
198,
220,
220,
220,
1303,
7034,
796,
4981,
13,
33616,
9218,
7,
37046,
11,
9242,
28,
17821,
8,
220,
198,
220,
220,
220,
3651,
796,
4981,
13,
46541,
15878,
7,
12286,
28,
15,
8,
628,
198,
220,
220,
220,
825,
11593,
2536,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
197,
7783,
2116,
13,
16564,
62,
3672,
628,
220,
220,
220,
825,
12233,
62,
16564,
7,
944,
2599,
198,
220,
220,
220,
220,
197,
944,
13,
33678,
3419,
628,
220,
220,
220,
825,
3613,
62,
16564,
7,
944,
2599,
198,
220,
220,
220,
220,
197,
944,
13,
21928,
3419,
628,
220,
220,
220,
825,
4296,
62,
6888,
1159,
7,
944,
11,
3605,
62,
6888,
1159,
2599,
198,
220,
220,
220,
220,
197,
944,
13,
16564,
62,
6888,
1159,
796,
649,
62,
6888,
1159,
198,
220,
220,
220,
220,
197,
944,
13,
21928,
3419,
628,
198,
220,
220,
220,
1398,
30277,
25,
198,
220,
220,
220,
220,
197,
34555,
796,
685,
29001,
12984,
62,
4475,
20520,
628,
198,
220,
220,
220,
825,
11593,
2536,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
197,
7783,
2116,
13,
7220,
13,
29460,
628,
220,
220,
220,
825,
3613,
62,
13317,
7,
944,
2599,
198,
220,
220,
220,
220,
197,
944,
13,
21928,
3419,
198,
198,
4871,
13118,
7,
27530,
13,
17633,
2599,
198,
197,
29460,
796,
4981,
13,
12441,
15878,
7,
12286,
11639,
12982,
3256,
9806,
62,
13664,
28,
1270,
8,
198,
197,
12888,
796,
4981,
13,
12441,
15878,
7,
12286,
11639,
12888,
3256,
9806,
62,
13664,
28,
1270,
8,
198,
197,
13317,
62,
16564,
796,
4981,
13,
5159,
15878,
7,
25850,
62,
1462,
796,
366,
13317,
14,
1600,
8423,
28,
17821,
8,
198,
197,
6132,
62,
17618,
796,
4981,
13,
12441,
15878,
7,
9806,
62,
13664,
796,
1270,
8,
198,
197,
31264,
796,
4981,
13,
12441,
15878,
7,
9806,
62,
13664,
796,
1270,
8,
198,
197,
4480,
19334,
796,
4981,
13,
12441,
15878,
7,
9806,
62,
13664,
796,
1270,
8,
198,
197,
45866,
796,
4981,
13,
12441,
15878,
7,
9806,
62,
13664,
796,
1270,
8,
628,
198,
197,
4299,
11593,
2536,
834,
7,
944,
2599,
198,
197,
197,
7783,
2116,
13,
29460,
628,
197,
4299,
12233,
62,
13317,
7,
944,
2599,
198,
197,
197,
944,
13,
33678,
3419,
628,
197,
4299,
3613,
62,
13317,
7,
944,
2599,
198,
197,
197,
944,
13,
21928,
3419,
628
] | 2.657194 | 563 |
"""empty message
Revision ID: 6564c80d1598
Revises: c3c2dc9000d3
Create Date: 2021-06-19 17:03:45.811885
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6564c80d1598'
down_revision = 'c3c2dc9000d3'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
| [
37811,
28920,
3275,
198,
198,
18009,
1166,
4522,
25,
6135,
2414,
66,
1795,
67,
1314,
4089,
198,
18009,
2696,
25,
269,
18,
66,
17,
17896,
24,
830,
67,
18,
198,
16447,
7536,
25,
33448,
12,
3312,
12,
1129,
1596,
25,
3070,
25,
2231,
13,
23,
1157,
44230,
198,
198,
37811,
198,
6738,
31341,
2022,
291,
1330,
1034,
198,
11748,
44161,
282,
26599,
355,
473,
628,
198,
2,
18440,
42814,
11,
973,
416,
9300,
2022,
291,
13,
198,
260,
10178,
796,
705,
2996,
2414,
66,
1795,
67,
1314,
4089,
6,
198,
2902,
62,
260,
10178,
796,
705,
66,
18,
66,
17,
17896,
24,
830,
67,
18,
6,
198,
1671,
3702,
62,
23912,
1424,
796,
6045,
198,
10378,
2412,
62,
261,
796,
6045,
628,
198,
4299,
8515,
33529,
198,
220,
220,
220,
1303,
44386,
9729,
8295,
7560,
416,
9300,
2022,
291,
532,
3387,
4532,
0,
44386,
198,
220,
220,
220,
1208,
198,
220,
220,
220,
1303,
44386,
886,
9300,
2022,
291,
9729,
44386,
628,
198,
4299,
48514,
33529,
198,
220,
220,
220,
1303,
44386,
9729,
8295,
7560,
416,
9300,
2022,
291,
532,
3387,
4532,
0,
44386,
198,
220,
220,
220,
1208,
198,
220,
220,
220,
1303,
44386,
886,
9300,
2022,
291,
9729,
44386,
198
] | 2.737624 | 202 |
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
with open('README.md') as f:
long_description = f.read()
from xl import __str_version__, __author__
setup(
name='xl',
version=__str_version__,
description='A nice way of generating excel formulas in python.',
long_description=long_description,
url='https://github.com/tizz98/xl',
download_url='https://github.com/tizz98/xl/tarball/%s' % (
__str_version__
),
author=__author__,
author_email='elijah@elijahwilson.me',
license='MIT',
packages=['xl'],
keywords='xl excel formulas formula formulae',
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
28311,
25,
198,
220,
220,
220,
422,
900,
37623,
10141,
1330,
9058,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
422,
1233,
26791,
13,
7295,
1330,
9058,
198,
198,
28311,
25,
198,
220,
220,
220,
1330,
279,
4464,
392,
420,
198,
220,
220,
220,
890,
62,
11213,
796,
279,
4464,
392,
420,
13,
1102,
1851,
10786,
15675,
11682,
13,
9132,
3256,
705,
81,
301,
11537,
198,
16341,
357,
9399,
12331,
11,
17267,
12331,
2599,
198,
220,
220,
220,
351,
1280,
10786,
15675,
11682,
13,
9132,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
890,
62,
11213,
796,
277,
13,
961,
3419,
628,
198,
6738,
2124,
75,
1330,
11593,
2536,
62,
9641,
834,
11,
11593,
9800,
834,
628,
198,
40406,
7,
198,
220,
220,
220,
1438,
11639,
87,
75,
3256,
198,
220,
220,
220,
2196,
28,
834,
2536,
62,
9641,
834,
11,
198,
220,
220,
220,
6764,
11639,
32,
3621,
835,
286,
15453,
27336,
32126,
287,
21015,
2637,
11,
198,
220,
220,
220,
890,
62,
11213,
28,
6511,
62,
11213,
11,
198,
220,
220,
220,
19016,
11639,
5450,
1378,
12567,
13,
785,
14,
83,
6457,
4089,
14,
87,
75,
3256,
198,
220,
220,
220,
4321,
62,
6371,
11639,
5450,
1378,
12567,
13,
785,
14,
83,
6457,
4089,
14,
87,
75,
14,
18870,
1894,
14,
4,
82,
6,
4064,
357,
198,
220,
220,
220,
220,
220,
220,
220,
11593,
2536,
62,
9641,
834,
198,
220,
220,
220,
10612,
198,
220,
220,
220,
1772,
28,
834,
9800,
834,
11,
198,
220,
220,
220,
1772,
62,
12888,
11639,
417,
32778,
31,
417,
32778,
86,
346,
1559,
13,
1326,
3256,
198,
220,
220,
220,
5964,
11639,
36393,
3256,
198,
220,
220,
220,
10392,
28,
17816,
87,
75,
6,
4357,
198,
220,
220,
220,
26286,
11639,
87,
75,
27336,
32126,
10451,
1296,
377,
3609,
3256,
198,
220,
220,
220,
19974,
62,
21230,
28,
17821,
11,
198,
220,
220,
220,
1398,
13350,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
705,
41206,
12678,
7904,
604,
532,
17993,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
5317,
1631,
7591,
1240,
7904,
34152,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
33221,
7904,
10442,
7712,
7904,
46267,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
34156,
7904,
7294,
40,
20010,
1079,
7904,
17168,
13789,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15167,
2229,
15417,
7904,
11361,
7904,
362,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15167,
2229,
15417,
7904,
11361,
7904,
362,
13,
21,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15167,
2229,
15417,
7904,
11361,
7904,
362,
13,
22,
3256,
198,
220,
220,
220,
16589,
198,
8,
198
] | 2.567391 | 460 |
# all, any for group condition check
# Manas Dash
# 22th July 2020
# think of any (or) and all (and) as series of logical or and and operators
healthy_percentage = 100
have_money = 0
no_of_friends = 5
mental_happiness = [
healthy_percentage > 50,
have_money > 0,
no_of_friends >= 1
]
if all(mental_happiness):
print('happiness inside')
if any(mental_happiness):
print('happiness outside')
# happiness outside | [
198,
2,
477,
11,
597,
329,
1448,
4006,
2198,
198,
2,
1869,
292,
16189,
198,
2,
2534,
400,
2901,
12131,
198,
2,
892,
286,
597,
357,
273,
8,
290,
477,
357,
392,
8,
355,
2168,
286,
12219,
393,
290,
290,
12879,
628,
198,
22796,
62,
25067,
496,
796,
1802,
198,
14150,
62,
26316,
796,
657,
198,
3919,
62,
1659,
62,
36154,
796,
642,
198,
198,
37098,
62,
71,
42661,
796,
685,
198,
197,
22796,
62,
25067,
496,
1875,
2026,
11,
198,
197,
14150,
62,
26316,
1875,
657,
11,
198,
197,
3919,
62,
1659,
62,
36154,
18189,
352,
198,
60,
198,
198,
361,
477,
7,
37098,
62,
71,
42661,
2599,
198,
197,
4798,
10786,
71,
42661,
2641,
11537,
198,
198,
361,
597,
7,
37098,
62,
71,
42661,
2599,
198,
197,
4798,
10786,
71,
42661,
2354,
11537,
198,
198,
2,
12157,
2354
] | 3 | 140 |
from __future__ import annotations
import abc
from typing import List, Text, TypeVar, Generic
from abc import ABC
from functools import singledispatchmethod
from dataclasses import dataclass
from zx64c.types import Type, Callable
T = TypeVar("T")
class AstVisitor(ABC, Generic[T]):
class SourceContext:
def __init__(self, line: int, column: int):
self._line = line
self._column = column
def __eq__(self, rhs: SourceContext) -> bool:
return self._line == rhs._line and self._column == rhs._column
class Ast(ABC):
def __init__(self, context: SourceContext):
self._context = context
class SjasmplusSnapshotProgram(Ast):
def __init__(self, program: Program, source_name: Text):
super().__init__(program.context)
self.program = program
self.source_name = source_name
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_program(self)
class Program(Ast):
def __init__(self, functions: List[Function], context: SourceContext):
super().__init__(context)
self.functions = functions
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_program(self)
class Function(Ast):
def __init__(
self,
name: str,
parameters: List[Parameter],
return_type: Type,
code_block: Block,
context: SourceContext,
):
super().__init__(context)
self.name = name
self.parameters = parameters
self.return_type = return_type
self.code_block = code_block
self.type = Callable(return_type, [p.type_id for p in parameters])
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_function(self)
class Block(Ast):
def __init__(self, statements: [Ast], context: SourceContext):
super().__init__(context)
self.statements = statements
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_block(self)
class If(Ast):
def __init__(self, condition: Ast, consequence: Ast, context: SourceContext):
super().__init__(context)
self.condition = condition
self.consequence = consequence
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_if(self)
class Print(Ast):
def __init__(self, expression: Ast, context: SourceContext):
super().__init__(context)
self.expression = expression
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_print(self)
class Let(Ast):
def __init__(self, name: str, var_type: Type, rhs: Ast, context: SourceContext):
super().__init__(context)
self.name = name
self.var_type = var_type
self.rhs = rhs
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_let(self)
class Assignment(Ast):
def __init__(self, name: str, rhs: Ast, context: SourceContext):
super().__init__(context)
self.name = name
self.rhs = rhs
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_assignment(self)
class Return(Ast):
def __init__(self, expr: Ast, context: SourceContext):
super().__init__(context)
self.expr = expr
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_return(self)
class Equal(Ast):
def __init__(self, lhs: Ast, rhs: Ast, context: SourceContext):
super().__init__(context)
self.lhs = lhs
self.rhs = rhs
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_equal(self)
class NotEqual(Ast):
def __init__(self, lhs: Ast, rhs: Ast, context: SourceContext):
super().__init__(context)
self.lhs = lhs
self.rhs = rhs
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_not_equal(self)
class Addition(Ast):
def __init__(self, lhs: Ast, rhs: Ast, context: SourceContext):
super().__init__(context)
self.lhs = lhs
self.rhs = rhs
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_addition(self)
class Subtraction(Ast):
def __init__(self, lhs: Ast, rhs: Ast, context: SourceContext):
super().__init__(context)
self.lhs = lhs
self.rhs = rhs
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_subtraction(self)
class Negation(Ast):
def __init__(self, expression: Ast, context: SourceContext):
super().__init__(context)
self.expression = expression
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_negation(self)
class FunctionCall(Ast):
def __init__(
self, function_name: str, arguments: List[Ast], context: SourceContext
):
super().__init__(context)
self.function_name = function_name
self.arguments = arguments
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_function_call(self)
class Identifier(Ast):
def __init__(self, value: int, context: SourceContext):
super().__init__(context)
self.value = value
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_identifier(self)
class Unsignedint(Ast):
def __init__(self, value: int, context: SourceContext):
super().__init__(context)
self.value = value
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_unsignedint(self)
class Bool(Ast):
def __init__(self, value: bool, context: SourceContext):
super().__init__(context)
self.value = value
def visit(self, v: AstVisitor[T]) -> T:
return v.visit_bool(self)
| [
6738,
11593,
37443,
834,
1330,
37647,
198,
198,
11748,
450,
66,
198,
198,
6738,
19720,
1330,
7343,
11,
8255,
11,
5994,
19852,
11,
42044,
198,
6738,
450,
66,
1330,
9738,
198,
6738,
1257,
310,
10141,
1330,
31958,
8802,
963,
24396,
198,
6738,
4818,
330,
28958,
1330,
4818,
330,
31172,
198,
198,
6738,
1976,
87,
2414,
66,
13,
19199,
1330,
5994,
11,
4889,
540,
198,
198,
51,
796,
5994,
19852,
7203,
51,
4943,
628,
198,
4871,
8304,
15854,
2072,
7,
24694,
11,
42044,
58,
51,
60,
2599,
628,
198,
4871,
8090,
21947,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1627,
25,
493,
11,
5721,
25,
493,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
1370,
796,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
28665,
796,
5721,
628,
220,
220,
220,
825,
11593,
27363,
834,
7,
944,
11,
9529,
82,
25,
8090,
21947,
8,
4613,
20512,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
1370,
6624,
9529,
82,
13557,
1370,
290,
2116,
13557,
28665,
6624,
9529,
82,
13557,
28665,
628,
198,
4871,
8304,
7,
24694,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
22866,
796,
4732,
628,
198,
4871,
311,
73,
8597,
9541,
43826,
9442,
15167,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1430,
25,
6118,
11,
2723,
62,
3672,
25,
8255,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
23065,
13,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
23065,
796,
1430,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
10459,
62,
3672,
796,
2723,
62,
3672,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
23065,
7,
944,
8,
628,
198,
198,
4871,
6118,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
5499,
25,
7343,
58,
22203,
4357,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12543,
2733,
796,
5499,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
23065,
7,
944,
8,
628,
628,
198,
4871,
15553,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
25,
965,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10007,
25,
7343,
58,
36301,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
62,
4906,
25,
5994,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2438,
62,
9967,
25,
9726,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4732,
25,
8090,
21947,
11,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17143,
7307,
796,
10007,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7783,
62,
4906,
796,
1441,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8189,
62,
9967,
796,
2438,
62,
9967,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4906,
796,
4889,
540,
7,
7783,
62,
4906,
11,
685,
79,
13,
4906,
62,
312,
329,
279,
287,
10007,
12962,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
8818,
7,
944,
8,
628,
198,
198,
4871,
9726,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
6299,
25,
685,
33751,
4357,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14269,
3196,
796,
6299,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
9967,
7,
944,
8,
628,
198,
198,
4871,
1002,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4006,
25,
8304,
11,
12921,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31448,
796,
4006,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1102,
43167,
796,
12921,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
361,
7,
944,
8,
628,
198,
198,
4871,
12578,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
5408,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
38011,
796,
5408,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
4798,
7,
944,
8,
628,
198,
198,
4871,
3914,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
25,
965,
11,
1401,
62,
4906,
25,
5994,
11,
9529,
82,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7785,
62,
4906,
796,
1401,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
11994,
796,
9529,
82,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
1616,
7,
944,
8,
628,
198,
198,
4871,
50144,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
25,
965,
11,
9529,
82,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
11994,
796,
9529,
82,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
562,
16747,
7,
944,
8,
628,
198,
198,
4871,
8229,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
44052,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31937,
796,
44052,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
7783,
7,
944,
8,
628,
198,
198,
4871,
28701,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
300,
11994,
25,
8304,
11,
9529,
82,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
75,
11994,
796,
300,
11994,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
11994,
796,
9529,
82,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
40496,
7,
944,
8,
628,
198,
198,
4871,
1892,
36,
13255,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
300,
11994,
25,
8304,
11,
9529,
82,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
75,
11994,
796,
300,
11994,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
11994,
796,
9529,
82,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
1662,
62,
40496,
7,
944,
8,
628,
198,
198,
4871,
3060,
653,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
300,
11994,
25,
8304,
11,
9529,
82,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
75,
11994,
796,
300,
11994,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
11994,
796,
9529,
82,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
2860,
653,
7,
944,
8,
628,
198,
198,
4871,
3834,
83,
7861,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
300,
11994,
25,
8304,
11,
9529,
82,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
75,
11994,
796,
300,
11994,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
11994,
796,
9529,
82,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
7266,
83,
7861,
7,
944,
8,
628,
198,
198,
4871,
13496,
341,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
5408,
25,
8304,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
38011,
796,
5408,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
12480,
341,
7,
944,
8,
628,
198,
198,
4871,
15553,
14134,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
2163,
62,
3672,
25,
965,
11,
7159,
25,
7343,
58,
33751,
4357,
4732,
25,
8090,
21947,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8818,
62,
3672,
796,
2163,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
853,
2886,
796,
7159,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
8818,
62,
13345,
7,
944,
8,
628,
198,
198,
4871,
11440,
7483,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1988,
25,
493,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8367,
796,
1988,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
738,
7483,
7,
944,
8,
628,
198,
198,
4871,
791,
32696,
600,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1988,
25,
493,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8367,
796,
1988,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
43375,
600,
7,
944,
8,
628,
198,
198,
4871,
347,
970,
7,
33751,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1988,
25,
20512,
11,
4732,
25,
8090,
21947,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
22866,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8367,
796,
1988,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
410,
25,
8304,
15854,
2072,
58,
51,
12962,
4613,
309,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
410,
13,
4703,
270,
62,
30388,
7,
944,
8,
628
] | 2.365073 | 2,342 |
import datetime
import logging
import os
from threading import Thread
import cv2
from lib.cleanup import SegmentCleanup
from lib.helpers import draw_objects
from lib.mqtt.camera import MQTTCamera
from lib.segments import Segments
LOGGER = logging.getLogger(__name__)
class FFMPEGRecorder:
def __init__(self, config, detection_lock, mqtt_queue):
self._logger = logging.getLogger(__name__ + "." + config.camera.name_slug)
if getattr(config.recorder.logging, "level", None):
self._logger.setLevel(config.recorder.logging.level)
elif getattr(config.camera.logging, "level", None):
self._logger.setLevel(config.camera.logging.level)
self._logger.debug("Initializing ffmpeg recorder")
self.config = config
self._mqtt_queue = mqtt_queue
self.is_recording = False
self.last_recording_start = None
self.last_recording_end = None
self._event_start = None
self._event_end = None
self._recording_name = None
segments_folder = os.path.join(
config.recorder.segments_folder, config.camera.name
)
self.create_directory(segments_folder)
self._segmenter = Segments(
self._logger, config, segments_folder, detection_lock
)
self._segment_cleanup = SegmentCleanup(config)
self._mqtt_devices = {}
if self.config.recorder.thumbnail.send_to_mqtt:
self._mqtt_devices["latest_thumbnail"] = MQTTCamera(
config, mqtt_queue, object_id="latest_thumbnail"
)
def on_connect(self, client):
for device in self._mqtt_devices.values():
device.on_connect(client)
def subfolder_name(self, today):
return (
f"{today.year:04}-{today.month:02}-{today.day:02}/{self.config.camera.name}"
)
def create_thumbnail(self, file_name, frame, objects, resolution):
draw_objects(
frame.decoded_frame_umat_rgb, objects, resolution,
)
cv2.imwrite(file_name, frame.decoded_frame_umat_rgb)
if self.config.recorder.thumbnail.save_to_disk:
thumbnail_folder = os.path.join(
self.config.recorder.folder, "thumbnails", self.config.camera.name
)
self.create_directory(thumbnail_folder)
self._logger.debug(f"Saving thumbnail in {thumbnail_folder}")
if not cv2.imwrite(
os.path.join(thumbnail_folder, "latest_thumbnail.jpg"),
frame.decoded_frame_umat_rgb,
):
self._logger.error("Failed saving thumbnail to disk")
if self.config.recorder.thumbnail.send_to_mqtt and self._mqtt_devices:
ret, jpg = cv2.imencode(".jpg", frame.decoded_frame_umat_rgb)
if ret:
self._mqtt_devices["latest_thumbnail"].publish(jpg.tobytes())
def create_directory(self, path):
try:
if not os.path.isdir(path):
self._logger.debug(f"Creating folder {path}")
os.makedirs(path)
except FileExistsError:
pass
def start_recording(self, frame, objects, resolution):
self._logger.info("Starting recorder")
self.is_recording = True
self._segment_cleanup.pause()
now = datetime.datetime.now()
self.last_recording_start = now.isoformat()
self.last_recording_end = None
self._event_start = int(now.timestamp())
if self.config.recorder.folder is None:
self._logger.error("Output directory is not specified")
return
# Create filename
now = datetime.datetime.now()
video_name = f"{now.strftime('%H:%M:%S')}.{self.config.recorder.extension}"
thumbnail_name = f"{now.strftime('%H:%M:%S')}.jpg"
# Create foldername
subfolder = self.subfolder_name(now)
full_path = os.path.join(self.config.recorder.folder, subfolder)
self.create_directory(full_path)
if frame:
self.create_thumbnail(
os.path.join(full_path, thumbnail_name), frame, objects, resolution
)
self._recording_name = os.path.join(full_path, video_name)
def concat_segments(self):
self._segmenter.concat_segments(
self._event_start - self.config.recorder.lookback,
self._event_end,
self._recording_name,
)
# Dont resume cleanup if new recording started during encoding
if not self.is_recording:
self._segment_cleanup.resume()
def stop_recording(self):
self._logger.info("Stopping recorder")
self.is_recording = False
now = datetime.datetime.now()
self.last_recording_end = now.isoformat()
self._event_end = int(now.timestamp())
concat_thread = Thread(target=self.concat_segments)
concat_thread.start()
| [
11748,
4818,
8079,
198,
11748,
18931,
198,
11748,
28686,
198,
6738,
4704,
278,
1330,
14122,
198,
198,
11748,
269,
85,
17,
198,
198,
6738,
9195,
13,
27773,
929,
1330,
1001,
5154,
32657,
929,
198,
6738,
9195,
13,
16794,
364,
1330,
3197,
62,
48205,
198,
6738,
9195,
13,
76,
80,
926,
13,
25695,
1330,
337,
48,
51,
4825,
18144,
198,
6738,
9195,
13,
325,
11726,
1330,
1001,
11726,
198,
198,
25294,
30373,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
4871,
18402,
7378,
7156,
6690,
2875,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4566,
11,
13326,
62,
5354,
11,
285,
80,
926,
62,
36560,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
1343,
366,
526,
1343,
4566,
13,
25695,
13,
3672,
62,
6649,
1018,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
651,
35226,
7,
11250,
13,
8344,
2875,
13,
6404,
2667,
11,
366,
5715,
1600,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
2617,
4971,
7,
11250,
13,
8344,
2875,
13,
6404,
2667,
13,
5715,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
651,
35226,
7,
11250,
13,
25695,
13,
6404,
2667,
11,
366,
5715,
1600,
6045,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
2617,
4971,
7,
11250,
13,
25695,
13,
6404,
2667,
13,
5715,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
24442,
7203,
24243,
2890,
31246,
43913,
38156,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
796,
4566,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
80,
926,
62,
36560,
796,
285,
80,
926,
62,
36560,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
271,
62,
8344,
1284,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12957,
62,
8344,
1284,
62,
9688,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12957,
62,
8344,
1284,
62,
437,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15596,
62,
9688,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15596,
62,
437,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8344,
1284,
62,
3672,
796,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
17894,
62,
43551,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
8344,
2875,
13,
325,
11726,
62,
43551,
11,
4566,
13,
25695,
13,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17953,
62,
34945,
7,
325,
11726,
62,
43551,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
325,
5154,
263,
796,
1001,
11726,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
11,
4566,
11,
17894,
62,
43551,
11,
13326,
62,
5354,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
325,
5154,
62,
27773,
929,
796,
1001,
5154,
32657,
929,
7,
11250,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
80,
926,
62,
42034,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
11250,
13,
8344,
2875,
13,
400,
20566,
13,
21280,
62,
1462,
62,
76,
80,
926,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
80,
926,
62,
42034,
14692,
42861,
62,
400,
20566,
8973,
796,
337,
48,
51,
4825,
18144,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4566,
11,
285,
80,
926,
62,
36560,
11,
2134,
62,
312,
2625,
42861,
62,
400,
20566,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
825,
319,
62,
8443,
7,
944,
11,
5456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
3335,
287,
2116,
13557,
76,
80,
926,
62,
42034,
13,
27160,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3335,
13,
261,
62,
8443,
7,
16366,
8,
628,
220,
220,
220,
825,
850,
43551,
62,
3672,
7,
944,
11,
1909,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
1,
90,
40838,
13,
1941,
25,
3023,
92,
12,
90,
40838,
13,
8424,
25,
2999,
92,
12,
90,
40838,
13,
820,
25,
2999,
92,
14,
90,
944,
13,
11250,
13,
25695,
13,
3672,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
825,
2251,
62,
400,
20566,
7,
944,
11,
2393,
62,
3672,
11,
5739,
11,
5563,
11,
6323,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3197,
62,
48205,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5739,
13,
12501,
9043,
62,
14535,
62,
27798,
62,
81,
22296,
11,
5563,
11,
6323,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
13564,
7,
7753,
62,
3672,
11,
5739,
13,
12501,
9043,
62,
14535,
62,
27798,
62,
81,
22296,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
11250,
13,
8344,
2875,
13,
400,
20566,
13,
21928,
62,
1462,
62,
39531,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
40901,
62,
43551,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
13,
8344,
2875,
13,
43551,
11,
366,
18670,
1600,
2116,
13,
11250,
13,
25695,
13,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17953,
62,
34945,
7,
400,
20566,
62,
43551,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
24442,
7,
69,
1,
50,
2703,
40901,
287,
1391,
400,
20566,
62,
43551,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
269,
85,
17,
13,
320,
13564,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
400,
20566,
62,
43551,
11,
366,
42861,
62,
400,
20566,
13,
9479,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5739,
13,
12501,
9043,
62,
14535,
62,
27798,
62,
81,
22296,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
18224,
7203,
37,
6255,
8914,
40901,
284,
11898,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
11250,
13,
8344,
2875,
13,
400,
20566,
13,
21280,
62,
1462,
62,
76,
80,
926,
290,
2116,
13557,
76,
80,
926,
62,
42034,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
11,
474,
6024,
796,
269,
85,
17,
13,
19027,
8189,
7,
1911,
9479,
1600,
5739,
13,
12501,
9043,
62,
14535,
62,
27798,
62,
81,
22296,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1005,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
76,
80,
926,
62,
42034,
14692,
42861,
62,
400,
20566,
1,
4083,
12984,
1836,
7,
9479,
13,
83,
26730,
4879,
28955,
628,
220,
220,
220,
825,
2251,
62,
34945,
7,
944,
11,
3108,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
24442,
7,
69,
1,
32071,
9483,
1391,
6978,
92,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
9220,
3109,
1023,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
923,
62,
8344,
1284,
7,
944,
11,
5739,
11,
5563,
11,
6323,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
10951,
7203,
22851,
38156,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
271,
62,
8344,
1284,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
325,
5154,
62,
27773,
929,
13,
32125,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
783,
796,
4818,
8079,
13,
19608,
8079,
13,
2197,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12957,
62,
8344,
1284,
62,
9688,
796,
783,
13,
26786,
18982,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12957,
62,
8344,
1284,
62,
437,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15596,
62,
9688,
796,
493,
7,
2197,
13,
16514,
27823,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
11250,
13,
8344,
2875,
13,
43551,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
18224,
7203,
26410,
8619,
318,
407,
7368,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
13610,
29472,
198,
220,
220,
220,
220,
220,
220,
220,
783,
796,
4818,
8079,
13,
19608,
8079,
13,
2197,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2008,
62,
3672,
796,
277,
1,
90,
2197,
13,
2536,
31387,
10786,
4,
39,
25,
4,
44,
25,
4,
50,
11537,
27422,
90,
944,
13,
11250,
13,
8344,
2875,
13,
2302,
3004,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
40901,
62,
3672,
796,
277,
1,
90,
2197,
13,
2536,
31387,
10786,
4,
39,
25,
4,
44,
25,
4,
50,
11537,
27422,
9479,
1,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
13610,
5591,
13292,
198,
220,
220,
220,
220,
220,
220,
220,
850,
43551,
796,
2116,
13,
7266,
43551,
62,
3672,
7,
2197,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1336,
62,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
11250,
13,
8344,
2875,
13,
43551,
11,
850,
43551,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17953,
62,
34945,
7,
12853,
62,
6978,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
5739,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17953,
62,
400,
20566,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
22179,
7,
12853,
62,
6978,
11,
40901,
62,
3672,
828,
5739,
11,
5563,
11,
6323,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8344,
1284,
62,
3672,
796,
28686,
13,
6978,
13,
22179,
7,
12853,
62,
6978,
11,
2008,
62,
3672,
8,
628,
220,
220,
220,
825,
1673,
265,
62,
325,
11726,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
325,
5154,
263,
13,
1102,
9246,
62,
325,
11726,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15596,
62,
9688,
532,
2116,
13,
11250,
13,
8344,
2875,
13,
5460,
1891,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15596,
62,
437,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8344,
1284,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
360,
756,
15294,
27425,
611,
649,
8296,
2067,
1141,
21004,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
271,
62,
8344,
1284,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
325,
5154,
62,
27773,
929,
13,
411,
2454,
3419,
628,
220,
220,
220,
825,
2245,
62,
8344,
1284,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6404,
1362,
13,
10951,
7203,
1273,
33307,
38156,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
271,
62,
8344,
1284,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
783,
796,
4818,
8079,
13,
19608,
8079,
13,
2197,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12957,
62,
8344,
1284,
62,
437,
796,
783,
13,
26786,
18982,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15596,
62,
437,
796,
493,
7,
2197,
13,
16514,
27823,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
1673,
265,
62,
16663,
796,
14122,
7,
16793,
28,
944,
13,
1102,
9246,
62,
325,
11726,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1673,
265,
62,
16663,
13,
9688,
3419,
198
] | 2.187528 | 2,261 |
#!/usr/bin/env python
__author__ = "bt3"
def usual_dict(dict_data):
newdata = {}
for k, v in dict_data:
if k in newdata:
newdata[k].append(v)
else:
newdata[k] = [v]
return newdata
def setdefault_dict(dict_data):
newdata = {}
for k, v in dict_data:
newdata.setdefault(k, []).append(v)
return newdata
def test_setdef(module_name='this module'):
dict_data = (('key1', 'value1'),
('key1', 'value2'),
('key2', 'value3'),
('key2', 'value4'),
('key2', 'value5'),)
print(usual_dict(dict_data))
print(setdefault_dict(dict_data))
s = 'Tests in {name} have {con}!'
print(s.format(name=module_name, con='passed'))
if __name__ == '__main__':
test_setdef()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
834,
9800,
834,
796,
366,
18347,
18,
1,
628,
198,
4299,
6678,
62,
11600,
7,
11600,
62,
7890,
2599,
198,
220,
220,
220,
649,
7890,
796,
23884,
198,
220,
220,
220,
329,
479,
11,
410,
287,
8633,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
479,
287,
649,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
7890,
58,
74,
4083,
33295,
7,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
7890,
58,
74,
60,
796,
685,
85,
60,
198,
220,
220,
220,
1441,
649,
7890,
628,
198,
4299,
900,
12286,
62,
11600,
7,
11600,
62,
7890,
2599,
198,
220,
220,
220,
649,
7890,
796,
23884,
198,
220,
220,
220,
329,
479,
11,
410,
287,
8633,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
649,
7890,
13,
2617,
12286,
7,
74,
11,
17635,
737,
33295,
7,
85,
8,
198,
220,
220,
220,
1441,
649,
7890,
628,
198,
4299,
1332,
62,
2617,
4299,
7,
21412,
62,
3672,
11639,
5661,
8265,
6,
2599,
198,
220,
220,
220,
8633,
62,
7890,
796,
357,
10786,
2539,
16,
3256,
705,
8367,
16,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
2539,
16,
3256,
705,
8367,
17,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
2539,
17,
3256,
705,
8367,
18,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
2539,
17,
3256,
705,
8367,
19,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
2539,
17,
3256,
705,
8367,
20,
33809,
8,
198,
220,
220,
220,
3601,
7,
37850,
62,
11600,
7,
11600,
62,
7890,
4008,
198,
220,
220,
220,
3601,
7,
2617,
12286,
62,
11600,
7,
11600,
62,
7890,
4008,
628,
220,
220,
220,
264,
796,
705,
51,
3558,
287,
1391,
3672,
92,
423,
1391,
1102,
92,
13679,
198,
220,
220,
220,
3601,
7,
82,
13,
18982,
7,
3672,
28,
21412,
62,
3672,
11,
369,
11639,
6603,
276,
6,
4008,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1332,
62,
2617,
4299,
3419,
628
] | 2.014925 | 402 |
from Foundation import *
import objc
import sys
class PyTestPlugin(NSObject):
def init(self):
self = super(PyTestPlugin, self).init()
print 'class load!!'
print "Hello from py2app"
print "frozen", repr(getattr(sys, "frozen", None))
return self
class PyTestPlugin2(NSObject):
pass
print "PyTestPlugin", __name__
print u"[inside] currentBundle %r" % (objc.currentBundle(),)
| [
6738,
5693,
1330,
1635,
198,
11748,
26181,
66,
198,
11748,
25064,
198,
198,
4871,
9485,
14402,
37233,
7,
8035,
10267,
2599,
198,
220,
220,
220,
825,
2315,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
796,
2208,
7,
20519,
14402,
37233,
11,
2116,
737,
15003,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
705,
4871,
3440,
3228,
6,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
15496,
422,
12972,
17,
1324,
1,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
69,
42005,
1600,
41575,
7,
1136,
35226,
7,
17597,
11,
366,
69,
42005,
1600,
6045,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
198,
198,
4871,
9485,
14402,
37233,
17,
7,
8035,
10267,
2599,
198,
220,
220,
220,
1208,
198,
198,
4798,
366,
20519,
14402,
37233,
1600,
11593,
3672,
834,
198,
4798,
334,
17912,
48787,
60,
1459,
33,
31249,
4064,
81,
1,
4064,
357,
26801,
66,
13,
14421,
33,
31249,
22784,
8,
198
] | 2.548193 | 166 |
from __future__ import annotations
from typing import Sequence, Union, Optional
from securify.grammar import abstract_production, production
| [
6738,
11593,
37443,
834,
1330,
37647,
198,
198,
6738,
19720,
1330,
45835,
11,
4479,
11,
32233,
198,
198,
6738,
792,
333,
1958,
13,
4546,
3876,
1330,
12531,
62,
25493,
11,
3227,
628,
628,
198
] | 4.323529 | 34 |
#!/usr/bin/env python3
from os import environ
from json import dumps
class CloudFoundry:
def __init__(self, **kwargs):
self.__CF_VARIABLES__ = {'CF_INSTANCE_ADDR': '',
'CF_INSTANCE_GUID': '',
'CF_INSTANCE_INDEX': '',
'CF_INSTANCE_INTERNAL_IP': '',
'CF_INSTANCE_IP': '',
'CF_INSTANCE_PORT': '',
'CF_INSTANCE_PORTS': [{}],
'CF_STACK': '',
'DATABASE_URL': '',
'HOME': '',
'INSTANCE_GUID': '',
'INSTANCE_INDEX': '',
'LANG': '',
'MEMORY_LIMIT': '',
'PATH': '',
'PORT': '',
'PWD': '',
'TMPDIR': '',
'USER': '',
'VCAP_APP_HOST': '',
'VCAP_APP_PORT': '',
'VCAP_APPLICATION': {},
'VCAP_SERVICES': {}}
if kwargs.get('testing'):
self.load_testing_data(**kwargs)
else:
self.set_cf_variables(**kwargs)
def load_testing_data(self, **kwargs):
pass
def set_cf_variables(self, **kwargs):
variables = kwargs.get('variables', None)
if isinstance(variables, str):
cf_variables = [variable.upper() for variable in variables.split(',')]
elif isinstance(variables, list):
cf_variables = [variable.upper() for variable in variables]
else:
cf_variables = self.__CF_VARIABLES__
for cf_variable in cf_variables:
# found in env
if cf_variable in environ:
setattr(self,str(cf_variable).lower(),environ[cf_variable])
# not in env, but a known cf var
elif cf_variable in self.__CF_VARIABLES__:
setattr(self, str(cf_variable).lower(), self.__CF_VARIABLES__[cf_variable])
# not in env and not defaulted
else:
setattr(self, str(cf_variable).lower(), '')
def get_cf_variables(self, **kwargs):
variables = {}
for variable in sorted(self.__CF_VARIABLES__):
variable = variable.lower()
if hasattr(self, variable):
variables[variable] = getattr(self,variable)
print(dumps(variables, indent=4))
return(variables)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
198,
6738,
28686,
1330,
551,
2268,
198,
6738,
33918,
1330,
45514,
198,
198,
4871,
10130,
21077,
563,
25,
198,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
2116,
13,
834,
22495,
62,
53,
1503,
3539,
9148,
1546,
834,
796,
1391,
6,
22495,
62,
38604,
19240,
62,
2885,
7707,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
38604,
19240,
62,
38,
27586,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
38604,
19240,
62,
12115,
6369,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
38604,
19240,
62,
1268,
31800,
1847,
62,
4061,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
38604,
19240,
62,
4061,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
38604,
19240,
62,
15490,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
38604,
19240,
62,
47,
33002,
10354,
685,
90,
92,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
22495,
62,
2257,
8120,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
35,
1404,
6242,
11159,
62,
21886,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
39069,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
38604,
19240,
62,
38,
27586,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
38604,
19240,
62,
12115,
6369,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
43,
15567,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
44,
3620,
15513,
62,
43,
3955,
2043,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
34219,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15490,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
47,
22332,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15972,
5760,
4663,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
29904,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15922,
2969,
62,
24805,
62,
39,
10892,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15922,
2969,
62,
24805,
62,
15490,
10354,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15922,
2969,
62,
2969,
31484,
6234,
10354,
1391,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15922,
2969,
62,
35009,
53,
34444,
10354,
1391,
11709,
628,
220,
220,
220,
611,
479,
86,
22046,
13,
1136,
10786,
33407,
6,
2599,
198,
220,
220,
220,
220,
220,
2116,
13,
2220,
62,
33407,
62,
7890,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
2116,
13,
2617,
62,
12993,
62,
25641,
2977,
7,
1174,
46265,
22046,
8,
628,
198,
220,
825,
3440,
62,
33407,
62,
7890,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
1208,
628,
220,
825,
900,
62,
12993,
62,
25641,
2977,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
9633,
796,
479,
86,
22046,
13,
1136,
10786,
25641,
2977,
3256,
6045,
8,
198,
220,
220,
220,
611,
318,
39098,
7,
25641,
2977,
11,
965,
2599,
198,
220,
220,
220,
220,
220,
30218,
62,
25641,
2977,
796,
685,
45286,
13,
45828,
3419,
329,
7885,
287,
9633,
13,
35312,
7,
3256,
11537,
60,
198,
220,
220,
220,
1288,
361,
318,
39098,
7,
25641,
2977,
11,
1351,
2599,
198,
220,
220,
220,
220,
220,
30218,
62,
25641,
2977,
796,
685,
45286,
13,
45828,
3419,
329,
7885,
287,
9633,
60,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
30218,
62,
25641,
2977,
796,
2116,
13,
834,
22495,
62,
53,
1503,
3539,
9148,
1546,
834,
198,
220,
220,
220,
329,
30218,
62,
45286,
287,
30218,
62,
25641,
2977,
25,
198,
220,
220,
220,
220,
220,
1303,
1043,
287,
17365,
198,
220,
220,
220,
220,
220,
611,
30218,
62,
45286,
287,
551,
2268,
25,
198,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
2536,
7,
12993,
62,
45286,
737,
21037,
22784,
268,
2268,
58,
12993,
62,
45286,
12962,
198,
220,
220,
220,
220,
220,
1303,
407,
287,
17365,
11,
475,
257,
1900,
30218,
1401,
198,
220,
220,
220,
220,
220,
1288,
361,
30218,
62,
45286,
287,
2116,
13,
834,
22495,
62,
53,
1503,
3539,
9148,
1546,
834,
25,
198,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
965,
7,
12993,
62,
45286,
737,
21037,
22784,
2116,
13,
834,
22495,
62,
53,
1503,
3539,
9148,
1546,
834,
58,
12993,
62,
45286,
12962,
198,
220,
220,
220,
220,
220,
1303,
407,
287,
17365,
290,
407,
4277,
276,
198,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
965,
7,
12993,
62,
45286,
737,
21037,
22784,
10148,
8,
198,
220,
825,
651,
62,
12993,
62,
25641,
2977,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
9633,
796,
23884,
198,
220,
220,
220,
329,
7885,
287,
23243,
7,
944,
13,
834,
22495,
62,
53,
1503,
3539,
9148,
1546,
834,
2599,
198,
220,
220,
220,
220,
220,
7885,
796,
7885,
13,
21037,
3419,
198,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
944,
11,
7885,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
9633,
58,
45286,
60,
796,
651,
35226,
7,
944,
11,
45286,
8,
198,
220,
220,
220,
3601,
7,
67,
8142,
7,
25641,
2977,
11,
33793,
28,
19,
4008,
198,
220,
220,
220,
1441,
7,
25641,
2977,
8,
628,
628
] | 1.752287 | 1,421 |
from argparse import ArgumentParser
from sys import exit, stderr
class CustomArgumentParser(ArgumentParser):
def error(self, message) -> None:
stderr.write('Error: %s\n' % message)
exit(1)
| [
6738,
1822,
29572,
1330,
45751,
46677,
198,
6738,
25064,
1330,
8420,
11,
336,
1082,
81,
628,
198,
4871,
8562,
28100,
1713,
46677,
7,
28100,
1713,
46677,
2599,
198,
220,
220,
220,
825,
4049,
7,
944,
11,
3275,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
336,
1082,
81,
13,
13564,
10786,
12331,
25,
4064,
82,
59,
77,
6,
4064,
3275,
8,
628,
220,
220,
220,
220,
220,
220,
220,
8420,
7,
16,
8,
198
] | 2.717949 | 78 |
# -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., 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.
"""Vega's methods."""
__all__ = [
"set_backend",
"is_cpu_device", "is_gpu_device", "is_npu_device",
"is_ms_backend", "is_tf_backend", "is_torch_backend",
"get_devices",
"ClassFactory", "ClassType",
"FileOps",
"run",
"init_cluster_args",
"module_existed",
"TrialAgent",
"get_network",
"get_dataset",
"get_trainer",
"get_quota",
]
__version__ = "1.8.0"
import sys
if sys.version_info < (3, 6):
sys.exit('Sorry, Python < 3.6 is not supported.')
from .common.backend_register import set_backend, is_cpu_device, is_gpu_device, is_npu_device, \
is_ms_backend, is_tf_backend, is_torch_backend, get_devices
from .common.class_factory import ClassFactory, ClassType
from .common.file_ops import FileOps
from .core import run, init_cluster_args, module_existed
from .trainer.trial_agent import TrialAgent
from . import quota
def get_network(name, **kwargs):
"""Return network."""
return ClassFactory.get_cls(ClassType.NETWORK, name)(**kwargs)
def get_dataset(name, **kwargs):
"""Return dataset."""
return ClassFactory.get_cls(ClassType.DATASET, name)(**kwargs)
def get_trainer(name="Trainer", **kwargs):
"""Return trainer."""
return ClassFactory.get_cls(ClassType.TRAINER, name)(**kwargs)
def get_quota(**kwargs):
"""Return quota."""
return ClassFactory.get_cls(ClassType.QUOTA, "Quota")(**kwargs)
| [
2,
532,
9,
12,
19617,
25,
40477,
12,
23,
532,
9,
12,
198,
198,
2,
15069,
357,
34,
8,
12131,
13,
43208,
21852,
1766,
1539,
12052,
13,
1439,
2489,
10395,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
37811,
53,
26470,
338,
5050,
526,
15931,
628,
198,
834,
439,
834,
796,
685,
198,
220,
220,
220,
366,
2617,
62,
1891,
437,
1600,
198,
220,
220,
220,
366,
271,
62,
36166,
62,
25202,
1600,
366,
271,
62,
46999,
62,
25202,
1600,
366,
271,
62,
77,
19944,
62,
25202,
1600,
198,
220,
220,
220,
366,
271,
62,
907,
62,
1891,
437,
1600,
366,
271,
62,
27110,
62,
1891,
437,
1600,
366,
271,
62,
13165,
354,
62,
1891,
437,
1600,
198,
220,
220,
220,
366,
1136,
62,
42034,
1600,
198,
220,
220,
220,
366,
9487,
22810,
1600,
366,
9487,
6030,
1600,
198,
220,
220,
220,
366,
8979,
41472,
1600,
198,
220,
220,
220,
366,
5143,
1600,
198,
220,
220,
220,
366,
15003,
62,
565,
5819,
62,
22046,
1600,
198,
220,
220,
220,
366,
21412,
62,
1069,
6347,
1600,
198,
220,
220,
220,
366,
51,
4454,
36772,
1600,
198,
220,
220,
220,
366,
1136,
62,
27349,
1600,
198,
220,
220,
220,
366,
1136,
62,
19608,
292,
316,
1600,
198,
220,
220,
220,
366,
1136,
62,
2213,
10613,
1600,
198,
220,
220,
220,
366,
1136,
62,
421,
4265,
1600,
198,
60,
198,
198,
834,
9641,
834,
796,
366,
16,
13,
23,
13,
15,
1,
628,
198,
11748,
25064,
198,
361,
25064,
13,
9641,
62,
10951,
1279,
357,
18,
11,
718,
2599,
198,
220,
220,
220,
25064,
13,
37023,
10786,
14385,
11,
11361,
1279,
513,
13,
21,
318,
407,
4855,
2637,
8,
628,
198,
6738,
764,
11321,
13,
1891,
437,
62,
30238,
1330,
900,
62,
1891,
437,
11,
318,
62,
36166,
62,
25202,
11,
318,
62,
46999,
62,
25202,
11,
318,
62,
77,
19944,
62,
25202,
11,
3467,
198,
220,
220,
220,
318,
62,
907,
62,
1891,
437,
11,
318,
62,
27110,
62,
1891,
437,
11,
318,
62,
13165,
354,
62,
1891,
437,
11,
651,
62,
42034,
198,
6738,
764,
11321,
13,
4871,
62,
69,
9548,
1330,
5016,
22810,
11,
5016,
6030,
198,
6738,
764,
11321,
13,
7753,
62,
2840,
1330,
9220,
41472,
198,
6738,
764,
7295,
1330,
1057,
11,
2315,
62,
565,
5819,
62,
22046,
11,
8265,
62,
1069,
6347,
198,
6738,
764,
2213,
10613,
13,
45994,
62,
25781,
1330,
21960,
36772,
198,
6738,
764,
1330,
32539,
628,
198,
4299,
651,
62,
27349,
7,
3672,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
13615,
3127,
526,
15931,
198,
220,
220,
220,
1441,
5016,
22810,
13,
1136,
62,
565,
82,
7,
9487,
6030,
13,
12884,
33249,
11,
1438,
5769,
1174,
46265,
22046,
8,
628,
198,
4299,
651,
62,
19608,
292,
316,
7,
3672,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
13615,
27039,
526,
15931,
198,
220,
220,
220,
1441,
5016,
22810,
13,
1136,
62,
565,
82,
7,
9487,
6030,
13,
35,
1404,
1921,
2767,
11,
1438,
5769,
1174,
46265,
22046,
8,
628,
198,
4299,
651,
62,
2213,
10613,
7,
3672,
2625,
2898,
10613,
1600,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
13615,
21997,
526,
15931,
198,
220,
220,
220,
1441,
5016,
22810,
13,
1136,
62,
565,
82,
7,
9487,
6030,
13,
51,
3861,
1268,
1137,
11,
1438,
5769,
1174,
46265,
22046,
8,
628,
198,
4299,
651,
62,
421,
4265,
7,
1174,
46265,
22046,
2599,
198,
220,
220,
220,
37227,
13615,
32539,
526,
15931,
198,
220,
220,
220,
1441,
5016,
22810,
13,
1136,
62,
565,
82,
7,
9487,
6030,
13,
10917,
29009,
11,
366,
4507,
4265,
4943,
7,
1174,
46265,
22046,
8,
198
] | 2.760811 | 740 |
# -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.cie_lab` module.
"""
from __future__ import division, unicode_literals
import numpy as np
import unittest
from itertools import permutations
from colour.models import XYZ_to_Lab, Lab_to_XYZ, Lab_to_LCHab, LCHab_to_Lab
from colour.utilities import domain_range_scale, ignore_numpy_errors
__author__ = 'Colour Developers'
__copyright__ = 'Copyright (C) 2013-2019 - Colour Developers'
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
__maintainer__ = 'Colour Developers'
__email__ = 'colour-developers@colour-science.org'
__status__ = 'Production'
__all__ = [
'TestXYZ_to_Lab', 'TestLab_to_XYZ', 'TestLab_to_LCHab', 'TestLCHab_to_Lab'
]
class TestXYZ_to_Lab(unittest.TestCase):
"""
Defines :func:`colour.models.cie_lab.XYZ_to_Lab` definition unit tests
methods.
"""
def test_XYZ_to_Lab(self):
"""
Tests :func:`colour.models.cie_lab.XYZ_to_Lab` definition.
"""
np.testing.assert_almost_equal(
XYZ_to_Lab(np.array([0.20654008, 0.12197225, 0.05136952])),
np.array([41.52787529, 52.63858304, 26.92317922]),
decimal=7)
np.testing.assert_almost_equal(
XYZ_to_Lab(np.array([0.14222010, 0.23042768, 0.10495772])),
np.array([55.11636304, -41.08791787, 30.91825778]),
decimal=7)
np.testing.assert_almost_equal(
XYZ_to_Lab(np.array([0.07818780, 0.06157201, 0.28099326])),
np.array([29.80565520, 20.01830466, -48.34913874]),
decimal=7)
np.testing.assert_almost_equal(
XYZ_to_Lab(
np.array([0.20654008, 0.12197225, 0.05136952]),
np.array([0.44757, 0.40745])),
np.array([41.52787529, 38.48089305, -5.73295122]),
decimal=7)
np.testing.assert_almost_equal(
XYZ_to_Lab(
np.array([0.20654008, 0.12197225, 0.05136952]),
np.array([0.34570, 0.35850])),
np.array([41.52787529, 51.19354174, 19.91843098]),
decimal=7)
np.testing.assert_almost_equal(
XYZ_to_Lab(
np.array([0.20654008, 0.12197225, 0.05136952]),
np.array([0.34570, 0.35850, 1.00000])),
np.array([41.52787529, 51.19354174, 19.91843098]),
decimal=7)
def test_n_dimensional_XYZ_to_Lab(self):
"""
Tests :func:`colour.models.cie_lab.XYZ_to_Lab` definition n-dimensional
support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Lab = XYZ_to_Lab(XYZ, illuminant)
XYZ = np.tile(XYZ, (6, 1))
Lab = np.tile(Lab, (6, 1))
np.testing.assert_almost_equal(
XYZ_to_Lab(XYZ, illuminant), Lab, decimal=7)
illuminant = np.tile(illuminant, (6, 1))
np.testing.assert_almost_equal(
XYZ_to_Lab(XYZ, illuminant), Lab, decimal=7)
XYZ = np.reshape(XYZ, (2, 3, 3))
illuminant = np.reshape(illuminant, (2, 3, 2))
Lab = np.reshape(Lab, (2, 3, 3))
np.testing.assert_almost_equal(
XYZ_to_Lab(XYZ, illuminant), Lab, decimal=7)
def test_domain_range_scale_XYZ_to_Lab(self):
"""
Tests :func:`colour.models.cie_lab.XYZ_to_Lab` definition
domain and range scale support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Lab = XYZ_to_Lab(XYZ, illuminant)
d_r = (('reference', 1, 1), (1, 1, 0.01), (100, 100, 1))
for scale, factor_a, factor_b in d_r:
with domain_range_scale(scale):
np.testing.assert_almost_equal(
XYZ_to_Lab(XYZ * factor_a, illuminant),
Lab * factor_b,
decimal=7)
class TestLab_to_XYZ(unittest.TestCase):
"""
Defines :func:`colour.models.cie_lab.Lab_to_XYZ` definition unit tests
methods.
"""
def test_Lab_to_XYZ(self):
"""
Tests :func:`colour.models.cie_lab.Lab_to_XYZ` definition.
"""
np.testing.assert_almost_equal(
Lab_to_XYZ(np.array([41.52787529, 52.63858304, 26.92317922])),
np.array([0.20654008, 0.12197225, 0.05136952]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_XYZ(np.array([55.11636304, -41.08791787, 30.91825778])),
np.array([0.14222010, 0.23042768, 0.10495772]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_XYZ(np.array([29.80565520, 20.01830466, -48.34913874])),
np.array([0.07818780, 0.06157201, 0.28099326]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_XYZ(
np.array([41.52787529, 38.48089305, -5.73295122]),
np.array([0.44757, 0.40745])),
np.array([0.20654008, 0.12197225, 0.05136952]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_XYZ(
np.array([41.52787529, 51.19354174, 19.91843098]),
np.array([0.34570, 0.35850])),
np.array([0.20654008, 0.12197225, 0.05136952]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_XYZ(
np.array([41.52787529, 51.19354174, 19.91843098]),
np.array([0.34570, 0.35850, 1.00000])),
np.array([0.20654008, 0.12197225, 0.05136952]),
decimal=7)
def test_n_dimensional_Lab_to_XYZ(self):
"""
Tests :func:`colour.models.cie_lab.Lab_to_XYZ` definition n-dimensional
support.
"""
Lab = np.array([41.52787529, 52.63858304, 26.92317922])
illuminant = np.array([0.31270, 0.32900])
XYZ = Lab_to_XYZ(Lab, illuminant)
Lab = np.tile(Lab, (6, 1))
XYZ = np.tile(XYZ, (6, 1))
np.testing.assert_almost_equal(
Lab_to_XYZ(Lab, illuminant), XYZ, decimal=7)
illuminant = np.tile(illuminant, (6, 1))
np.testing.assert_almost_equal(
Lab_to_XYZ(Lab, illuminant), XYZ, decimal=7)
Lab = np.reshape(Lab, (2, 3, 3))
illuminant = np.reshape(illuminant, (2, 3, 2))
XYZ = np.reshape(XYZ, (2, 3, 3))
np.testing.assert_almost_equal(
Lab_to_XYZ(Lab, illuminant), XYZ, decimal=7)
def test_domain_range_scale_Lab_to_XYZ(self):
"""
Tests :func:`colour.models.cie_lab.Lab_to_XYZ` definition
domain and range scale support.
"""
Lab = np.array([41.52787529, 52.63858304, 26.92317922])
illuminant = np.array([0.31270, 0.32900])
XYZ = Lab_to_XYZ(Lab, illuminant)
d_r = (('reference', 1, 1), (1, 0.01, 1), (100, 1, 100))
for scale, factor_a, factor_b in d_r:
with domain_range_scale(scale):
np.testing.assert_almost_equal(
Lab_to_XYZ(Lab * factor_a, illuminant),
XYZ * factor_b,
decimal=7)
class TestLab_to_LCHab(unittest.TestCase):
"""
Defines :func:`colour.models.cie_lab.Lab_to_LCHab` definition unit tests
methods.
"""
def test_Lab_to_LCHab(self):
"""
Tests :func:`colour.models.cie_lab.Lab_to_LCHab` definition.
"""
np.testing.assert_almost_equal(
Lab_to_LCHab(np.array([41.52787529, 52.63858304, 26.92317922])),
np.array([41.52787529, 59.12425901, 27.08848784]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_LCHab(np.array([55.11636304, -41.08791787, 30.91825778])),
np.array([55.11636304, 51.42135412, 143.03889556]),
decimal=7)
np.testing.assert_almost_equal(
Lab_to_LCHab(np.array([29.80565520, 20.01830466, -48.34913874])),
np.array([29.80565520, 52.32945383, 292.49133666]),
decimal=7)
def test_n_dimensional_Lab_to_LCHab(self):
"""
Tests :func:`colour.models.cie_lab.Lab_to_LCHab` definition
n-dimensional arrays support.
"""
Lab = np.array([41.52787529, 52.63858304, 26.92317922])
LCHab = Lab_to_LCHab(Lab)
Lab = np.tile(Lab, (6, 1))
LCHab = np.tile(LCHab, (6, 1))
np.testing.assert_almost_equal(Lab_to_LCHab(Lab), LCHab, decimal=7)
Lab = np.reshape(Lab, (2, 3, 3))
LCHab = np.reshape(LCHab, (2, 3, 3))
np.testing.assert_almost_equal(Lab_to_LCHab(Lab), LCHab, decimal=7)
def test_domain_range_scale_Lab_to_LCHab(self):
"""
Tests :func:`colour.models.cie_lab.Lab_to_LCHab` definition domain and
range scale support.
"""
Lab = np.array([41.52787529, 52.63858304, 26.92317922])
LCHab = Lab_to_LCHab(Lab)
d_r = (('reference', 1, 1), (1, 0.01, np.array([0.01, 0.01, 1 / 360])),
(100, 1, np.array([1, 1, 1 / 3.6])))
for scale, factor_a, factor_b in d_r:
with domain_range_scale(scale):
np.testing.assert_almost_equal(
Lab_to_LCHab(Lab * factor_a), LCHab * factor_b, decimal=7)
class TestLCHab_to_Lab(unittest.TestCase):
"""
Defines :func:`colour.models.cie_lab.LCHab_to_Lab` definition unit tests
methods.
"""
def test_LCHab_to_Lab(self):
"""
Tests :func:`colour.models.cie_lab.LCHab_to_Lab` definition.
"""
np.testing.assert_almost_equal(
LCHab_to_Lab(np.array([41.52787529, 59.12425901, 27.08848784])),
np.array([41.52787529, 52.63858304, 26.92317922]),
decimal=7)
np.testing.assert_almost_equal(
LCHab_to_Lab(np.array([55.11636304, 51.42135412, 143.03889556])),
np.array([55.11636304, -41.08791787, 30.91825778]),
decimal=7)
np.testing.assert_almost_equal(
LCHab_to_Lab(np.array([29.80565520, 52.32945383, 292.49133666])),
np.array([29.80565520, 20.01830466, -48.34913874]),
decimal=7)
def test_n_dimensional_LCHab_to_Lab(self):
"""
Tests :func:`colour.models.cie_lab.LCHab_to_Lab` definition
n-dimensional arrays support.
"""
LCHab = np.array([41.52787529, 59.12425901, 27.08848784])
Lab = LCHab_to_Lab(LCHab)
LCHab = np.tile(LCHab, (6, 1))
Lab = np.tile(Lab, (6, 1))
np.testing.assert_almost_equal(LCHab_to_Lab(LCHab), Lab, decimal=7)
LCHab = np.reshape(LCHab, (2, 3, 3))
Lab = np.reshape(Lab, (2, 3, 3))
np.testing.assert_almost_equal(LCHab_to_Lab(LCHab), Lab, decimal=7)
def test_domain_range_scale_LCHab_to_Lab(self):
"""
Tests :func:`colour.models.cie_lab.LCHab_to_Lab` definition domain and
range scale support.
"""
LCHab = np.array([41.52787529, 59.12425901, 27.08848784])
Lab = LCHab_to_Lab(LCHab)
d_r = (('reference', 1, 1), (1, np.array([0.01, 0.01, 1 / 360]), 0.01),
(100, np.array([1, 1, 1 / 3.6]), 1))
for scale, factor_a, factor_b in d_r:
with domain_range_scale(scale):
np.testing.assert_almost_equal(
LCHab_to_Lab(LCHab * factor_a), Lab * factor_b, decimal=7)
if __name__ == '__main__':
unittest.main()
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
7469,
1127,
4326,
5254,
329,
1058,
4666,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
63,
8265,
13,
198,
37811,
198,
198,
6738,
11593,
37443,
834,
1330,
7297,
11,
28000,
1098,
62,
17201,
874,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
555,
715,
395,
198,
6738,
340,
861,
10141,
1330,
9943,
32855,
198,
198,
6738,
9568,
13,
27530,
1330,
41420,
57,
62,
1462,
62,
17822,
11,
3498,
62,
1462,
62,
34278,
57,
11,
3498,
62,
1462,
62,
43,
3398,
397,
11,
406,
3398,
397,
62,
1462,
62,
17822,
198,
6738,
9568,
13,
315,
2410,
1330,
7386,
62,
9521,
62,
9888,
11,
8856,
62,
77,
32152,
62,
48277,
198,
198,
834,
9800,
834,
796,
705,
5216,
454,
34152,
6,
198,
834,
22163,
4766,
834,
796,
705,
15269,
357,
34,
8,
2211,
12,
23344,
532,
38773,
34152,
6,
198,
834,
43085,
834,
796,
705,
3791,
347,
10305,
13789,
532,
3740,
1378,
44813,
1668,
13,
2398,
14,
677,
4541,
14,
21800,
12,
18,
12,
2601,
682,
6,
198,
834,
76,
2913,
10613,
834,
796,
705,
5216,
454,
34152,
6,
198,
834,
12888,
834,
796,
705,
49903,
12,
16244,
364,
31,
49903,
12,
16801,
13,
2398,
6,
198,
834,
13376,
834,
796,
705,
35027,
6,
198,
198,
834,
439,
834,
796,
685,
198,
220,
220,
220,
705,
14402,
34278,
57,
62,
1462,
62,
17822,
3256,
705,
14402,
17822,
62,
1462,
62,
34278,
57,
3256,
705,
14402,
17822,
62,
1462,
62,
43,
3398,
397,
3256,
705,
14402,
43,
3398,
397,
62,
1462,
62,
17822,
6,
198,
60,
628,
198,
4871,
6208,
34278,
57,
62,
1462,
62,
17822,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2896,
1127,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
34278,
57,
62,
1462,
62,
17822,
63,
6770,
4326,
5254,
198,
220,
220,
220,
5050,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
1332,
62,
34278,
57,
62,
1462,
62,
17822,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
34278,
57,
62,
1462,
62,
17822,
63,
6770,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
37659,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
37659,
13,
18747,
26933,
15,
13,
1415,
1828,
10333,
11,
657,
13,
19214,
42363,
3104,
11,
657,
13,
940,
33781,
43571,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
2816,
13,
18298,
2623,
21288,
11,
532,
3901,
13,
2919,
3720,
1558,
5774,
11,
1542,
13,
24,
1507,
1495,
39761,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
37659,
13,
18747,
26933,
15,
13,
2998,
23,
23451,
1795,
11,
657,
13,
3312,
18458,
1264,
11,
657,
13,
21033,
2079,
39195,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
1959,
13,
1795,
3980,
2816,
1238,
11,
1160,
13,
29159,
21288,
2791,
11,
532,
2780,
13,
27371,
20107,
4524,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
2598,
39251,
11,
657,
13,
30120,
2231,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
4353,
13,
22148,
4531,
22515,
11,
532,
20,
13,
4790,
25710,
18376,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
27712,
2154,
11,
657,
13,
2327,
25764,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6885,
13,
1129,
32182,
22985,
11,
678,
13,
24,
22883,
1270,
4089,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
27712,
2154,
11,
657,
13,
2327,
25764,
11,
352,
13,
20483,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6885,
13,
1129,
32182,
22985,
11,
678,
13,
24,
22883,
1270,
4089,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
77,
62,
19577,
62,
34278,
57,
62,
1462,
62,
17822,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
34278,
57,
62,
1462,
62,
17822,
63,
6770,
299,
12,
19577,
198,
220,
220,
220,
220,
220,
220,
220,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
18747,
26933,
15,
13,
27970,
2154,
11,
657,
13,
37967,
405,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
41420,
57,
62,
1462,
62,
17822,
7,
34278,
57,
11,
2801,
7230,
415,
8,
628,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
45941,
13,
40927,
7,
34278,
57,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
40927,
7,
17822,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
34278,
57,
11,
2801,
7230,
415,
828,
3498,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
40927,
7,
359,
7230,
415,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
34278,
57,
11,
2801,
7230,
415,
828,
3498,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
45941,
13,
3447,
1758,
7,
34278,
57,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
3447,
1758,
7,
359,
7230,
415,
11,
357,
17,
11,
513,
11,
362,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
3447,
1758,
7,
17822,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
34278,
57,
11,
2801,
7230,
415,
828,
3498,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
27830,
62,
9521,
62,
9888,
62,
34278,
57,
62,
1462,
62,
17822,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
34278,
57,
62,
1462,
62,
17822,
63,
6770,
198,
220,
220,
220,
220,
220,
220,
220,
7386,
290,
2837,
5046,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
18747,
26933,
15,
13,
27970,
2154,
11,
657,
13,
37967,
405,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
41420,
57,
62,
1462,
62,
17822,
7,
34278,
57,
11,
2801,
7230,
415,
8,
628,
220,
220,
220,
220,
220,
220,
220,
288,
62,
81,
796,
357,
10786,
35790,
3256,
352,
11,
352,
828,
357,
16,
11,
352,
11,
657,
13,
486,
828,
357,
3064,
11,
1802,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5046,
11,
5766,
62,
64,
11,
5766,
62,
65,
287,
288,
62,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
7386,
62,
9521,
62,
9888,
7,
9888,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
62,
1462,
62,
17822,
7,
34278,
57,
1635,
5766,
62,
64,
11,
2801,
7230,
415,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
1635,
5766,
62,
65,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
198,
4871,
6208,
17822,
62,
1462,
62,
34278,
57,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2896,
1127,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
34278,
57,
63,
6770,
4326,
5254,
198,
220,
220,
220,
5050,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
1332,
62,
17822,
62,
1462,
62,
34278,
57,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
34278,
57,
63,
6770,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
37659,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
37659,
13,
18747,
26933,
2816,
13,
18298,
2623,
21288,
11,
532,
3901,
13,
2919,
3720,
1558,
5774,
11,
1542,
13,
24,
1507,
1495,
39761,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1415,
1828,
10333,
11,
657,
13,
19214,
42363,
3104,
11,
657,
13,
940,
33781,
43571,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
37659,
13,
18747,
26933,
1959,
13,
1795,
3980,
2816,
1238,
11,
1160,
13,
29159,
21288,
2791,
11,
532,
2780,
13,
27371,
20107,
4524,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
2998,
23,
23451,
1795,
11,
657,
13,
3312,
18458,
1264,
11,
657,
13,
21033,
2079,
39195,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
4353,
13,
22148,
4531,
22515,
11,
532,
20,
13,
4790,
25710,
18376,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
2598,
39251,
11,
657,
13,
30120,
2231,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6885,
13,
1129,
32182,
22985,
11,
678,
13,
24,
22883,
1270,
4089,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
27712,
2154,
11,
657,
13,
2327,
25764,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6885,
13,
1129,
32182,
22985,
11,
678,
13,
24,
22883,
1270,
4089,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
27712,
2154,
11,
657,
13,
2327,
25764,
11,
352,
13,
20483,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
15,
13,
1238,
2996,
7029,
23,
11,
657,
13,
1065,
41023,
1495,
11,
657,
13,
2713,
1485,
3388,
4309,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
77,
62,
19577,
62,
17822,
62,
1462,
62,
34278,
57,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
34278,
57,
63,
6770,
299,
12,
19577,
198,
220,
220,
220,
220,
220,
220,
220,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
18747,
26933,
15,
13,
27970,
2154,
11,
657,
13,
37967,
405,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
3498,
62,
1462,
62,
34278,
57,
7,
17822,
11,
2801,
7230,
415,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
40927,
7,
17822,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
45941,
13,
40927,
7,
34278,
57,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
17822,
11,
2801,
7230,
415,
828,
41420,
57,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
40927,
7,
359,
7230,
415,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
17822,
11,
2801,
7230,
415,
828,
41420,
57,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
3447,
1758,
7,
17822,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
3447,
1758,
7,
359,
7230,
415,
11,
357,
17,
11,
513,
11,
362,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
45941,
13,
3447,
1758,
7,
34278,
57,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
17822,
11,
2801,
7230,
415,
828,
41420,
57,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
27830,
62,
9521,
62,
9888,
62,
17822,
62,
1462,
62,
34278,
57,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
34278,
57,
63,
6770,
198,
220,
220,
220,
220,
220,
220,
220,
7386,
290,
2837,
5046,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2801,
7230,
415,
796,
45941,
13,
18747,
26933,
15,
13,
27970,
2154,
11,
657,
13,
37967,
405,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
796,
3498,
62,
1462,
62,
34278,
57,
7,
17822,
11,
2801,
7230,
415,
8,
628,
220,
220,
220,
220,
220,
220,
220,
288,
62,
81,
796,
357,
10786,
35790,
3256,
352,
11,
352,
828,
357,
16,
11,
657,
13,
486,
11,
352,
828,
357,
3064,
11,
352,
11,
1802,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5046,
11,
5766,
62,
64,
11,
5766,
62,
65,
287,
288,
62,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
7386,
62,
9521,
62,
9888,
7,
9888,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
34278,
57,
7,
17822,
1635,
5766,
62,
64,
11,
2801,
7230,
415,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41420,
57,
1635,
5766,
62,
65,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
198,
4871,
6208,
17822,
62,
1462,
62,
43,
3398,
397,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2896,
1127,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
43,
3398,
397,
63,
6770,
4326,
5254,
198,
220,
220,
220,
5050,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
1332,
62,
17822,
62,
1462,
62,
43,
3398,
397,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
43,
3398,
397,
63,
6770,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
43,
3398,
397,
7,
37659,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
7863,
13,
17464,
25191,
486,
11,
2681,
13,
46556,
2780,
37688,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
43,
3398,
397,
7,
37659,
13,
18747,
26933,
2816,
13,
18298,
2623,
21288,
11,
532,
3901,
13,
2919,
3720,
1558,
5774,
11,
1542,
13,
24,
1507,
1495,
39761,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
2816,
13,
18298,
2623,
21288,
11,
6885,
13,
3682,
1485,
4051,
1065,
11,
24356,
13,
15,
2548,
4531,
37864,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
43,
3398,
397,
7,
37659,
13,
18747,
26933,
1959,
13,
1795,
3980,
2816,
1238,
11,
1160,
13,
29159,
21288,
2791,
11,
532,
2780,
13,
27371,
20107,
4524,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
1959,
13,
1795,
3980,
2816,
1238,
11,
6740,
13,
37967,
2231,
34741,
11,
41569,
13,
2920,
1485,
2623,
2791,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
77,
62,
19577,
62,
17822,
62,
1462,
62,
43,
3398,
397,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
43,
3398,
397,
63,
6770,
198,
220,
220,
220,
220,
220,
220,
220,
299,
12,
19577,
26515,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
3498,
62,
1462,
62,
43,
3398,
397,
7,
17822,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
40927,
7,
17822,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
45941,
13,
40927,
7,
43,
3398,
397,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
17822,
62,
1462,
62,
43,
3398,
397,
7,
17822,
828,
406,
3398,
397,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
3447,
1758,
7,
17822,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
45941,
13,
3447,
1758,
7,
43,
3398,
397,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
17822,
62,
1462,
62,
43,
3398,
397,
7,
17822,
828,
406,
3398,
397,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
27830,
62,
9521,
62,
9888,
62,
17822,
62,
1462,
62,
43,
3398,
397,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
17822,
62,
1462,
62,
43,
3398,
397,
63,
6770,
7386,
290,
198,
220,
220,
220,
220,
220,
220,
220,
2837,
5046,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
3498,
62,
1462,
62,
43,
3398,
397,
7,
17822,
8,
628,
220,
220,
220,
220,
220,
220,
220,
288,
62,
81,
796,
357,
10786,
35790,
3256,
352,
11,
352,
828,
357,
16,
11,
657,
13,
486,
11,
45941,
13,
18747,
26933,
15,
13,
486,
11,
657,
13,
486,
11,
352,
1220,
11470,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
3064,
11,
352,
11,
45941,
13,
18747,
26933,
16,
11,
352,
11,
352,
1220,
513,
13,
21,
60,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5046,
11,
5766,
62,
64,
11,
5766,
62,
65,
287,
288,
62,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
7386,
62,
9521,
62,
9888,
7,
9888,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3498,
62,
1462,
62,
43,
3398,
397,
7,
17822,
1635,
5766,
62,
64,
828,
406,
3398,
397,
1635,
5766,
62,
65,
11,
32465,
28,
22,
8,
628,
198,
4871,
6208,
43,
3398,
397,
62,
1462,
62,
17822,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2896,
1127,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
43,
3398,
397,
62,
1462,
62,
17822,
63,
6770,
4326,
5254,
198,
220,
220,
220,
5050,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
1332,
62,
43,
3398,
397,
62,
1462,
62,
17822,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
43,
3398,
397,
62,
1462,
62,
17822,
63,
6770,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
62,
1462,
62,
17822,
7,
37659,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
7863,
13,
17464,
25191,
486,
11,
2681,
13,
46556,
2780,
37688,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
6740,
13,
21,
2548,
3365,
21288,
11,
2608,
13,
24,
1954,
21738,
1828,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
62,
1462,
62,
17822,
7,
37659,
13,
18747,
26933,
2816,
13,
18298,
2623,
21288,
11,
6885,
13,
3682,
1485,
4051,
1065,
11,
24356,
13,
15,
2548,
4531,
37864,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
2816,
13,
18298,
2623,
21288,
11,
532,
3901,
13,
2919,
3720,
1558,
5774,
11,
1542,
13,
24,
1507,
1495,
39761,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
62,
1462,
62,
17822,
7,
37659,
13,
18747,
26933,
1959,
13,
1795,
3980,
2816,
1238,
11,
6740,
13,
37967,
2231,
34741,
11,
41569,
13,
2920,
1485,
2623,
2791,
12962,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
18747,
26933,
1959,
13,
1795,
3980,
2816,
1238,
11,
1160,
13,
29159,
21288,
2791,
11,
532,
2780,
13,
27371,
20107,
4524,
46570,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
77,
62,
19577,
62,
43,
3398,
397,
62,
1462,
62,
17822,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
43,
3398,
397,
62,
1462,
62,
17822,
63,
6770,
198,
220,
220,
220,
220,
220,
220,
220,
299,
12,
19577,
26515,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
7863,
13,
17464,
25191,
486,
11,
2681,
13,
46556,
2780,
37688,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
406,
3398,
397,
62,
1462,
62,
17822,
7,
43,
3398,
397,
8,
628,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
45941,
13,
40927,
7,
43,
3398,
397,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
40927,
7,
17822,
11,
357,
21,
11,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
43,
3398,
397,
62,
1462,
62,
17822,
7,
43,
3398,
397,
828,
3498,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
45941,
13,
3447,
1758,
7,
43,
3398,
397,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
45941,
13,
3447,
1758,
7,
17822,
11,
357,
17,
11,
513,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
43,
3398,
397,
62,
1462,
62,
17822,
7,
43,
3398,
397,
828,
3498,
11,
32465,
28,
22,
8,
628,
220,
220,
220,
825,
1332,
62,
27830,
62,
9521,
62,
9888,
62,
43,
3398,
397,
62,
1462,
62,
17822,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30307,
1058,
20786,
25,
63,
49903,
13,
27530,
13,
66,
494,
62,
23912,
13,
43,
3398,
397,
62,
1462,
62,
17822,
63,
6770,
7386,
290,
198,
220,
220,
220,
220,
220,
220,
220,
2837,
5046,
1104,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
796,
45941,
13,
18747,
26933,
3901,
13,
20,
25870,
2425,
1959,
11,
7863,
13,
17464,
25191,
486,
11,
2681,
13,
46556,
2780,
37688,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
3498,
796,
406,
3398,
397,
62,
1462,
62,
17822,
7,
43,
3398,
397,
8,
628,
220,
220,
220,
220,
220,
220,
220,
288,
62,
81,
796,
357,
10786,
35790,
3256,
352,
11,
352,
828,
357,
16,
11,
45941,
13,
18747,
26933,
15,
13,
486,
11,
657,
13,
486,
11,
352,
1220,
11470,
46570,
657,
13,
486,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
3064,
11,
45941,
13,
18747,
26933,
16,
11,
352,
11,
352,
1220,
513,
13,
21,
46570,
352,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5046,
11,
5766,
62,
64,
11,
5766,
62,
65,
287,
288,
62,
81,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
7386,
62,
9521,
62,
9888,
7,
9888,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
13,
33407,
13,
30493,
62,
28177,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
406,
3398,
397,
62,
1462,
62,
17822,
7,
43,
3398,
397,
1635,
5766,
62,
64,
828,
3498,
1635,
5766,
62,
65,
11,
32465,
28,
22,
8,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 1.874365 | 6,105 |
from delphin import tdl, itsdb
from delphin.tokens import YYTokenLattice
import glob, sys, pathlib
import json, pickle
import numpy as np
from collections import OrderedDict
import pos_map
from datetime import datetime
CONTEXT_WINDOW = 2
DEV = ['ws212', 'ecpa']
TEST = ['cb', 'ecpr', 'jhk', 'jhu', 'tgk', 'tgu', 'psk', 'psu', #'rondane',
'vm32', 'ws213', 'ws214', 'petet', 'wsj23']
IGNORE = ['ntucle', 'omw', 'wlb03', 'wnb03']
NONTRAIN = DEV + TEST + IGNORE
class LexTypeExtractor:
def __init__(self):
self.stats = {'corpora': [], 'failed corpora': [], 'tokens': {}, 'total lextypes': 0}
def parse_lexicons(self,lexicons):
lextypes = {} # mapping of lexical entry IDs to types
for lexicon in glob.iglob(lexicons+'**'):
for event, obj, lineno in tdl.iterparse(lexicon):
if event == 'TypeDefinition':
lextypes[obj.identifier] = obj.supertypes[0] # assume exactly 1
self.lextypes = lextypes
def read_testsuites(self,path):
max_sen_length = 0
corpus_size = 0
data = {'train':{'by corpus':[], 'by length': {}},
'test':{'by corpus':[], 'by length': {}},
'dev':{'by corpus':[], 'by length': {}}}
print('Reading test suite files into pydelphin objects...')
n = 0
for idx in ['train','dev','test']:
t = 0
for i, tsuite in enumerate(sorted(glob.iglob(path + idx + '/**'))):
n += 1
ts = itsdb.TestSuite(tsuite)
if idx == 'train':
message = "A nontrain dataset {} is being added as training data!".format(ts.path.stem)
assert ts.path.stem not in NONTRAIN, message
data[idx]['by corpus'].append({'name':ts.path.stem})
items = list(ts.processed_items())
data[idx]['by corpus'][i]['sentences'] = {}
data[idx]['by corpus'][i]['tokens-tags'] = []
corpus_size += len(items)
for response in items:
if len(response['results']) > 0:
deriv = response.result(0).derivation()
terminals = deriv.terminals()
t += len(terminals)
p_input = response['p-input']
p_tokens = response['p-tokens']
terminals_tok_tags = self.map_lattice_to_input(p_input, p_tokens, deriv)
if len(terminals) not in data[idx]['by corpus'][i]['sentences']:
data[idx]['by corpus'][i]['sentences'][len(terminals)] = []
data[idx]['by corpus'][i]['sentences'][len(terminals)].append(terminals_tok_tags)
data[idx]['by corpus'][i]['tokens-tags'].append(terminals_tok_tags)
if len(terminals) > max_sen_length:
max_sen_length = len(terminals)
print('All raw {} tokens: {}'.format(idx,t))
t1 = 0
t2 = 0
if idx == 'train':
all_sentences = {}
for ts in data[idx]['by corpus']:
t1 += self.org_sen_by_length(all_sentences, ts)
for l in all_sentences:
for s in all_sentences[l]:
t2 += len(s)
data[idx]['by length'] = OrderedDict(sorted(all_sentences.items()))
else:
for ts in data[idx]['by corpus']:
all_sentences = {}
t1 += self.org_sen_by_length(all_sentences, ts)
data[idx]['by length'][ts['name']] = OrderedDict(sorted(all_sentences.items()))
for ts in data[idx]['by length']:
for l in data[idx]['by length'][ts]:
for s in data[idx]['by length'][ts][l]:
t2 += len(s)
print('Added {} {} tokens to the by-corpus table'.format(t1,idx))
print('Added {} {} tokens to the by-length table'.format(t2,idx))
return max_sen_length, corpus_size, n+1, data
def org_sen_by_length(self, all_sentences, ts):
n = 0
for l in ts['sentences']:
for s in ts['sentences'][l]:
n += len(s)
if l not in all_sentences:
all_sentences[l] = []
all_sentences[l] += ts['sentences'][l]
return n
def process_testsuites_autoreg(self,testsuites,lextypes, out_dir):
max_sen_length, corpus_size, num_ts, data = self.read_testsuites(testsuites)
tables_by_len = {'train':{},'dev':{},'test':{}}
for k in ['train','dev','test']:
pathlib.Path(out_dir + '/labeled-data/' + k).mkdir(parents=True, exist_ok=False)
all_tokens = 0
test = k in ['dev','test']
if test:
for corpus in data[k]['by length']:
all_tokens += self.process_table(data, k, lextypes, tables_by_len, test, corpus)
else:
all_tokens += self.process_table(data, k, lextypes, tables_by_len, test)
print('Total PROCESSED {} tokens: {}'.format(k, all_tokens))
def process_testsuites_nonautoreg(self,testsuites,lextypes, out_dir):
pos_mapper = pos_map.Pos_mapper('./pos-map.txt')
max_sen_length, corpus_size, num_ts, data = self.read_testsuites(testsuites)
for k in ['train','dev','test']:
is_devtest_data = k in ['dev','test']
pathlib.Path(out_dir + '/labeled-data/' + k).mkdir(parents=True, exist_ok=False)
if is_devtest_data:
for corpus in data[k]['by corpus']:
x,y = self.process_corpus(lextypes,corpus,pos_mapper)
data_table['ft'] = x
data_table['lt'] = y
with open(out_dir + '/labeled-data/' + k + '/' + corpus['name'], 'wb') as f:
pickle.dump(data_table, f)
else:
data_table = {'ft':[],'lt':[]}
for corpus in data[k]['by corpus']:
x, y = self.process_corpus(lextypes,corpus,pos_mapper)
data_table['ft'] += x
data_table['lt'] += y
with open(out_dir + '/labeled-data/train/train' , 'wb') as f:
pickle.dump(data_table, f)
def process_corpus(self, lextypes, corpus,pos_mapper):
data = []
y = []
for sen in corpus['tokens-tags']:
tokens, labels, pos_tags, autoregress_labels = \
self.get_tokens_labels(sen, CONTEXT_WINDOW, lextypes, pos_mapper, False)
for k, t in enumerate(tokens):
if k < CONTEXT_WINDOW or k >= len(tokens) - CONTEXT_WINDOW:
continue
y.append(labels[k])
data.append(self.get_context(t, tokens, pos_tags, k, CONTEXT_WINDOW))
return data, y
def process_table(self, data, k, lextypes, tables_by_len, test, corpus=None):
n = 0
table = data[k]['by length'] if not test else data[k]['by length'][corpus]
for sen_len in table:
tables_by_len[k][sen_len] = {}
autoregress_table = np.array([[{}] * len(table[sen_len])
for i in range(sen_len)])
labels_table = np.array([[{}] * len(table[sen_len]) for i in range(sen_len)])
# print("Processing sentences of length {}".format(sen_len))
n += self.process_length(lextypes, table[sen_len],
autoregress_table, labels_table, test=test)
tables_by_len[k][sen_len]['ft'] = autoregress_table
tables_by_len[k][sen_len]['lt'] = labels_table
if test:
with open(out_dir + '/labeled-data/' + k + '/' + corpus, 'wb') as f:
pickle.dump(tables_by_len[k], f)
else:
with open(out_dir + '/labeled-data/train/train' , 'wb') as f:
pickle.dump(tables_by_len[k], f)
return n
'''
Assume a numpy table coming in. Get e.g. tokens 2 through 5 in sentences 4 and 5,
for the test suite #20 in the data.
'''
def get_table_portion(self, ts_info, table, ts_num, token_range, sentence_range):
ts_column = ts_info[ts_num]['column']
tokens = sum(ts_info[ts_num]['sentences'][sentence_range[0]:sentence_range[1]])
return table[token_range[0]:token_range[1],ts_column:ts_column+tokens]
def process_testsuite(self, lextypes, logf, tsuite, autoregress_table, labels_table, start):
print("Processing " + tsuite['name'])
logf.write("Processing " + tsuite['name'] + '\n')
pairs = []
contexts = []
y = []
ys = []
pos_mapper = pos_map.Pos_mapper('./pos-map.txt') # do this for every test suite to count unknowns in each
for sentence_len in tsuite['sentences']:
items = tsuite['sentences'][sentence_len]
for j, lst_of_terminals in enumerate(items):
contexts.append([])
#if j % 100 == 0:
# print("Processing item {} out of {}...".format(j, len(items)))
tokens,labels,pos_tags,autoregress_labels = \
self.get_tokens_labels(tsuite['tokens-tags'][j],CONTEXT_WINDOW, lextypes,pos_mapper,test=False)
ys.append(labels[CONTEXT_WINDOW:CONTEXT_WINDOW*-1])
for k, t in enumerate(tokens):
if k < CONTEXT_WINDOW or k >= len(tokens) - CONTEXT_WINDOW:
continue
pairs.append((t, labels[k]))
y.append(labels[k])
contexts[j].append(self.get_context(t, tokens, pos_tags, k, CONTEXT_WINDOW))
autoregress_table[k-CONTEXT_WINDOW][start+j] = \
self.get_autoregress_context(tokens,pos_tags,autoregress_labels, k,CONTEXT_WINDOW)
labels_table[k-CONTEXT_WINDOW][start+j] = labels[k]
pairs.append(('--EOS--','--EOS--')) # sentence separator
y.append('\n') # sentence separator
self.write_output(contexts, pairs, tsuite['name'])
return ys
def process_length(self, lextypes, items, autoregress_table, labels_table,test):
y = []
ys = []
all_tokens = 0
pos_mapper = pos_map.Pos_mapper('./pos-map.txt') # do this for every test suite to count unknowns in each
for j, lst_of_terminals in enumerate(items):
#if j % 100 == 0:
# print("Processing item {} out of {}...".format(j, len(items)))
tokens,labels,pos_tags,autoregress_labels = \
self.get_tokens_labels(lst_of_terminals,CONTEXT_WINDOW, lextypes,pos_mapper,test)
ys.append(labels[CONTEXT_WINDOW:CONTEXT_WINDOW*-1])
for k, t in enumerate(tokens):
if k < CONTEXT_WINDOW or k >= len(tokens) - CONTEXT_WINDOW:
continue
y.append(labels[k])
autoregress_table[k-CONTEXT_WINDOW][j] = \
self.get_autoregress_context(tokens,pos_tags,autoregress_labels, k,CONTEXT_WINDOW)
labels_table[k-CONTEXT_WINDOW][j] = labels[k]
all_tokens += 1
y.append('\n') # sentence separator
return all_tokens
def map_lattice_to_input(self, p_input, p_tokens, deriv):
yy_lattice = YYTokenLattice.from_string(p_tokens)
yy_input = YYTokenLattice.from_string(p_input)
terminals_toks_postags = []
for t in deriv.terminals():
toks_pos_tags = []
for ttok in t.tokens:
span = None
pos_probs = {}
for lat_tok in yy_lattice.tokens:
if lat_tok.id == ttok.id:
span = lat_tok.lnk.data
break
for i,in_tok in enumerate(yy_input.tokens):
if in_tok.lnk.data[0] == span[0]:
for pos, p in in_tok.pos:
if pos not in pos_probs:
pos_probs[pos] = []
pos_probs[pos].append(float(p))
if in_tok.lnk.data[1] != span[1]:
cur_tok = in_tok
while cur_tok.lnk.data[1] != span[1]:
next_tok = yy_input.tokens[i+1]
i += 1
for pos, p in next_tok.pos:
if pos not in pos_probs:
pos_probs[pos] = []
pos_probs[pos].append(float(p))
cur_tok = next_tok
else:
break
toks_pos_tags.append((ttok, pos_probs))
terminals_toks_postags.append((t,toks_pos_tags))
return terminals_toks_postags
def write_output(self, contexts, pairs, ts_name):
for d in ['train/','test/','dev/', 'ignore/']:
for pd in ['simple/','by-corpus/contexts/','by-corpus/true_labels/']:
pathlib.Path('./output/' + pd + d).mkdir(parents=True, exist_ok=True)
true_labels = []
suf = 'train/'
if ts_name in IGNORE:
suf = 'ignore/'
if ts_name in TEST:
suf = 'test/'
elif ts_name in DEV:
suf = 'dev/'
with open('./output/simple/' + suf + ts_name, 'w') as f:
for form, letype in pairs:
if not letype=='--EOS--':
true_labels.append(str(letype))
str_pair = f'{form}\t{letype}'
f.write(str_pair + '\n')
else:
f.write('\n') # sentence separator
true_labels.append('\n') # sentence separator
with open('./output/by-corpus/true_labels/' + suf + ts_name, 'w') as f:
for tl in true_labels:
f.write(tl)
if tl != '\n':
f.write('\n')
with open('./output/by-corpus/contexts/' + suf + ts_name, 'w') as f:
f.write(json.dumps(contexts))
def get_context(self, t, tokens, pos_tags, i, window):
context = {'w': t, 'pos': pos_tags[i]}
for j in range(1,window+1):
prev_tok = tokens[i-j]
prev_pos = pos_tags[i-j]
next_tok = tokens[i+j]
next_pos = pos_tags[i+j]
context['w-' + str(j)] = prev_tok
context['w+' + str(j)] = next_tok
context['pos-' + str(j)] = prev_pos
context['pos+' + str(j)] = next_pos
return context
def get_autoregress_context(self,tokens,pos_tags,predicted_labels, k,window):
context = {'w':tokens[k],'pos':pos_tags[k]}
for i in range(1,window+1):
context['w-' + str(i)] = tokens[k-i]
context['w+' + str(i)] = tokens[k+i]
context['pos-' + str(i)] = pos_tags[k-i]
context['pos+' + str(i)] = pos_tags[k+i]
context['tag-' + str(i)] = predicted_labels[k-i] # Will be None or FAKE in test mode
return context
def get_tokens_labels(self, terms_and_tokens_tags, context_window, lextypes,pos_mapper, test):
tokens = []
labels = []
pos_tags = []
previous_tags = []
for i,(terminal, toks_tags) in enumerate(terms_and_tokens_tags):
letype = str(lextypes.get(terminal.parent.entity, "<UNK>"))
tokens.append(terminal.form)
labels.append(letype)
pos_tags.append(self.get_pos_tag(toks_tags, pos_mapper))
if test:
previous_tags.append(None)
else:
previous_tags.append(letype)
for i in range(1,1+context_window):
tokens.insert(0, 'FAKE-' + str(i))
labels.insert(0, 'FAKE-' + str(i))
pos_tags.insert(0,'FAKE-' + str(i))
previous_tags.insert(0, 'FAKE-' + str(i))
tokens.append('FAKE+' + str(i))
labels.append('FAKE+' + str(i))
pos_tags.append('FAKE+' + str(i))
return tokens, labels, pos_tags, previous_tags
def get_pos_tag(self,tokens_tags, pos_mapper):
tag = ''
for tt in tokens_tags:
pos_probs = tt[1]
for pos in pos_probs:
tag = tag + '+' + pos
tag = tag.strip('+')
if '+' in tag:
tag = pos_mapper.map_tag(tag)
return tag
if __name__ == "__main__":
args = sys.argv[1:]
dt_str = '-'.join(str(datetime.now()).split()).replace(':','.')
run_id = sys.argv[3] + dt_str
if len(sys.argv) > 3:
autoreg = sys.argv[4] == 'autoreg'
out_dir = './output/' + run_id
pathlib.Path(out_dir).mkdir(parents=True, exist_ok=False)
le = LexTypeExtractor()
le.parse_lexicons(args[0])
le.stats['total lextypes'] = len(le.lextypes)
if autoreg:
le.process_testsuites_autoreg(args[1],le.lextypes,out_dir)
else:
le.process_testsuites_nonautoreg(args[1],le.lextypes,out_dir)
with open(out_dir + '/lextypes','wb') as f:
lextypes = set([str(v) for v in list(le.lextypes.values())])
pickle.dump(lextypes,f)
| [
6738,
1619,
746,
259,
1330,
256,
25404,
11,
663,
9945,
198,
6738,
1619,
746,
259,
13,
83,
482,
641,
1330,
575,
56,
30642,
43,
1078,
501,
198,
11748,
15095,
11,
25064,
11,
3108,
8019,
198,
11748,
33918,
11,
2298,
293,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
17268,
1330,
14230,
1068,
35,
713,
198,
11748,
1426,
62,
8899,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
198,
10943,
32541,
62,
28929,
3913,
796,
362,
198,
198,
39345,
796,
37250,
18504,
21777,
3256,
705,
721,
8957,
20520,
198,
51,
6465,
796,
37250,
21101,
3256,
705,
721,
1050,
3256,
705,
73,
71,
74,
3256,
705,
73,
13415,
3256,
705,
25297,
74,
3256,
705,
83,
5162,
3256,
705,
862,
74,
3256,
705,
862,
84,
3256,
1303,
6,
81,
623,
1531,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14761,
2624,
3256,
705,
18504,
26427,
3256,
705,
18504,
22291,
3256,
705,
6449,
316,
3256,
705,
18504,
73,
1954,
20520,
198,
16284,
6965,
796,
37250,
429,
14913,
3256,
705,
296,
86,
3256,
705,
86,
23160,
3070,
3256,
705,
675,
65,
3070,
20520,
198,
45,
35830,
3861,
1268,
796,
5550,
53,
1343,
43001,
1343,
28730,
6965,
628,
198,
4871,
17210,
6030,
11627,
40450,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
34242,
796,
1391,
6,
10215,
38851,
10354,
685,
4357,
705,
47904,
3990,
64,
10354,
685,
4357,
705,
83,
482,
641,
10354,
1391,
5512,
705,
23350,
443,
742,
9497,
10354,
657,
92,
628,
220,
220,
220,
825,
21136,
62,
2588,
34280,
7,
944,
11,
2588,
34280,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
443,
742,
9497,
796,
23884,
220,
1303,
16855,
286,
31191,
605,
5726,
32373,
284,
3858,
198,
220,
220,
220,
220,
220,
220,
220,
329,
31191,
4749,
287,
15095,
13,
38686,
672,
7,
2588,
34280,
10,
6,
1174,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1785,
11,
26181,
11,
9493,
23397,
287,
256,
25404,
13,
2676,
29572,
7,
2588,
4749,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1785,
6624,
705,
6030,
36621,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
443,
742,
9497,
58,
26801,
13,
738,
7483,
60,
796,
26181,
13,
2385,
9287,
12272,
58,
15,
60,
220,
1303,
7048,
3446,
352,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
293,
742,
9497,
796,
443,
742,
9497,
628,
220,
220,
220,
825,
1100,
62,
9288,
2385,
2737,
7,
944,
11,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
6248,
62,
13664,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
35789,
62,
7857,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
1391,
6,
27432,
10354,
90,
6,
1525,
35789,
10354,
58,
4357,
705,
1525,
4129,
10354,
23884,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9288,
10354,
90,
6,
1525,
35789,
10354,
58,
4357,
705,
1525,
4129,
10354,
23884,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7959,
10354,
90,
6,
1525,
35789,
10354,
58,
4357,
705,
1525,
4129,
10354,
1391,
42535,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
36120,
1332,
18389,
3696,
656,
279,
5173,
417,
746,
259,
5563,
986,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
4686,
87,
287,
37250,
27432,
41707,
7959,
41707,
9288,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
256,
2385,
578,
287,
27056,
378,
7,
82,
9741,
7,
4743,
672,
13,
38686,
672,
7,
6978,
1343,
4686,
87,
1343,
31051,
1174,
6,
4008,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
40379,
796,
663,
9945,
13,
14402,
5606,
578,
7,
912,
84,
578,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4686,
87,
6624,
705,
27432,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
796,
366,
32,
45930,
3201,
27039,
23884,
318,
852,
2087,
355,
3047,
1366,
48220,
18982,
7,
912,
13,
6978,
13,
927,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
40379,
13,
6978,
13,
927,
407,
287,
399,
35830,
3861,
1268,
11,
3275,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
4083,
33295,
15090,
6,
3672,
10354,
912,
13,
6978,
13,
927,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3709,
796,
1351,
7,
912,
13,
14681,
276,
62,
23814,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
7131,
72,
7131,
6,
34086,
3007,
20520,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
7131,
72,
7131,
6,
83,
482,
641,
12,
31499,
20520,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35789,
62,
7857,
15853,
18896,
7,
23814,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2882,
287,
3709,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
26209,
17816,
43420,
6,
12962,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16124,
796,
2882,
13,
20274,
7,
15,
737,
1082,
26939,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30237,
796,
16124,
13,
23705,
874,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
15853,
18896,
7,
23705,
874,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
15414,
796,
2882,
17816,
79,
12,
15414,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
83,
482,
641,
796,
2882,
17816,
79,
12,
83,
482,
641,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30237,
62,
83,
482,
62,
31499,
796,
2116,
13,
8899,
62,
75,
1078,
501,
62,
1462,
62,
15414,
7,
79,
62,
15414,
11,
279,
62,
83,
482,
641,
11,
16124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
23705,
874,
8,
407,
287,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
7131,
72,
7131,
6,
34086,
3007,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
7131,
72,
7131,
6,
34086,
3007,
6,
7131,
11925,
7,
23705,
874,
15437,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
7131,
72,
7131,
6,
34086,
3007,
6,
7131,
11925,
7,
23705,
874,
25295,
33295,
7,
23705,
874,
62,
83,
482,
62,
31499,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
7131,
72,
7131,
6,
83,
482,
641,
12,
31499,
6,
4083,
33295,
7,
23705,
874,
62,
83,
482,
62,
31499,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
23705,
874,
8,
1875,
3509,
62,
6248,
62,
13664,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
6248,
62,
13664,
796,
18896,
7,
23705,
874,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
3237,
8246,
23884,
16326,
25,
23884,
4458,
18982,
7,
312,
87,
11,
83,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
16,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
17,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4686,
87,
6624,
705,
27432,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
34086,
3007,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
40379,
287,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
16,
15853,
2116,
13,
2398,
62,
6248,
62,
1525,
62,
13664,
7,
439,
62,
34086,
3007,
11,
40379,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
300,
287,
477,
62,
34086,
3007,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
264,
287,
477,
62,
34086,
3007,
58,
75,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
17,
15853,
18896,
7,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
4129,
20520,
796,
14230,
1068,
35,
713,
7,
82,
9741,
7,
439,
62,
34086,
3007,
13,
23814,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
40379,
287,
1366,
58,
312,
87,
7131,
6,
1525,
35789,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
34086,
3007,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
16,
15853,
2116,
13,
2398,
62,
6248,
62,
1525,
62,
13664,
7,
439,
62,
34086,
3007,
11,
40379,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
58,
312,
87,
7131,
6,
1525,
4129,
6,
7131,
912,
17816,
3672,
6,
11907,
796,
14230,
1068,
35,
713,
7,
82,
9741,
7,
439,
62,
34086,
3007,
13,
23814,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
40379,
287,
1366,
58,
312,
87,
7131,
6,
1525,
4129,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
300,
287,
1366,
58,
312,
87,
7131,
6,
1525,
4129,
6,
7131,
912,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
264,
287,
1366,
58,
312,
87,
7131,
6,
1525,
4129,
6,
7131,
912,
7131,
75,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
17,
15853,
18896,
7,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
13003,
23884,
23884,
16326,
284,
262,
416,
12,
10215,
79,
385,
3084,
4458,
18982,
7,
83,
16,
11,
312,
87,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
13003,
23884,
23884,
16326,
284,
262,
416,
12,
13664,
3084,
4458,
18982,
7,
83,
17,
11,
312,
87,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3509,
62,
6248,
62,
13664,
11,
35789,
62,
7857,
11,
299,
10,
16,
11,
1366,
628,
220,
220,
220,
825,
8745,
62,
6248,
62,
1525,
62,
13664,
7,
944,
11,
477,
62,
34086,
3007,
11,
40379,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
300,
287,
40379,
17816,
34086,
3007,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
264,
287,
40379,
17816,
34086,
3007,
6,
7131,
75,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
18896,
7,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
300,
407,
287,
477,
62,
34086,
3007,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
34086,
3007,
58,
75,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
34086,
3007,
58,
75,
60,
15853,
40379,
17816,
34086,
3007,
6,
7131,
75,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
299,
628,
220,
220,
220,
825,
1429,
62,
9288,
2385,
2737,
62,
2306,
382,
70,
7,
944,
11,
9288,
2385,
2737,
11,
293,
742,
9497,
11,
503,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
6248,
62,
13664,
11,
35789,
62,
7857,
11,
997,
62,
912,
11,
1366,
796,
2116,
13,
961,
62,
9288,
2385,
2737,
7,
9288,
2385,
2737,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8893,
62,
1525,
62,
11925,
796,
1391,
6,
27432,
10354,
90,
92,
4032,
7959,
10354,
90,
92,
4032,
9288,
10354,
90,
11709,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
37250,
27432,
41707,
7959,
41707,
9288,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
8019,
13,
15235,
7,
448,
62,
15908,
1343,
31051,
18242,
276,
12,
7890,
14,
6,
1343,
479,
737,
28015,
15908,
7,
23743,
28,
17821,
11,
2152,
62,
482,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
83,
482,
641,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1332,
796,
479,
287,
37250,
7959,
41707,
9288,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1332,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
35789,
287,
1366,
58,
74,
7131,
6,
1525,
4129,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
83,
482,
641,
15853,
2116,
13,
14681,
62,
11487,
7,
7890,
11,
479,
11,
443,
742,
9497,
11,
8893,
62,
1525,
62,
11925,
11,
1332,
11,
35789,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
83,
482,
641,
15853,
2116,
13,
14681,
62,
11487,
7,
7890,
11,
479,
11,
443,
742,
9497,
11,
8893,
62,
1525,
62,
11925,
11,
1332,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
14957,
41755,
7597,
1961,
23884,
16326,
25,
23884,
4458,
18982,
7,
74,
11,
477,
62,
83,
482,
641,
4008,
628,
220,
220,
220,
825,
1429,
62,
9288,
2385,
2737,
62,
13159,
2306,
382,
70,
7,
944,
11,
9288,
2385,
2737,
11,
293,
742,
9497,
11,
503,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
76,
11463,
796,
1426,
62,
8899,
13,
21604,
62,
76,
11463,
7,
4458,
14,
1930,
12,
8899,
13,
14116,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
6248,
62,
13664,
11,
35789,
62,
7857,
11,
997,
62,
912,
11,
1366,
796,
2116,
13,
961,
62,
9288,
2385,
2737,
7,
9288,
2385,
2737,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
37250,
27432,
41707,
7959,
41707,
9288,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
7959,
9288,
62,
7890,
796,
479,
287,
37250,
7959,
41707,
9288,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
8019,
13,
15235,
7,
448,
62,
15908,
1343,
31051,
18242,
276,
12,
7890,
14,
6,
1343,
479,
737,
28015,
15908,
7,
23743,
28,
17821,
11,
2152,
62,
482,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
62,
7959,
9288,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
35789,
287,
1366,
58,
74,
7131,
6,
1525,
35789,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
88,
796,
2116,
13,
14681,
62,
10215,
79,
385,
7,
293,
742,
9497,
11,
10215,
79,
385,
11,
1930,
62,
76,
11463,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
11487,
17816,
701,
20520,
796,
2124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
11487,
17816,
2528,
20520,
796,
331,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
448,
62,
15908,
1343,
31051,
18242,
276,
12,
7890,
14,
6,
1343,
479,
1343,
31051,
6,
1343,
35789,
17816,
3672,
6,
4357,
705,
39346,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2298,
293,
13,
39455,
7,
7890,
62,
11487,
11,
277,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
11487,
796,
1391,
6,
701,
10354,
21737,
4032,
2528,
10354,
21737,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
35789,
287,
1366,
58,
74,
7131,
6,
1525,
35789,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
11,
331,
796,
2116,
13,
14681,
62,
10215,
79,
385,
7,
293,
742,
9497,
11,
10215,
79,
385,
11,
1930,
62,
76,
11463,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
11487,
17816,
701,
20520,
15853,
2124,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
11487,
17816,
2528,
20520,
15853,
331,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
448,
62,
15908,
1343,
31051,
18242,
276,
12,
7890,
14,
27432,
14,
27432,
6,
837,
705,
39346,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2298,
293,
13,
39455,
7,
7890,
62,
11487,
11,
277,
8,
628,
220,
220,
220,
825,
1429,
62,
10215,
79,
385,
7,
944,
11,
443,
742,
9497,
11,
35789,
11,
1930,
62,
76,
11463,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
3308,
287,
35789,
17816,
83,
482,
641,
12,
31499,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
11,
14722,
11,
1426,
62,
31499,
11,
1960,
382,
5914,
62,
23912,
1424,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
83,
482,
641,
62,
23912,
1424,
7,
6248,
11,
22904,
13918,
62,
28929,
3913,
11,
443,
742,
9497,
11,
1426,
62,
76,
11463,
11,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
479,
11,
256,
287,
27056,
378,
7,
83,
482,
641,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
479,
1279,
22904,
13918,
62,
28929,
3913,
393,
479,
18189,
18896,
7,
83,
482,
641,
8,
532,
22904,
13918,
62,
28929,
3913,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
7,
23912,
1424,
58,
74,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
13,
33295,
7,
944,
13,
1136,
62,
22866,
7,
83,
11,
16326,
11,
1426,
62,
31499,
11,
479,
11,
22904,
13918,
62,
28929,
3913,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
11,
331,
628,
220,
220,
220,
825,
1429,
62,
11487,
7,
944,
11,
1366,
11,
479,
11,
443,
742,
9497,
11,
8893,
62,
1525,
62,
11925,
11,
1332,
11,
35789,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
299,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
3084,
796,
1366,
58,
74,
7131,
6,
1525,
4129,
20520,
611,
407,
1332,
2073,
1366,
58,
74,
7131,
6,
1525,
4129,
6,
7131,
10215,
79,
385,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
3308,
62,
11925,
287,
3084,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8893,
62,
1525,
62,
11925,
58,
74,
7131,
6248,
62,
11925,
60,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1960,
382,
5914,
62,
11487,
796,
45941,
13,
18747,
26933,
58,
90,
92,
60,
1635,
18896,
7,
11487,
58,
6248,
62,
11925,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
6248,
62,
11925,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
62,
11487,
796,
45941,
13,
18747,
26933,
58,
90,
92,
60,
1635,
18896,
7,
11487,
58,
6248,
62,
11925,
12962,
329,
1312,
287,
2837,
7,
6248,
62,
11925,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7203,
18709,
278,
13439,
286,
4129,
23884,
1911,
18982,
7,
6248,
62,
11925,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
2116,
13,
14681,
62,
13664,
7,
293,
742,
9497,
11,
3084,
58,
6248,
62,
11925,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1960,
382,
5914,
62,
11487,
11,
14722,
62,
11487,
11,
1332,
28,
9288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8893,
62,
1525,
62,
11925,
58,
74,
7131,
6248,
62,
11925,
7131,
6,
701,
20520,
796,
1960,
382,
5914,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8893,
62,
1525,
62,
11925,
58,
74,
7131,
6248,
62,
11925,
7131,
6,
2528,
20520,
796,
14722,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1332,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
448,
62,
15908,
1343,
31051,
18242,
276,
12,
7890,
14,
6,
1343,
479,
1343,
31051,
6,
1343,
35789,
11,
705,
39346,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2298,
293,
13,
39455,
7,
83,
2977,
62,
1525,
62,
11925,
58,
74,
4357,
277,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
448,
62,
15908,
1343,
31051,
18242,
276,
12,
7890,
14,
27432,
14,
27432,
6,
837,
705,
39346,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2298,
293,
13,
39455,
7,
83,
2977,
62,
1525,
62,
11925,
58,
74,
4357,
277,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
299,
628,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2195,
2454,
257,
299,
32152,
3084,
2406,
287,
13,
3497,
304,
13,
70,
13,
16326,
362,
832,
642,
287,
13439,
604,
290,
642,
11,
198,
220,
220,
220,
329,
262,
1332,
18389,
1303,
1238,
287,
262,
1366,
13,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
825,
651,
62,
11487,
62,
16864,
7,
944,
11,
40379,
62,
10951,
11,
3084,
11,
40379,
62,
22510,
11,
11241,
62,
9521,
11,
6827,
62,
9521,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
40379,
62,
28665,
796,
40379,
62,
10951,
58,
912,
62,
22510,
7131,
6,
28665,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
16326,
796,
2160,
7,
912,
62,
10951,
58,
912,
62,
22510,
7131,
6,
34086,
3007,
6,
7131,
34086,
594,
62,
9521,
58,
15,
5974,
34086,
594,
62,
9521,
58,
16,
11907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
3084,
58,
30001,
62,
9521,
58,
15,
5974,
30001,
62,
9521,
58,
16,
4357,
912,
62,
28665,
25,
912,
62,
28665,
10,
83,
482,
641,
60,
628,
220,
220,
220,
825,
1429,
62,
9288,
2385,
578,
7,
944,
11,
443,
742,
9497,
11,
2604,
69,
11,
256,
2385,
578,
11,
1960,
382,
5914,
62,
11487,
11,
14722,
62,
11487,
11,
923,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
18709,
278,
366,
1343,
256,
2385,
578,
17816,
3672,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2604,
69,
13,
13564,
7203,
18709,
278,
366,
1343,
256,
2385,
578,
17816,
3672,
20520,
1343,
705,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
14729,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
26307,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
331,
82,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
76,
11463,
796,
1426,
62,
8899,
13,
21604,
62,
76,
11463,
7,
4458,
14,
1930,
12,
8899,
13,
14116,
11537,
220,
1303,
466,
428,
329,
790,
1332,
18389,
284,
954,
6439,
82,
287,
1123,
198,
220,
220,
220,
220,
220,
220,
220,
329,
6827,
62,
11925,
287,
256,
2385,
578,
17816,
34086,
3007,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3709,
796,
256,
2385,
578,
17816,
34086,
3007,
6,
7131,
34086,
594,
62,
11925,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
474,
11,
300,
301,
62,
1659,
62,
23705,
874,
287,
27056,
378,
7,
23814,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26307,
13,
33295,
26933,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
361,
474,
4064,
1802,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
3601,
7203,
18709,
278,
2378,
23884,
503,
286,
23884,
9313,
13,
18982,
7,
73,
11,
18896,
7,
23814,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
11,
23912,
1424,
11,
1930,
62,
31499,
11,
2306,
382,
5914,
62,
23912,
1424,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
83,
482,
641,
62,
23912,
1424,
7,
912,
84,
578,
17816,
83,
482,
641,
12,
31499,
6,
7131,
73,
4357,
10943,
32541,
62,
28929,
3913,
11,
443,
742,
9497,
11,
1930,
62,
76,
11463,
11,
9288,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
82,
13,
33295,
7,
23912,
1424,
58,
10943,
32541,
62,
28929,
3913,
25,
10943,
32541,
62,
28929,
3913,
9,
12,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
479,
11,
256,
287,
27056,
378,
7,
83,
482,
641,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
479,
1279,
22904,
13918,
62,
28929,
3913,
393,
479,
18189,
18896,
7,
83,
482,
641,
8,
532,
22904,
13918,
62,
28929,
3913,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14729,
13,
33295,
19510,
83,
11,
14722,
58,
74,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
7,
23912,
1424,
58,
74,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26307,
58,
73,
4083,
33295,
7,
944,
13,
1136,
62,
22866,
7,
83,
11,
16326,
11,
1426,
62,
31499,
11,
479,
11,
22904,
13918,
62,
28929,
3913,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1960,
382,
5914,
62,
11487,
58,
74,
12,
10943,
32541,
62,
28929,
3913,
7131,
9688,
10,
73,
60,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
2306,
382,
5914,
62,
22866,
7,
83,
482,
641,
11,
1930,
62,
31499,
11,
2306,
382,
5914,
62,
23912,
1424,
11,
479,
11,
10943,
32541,
62,
28929,
3913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
62,
11487,
58,
74,
12,
10943,
32541,
62,
28929,
3913,
7131,
9688,
10,
73,
60,
796,
14722,
58,
74,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14729,
13,
33295,
7,
10786,
438,
36,
2640,
438,
41707,
438,
36,
2640,
438,
6,
4008,
1303,
6827,
2880,
1352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
10786,
59,
77,
11537,
1303,
6827,
2880,
1352,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13564,
62,
22915,
7,
22866,
82,
11,
14729,
11,
256,
2385,
578,
17816,
3672,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
331,
82,
628,
220,
220,
220,
825,
1429,
62,
13664,
7,
944,
11,
443,
742,
9497,
11,
3709,
11,
1960,
382,
5914,
62,
11487,
11,
14722,
62,
11487,
11,
9288,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
331,
82,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
83,
482,
641,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
76,
11463,
796,
1426,
62,
8899,
13,
21604,
62,
76,
11463,
7,
4458,
14,
1930,
12,
8899,
13,
14116,
11537,
220,
1303,
466,
428,
329,
790,
1332,
18389,
284,
954,
6439,
82,
287,
1123,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
11,
300,
301,
62,
1659,
62,
23705,
874,
287,
27056,
378,
7,
23814,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
361,
474,
4064,
1802,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
3601,
7203,
18709,
278,
2378,
23884,
503,
286,
23884,
9313,
13,
18982,
7,
73,
11,
18896,
7,
23814,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
11,
23912,
1424,
11,
1930,
62,
31499,
11,
2306,
382,
5914,
62,
23912,
1424,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
83,
482,
641,
62,
23912,
1424,
7,
75,
301,
62,
1659,
62,
23705,
874,
11,
10943,
32541,
62,
28929,
3913,
11,
443,
742,
9497,
11,
1930,
62,
76,
11463,
11,
9288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
82,
13,
33295,
7,
23912,
1424,
58,
10943,
32541,
62,
28929,
3913,
25,
10943,
32541,
62,
28929,
3913,
9,
12,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
479,
11,
256,
287,
27056,
378,
7,
83,
482,
641,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
479,
1279,
22904,
13918,
62,
28929,
3913,
393,
479,
18189,
18896,
7,
83,
482,
641,
8,
532,
22904,
13918,
62,
28929,
3913,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
7,
23912,
1424,
58,
74,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1960,
382,
5914,
62,
11487,
58,
74,
12,
10943,
32541,
62,
28929,
3913,
7131,
73,
60,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
2306,
382,
5914,
62,
22866,
7,
83,
482,
641,
11,
1930,
62,
31499,
11,
2306,
382,
5914,
62,
23912,
1424,
11,
479,
11,
10943,
32541,
62,
28929,
3913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
62,
11487,
58,
74,
12,
10943,
32541,
62,
28929,
3913,
7131,
73,
60,
796,
14722,
58,
74,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
83,
482,
641,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
13,
33295,
10786,
59,
77,
11537,
1303,
6827,
2880,
1352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
477,
62,
83,
482,
641,
628,
220,
220,
220,
825,
3975,
62,
75,
1078,
501,
62,
1462,
62,
15414,
7,
944,
11,
279,
62,
15414,
11,
279,
62,
83,
482,
641,
11,
16124,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
331,
88,
62,
75,
1078,
501,
796,
575,
56,
30642,
43,
1078,
501,
13,
6738,
62,
8841,
7,
79,
62,
83,
482,
641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
331,
88,
62,
15414,
796,
575,
56,
30642,
43,
1078,
501,
13,
6738,
62,
8841,
7,
79,
62,
15414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
30237,
62,
83,
28194,
62,
7353,
3775,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
287,
16124,
13,
23705,
874,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
591,
62,
1930,
62,
31499,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
256,
83,
482,
287,
256,
13,
83,
482,
641,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11506,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
1676,
1443,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
3042,
62,
83,
482,
287,
331,
88,
62,
75,
1078,
501,
13,
83,
482,
641,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3042,
62,
83,
482,
13,
312,
6624,
256,
83,
482,
13,
312,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11506,
796,
3042,
62,
83,
482,
13,
18755,
74,
13,
7890,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
259,
62,
83,
482,
287,
27056,
378,
7,
22556,
62,
15414,
13,
83,
482,
641,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
83,
482,
13,
18755,
74,
13,
7890,
58,
15,
60,
6624,
11506,
58,
15,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1426,
11,
279,
287,
287,
62,
83,
482,
13,
1930,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1426,
407,
287,
1426,
62,
1676,
1443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
1676,
1443,
58,
1930,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
1676,
1443,
58,
1930,
4083,
33295,
7,
22468,
7,
79,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
83,
482,
13,
18755,
74,
13,
7890,
58,
16,
60,
14512,
11506,
58,
16,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
62,
83,
482,
796,
287,
62,
83,
482,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
1090,
62,
83,
482,
13,
18755,
74,
13,
7890,
58,
16,
60,
14512,
11506,
58,
16,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1306,
62,
83,
482,
796,
331,
88,
62,
15414,
13,
83,
482,
641,
58,
72,
10,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1426,
11,
279,
287,
1306,
62,
83,
482,
13,
1930,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1426,
407,
287,
1426,
62,
1676,
1443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
1676,
1443,
58,
1930,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
1676,
1443,
58,
1930,
4083,
33295,
7,
22468,
7,
79,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
62,
83,
482,
796,
1306,
62,
83,
482,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
591,
62,
1930,
62,
31499,
13,
33295,
19510,
926,
482,
11,
1426,
62,
1676,
1443,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30237,
62,
83,
28194,
62,
7353,
3775,
13,
33295,
19510,
83,
11,
83,
28194,
62,
1930,
62,
31499,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
30237,
62,
83,
28194,
62,
7353,
3775,
628,
220,
220,
220,
825,
3551,
62,
22915,
7,
944,
11,
26307,
11,
14729,
11,
40379,
62,
3672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
288,
287,
37250,
27432,
14,
41707,
9288,
14,
41707,
7959,
14,
3256,
705,
46430,
14,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
279,
67,
287,
37250,
36439,
14,
41707,
1525,
12,
10215,
79,
385,
14,
22866,
82,
14,
41707,
1525,
12,
10215,
79,
385,
14,
7942,
62,
23912,
1424,
14,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3108,
8019,
13,
15235,
7,
4458,
14,
22915,
14,
6,
1343,
279,
67,
1343,
288,
737,
28015,
15908,
7,
23743,
28,
17821,
11,
2152,
62,
482,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2081,
62,
23912,
1424,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
424,
69,
796,
705,
27432,
14,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
40379,
62,
3672,
287,
28730,
6965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
424,
69,
796,
705,
46430,
14,
6,
198,
220,
220,
220,
220,
220,
220,
220,
611,
40379,
62,
3672,
287,
43001,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
424,
69,
796,
705,
9288,
14,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
40379,
62,
3672,
287,
5550,
53,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
424,
69,
796,
705,
7959,
14,
6,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
4458,
14,
22915,
14,
36439,
14,
6,
1343,
424,
69,
1343,
40379,
62,
3672,
11,
705,
86,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1296,
11,
443,
4906,
287,
14729,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
443,
4906,
855,
6,
438,
36,
2640,
438,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2081,
62,
23912,
1424,
13,
33295,
7,
2536,
7,
293,
4906,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
62,
24874,
796,
277,
6,
90,
687,
32239,
83,
90,
293,
4906,
92,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
7,
2536,
62,
24874,
1343,
705,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
10786,
59,
77,
11537,
1303,
6827,
2880,
1352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2081,
62,
23912,
1424,
13,
33295,
10786,
59,
77,
11537,
1303,
6827,
2880,
1352,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
4458,
14,
22915,
14,
1525,
12,
10215,
79,
385,
14,
7942,
62,
23912,
1424,
14,
6,
1343,
424,
69,
1343,
40379,
62,
3672,
11,
705,
86,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
256,
75,
287,
2081,
62,
23912,
1424,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
7,
28781,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
256,
75,
14512,
705,
59,
77,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
10786,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
4458,
14,
22915,
14,
1525,
12,
10215,
79,
385,
14,
22866,
82,
14,
6,
1343,
424,
69,
1343,
40379,
62,
3672,
11,
705,
86,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
7,
17752,
13,
67,
8142,
7,
22866,
82,
4008,
628,
220,
220,
220,
825,
651,
62,
22866,
7,
944,
11,
256,
11,
16326,
11,
1426,
62,
31499,
11,
1312,
11,
4324,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4732,
796,
1391,
6,
86,
10354,
256,
11,
705,
1930,
10354,
1426,
62,
31499,
58,
72,
48999,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
2837,
7,
16,
11,
17497,
10,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8654,
62,
83,
482,
796,
16326,
58,
72,
12,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8654,
62,
1930,
796,
1426,
62,
31499,
58,
72,
12,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1306,
62,
83,
482,
796,
16326,
58,
72,
10,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1306,
62,
1930,
796,
1426,
62,
31499,
58,
72,
10,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
86,
19355,
1343,
965,
7,
73,
15437,
796,
8654,
62,
83,
482,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
86,
10,
6,
1343,
965,
7,
73,
15437,
796,
1306,
62,
83,
482,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
1930,
19355,
1343,
965,
7,
73,
15437,
796,
8654,
62,
1930,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
1930,
10,
6,
1343,
965,
7,
73,
15437,
796,
1306,
62,
1930,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4732,
628,
220,
220,
220,
825,
651,
62,
2306,
382,
5914,
62,
22866,
7,
944,
11,
83,
482,
641,
11,
1930,
62,
31499,
11,
28764,
5722,
62,
23912,
1424,
11,
479,
11,
17497,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4732,
796,
1391,
6,
86,
10354,
83,
482,
641,
58,
74,
60,
4032,
1930,
10354,
1930,
62,
31499,
58,
74,
48999,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
16,
11,
17497,
10,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
86,
19355,
1343,
965,
7,
72,
15437,
796,
16326,
58,
74,
12,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
86,
10,
6,
1343,
965,
7,
72,
15437,
796,
16326,
58,
74,
10,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
1930,
19355,
1343,
965,
7,
72,
15437,
796,
1426,
62,
31499,
58,
74,
12,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
1930,
10,
6,
1343,
965,
7,
72,
15437,
796,
1426,
62,
31499,
58,
74,
10,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4732,
17816,
12985,
19355,
1343,
965,
7,
72,
15437,
796,
11001,
62,
23912,
1424,
58,
74,
12,
72,
60,
1303,
2561,
307,
6045,
393,
9677,
7336,
287,
1332,
4235,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4732,
628,
220,
220,
220,
825,
651,
62,
83,
482,
641,
62,
23912,
1424,
7,
944,
11,
2846,
62,
392,
62,
83,
482,
641,
62,
31499,
11,
4732,
62,
17497,
11,
443,
742,
9497,
11,
1930,
62,
76,
11463,
11,
1332,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
16326,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
14722,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
31499,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
2180,
62,
31499,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
7,
23705,
282,
11,
284,
591,
62,
31499,
8,
287,
27056,
378,
7,
38707,
62,
392,
62,
83,
482,
641,
62,
31499,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
443,
4906,
796,
965,
7,
293,
742,
9497,
13,
1136,
7,
23705,
282,
13,
8000,
13,
26858,
11,
33490,
4944,
42,
24618,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
13,
33295,
7,
23705,
282,
13,
687,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
13,
33295,
7,
293,
4906,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
31499,
13,
33295,
7,
944,
13,
1136,
62,
1930,
62,
12985,
7,
83,
28194,
62,
31499,
11,
1426,
62,
76,
11463,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1332,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2180,
62,
31499,
13,
33295,
7,
14202,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2180,
62,
31499,
13,
33295,
7,
293,
4906,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
16,
11,
16,
10,
22866,
62,
17497,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
13,
28463,
7,
15,
11,
705,
7708,
7336,
19355,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
13,
28463,
7,
15,
11,
705,
7708,
7336,
19355,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
31499,
13,
28463,
7,
15,
4032,
7708,
7336,
19355,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2180,
62,
31499,
13,
28463,
7,
15,
11,
705,
7708,
7336,
19355,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
13,
33295,
10786,
7708,
7336,
10,
6,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
13,
33295,
10786,
7708,
7336,
10,
6,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
31499,
13,
33295,
10786,
7708,
7336,
10,
6,
1343,
965,
7,
72,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
16326,
11,
14722,
11,
1426,
62,
31499,
11,
2180,
62,
31499,
628,
220,
220,
220,
825,
651,
62,
1930,
62,
12985,
7,
944,
11,
83,
482,
641,
62,
31499,
11,
1426,
62,
76,
11463,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
329,
256,
83,
287,
16326,
62,
31499,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1426,
62,
1676,
1443,
796,
256,
83,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1426,
287,
1426,
62,
1676,
1443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
796,
7621,
1343,
705,
10,
6,
1343,
1426,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
796,
7621,
13,
36311,
10786,
10,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
10,
6,
287,
7621,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7621,
796,
1426,
62,
76,
11463,
13,
8899,
62,
12985,
7,
12985,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
7621,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
26498,
796,
25064,
13,
853,
85,
58,
16,
47715,
198,
220,
220,
220,
288,
83,
62,
2536,
796,
705,
12,
4458,
22179,
7,
2536,
7,
19608,
8079,
13,
2197,
3419,
737,
35312,
3419,
737,
33491,
7,
10354,
41707,
2637,
8,
198,
220,
220,
220,
1057,
62,
312,
796,
25064,
13,
853,
85,
58,
18,
60,
1343,
288,
83,
62,
2536,
198,
220,
220,
220,
611,
18896,
7,
17597,
13,
853,
85,
8,
1875,
513,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1960,
382,
70,
796,
25064,
13,
853,
85,
58,
19,
60,
6624,
705,
2306,
382,
70,
6,
198,
220,
220,
220,
503,
62,
15908,
796,
705,
19571,
22915,
14,
6,
1343,
1057,
62,
312,
198,
220,
220,
220,
3108,
8019,
13,
15235,
7,
448,
62,
15908,
737,
28015,
15908,
7,
23743,
28,
17821,
11,
2152,
62,
482,
28,
25101,
8,
198,
220,
220,
220,
443,
796,
17210,
6030,
11627,
40450,
3419,
198,
220,
220,
220,
443,
13,
29572,
62,
2588,
34280,
7,
22046,
58,
15,
12962,
198,
220,
220,
220,
443,
13,
34242,
17816,
23350,
443,
742,
9497,
20520,
796,
18896,
7,
293,
13,
293,
742,
9497,
8,
198,
220,
220,
220,
611,
1960,
382,
70,
25,
198,
220,
220,
220,
220,
220,
220,
220,
443,
13,
14681,
62,
9288,
2385,
2737,
62,
2306,
382,
70,
7,
22046,
58,
16,
4357,
293,
13,
293,
742,
9497,
11,
448,
62,
15908,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
443,
13,
14681,
62,
9288,
2385,
2737,
62,
13159,
2306,
382,
70,
7,
22046,
58,
16,
4357,
293,
13,
293,
742,
9497,
11,
448,
62,
15908,
8,
198,
220,
220,
220,
351,
1280,
7,
448,
62,
15908,
1343,
31051,
293,
742,
9497,
41707,
39346,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
443,
742,
9497,
796,
900,
26933,
2536,
7,
85,
8,
329,
410,
287,
1351,
7,
293,
13,
293,
742,
9497,
13,
27160,
28955,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2298,
293,
13,
39455,
7,
293,
742,
9497,
11,
69,
8,
628
] | 1.8362 | 9,536 |
"""Support for the Environment Canada radar imagery."""
from __future__ import annotations
import voluptuous as vol
from homeassistant.components.camera import Camera
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import (
AddEntitiesCallback,
async_get_current_platform,
)
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from .const import ATTR_OBSERVATION_TIME, DOMAIN
SERVICE_SET_RADAR_TYPE = "set_radar_type"
SET_RADAR_TYPE_SCHEMA = {
vol.Required("radar_type"): vol.In(["Auto", "Rain", "Snow"]),
}
class ECCamera(CoordinatorEntity, Camera):
"""Implementation of an Environment Canada radar camera."""
def __init__(self, coordinator):
"""Initialize the camera."""
super().__init__(coordinator)
Camera.__init__(self)
self.radar_object = coordinator.ec_data
self._attr_name = f"{coordinator.config_entry.title} Radar"
self._attr_unique_id = f"{coordinator.config_entry.unique_id}-radar"
self._attr_attribution = self.radar_object.metadata["attribution"]
self._attr_entity_registry_enabled_default = False
self.content_type = "image/gif"
def camera_image(
self, width: int | None = None, height: int | None = None
) -> bytes | None:
"""Return bytes of camera image."""
self._attr_extra_state_attributes = {
ATTR_OBSERVATION_TIME: self.radar_object.timestamp,
}
return self.radar_object.image
| [
37811,
15514,
329,
262,
9344,
3340,
13428,
19506,
526,
15931,
198,
6738,
11593,
37443,
834,
1330,
37647,
198,
198,
11748,
2322,
37623,
5623,
355,
2322,
198,
198,
6738,
1363,
562,
10167,
13,
5589,
3906,
13,
25695,
1330,
20432,
198,
6738,
1363,
562,
10167,
13,
11250,
62,
298,
1678,
1330,
17056,
30150,
198,
6738,
1363,
562,
10167,
13,
7295,
1330,
5995,
48902,
198,
6738,
1363,
562,
10167,
13,
16794,
364,
13,
26858,
62,
24254,
1330,
357,
198,
220,
220,
220,
3060,
14539,
871,
47258,
11,
198,
220,
220,
220,
30351,
62,
1136,
62,
14421,
62,
24254,
11,
198,
8,
198,
6738,
1363,
562,
10167,
13,
16794,
364,
13,
19119,
62,
37652,
20900,
1330,
36831,
32398,
198,
198,
6738,
764,
9979,
1330,
5161,
5446,
62,
46,
4462,
1137,
53,
6234,
62,
34694,
11,
24121,
29833,
198,
198,
35009,
27389,
62,
28480,
62,
49,
2885,
1503,
62,
25216,
796,
366,
2617,
62,
6335,
283,
62,
4906,
1,
198,
28480,
62,
49,
2885,
1503,
62,
25216,
62,
50,
3398,
27630,
796,
1391,
198,
220,
220,
220,
2322,
13,
37374,
7203,
6335,
283,
62,
4906,
1,
2599,
2322,
13,
818,
7,
14692,
27722,
1600,
366,
31443,
1600,
366,
28974,
8973,
828,
198,
92,
628,
198,
198,
4871,
412,
4093,
18144,
7,
7222,
585,
20900,
32398,
11,
20432,
2599,
198,
220,
220,
220,
37227,
3546,
32851,
286,
281,
9344,
3340,
13428,
4676,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
16052,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
4676,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
37652,
20900,
8,
198,
220,
220,
220,
220,
220,
220,
220,
20432,
13,
834,
15003,
834,
7,
944,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6335,
283,
62,
15252,
796,
16052,
13,
721,
62,
7890,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
35226,
62,
3672,
796,
277,
1,
90,
37652,
20900,
13,
11250,
62,
13000,
13,
7839,
92,
38426,
1,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
35226,
62,
34642,
62,
312,
796,
277,
1,
90,
37652,
20900,
13,
11250,
62,
13000,
13,
34642,
62,
312,
92,
12,
6335,
283,
1,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
35226,
62,
1078,
3890,
796,
2116,
13,
6335,
283,
62,
15252,
13,
38993,
14692,
1078,
3890,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
35226,
62,
26858,
62,
2301,
4592,
62,
25616,
62,
12286,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11299,
62,
4906,
796,
366,
9060,
14,
27908,
1,
628,
220,
220,
220,
825,
4676,
62,
9060,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
9647,
25,
493,
930,
6045,
796,
6045,
11,
6001,
25,
493,
930,
6045,
796,
6045,
198,
220,
220,
220,
1267,
4613,
9881,
930,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
9881,
286,
4676,
2939,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
35226,
62,
26086,
62,
5219,
62,
1078,
7657,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5161,
5446,
62,
46,
4462,
1137,
53,
6234,
62,
34694,
25,
2116,
13,
6335,
283,
62,
15252,
13,
16514,
27823,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
6335,
283,
62,
15252,
13,
9060,
198
] | 2.716753 | 579 |
from urllib.request import urlopen
from io import StringIO
import csv
data = urlopen("http://pythonscraping.com/files/MontyPythonAlbums.csv").read().decode('ascii', 'ignore')
dataFile = StringIO(data)
dictReader = csv.DictReader(dataFile)
print(dictReader.fieldnames)
for row in dictReader:
print(row) | [
6738,
2956,
297,
571,
13,
25927,
1330,
19016,
9654,
198,
6738,
33245,
1330,
10903,
9399,
198,
11748,
269,
21370,
198,
198,
7890,
796,
19016,
9654,
7203,
4023,
1378,
79,
5272,
684,
66,
2416,
278,
13,
785,
14,
16624,
14,
26031,
88,
37906,
2348,
4435,
82,
13,
40664,
11074,
961,
22446,
12501,
1098,
10786,
292,
979,
72,
3256,
705,
46430,
11537,
198,
7890,
8979,
796,
10903,
9399,
7,
7890,
8,
198,
11600,
33634,
796,
269,
21370,
13,
35,
713,
33634,
7,
7890,
8979,
8,
198,
198,
4798,
7,
11600,
33634,
13,
3245,
14933,
8,
198,
198,
1640,
5752,
287,
8633,
33634,
25,
198,
220,
220,
220,
3601,
7,
808,
8
] | 2.825688 | 109 |
# Write an algorithm such that if an element in MxN matrix is 0, it's entire row and column are set to 0.
def rowZero(matrix, row):
for i in range(len(matrix[row])):
matrix[row][i] = 0
def columnZero(matrix, column):
for i in range(len(matrix)):
matrix[i][column] = 0
def matrixZero(matrix):
points = []
for i in range(len(matrix)):
for j in range(len(matrix[0])):
if matrix[i][j] == 0:
points.append((i,j))
for p in points:
rowZero(matrix, p[0])
columnZero(matrix, p[1])
matrix = [[1,1,1,1],[1,1,1,1],[1,1,0,1],[1,1,1,1],[1,1,1,0]]
matrixZero(matrix)
print('\n'.join(['\t'.join([str(cell) for cell in row]) for row in matrix])) | [
2,
19430,
281,
11862,
884,
326,
611,
281,
5002,
287,
337,
87,
45,
17593,
318,
657,
11,
340,
338,
2104,
5752,
290,
5721,
389,
900,
284,
657,
13,
198,
4299,
5752,
28667,
7,
6759,
8609,
11,
5752,
2599,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
6759,
8609,
58,
808,
12962,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
17593,
58,
808,
7131,
72,
60,
796,
657,
198,
198,
4299,
5721,
28667,
7,
6759,
8609,
11,
5721,
2599,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
6759,
8609,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
17593,
58,
72,
7131,
28665,
60,
796,
657,
628,
198,
4299,
17593,
28667,
7,
6759,
8609,
2599,
198,
220,
220,
220,
2173,
796,
17635,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
6759,
8609,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
2837,
7,
11925,
7,
6759,
8609,
58,
15,
12962,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
17593,
58,
72,
7131,
73,
60,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2173,
13,
33295,
19510,
72,
11,
73,
4008,
198,
220,
220,
220,
220,
198,
220,
220,
220,
329,
279,
287,
2173,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5752,
28667,
7,
6759,
8609,
11,
279,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
5721,
28667,
7,
6759,
8609,
11,
279,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
628,
198,
6759,
8609,
796,
16410,
16,
11,
16,
11,
16,
11,
16,
38430,
16,
11,
16,
11,
16,
11,
16,
38430,
16,
11,
16,
11,
15,
11,
16,
38430,
16,
11,
16,
11,
16,
11,
16,
38430,
16,
11,
16,
11,
16,
11,
15,
11907,
198,
198,
6759,
8609,
28667,
7,
6759,
8609,
8,
198,
198,
4798,
10786,
59,
77,
4458,
22179,
7,
17816,
59,
83,
4458,
22179,
26933,
2536,
7,
3846,
8,
329,
2685,
287,
5752,
12962,
329,
5752,
287,
17593,
60,
4008
] | 2.064067 | 359 |
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 4 18:55:46 2020
@author: Jonathan Browning
"""
import numpy as np
from scipy.stats import gaussian_kde as kdf
from scipy import special as sp
class ShadowedRice:
numSamples = 2*(10**6) # the number of samples used in the simulation
r = np.linspace(0, 6, 6000) # theoretical envelope PDF x axes
theta = np.linspace(-np.pi, np.pi, 6000) # theoretical phase PDF x axes
def __init__(self, K, m, r_hat, phi):
# user input checks and assigns value
self.K = self.input_Check(K, "K", 0.001, 50)
self.m = self.input_Check(m, "m", 0.001, 50)
self.r_hat = self.input_Check(r_hat, "\hat{r}", 0.5, 2.5)
self.phi = self.input_Check(phi, "\phi", -np.pi, np.pi)
# simulating and theri densities
self.multipathFading = self.complex_Multipath_Fading()
self.xdataEnv, self.ydataEnv = self.envelope_Density()
self.xdataPh, self.ydataPh = self.phase_Density()
# theoretical PDFs calculated
self.envelopeProbability = self.envelope_PDF()
self.phaseProbability = self.phase_PDF()
def input_Check(self, data, inputName, lower, upper):
# input_Check checks the user inputs
# has a value been entered
if data == "":
raise ValueError(" ".join((inputName, "must have a numeric value")))
# incase of an non-numeric input
try:
data = float(data)
except:
raise ValueError(" ".join((inputName, "must have a numeric value")))
# data must be within the range
if data < lower or data > upper:
raise ValueError(" ".join((inputName, f"must be in the range [{lower:.2f}, {upper:.2f}]")))
return data
def calculate_Means(self):
# calculate_means calculates the means of the complex Gaussians representing the
# in-phase and quadrature components
p = np.sqrt(self.K / (1+self.K)) * self.r_hat * np.cos(self.phi)
q = np.sqrt(self.K / (1+self.K)) * self.r_hat * np.sin(self.phi)
return p, q
def scattered_Component(self):
# scattered_Component calculates the power of the scattered signal component
sigma = self.r_hat / np.sqrt( 2 * (1+self.K) )
return sigma
def generate_Gaussians(self, mean, sigma):
# generate_Gaussians generates the Gaussian random variables
gaussians = np.random.default_rng().normal(mean, sigma, self.numSamples)
return gaussians
def complex_Multipath_Fading(self):
# complex_Multipath_Fading generates the complex fading random variables
p, q = self.calculate_Means()
sigma = self.scattered_Component()
xi = np.sqrt(np.random.gamma(self.m, 1/self.m, self.numSamples))
multipathFading = self.generate_Gaussians(xi*p, sigma) + (1j*self.generate_Gaussians(xi*q, sigma))
return multipathFading
def envelope_PDF(self):
# envelope_PDF calculates the theoretical envelope PDF
PDF = 2 * (1+self.K) * self.r *(self.m**(self.m)) / (self.r_hat**(2)*(self.m+self.K)**(self.m)) \
* np.exp(- ((1+self.K) * self.r**(2)) / self.r_hat**(2)) \
* sp.hyp1f1(self.m, 1, self.r**(2)*self.K*(self.K+1)/(self.r_hat**(2)*(self.K+self.m)))
return PDF
def phase_PDF(self):
# phase_PDF calculates the theoretical phase PDF
PDF = (self.m**self.m * np.sqrt(self.K)/(2 * np.sqrt(np.pi) * (self.K + self.m)**(self.m +1/2))) \
* ( np.sqrt((self.K +self.m)/(np.pi*self.K)) * sp.hyp2f1(self.m, 1, 1/2, (self.K*(np.cos(self.theta - self.phi))**(2))/(self.K +self.m)) \
+ ((sp.gamma(self.m+1/2) / sp.gamma(self.m))*np.cos(self.theta-self.phi) \
* (1- (self.K*(np.cos(self.theta - self.phi))**(2)) / (self.K +self.m))**(-self.m-1/2)))
return PDF
def envelope_Density(self):
# envelope_Density finds the envelope PDF of the simulated random variables
R = np.sqrt((np.real(self.multipathFading))**2 + (np.imag(self.multipathFading))**2)
kde = kdf(R)
x = np.linspace(R.min(), R.max(), 100)
p = kde(x)
return x, p
def phase_Density(self):
# phase_Density finds the phase PDF of the simulated random variables
R = np.angle(self.multipathFading)
kde = kdf(R)
x = np.linspace(R.min(), R.max(), 100)
p = kde(x)
return x, p
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
41972,
319,
3300,
5267,
220,
604,
1248,
25,
2816,
25,
3510,
12131,
198,
198,
31,
9800,
25,
11232,
4373,
278,
198,
37811,
198,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
629,
541,
88,
13,
34242,
1330,
31986,
31562,
62,
74,
2934,
355,
479,
7568,
198,
6738,
629,
541,
88,
1330,
2041,
355,
599,
198,
198,
4871,
8843,
276,
49,
501,
25,
198,
220,
220,
220,
997,
50,
12629,
796,
362,
9,
7,
940,
1174,
21,
8,
220,
1303,
262,
1271,
286,
8405,
973,
287,
262,
18640,
198,
220,
220,
220,
374,
796,
45941,
13,
21602,
10223,
7,
15,
11,
718,
11,
39064,
8,
1303,
16200,
22878,
12960,
2124,
34197,
198,
220,
220,
220,
262,
8326,
796,
45941,
13,
21602,
10223,
32590,
37659,
13,
14415,
11,
45941,
13,
14415,
11,
39064,
8,
220,
220,
220,
1303,
16200,
7108,
12960,
2124,
34197,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
509,
11,
285,
11,
374,
62,
5183,
11,
872,
72,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2836,
5128,
8794,
290,
46974,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42,
796,
2116,
13,
15414,
62,
9787,
7,
42,
11,
366,
42,
1600,
657,
13,
8298,
11,
2026,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
76,
796,
2116,
13,
15414,
62,
9787,
7,
76,
11,
366,
76,
1600,
657,
13,
8298,
11,
2026,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
62,
5183,
796,
2116,
13,
15414,
62,
9787,
7,
81,
62,
5183,
11,
37082,
5183,
90,
81,
92,
1600,
657,
13,
20,
11,
362,
13,
20,
8,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
34846,
796,
2116,
13,
15414,
62,
9787,
7,
34846,
11,
37082,
34846,
1600,
532,
37659,
13,
14415,
11,
45941,
13,
14415,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
985,
8306,
290,
262,
380,
29509,
871,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16680,
541,
776,
37,
4980,
796,
2116,
13,
41887,
62,
15205,
541,
776,
62,
37,
4980,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
87,
7890,
4834,
85,
11,
2116,
13,
5173,
1045,
4834,
85,
796,
2116,
13,
268,
1091,
68,
62,
35,
6377,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
87,
7890,
2725,
11,
2116,
13,
5173,
1045,
2725,
796,
2116,
13,
40715,
62,
35,
6377,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
16200,
12960,
82,
10488,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
268,
1091,
68,
2964,
65,
1799,
796,
2116,
13,
268,
1091,
68,
62,
20456,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
40715,
2964,
65,
1799,
796,
2116,
13,
40715,
62,
20456,
3419,
628,
220,
220,
220,
825,
5128,
62,
9787,
7,
944,
11,
1366,
11,
5128,
5376,
11,
2793,
11,
6727,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5128,
62,
9787,
8794,
262,
2836,
17311,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
468,
257,
1988,
587,
5982,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1366,
6624,
366,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
27071,
22179,
19510,
15414,
5376,
11,
366,
27238,
423,
257,
35575,
1988,
1,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
753,
589,
286,
281,
1729,
12,
77,
39223,
5128,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
12178,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
27071,
22179,
19510,
15414,
5376,
11,
366,
27238,
423,
257,
35575,
1988,
1,
22305,
198,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1366,
1276,
307,
1626,
262,
2837,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1366,
1279,
2793,
393,
1366,
1875,
6727,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
27071,
22179,
19510,
15414,
5376,
11,
277,
1,
27238,
307,
287,
262,
2837,
685,
90,
21037,
25,
13,
17,
69,
5512,
1391,
45828,
25,
13,
17,
69,
92,
30866,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
628,
220,
220,
220,
825,
15284,
62,
5308,
504,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
15284,
62,
1326,
504,
43707,
262,
1724,
286,
262,
3716,
12822,
1046,
1547,
10200,
262,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
287,
12,
40715,
290,
15094,
81,
1300,
6805,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
45941,
13,
31166,
17034,
7,
944,
13,
42,
1220,
357,
16,
10,
944,
13,
42,
4008,
1635,
2116,
13,
81,
62,
5183,
1635,
45941,
13,
6966,
7,
944,
13,
34846,
8,
198,
220,
220,
220,
220,
220,
220,
220,
10662,
796,
45941,
13,
31166,
17034,
7,
944,
13,
42,
1220,
357,
16,
10,
944,
13,
42,
4008,
220,
1635,
2116,
13,
81,
62,
5183,
1635,
45941,
13,
31369,
7,
944,
13,
34846,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
279,
11,
10662,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
16830,
62,
21950,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
16830,
62,
21950,
43707,
262,
1176,
286,
262,
16830,
6737,
7515,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
264,
13495,
796,
2116,
13,
81,
62,
5183,
1220,
45941,
13,
31166,
17034,
7,
362,
1635,
357,
16,
10,
944,
13,
42,
8,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
264,
13495,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
7716,
62,
35389,
1046,
1547,
7,
944,
11,
1612,
11,
264,
13495,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
7716,
62,
35389,
1046,
1547,
18616,
262,
12822,
31562,
4738,
9633,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
31986,
1046,
1547,
796,
45941,
13,
25120,
13,
12286,
62,
81,
782,
22446,
11265,
7,
32604,
11,
264,
13495,
11,
2116,
13,
22510,
50,
12629,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
31986,
1046,
1547,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
3716,
62,
15205,
541,
776,
62,
37,
4980,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3716,
62,
15205,
541,
776,
62,
37,
4980,
18616,
262,
3716,
31465,
4738,
9633,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
279,
11,
10662,
796,
2116,
13,
9948,
3129,
378,
62,
5308,
504,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
264,
13495,
796,
2116,
13,
1416,
10228,
62,
21950,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
72,
796,
45941,
13,
31166,
17034,
7,
37659,
13,
25120,
13,
28483,
2611,
7,
944,
13,
76,
11,
352,
14,
944,
13,
76,
11,
2116,
13,
22510,
50,
12629,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
18540,
776,
37,
4980,
796,
2116,
13,
8612,
378,
62,
35389,
1046,
1547,
7,
29992,
9,
79,
11,
264,
13495,
8,
1343,
357,
16,
73,
9,
944,
13,
8612,
378,
62,
35389,
1046,
1547,
7,
29992,
9,
80,
11,
264,
13495,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
18540,
776,
37,
4980,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
22878,
62,
20456,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22878,
62,
20456,
43707,
262,
16200,
22878,
12960,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
12960,
796,
362,
1635,
357,
16,
10,
944,
13,
42,
8,
1635,
2116,
13,
81,
1635,
7,
944,
13,
76,
1174,
7,
944,
13,
76,
4008,
1220,
357,
944,
13,
81,
62,
5183,
1174,
7,
17,
27493,
7,
944,
13,
76,
10,
944,
13,
42,
8,
1174,
7,
944,
13,
76,
4008,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
45941,
13,
11201,
32590,
14808,
16,
10,
944,
13,
42,
8,
1635,
2116,
13,
81,
1174,
7,
17,
4008,
1220,
2116,
13,
81,
62,
5183,
1174,
7,
17,
4008,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
599,
13,
36362,
16,
69,
16,
7,
944,
13,
76,
11,
352,
11,
2116,
13,
81,
1174,
7,
17,
27493,
944,
13,
42,
9,
7,
944,
13,
42,
10,
16,
20679,
7,
944,
13,
81,
62,
5183,
1174,
7,
17,
27493,
7,
944,
13,
42,
10,
944,
13,
76,
22305,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
12960,
628,
220,
220,
220,
825,
7108,
62,
20456,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
7108,
62,
20456,
43707,
262,
16200,
7108,
12960,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
12960,
796,
220,
357,
944,
13,
76,
1174,
944,
13,
76,
1635,
45941,
13,
31166,
17034,
7,
944,
13,
42,
20679,
7,
17,
1635,
45941,
13,
31166,
17034,
7,
37659,
13,
14415,
8,
1635,
357,
944,
13,
42,
1343,
2116,
13,
76,
8,
1174,
7,
944,
13,
76,
1343,
16,
14,
17,
22305,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
357,
45941,
13,
31166,
17034,
19510,
944,
13,
42,
1343,
944,
13,
76,
20679,
7,
37659,
13,
14415,
9,
944,
13,
42,
4008,
1635,
599,
13,
36362,
17,
69,
16,
7,
944,
13,
76,
11,
352,
11,
352,
14,
17,
11,
220,
357,
944,
13,
42,
9,
7,
37659,
13,
6966,
7,
944,
13,
1169,
8326,
532,
2116,
13,
34846,
4008,
1174,
7,
17,
4008,
29006,
944,
13,
42,
1343,
944,
13,
76,
4008,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1343,
220,
14808,
2777,
13,
28483,
2611,
7,
944,
13,
76,
10,
16,
14,
17,
8,
1220,
599,
13,
28483,
2611,
7,
944,
13,
76,
4008,
9,
37659,
13,
6966,
7,
944,
13,
1169,
8326,
12,
944,
13,
34846,
8,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
357,
16,
12,
220,
357,
944,
13,
42,
9,
7,
37659,
13,
6966,
7,
944,
13,
1169,
8326,
532,
2116,
13,
34846,
4008,
1174,
7,
17,
4008,
1220,
357,
944,
13,
42,
1343,
944,
13,
76,
4008,
1174,
32590,
944,
13,
76,
12,
16,
14,
17,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
12960,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
22878,
62,
35,
6377,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
22878,
62,
35,
6377,
7228,
262,
22878,
12960,
286,
262,
28590,
4738,
9633,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
371,
796,
45941,
13,
31166,
17034,
19510,
37659,
13,
5305,
7,
944,
13,
16680,
541,
776,
37,
4980,
4008,
1174,
17,
1343,
357,
37659,
13,
48466,
7,
944,
13,
16680,
541,
776,
37,
4980,
4008,
1174,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
479,
2934,
796,
479,
7568,
7,
49,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
21602,
10223,
7,
49,
13,
1084,
22784,
371,
13,
9806,
22784,
1802,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
479,
2934,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
11,
279,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
7108,
62,
35,
6377,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
7108,
62,
35,
6377,
7228,
262,
7108,
12960,
286,
262,
28590,
4738,
9633,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
371,
796,
45941,
13,
9248,
7,
944,
13,
16680,
541,
776,
37,
4980,
8,
198,
220,
220,
220,
220,
220,
220,
220,
479,
2934,
796,
479,
7568,
7,
49,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
45941,
13,
21602,
10223,
7,
49,
13,
1084,
22784,
371,
13,
9806,
22784,
1802,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
479,
2934,
7,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
11,
279,
198,
220,
220,
220,
628,
628
] | 2.048114 | 2,307 |
# Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""
Set empty next_cycle_start_date
Create Date: 2017-09-25 13:56:32.087965
"""
# disable Invalid constant name pylint warning for mandatory Alembic variables.
# pylint: disable=invalid-name
from alembic import op
# revision identifiers, used by Alembic.
revision = '3ebe14ae9547'
down_revision = '4991c5731711'
def upgrade():
"""Upgrade database schema and/or data, creating a new revision."""
op.execute("UPDATE workflows, ( "
"SELECT w.id "
"FROM workflows AS w "
"LEFT JOIN task_groups AS tg ON tg.workflow_id = w.id "
"LEFT JOIN task_group_tasks AS t ON t.task_group_id = tg.id "
"WHERE t.id IS NULL AND w.next_cycle_start_date IS NOT NULL "
") AS t "
"SET workflows.next_cycle_start_date = NULL "
"WHERE workflows.id = t.id;")
def downgrade():
"""Downgrade database schema and/or data back to the previous revision."""
pass
| [
2,
15069,
357,
34,
8,
2177,
3012,
3457,
13,
198,
2,
49962,
739,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
1279,
3826,
38559,
24290,
2393,
29,
198,
198,
37811,
198,
7248,
6565,
1306,
62,
13696,
62,
9688,
62,
4475,
198,
198,
16447,
7536,
25,
2177,
12,
2931,
12,
1495,
1511,
25,
3980,
25,
2624,
13,
2919,
3720,
2996,
198,
37811,
198,
2,
15560,
17665,
6937,
1438,
279,
2645,
600,
6509,
329,
13677,
9300,
2022,
291,
9633,
13,
198,
2,
279,
2645,
600,
25,
15560,
28,
259,
12102,
12,
3672,
198,
198,
6738,
31341,
2022,
291,
1330,
1034,
628,
198,
2,
18440,
42814,
11,
973,
416,
9300,
2022,
291,
13,
198,
260,
10178,
796,
705,
18,
68,
1350,
1415,
3609,
3865,
2857,
6,
198,
2902,
62,
260,
10178,
796,
705,
28324,
16,
66,
3553,
34125,
1157,
6,
628,
198,
4299,
8515,
33529,
198,
220,
37227,
44948,
6831,
32815,
290,
14,
273,
1366,
11,
4441,
257,
649,
18440,
526,
15931,
198,
220,
1034,
13,
41049,
7203,
16977,
670,
44041,
11,
357,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
46506,
266,
13,
312,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10913,
2662,
670,
44041,
7054,
266,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2538,
9792,
32357,
1268,
4876,
62,
24432,
7054,
256,
70,
6177,
256,
70,
13,
1818,
11125,
62,
312,
796,
266,
13,
312,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2538,
9792,
32357,
1268,
4876,
62,
8094,
62,
83,
6791,
7054,
256,
6177,
256,
13,
35943,
62,
8094,
62,
312,
796,
256,
70,
13,
312,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
47357,
256,
13,
312,
3180,
15697,
5357,
266,
13,
19545,
62,
13696,
62,
9688,
62,
4475,
3180,
5626,
15697,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8,
7054,
256,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
28480,
670,
44041,
13,
19545,
62,
13696,
62,
9688,
62,
4475,
796,
15697,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
47357,
670,
44041,
13,
312,
796,
256,
13,
312,
26,
4943,
628,
198,
4299,
48514,
33529,
198,
220,
37227,
8048,
9526,
6831,
32815,
290,
14,
273,
1366,
736,
284,
262,
2180,
18440,
526,
15931,
198,
220,
1208,
198
] | 2.472093 | 430 |
"""
Tests for the :class:`cpymad.madx.Madx` API.
"""
import os
import sys
import numpy as np
from numpy.testing import assert_allclose, assert_equal
from pytest import approx, fixture, mark, raises
import cpymad
from cpymad.madx import Madx, Sequence, metadata
SEQU = """
! constants
QP_K1 = 2;
! elements
qp: quadrupole, k1:=QP_K1, l=1;
sb: sbend, l=2, angle=3.14/4;
dr: drift, l=1;
! sequences
s1: sequence, l=8, refer=center;
dr, at=0.5; ! dr[1] ~ betx_full1[1]
qp, at=1.5;
dr, at=2.5; ! dr[2] ~ betx_full1[3] ~ betx_range[0]
qp, at=3.5; ! ~ betx_full1[4] ~ betx_range[1]
dr, at=4.5;
sb, at=6.0; ! ~ betx_range[3]
dr, at=7.5;
endsequence;
s2: sequence, l=3, refer=entry;
qp1: qp, at=0, k1=3;
qp2: qp, at=1, l=2;
endsequence;
"""
def normalize(path):
"""Normalize path name to eliminate different spellings of the same path.
This is needed for path comparisons in tests, especially on windows where
pathes are case insensitive and allow a multitude of spellings."""
return os.path.normcase(os.path.normpath(path))
def test_copyright():
notice = cpymad.get_copyright_notice()
assert isinstance(notice, type(u""))
def test_version(mad):
"""Check that the Madx.version attribute can be used as expected."""
version = mad.version
# check format:
major, minor, micro = map(int, version.release.split('.'))
# We need at least MAD-X 5.05.00:
assert (major, minor, micro) >= (5, 5, 0)
# check format:
year, month, day = map(int, version.date.split('.'))
assert (year, month, day) >= (2019, 5, 10)
assert 1 <= month <= 12
assert 1 <= day <= 31
assert str(version).startswith(
'MAD-X {}'.format(version.release))
def test_metadata(mad):
version = mad.version
assert metadata.__version__ == version.release
assert isinstance(metadata.get_copyright_notice(), type(u""))
def test_independent_instances():
# Check independence by defining a variable differently in each
# instance:
with Madx(prompt='X1:> ') as mad1, Madx(prompt='X2:> ') as mad2:
mad1.input('ANSWER=42;')
mad2.input('ANSWER=43;')
assert mad1.eval('ANSWER') == 42
assert mad2.eval('ANSWER') == 43
# TODO: We need to fix this on windows, but for now, I just need it to
# pass so that the CI builds the release...
def test_quit(mad):
mad.quit()
assert mad._process.returncode is not None
assert not bool(mad)
with raises(RuntimeError):
mad.input(';')
def test_command_log():
"""Check that the command log contains all input commands."""
# create a new Madx instance that uses the history feature:
history_filename = '_test_madx.madx.tmp'
try:
# feed some input lines and compare with history file:
lines = """
l = 5;
f = 200;
fodo: sequence, refer=entry, l=100;
QF: quadrupole, l=5, at= 0, k1= 1/(f*l);
QD: quadrupole, l=5, at=50, k1=-1/(f*l);
endsequence;
beam, particle=proton, energy=2;
use, sequence=fodo;
""".splitlines()
lines = [line.strip() for line in lines if line.strip()]
with Madx(command_log=history_filename) as mad:
for line in lines:
mad.input(line)
with open(history_filename) as history_file:
history = history_file.read()
assert history.strip() == '\n'.join(lines).strip()
finally:
# remove history file
os.remove(history_filename)
def test_append_semicolon():
"""Check that semicolon is automatically appended to input() text."""
# Regression test for #73
log = []
with Madx(command_log=log.append) as mad:
mad.input('a = 0')
mad.input('b = 1')
assert log == ['a = 0;', 'b = 1;']
assert mad.globals.a == 0
assert mad.globals.b == 1
def test_call_and_chdir(mad):
folder = os.path.abspath(os.path.dirname(__file__))
parent = os.path.dirname(folder)
getcwd = mad._libmadx.getcwd
g = mad.globals
mad.chdir(folder)
assert normalize(getcwd()) == normalize(folder)
mad.call('answer_42.madx')
assert g.answer == 42
with mad.chdir('..'):
assert normalize(getcwd()) == normalize(parent)
mad.call('test/answer_43.madx')
assert g.answer == 43
mad.call('test/answer_call42.madx', True)
assert g.answer == 42
assert normalize(getcwd()) == normalize(folder)
mad.call('answer_43.madx')
assert g.answer == 43
mad.chdir('..')
assert normalize(getcwd()) == normalize(parent)
def _check_twiss(mad, seq_name):
beam = 'ex=1, ey=2, particle=electron, sequence={0};'.format(seq_name)
mad.command.beam(beam)
mad.use(seq_name)
initial = dict(alfx=0.5, alfy=1.5,
betx=2.5, bety=3.5)
twiss = mad.twiss(sequence=seq_name, **initial)
# Check initial values:
assert twiss['alfx'][0] == approx(initial['alfx'])
assert twiss['alfy'][0] == approx(initial['alfy'])
assert twiss['betx'][0] == approx(initial['betx'])
assert twiss['bety'][0] == approx(initial['bety'])
assert twiss.summary['ex'] == approx(1)
assert twiss.summary['ey'] == approx(2)
# Check that keys are all lowercase:
for k in twiss:
assert k == k.lower()
for k in twiss.summary:
assert k == k.lower()
def test_error(mad):
mad.input("""
seq: sequence, l=1;
endsequence;
beam;
use, sequence=seq;
""")
# Errors in MAD-X must not crash, but return False instead:
assert not mad.input('twiss;')
assert mad.input('twiss, betx=1, bety=1;')
def test_twiss_1(mad):
mad.input(SEQU)
_check_twiss(mad, 's1') # s1 can be computed at start
_check_twiss(mad, 's1') # s1 can be computed multiple times
_check_twiss(mad, 's2') # s2 can be computed after s1
def test_twiss_2(mad):
mad.input(SEQU)
_check_twiss(mad, 's2') # s2 can be computed at start
_check_twiss(mad, 's1') # s1 can be computed after s2
def test_twiss_with_range(mad):
beam = 'ex=1, ey=2, particle=electron, sequence=s1;'
mad.input(SEQU)
mad.command.beam(beam)
mad.use('s1')
params = dict(alfx=0.5, alfy=1.5,
betx=2.5, bety=3.5,
sequence='s1')
# Compute TWISS on full sequence, then on a sub-range, then again on
# the full sequence. This checks that none of the range selections
# have side-effects on each other:
betx_full1 = mad.twiss(**params)['betx']
betx_range = mad.twiss(range=('dr[2]', 'sb'), **params)['betx']
betx_full2 = mad.twiss(**params)['betx']
# Check that the results have the expected lengths:
assert len(betx_full1) == 9
assert len(betx_range) == 4
assert len(betx_full2) == 9
# Check numeric results. Since the first 3 elements of range and full
# sequence are identical, equal results are expected. And non-equal
# results afterwards.
assert betx_range[0] == approx(betx_full1[1]) # dr:2, dr:1
assert betx_range[1] == approx(betx_full1[2]) # qp:2, qp:1
assert betx_range[2] == approx(betx_full1[3]) # dr:3, dr:2
assert betx_range[3] != approx(betx_full1[4]) # sb, qp:2
def test_range_row_api(mad):
beam = 'ex=1, ey=2, particle=electron, sequence=s1;'
mad.input(SEQU)
mad.command.beam(beam)
mad.use('s1')
params = dict(alfx=0.5, alfy=1.5,
betx=2.5, bety=3.5,
sequence='s1')
tab = mad.twiss(range=('dr[2]', 'sb'), **params)
assert tab.range == ('dr[2]', 'sb')
assert 'betx' in tab
def test_survey(mad):
mad.input(SEQU)
mad.beam()
mad.use('s1')
tab = mad.survey()
assert tab._name == 'survey'
assert 'x' in tab
assert 'y' in tab
assert 'z' in tab
assert 'theta' in tab
assert 'phi' in tab
assert 'psi' in tab
assert tab.x[-1] < -1
assert tab.y == approx(0)
assert tab.z[-1] > 7
def test_match(mad):
beam = 'ex=1, ey=2, particle=electron, sequence=s2;'
mad.input(SEQU)
mad.command.beam(beam)
mad.use('s2')
params = dict(alfx=0.5, alfy=1.5,
betx=2.5, bety=3.5,
sequence='s2')
mad.match(constraints=[dict(range='s1$end', betx=2.0)],
weight={'betx': 2},
vary=['qp2->k1'],
**params)
twiss = mad.twiss(**params)
val = twiss.betx[-1]
assert val == approx(2.0, rel=1e-2)
def test_verbose(mad):
mad.verbose(False)
assert mad.options.echo is False
assert mad.options.info is False
mad.verbose(True)
assert mad.options.echo is True
assert mad.options.info is True
def test_active_sequence(mad):
mad.input(SEQU)
mad.command.beam('ex=1, ey=2, particle=electron, sequence=s1;')
mad.use('s1')
assert mad.sequence() == 's1'
mad.beam()
mad.use('s2')
assert mad.sequence().name == 's2'
def test_get_sequence(mad):
mad.input(SEQU)
with raises(KeyError):
mad.sequence['sN']
s1 = mad.sequence['s1']
assert s1.name == 's1'
seqs = mad.sequence
assert set(seqs) == {'s1', 's2'}
def test_eval(mad):
mad.input(SEQU)
assert mad.eval(True) is True
assert mad.eval(13) == 13
assert mad.eval(1.3) == 1.3
assert mad.eval([2, True, 'QP_K1']) == [2, True, 2.0]
assert mad.eval("1/QP_K1") == approx(0.5)
def test_eval_functions(mad):
assert mad.eval("sin(1.0)") == approx(np.sin(1.0))
assert mad.eval("cos(1.0)") == approx(np.cos(1.0))
mad.input("""
mqf.k1 = 0.3037241107;
mqd.k1 = -0.3037241107;
fodo: sequence, l=10, refer=entry;
mqf: quadrupole, at=0, l=1, k1:=mqf.k1;
dff: drift, at=1, l=4;
mqd: quadrupole, at=5, l=1, k1:=mqd.k1;
dfd: drift, at=6, l=4;
endsequence;
beam;
use, sequence=fodo;
twiss, sequence=fodo, x=0.1;
""")
elems = mad.sequence.fodo.expanded_elements
twiss = mad.table.twiss
mad.input("mqf_x = table(twiss, mqf, x);")
assert mad.eval("table(twiss, mqf, x)") \
== twiss.row(elems.index('mqf')).x \
== mad.globals.mqf_x
def test_globals(mad):
g = mad.globals
# Membership:
assert 'FOO' not in g
# Setting values:
g['FOO'] = 2
assert 'FOO' in g
assert g['FOO'] == 2
assert mad.eval('FOO') == 2
# Re-setting values:
g['FOO'] = 3
assert mad.eval('FOO') == 3
# Setting expressions:
g['BAR'] = '3*foo'
assert mad.eval('BAR') == 9
g['FOO'] = 4
assert mad.eval('BAR') == 12
assert g.defs.bar == "3*foo"
assert g.cmdpar.bar.definition == "3*foo"
# attribute access:
g.bar = 42
assert g.defs.bar == 42
assert g.cmdpar.bar.definition == 42
assert g.BAR == 42
# repr
assert "'bar': 42.0" in str(g)
with raises(NotImplementedError):
del g['bar']
with raises(NotImplementedError):
del g.bar
assert g.bar == 42 # still there
assert 'bar' in list(g)
assert 'foo' in list(g)
# assert list(g) == list(g.defs)
# assert list(g) == list(g.cmdpar)
assert len(g) == len(list(g))
assert len(g.defs) == len(list(g.defs))
assert len(g.cmdpar) == len(list(g.cmdpar))
def test_elements(mad):
mad.input(SEQU)
assert 'sb' in mad.elements
assert 'sb' in list(mad.elements)
assert 'foobar' not in mad.elements
assert mad.elements['sb']['angle'] == approx(3.14/4)
idx = mad.elements.index('qp1')
elem = mad.elements[idx]
assert elem['k1'] == 3
def test_sequence_map(mad):
mad.input(SEQU)
seq = mad.sequence
assert len(seq) == 2
assert set(seq) == {'s1', 's2'}
assert 's1' in seq
assert 's3' not in seq
assert hasattr(seq, 's1')
assert not hasattr(seq, 's3')
assert seq.s1.name == 's1'
assert seq.s2.name == 's2'
with raises(AttributeError):
seq.s3
def test_table_map(mad):
mad.input(SEQU)
mad.beam()
mad.use('s2')
mad.survey(sequence='s2')
tab = mad.table
assert 'survey' in list(tab)
assert 'survey' in tab
assert 'foobar' not in tab
assert len(tab) == len(list(tab))
with raises(AttributeError):
tab.foobar
def test_sequence(mad):
mad.input(SEQU)
s1 = mad.sequence.s1
assert str(s1) == '<Sequence: s1>'
assert s1 == mad.sequence.s1
assert s1 == 's1'
assert s1 != mad.sequence.s2
assert s1 != 's2'
with raises(RuntimeError):
s1.beam
with raises(RuntimeError):
s1.twiss_table
with raises(RuntimeError):
s1.twiss_table_name
assert not s1.has_beam
assert not s1.is_expanded
s1.expand()
assert s1.has_beam
assert s1.is_expanded
s1.expand() # idempotent
assert s1.has_beam
assert s1.is_expanded
initial = dict(alfx=0.5, alfy=1.5,
betx=2.5, bety=3.5)
mad.twiss(sequence='s1', sectormap=True,
table='my_twiss', **initial)
# Now works:
assert s1.beam.particle == 'positron'
assert s1.twiss_table_name == 'my_twiss'
assert s1.twiss_table.betx[0] == 2.5
assert s1.element_names() == [
's1$start',
'dr', 'qp', 'dr[2]', 'qp[2]', 'dr[3]', 'sb', 'dr[4]',
's1$end',
]
assert s1.expanded_element_names() == s1.element_names()
assert len(s1.element_names()) == len(s1.element_positions())
assert s1.element_positions() == [
0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 7.0, 8.0]
assert s1.expanded_element_positions() == [
0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 7.0, 8.0]
assert s1.elements[0].name == 's1$start'
assert s1.elements[-1].name == 's1$end'
assert s1.elements[-1].index == len(s1.elements)-1
assert s1.elements[3].index == 3
assert s1.elements.index('#s') == 0
assert s1.elements.index('#e') == len(s1.elements)-1
assert s1.elements.index('sb') == 6
assert s1.length == 8.0
def test_sequence_get_elements_s1(mad):
mad.input(SEQU)
s1 = mad.sequence.s1.elements
qp1 = s1['qp[1]']
qp2 = s1['qp[2]']
sb1 = s1['sb[1]']
assert s1.index('qp') < s1.index('qp[2]')
assert s1.index('qp[2]') < s1.index('sb')
assert qp1['at'] == approx(1.5)
assert qp2['at'] == approx(3.5)
assert sb1['at'] == approx(6)
assert qp1.position == approx(1)
assert qp2.position == approx(3)
assert sb1.position == approx(5)
assert qp1['l'] == approx(1)
assert qp2['l'] == approx(1)
assert sb1['l'] == approx(2)
assert float(qp1['k1']) == approx(2)
assert float(qp2['k1']) == approx(2)
assert float(sb1['angle']) == approx(3.14/4)
assert qp1.cmdpar.k1.expr.lower() == "qp_k1"
def test_sequence_get_elements_s2(mad):
mad.input(SEQU)
s2 = mad.sequence.s2.elements
qp1 = s2['qp1[1]']
qp2 = s2['qp2[1]']
assert s2.index('qp1') < s2.index('qp2')
assert qp1['at'] == approx(0)
assert qp2['at'] == approx(1)
assert qp1['l'] == approx(1)
assert qp2['l'] == approx(2)
assert float(qp1['k1']) == approx(3)
assert float(qp2['k1']) == approx(2)
# def test_sequence_get_expanded_elements():
def test_crash(mad):
"""Check that a RuntimeError is raised in case MAD-X crashes."""
assert bool(mad)
# a.t.m. MAD-X crashes on this input, because the L (length)
# parametere is missing:
raises(RuntimeError, mad.input, 'XXX: sequence;')
assert not bool(mad)
def test_sequence_elements(mad):
mad.input(SEQU)
elements = mad.sequence['s1'].elements
iqp2 = elements.index('qp[2]')
qp1 = elements['qp[1]']
qp2 = elements[iqp2]
assert qp1['at'] == approx(1.5)
assert qp2['at'] == approx(3.5)
assert qp1.position == approx(1)
assert qp2.position == approx(3)
assert iqp2 == elements.at(3.1)
def test_sequence_expanded_elements(mad):
beam = 'ex=1, ey=2, particle=electron, sequence=s1;'
mad.input(SEQU)
mad.command.beam(beam)
mad.use('s1')
elements = mad.sequence['s1'].expanded_elements
iqp2 = elements.index('qp[2]')
qp1 = elements['qp[1]']
qp2 = elements[iqp2]
assert qp1['at'] == approx(1.5)
assert qp2['at'] == approx(3.5)
assert qp1.position == approx(1)
assert qp2.position == approx(3)
assert iqp2 == elements.at(3.1)
def test_element_inform(mad):
beam = 'ex=1, ey=2, particle=electron, sequence=s1;'
mad.input(SEQU)
mad.command.beam(beam)
mad.use('s1')
elem = mad.sequence.s1.expanded_elements['qp']
assert {
name for name in elem
if elem.cmdpar[name].inform
} == {'k1', 'l', 'at'}
def test_table(mad):
beam = 'ex=1, ey=2, particle=electron, sequence=s1;'
mad.input(SEQU)
mad.command.beam(beam)
mad.use('s1')
initial = dict(alfx=0.5, alfy=1.5,
betx=2.5, bety=3.5)
twiss = mad.twiss(sequence='s1', sectormap=True, **initial)
sector = mad.table.sectortable
assert str(twiss).startswith("<Table 'twiss': ")
assert str(sector).startswith("<Table 'sectortable': ")
assert 'betx' in twiss
assert 't111' in sector
assert 't111' not in twiss
assert 'betx' not in sector
assert len(twiss) == len(list(twiss))
assert set(twiss) == set(twiss[0])
assert twiss.s[5] == twiss[5].s
assert twiss.s[-1] == twiss[-1].s
copy = twiss.copy()
assert copy['betx'] == approx(twiss.betx)
assert set(copy) == set(twiss)
copy = twiss.copy(['betx'])
assert set(copy) == {'betx'}
ALL = slice(None)
assert sector.tmat(0).shape == (6, 6, 6)
assert_allclose(sector.tmat(ALL)[0, 0, 0, :], sector.t111)
assert_allclose(sector.tmat(ALL)[1, 5, 3, :], sector.t264)
assert_allclose(sector.tmat(ALL)[3, 0, 3, :], sector.t414)
assert_allclose(sector.tmat(ALL)[4, 4, 4, :], sector.t555)
assert_allclose(sector.rmat(ALL)[0, 0, :], sector.r11)
assert_allclose(sector.rmat(ALL)[1, 5, :], sector.r26)
assert_allclose(sector.rmat(ALL)[3, 0, :], sector.r41)
assert_allclose(sector.rmat(ALL)[4, 4, :], sector.r55)
assert_allclose(sector.kvec(ALL)[0, :], sector.k1)
assert_allclose(sector.kvec(ALL)[1, :], sector.k2)
assert_allclose(sector.kvec(ALL)[3, :], sector.k4)
assert_allclose(sector.kvec(ALL)[4, :], sector.k5)
r = mad.sectortable()[:, :6, :6]
k = mad.sectortable()[:, 6, :6]
t = mad.sectortable2()
num_elems = len(mad.sequence.s1.elements)
assert t.shape == (num_elems, 6, 6, 6)
assert r.shape == (num_elems, 6, 6)
assert k.shape == (num_elems, 6)
assert_allclose(t[:, 0, 0, 0], sector.t111)
assert_allclose(t[:, 1, 5, 3], sector.t264)
assert_allclose(t[:, 3, 0, 3], sector.t414)
assert_allclose(t[:, 4, 4, 4], sector.t555)
assert_allclose(r[:, 0, 0], sector.r11)
assert_allclose(r[:, 1, 5], sector.r26)
assert_allclose(r[:, 3, 0], sector.r41)
assert_allclose(r[:, 4, 4], sector.r55)
assert_allclose(k[:, 0], sector.k1)
assert_allclose(k[:, 1], sector.k2)
assert_allclose(k[:, 3], sector.k4)
assert_allclose(k[:, 4], sector.k5)
def test_selected_columns(mad, lib):
mad.input(SEQU)
mad.command.beam()
mad.use('s1')
mad.select(flag='twiss', column=['s', 'x', 'y'])
table = mad.twiss(sequence='s1', betx=1, bety=1)
assert set(table) > {'s', 'x', 'y', 'betx', 'bety'}
assert set(table.copy()) > {'s', 'x', 'y', 'betx', 'bety'}
assert table.selected_columns() == ['s', 'x', 'y']
assert table.selection().col_names() == ['s', 'x', 'y']
assert table.selection().copy().keys() == {'s', 'x', 'y'}
mad.select(flag='twiss', clear=True)
mad.select(flag='twiss', column=['betx', 'bety'])
lib.apply_table_selections('twiss')
table = mad.table.twiss
assert set(table) > {'s', 'x', 'y', 'betx', 'bety'}
assert set(table.copy()) > {'s', 'x', 'y', 'betx', 'bety'}
assert table.selected_columns() == ['betx', 'bety']
assert table.selection().col_names() == ['betx', 'bety']
assert table.selection().copy().keys() == {'betx', 'bety'}
def test_table_selected_rows(mad, lib):
mad.input(SEQU)
mad.command.beam()
mad.use('s1')
def check_selection(table, name):
assert_equal(
table.column(name, rows='selected'),
table[name][table.selected_rows()])
assert_equal(
table.column(name, rows='selected'),
table.selection()[name])
mad.select(flag='twiss', class_='quadrupole')
table = mad.twiss(sequence='s1', betx=1, bety=1)
assert table.selected_rows() == [2, 4]
check_selection(table, 'alfx')
check_selection(table, 'alfy')
check_selection(table, 'betx')
check_selection(table, 'bety')
mad.select(flag='twiss', clear=True)
mad.select(flag='twiss', class_='drift')
lib.apply_table_selections('twiss')
table = mad.table.twiss
assert table.selected_rows() == [1, 3, 5, 7]
check_selection(table, 'alfx')
check_selection(table, 'alfy')
check_selection(table, 'betx')
check_selection(table, 'bety')
def test_table_selected_rows_mask(mad, lib):
mad.input(SEQU)
mad.command.beam()
mad.use('s1')
mad.select(flag='twiss', class_='quadrupole')
table = mad.twiss(sequence='s1', betx=1, bety=1)
mask = lib.get_table_selected_rows_mask('twiss')
assert mask.shape == (len(mad.sequence.s1.expanded_elements), )
assert_equal(mask.nonzero(), (table.selected_rows(), ))
def test_attr(mad):
assert hasattr(mad, 'constraint')
assert hasattr(mad, 'constraint_')
assert hasattr(mad, 'global_')
assert not hasattr(mad, 'foobar')
assert not hasattr(mad, '_constraint')
def test_expr(mad):
g = mad.globals
vars = mad.expr_vars
g.foo = 1
g.bar = 2
assert set(vars('foo')) == {'foo'}
assert set(vars('(foo) * sin(2*pi*bar)')) == {'foo', 'bar'}
def test_command(mad):
mad.input(SEQU)
twiss = mad.command.twiss
sbend = mad.elements.sb
clone = sbend.clone('foobar', angle="pi/5", l=1)
assert 'betx=0' in str(twiss)
assert 'angle=' in str(sbend)
assert 'tilt' in sbend
assert sbend.tilt == 0
assert len(sbend) == len(list(sbend))
assert 'tilt' in list(sbend)
assert clone.name == 'foobar'
assert clone.base_type.name == 'sbend'
assert clone.parent.name == 'sb'
assert clone.defs.angle == 'pi / 5'
assert clone.angle == approx(0.6283185307179586)
assert len(clone) == len(sbend)
assert 'angle=0.628' in str(clone)
assert 'tilt' not in str(clone)
clone.angle = 0.125
clone = mad.elements.foobar # need to update cache
assert clone.angle == 0.125
assert len(twiss) == len(list(twiss))
assert 'betx' in list(twiss)
assert clone.angle != approx(clone.parent.angle)
del clone.angle
clone = mad.elements.foobar # need to update cache
assert clone.angle == clone.parent.angle
with raises(AttributeError):
clone.missing_attribute
with raises(NotImplementedError):
del twiss['betx']
with raises(NotImplementedError):
del clone.base_type.angle
def test_array_attribute(mad):
mad.globals.nine = 9
clone = mad.elements.multipole.clone('foo', knl=[0, 'nine/3', 4])
knl = clone.knl
assert knl[0] == 0
assert knl[1] == 3
assert knl[2] == 4
assert len(knl) == 3
assert list(knl) == [0.0, 3.0, 4.0]
assert str(knl) == '[0.0, 3.0, 4.0]'
knl[1] = '3*nine'
assert mad.elements.foo.defs.knl[1] == '3 * nine'
assert mad.elements.foo.knl[1] == 27
def test_array_attribute_comparison(mad):
mad.globals.nine = 9
foo = mad.elements.multipole.clone('foo', knl=[0, 5, 10])
bar_eq = mad.elements.multipole.clone('bar_eq', knl=[0, 5, 10])
bar_gt = mad.elements.multipole.clone('bar_gt', knl=[0, 6, 10])
bar_lt = mad.elements.multipole.clone('bar_lt', knl=[0, 5, 'nine'])
knl = foo.knl
knl_eq = bar_eq.knl
knl_gt = bar_gt.knl
knl_lt = bar_lt.knl
assert knl == knl_eq
assert not (knl == knl_gt)
assert not (knl == knl_lt)
assert not (knl < knl_eq)
assert knl < knl_gt
assert not (knl < knl_lt)
assert knl <= knl_eq
assert knl <= knl_gt
assert not (knl <= knl_lt)
assert not (knl > knl_eq)
assert not (knl > knl_gt)
assert knl > knl_lt
assert knl >= knl_eq
assert not (knl >= knl_gt)
assert knl >= knl_lt
def test_command_map(mad):
command = mad.command
assert 'match' in command
assert 'sbend' in command
assert 'foooo' not in command
assert 'match' in list(command)
assert len(command) == len(list(command))
assert 'match' in str(command)
assert 'sbend' in str(command)
assert 'sbend' in mad.base_types
assert 'match' not in mad.base_types
def test_comments(mad):
var = mad.globals
mad('x = 1; ! x = 2;')
assert var.x == 1
mad('x = 2; // x = 3;')
assert var.x == 2
mad('x = 3; /* x = 4; */')
assert var.x == 3
mad('/* x = 3; */ x = 4;')
assert var.x == 4
mad('x = 5; ! /* */ x = 6;')
assert var.x == 5
mad('x = 5; /* ! */ x = 6;')
assert var.x == 6
def test_multiline_input(mad):
var = mad.globals
mad('''
x = 1;
y = 2;
''')
assert var.x, 1
assert var.y, 2
mad('''
x = /* 3;
y =*/ 4;
''')
assert var.x == 4
assert var.y == 2
mad('''
x = 1; /* */ x = 2;
*/ if (x == 1) {
x = 3;
}
''')
assert var.x == 2
mad('''
x = 1; /* x = 2;
*/ if (x == 1) {
x = 3;
}
''')
assert var.x == 3
def test_errors(mad):
mad.input(SEQU)
mad.beam()
mad.use(sequence='s1')
mad.select(flag='error', range='qp')
dkn = [1e-6, 2e-6, 3e-6]
dks = [4e-6, 5e-6, 6e-6]
mad.efcomp(dkn=dkn, dks=dks)
mad.ealign(dx=1e-3, dy=-4e-3)
fd = mad.sequence['s1'].expanded_elements['qp'].field_errors
al = mad.sequence['s1'].expanded_elements['qp'].align_errors
expected_dkn = np.hstack((dkn, np.zeros(len(fd.dkn) - len(dkn))))
expected_dks = np.hstack((dks, np.zeros(len(fd.dks) - len(dks))))
assert_allclose(fd.dkn, expected_dkn)
assert_allclose(fd.dks, expected_dks)
assert_allclose(al.dx, 1e-3)
assert_allclose(al.dy, -4e-3)
def test_subsequence(mad):
mad.input("""
d1: RBEND, l=0.1, angle=0.1;
seq1: sequence, l=0.1;
d1.1: d1, at=0.05;
endsequence;
seq2: sequence, l=0.2;
seq1, at=0.05;
seq1, at=0.15;
endsequence;
""")
seq2 = mad.sequence.seq2
assert isinstance(seq2.elements['seq1'], Sequence)
assert seq2.elements['seq1'].name == 'seq1'
assert seq2.elements['seq1'].element_names() == \
mad.sequence.seq1.element_names()
def test_dframe_after_use(mad):
mad.input("""
mqf.k1 = 0.3037241107;
mqd.k1 = -0.3037241107;
fodo: sequence, l=10, refer=entry;
mqf: quadrupole, at=0, l=1, k1:=mqf.k1;
dff: drift, at=1, l=4;
mqd: quadrupole, at=5, l=1, k1:=mqd.k1;
dfd: drift, at=6, l=4;
endsequence;
beam;
use, sequence=fodo;
twiss, sequence=fodo, x=0.1;
""")
index = ['#s', 'mqf', 'dff', 'mqd', 'dfd', '#e']
names = ['fodo$start', 'mqf', 'dff', 'mqd', 'dfd', 'fodo$end']
twiss = mad.table.twiss
assert index == twiss.row_names()
assert index == twiss.dframe().index.tolist()
assert names == twiss.dframe(index='name').index.tolist()
mad.use(sequence='fodo')
twiss = mad.table.twiss
# Should still work:
assert names == twiss.dframe(index='name').index.tolist()
# The following assert demonstrates the current behaviour and is
# meant to detect if the MAD-X implementation changes. It may lead
# to crashes or change in the future. In that case, please remove
# this line. It does not represent desired behaviour!
assert mad.table.twiss.row_names() == \
['#s', '#e', 'dfd', 'mqd', 'dff', 'mqf']
| [
37811,
198,
51,
3558,
329,
262,
1058,
4871,
25,
63,
13155,
4948,
324,
13,
9937,
87,
13,
18454,
87,
63,
7824,
13,
198,
37811,
198,
198,
11748,
28686,
198,
11748,
25064,
198,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
299,
32152,
13,
33407,
1330,
6818,
62,
439,
19836,
11,
6818,
62,
40496,
198,
6738,
12972,
9288,
1330,
5561,
11,
29220,
11,
1317,
11,
12073,
198,
198,
11748,
31396,
4948,
324,
198,
6738,
31396,
4948,
324,
13,
9937,
87,
1330,
4627,
87,
11,
45835,
11,
20150,
628,
628,
198,
5188,
10917,
796,
37227,
198,
0,
38491,
198,
48,
47,
62,
42,
16,
796,
362,
26,
198,
198,
0,
4847,
198,
80,
79,
25,
15094,
12618,
2305,
11,
479,
16,
25,
28,
48,
47,
62,
42,
16,
11,
300,
28,
16,
26,
198,
36299,
25,
264,
65,
437,
11,
300,
28,
17,
11,
9848,
28,
18,
13,
1415,
14,
19,
26,
198,
7109,
25,
24260,
11,
300,
28,
16,
26,
198,
198,
0,
16311,
198,
82,
16,
25,
8379,
11,
300,
28,
23,
11,
3522,
28,
16159,
26,
198,
7109,
11,
379,
28,
15,
13,
20,
26,
5145,
1553,
58,
16,
60,
5299,
731,
87,
62,
12853,
16,
58,
16,
60,
198,
80,
79,
11,
379,
28,
16,
13,
20,
26,
198,
7109,
11,
379,
28,
17,
13,
20,
26,
5145,
1553,
58,
17,
60,
5299,
731,
87,
62,
12853,
16,
58,
18,
60,
5299,
731,
87,
62,
9521,
58,
15,
60,
198,
80,
79,
11,
379,
28,
18,
13,
20,
26,
5145,
220,
220,
220,
220,
220,
220,
5299,
731,
87,
62,
12853,
16,
58,
19,
60,
5299,
731,
87,
62,
9521,
58,
16,
60,
198,
7109,
11,
379,
28,
19,
13,
20,
26,
198,
36299,
11,
379,
28,
21,
13,
15,
26,
5145,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5299,
731,
87,
62,
9521,
58,
18,
60,
198,
7109,
11,
379,
28,
22,
13,
20,
26,
198,
437,
43167,
26,
198,
198,
82,
17,
25,
8379,
11,
300,
28,
18,
11,
3522,
28,
13000,
26,
198,
80,
79,
16,
25,
10662,
79,
11,
379,
28,
15,
11,
479,
16,
28,
18,
26,
198,
80,
79,
17,
25,
10662,
79,
11,
379,
28,
16,
11,
300,
28,
17,
26,
198,
437,
43167,
26,
198,
37811,
628,
198,
4299,
3487,
1096,
7,
6978,
2599,
198,
220,
220,
220,
37227,
26447,
1096,
3108,
1438,
284,
11005,
1180,
4822,
654,
286,
262,
976,
3108,
13,
198,
220,
220,
220,
770,
318,
2622,
329,
3108,
17909,
287,
5254,
11,
2592,
319,
9168,
810,
198,
220,
220,
220,
1458,
956,
389,
1339,
41246,
290,
1249,
257,
24124,
286,
4822,
654,
526,
15931,
198,
220,
220,
220,
1441,
28686,
13,
6978,
13,
27237,
7442,
7,
418,
13,
6978,
13,
27237,
6978,
7,
6978,
4008,
628,
198,
4299,
1332,
62,
22163,
4766,
33529,
198,
220,
220,
220,
4003,
796,
31396,
4948,
324,
13,
1136,
62,
22163,
4766,
62,
42138,
3419,
198,
220,
220,
220,
6818,
318,
39098,
7,
42138,
11,
2099,
7,
84,
15931,
4008,
628,
198,
4299,
1332,
62,
9641,
7,
9937,
2599,
198,
220,
220,
220,
37227,
9787,
326,
262,
4627,
87,
13,
9641,
11688,
460,
307,
973,
355,
2938,
526,
15931,
198,
220,
220,
220,
2196,
796,
8805,
13,
9641,
198,
220,
220,
220,
1303,
2198,
5794,
25,
198,
220,
220,
220,
1688,
11,
4159,
11,
4580,
796,
3975,
7,
600,
11,
2196,
13,
20979,
13,
35312,
10786,
2637,
4008,
198,
220,
220,
220,
1303,
775,
761,
379,
1551,
45878,
12,
55,
642,
13,
2713,
13,
405,
25,
198,
220,
220,
220,
6818,
357,
22478,
11,
4159,
11,
4580,
8,
18189,
357,
20,
11,
642,
11,
657,
8,
198,
220,
220,
220,
1303,
2198,
5794,
25,
198,
220,
220,
220,
614,
11,
1227,
11,
1110,
796,
3975,
7,
600,
11,
2196,
13,
4475,
13,
35312,
10786,
2637,
4008,
198,
220,
220,
220,
6818,
357,
1941,
11,
1227,
11,
1110,
8,
18189,
357,
23344,
11,
642,
11,
838,
8,
198,
220,
220,
220,
6818,
352,
19841,
1227,
19841,
1105,
198,
220,
220,
220,
6818,
352,
19841,
1110,
19841,
3261,
198,
220,
220,
220,
6818,
965,
7,
9641,
737,
9688,
2032,
342,
7,
198,
220,
220,
220,
220,
220,
220,
220,
705,
44,
2885,
12,
55,
23884,
4458,
18982,
7,
9641,
13,
20979,
4008,
628,
198,
4299,
1332,
62,
38993,
7,
9937,
2599,
198,
220,
220,
220,
2196,
796,
8805,
13,
9641,
198,
220,
220,
220,
6818,
20150,
13,
834,
9641,
834,
6624,
2196,
13,
20979,
198,
220,
220,
220,
6818,
318,
39098,
7,
38993,
13,
1136,
62,
22163,
4766,
62,
42138,
22784,
2099,
7,
84,
15931,
4008,
628,
198,
4299,
1332,
62,
34750,
62,
8625,
1817,
33529,
198,
220,
220,
220,
1303,
6822,
10404,
416,
16215,
257,
7885,
10338,
287,
1123,
198,
220,
220,
220,
1303,
4554,
25,
198,
220,
220,
220,
351,
4627,
87,
7,
16963,
457,
11639,
55,
16,
25,
29,
705,
8,
355,
8805,
16,
11,
4627,
87,
7,
16963,
457,
11639,
55,
17,
25,
29,
705,
8,
355,
8805,
17,
25,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
16,
13,
15414,
10786,
15037,
45532,
28,
3682,
26,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
17,
13,
15414,
10786,
15037,
45532,
28,
3559,
26,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
8805,
16,
13,
18206,
10786,
15037,
45532,
11537,
6624,
5433,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
8805,
17,
13,
18206,
10786,
15037,
45532,
11537,
6624,
5946,
628,
198,
2,
16926,
46,
25,
775,
761,
284,
4259,
428,
319,
9168,
11,
475,
329,
783,
11,
314,
655,
761,
340,
284,
198,
2,
1208,
523,
326,
262,
14514,
12188,
262,
2650,
986,
628,
198,
4299,
1332,
62,
47391,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
47391,
3419,
198,
220,
220,
220,
6818,
8805,
13557,
14681,
13,
7783,
8189,
318,
407,
6045,
198,
220,
220,
220,
6818,
407,
20512,
7,
9937,
8,
198,
220,
220,
220,
351,
12073,
7,
41006,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
15414,
10786,
26,
11537,
628,
198,
198,
4299,
1332,
62,
21812,
62,
6404,
33529,
198,
220,
220,
220,
37227,
9787,
326,
262,
3141,
2604,
4909,
477,
5128,
9729,
526,
15931,
198,
220,
220,
220,
1303,
2251,
257,
649,
4627,
87,
4554,
326,
3544,
262,
2106,
3895,
25,
198,
220,
220,
220,
2106,
62,
34345,
796,
705,
62,
9288,
62,
9937,
87,
13,
9937,
87,
13,
22065,
6,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3745,
617,
5128,
3951,
290,
8996,
351,
2106,
2393,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
642,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
796,
939,
26,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
24313,
25,
8379,
11,
3522,
28,
13000,
11,
300,
28,
3064,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1195,
37,
25,
15094,
12618,
2305,
11,
300,
28,
20,
11,
379,
28,
657,
11,
479,
16,
28,
352,
29006,
69,
9,
75,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1195,
35,
25,
15094,
12618,
2305,
11,
300,
28,
20,
11,
379,
28,
1120,
11,
479,
16,
10779,
16,
29006,
69,
9,
75,
1776,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
43167,
26,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15584,
11,
18758,
28,
1676,
1122,
11,
2568,
28,
17,
26,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
779,
11,
8379,
28,
69,
24313,
26,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
1911,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
685,
1370,
13,
36311,
3419,
329,
1627,
287,
3951,
611,
1627,
13,
36311,
3419,
60,
198,
220,
220,
220,
220,
220,
220,
220,
351,
4627,
87,
7,
21812,
62,
6404,
28,
23569,
62,
34345,
8,
355,
8805,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
3951,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
15414,
7,
1370,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
23569,
62,
34345,
8,
355,
2106,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2106,
796,
2106,
62,
7753,
13,
961,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
2106,
13,
36311,
3419,
6624,
705,
59,
77,
4458,
22179,
7,
6615,
737,
36311,
3419,
198,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4781,
2106,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28956,
7,
23569,
62,
34345,
8,
628,
198,
4299,
1332,
62,
33295,
62,
325,
9383,
43645,
33529,
198,
220,
220,
220,
37227,
9787,
326,
5026,
27045,
261,
318,
6338,
598,
1631,
284,
5128,
3419,
2420,
526,
15931,
198,
220,
220,
220,
1303,
3310,
2234,
1332,
329,
1303,
4790,
198,
220,
220,
220,
2604,
796,
17635,
198,
220,
220,
220,
351,
4627,
87,
7,
21812,
62,
6404,
28,
6404,
13,
33295,
8,
355,
8805,
25,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
15414,
10786,
64,
796,
657,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
15414,
10786,
65,
796,
352,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2604,
6624,
37250,
64,
796,
657,
26,
3256,
705,
65,
796,
352,
26,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
8805,
13,
4743,
672,
874,
13,
64,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
8805,
13,
4743,
672,
874,
13,
65,
6624,
352,
628,
198,
4299,
1332,
62,
13345,
62,
392,
62,
354,
15908,
7,
9937,
2599,
198,
220,
220,
220,
9483,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
15908,
3672,
7,
834,
7753,
834,
4008,
198,
220,
220,
220,
2560,
796,
28686,
13,
6978,
13,
15908,
3672,
7,
43551,
8,
198,
220,
220,
220,
651,
66,
16993,
796,
8805,
13557,
8019,
9937,
87,
13,
1136,
66,
16993,
198,
220,
220,
220,
308,
796,
8805,
13,
4743,
672,
874,
628,
220,
220,
220,
8805,
13,
354,
15908,
7,
43551,
8,
198,
220,
220,
220,
6818,
3487,
1096,
7,
1136,
66,
16993,
28955,
6624,
3487,
1096,
7,
43551,
8,
198,
220,
220,
220,
8805,
13,
13345,
10786,
41484,
62,
3682,
13,
9937,
87,
11537,
198,
220,
220,
220,
6818,
308,
13,
41484,
6624,
5433,
628,
220,
220,
220,
351,
8805,
13,
354,
15908,
10786,
492,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
3487,
1096,
7,
1136,
66,
16993,
28955,
6624,
3487,
1096,
7,
8000,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
13345,
10786,
9288,
14,
41484,
62,
3559,
13,
9937,
87,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
308,
13,
41484,
6624,
5946,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
13345,
10786,
9288,
14,
41484,
62,
13345,
3682,
13,
9937,
87,
3256,
6407,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
308,
13,
41484,
6624,
5433,
628,
220,
220,
220,
6818,
3487,
1096,
7,
1136,
66,
16993,
28955,
6624,
3487,
1096,
7,
43551,
8,
198,
220,
220,
220,
8805,
13,
13345,
10786,
41484,
62,
3559,
13,
9937,
87,
11537,
198,
220,
220,
220,
6818,
308,
13,
41484,
6624,
5946,
628,
220,
220,
220,
8805,
13,
354,
15908,
10786,
492,
11537,
198,
220,
220,
220,
6818,
3487,
1096,
7,
1136,
66,
16993,
28955,
6624,
3487,
1096,
7,
8000,
8,
628,
198,
4299,
4808,
9122,
62,
4246,
747,
7,
9937,
11,
33756,
62,
3672,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
34758,
15,
19629,
4458,
18982,
7,
41068,
62,
3672,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
7,
41068,
62,
3672,
8,
198,
220,
220,
220,
4238,
796,
8633,
7,
1604,
87,
28,
15,
13,
20,
11,
435,
24928,
28,
16,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
731,
87,
28,
17,
13,
20,
11,
731,
88,
28,
18,
13,
20,
8,
198,
220,
220,
220,
665,
747,
796,
8805,
13,
4246,
747,
7,
43167,
28,
41068,
62,
3672,
11,
12429,
36733,
8,
198,
220,
220,
220,
1303,
6822,
4238,
3815,
25,
198,
220,
220,
220,
6818,
665,
747,
17816,
1604,
87,
6,
7131,
15,
60,
6624,
5561,
7,
36733,
17816,
1604,
87,
6,
12962,
198,
220,
220,
220,
6818,
665,
747,
17816,
1604,
88,
6,
7131,
15,
60,
6624,
5561,
7,
36733,
17816,
1604,
88,
6,
12962,
198,
220,
220,
220,
6818,
665,
747,
17816,
11181,
87,
6,
7131,
15,
60,
6624,
5561,
7,
36733,
17816,
11181,
87,
6,
12962,
198,
220,
220,
220,
6818,
665,
747,
17816,
65,
2963,
6,
7131,
15,
60,
6624,
5561,
7,
36733,
17816,
65,
2963,
6,
12962,
198,
220,
220,
220,
6818,
665,
747,
13,
49736,
17816,
1069,
20520,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
665,
747,
13,
49736,
17816,
2959,
20520,
6624,
5561,
7,
17,
8,
198,
220,
220,
220,
1303,
6822,
326,
8251,
389,
477,
2793,
7442,
25,
198,
220,
220,
220,
329,
479,
287,
665,
747,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
479,
6624,
479,
13,
21037,
3419,
198,
220,
220,
220,
329,
479,
287,
665,
747,
13,
49736,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
479,
6624,
479,
13,
21037,
3419,
628,
198,
4299,
1332,
62,
18224,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
33756,
25,
8379,
11,
300,
28,
16,
26,
198,
220,
220,
220,
220,
220,
220,
220,
886,
43167,
26,
198,
220,
220,
220,
220,
220,
220,
220,
15584,
26,
198,
220,
220,
220,
220,
220,
220,
220,
779,
11,
8379,
28,
41068,
26,
198,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
1303,
44225,
287,
45878,
12,
55,
1276,
407,
7014,
11,
475,
1441,
10352,
2427,
25,
198,
220,
220,
220,
6818,
407,
8805,
13,
15414,
10786,
4246,
747,
26,
11537,
198,
220,
220,
220,
6818,
8805,
13,
15414,
10786,
4246,
747,
11,
731,
87,
28,
16,
11,
731,
88,
28,
16,
26,
11537,
628,
198,
4299,
1332,
62,
4246,
747,
62,
16,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
4808,
9122,
62,
4246,
747,
7,
9937,
11,
705,
82,
16,
11537,
220,
220,
220,
220,
1303,
264,
16,
460,
307,
29231,
379,
923,
198,
220,
220,
220,
4808,
9122,
62,
4246,
747,
7,
9937,
11,
705,
82,
16,
11537,
220,
220,
220,
220,
1303,
264,
16,
460,
307,
29231,
3294,
1661,
198,
220,
220,
220,
4808,
9122,
62,
4246,
747,
7,
9937,
11,
705,
82,
17,
11537,
220,
220,
220,
220,
1303,
264,
17,
460,
307,
29231,
706,
264,
16,
628,
198,
4299,
1332,
62,
4246,
747,
62,
17,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
4808,
9122,
62,
4246,
747,
7,
9937,
11,
705,
82,
17,
11537,
220,
220,
220,
220,
1303,
264,
17,
460,
307,
29231,
379,
923,
198,
220,
220,
220,
4808,
9122,
62,
4246,
747,
7,
9937,
11,
705,
82,
16,
11537,
220,
220,
220,
220,
1303,
264,
16,
460,
307,
29231,
706,
264,
17,
628,
198,
4299,
1332,
62,
4246,
747,
62,
4480,
62,
9521,
7,
9937,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
16,
26,
6,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
42287,
796,
8633,
7,
1604,
87,
28,
15,
13,
20,
11,
435,
24928,
28,
16,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
731,
87,
28,
17,
13,
20,
11,
731,
88,
28,
18,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8379,
11639,
82,
16,
11537,
198,
220,
220,
220,
1303,
3082,
1133,
17306,
16744,
319,
1336,
8379,
11,
788,
319,
257,
850,
12,
9521,
11,
788,
757,
319,
198,
220,
220,
220,
1303,
262,
1336,
8379,
13,
770,
8794,
326,
4844,
286,
262,
2837,
28224,
198,
220,
220,
220,
1303,
423,
1735,
12,
34435,
319,
1123,
584,
25,
198,
220,
220,
220,
731,
87,
62,
12853,
16,
796,
8805,
13,
4246,
747,
7,
1174,
37266,
8,
17816,
11181,
87,
20520,
198,
220,
220,
220,
731,
87,
62,
9521,
796,
8805,
13,
4246,
747,
7,
9521,
28,
10786,
7109,
58,
17,
60,
3256,
705,
36299,
33809,
12429,
37266,
8,
17816,
11181,
87,
20520,
198,
220,
220,
220,
731,
87,
62,
12853,
17,
796,
8805,
13,
4246,
747,
7,
1174,
37266,
8,
17816,
11181,
87,
20520,
198,
220,
220,
220,
1303,
6822,
326,
262,
2482,
423,
262,
2938,
20428,
25,
198,
220,
220,
220,
6818,
18896,
7,
11181,
87,
62,
12853,
16,
8,
6624,
860,
198,
220,
220,
220,
6818,
18896,
7,
11181,
87,
62,
9521,
8,
6624,
604,
198,
220,
220,
220,
6818,
18896,
7,
11181,
87,
62,
12853,
17,
8,
6624,
860,
198,
220,
220,
220,
1303,
6822,
35575,
2482,
13,
4619,
262,
717,
513,
4847,
286,
2837,
290,
1336,
198,
220,
220,
220,
1303,
8379,
389,
10411,
11,
4961,
2482,
389,
2938,
13,
843,
1729,
12,
40496,
198,
220,
220,
220,
1303,
2482,
12979,
13,
198,
220,
220,
220,
6818,
731,
87,
62,
9521,
58,
15,
60,
6624,
5561,
7,
11181,
87,
62,
12853,
16,
58,
16,
12962,
220,
220,
220,
220,
220,
1303,
1553,
25,
17,
11,
1553,
25,
16,
198,
220,
220,
220,
6818,
731,
87,
62,
9521,
58,
16,
60,
6624,
5561,
7,
11181,
87,
62,
12853,
16,
58,
17,
12962,
220,
220,
220,
220,
220,
1303,
10662,
79,
25,
17,
11,
10662,
79,
25,
16,
198,
220,
220,
220,
6818,
731,
87,
62,
9521,
58,
17,
60,
6624,
5561,
7,
11181,
87,
62,
12853,
16,
58,
18,
12962,
220,
220,
220,
220,
220,
1303,
1553,
25,
18,
11,
1553,
25,
17,
198,
220,
220,
220,
6818,
731,
87,
62,
9521,
58,
18,
60,
14512,
5561,
7,
11181,
87,
62,
12853,
16,
58,
19,
12962,
220,
220,
1303,
264,
65,
11,
10662,
79,
25,
17,
628,
198,
4299,
1332,
62,
9521,
62,
808,
62,
15042,
7,
9937,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
16,
26,
6,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
42287,
796,
8633,
7,
1604,
87,
28,
15,
13,
20,
11,
435,
24928,
28,
16,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
731,
87,
28,
17,
13,
20,
11,
731,
88,
28,
18,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8379,
11639,
82,
16,
11537,
198,
220,
220,
220,
7400,
796,
8805,
13,
4246,
747,
7,
9521,
28,
10786,
7109,
58,
17,
60,
3256,
705,
36299,
33809,
12429,
37266,
8,
198,
220,
220,
220,
6818,
7400,
13,
9521,
6624,
19203,
7109,
58,
17,
60,
3256,
705,
36299,
11537,
198,
220,
220,
220,
6818,
705,
11181,
87,
6,
287,
7400,
628,
198,
4299,
1332,
62,
11793,
3304,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
7400,
796,
8805,
13,
11793,
3304,
3419,
198,
220,
220,
220,
6818,
7400,
13557,
3672,
6624,
705,
11793,
3304,
6,
198,
220,
220,
220,
6818,
705,
87,
6,
287,
7400,
198,
220,
220,
220,
6818,
705,
88,
6,
287,
7400,
198,
220,
220,
220,
6818,
705,
89,
6,
287,
7400,
198,
220,
220,
220,
6818,
705,
1169,
8326,
6,
287,
7400,
198,
220,
220,
220,
6818,
705,
34846,
6,
287,
7400,
198,
220,
220,
220,
6818,
705,
862,
72,
6,
287,
7400,
198,
220,
220,
220,
6818,
7400,
13,
87,
58,
12,
16,
60,
1279,
532,
16,
198,
220,
220,
220,
6818,
7400,
13,
88,
6624,
5561,
7,
15,
8,
198,
220,
220,
220,
6818,
7400,
13,
89,
58,
12,
16,
60,
1875,
767,
628,
198,
4299,
1332,
62,
15699,
7,
9937,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
17,
26,
6,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
17,
11537,
628,
220,
220,
220,
42287,
796,
8633,
7,
1604,
87,
28,
15,
13,
20,
11,
435,
24928,
28,
16,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
731,
87,
28,
17,
13,
20,
11,
731,
88,
28,
18,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8379,
11639,
82,
17,
11537,
628,
220,
220,
220,
8805,
13,
15699,
7,
1102,
2536,
6003,
41888,
11600,
7,
9521,
11639,
82,
16,
3,
437,
3256,
731,
87,
28,
17,
13,
15,
8,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3463,
34758,
6,
11181,
87,
10354,
362,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7565,
28,
17816,
80,
79,
17,
3784,
74,
16,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12429,
37266,
8,
198,
220,
220,
220,
665,
747,
796,
8805,
13,
4246,
747,
7,
1174,
37266,
8,
198,
220,
220,
220,
1188,
796,
665,
747,
13,
11181,
87,
58,
12,
16,
60,
198,
220,
220,
220,
6818,
1188,
6624,
5561,
7,
17,
13,
15,
11,
823,
28,
16,
68,
12,
17,
8,
628,
198,
4299,
1332,
62,
19011,
577,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
19011,
577,
7,
25101,
8,
198,
220,
220,
220,
6818,
8805,
13,
25811,
13,
30328,
318,
10352,
198,
220,
220,
220,
6818,
8805,
13,
25811,
13,
10951,
318,
10352,
198,
220,
220,
220,
8805,
13,
19011,
577,
7,
17821,
8,
198,
220,
220,
220,
6818,
8805,
13,
25811,
13,
30328,
318,
6407,
198,
220,
220,
220,
6818,
8805,
13,
25811,
13,
10951,
318,
6407,
628,
198,
4299,
1332,
62,
5275,
62,
43167,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
10786,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
16,
26,
11537,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
6818,
8805,
13,
43167,
3419,
6624,
705,
82,
16,
6,
198,
220,
220,
220,
8805,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
17,
11537,
198,
220,
220,
220,
6818,
8805,
13,
43167,
22446,
3672,
6624,
705,
82,
17,
6,
628,
198,
4299,
1332,
62,
1136,
62,
43167,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
351,
12073,
7,
9218,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
43167,
17816,
82,
45,
20520,
198,
220,
220,
220,
264,
16,
796,
8805,
13,
43167,
17816,
82,
16,
20520,
198,
220,
220,
220,
6818,
264,
16,
13,
3672,
6624,
705,
82,
16,
6,
198,
220,
220,
220,
33756,
82,
796,
8805,
13,
43167,
198,
220,
220,
220,
6818,
900,
7,
41068,
82,
8,
6624,
1391,
6,
82,
16,
3256,
705,
82,
17,
6,
92,
628,
198,
4299,
1332,
62,
18206,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7,
17821,
8,
318,
6407,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7,
1485,
8,
6624,
1511,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7,
16,
13,
18,
8,
6624,
352,
13,
18,
198,
220,
220,
220,
6818,
8805,
13,
18206,
26933,
17,
11,
6407,
11,
705,
48,
47,
62,
42,
16,
6,
12962,
6624,
685,
17,
11,
6407,
11,
362,
13,
15,
60,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7203,
16,
14,
48,
47,
62,
42,
16,
4943,
6624,
5561,
7,
15,
13,
20,
8,
628,
198,
4299,
1332,
62,
18206,
62,
12543,
2733,
7,
9937,
2599,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7203,
31369,
7,
16,
13,
15,
8,
4943,
6624,
5561,
7,
37659,
13,
31369,
7,
16,
13,
15,
4008,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7203,
6966,
7,
16,
13,
15,
8,
4943,
6624,
5561,
7,
37659,
13,
6966,
7,
16,
13,
15,
4008,
628,
220,
220,
220,
8805,
13,
15414,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
69,
13,
74,
16,
796,
220,
657,
13,
1270,
2718,
1731,
11442,
22,
26,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
67,
13,
74,
16,
796,
532,
15,
13,
1270,
2718,
1731,
11442,
22,
26,
628,
220,
220,
220,
220,
220,
220,
220,
277,
24313,
25,
8379,
11,
300,
28,
940,
11,
3522,
28,
13000,
26,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
69,
25,
15094,
12618,
2305,
11,
379,
28,
15,
11,
300,
28,
16,
11,
479,
16,
25,
28,
76,
80,
69,
13,
74,
16,
26,
198,
220,
220,
220,
220,
220,
220,
220,
288,
487,
25,
24260,
11,
220,
220,
220,
220,
220,
379,
28,
16,
11,
300,
28,
19,
26,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
67,
25,
15094,
12618,
2305,
11,
379,
28,
20,
11,
300,
28,
16,
11,
479,
16,
25,
28,
76,
80,
67,
13,
74,
16,
26,
198,
220,
220,
220,
220,
220,
220,
220,
288,
16344,
25,
24260,
11,
220,
220,
220,
220,
220,
379,
28,
21,
11,
300,
28,
19,
26,
198,
220,
220,
220,
220,
220,
220,
220,
886,
43167,
26,
628,
220,
220,
220,
220,
220,
220,
220,
15584,
26,
198,
220,
220,
220,
220,
220,
220,
220,
779,
11,
8379,
28,
69,
24313,
26,
198,
220,
220,
220,
220,
220,
220,
220,
665,
747,
11,
8379,
28,
69,
24313,
11,
2124,
28,
15,
13,
16,
26,
198,
220,
220,
220,
13538,
4943,
628,
220,
220,
220,
9766,
907,
796,
8805,
13,
43167,
13,
69,
24313,
13,
11201,
12249,
62,
68,
3639,
198,
220,
220,
220,
665,
747,
796,
8805,
13,
11487,
13,
4246,
747,
628,
220,
220,
220,
8805,
13,
15414,
7203,
76,
80,
69,
62,
87,
796,
3084,
7,
4246,
747,
11,
285,
80,
69,
11,
2124,
1776,
4943,
198,
220,
220,
220,
6818,
8805,
13,
18206,
7203,
11487,
7,
4246,
747,
11,
285,
80,
69,
11,
2124,
8,
4943,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
6624,
665,
747,
13,
808,
7,
11129,
907,
13,
9630,
10786,
76,
80,
69,
11537,
737,
87,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
6624,
8805,
13,
4743,
672,
874,
13,
76,
80,
69,
62,
87,
628,
198,
4299,
1332,
62,
4743,
672,
874,
7,
9937,
2599,
198,
220,
220,
220,
308,
796,
8805,
13,
4743,
672,
874,
198,
220,
220,
220,
1303,
37939,
25,
198,
220,
220,
220,
6818,
705,
6080,
46,
6,
407,
287,
308,
198,
220,
220,
220,
1303,
25700,
3815,
25,
198,
220,
220,
220,
308,
17816,
6080,
46,
20520,
796,
362,
198,
220,
220,
220,
6818,
705,
6080,
46,
6,
287,
308,
198,
220,
220,
220,
6818,
308,
17816,
6080,
46,
20520,
6624,
362,
198,
220,
220,
220,
6818,
8805,
13,
18206,
10786,
6080,
46,
11537,
6624,
362,
198,
220,
220,
220,
1303,
797,
12,
33990,
3815,
25,
198,
220,
220,
220,
308,
17816,
6080,
46,
20520,
796,
513,
198,
220,
220,
220,
6818,
8805,
13,
18206,
10786,
6080,
46,
11537,
6624,
513,
198,
220,
220,
220,
1303,
25700,
14700,
25,
198,
220,
220,
220,
308,
17816,
33,
1503,
20520,
796,
705,
18,
9,
21943,
6,
198,
220,
220,
220,
6818,
8805,
13,
18206,
10786,
33,
1503,
11537,
6624,
860,
198,
220,
220,
220,
308,
17816,
6080,
46,
20520,
796,
604,
198,
220,
220,
220,
6818,
8805,
13,
18206,
10786,
33,
1503,
11537,
6624,
1105,
198,
220,
220,
220,
6818,
308,
13,
4299,
82,
13,
5657,
6624,
366,
18,
9,
21943,
1,
198,
220,
220,
220,
6818,
308,
13,
28758,
1845,
13,
5657,
13,
46758,
6624,
366,
18,
9,
21943,
1,
198,
220,
220,
220,
1303,
11688,
1895,
25,
198,
220,
220,
220,
308,
13,
5657,
796,
5433,
198,
220,
220,
220,
6818,
308,
13,
4299,
82,
13,
5657,
6624,
5433,
198,
220,
220,
220,
6818,
308,
13,
28758,
1845,
13,
5657,
13,
46758,
6624,
5433,
198,
220,
220,
220,
6818,
308,
13,
33,
1503,
6624,
5433,
198,
220,
220,
220,
1303,
41575,
198,
220,
220,
220,
6818,
24018,
5657,
10354,
5433,
13,
15,
1,
287,
965,
7,
70,
8,
198,
220,
220,
220,
351,
12073,
7,
3673,
3546,
1154,
12061,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
308,
17816,
5657,
20520,
198,
220,
220,
220,
351,
12073,
7,
3673,
3546,
1154,
12061,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
308,
13,
5657,
198,
220,
220,
220,
6818,
308,
13,
5657,
6624,
5433,
220,
220,
220,
220,
1303,
991,
612,
198,
220,
220,
220,
6818,
705,
5657,
6,
287,
1351,
7,
70,
8,
198,
220,
220,
220,
6818,
705,
21943,
6,
287,
1351,
7,
70,
8,
198,
220,
220,
220,
1303,
6818,
1351,
7,
70,
8,
6624,
1351,
7,
70,
13,
4299,
82,
8,
198,
220,
220,
220,
1303,
6818,
1351,
7,
70,
8,
6624,
1351,
7,
70,
13,
28758,
1845,
8,
198,
220,
220,
220,
6818,
18896,
7,
70,
8,
6624,
18896,
7,
4868,
7,
70,
4008,
198,
220,
220,
220,
6818,
18896,
7,
70,
13,
4299,
82,
8,
6624,
18896,
7,
4868,
7,
70,
13,
4299,
82,
4008,
198,
220,
220,
220,
6818,
18896,
7,
70,
13,
28758,
1845,
8,
6624,
18896,
7,
4868,
7,
70,
13,
28758,
1845,
4008,
628,
198,
4299,
1332,
62,
68,
3639,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
6818,
705,
36299,
6,
287,
8805,
13,
68,
3639,
198,
220,
220,
220,
6818,
705,
36299,
6,
287,
1351,
7,
9937,
13,
68,
3639,
8,
198,
220,
220,
220,
6818,
705,
6513,
30973,
6,
407,
287,
8805,
13,
68,
3639,
198,
220,
220,
220,
6818,
8805,
13,
68,
3639,
17816,
36299,
6,
7131,
6,
9248,
20520,
6624,
5561,
7,
18,
13,
1415,
14,
19,
8,
198,
220,
220,
220,
4686,
87,
796,
8805,
13,
68,
3639,
13,
9630,
10786,
80,
79,
16,
11537,
198,
220,
220,
220,
9766,
76,
796,
8805,
13,
68,
3639,
58,
312,
87,
60,
198,
220,
220,
220,
6818,
9766,
76,
17816,
74,
16,
20520,
6624,
513,
628,
198,
4299,
1332,
62,
43167,
62,
8899,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
33756,
796,
8805,
13,
43167,
198,
220,
220,
220,
6818,
18896,
7,
41068,
8,
6624,
362,
198,
220,
220,
220,
6818,
900,
7,
41068,
8,
6624,
1391,
6,
82,
16,
3256,
705,
82,
17,
6,
92,
198,
220,
220,
220,
6818,
705,
82,
16,
6,
287,
33756,
198,
220,
220,
220,
6818,
705,
82,
18,
6,
407,
287,
33756,
198,
220,
220,
220,
6818,
468,
35226,
7,
41068,
11,
705,
82,
16,
11537,
198,
220,
220,
220,
6818,
407,
468,
35226,
7,
41068,
11,
705,
82,
18,
11537,
198,
220,
220,
220,
6818,
33756,
13,
82,
16,
13,
3672,
6624,
705,
82,
16,
6,
198,
220,
220,
220,
6818,
33756,
13,
82,
17,
13,
3672,
6624,
705,
82,
17,
6,
198,
220,
220,
220,
351,
12073,
7,
33682,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
33756,
13,
82,
18,
628,
198,
4299,
1332,
62,
11487,
62,
8899,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
17,
11537,
198,
220,
220,
220,
8805,
13,
11793,
3304,
7,
43167,
11639,
82,
17,
11537,
198,
220,
220,
220,
7400,
796,
8805,
13,
11487,
198,
220,
220,
220,
6818,
705,
11793,
3304,
6,
287,
1351,
7,
8658,
8,
198,
220,
220,
220,
6818,
705,
11793,
3304,
6,
287,
7400,
198,
220,
220,
220,
6818,
705,
6513,
30973,
6,
407,
287,
7400,
198,
220,
220,
220,
6818,
18896,
7,
8658,
8,
6624,
18896,
7,
4868,
7,
8658,
4008,
198,
220,
220,
220,
351,
12073,
7,
33682,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7400,
13,
6513,
30973,
628,
198,
4299,
1332,
62,
43167,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
264,
16,
796,
8805,
13,
43167,
13,
82,
16,
198,
220,
220,
220,
6818,
965,
7,
82,
16,
8,
6624,
705,
27,
44015,
594,
25,
264,
16,
29,
6,
198,
220,
220,
220,
6818,
264,
16,
6624,
8805,
13,
43167,
13,
82,
16,
198,
220,
220,
220,
6818,
264,
16,
6624,
705,
82,
16,
6,
198,
220,
220,
220,
6818,
264,
16,
14512,
8805,
13,
43167,
13,
82,
17,
198,
220,
220,
220,
6818,
264,
16,
14512,
705,
82,
17,
6,
198,
220,
220,
220,
351,
12073,
7,
41006,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
264,
16,
13,
40045,
198,
220,
220,
220,
351,
12073,
7,
41006,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
264,
16,
13,
4246,
747,
62,
11487,
198,
220,
220,
220,
351,
12073,
7,
41006,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
264,
16,
13,
4246,
747,
62,
11487,
62,
3672,
198,
220,
220,
220,
6818,
407,
264,
16,
13,
10134,
62,
40045,
198,
220,
220,
220,
6818,
407,
264,
16,
13,
271,
62,
11201,
12249,
198,
220,
220,
220,
264,
16,
13,
11201,
392,
3419,
198,
220,
220,
220,
6818,
264,
16,
13,
10134,
62,
40045,
198,
220,
220,
220,
6818,
264,
16,
13,
271,
62,
11201,
12249,
198,
220,
220,
220,
264,
16,
13,
11201,
392,
3419,
220,
220,
220,
220,
1303,
4686,
368,
13059,
298,
198,
220,
220,
220,
6818,
264,
16,
13,
10134,
62,
40045,
198,
220,
220,
220,
6818,
264,
16,
13,
271,
62,
11201,
12249,
198,
220,
220,
220,
4238,
796,
8633,
7,
1604,
87,
28,
15,
13,
20,
11,
435,
24928,
28,
16,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
731,
87,
28,
17,
13,
20,
11,
731,
88,
28,
18,
13,
20,
8,
198,
220,
220,
220,
8805,
13,
4246,
747,
7,
43167,
11639,
82,
16,
3256,
15951,
579,
499,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3084,
11639,
1820,
62,
4246,
747,
3256,
12429,
36733,
8,
198,
220,
220,
220,
1303,
2735,
2499,
25,
198,
220,
220,
220,
6818,
264,
16,
13,
40045,
13,
3911,
1548,
6624,
705,
1930,
270,
1313,
6,
198,
220,
220,
220,
6818,
264,
16,
13,
4246,
747,
62,
11487,
62,
3672,
6624,
705,
1820,
62,
4246,
747,
6,
198,
220,
220,
220,
6818,
264,
16,
13,
4246,
747,
62,
11487,
13,
11181,
87,
58,
15,
60,
6624,
362,
13,
20,
198,
220,
220,
220,
6818,
264,
16,
13,
30854,
62,
14933,
3419,
6624,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
82,
16,
3,
9688,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7109,
3256,
705,
80,
79,
3256,
705,
7109,
58,
17,
60,
3256,
705,
80,
79,
58,
17,
60,
3256,
705,
7109,
58,
18,
60,
3256,
705,
36299,
3256,
705,
7109,
58,
19,
60,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
82,
16,
3,
437,
3256,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
6818,
264,
16,
13,
11201,
12249,
62,
30854,
62,
14933,
3419,
6624,
264,
16,
13,
30854,
62,
14933,
3419,
198,
220,
220,
220,
6818,
18896,
7,
82,
16,
13,
30854,
62,
14933,
28955,
6624,
18896,
7,
82,
16,
13,
30854,
62,
1930,
1756,
28955,
198,
220,
220,
220,
6818,
264,
16,
13,
30854,
62,
1930,
1756,
3419,
6624,
685,
198,
220,
220,
220,
220,
220,
220,
220,
657,
13,
15,
11,
657,
13,
15,
11,
352,
13,
15,
11,
362,
13,
15,
11,
513,
13,
15,
11,
604,
13,
15,
11,
642,
13,
15,
11,
767,
13,
15,
11,
807,
13,
15,
60,
198,
220,
220,
220,
6818,
264,
16,
13,
11201,
12249,
62,
30854,
62,
1930,
1756,
3419,
6624,
685,
198,
220,
220,
220,
220,
220,
220,
220,
657,
13,
15,
11,
657,
13,
15,
11,
352,
13,
15,
11,
362,
13,
15,
11,
513,
13,
15,
11,
604,
13,
15,
11,
642,
13,
15,
11,
767,
13,
15,
11,
807,
13,
15,
60,
628,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
58,
15,
4083,
3672,
6624,
705,
82,
16,
3,
9688,
6,
198,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
58,
12,
16,
4083,
3672,
6624,
705,
82,
16,
3,
437,
6,
198,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
58,
12,
16,
4083,
9630,
6624,
18896,
7,
82,
16,
13,
68,
3639,
13219,
16,
198,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
58,
18,
4083,
9630,
6624,
513,
628,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
13,
9630,
10786,
2,
82,
11537,
6624,
657,
198,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
13,
9630,
10786,
2,
68,
11537,
6624,
18896,
7,
82,
16,
13,
68,
3639,
13219,
16,
198,
220,
220,
220,
6818,
264,
16,
13,
68,
3639,
13,
9630,
10786,
36299,
11537,
6624,
718,
198,
220,
220,
220,
6818,
264,
16,
13,
13664,
6624,
807,
13,
15,
628,
198,
4299,
1332,
62,
43167,
62,
1136,
62,
68,
3639,
62,
82,
16,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
264,
16,
796,
8805,
13,
43167,
13,
82,
16,
13,
68,
3639,
198,
220,
220,
220,
10662,
79,
16,
796,
264,
16,
17816,
80,
79,
58,
16,
60,
20520,
198,
220,
220,
220,
10662,
79,
17,
796,
264,
16,
17816,
80,
79,
58,
17,
60,
20520,
198,
220,
220,
220,
264,
65,
16,
796,
264,
16,
17816,
36299,
58,
16,
60,
20520,
198,
220,
220,
220,
6818,
264,
16,
13,
9630,
10786,
80,
79,
11537,
1279,
264,
16,
13,
9630,
10786,
80,
79,
58,
17,
60,
11537,
198,
220,
220,
220,
6818,
264,
16,
13,
9630,
10786,
80,
79,
58,
17,
60,
11537,
1279,
264,
16,
13,
9630,
10786,
36299,
11537,
198,
220,
220,
220,
6818,
10662,
79,
16,
17816,
265,
20520,
6624,
5561,
7,
16,
13,
20,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
17816,
265,
20520,
6624,
5561,
7,
18,
13,
20,
8,
198,
220,
220,
220,
6818,
264,
65,
16,
17816,
265,
20520,
6624,
5561,
7,
21,
8,
198,
220,
220,
220,
6818,
10662,
79,
16,
13,
9150,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
13,
9150,
6624,
5561,
7,
18,
8,
198,
220,
220,
220,
6818,
264,
65,
16,
13,
9150,
6624,
5561,
7,
20,
8,
198,
220,
220,
220,
6818,
10662,
79,
16,
17816,
75,
20520,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
17816,
75,
20520,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
264,
65,
16,
17816,
75,
20520,
6624,
5561,
7,
17,
8,
198,
220,
220,
220,
6818,
12178,
7,
80,
79,
16,
17816,
74,
16,
6,
12962,
6624,
5561,
7,
17,
8,
198,
220,
220,
220,
6818,
12178,
7,
80,
79,
17,
17816,
74,
16,
6,
12962,
6624,
5561,
7,
17,
8,
198,
220,
220,
220,
6818,
12178,
7,
36299,
16,
17816,
9248,
6,
12962,
6624,
5561,
7,
18,
13,
1415,
14,
19,
8,
198,
220,
220,
220,
6818,
10662,
79,
16,
13,
28758,
1845,
13,
74,
16,
13,
31937,
13,
21037,
3419,
6624,
366,
80,
79,
62,
74,
16,
1,
628,
198,
4299,
1332,
62,
43167,
62,
1136,
62,
68,
3639,
62,
82,
17,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
264,
17,
796,
8805,
13,
43167,
13,
82,
17,
13,
68,
3639,
198,
220,
220,
220,
10662,
79,
16,
796,
264,
17,
17816,
80,
79,
16,
58,
16,
60,
20520,
198,
220,
220,
220,
10662,
79,
17,
796,
264,
17,
17816,
80,
79,
17,
58,
16,
60,
20520,
198,
220,
220,
220,
6818,
264,
17,
13,
9630,
10786,
80,
79,
16,
11537,
1279,
264,
17,
13,
9630,
10786,
80,
79,
17,
11537,
198,
220,
220,
220,
6818,
10662,
79,
16,
17816,
265,
20520,
6624,
5561,
7,
15,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
17816,
265,
20520,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
10662,
79,
16,
17816,
75,
20520,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
17816,
75,
20520,
6624,
5561,
7,
17,
8,
198,
220,
220,
220,
6818,
12178,
7,
80,
79,
16,
17816,
74,
16,
6,
12962,
6624,
5561,
7,
18,
8,
198,
220,
220,
220,
6818,
12178,
7,
80,
79,
17,
17816,
74,
16,
6,
12962,
6624,
5561,
7,
17,
8,
628,
198,
2,
825,
1332,
62,
43167,
62,
1136,
62,
11201,
12249,
62,
68,
3639,
33529,
628,
198,
4299,
1332,
62,
6098,
1077,
7,
9937,
2599,
198,
220,
220,
220,
37227,
9787,
326,
257,
43160,
12331,
318,
4376,
287,
1339,
45878,
12,
55,
17616,
526,
15931,
198,
220,
220,
220,
6818,
20512,
7,
9937,
8,
198,
220,
220,
220,
1303,
257,
13,
83,
13,
76,
13,
45878,
12,
55,
17616,
319,
428,
5128,
11,
780,
262,
406,
357,
13664,
8,
198,
220,
220,
220,
1303,
5772,
316,
567,
318,
4814,
25,
198,
220,
220,
220,
12073,
7,
41006,
12331,
11,
8805,
13,
15414,
11,
705,
43145,
25,
8379,
26,
11537,
198,
220,
220,
220,
6818,
407,
20512,
7,
9937,
8,
628,
198,
4299,
1332,
62,
43167,
62,
68,
3639,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
4847,
796,
8805,
13,
43167,
17816,
82,
16,
6,
4083,
68,
3639,
198,
220,
220,
220,
1312,
80,
79,
17,
796,
4847,
13,
9630,
10786,
80,
79,
58,
17,
60,
11537,
198,
220,
220,
220,
10662,
79,
16,
796,
4847,
17816,
80,
79,
58,
16,
60,
20520,
198,
220,
220,
220,
10662,
79,
17,
796,
4847,
58,
25011,
79,
17,
60,
198,
220,
220,
220,
6818,
10662,
79,
16,
17816,
265,
20520,
6624,
5561,
7,
16,
13,
20,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
17816,
265,
20520,
6624,
5561,
7,
18,
13,
20,
8,
198,
220,
220,
220,
6818,
10662,
79,
16,
13,
9150,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
13,
9150,
6624,
5561,
7,
18,
8,
198,
220,
220,
220,
6818,
1312,
80,
79,
17,
6624,
4847,
13,
265,
7,
18,
13,
16,
8,
628,
198,
4299,
1332,
62,
43167,
62,
11201,
12249,
62,
68,
3639,
7,
9937,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
16,
26,
6,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
4847,
796,
8805,
13,
43167,
17816,
82,
16,
6,
4083,
11201,
12249,
62,
68,
3639,
198,
220,
220,
220,
1312,
80,
79,
17,
796,
4847,
13,
9630,
10786,
80,
79,
58,
17,
60,
11537,
198,
220,
220,
220,
10662,
79,
16,
796,
4847,
17816,
80,
79,
58,
16,
60,
20520,
198,
220,
220,
220,
10662,
79,
17,
796,
4847,
58,
25011,
79,
17,
60,
198,
220,
220,
220,
6818,
10662,
79,
16,
17816,
265,
20520,
6624,
5561,
7,
16,
13,
20,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
17816,
265,
20520,
6624,
5561,
7,
18,
13,
20,
8,
198,
220,
220,
220,
6818,
10662,
79,
16,
13,
9150,
6624,
5561,
7,
16,
8,
198,
220,
220,
220,
6818,
10662,
79,
17,
13,
9150,
6624,
5561,
7,
18,
8,
198,
220,
220,
220,
6818,
1312,
80,
79,
17,
6624,
4847,
13,
265,
7,
18,
13,
16,
8,
628,
198,
4299,
1332,
62,
30854,
62,
259,
687,
7,
9937,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
16,
26,
6,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
9766,
76,
796,
8805,
13,
43167,
13,
82,
16,
13,
11201,
12249,
62,
68,
3639,
17816,
80,
79,
20520,
198,
220,
220,
220,
6818,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
329,
1438,
287,
9766,
76,
198,
220,
220,
220,
220,
220,
220,
220,
611,
9766,
76,
13,
28758,
1845,
58,
3672,
4083,
259,
687,
198,
220,
220,
220,
1782,
6624,
1391,
6,
74,
16,
3256,
705,
75,
3256,
705,
265,
6,
92,
628,
198,
4299,
1332,
62,
11487,
7,
9937,
2599,
198,
220,
220,
220,
15584,
796,
705,
1069,
28,
16,
11,
1926,
28,
17,
11,
18758,
28,
9509,
1313,
11,
8379,
28,
82,
16,
26,
6,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
7,
40045,
8,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
198,
220,
220,
220,
4238,
796,
8633,
7,
1604,
87,
28,
15,
13,
20,
11,
435,
24928,
28,
16,
13,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
731,
87,
28,
17,
13,
20,
11,
731,
88,
28,
18,
13,
20,
8,
198,
220,
220,
220,
665,
747,
796,
8805,
13,
4246,
747,
7,
43167,
11639,
82,
16,
3256,
15951,
579,
499,
28,
17821,
11,
12429,
36733,
8,
198,
220,
220,
220,
6567,
796,
8805,
13,
11487,
13,
8831,
419,
540,
628,
220,
220,
220,
6818,
965,
7,
4246,
747,
737,
9688,
2032,
342,
7203,
27,
10962,
705,
4246,
747,
10354,
366,
8,
198,
220,
220,
220,
6818,
965,
7,
34914,
737,
9688,
2032,
342,
7203,
27,
10962,
705,
8831,
419,
540,
10354,
366,
8,
628,
220,
220,
220,
6818,
705,
11181,
87,
6,
287,
665,
747,
198,
220,
220,
220,
6818,
705,
83,
16243,
6,
287,
6567,
198,
220,
220,
220,
6818,
705,
83,
16243,
6,
407,
287,
665,
747,
198,
220,
220,
220,
6818,
705,
11181,
87,
6,
407,
287,
6567,
628,
220,
220,
220,
6818,
18896,
7,
4246,
747,
8,
6624,
18896,
7,
4868,
7,
4246,
747,
4008,
198,
220,
220,
220,
6818,
900,
7,
4246,
747,
8,
6624,
900,
7,
4246,
747,
58,
15,
12962,
198,
220,
220,
220,
6818,
665,
747,
13,
82,
58,
20,
60,
6624,
665,
747,
58,
20,
4083,
82,
198,
220,
220,
220,
6818,
665,
747,
13,
82,
58,
12,
16,
60,
6624,
665,
747,
58,
12,
16,
4083,
82,
628,
220,
220,
220,
4866,
796,
665,
747,
13,
30073,
3419,
198,
220,
220,
220,
6818,
4866,
17816,
11181,
87,
20520,
6624,
5561,
7,
4246,
747,
13,
11181,
87,
8,
198,
220,
220,
220,
6818,
900,
7,
30073,
8,
6624,
900,
7,
4246,
747,
8,
198,
220,
220,
220,
4866,
796,
665,
747,
13,
30073,
7,
17816,
11181,
87,
6,
12962,
198,
220,
220,
220,
6818,
900,
7,
30073,
8,
6624,
1391,
6,
11181,
87,
6,
92,
628,
220,
220,
220,
11096,
796,
16416,
7,
14202,
8,
628,
220,
220,
220,
6818,
6567,
13,
83,
6759,
7,
15,
737,
43358,
6624,
357,
21,
11,
718,
11,
718,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
83,
6759,
7,
7036,
38381,
15,
11,
657,
11,
657,
11,
1058,
4357,
6567,
13,
83,
16243,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
83,
6759,
7,
7036,
38381,
16,
11,
642,
11,
513,
11,
1058,
4357,
6567,
13,
83,
18897,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
83,
6759,
7,
7036,
38381,
18,
11,
657,
11,
513,
11,
1058,
4357,
6567,
13,
83,
37309,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
83,
6759,
7,
7036,
38381,
19,
11,
604,
11,
604,
11,
1058,
4357,
6567,
13,
83,
31046,
8,
628,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
81,
6759,
7,
7036,
38381,
15,
11,
657,
11,
1058,
4357,
6567,
13,
81,
1157,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
81,
6759,
7,
7036,
38381,
16,
11,
642,
11,
1058,
4357,
6567,
13,
81,
2075,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
81,
6759,
7,
7036,
38381,
18,
11,
657,
11,
1058,
4357,
6567,
13,
81,
3901,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
81,
6759,
7,
7036,
38381,
19,
11,
604,
11,
1058,
4357,
6567,
13,
81,
2816,
8,
628,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
74,
35138,
7,
7036,
38381,
15,
11,
1058,
4357,
6567,
13,
74,
16,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
74,
35138,
7,
7036,
38381,
16,
11,
1058,
4357,
6567,
13,
74,
17,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
74,
35138,
7,
7036,
38381,
18,
11,
1058,
4357,
6567,
13,
74,
19,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
34914,
13,
74,
35138,
7,
7036,
38381,
19,
11,
1058,
4357,
6567,
13,
74,
20,
8,
628,
220,
220,
220,
374,
796,
8805,
13,
8831,
419,
540,
3419,
58,
45299,
1058,
21,
11,
1058,
21,
60,
198,
220,
220,
220,
479,
796,
8805,
13,
8831,
419,
540,
3419,
58,
45299,
718,
11,
1058,
21,
60,
198,
220,
220,
220,
256,
796,
8805,
13,
8831,
419,
540,
17,
3419,
628,
220,
220,
220,
997,
62,
11129,
907,
796,
18896,
7,
9937,
13,
43167,
13,
82,
16,
13,
68,
3639,
8,
198,
220,
220,
220,
6818,
256,
13,
43358,
6624,
357,
22510,
62,
11129,
907,
11,
718,
11,
718,
11,
718,
8,
198,
220,
220,
220,
6818,
374,
13,
43358,
6624,
357,
22510,
62,
11129,
907,
11,
718,
11,
718,
8,
198,
220,
220,
220,
6818,
479,
13,
43358,
6624,
357,
22510,
62,
11129,
907,
11,
718,
8,
628,
220,
220,
220,
6818,
62,
439,
19836,
7,
83,
58,
45299,
657,
11,
657,
11,
657,
4357,
6567,
13,
83,
16243,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
83,
58,
45299,
352,
11,
642,
11,
513,
4357,
6567,
13,
83,
18897,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
83,
58,
45299,
513,
11,
657,
11,
513,
4357,
6567,
13,
83,
37309,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
83,
58,
45299,
604,
11,
604,
11,
604,
4357,
6567,
13,
83,
31046,
8,
628,
220,
220,
220,
6818,
62,
439,
19836,
7,
81,
58,
45299,
657,
11,
657,
4357,
6567,
13,
81,
1157,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
81,
58,
45299,
352,
11,
642,
4357,
6567,
13,
81,
2075,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
81,
58,
45299,
513,
11,
657,
4357,
6567,
13,
81,
3901,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
81,
58,
45299,
604,
11,
604,
4357,
6567,
13,
81,
2816,
8,
628,
220,
220,
220,
6818,
62,
439,
19836,
7,
74,
58,
45299,
657,
4357,
6567,
13,
74,
16,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
74,
58,
45299,
352,
4357,
6567,
13,
74,
17,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
74,
58,
45299,
513,
4357,
6567,
13,
74,
19,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
74,
58,
45299,
604,
4357,
6567,
13,
74,
20,
8,
628,
198,
4299,
1332,
62,
34213,
62,
28665,
82,
7,
9937,
11,
9195,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
628,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
5721,
28,
17816,
82,
3256,
705,
87,
3256,
705,
88,
6,
12962,
198,
220,
220,
220,
3084,
796,
8805,
13,
4246,
747,
7,
43167,
11639,
82,
16,
3256,
731,
87,
28,
16,
11,
731,
88,
28,
16,
8,
198,
220,
220,
220,
6818,
900,
7,
11487,
8,
1875,
1391,
6,
82,
3256,
705,
87,
3256,
705,
88,
3256,
705,
11181,
87,
3256,
705,
65,
2963,
6,
92,
198,
220,
220,
220,
6818,
900,
7,
11487,
13,
30073,
28955,
1875,
1391,
6,
82,
3256,
705,
87,
3256,
705,
88,
3256,
705,
11181,
87,
3256,
705,
65,
2963,
6,
92,
198,
220,
220,
220,
6818,
3084,
13,
34213,
62,
28665,
82,
3419,
6624,
37250,
82,
3256,
705,
87,
3256,
705,
88,
20520,
198,
220,
220,
220,
6818,
3084,
13,
49283,
22446,
4033,
62,
14933,
3419,
6624,
37250,
82,
3256,
705,
87,
3256,
705,
88,
20520,
198,
220,
220,
220,
6818,
3084,
13,
49283,
22446,
30073,
22446,
13083,
3419,
6624,
1391,
6,
82,
3256,
705,
87,
3256,
705,
88,
6,
92,
628,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
1598,
28,
17821,
8,
198,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
5721,
28,
17816,
11181,
87,
3256,
705,
65,
2963,
6,
12962,
198,
220,
220,
220,
9195,
13,
39014,
62,
11487,
62,
19738,
507,
10786,
4246,
747,
11537,
198,
220,
220,
220,
3084,
796,
8805,
13,
11487,
13,
4246,
747,
198,
220,
220,
220,
6818,
900,
7,
11487,
8,
1875,
1391,
6,
82,
3256,
705,
87,
3256,
705,
88,
3256,
705,
11181,
87,
3256,
705,
65,
2963,
6,
92,
198,
220,
220,
220,
6818,
900,
7,
11487,
13,
30073,
28955,
1875,
1391,
6,
82,
3256,
705,
87,
3256,
705,
88,
3256,
705,
11181,
87,
3256,
705,
65,
2963,
6,
92,
198,
220,
220,
220,
6818,
3084,
13,
34213,
62,
28665,
82,
3419,
6624,
37250,
11181,
87,
3256,
705,
65,
2963,
20520,
198,
220,
220,
220,
6818,
3084,
13,
49283,
22446,
4033,
62,
14933,
3419,
6624,
37250,
11181,
87,
3256,
705,
65,
2963,
20520,
198,
220,
220,
220,
6818,
3084,
13,
49283,
22446,
30073,
22446,
13083,
3419,
6624,
1391,
6,
11181,
87,
3256,
705,
65,
2963,
6,
92,
628,
198,
4299,
1332,
62,
11487,
62,
34213,
62,
8516,
7,
9937,
11,
9195,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
628,
220,
220,
220,
825,
2198,
62,
49283,
7,
11487,
11,
1438,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3084,
13,
28665,
7,
3672,
11,
15274,
11639,
34213,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3084,
58,
3672,
7131,
11487,
13,
34213,
62,
8516,
3419,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
62,
40496,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3084,
13,
28665,
7,
3672,
11,
15274,
11639,
34213,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3084,
13,
49283,
3419,
58,
3672,
12962,
628,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
1398,
62,
11639,
47003,
12618,
2305,
11537,
198,
220,
220,
220,
3084,
796,
8805,
13,
4246,
747,
7,
43167,
11639,
82,
16,
3256,
731,
87,
28,
16,
11,
731,
88,
28,
16,
8,
198,
220,
220,
220,
6818,
3084,
13,
34213,
62,
8516,
3419,
6624,
685,
17,
11,
604,
60,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
1604,
87,
11537,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
1604,
88,
11537,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
11181,
87,
11537,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
65,
2963,
11537,
628,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
1598,
28,
17821,
8,
198,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
1398,
62,
11639,
7109,
2135,
11537,
198,
220,
220,
220,
9195,
13,
39014,
62,
11487,
62,
19738,
507,
10786,
4246,
747,
11537,
198,
220,
220,
220,
3084,
796,
8805,
13,
11487,
13,
4246,
747,
198,
220,
220,
220,
6818,
3084,
13,
34213,
62,
8516,
3419,
6624,
685,
16,
11,
513,
11,
642,
11,
767,
60,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
1604,
87,
11537,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
1604,
88,
11537,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
11181,
87,
11537,
198,
220,
220,
220,
2198,
62,
49283,
7,
11487,
11,
705,
65,
2963,
11537,
628,
198,
4299,
1332,
62,
11487,
62,
34213,
62,
8516,
62,
27932,
7,
9937,
11,
9195,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
21812,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
10786,
82,
16,
11537,
628,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
4246,
747,
3256,
1398,
62,
11639,
47003,
12618,
2305,
11537,
198,
220,
220,
220,
3084,
796,
8805,
13,
4246,
747,
7,
43167,
11639,
82,
16,
3256,
731,
87,
28,
16,
11,
731,
88,
28,
16,
8,
198,
220,
220,
220,
9335,
796,
9195,
13,
1136,
62,
11487,
62,
34213,
62,
8516,
62,
27932,
10786,
4246,
747,
11537,
198,
220,
220,
220,
6818,
9335,
13,
43358,
6624,
357,
11925,
7,
9937,
13,
43167,
13,
82,
16,
13,
11201,
12249,
62,
68,
3639,
828,
1267,
198,
220,
220,
220,
6818,
62,
40496,
7,
27932,
13,
13159,
22570,
22784,
357,
11487,
13,
34213,
62,
8516,
22784,
15306,
628,
198,
4299,
1332,
62,
35226,
7,
9937,
2599,
198,
220,
220,
220,
6818,
468,
35226,
7,
9937,
11,
705,
1102,
2536,
2913,
11537,
198,
220,
220,
220,
6818,
468,
35226,
7,
9937,
11,
705,
1102,
2536,
2913,
62,
11537,
198,
220,
220,
220,
6818,
468,
35226,
7,
9937,
11,
705,
20541,
62,
11537,
198,
220,
220,
220,
6818,
407,
468,
35226,
7,
9937,
11,
705,
6513,
30973,
11537,
198,
220,
220,
220,
6818,
407,
468,
35226,
7,
9937,
11,
705,
62,
1102,
2536,
2913,
11537,
628,
198,
4299,
1332,
62,
31937,
7,
9937,
2599,
198,
220,
220,
220,
308,
796,
8805,
13,
4743,
672,
874,
198,
220,
220,
220,
410,
945,
796,
8805,
13,
31937,
62,
85,
945,
198,
220,
220,
220,
308,
13,
21943,
796,
352,
198,
220,
220,
220,
308,
13,
5657,
796,
362,
198,
220,
220,
220,
6818,
900,
7,
85,
945,
10786,
21943,
6,
4008,
6624,
1391,
6,
21943,
6,
92,
198,
220,
220,
220,
6818,
900,
7,
85,
945,
10786,
7,
21943,
8,
1635,
7813,
7,
17,
9,
14415,
9,
5657,
33047,
4008,
6624,
1391,
6,
21943,
3256,
705,
5657,
6,
92,
628,
198,
4299,
1332,
62,
21812,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
665,
747,
796,
8805,
13,
21812,
13,
4246,
747,
198,
220,
220,
220,
264,
65,
437,
796,
8805,
13,
68,
3639,
13,
36299,
198,
220,
220,
220,
17271,
796,
264,
65,
437,
13,
21018,
10786,
6513,
30973,
3256,
9848,
2625,
14415,
14,
20,
1600,
300,
28,
16,
8,
628,
220,
220,
220,
6818,
705,
11181,
87,
28,
15,
6,
287,
965,
7,
4246,
747,
8,
198,
220,
220,
220,
6818,
705,
9248,
11639,
287,
965,
7,
36299,
437,
8,
198,
220,
220,
220,
6818,
705,
83,
2326,
6,
287,
264,
65,
437,
198,
220,
220,
220,
6818,
264,
65,
437,
13,
83,
2326,
6624,
657,
198,
220,
220,
220,
6818,
18896,
7,
36299,
437,
8,
6624,
18896,
7,
4868,
7,
36299,
437,
4008,
198,
220,
220,
220,
6818,
705,
83,
2326,
6,
287,
1351,
7,
36299,
437,
8,
628,
220,
220,
220,
6818,
17271,
13,
3672,
6624,
705,
6513,
30973,
6,
198,
220,
220,
220,
6818,
17271,
13,
8692,
62,
4906,
13,
3672,
6624,
705,
36299,
437,
6,
198,
220,
220,
220,
6818,
17271,
13,
8000,
13,
3672,
6624,
705,
36299,
6,
198,
220,
220,
220,
6818,
17271,
13,
4299,
82,
13,
9248,
6624,
705,
14415,
1220,
642,
6,
198,
220,
220,
220,
6818,
17271,
13,
9248,
6624,
5561,
7,
15,
13,
21,
30290,
21652,
22996,
21738,
29796,
8,
198,
220,
220,
220,
6818,
18896,
7,
21018,
8,
6624,
18896,
7,
36299,
437,
8,
628,
220,
220,
220,
6818,
705,
9248,
28,
15,
13,
48200,
6,
287,
965,
7,
21018,
8,
198,
220,
220,
220,
6818,
705,
83,
2326,
6,
407,
287,
965,
7,
21018,
8,
198,
220,
220,
220,
17271,
13,
9248,
796,
657,
13,
11623,
198,
220,
220,
220,
17271,
796,
8805,
13,
68,
3639,
13,
6513,
30973,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
761,
284,
4296,
12940,
198,
220,
220,
220,
6818,
17271,
13,
9248,
6624,
657,
13,
11623,
198,
220,
220,
220,
6818,
18896,
7,
4246,
747,
8,
6624,
18896,
7,
4868,
7,
4246,
747,
4008,
198,
220,
220,
220,
6818,
705,
11181,
87,
6,
287,
1351,
7,
4246,
747,
8,
628,
220,
220,
220,
6818,
17271,
13,
9248,
14512,
5561,
7,
21018,
13,
8000,
13,
9248,
8,
198,
220,
220,
220,
1619,
17271,
13,
9248,
198,
220,
220,
220,
17271,
796,
8805,
13,
68,
3639,
13,
6513,
30973,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
761,
284,
4296,
12940,
198,
220,
220,
220,
6818,
17271,
13,
9248,
6624,
17271,
13,
8000,
13,
9248,
628,
220,
220,
220,
351,
12073,
7,
33682,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
17271,
13,
45688,
62,
42348,
628,
220,
220,
220,
351,
12073,
7,
3673,
3546,
1154,
12061,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
665,
747,
17816,
11181,
87,
20520,
198,
220,
220,
220,
351,
12073,
7,
3673,
3546,
1154,
12061,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
17271,
13,
8692,
62,
4906,
13,
9248,
628,
198,
4299,
1332,
62,
18747,
62,
42348,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
4743,
672,
874,
13,
30888,
796,
860,
198,
220,
220,
220,
17271,
796,
8805,
13,
68,
3639,
13,
16680,
541,
2305,
13,
21018,
10786,
21943,
3256,
638,
75,
41888,
15,
11,
705,
30888,
14,
18,
3256,
604,
12962,
198,
220,
220,
220,
638,
75,
796,
17271,
13,
15418,
75,
198,
220,
220,
220,
6818,
638,
75,
58,
15,
60,
6624,
657,
198,
220,
220,
220,
6818,
638,
75,
58,
16,
60,
6624,
513,
198,
220,
220,
220,
6818,
638,
75,
58,
17,
60,
6624,
604,
198,
220,
220,
220,
6818,
18896,
7,
15418,
75,
8,
6624,
513,
198,
220,
220,
220,
6818,
1351,
7,
15418,
75,
8,
6624,
685,
15,
13,
15,
11,
513,
13,
15,
11,
604,
13,
15,
60,
198,
220,
220,
220,
6818,
965,
7,
15418,
75,
8,
6624,
44438,
15,
13,
15,
11,
513,
13,
15,
11,
604,
13,
15,
49946,
198,
220,
220,
220,
638,
75,
58,
16,
60,
796,
705,
18,
9,
30888,
6,
198,
220,
220,
220,
6818,
8805,
13,
68,
3639,
13,
21943,
13,
4299,
82,
13,
15418,
75,
58,
16,
60,
6624,
705,
18,
1635,
5193,
6,
198,
220,
220,
220,
6818,
8805,
13,
68,
3639,
13,
21943,
13,
15418,
75,
58,
16,
60,
6624,
2681,
628,
198,
4299,
1332,
62,
18747,
62,
42348,
62,
785,
1845,
1653,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
4743,
672,
874,
13,
30888,
796,
860,
198,
220,
220,
220,
22944,
796,
8805,
13,
68,
3639,
13,
16680,
541,
2305,
13,
21018,
10786,
21943,
3256,
638,
75,
41888,
15,
11,
642,
11,
838,
12962,
628,
220,
220,
220,
2318,
62,
27363,
796,
8805,
13,
68,
3639,
13,
16680,
541,
2305,
13,
21018,
10786,
5657,
62,
27363,
3256,
638,
75,
41888,
15,
11,
642,
11,
838,
12962,
198,
220,
220,
220,
2318,
62,
13655,
796,
8805,
13,
68,
3639,
13,
16680,
541,
2305,
13,
21018,
10786,
5657,
62,
13655,
3256,
638,
75,
41888,
15,
11,
718,
11,
838,
12962,
198,
220,
220,
220,
2318,
62,
2528,
796,
8805,
13,
68,
3639,
13,
16680,
541,
2305,
13,
21018,
10786,
5657,
62,
2528,
3256,
638,
75,
41888,
15,
11,
642,
11,
705,
30888,
6,
12962,
628,
220,
220,
220,
638,
75,
796,
22944,
13,
15418,
75,
198,
220,
220,
220,
638,
75,
62,
27363,
796,
2318,
62,
27363,
13,
15418,
75,
198,
220,
220,
220,
638,
75,
62,
13655,
796,
2318,
62,
13655,
13,
15418,
75,
198,
220,
220,
220,
638,
75,
62,
2528,
796,
2318,
62,
2528,
13,
15418,
75,
628,
220,
220,
220,
6818,
638,
75,
6624,
638,
75,
62,
27363,
198,
220,
220,
220,
6818,
407,
357,
15418,
75,
6624,
638,
75,
62,
13655,
8,
198,
220,
220,
220,
6818,
407,
357,
15418,
75,
6624,
638,
75,
62,
2528,
8,
628,
220,
220,
220,
6818,
407,
357,
15418,
75,
1279,
638,
75,
62,
27363,
8,
198,
220,
220,
220,
6818,
638,
75,
1279,
638,
75,
62,
13655,
198,
220,
220,
220,
6818,
407,
357,
15418,
75,
1279,
638,
75,
62,
2528,
8,
628,
220,
220,
220,
6818,
638,
75,
19841,
638,
75,
62,
27363,
198,
220,
220,
220,
6818,
638,
75,
19841,
638,
75,
62,
13655,
198,
220,
220,
220,
6818,
407,
357,
15418,
75,
19841,
638,
75,
62,
2528,
8,
628,
220,
220,
220,
6818,
407,
357,
15418,
75,
1875,
638,
75,
62,
27363,
8,
198,
220,
220,
220,
6818,
407,
357,
15418,
75,
1875,
638,
75,
62,
13655,
8,
198,
220,
220,
220,
6818,
638,
75,
1875,
638,
75,
62,
2528,
628,
220,
220,
220,
6818,
638,
75,
18189,
638,
75,
62,
27363,
198,
220,
220,
220,
6818,
407,
357,
15418,
75,
18189,
638,
75,
62,
13655,
8,
198,
220,
220,
220,
6818,
638,
75,
18189,
638,
75,
62,
2528,
628,
198,
4299,
1332,
62,
21812,
62,
8899,
7,
9937,
2599,
198,
220,
220,
220,
3141,
796,
8805,
13,
21812,
198,
220,
220,
220,
6818,
705,
15699,
6,
287,
3141,
198,
220,
220,
220,
6818,
705,
36299,
437,
6,
287,
3141,
628,
220,
220,
220,
6818,
705,
69,
13321,
6,
407,
287,
3141,
628,
220,
220,
220,
6818,
705,
15699,
6,
287,
1351,
7,
21812,
8,
198,
220,
220,
220,
6818,
18896,
7,
21812,
8,
6624,
18896,
7,
4868,
7,
21812,
4008,
198,
220,
220,
220,
6818,
705,
15699,
6,
287,
965,
7,
21812,
8,
198,
220,
220,
220,
6818,
705,
36299,
437,
6,
287,
965,
7,
21812,
8,
628,
220,
220,
220,
6818,
705,
36299,
437,
6,
287,
8805,
13,
8692,
62,
19199,
198,
220,
220,
220,
6818,
705,
15699,
6,
407,
287,
8805,
13,
8692,
62,
19199,
628,
198,
4299,
1332,
62,
15944,
7,
9937,
2599,
198,
220,
220,
220,
1401,
796,
8805,
13,
4743,
672,
874,
198,
220,
220,
220,
8805,
10786,
87,
796,
352,
26,
5145,
2124,
796,
362,
26,
11537,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
352,
198,
220,
220,
220,
8805,
10786,
87,
796,
362,
26,
3373,
2124,
796,
513,
26,
11537,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
362,
198,
220,
220,
220,
8805,
10786,
87,
796,
513,
26,
11900,
2124,
796,
604,
26,
9466,
11537,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
513,
198,
220,
220,
220,
8805,
10786,
15211,
2124,
796,
513,
26,
9466,
2124,
796,
604,
26,
11537,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
604,
198,
220,
220,
220,
8805,
10786,
87,
796,
642,
26,
5145,
11900,
9466,
2124,
796,
718,
26,
11537,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
642,
198,
220,
220,
220,
8805,
10786,
87,
796,
642,
26,
11900,
5145,
9466,
2124,
796,
718,
26,
11537,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
718,
628,
198,
4299,
1332,
62,
16680,
346,
500,
62,
15414,
7,
9937,
2599,
198,
220,
220,
220,
1401,
796,
8805,
13,
4743,
672,
874,
198,
220,
220,
220,
8805,
7,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
352,
26,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
362,
26,
198,
220,
220,
220,
705,
7061,
8,
198,
220,
220,
220,
6818,
1401,
13,
87,
11,
352,
198,
220,
220,
220,
6818,
1401,
13,
88,
11,
362,
198,
220,
220,
220,
8805,
7,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
11900,
513,
26,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
16208,
604,
26,
198,
220,
220,
220,
705,
7061,
8,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
604,
198,
220,
220,
220,
6818,
1401,
13,
88,
6624,
362,
198,
220,
220,
220,
8805,
7,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
352,
26,
11900,
220,
9466,
2124,
796,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
9466,
611,
357,
87,
6624,
352,
8,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
513,
26,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
705,
7061,
8,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
362,
198,
220,
220,
220,
8805,
7,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
352,
26,
11900,
2124,
796,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
9466,
611,
357,
87,
6624,
352,
8,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
513,
26,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
705,
7061,
8,
198,
220,
220,
220,
6818,
1401,
13,
87,
6624,
513,
628,
198,
4299,
1332,
62,
48277,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7,
5188,
10917,
8,
198,
220,
220,
220,
8805,
13,
40045,
3419,
198,
220,
220,
220,
8805,
13,
1904,
7,
43167,
11639,
82,
16,
11537,
198,
220,
220,
220,
8805,
13,
19738,
7,
32109,
11639,
18224,
3256,
2837,
11639,
80,
79,
11537,
198,
220,
220,
220,
288,
15418,
796,
685,
16,
68,
12,
21,
11,
362,
68,
12,
21,
11,
513,
68,
12,
21,
60,
198,
220,
220,
220,
288,
591,
796,
685,
19,
68,
12,
21,
11,
642,
68,
12,
21,
11,
718,
68,
12,
21,
60,
198,
220,
220,
220,
8805,
13,
891,
5589,
7,
67,
15418,
28,
67,
15418,
11,
288,
591,
28,
67,
591,
8,
198,
220,
220,
220,
8805,
13,
2287,
570,
7,
34350,
28,
16,
68,
12,
18,
11,
20268,
10779,
19,
68,
12,
18,
8,
198,
220,
220,
220,
277,
67,
796,
8805,
13,
43167,
17816,
82,
16,
6,
4083,
11201,
12249,
62,
68,
3639,
17816,
80,
79,
6,
4083,
3245,
62,
48277,
198,
220,
220,
220,
435,
796,
8805,
13,
43167,
17816,
82,
16,
6,
4083,
11201,
12249,
62,
68,
3639,
17816,
80,
79,
6,
4083,
31494,
62,
48277,
198,
220,
220,
220,
2938,
62,
67,
15418,
796,
45941,
13,
71,
25558,
19510,
67,
15418,
11,
45941,
13,
9107,
418,
7,
11925,
7,
16344,
13,
67,
15418,
8,
532,
18896,
7,
67,
15418,
35514,
198,
220,
220,
220,
2938,
62,
67,
591,
796,
45941,
13,
71,
25558,
19510,
67,
591,
11,
45941,
13,
9107,
418,
7,
11925,
7,
16344,
13,
67,
591,
8,
532,
18896,
7,
67,
591,
35514,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
16344,
13,
67,
15418,
11,
2938,
62,
67,
15418,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
16344,
13,
67,
591,
11,
2938,
62,
67,
591,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
282,
13,
34350,
11,
352,
68,
12,
18,
8,
198,
220,
220,
220,
6818,
62,
439,
19836,
7,
282,
13,
9892,
11,
532,
19,
68,
12,
18,
8,
628,
198,
4299,
1332,
62,
7266,
43167,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7203,
15931,
198,
220,
220,
220,
288,
16,
25,
17986,
10619,
11,
300,
28,
15,
13,
16,
11,
9848,
28,
15,
13,
16,
26,
628,
220,
220,
220,
33756,
16,
25,
8379,
11,
300,
28,
15,
13,
16,
26,
198,
220,
220,
220,
220,
220,
220,
220,
288,
16,
13,
16,
25,
288,
16,
11,
379,
28,
15,
13,
2713,
26,
198,
220,
220,
220,
886,
43167,
26,
628,
220,
220,
220,
33756,
17,
25,
8379,
11,
300,
28,
15,
13,
17,
26,
198,
220,
220,
220,
220,
220,
220,
220,
33756,
16,
11,
379,
28,
15,
13,
2713,
26,
198,
220,
220,
220,
220,
220,
220,
220,
33756,
16,
11,
379,
28,
15,
13,
1314,
26,
198,
220,
220,
220,
886,
43167,
26,
198,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
33756,
17,
796,
8805,
13,
43167,
13,
41068,
17,
198,
220,
220,
220,
6818,
318,
39098,
7,
41068,
17,
13,
68,
3639,
17816,
41068,
16,
6,
4357,
45835,
8,
198,
220,
220,
220,
6818,
33756,
17,
13,
68,
3639,
17816,
41068,
16,
6,
4083,
3672,
6624,
705,
41068,
16,
6,
198,
220,
220,
220,
6818,
33756,
17,
13,
68,
3639,
17816,
41068,
16,
6,
4083,
30854,
62,
14933,
3419,
6624,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
8805,
13,
43167,
13,
41068,
16,
13,
30854,
62,
14933,
3419,
628,
198,
4299,
1332,
62,
7568,
28073,
62,
8499,
62,
1904,
7,
9937,
2599,
198,
220,
220,
220,
8805,
13,
15414,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
69,
13,
74,
16,
796,
220,
657,
13,
1270,
2718,
1731,
11442,
22,
26,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
67,
13,
74,
16,
796,
532,
15,
13,
1270,
2718,
1731,
11442,
22,
26,
628,
220,
220,
220,
220,
220,
220,
220,
277,
24313,
25,
8379,
11,
300,
28,
940,
11,
3522,
28,
13000,
26,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
69,
25,
15094,
12618,
2305,
11,
379,
28,
15,
11,
300,
28,
16,
11,
479,
16,
25,
28,
76,
80,
69,
13,
74,
16,
26,
198,
220,
220,
220,
220,
220,
220,
220,
288,
487,
25,
24260,
11,
220,
220,
220,
220,
220,
379,
28,
16,
11,
300,
28,
19,
26,
198,
220,
220,
220,
220,
220,
220,
220,
285,
80,
67,
25,
15094,
12618,
2305,
11,
379,
28,
20,
11,
300,
28,
16,
11,
479,
16,
25,
28,
76,
80,
67,
13,
74,
16,
26,
198,
220,
220,
220,
220,
220,
220,
220,
288,
16344,
25,
24260,
11,
220,
220,
220,
220,
220,
379,
28,
21,
11,
300,
28,
19,
26,
198,
220,
220,
220,
220,
220,
220,
220,
886,
43167,
26,
628,
220,
220,
220,
220,
220,
220,
220,
15584,
26,
198,
220,
220,
220,
220,
220,
220,
220,
779,
11,
8379,
28,
69,
24313,
26,
198,
220,
220,
220,
220,
220,
220,
220,
665,
747,
11,
8379,
28,
69,
24313,
11,
2124,
28,
15,
13,
16,
26,
198,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
6376,
796,
37250,
2,
82,
3256,
705,
76,
80,
69,
3256,
705,
67,
487,
3256,
705,
76,
80,
67,
3256,
705,
7568,
67,
3256,
705,
2,
68,
20520,
198,
220,
220,
220,
3891,
796,
37250,
69,
24313,
3,
9688,
3256,
705,
76,
80,
69,
3256,
705,
67,
487,
3256,
705,
76,
80,
67,
3256,
705,
7568,
67,
3256,
705,
69,
24313,
3,
437,
20520,
628,
220,
220,
220,
665,
747,
796,
8805,
13,
11487,
13,
4246,
747,
198,
220,
220,
220,
6818,
6376,
6624,
665,
747,
13,
808,
62,
14933,
3419,
198,
220,
220,
220,
6818,
6376,
6624,
665,
747,
13,
7568,
28073,
22446,
9630,
13,
83,
349,
396,
3419,
198,
220,
220,
220,
6818,
3891,
6624,
665,
747,
13,
7568,
28073,
7,
9630,
11639,
3672,
27691,
9630,
13,
83,
349,
396,
3419,
628,
220,
220,
220,
8805,
13,
1904,
7,
43167,
11639,
69,
24313,
11537,
628,
220,
220,
220,
665,
747,
796,
8805,
13,
11487,
13,
4246,
747,
628,
220,
220,
220,
1303,
10358,
991,
670,
25,
198,
220,
220,
220,
6818,
3891,
6624,
665,
747,
13,
7568,
28073,
7,
9630,
11639,
3672,
27691,
9630,
13,
83,
349,
396,
3419,
628,
220,
220,
220,
1303,
383,
1708,
6818,
15687,
262,
1459,
9172,
290,
318,
198,
220,
220,
220,
1303,
4001,
284,
4886,
611,
262,
45878,
12,
55,
7822,
2458,
13,
632,
743,
1085,
198,
220,
220,
220,
1303,
284,
17616,
393,
1487,
287,
262,
2003,
13,
554,
326,
1339,
11,
3387,
4781,
198,
220,
220,
220,
1303,
428,
1627,
13,
632,
857,
407,
2380,
10348,
9172,
0,
198,
220,
220,
220,
6818,
8805,
13,
11487,
13,
4246,
747,
13,
808,
62,
14933,
3419,
6624,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
37250,
2,
82,
3256,
705,
2,
68,
3256,
705,
7568,
67,
3256,
705,
76,
80,
67,
3256,
705,
67,
487,
3256,
705,
76,
80,
69,
20520,
198
] | 2.144601 | 13,105 |
"""
File: single_objective_engine.py
Author: ngocjr7
Email: ngocjr7@gmail.com
Github: https://github.com/ngocjr7
Description:
"""
from __future__ import absolute_import
from typing import List, Union, Callable
from functools import wraps
from collections import OrderedDict
from ..geneticengine import GeneticEngine
from ...core.population import Population
from ...core.operators import Selection, Crossover, Mutation, Replacement
from ...core.individual import Individual
from ...callbacks import Callback, CallbackList
from ...callbacks import History
import math
class SingleObjectiveEngine(GeneticEngine):
def __init__(self, population: Population,
objective: Callable[[Individual], Union[float, int]] = None,
selection: Selection = None,
selection_size: int = None,
crossover: Crossover = None,
mutation: Mutation = None,
replacement: Replacement = None,
callbacks: List[Callback] = None,
generations: int = 100,
random_state: int = None):
callback_list = CallbackList(
callbacks, add_history=True, add_progbar=True)
super(SingleObjectiveEngine, self).__init__(population=population,
objective=objective,
selection=selection,
selection_size=selection_size,
crossover=crossover,
mutation=mutation,
replacement=replacement,
callbacks=callback_list,
generations=generations,
random_state=random_state)
def get_best_indv(self) -> Individual:
best_indv = min(self.population.individuals,
key=lambda indv: indv._objective)
return best_indv.clone()
def _update_metrics(self):
self.metrics = self.metrics or OrderedDict()
self.metrics['best_objective'] = self.get_best_indv().objective
def _update_logs(self, logs):
logs = logs or {}
logs.update(self.metrics or OrderedDict())
return logs
def compute_objectives(self, population: List[Individual]) -> List[Individual]:
ret = list()
# compute objectives
for indv in population:
if self.objective is None:
raise ValueError(f"Engine has no registered objective functions")
indv._coefficient = self.coefficient
indv._objective = self.objective(indv)
ret.append(indv)
return ret
def minimize_objective(self, fn):
"""
register objective function
"""
self.objective = _fn_minimization_with_objective_check
self.coefficient = 1
def maximize_objective(self, fn):
"""
register maximization of objective function
"""
self.objective = _fn_maximization_with_objective_check
self.coefficient = -1
| [
37811,
198,
8979,
25,
2060,
62,
15252,
425,
62,
18392,
13,
9078,
198,
13838,
25,
23370,
420,
73,
81,
22,
198,
15333,
25,
23370,
420,
73,
81,
22,
31,
14816,
13,
785,
198,
38,
10060,
25,
3740,
1378,
12567,
13,
785,
14,
782,
420,
73,
81,
22,
198,
11828,
25,
220,
198,
37811,
198,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
198,
6738,
19720,
1330,
7343,
11,
4479,
11,
4889,
540,
198,
6738,
1257,
310,
10141,
1330,
27521,
198,
6738,
17268,
1330,
14230,
1068,
35,
713,
198,
198,
6738,
11485,
5235,
5139,
18392,
1330,
42295,
13798,
198,
6738,
2644,
7295,
13,
39748,
1330,
20133,
198,
6738,
2644,
7295,
13,
3575,
2024,
1330,
29538,
11,
327,
23954,
11,
337,
7094,
11,
43986,
198,
6738,
2644,
7295,
13,
43129,
1330,
18629,
198,
6738,
2644,
13345,
10146,
1330,
4889,
1891,
11,
4889,
1891,
8053,
198,
6738,
2644,
13345,
10146,
1330,
7443,
198,
11748,
10688,
628,
198,
4871,
14206,
10267,
425,
13798,
7,
13746,
5139,
13798,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
3265,
25,
20133,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9432,
25,
4889,
540,
30109,
35392,
4357,
4479,
58,
22468,
11,
493,
11907,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6356,
25,
29538,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6356,
62,
7857,
25,
493,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27668,
25,
327,
23954,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15148,
25,
337,
7094,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9014,
25,
43986,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
869,
10146,
25,
7343,
58,
47258,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10439,
25,
493,
796,
1802,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4738,
62,
5219,
25,
493,
796,
6045,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
23838,
62,
4868,
796,
4889,
1891,
8053,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
869,
10146,
11,
751,
62,
23569,
28,
17821,
11,
751,
62,
1676,
70,
5657,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
7,
28008,
10267,
425,
13798,
11,
2116,
737,
834,
15003,
834,
7,
39748,
28,
39748,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9432,
28,
15252,
425,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6356,
28,
49283,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6356,
62,
7857,
28,
49283,
62,
7857,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27668,
28,
66,
23954,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15148,
28,
76,
7094,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9014,
28,
35666,
5592,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
869,
10146,
28,
47423,
62,
4868,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10439,
28,
8612,
602,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4738,
62,
5219,
28,
25120,
62,
5219,
8,
628,
220,
220,
220,
825,
651,
62,
13466,
62,
521,
85,
7,
944,
8,
4613,
18629,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
521,
85,
796,
949,
7,
944,
13,
39748,
13,
43129,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
28,
50033,
773,
85,
25,
773,
85,
13557,
15252,
425,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1266,
62,
521,
85,
13,
21018,
3419,
628,
220,
220,
220,
825,
4808,
19119,
62,
4164,
10466,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4164,
10466,
796,
2116,
13,
4164,
10466,
393,
14230,
1068,
35,
713,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4164,
10466,
17816,
13466,
62,
15252,
425,
20520,
796,
2116,
13,
1136,
62,
13466,
62,
521,
85,
22446,
15252,
425,
628,
220,
220,
220,
825,
4808,
19119,
62,
6404,
82,
7,
944,
11,
17259,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
17259,
796,
17259,
393,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
17259,
13,
19119,
7,
944,
13,
4164,
10466,
393,
14230,
1068,
35,
713,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17259,
628,
220,
220,
220,
825,
24061,
62,
15252,
1083,
7,
944,
11,
3265,
25,
7343,
58,
35392,
12962,
4613,
7343,
58,
35392,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
1351,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
24061,
15221,
198,
220,
220,
220,
220,
220,
220,
220,
329,
773,
85,
287,
3265,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15252,
425,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7,
69,
1,
13798,
468,
645,
6823,
9432,
5499,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
773,
85,
13557,
1073,
16814,
796,
2116,
13,
1073,
16814,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
773,
85,
13557,
15252,
425,
796,
2116,
13,
15252,
425,
7,
521,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1005,
13,
33295,
7,
521,
85,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
628,
220,
220,
220,
825,
17775,
62,
15252,
425,
7,
944,
11,
24714,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7881,
9432,
2163,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15252,
425,
796,
4808,
22184,
62,
1084,
320,
1634,
62,
4480,
62,
15252,
425,
62,
9122,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1073,
16814,
796,
352,
628,
220,
220,
220,
825,
20487,
62,
15252,
425,
7,
944,
11,
24714,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7881,
12991,
1634,
286,
9432,
2163,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15252,
425,
796,
4808,
22184,
62,
9806,
320,
1634,
62,
4480,
62,
15252,
425,
62,
9122,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1073,
16814,
796,
532,
16,
198
] | 2.079114 | 1,580 |
# timing.py
import datetime, calendar
today = datetime.date.today()
yesterday = today - datetime.timedelta(days = 1)
tomorrow = today + datetime.timedelta(days = 1)
print(yesterday, today, tomorrow)
# -------------------------
'''
last_friday = datetime.date.today()
oneday = datetime.timedelta(days = 1)
while last_friday.weekday() != calendar.FRIDAY :
last_friday = oneday
print(last_friday.strftime('%A, %d-%b-%Y'))
'''
t = datetime.datetime(2012,9,3,21,30)
k = datetime.date.today()
print(t, '\n', k)
| [
2,
10576,
13,
9078,
198,
198,
11748,
4818,
8079,
11,
11845,
198,
198,
40838,
796,
4818,
8079,
13,
4475,
13,
40838,
3419,
198,
198,
8505,
6432,
796,
1909,
532,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
796,
352,
8,
198,
198,
39532,
6254,
796,
1909,
1343,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
796,
352,
8,
198,
198,
4798,
7,
8505,
6432,
11,
1909,
11,
9439,
8,
198,
198,
2,
220,
22369,
12,
198,
7061,
6,
198,
12957,
62,
8310,
2567,
796,
4818,
8079,
13,
4475,
13,
40838,
3419,
198,
12004,
323,
796,
4818,
8079,
13,
16514,
276,
12514,
7,
12545,
796,
352,
8,
198,
198,
4514,
938,
62,
8310,
2567,
13,
10464,
820,
3419,
14512,
11845,
13,
10913,
2389,
4792,
1058,
198,
220,
220,
220,
938,
62,
8310,
2567,
796,
319,
23712,
198,
198,
4798,
7,
12957,
62,
8310,
2567,
13,
2536,
31387,
10786,
4,
32,
11,
4064,
67,
12,
4,
65,
12,
4,
56,
6,
4008,
198,
7061,
6,
198,
83,
796,
4818,
8079,
13,
19608,
8079,
7,
6999,
11,
24,
11,
18,
11,
2481,
11,
1270,
8,
198,
74,
796,
4818,
8079,
13,
4475,
13,
40838,
3419,
198,
4798,
7,
83,
11,
705,
59,
77,
3256,
479,
8,
198
] | 2.534314 | 204 |
from manticore.utils.helpers import CacheDict
from .expression import *
from functools import lru_cache
import logging
import operator
logger = logging.getLogger(__name__)
class Visitor(object):
''' Class/Type Visitor
Inherit your class visitor from this one and get called on a different
visiting function for each type of expression. It will call the first
implemented method for the __mro__ class order.
For example for a BitVecAdd it will try
visit_BitVecAdd() if not defined then it will try with
visit_BitVecOperation() if not defined then it will try with
visit_BitVec() if not defined then it will try with
visit_Operation() if not defined then it will try with
visit_Expression()
Other class named visitors are:
visit_Constant()
visit_Variable()
visit_Operation()
visit_BitVec()
visit_Bool()
visit_Array()
'''
def __init__(self, cache=None, **kwargs):
super().__init__()
self._stack = []
self._cache = {} if cache is None else cache
def push(self, value):
assert value is not None
self._stack.append(value)
def pop(self):
if len(self._stack) == 0:
return None
result = self._stack.pop()
return result
def _method(self, expression, *args):
#Special case. Need to get the unsleeved version of the array
if isinstance(expression, ArrayProxy):
expression = expression.array
assert expression.__class__.__mro__[-1] is object
for cls in expression.__class__.__mro__:
sort = cls.__name__
methodname = 'visit_%s' % sort
if hasattr(self, methodname):
value = getattr(self, methodname)(expression, *args)
if value is not None:
assert isinstance(value, Expression)
return value
return self._rebuild(expression, args)
def visit(self, node, use_fixed_point=False):
'''
The entry point of the visitor.
The exploration algorithm is a DFS post-order traversal
The implementation used two stacks instead of a recursion
The final result is store in self.result
:param node: Node to explore
:type node: Expression
:param use_fixed_point: if True, it runs _methods until a fixed point is found
:type use_fixed_point: Bool
'''
cache = self._cache
visited = set()
stack = []
stack.append(node)
while stack:
node = stack.pop()
if node in cache:
self.push(cache[node])
elif isinstance(node, Operation):
if node in visited:
operands = [self.pop() for _ in range(len(node.operands))]
value = self._method(node, *operands)
visited.remove(node)
self.push(value)
cache[node] = value
else:
visited.add(node)
stack.append(node)
stack.extend(node.operands)
else:
self.push(self._method(node))
if use_fixed_point:
old_value = None
new_value = self.pop()
while old_value is not new_value:
self.visit(new_value)
old_value = new_value
new_value = self.pop()
self.push(new_value)
class Translator(Visitor):
''' Simple visitor to translate an expression into something else
'''
def _method(self, expression, *args):
#Special case. Need to get the unsleeved version of the array
if isinstance(expression, ArrayProxy):
expression = expression.array
assert expression.__class__.__mro__[-1] is object
for cls in expression.__class__.__mro__:
sort = cls.__name__
methodname = 'visit_{:s}'.format(sort)
if hasattr(self, methodname):
value = getattr(self, methodname)(expression, *args)
if value is not None:
return value
raise Exception("No translation for this {}".format(expression))
class GetDeclarations(Visitor):
''' Simple visitor to collect all variables in an expression or set of
expressions
'''
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.variables = set()
def visit_Variable(self, expression):
self.variables.add(expression)
class GetDepth(Translator):
''' Simple visitor to collect all variables in an expression or set of
expressions
'''
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def visit_Expression(self, expression):
return 1
def visit_Operation(self, expression, *operands):
return 1 + max(operands)
def get_depth(exp):
visitor = GetDepth()
visitor.visit(exp)
return visitor.result
class PrettyPrinter(Visitor):
def __init__(self, depth=None, **kwargs):
super().__init__(**kwargs)
self.output = ''
self.indent = 0
self.depth = depth
def _print(self, s, e=None):
self.output += ' ' * self.indent + str(s) # + '(%016x)'%hash(e)
self.output += '\n'
def visit(self, expression):
'''
Overload Visitor.visit because:
- We need a pre-order traversal
- We use a recursion as it makes it easier to keep track of the indentation
'''
self._method(expression)
def _method(self, expression, *args):
'''
Overload Visitor._method because we want to stop to iterate over the
visit_ functions as soon as a valid visit_ function is found
'''
assert expression.__class__.__mro__[-1] is object
for cls in expression.__class__.__mro__:
sort = cls.__name__
methodname = 'visit_%s' % sort
method = getattr(self, methodname, None)
if method is not None:
method(expression, *args)
return
return
def visit_Operation(self, expression, *operands):
self._print(expression.__class__.__name__, expression)
self.indent += 2
if self.depth is None or self.indent < self.depth * 2:
for o in expression.operands:
self.visit(o)
else:
self._print('...')
self.indent -= 2
return ''
def visit_BitVecExtract(self, expression):
self._print(expression.__class__.__name__ + '{%d:%d}' % (expression.begining, expression.end), expression)
self.indent += 2
if self.depth is None or self.indent < self.depth * 2:
for o in expression.operands:
self.visit(o)
else:
self._print('...')
self.indent -= 2
return ''
def visit_Constant(self, expression):
self._print(expression.value)
return ''
def visit_Variable(self, expression):
self._print(expression.name)
return ''
def pretty_print(expression, **kwargs):
if not isinstance(expression, Expression):
return str(expression)
pp = PrettyPrinter(**kwargs)
pp.visit(expression)
return pp.result
class ConstantFolderSimplifier(Visitor):
def __init__(self, **kw):
super().__init__(**kw)
operations = {BitVecAdd: operator.__add__,
BitVecSub: operator.__sub__,
BitVecMul: operator.__mul__,
BitVecDiv: operator.__truediv__,
BitVecShiftLeft: operator.__lshift__,
BitVecShiftRight: operator.__rshift__,
BitVecAnd: operator.__and__,
BitVecOr: operator.__or__,
BitVecXor: operator.__xor__,
BitVecNot: operator.__not__,
BitVecNeg: operator.__invert__,
LessThan: operator.__lt__,
LessOrEqual: operator.__le__,
Equal: operator.__eq__,
GreaterThan: operator.__gt__,
GreaterOrEqual: operator.__ge__,
BoolAnd: operator.__and__,
BoolOr: operator.__or__,
BoolNot: operator.__not__}
def visit_BitVecConcat(self, expression, *operands):
if all(isinstance(o, Constant) for o in operands):
result = 0
for o in operands:
result <<= o.size
result |= o.value
return BitVecConstant(expression.size, result, taint=expression.taint)
def visit_BitVecZeroExtend(self, expression, *operands):
if all(isinstance(o, Constant) for o in operands):
return BitVecConstant(expression.size, operands[0].value, taint=expression.taint)
def visit_BitVecSignExtend(self, expression, *operands):
if expression.extend == 0:
return operands[0]
def visit_BitVecExtract(self, expression, *operands):
if all(isinstance(o, Constant) for o in expression.operands):
value = expression.operands[0].value
begining = expression.begining
end = expression.end
value = value >> begining
mask = 2**(end - begining + 1) - 1
value = value & mask
return BitVecConstant(expression.size, value, taint=expression.taint)
def visit_BoolAnd(self, expression, a, b):
if isinstance(a, Constant) and a.value == True:
return b
if isinstance(b, Constant) and b.value == True:
return a
def visit_BoolOr(self, expression, a, b):
if isinstance(a, Constant) and a.value == False:
return b
if isinstance(b, Constant) and b.value == False:
return a
def visit_Operation(self, expression, *operands):
''' constant folding, if all operands of an expression are a Constant do the math '''
operation = self.operations.get(type(expression), None)
if operation is not None and \
all(isinstance(o, Constant) for o in operands):
value = operation(*(x.value for x in operands))
if isinstance(expression, BitVec):
return BitVecConstant(expression.size, value, taint=expression.taint)
else:
isinstance(expression, Bool)
return BoolConstant(value, taint=expression.taint)
else:
if any(operands[i] is not expression.operands[i] for i in range(len(operands))):
expression = self._rebuild(expression, operands)
return expression
constant_folder_simplifier_cache = CacheDict(max_size=150000, flush_perc=25)
class ArithmeticSimplifier(Visitor):
def __init__(self, parent=None, **kw):
super().__init__(**kw)
def visit_Operation(self, expression, *operands):
''' constant folding, if all operands of an expression are a Constant do the math '''
if all(isinstance(o, Constant) for o in operands):
expression = constant_folder(expression)
if self._changed(expression, operands):
expression = self._rebuild(expression, operands)
return expression
def visit_BitVecZeroExtend(self, expression, *operands):
if self._changed(expression, operands):
return BitVecZeroExtend(expression.size, *operands, taint=expression.taint)
else:
return expression
def visit_BitVecITE(self, expression, *operands):
if isinstance(expression.operands[0], Constant):
if expression.operands[0].value:
result = expression.operands[1]
else:
result = expression.operands[2]
import copy
result = copy.copy(result)
result._taint |= expression.operands[0].taint
return result
if self._changed(expression, operands):
return BitVecITE(expression.size, *operands, taint=expression.taint)
def visit_BitVecExtract(self, expression, *operands):
''' extract(sizeof(a), 0)(a) ==> a
extract(16, 0)( concat(a,b,c,d) ) => concat(c, d)
extract(m,M)(and/or/xor a b ) => and/or/xor((extract(m,M) a) (extract(m,M) a)
'''
op = expression.operands[0]
begining = expression.begining
end = expression.end
# extract(sizeof(a), 0)(a) ==> a
if begining == 0 and end + 1 == op.size:
return op
elif isinstance(op, BitVecConcat):
new_operands = []
bitcount = 0
for item in reversed(op.operands):
if begining >= item.size:
begining -= item.size
else:
if bitcount < expression.size:
new_operands.append(item)
bitcount += item.size
if begining != expression.begining:
return BitVecExtract(BitVecConcat(sum([x.size for x in new_operands]), *reversed(new_operands)),
begining, expression.size, taint=expression.taint)
if isinstance(op, (BitVecAnd, BitVecOr, BitVecXor)):
bitoperand_a, bitoperand_b = op.operands
return op.__class__(BitVecExtract(bitoperand_a, begining, expression.size), BitVecExtract(bitoperand_b, begining, expression.size), taint=expression.taint)
def visit_BitVecAdd(self, expression, *operands):
''' a + 0 ==> a
0 + a ==> a
'''
left = expression.operands[0]
right = expression.operands[1]
if isinstance(right, BitVecConstant):
if right.value == 0:
return left
if isinstance(left, BitVecConstant):
if left.value == 0:
return right
def visit_BitVecSub(self, expression, *operands):
''' a - 0 ==> 0
(a + b) - b ==> a
(b + a) - b ==> a
'''
left = expression.operands[0]
right = expression.operands[1]
if isinstance(left, BitVecAdd):
if self._same_constant(left.operands[0], right):
return left.operands[1]
elif self._same_constant(left.operands[1], right):
return left.operands[0]
def visit_BitVecOr(self, expression, *operands):
''' a | 0 => a
0 | a => a
0xffffffff & a => 0xffffffff
a & 0xffffffff => 0xffffffff
'''
left = expression.operands[0]
right = expression.operands[1]
if isinstance(right, BitVecConstant):
if right.value == 0:
return left
elif right.value == left.mask:
return right
elif isinstance(left, BitVecOr):
left_left = left.operands[0]
left_right = left.operands[1]
if isinstance(right, Constant):
return BitVecOr(left_left, (left_right | right), taint=expression.taint)
elif isinstance(left, BitVecConstant):
return BitVecOr(right, left, taint=expression.taint)
def visit_BitVecAnd(self, expression, *operands):
''' ct & x => x & ct move constants to the right
a & 0 => 0 remove zero
a & 0xffffffff => a remove full mask
(b & ct2) & ct => b & (ct&ct2) associative property
(a & (b | c) => a&b | a&c distribute over |
'''
left = expression.operands[0]
right = expression.operands[1]
if isinstance(right, BitVecConstant):
if right.value == 0:
return right
elif right.value == right.mask:
return left
elif isinstance(left, BitVecAnd):
left_left = left.operands[0]
left_right = left.operands[1]
if isinstance(right, Constant):
return BitVecAnd(left_left, left_right & right, taint=expression.taint)
elif isinstance(left, BitVecOr):
left_left = left.operands[0]
left_right = left.operands[1]
return BitVecOr(right & left_left, right & left_right, taint=expression.taint)
elif isinstance(left, BitVecConstant):
return BitVecAnd(right, left, taint=expression.taint)
def visit_BitVecShiftLeft(self, expression, *operands):
''' a << 0 => a remove zero
a << ct => 0 if ct > sizeof(a) remove big constant shift
'''
left = expression.operands[0]
right = expression.operands[1]
if isinstance(right, BitVecConstant):
if right.value == 0:
return left
elif right.value >= right.size:
return left
def visit_ArraySelect(self, expression, *operands):
''' ArraySelect (ArrayStore((ArrayStore(x0,v0) ...),xn, vn), x0)
-> v0
'''
arr, index = operands
if isinstance(arr, ArrayVariable):
return
if isinstance(index, BitVecConstant):
ival = index.value
# props are slow and using them in tight loops should be avoided, esp when they offer no additional validation
# arr._operands[1] = arr.index, arr._operands[0] = arr.array
while isinstance(arr, ArrayStore) and isinstance(arr._operands[1], BitVecConstant) and arr._operands[1]._value != ival:
arr = arr._operands[0] # arr.array
if isinstance(index, BitVecConstant) and isinstance(arr, ArrayStore) and isinstance(arr.index, BitVecConstant) and arr.index.value == index.value:
return arr.value
else:
if arr is not expression.array:
return arr.select(index)
def visit_Expression(self, expression, *operands):
assert len(operands) == 0
assert not isinstance(expression, Operation)
return expression
arithmetic_simplifier_cache = CacheDict(max_size=150000, flush_perc=25)
def to_constant(expression):
value = arithmetic_simplify(expression)
if isinstance(value, Constant):
return value.value
elif isinstance(value, Array):
if value.index_max:
ba = bytearray()
for i in range(value.index_max):
value_i = simplify(value[i])
if not isinstance(value_i, Constant):
break
ba.append(value_i.value)
else:
return ba
return value
class TranslatorSmtlib(Translator):
''' Simple visitor to translate an expression to its smtlib representation
'''
unique = 0
def __init__(self, use_bindings=False, *args, **kw):
assert 'bindings' not in kw
super().__init__(*args, **kw)
self.use_bindings = use_bindings
self._bindings_cache = {}
self._bindings = []
def _add_binding(self, expression, smtlib):
if not self.use_bindings or len(smtlib) <= 10:
return smtlib
if smtlib in self._bindings_cache:
return self._bindings_cache[smtlib]
TranslatorSmtlib.unique += 1
name = 'a_%d' % TranslatorSmtlib.unique
self._bindings.append((name, expression, smtlib))
self._bindings_cache[expression] = name
return name
translation_table = {
BoolNot: 'not',
BoolEq: '=',
BoolAnd: 'and',
BoolOr: 'or',
BoolXor: 'xor',
BoolITE: 'ite',
BitVecAdd: 'bvadd',
BitVecSub: 'bvsub',
BitVecMul: 'bvmul',
BitVecDiv: 'bvsdiv',
BitVecUnsignedDiv: 'bvudiv',
BitVecMod: 'bvsmod',
BitVecRem: 'bvsrem',
BitVecUnsignedRem: 'bvurem',
BitVecShiftLeft: 'bvshl',
BitVecShiftRight: 'bvlshr',
BitVecArithmeticShiftLeft: 'bvashl',
BitVecArithmeticShiftRight: 'bvashr',
BitVecAnd: 'bvand',
BitVecOr: 'bvor',
BitVecXor: 'bvxor',
BitVecNot: 'bvnot',
BitVecNeg: 'bvneg',
LessThan: 'bvslt',
LessOrEqual: 'bvsle',
Equal: '=',
GreaterThan: 'bvsgt',
GreaterOrEqual: 'bvsge',
UnsignedLessThan: 'bvult',
UnsignedLessOrEqual: 'bvule',
UnsignedGreaterThan: 'bvugt',
UnsignedGreaterOrEqual: 'bvuge',
BitVecSignExtend: '(_ sign_extend %d)',
BitVecZeroExtend: '(_ zero_extend %d)',
BitVecExtract: '(_ extract %d %d)',
BitVecConcat: 'concat',
BitVecITE: 'ite',
ArrayStore: 'store',
ArraySelect: 'select',
}
def visit_BitVecConstant(self, expression):
assert isinstance(expression, BitVecConstant)
if expression.size == 1:
return '#' + bin(expression.value & expression.mask)[1:]
else:
return '#x%0*x' % (int(expression.size / 4), expression.value & expression.mask)
def visit_BoolConstant(self, expression):
return expression.value and 'true' or 'false'
def visit_Variable(self, expression):
return expression.name
def visit_ArraySelect(self, expression, *operands):
array_smt, index_smt = operands
if isinstance(expression.array, ArrayStore):
array_smt = self._add_binding(expression.array, array_smt)
return '(select %s %s)' % (array_smt, index_smt)
def visit_Operation(self, expression, *operands):
operation = self.translation_table[type(expression)]
if isinstance(expression, (BitVecSignExtend, BitVecZeroExtend)):
operation = operation % expression.extend
elif isinstance(expression, BitVecExtract):
operation = operation % (expression.end, expression.begining)
operands = [self._add_binding(*x) for x in zip(expression.operands, operands)]
return '(%s %s)' % (operation, ' '.join(operands))
def translate_to_smtlib(expression, **kwargs):
translator = TranslatorSmtlib(**kwargs)
translator.visit(expression)
return translator.result
class Replace(Visitor):
''' Simple visitor to replaces expressions '''
def __init__(self, bindings=None, **kwargs):
super().__init__(**kwargs)
if bindings is None:
raise ValueError("bindings needed in replace")
self._replace_bindings = bindings
def visit_Variable(self, expression):
if expression in self._replace_bindings:
return self._replace_bindings[expression]
return expression
def replace(expression, bindings):
if not bindings:
return expression
visitor = Replace(bindings)
visitor.visit(expression, use_fixed_point=True)
result_expression = visitor.result
#for var in get_variables(result_expression):
# assert var not in bindings
return result_expression
def get_variables(expression):
visitor = GetDeclarations()
visitor.visit(expression)
return visitor.result
| [
6738,
285,
5109,
382,
13,
26791,
13,
16794,
364,
1330,
34088,
35,
713,
198,
6738,
764,
38011,
1330,
1635,
198,
6738,
1257,
310,
10141,
1330,
300,
622,
62,
23870,
198,
11748,
18931,
198,
11748,
10088,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
4871,
6911,
2072,
7,
15252,
2599,
198,
220,
220,
220,
705,
7061,
5016,
14,
6030,
6911,
2072,
628,
220,
220,
220,
220,
220,
220,
47025,
270,
534,
1398,
21493,
422,
428,
530,
290,
651,
1444,
319,
257,
1180,
198,
220,
220,
220,
220,
220,
220,
10013,
2163,
329,
1123,
2099,
286,
5408,
13,
632,
481,
869,
262,
717,
198,
220,
220,
220,
220,
220,
220,
9177,
2446,
329,
262,
11593,
76,
305,
834,
1398,
1502,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1114,
1672,
329,
257,
4722,
53,
721,
4550,
340,
481,
1949,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
13128,
53,
721,
4550,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
5447,
788,
340,
481,
1949,
351,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
13128,
53,
721,
32180,
3419,
220,
220,
220,
611,
407,
5447,
788,
340,
481,
1949,
351,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
13128,
53,
721,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
5447,
788,
340,
481,
1949,
351,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
32180,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
5447,
788,
340,
481,
1949,
351,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
16870,
2234,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
3819,
1398,
3706,
9692,
389,
25,
628,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
3103,
18797,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
43015,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
32180,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
13128,
53,
721,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
33,
970,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
19182,
3419,
628,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12940,
28,
14202,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25558,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
23870,
796,
23884,
611,
12940,
318,
6045,
2073,
12940,
628,
220,
220,
220,
825,
4574,
7,
944,
11,
1988,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1988,
318,
407,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25558,
13,
33295,
7,
8367,
8,
628,
220,
220,
220,
825,
1461,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
944,
13557,
25558,
8,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13557,
25558,
13,
12924,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
628,
220,
220,
220,
825,
4808,
24396,
7,
944,
11,
5408,
11,
1635,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
13409,
1339,
13,
10664,
284,
651,
262,
5576,
7197,
1079,
2196,
286,
262,
7177,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
38011,
11,
15690,
44148,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5408,
796,
5408,
13,
18747,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
5408,
13,
834,
4871,
834,
13,
834,
76,
305,
834,
58,
12,
16,
60,
318,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
329,
537,
82,
287,
5408,
13,
834,
4871,
834,
13,
834,
76,
305,
834,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3297,
796,
537,
82,
13,
834,
3672,
834,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
3672,
796,
705,
4703,
270,
62,
4,
82,
6,
4064,
3297,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
944,
11,
2446,
3672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
651,
35226,
7,
944,
11,
2446,
3672,
5769,
38011,
11,
1635,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
8367,
11,
41986,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
260,
11249,
7,
38011,
11,
26498,
8,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
10139,
11,
779,
62,
34021,
62,
4122,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
383,
5726,
966,
286,
262,
21493,
13,
198,
220,
220,
220,
220,
220,
220,
220,
383,
13936,
11862,
318,
257,
360,
10652,
1281,
12,
2875,
33038,
282,
198,
220,
220,
220,
220,
220,
220,
220,
383,
7822,
973,
734,
24285,
2427,
286,
257,
664,
24197,
198,
220,
220,
220,
220,
220,
220,
220,
383,
2457,
1255,
318,
3650,
287,
2116,
13,
20274,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
10139,
25,
19081,
284,
7301,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
10139,
25,
41986,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
779,
62,
34021,
62,
4122,
25,
611,
6407,
11,
340,
4539,
4808,
24396,
82,
1566,
257,
5969,
966,
318,
1043,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
779,
62,
34021,
62,
4122,
25,
347,
970,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
12940,
796,
2116,
13557,
23870,
198,
220,
220,
220,
220,
220,
220,
220,
8672,
796,
900,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
8931,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
8931,
13,
33295,
7,
17440,
8,
198,
220,
220,
220,
220,
220,
220,
220,
981,
8931,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10139,
796,
8931,
13,
12924,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
10139,
287,
12940,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14689,
7,
23870,
58,
17440,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
17440,
11,
14680,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
10139,
287,
8672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1515,
1746,
796,
685,
944,
13,
12924,
3419,
329,
4808,
287,
2837,
7,
11925,
7,
17440,
13,
3575,
1746,
4008,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2116,
13557,
24396,
7,
17440,
11,
1635,
3575,
1746,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8672,
13,
28956,
7,
17440,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14689,
7,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12940,
58,
17440,
60,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8672,
13,
2860,
7,
17440,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8931,
13,
33295,
7,
17440,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8931,
13,
2302,
437,
7,
17440,
13,
3575,
1746,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14689,
7,
944,
13557,
24396,
7,
17440,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
611,
779,
62,
34021,
62,
4122,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
8367,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
8367,
796,
2116,
13,
12924,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
1468,
62,
8367,
318,
407,
649,
62,
8367,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4703,
270,
7,
3605,
62,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1468,
62,
8367,
796,
649,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
8367,
796,
2116,
13,
12924,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14689,
7,
3605,
62,
8367,
8,
628,
198,
4871,
3602,
41880,
7,
15854,
2072,
2599,
198,
220,
220,
220,
705,
7061,
17427,
21493,
284,
15772,
281,
5408,
656,
1223,
2073,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
4808,
24396,
7,
944,
11,
5408,
11,
1635,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
13409,
1339,
13,
10664,
284,
651,
262,
5576,
7197,
1079,
2196,
286,
262,
7177,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
38011,
11,
15690,
44148,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5408,
796,
5408,
13,
18747,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
5408,
13,
834,
4871,
834,
13,
834,
76,
305,
834,
58,
12,
16,
60,
318,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
329,
537,
82,
287,
5408,
13,
834,
4871,
834,
13,
834,
76,
305,
834,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3297,
796,
537,
82,
13,
834,
3672,
834,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
3672,
796,
705,
4703,
270,
23330,
25,
82,
92,
4458,
18982,
7,
30619,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
944,
11,
2446,
3672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
651,
35226,
7,
944,
11,
2446,
3672,
5769,
38011,
11,
1635,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
35528,
7203,
2949,
11059,
329,
428,
23884,
1911,
18982,
7,
38011,
4008,
628,
198,
4871,
3497,
37835,
24355,
7,
15854,
2072,
2599,
198,
220,
220,
220,
705,
7061,
17427,
21493,
284,
2824,
477,
9633,
287,
281,
5408,
393,
900,
286,
198,
220,
220,
220,
220,
220,
220,
220,
14700,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25641,
2977,
796,
900,
3419,
628,
220,
220,
220,
825,
3187,
62,
43015,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25641,
2977,
13,
2860,
7,
38011,
8,
628,
198,
4871,
3497,
48791,
7,
8291,
41880,
2599,
198,
220,
220,
220,
705,
7061,
17427,
21493,
284,
2824,
477,
9633,
287,
281,
5408,
393,
900,
286,
198,
220,
220,
220,
220,
220,
220,
220,
14700,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
46491,
22046,
11,
12429,
46265,
22046,
8,
628,
220,
220,
220,
825,
3187,
62,
16870,
2234,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
352,
628,
220,
220,
220,
825,
3187,
62,
32180,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
352,
1343,
3509,
7,
3575,
1746,
8,
628,
198,
4299,
651,
62,
18053,
7,
11201,
2599,
198,
220,
220,
220,
21493,
796,
3497,
48791,
3419,
198,
220,
220,
220,
21493,
13,
4703,
270,
7,
11201,
8,
198,
220,
220,
220,
1441,
21493,
13,
20274,
628,
198,
4871,
20090,
6836,
3849,
7,
15854,
2072,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
6795,
28,
14202,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22915,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
521,
298,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18053,
796,
6795,
628,
220,
220,
220,
825,
4808,
4798,
7,
944,
11,
264,
11,
304,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22915,
15853,
705,
705,
1635,
2116,
13,
521,
298,
1343,
965,
7,
82,
8,
220,
1303,
1343,
29513,
4,
27037,
87,
33047,
4,
17831,
7,
68,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22915,
15853,
705,
59,
77,
6,
628,
220,
220,
220,
825,
3187,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
3827,
2220,
6911,
2072,
13,
4703,
270,
780,
25,
198,
220,
220,
220,
220,
220,
220,
220,
532,
775,
761,
257,
662,
12,
2875,
33038,
282,
198,
220,
220,
220,
220,
220,
220,
220,
532,
775,
779,
257,
664,
24197,
355,
340,
1838,
340,
4577,
284,
1394,
2610,
286,
262,
33793,
341,
628,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
24396,
7,
38011,
8,
628,
220,
220,
220,
825,
4808,
24396,
7,
944,
11,
5408,
11,
1635,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
3827,
2220,
6911,
2072,
13557,
24396,
780,
356,
765,
284,
2245,
284,
11629,
378,
625,
262,
198,
220,
220,
220,
220,
220,
220,
220,
3187,
62,
5499,
355,
2582,
355,
257,
4938,
3187,
62,
2163,
318,
1043,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
5408,
13,
834,
4871,
834,
13,
834,
76,
305,
834,
58,
12,
16,
60,
318,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
329,
537,
82,
287,
5408,
13,
834,
4871,
834,
13,
834,
76,
305,
834,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3297,
796,
537,
82,
13,
834,
3672,
834,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
3672,
796,
705,
4703,
270,
62,
4,
82,
6,
4064,
3297,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
796,
651,
35226,
7,
944,
11,
2446,
3672,
11,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2446,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
7,
38011,
11,
1635,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
825,
3187,
62,
32180,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
4798,
7,
38011,
13,
834,
4871,
834,
13,
834,
3672,
834,
11,
5408,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
521,
298,
15853,
362,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
18053,
318,
6045,
393,
2116,
13,
521,
298,
1279,
2116,
13,
18053,
1635,
362,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
267,
287,
5408,
13,
3575,
1746,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4703,
270,
7,
78,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
4798,
10786,
986,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
521,
298,
48185,
362,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10148,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
11627,
974,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
4798,
7,
38011,
13,
834,
4871,
834,
13,
834,
3672,
834,
1343,
705,
90,
4,
67,
25,
4,
67,
92,
6,
4064,
357,
38011,
13,
27471,
278,
11,
5408,
13,
437,
828,
5408,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
521,
298,
15853,
362,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
18053,
318,
6045,
393,
2116,
13,
521,
298,
1279,
2116,
13,
18053,
1635,
362,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
267,
287,
5408,
13,
3575,
1746,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4703,
270,
7,
78,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
4798,
10786,
986,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
521,
298,
48185,
362,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10148,
628,
220,
220,
220,
825,
3187,
62,
3103,
18797,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
4798,
7,
38011,
13,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10148,
628,
220,
220,
220,
825,
3187,
62,
43015,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
4798,
7,
38011,
13,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10148,
628,
198,
4299,
2495,
62,
4798,
7,
38011,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
611,
407,
318,
39098,
7,
38011,
11,
41986,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
965,
7,
38011,
8,
198,
220,
220,
220,
9788,
796,
20090,
6836,
3849,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
9788,
13,
4703,
270,
7,
38011,
8,
198,
220,
220,
220,
1441,
9788,
13,
20274,
628,
198,
4871,
20217,
41092,
8890,
489,
7483,
7,
15854,
2072,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1174,
46265,
8,
628,
220,
220,
220,
4560,
796,
1391,
13128,
53,
721,
4550,
25,
10088,
13,
834,
2860,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
7004,
25,
10088,
13,
834,
7266,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
44,
377,
25,
10088,
13,
834,
76,
377,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
24095,
25,
10088,
13,
834,
83,
21556,
452,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
33377,
18819,
25,
10088,
13,
834,
75,
30846,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
33377,
11028,
25,
10088,
13,
834,
81,
30846,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
1870,
25,
10088,
13,
834,
392,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
5574,
25,
10088,
13,
834,
273,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
55,
273,
25,
10088,
13,
834,
87,
273,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3673,
25,
10088,
13,
834,
1662,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
32863,
25,
10088,
13,
834,
259,
1851,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12892,
817,
272,
25,
10088,
13,
834,
2528,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12892,
5574,
36,
13255,
25,
10088,
13,
834,
293,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28701,
25,
10088,
13,
834,
27363,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18169,
817,
272,
25,
10088,
13,
834,
13655,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18169,
5574,
36,
13255,
25,
10088,
13,
834,
469,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
970,
1870,
25,
10088,
13,
834,
392,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
970,
5574,
25,
10088,
13,
834,
273,
834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
970,
3673,
25,
10088,
13,
834,
1662,
834,
92,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
3103,
9246,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
477,
7,
271,
39098,
7,
78,
11,
20217,
8,
329,
267,
287,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
267,
287,
1515,
1746,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
9959,
28,
267,
13,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
930,
28,
267,
13,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
3103,
18797,
7,
38011,
13,
7857,
11,
1255,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
28667,
11627,
437,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
477,
7,
271,
39098,
7,
78,
11,
20217,
8,
329,
267,
287,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
3103,
18797,
7,
38011,
13,
7857,
11,
1515,
1746,
58,
15,
4083,
8367,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
11712,
11627,
437,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5408,
13,
2302,
437,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1515,
1746,
58,
15,
60,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
11627,
974,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
477,
7,
271,
39098,
7,
78,
11,
20217,
8,
329,
267,
287,
5408,
13,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
5408,
13,
3575,
1746,
58,
15,
4083,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2221,
278,
796,
5408,
13,
27471,
278,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
796,
5408,
13,
437,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
9609,
2221,
278,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9335,
796,
362,
1174,
7,
437,
532,
2221,
278,
1343,
352,
8,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
1222,
9335,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
3103,
18797,
7,
38011,
13,
7857,
11,
1988,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
33,
970,
1870,
7,
944,
11,
5408,
11,
257,
11,
275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
64,
11,
20217,
8,
290,
257,
13,
8367,
6624,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
65,
11,
20217,
8,
290,
275,
13,
8367,
6624,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
257,
628,
220,
220,
220,
825,
3187,
62,
33,
970,
5574,
7,
944,
11,
5408,
11,
257,
11,
275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
64,
11,
20217,
8,
290,
257,
13,
8367,
6624,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
275,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
65,
11,
20217,
8,
290,
275,
13,
8367,
6624,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
257,
628,
220,
220,
220,
825,
3187,
62,
32180,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
6937,
29909,
11,
611,
477,
1515,
1746,
286,
281,
5408,
389,
257,
20217,
466,
262,
10688,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
4905,
796,
2116,
13,
3575,
602,
13,
1136,
7,
4906,
7,
38011,
828,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4905,
318,
407,
6045,
290,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
7,
271,
39098,
7,
78,
11,
20217,
8,
329,
267,
287,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
4905,
46491,
7,
87,
13,
8367,
329,
2124,
287,
1515,
1746,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
38011,
11,
4722,
53,
721,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
3103,
18797,
7,
38011,
13,
7857,
11,
1988,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
39098,
7,
38011,
11,
347,
970,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
347,
970,
3103,
18797,
7,
8367,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
597,
7,
3575,
1746,
58,
72,
60,
318,
407,
5408,
13,
3575,
1746,
58,
72,
60,
329,
1312,
287,
2837,
7,
11925,
7,
3575,
1746,
4008,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5408,
796,
2116,
13557,
260,
11249,
7,
38011,
11,
1515,
1746,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
628,
198,
9979,
415,
62,
43551,
62,
14323,
489,
7483,
62,
23870,
796,
34088,
35,
713,
7,
9806,
62,
7857,
28,
1314,
2388,
11,
24773,
62,
525,
66,
28,
1495,
8,
628,
198,
198,
4871,
943,
29848,
8890,
489,
7483,
7,
15854,
2072,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2560,
28,
14202,
11,
12429,
46265,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1174,
46265,
8,
628,
220,
220,
220,
825,
3187,
62,
32180,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
6937,
29909,
11,
611,
477,
1515,
1746,
286,
281,
5408,
389,
257,
20217,
466,
262,
10688,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
611,
477,
7,
271,
39098,
7,
78,
11,
20217,
8,
329,
267,
287,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5408,
796,
6937,
62,
43551,
7,
38011,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
40985,
7,
38011,
11,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5408,
796,
2116,
13557,
260,
11249,
7,
38011,
11,
1515,
1746,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
28667,
11627,
437,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
40985,
7,
38011,
11,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
28667,
11627,
437,
7,
38011,
13,
7857,
11,
1635,
3575,
1746,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
12709,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
38011,
13,
3575,
1746,
58,
15,
4357,
20217,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5408,
13,
3575,
1746,
58,
15,
4083,
8367,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
5408,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
5408,
13,
3575,
1746,
58,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
4866,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
4866,
13,
30073,
7,
20274,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
13557,
83,
2913,
930,
28,
5408,
13,
3575,
1746,
58,
15,
4083,
83,
2913,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
40985,
7,
38011,
11,
1515,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
12709,
7,
38011,
13,
7857,
11,
1635,
3575,
1746,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
11627,
974,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
7925,
7,
7857,
1659,
7,
64,
828,
657,
5769,
64,
8,
220,
6624,
29,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7925,
7,
1433,
11,
657,
5769,
1673,
265,
7,
64,
11,
65,
11,
66,
11,
67,
8,
1267,
5218,
1673,
265,
7,
66,
11,
288,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7925,
7,
76,
11,
44,
5769,
392,
14,
273,
14,
87,
273,
257,
275,
1267,
5218,
290,
14,
273,
14,
87,
273,
19510,
2302,
974,
7,
76,
11,
44,
8,
257,
8,
357,
2302,
974,
7,
76,
11,
44,
8,
257,
8,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1034,
796,
5408,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2221,
278,
796,
5408,
13,
27471,
278,
198,
220,
220,
220,
220,
220,
220,
220,
886,
796,
5408,
13,
437,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
7925,
7,
7857,
1659,
7,
64,
828,
657,
5769,
64,
8,
220,
6624,
29,
257,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2221,
278,
6624,
657,
290,
886,
1343,
352,
6624,
1034,
13,
7857,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1034,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
404,
11,
4722,
53,
721,
3103,
9246,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
3575,
1746,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1643,
9127,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
17687,
7,
404,
13,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2221,
278,
18189,
2378,
13,
7857,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2221,
278,
48185,
2378,
13,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1643,
9127,
1279,
5408,
13,
7857,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
3575,
1746,
13,
33295,
7,
9186,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1643,
9127,
15853,
2378,
13,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2221,
278,
14512,
5408,
13,
27471,
278,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
11627,
974,
7,
13128,
53,
721,
3103,
9246,
7,
16345,
26933,
87,
13,
7857,
329,
2124,
287,
649,
62,
3575,
1746,
46570,
1635,
260,
690,
276,
7,
3605,
62,
3575,
1746,
36911,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2221,
278,
11,
5408,
13,
7857,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
404,
11,
357,
13128,
53,
721,
1870,
11,
4722,
53,
721,
5574,
11,
4722,
53,
721,
55,
273,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1643,
3575,
392,
62,
64,
11,
1643,
3575,
392,
62,
65,
796,
1034,
13,
3575,
1746,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1034,
13,
834,
4871,
834,
7,
13128,
53,
721,
11627,
974,
7,
2545,
3575,
392,
62,
64,
11,
2221,
278,
11,
5408,
13,
7857,
828,
4722,
53,
721,
11627,
974,
7,
2545,
3575,
392,
62,
65,
11,
2221,
278,
11,
5408,
13,
7857,
828,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
4550,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
257,
1343,
657,
220,
6624,
29,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
1343,
257,
220,
6624,
29,
257,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
796,
5408,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
826,
796,
5408,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3506,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
826,
13,
8367,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
9464,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1364,
13,
8367,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
826,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
7004,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
257,
532,
657,
6624,
29,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
64,
1343,
275,
8,
532,
275,
220,
6624,
29,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
65,
1343,
257,
8,
532,
275,
220,
6624,
29,
257,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
796,
5408,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
826,
796,
5408,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
9464,
11,
4722,
53,
721,
4550,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
31642,
62,
9979,
415,
7,
9464,
13,
3575,
1746,
58,
15,
4357,
826,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13557,
31642,
62,
9979,
415,
7,
9464,
13,
3575,
1746,
58,
16,
4357,
826,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
13,
3575,
1746,
58,
15,
60,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
5574,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
257,
930,
657,
5218,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
930,
257,
5218,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
657,
87,
12927,
12927,
1222,
257,
5218,
657,
87,
12927,
12927,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
1222,
657,
87,
12927,
12927,
5218,
657,
87,
12927,
12927,
628,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
796,
5408,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
826,
796,
5408,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3506,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
826,
13,
8367,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
826,
13,
8367,
6624,
1364,
13,
27932,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
9464,
11,
4722,
53,
721,
5574,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1364,
62,
9464,
796,
1364,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1364,
62,
3506,
796,
1364,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3506,
11,
20217,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
5574,
7,
9464,
62,
9464,
11,
357,
9464,
62,
3506,
930,
826,
828,
256,
2913,
28,
38011,
13,
83,
2913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
9464,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
5574,
7,
3506,
11,
1364,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
1870,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
269,
83,
1222,
2124,
5218,
2124,
1222,
269,
83,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1445,
38491,
284,
262,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
1222,
657,
5218,
657,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4781,
6632,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
1222,
657,
87,
12927,
12927,
5218,
257,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4781,
1336,
9335,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
65,
1222,
269,
83,
17,
8,
1222,
269,
83,
5218,
275,
1222,
357,
310,
5,
310,
17,
8,
220,
2570,
876,
3119,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
64,
1222,
357,
65,
930,
269,
8,
5218,
257,
5,
65,
930,
257,
5,
66,
220,
220,
220,
220,
220,
220,
14983,
625,
930,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
796,
5408,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
826,
796,
5408,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3506,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
826,
13,
8367,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
826,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
826,
13,
8367,
6624,
826,
13,
27932,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
9464,
11,
4722,
53,
721,
1870,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1364,
62,
9464,
796,
1364,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1364,
62,
3506,
796,
1364,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3506,
11,
20217,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
1870,
7,
9464,
62,
9464,
11,
1364,
62,
3506,
1222,
826,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
9464,
11,
4722,
53,
721,
5574,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1364,
62,
9464,
796,
1364,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1364,
62,
3506,
796,
1364,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
5574,
7,
3506,
1222,
1364,
62,
9464,
11,
826,
1222,
1364,
62,
3506,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
9464,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4722,
53,
721,
1870,
7,
3506,
11,
1364,
11,
256,
2913,
28,
38011,
13,
83,
2913,
8,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
33377,
18819,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
257,
9959,
657,
5218,
257,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4781,
6632,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
9959,
269,
83,
5218,
657,
611,
269,
83,
1875,
39364,
7,
64,
8,
220,
220,
220,
4781,
1263,
6937,
6482,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1364,
796,
5408,
13,
3575,
1746,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
826,
796,
5408,
13,
3575,
1746,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3506,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
826,
13,
8367,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
826,
13,
8367,
18189,
826,
13,
7857,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1364,
628,
220,
220,
220,
825,
3187,
62,
19182,
17563,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
15690,
17563,
357,
19182,
22658,
19510,
19182,
22658,
7,
87,
15,
11,
85,
15,
8,
2644,
828,
87,
77,
11,
410,
77,
828,
2124,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4613,
410,
15,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
5240,
11,
6376,
796,
1515,
1746,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
3258,
11,
15690,
43015,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
9630,
11,
4722,
53,
721,
3103,
18797,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2473,
796,
6376,
13,
8367,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
25744,
389,
3105,
290,
1262,
606,
287,
5381,
23607,
815,
307,
13941,
11,
15024,
618,
484,
2897,
645,
3224,
21201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5240,
13557,
3575,
1746,
58,
16,
60,
796,
5240,
13,
9630,
11,
5240,
13557,
3575,
1746,
58,
15,
60,
796,
5240,
13,
18747,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
318,
39098,
7,
3258,
11,
15690,
22658,
8,
290,
318,
39098,
7,
3258,
13557,
3575,
1746,
58,
16,
4357,
4722,
53,
721,
3103,
18797,
8,
290,
5240,
13557,
3575,
1746,
58,
16,
4083,
62,
8367,
14512,
220,
2473,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5240,
796,
5240,
13557,
3575,
1746,
58,
15,
60,
220,
1303,
5240,
13,
18747,
628,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
9630,
11,
4722,
53,
721,
3103,
18797,
8,
290,
318,
39098,
7,
3258,
11,
15690,
22658,
8,
290,
318,
39098,
7,
3258,
13,
9630,
11,
4722,
53,
721,
3103,
18797,
8,
290,
5240,
13,
9630,
13,
8367,
6624,
6376,
13,
8367,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
5240,
13,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5240,
318,
407,
5408,
13,
18747,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
5240,
13,
19738,
7,
9630,
8,
628,
220,
220,
220,
825,
3187,
62,
16870,
2234,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
18896,
7,
3575,
1746,
8,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
407,
318,
39098,
7,
38011,
11,
14680,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
628,
198,
283,
29848,
62,
14323,
489,
7483,
62,
23870,
796,
34088,
35,
713,
7,
9806,
62,
7857,
28,
1314,
2388,
11,
24773,
62,
525,
66,
28,
1495,
8,
628,
198,
198,
4299,
284,
62,
9979,
415,
7,
38011,
2599,
198,
220,
220,
220,
1988,
796,
34768,
62,
14323,
489,
1958,
7,
38011,
8,
198,
220,
220,
220,
611,
318,
39098,
7,
8367,
11,
20217,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1988,
13,
8367,
198,
220,
220,
220,
1288,
361,
318,
39098,
7,
8367,
11,
15690,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
13,
9630,
62,
9806,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26605,
796,
416,
83,
451,
2433,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
8367,
13,
9630,
62,
9806,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
62,
72,
796,
30276,
7,
8367,
58,
72,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
318,
39098,
7,
8367,
62,
72,
11,
20217,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26605,
13,
33295,
7,
8367,
62,
72,
13,
8367,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
26605,
198,
220,
220,
220,
1441,
1988,
628,
198,
198,
4871,
3602,
41880,
7556,
83,
8019,
7,
8291,
41880,
2599,
198,
220,
220,
220,
705,
7061,
17427,
21493,
284,
15772,
281,
5408,
284,
663,
895,
83,
8019,
10552,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
3748,
796,
657,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
779,
62,
21653,
654,
28,
25101,
11,
1635,
22046,
11,
12429,
46265,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
705,
21653,
654,
6,
407,
287,
479,
86,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
46491,
22046,
11,
12429,
46265,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1904,
62,
21653,
654,
796,
779,
62,
21653,
654,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
21653,
654,
62,
23870,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
21653,
654,
796,
17635,
628,
220,
220,
220,
825,
4808,
2860,
62,
30786,
7,
944,
11,
5408,
11,
895,
83,
8019,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
1904,
62,
21653,
654,
393,
18896,
7,
5796,
83,
8019,
8,
19841,
838,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
895,
83,
8019,
628,
220,
220,
220,
220,
220,
220,
220,
611,
895,
83,
8019,
287,
2116,
13557,
21653,
654,
62,
23870,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
21653,
654,
62,
23870,
58,
5796,
83,
8019,
60,
628,
220,
220,
220,
220,
220,
220,
220,
3602,
41880,
7556,
83,
8019,
13,
34642,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
705,
64,
62,
4,
67,
6,
4064,
3602,
41880,
7556,
83,
8019,
13,
34642,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
21653,
654,
13,
33295,
19510,
3672,
11,
5408,
11,
895,
83,
8019,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
21653,
654,
62,
23870,
58,
38011,
60,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1438,
628,
220,
220,
220,
11059,
62,
11487,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
347,
970,
3673,
25,
705,
1662,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
347,
970,
36,
80,
25,
705,
28,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
347,
970,
1870,
25,
705,
392,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
347,
970,
5574,
25,
705,
273,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
347,
970,
55,
273,
25,
705,
87,
273,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
347,
970,
12709,
25,
705,
578,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
4550,
25,
705,
65,
85,
2860,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
7004,
25,
705,
65,
85,
7266,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
44,
377,
25,
705,
65,
14761,
377,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
24095,
25,
705,
65,
14259,
7146,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3118,
32696,
24095,
25,
705,
65,
85,
463,
452,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
5841,
25,
705,
65,
14259,
4666,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
8413,
25,
705,
65,
14259,
2787,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3118,
32696,
8413,
25,
705,
65,
85,
495,
76,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
33377,
18819,
25,
705,
65,
85,
1477,
75,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
33377,
11028,
25,
705,
65,
19279,
36007,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3163,
29848,
33377,
18819,
25,
705,
65,
85,
1077,
75,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3163,
29848,
33377,
11028,
25,
705,
65,
85,
1077,
81,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
1870,
25,
705,
65,
85,
392,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
5574,
25,
705,
65,
20867,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
55,
273,
25,
705,
65,
85,
87,
273,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3673,
25,
705,
65,
85,
1662,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
32863,
25,
705,
65,
85,
12480,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
12892,
817,
272,
25,
705,
65,
14259,
2528,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
12892,
5574,
36,
13255,
25,
705,
65,
14259,
293,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
28701,
25,
705,
28,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
18169,
817,
272,
25,
705,
65,
14259,
13655,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
18169,
5574,
36,
13255,
25,
705,
65,
14259,
469,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
791,
32696,
22058,
817,
272,
25,
705,
65,
85,
586,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
791,
32696,
22058,
5574,
36,
13255,
25,
705,
65,
85,
2261,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
791,
32696,
13681,
263,
817,
272,
25,
705,
65,
85,
1018,
83,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
791,
32696,
13681,
263,
5574,
36,
13255,
25,
705,
65,
85,
2217,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
11712,
11627,
437,
25,
705,
28264,
1051,
62,
2302,
437,
4064,
67,
8,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
28667,
11627,
437,
25,
705,
28264,
6632,
62,
2302,
437,
4064,
67,
8,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
11627,
974,
25,
705,
28264,
7925,
4064,
67,
4064,
67,
8,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
3103,
9246,
25,
705,
1102,
9246,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4722,
53,
721,
12709,
25,
705,
578,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
15690,
22658,
25,
705,
8095,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
15690,
17563,
25,
705,
19738,
3256,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
825,
3187,
62,
13128,
53,
721,
3103,
18797,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
38011,
11,
4722,
53,
721,
3103,
18797,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5408,
13,
7857,
6624,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
2,
6,
1343,
9874,
7,
38011,
13,
8367,
1222,
5408,
13,
27932,
38381,
16,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
2,
87,
4,
15,
9,
87,
6,
4064,
357,
600,
7,
38011,
13,
7857,
1220,
604,
828,
5408,
13,
8367,
1222,
5408,
13,
27932,
8,
628,
220,
220,
220,
825,
3187,
62,
33,
970,
3103,
18797,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
13,
8367,
290,
705,
7942,
6,
393,
705,
9562,
6,
628,
220,
220,
220,
825,
3187,
62,
43015,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
13,
3672,
628,
220,
220,
220,
825,
3187,
62,
19182,
17563,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
5796,
83,
11,
6376,
62,
5796,
83,
796,
1515,
1746,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
38011,
13,
18747,
11,
15690,
22658,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7177,
62,
5796,
83,
796,
2116,
13557,
2860,
62,
30786,
7,
38011,
13,
18747,
11,
7177,
62,
5796,
83,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
29513,
19738,
4064,
82,
4064,
82,
33047,
4064,
357,
18747,
62,
5796,
83,
11,
6376,
62,
5796,
83,
8,
628,
220,
220,
220,
825,
3187,
62,
32180,
7,
944,
11,
5408,
11,
1635,
3575,
1746,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4905,
796,
2116,
13,
41519,
62,
11487,
58,
4906,
7,
38011,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
38011,
11,
357,
13128,
53,
721,
11712,
11627,
437,
11,
4722,
53,
721,
28667,
11627,
437,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4905,
796,
4905,
4064,
5408,
13,
2302,
437,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
38011,
11,
4722,
53,
721,
11627,
974,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4905,
796,
4905,
4064,
357,
38011,
13,
437,
11,
5408,
13,
27471,
278,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1515,
1746,
796,
685,
944,
13557,
2860,
62,
30786,
46491,
87,
8,
329,
2124,
287,
19974,
7,
38011,
13,
3575,
1746,
11,
1515,
1746,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
29513,
4,
82,
4064,
82,
33047,
4064,
357,
27184,
11,
705,
45302,
22179,
7,
3575,
1746,
4008,
628,
198,
4299,
15772,
62,
1462,
62,
5796,
83,
8019,
7,
38011,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
33417,
796,
3602,
41880,
7556,
83,
8019,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
33417,
13,
4703,
270,
7,
38011,
8,
198,
220,
220,
220,
1441,
33417,
13,
20274,
628,
198,
4871,
40177,
7,
15854,
2072,
2599,
198,
220,
220,
220,
705,
7061,
17427,
21493,
284,
24020,
14700,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
34111,
28,
14202,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
34111,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
21653,
654,
2622,
287,
6330,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
33491,
62,
21653,
654,
796,
34111,
628,
220,
220,
220,
825,
3187,
62,
43015,
7,
944,
11,
5408,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5408,
287,
2116,
13557,
33491,
62,
21653,
654,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
33491,
62,
21653,
654,
58,
38011,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
628,
198,
4299,
6330,
7,
38011,
11,
34111,
2599,
198,
220,
220,
220,
611,
407,
34111,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5408,
198,
220,
220,
220,
21493,
796,
40177,
7,
21653,
654,
8,
198,
220,
220,
220,
21493,
13,
4703,
270,
7,
38011,
11,
779,
62,
34021,
62,
4122,
28,
17821,
8,
198,
220,
220,
220,
1255,
62,
38011,
796,
21493,
13,
20274,
628,
220,
220,
220,
1303,
1640,
1401,
287,
651,
62,
25641,
2977,
7,
20274,
62,
38011,
2599,
198,
220,
220,
220,
1303,
220,
220,
220,
6818,
1401,
407,
287,
34111,
628,
220,
220,
220,
1441,
1255,
62,
38011,
628,
198,
4299,
651,
62,
25641,
2977,
7,
38011,
2599,
198,
220,
220,
220,
21493,
796,
3497,
37835,
24355,
3419,
198,
220,
220,
220,
21493,
13,
4703,
270,
7,
38011,
8,
198,
220,
220,
220,
1441,
21493,
13,
20274,
198
] | 2.150023 | 10,805 |
from django import urls
from django.conf.urls import include, url
from django.contrib.auth.forms import AdminPasswordChangeForm
from django.urls import path
from .views import *
urlpatterns = [
path(r'user/<str:usr>/', accountView),
path('register_/', register_),
]
| [
6738,
42625,
14208,
1330,
2956,
7278,
198,
6738,
42625,
14208,
13,
10414,
13,
6371,
82,
1330,
2291,
11,
19016,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
23914,
1330,
32053,
35215,
19400,
8479,
198,
6738,
42625,
14208,
13,
6371,
82,
1330,
3108,
198,
6738,
764,
33571,
1330,
1635,
198,
198,
6371,
33279,
82,
796,
685,
198,
220,
220,
220,
3108,
7,
81,
6,
7220,
14,
27,
2536,
25,
14629,
29,
14,
3256,
1848,
7680,
828,
198,
220,
220,
220,
3108,
10786,
30238,
62,
14,
3256,
7881,
62,
828,
220,
220,
220,
220,
198,
198,
60,
198
] | 2.857143 | 98 |
# -*- coding: utf-8 -*-
"""try:
import jieba
except:
print("please install jieba first.")
input("press any key to continue")
quit()"""
def chchat(a):
import jieba
v=False
#if a=="quit" or a=="exit" or a=="退出" or a=="再见":
# import os
# exit()#Error
list1=jieba.lcut(a)#jieba分词
#print(list1)#Debug
i=0
b=""
if list1[i]=="你好":
return(a)
else:
for i in range(len(list1)):
if list1[i]=="你":
list1[i]="我"
elif list1[i]=="我":
list1[i]="你"
elif list1[i]=="几":
import random
v=True
'''for r in range(len(ni)):#'你'换成'我'
list1[r]="我"
for i in range(len(wo)):#'我'换成'你'
list1[i]="你"'''
for i in range(len(list1)):
b=b+list1[i]
if v==True:
return(random.randint(-10,2000))
else:
return((b.replace("吗","").replace("?","!")).replace("?","!")) | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
28311,
25,
198,
220,
220,
220,
1330,
474,
494,
7012,
198,
16341,
25,
198,
220,
220,
220,
3601,
7203,
29688,
2721,
474,
494,
7012,
717,
19570,
198,
220,
220,
220,
5128,
7203,
8439,
597,
1994,
284,
2555,
4943,
198,
220,
220,
220,
11238,
3419,
37811,
198,
4299,
442,
17006,
7,
64,
2599,
198,
220,
220,
220,
1330,
474,
494,
7012,
198,
220,
220,
220,
410,
28,
25101,
198,
220,
220,
220,
1303,
361,
257,
855,
1,
47391,
1,
393,
257,
855,
1,
37023,
1,
393,
257,
855,
1,
34460,
222,
49035,
118,
1,
393,
257,
855,
1,
37863,
235,
164,
100,
223,
1298,
198,
220,
220,
220,
220,
1303,
220,
220,
1330,
28686,
198,
220,
220,
220,
220,
220,
1303,
220,
8420,
3419,
2,
12331,
198,
220,
220,
220,
1351,
16,
28,
73,
494,
7012,
13,
75,
8968,
7,
64,
8,
2,
73,
494,
7012,
26344,
228,
46237,
235,
198,
220,
220,
220,
1303,
4798,
7,
4868,
16,
8,
2,
27509,
198,
220,
220,
220,
1312,
28,
15,
198,
220,
220,
220,
275,
33151,
198,
220,
220,
198,
220,
220,
220,
611,
1351,
16,
58,
72,
60,
855,
1,
19526,
254,
25001,
121,
1298,
198,
220,
220,
220,
220,
220,
220,
1441,
7,
64,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
4868,
16,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1351,
16,
58,
72,
60,
855,
1,
19526,
254,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
16,
58,
72,
60,
2625,
22755,
239,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1351,
16,
58,
72,
60,
855,
1,
22755,
239,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
16,
58,
72,
60,
2625,
19526,
254,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1351,
16,
58,
72,
60,
855,
1,
49035,
254,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
4738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
28,
17821,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
1640,
374,
287,
2837,
7,
11925,
7,
8461,
8,
2599,
2,
6,
19526,
254,
6,
162,
235,
95,
22755,
238,
6,
22755,
239,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
16,
58,
81,
60,
2625,
22755,
239,
1,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
21638,
8,
2599,
2,
6,
22755,
239,
6,
162,
235,
95,
22755,
238,
6,
19526,
254,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
16,
58,
72,
60,
2625,
19526,
254,
1,
7061,
6,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
4868,
16,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
28,
65,
10,
4868,
16,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
410,
855,
17821,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
7,
25120,
13,
25192,
600,
32590,
940,
11,
11024,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
19510,
65,
13,
33491,
7203,
28938,
245,
2430,
11074,
33491,
7203,
1701,
553,
2474,
29720,
33491,
7203,
171,
120,
253,
2430,
171,
120,
223,
48774
] | 1.576507 | 647 |
"""
This is the C{admin.py} file for C{map_annotate_app}.
For more details, see the documentation for C{map_annotate_app}.
"""
from django.contrib import admin
from .models import Crime
from .models import CrimeType
from .models import Location
from .models import Sansad
admin.site.register(Location)
admin.site.register(Crime)
admin.site.register(CrimeType)
admin.site.register(Sansad)
| [
37811,
198,
1212,
318,
262,
327,
90,
28482,
13,
9078,
92,
2393,
329,
327,
90,
8899,
62,
34574,
378,
62,
1324,
27422,
198,
1890,
517,
3307,
11,
766,
262,
10314,
329,
327,
90,
8899,
62,
34574,
378,
62,
1324,
27422,
198,
37811,
198,
198,
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
198,
6738,
764,
27530,
1330,
10003,
198,
6738,
764,
27530,
1330,
10003,
6030,
198,
6738,
764,
27530,
1330,
13397,
198,
6738,
764,
27530,
1330,
20845,
324,
198,
198,
28482,
13,
15654,
13,
30238,
7,
14749,
8,
198,
28482,
13,
15654,
13,
30238,
7,
45580,
8,
198,
28482,
13,
15654,
13,
30238,
7,
45580,
6030,
8,
198,
28482,
13,
15654,
13,
30238,
7,
50,
504,
324,
8,
198
] | 3.258333 | 120 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018, University of California, Berkeley
# author: Kevin Laeufer <laeufer@cs.berkeley.edu>
from collections import defaultdict
class Symbol:
def __init__(self, name, bold=False):
self.name = name
self._bold = bold
def __str__(self):
if self._bold:
return f"\033[1m{self.name}\033[0m"
else:
return f"{self.name}"
def __repr__(self):
return self.name
class NonTerminal(Symbol):
def __init__(self, name):
super().__init__(name, bold=True)
class Terminal(Symbol):
def __init__(self, name):
super().__init__(name)
class Epsilon(Terminal):
def __init__(self):
super().__init__("ε")
class Rule:
def __init__(self, lhs, rhs):
assert isinstance(lhs, NonTerminal)
assert isinstance(rhs, list)
assert all(isinstance(sym, Symbol) for sym in rhs)
self.lhs = lhs
self.rhs = rhs
def __getitem__(self, item):
if item not in {0, 1}:
raise IndexError(item)
if item == 0:
return self.lhs
else:
return self.rhs
def __str__(self):
return f"{self.lhs} -> {''.join(str(sym) for sym in self.rhs)}"
def __repr__(self):
return str(self)
class Grammar:
def __init__(self):
self._syms = [Epsilon(), Terminal('$')]
self._rules = []
self._root = None
def _make_syms(self, Type, names):
syms = [Type(name) for name in names]
self._syms += syms
return syms
def non_terminal(self, *names):
return self._make_syms(NonTerminal, names)
def terminal(self, *names):
return self._make_syms(Terminal, names)
def epsilon(self):
return self._syms[0]
def eof(self):
return self._syms[1]
def r(self, lhs, rhs):
if len(rhs) < 1: rhs = [self.epsilon()]
if self._root is None:
self._root = lhs # by convention
self._rules.append(Rule(lhs, rhs))
def first(self, sym):
assert isinstance(sym, Symbol), f"{sym} : {type(sym)}"
#print(f"FIRST({sym})")
if isinstance(sym, Terminal):
return {sym}
_first = set()
for lhs, rhs in self._rules:
if lhs != sym:
continue
annullable = True
for s in rhs:
if s == sym:
annullable = False
break
s_first = self.first(s)
s_annullable = self.epsilon() in s_first
_first = _first | (s_first - {self.epsilon()})
if not s_annullable:
annullable = False
break
if annullable:
_first |= {self.epsilon()}
return _first
def follow(self, non_term):
assert isinstance(non_term, NonTerminal)
_follow = set()
for lhs, rhs in self._rules:
if non_term not in rhs:
continue
for ii, sym in enumerate(rhs):
if sym != non_term:
continue
# scan following symbols
followed_by_annulable = True
for ff in rhs[ii+1:]:
_first = self.first(ff)
_follow |= (_first - {self.epsilon()})
if self.epsilon() not in _first:
followed_by_annulable = False
break
if followed_by_annulable:
_follow |= self.follow(lhs)
if non_term == self._root:
_follow |= {self.eof()}
return _follow
def ll_one(self, check_conflicts=False):
non_terms = [s for s in self._syms if isinstance(s, NonTerminal)]
table = defaultdict(dict)
for nt in non_terms:
terms = self.first(nt)
if self.epsilon() in terms:
terms = (terms - {self.epsilon()}) | self.follow(nt)
# pick rule:
for tt in terms:
applicable_rules = []
for rule in self._rules:
if rule.lhs != nt:
continue
# scan rhs
annullable = True
for sym in rule.rhs:
s_first = self.first(sym)
if tt in s_first:
applicable_rules.append(rule)
break
if not self.epsilon() in s_first:
annullable = False
break
if annullable and tt in self.follow(nt):
applicable_rules.append(rule)
if check_conflicts:
if len(applicable_rules) > 1:
raise RuntimeError(f"Found multiple applicable rules for ({nt}, {tt}):\n" +
'\n'.join(str(r) for r in applicable_rules))
table[nt][tt] = applicable_rules
return dict(table)
if __name__ == "__main__":
g = Grammar()
S, B, D, E, F = non_term = g.non_terminal('S', 'B', 'D', 'E', 'F')
u, v, w, x, y, z = term = g.terminal('u', 'v', 'w', 'x', 'y', 'z')
g.r(S, [u, B, D, z])
g.r(B, [B, v])
g.r(B, [w])
g.r(D, [E, F])
g.r(E, [y])
g.r(E, [])
g.r(F, [x])
g.r(F, [])
for nt in non_term:
print(f"FIRST({nt}): {g.first(nt)}")
print()
for nt in non_term:
print(f"FOLLOW({nt}): {g.follow(nt)}")
print()
print(g.ll_one(check_conflicts=False)) | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
15069,
2864,
11,
2059,
286,
3442,
11,
14727,
198,
2,
1772,
25,
7939,
406,
3609,
84,
2232,
1279,
75,
3609,
84,
2232,
31,
6359,
13,
527,
13490,
13,
15532,
29,
198,
198,
6738,
17268,
1330,
197,
12286,
11600,
198,
198,
4871,
38357,
25,
198,
197,
4299,
11593,
15003,
834,
7,
944,
11,
1438,
11,
10758,
28,
25101,
2599,
198,
197,
197,
944,
13,
3672,
796,
1438,
198,
197,
197,
944,
13557,
36575,
796,
10758,
628,
197,
4299,
11593,
2536,
834,
7,
944,
2599,
198,
197,
197,
361,
2116,
13557,
36575,
25,
198,
197,
197,
197,
7783,
277,
1,
59,
44427,
58,
16,
76,
90,
944,
13,
3672,
32239,
44427,
58,
15,
76,
1,
198,
197,
197,
17772,
25,
198,
197,
197,
197,
7783,
277,
1,
90,
944,
13,
3672,
36786,
628,
197,
4299,
11593,
260,
1050,
834,
7,
944,
2599,
198,
197,
197,
7783,
2116,
13,
3672,
628,
198,
4871,
8504,
44798,
282,
7,
13940,
23650,
2599,
198,
197,
4299,
11593,
15003,
834,
7,
944,
11,
1438,
2599,
198,
197,
197,
16668,
22446,
834,
15003,
834,
7,
3672,
11,
10758,
28,
17821,
8,
628,
198,
4871,
24523,
7,
13940,
23650,
2599,
198,
197,
4299,
11593,
15003,
834,
7,
944,
11,
1438,
2599,
198,
197,
197,
16668,
22446,
834,
15003,
834,
7,
3672,
8,
628,
198,
4871,
43427,
33576,
7,
44798,
282,
2599,
198,
197,
4299,
11593,
15003,
834,
7,
944,
2599,
198,
197,
197,
16668,
22446,
834,
15003,
834,
7203,
30950,
4943,
628,
198,
4871,
14330,
25,
198,
197,
4299,
11593,
15003,
834,
7,
944,
11,
300,
11994,
11,
9529,
82,
2599,
198,
197,
197,
30493,
318,
39098,
7,
75,
11994,
11,
8504,
44798,
282,
8,
198,
197,
197,
30493,
318,
39098,
7,
81,
11994,
11,
1351,
8,
198,
197,
197,
30493,
477,
7,
271,
39098,
7,
37047,
11,
38357,
8,
329,
5659,
287,
9529,
82,
8,
198,
197,
197,
944,
13,
75,
11994,
796,
300,
11994,
198,
197,
197,
944,
13,
81,
11994,
796,
9529,
82,
628,
197,
4299,
11593,
1136,
9186,
834,
7,
944,
11,
2378,
2599,
198,
197,
197,
361,
2378,
407,
287,
1391,
15,
11,
352,
38362,
198,
197,
197,
197,
40225,
12901,
12331,
7,
9186,
8,
198,
197,
197,
361,
2378,
6624,
657,
25,
198,
197,
197,
197,
7783,
2116,
13,
75,
11994,
198,
197,
197,
17772,
25,
198,
197,
197,
197,
7783,
2116,
13,
81,
11994,
628,
197,
4299,
11593,
2536,
834,
7,
944,
2599,
198,
197,
197,
7783,
277,
1,
90,
944,
13,
75,
11994,
92,
4613,
1391,
35384,
22179,
7,
2536,
7,
37047,
8,
329,
5659,
287,
2116,
13,
81,
11994,
8,
36786,
628,
197,
4299,
11593,
260,
1050,
834,
7,
944,
2599,
198,
197,
197,
7783,
965,
7,
944,
8,
198,
198,
4871,
20159,
3876,
25,
198,
197,
4299,
11593,
15003,
834,
7,
944,
2599,
198,
197,
197,
944,
13557,
1837,
907,
796,
685,
36,
862,
33576,
22784,
24523,
10786,
3,
11537,
60,
198,
197,
197,
944,
13557,
38785,
796,
17635,
198,
197,
197,
944,
13557,
15763,
796,
6045,
628,
197,
4299,
4808,
15883,
62,
1837,
907,
7,
944,
11,
5994,
11,
3891,
2599,
198,
197,
197,
1837,
907,
796,
685,
6030,
7,
3672,
8,
329,
1438,
287,
3891,
60,
198,
197,
197,
944,
13557,
1837,
907,
15853,
827,
907,
198,
197,
197,
7783,
827,
907,
628,
197,
4299,
1729,
62,
23705,
282,
7,
944,
11,
1635,
14933,
2599,
198,
197,
197,
7783,
2116,
13557,
15883,
62,
1837,
907,
7,
15419,
44798,
282,
11,
3891,
8,
628,
197,
4299,
12094,
7,
944,
11,
1635,
14933,
2599,
198,
197,
197,
7783,
2116,
13557,
15883,
62,
1837,
907,
7,
44798,
282,
11,
3891,
8,
628,
197,
4299,
304,
862,
33576,
7,
944,
2599,
198,
197,
197,
7783,
2116,
13557,
1837,
907,
58,
15,
60,
628,
197,
4299,
304,
1659,
7,
944,
2599,
198,
197,
197,
7783,
220,
2116,
13557,
1837,
907,
58,
16,
60,
628,
197,
4299,
374,
7,
944,
11,
300,
11994,
11,
9529,
82,
2599,
198,
197,
197,
361,
18896,
7,
81,
11994,
8,
1279,
352,
25,
9529,
82,
796,
685,
944,
13,
538,
18217,
261,
3419,
60,
198,
197,
197,
361,
2116,
13557,
15763,
318,
6045,
25,
198,
197,
197,
197,
944,
13557,
15763,
796,
300,
11994,
1303,
416,
9831,
198,
197,
197,
944,
13557,
38785,
13,
33295,
7,
31929,
7,
75,
11994,
11,
9529,
82,
4008,
628,
197,
4299,
717,
7,
944,
11,
5659,
2599,
198,
197,
197,
30493,
318,
39098,
7,
37047,
11,
38357,
828,
277,
1,
90,
37047,
92,
1058,
1391,
4906,
7,
37047,
8,
36786,
198,
197,
197,
2,
4798,
7,
69,
1,
39776,
2257,
15090,
37047,
30072,
4943,
198,
197,
197,
361,
318,
39098,
7,
37047,
11,
24523,
2599,
198,
197,
197,
197,
7783,
1391,
37047,
92,
198,
197,
197,
62,
11085,
796,
900,
3419,
198,
197,
197,
1640,
300,
11994,
11,
9529,
82,
287,
2116,
13557,
38785,
25,
198,
197,
197,
197,
361,
300,
11994,
14512,
5659,
25,
198,
197,
197,
197,
197,
43043,
198,
197,
197,
197,
1236,
724,
540,
796,
6407,
198,
197,
197,
197,
1640,
264,
287,
9529,
82,
25,
198,
197,
197,
197,
197,
361,
264,
6624,
5659,
25,
198,
197,
197,
197,
197,
197,
1236,
724,
540,
796,
10352,
198,
197,
197,
197,
197,
197,
9032,
198,
197,
197,
197,
197,
82,
62,
11085,
796,
2116,
13,
11085,
7,
82,
8,
198,
197,
197,
197,
197,
82,
62,
1236,
724,
540,
796,
2116,
13,
538,
18217,
261,
3419,
287,
264,
62,
11085,
198,
197,
197,
197,
197,
62,
11085,
796,
4808,
11085,
930,
357,
82,
62,
11085,
532,
1391,
944,
13,
538,
18217,
261,
3419,
30072,
198,
197,
197,
197,
197,
361,
407,
264,
62,
1236,
724,
540,
25,
198,
197,
197,
197,
197,
197,
1236,
724,
540,
796,
10352,
198,
197,
197,
197,
197,
197,
9032,
198,
197,
197,
197,
361,
1529,
724,
540,
25,
198,
197,
197,
197,
197,
62,
11085,
930,
28,
1391,
944,
13,
538,
18217,
261,
3419,
92,
198,
197,
197,
7783,
4808,
11085,
628,
197,
4299,
1061,
7,
944,
11,
1729,
62,
4354,
2599,
198,
197,
197,
30493,
318,
39098,
7,
13159,
62,
4354,
11,
8504,
44798,
282,
8,
198,
197,
197,
62,
27780,
796,
900,
3419,
198,
197,
197,
1640,
300,
11994,
11,
9529,
82,
287,
2116,
13557,
38785,
25,
198,
197,
197,
197,
361,
1729,
62,
4354,
407,
287,
9529,
82,
25,
198,
197,
197,
197,
197,
43043,
198,
197,
197,
197,
1640,
21065,
11,
5659,
287,
27056,
378,
7,
81,
11994,
2599,
198,
197,
197,
197,
197,
361,
5659,
14512,
1729,
62,
4354,
25,
198,
197,
197,
197,
197,
197,
43043,
198,
197,
197,
197,
197,
2,
9367,
1708,
14354,
198,
197,
197,
197,
197,
27780,
276,
62,
1525,
62,
1236,
377,
540,
796,
6407,
198,
197,
197,
197,
197,
1640,
31246,
287,
9529,
82,
58,
4178,
10,
16,
25,
5974,
198,
197,
197,
197,
197,
197,
62,
11085,
796,
2116,
13,
11085,
7,
487,
8,
198,
197,
197,
197,
197,
197,
62,
27780,
930,
28,
44104,
11085,
532,
1391,
944,
13,
538,
18217,
261,
3419,
30072,
198,
197,
197,
197,
197,
197,
361,
2116,
13,
538,
18217,
261,
3419,
407,
287,
4808,
11085,
25,
198,
197,
197,
197,
197,
197,
197,
27780,
276,
62,
1525,
62,
1236,
377,
540,
796,
10352,
198,
197,
197,
197,
197,
197,
197,
9032,
198,
197,
197,
197,
197,
361,
3940,
62,
1525,
62,
1236,
377,
540,
25,
198,
197,
197,
197,
197,
197,
62,
27780,
930,
28,
2116,
13,
27780,
7,
75,
11994,
8,
198,
197,
197,
361,
1729,
62,
4354,
6624,
2116,
13557,
15763,
25,
198,
197,
197,
197,
62,
27780,
930,
28,
1391,
944,
13,
68,
1659,
3419,
92,
198,
197,
197,
7783,
4808,
27780,
628,
197,
4299,
32660,
62,
505,
7,
944,
11,
2198,
62,
10414,
42267,
28,
25101,
2599,
198,
197,
197,
13159,
62,
38707,
796,
685,
82,
329,
264,
287,
2116,
13557,
1837,
907,
611,
318,
39098,
7,
82,
11,
8504,
44798,
282,
15437,
198,
197,
197,
11487,
796,
4277,
11600,
7,
11600,
8,
198,
197,
197,
1640,
299,
83,
287,
1729,
62,
38707,
25,
198,
197,
197,
197,
38707,
796,
2116,
13,
11085,
7,
429,
8,
198,
197,
197,
197,
361,
2116,
13,
538,
18217,
261,
3419,
287,
2846,
25,
198,
197,
197,
197,
197,
38707,
796,
357,
38707,
532,
1391,
944,
13,
538,
18217,
261,
3419,
30072,
930,
2116,
13,
27780,
7,
429,
8,
198,
197,
197,
197,
2,
2298,
3896,
25,
198,
197,
197,
197,
1640,
256,
83,
287,
2846,
25,
198,
197,
197,
197,
197,
1324,
677,
540,
62,
38785,
796,
17635,
198,
197,
197,
197,
197,
1640,
3896,
287,
2116,
13557,
38785,
25,
198,
197,
197,
197,
197,
197,
361,
3896,
13,
75,
11994,
14512,
299,
83,
25,
198,
197,
197,
197,
197,
197,
197,
43043,
198,
197,
197,
197,
197,
197,
2,
9367,
9529,
82,
198,
197,
197,
197,
197,
197,
1236,
724,
540,
796,
6407,
198,
197,
197,
197,
197,
197,
1640,
5659,
287,
3896,
13,
81,
11994,
25,
198,
197,
197,
197,
197,
197,
197,
82,
62,
11085,
796,
2116,
13,
11085,
7,
37047,
8,
198,
197,
197,
197,
197,
197,
197,
361,
256,
83,
287,
264,
62,
11085,
25,
198,
197,
197,
197,
197,
197,
197,
197,
1324,
677,
540,
62,
38785,
13,
33295,
7,
25135,
8,
198,
197,
197,
197,
197,
197,
197,
197,
9032,
198,
197,
197,
197,
197,
197,
197,
361,
407,
2116,
13,
538,
18217,
261,
3419,
287,
264,
62,
11085,
25,
198,
197,
197,
197,
197,
197,
197,
197,
1236,
724,
540,
796,
10352,
198,
197,
197,
197,
197,
197,
197,
197,
9032,
198,
197,
197,
197,
197,
197,
361,
1529,
724,
540,
290,
256,
83,
287,
2116,
13,
27780,
7,
429,
2599,
198,
197,
197,
197,
197,
197,
197,
1324,
677,
540,
62,
38785,
13,
33295,
7,
25135,
8,
198,
197,
197,
197,
197,
361,
2198,
62,
10414,
42267,
25,
198,
197,
197,
197,
197,
197,
361,
18896,
7,
1324,
677,
540,
62,
38785,
8,
1875,
352,
25,
198,
197,
197,
197,
197,
197,
197,
40225,
43160,
12331,
7,
69,
1,
21077,
3294,
9723,
3173,
329,
37913,
429,
5512,
1391,
926,
92,
2599,
59,
77,
1,
1343,
198,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
197,
6,
59,
77,
4458,
22179,
7,
2536,
7,
81,
8,
329,
374,
287,
9723,
62,
38785,
4008,
628,
197,
197,
197,
197,
11487,
58,
429,
7131,
926,
60,
796,
9723,
62,
38785,
198,
197,
197,
7783,
8633,
7,
11487,
8,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
197,
70,
796,
20159,
3876,
3419,
198,
197,
50,
11,
347,
11,
360,
11,
412,
11,
376,
796,
1729,
62,
4354,
796,
308,
13,
13159,
62,
23705,
282,
10786,
50,
3256,
705,
33,
3256,
705,
35,
3256,
705,
36,
3256,
705,
37,
11537,
198,
197,
84,
11,
410,
11,
266,
11,
2124,
11,
331,
11,
1976,
796,
3381,
796,
308,
13,
23705,
282,
10786,
84,
3256,
705,
85,
3256,
705,
86,
3256,
705,
87,
3256,
705,
88,
3256,
705,
89,
11537,
198,
197,
70,
13,
81,
7,
50,
11,
685,
84,
11,
347,
11,
360,
11,
1976,
12962,
198,
197,
70,
13,
81,
7,
33,
11,
685,
33,
11,
410,
12962,
198,
197,
70,
13,
81,
7,
33,
11,
685,
86,
12962,
198,
197,
70,
13,
81,
7,
35,
11,
685,
36,
11,
376,
12962,
198,
197,
70,
13,
81,
7,
36,
11,
685,
88,
12962,
198,
197,
70,
13,
81,
7,
36,
11,
685,
12962,
198,
197,
70,
13,
81,
7,
37,
11,
685,
87,
12962,
198,
197,
70,
13,
81,
7,
37,
11,
685,
12962,
628,
197,
1640,
299,
83,
287,
1729,
62,
4354,
25,
198,
197,
197,
4798,
7,
69,
1,
39776,
2257,
15090,
429,
92,
2599,
1391,
70,
13,
11085,
7,
429,
38165,
4943,
628,
197,
4798,
3419,
628,
197,
1640,
299,
83,
287,
1729,
62,
4354,
25,
198,
197,
197,
4798,
7,
69,
1,
6080,
44765,
15090,
429,
92,
2599,
1391,
70,
13,
27780,
7,
429,
38165,
4943,
628,
197,
4798,
3419,
628,
197,
4798,
7,
70,
13,
297,
62,
505,
7,
9122,
62,
10414,
42267,
28,
25101,
4008
] | 2.178431 | 2,040 |
import socket, threading
HOST = "127.0.0.1"
PORT = 9999
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((HOST, PORT))
server.listen()
clients = []
nicknames = []
# broadcast func
def broadcast(message):
for client in clients:
client.send(message)
# handle func
def handle(client):
while True:
try:
message = client.recv(2048)
print(f"{nicknames[clients.index(client)]} says {message}")
broadcast(message)
except:
index = clients.index(client)
clients.remove(client)
nickname = nicknames[index]
nicknames.remove(nickname)
break
# receive func
def receive():
while True:
client,address = server.accept()
print(f"Connected with {str(address)}!")
client.send("NICKNAME".encode("utf-8"))
nickname = client.recv(2048).decode("utf-8")
nicknames.append(nickname)
clients.append(client)
print(f"Nickname of new client is {nickname}")
broadcast(f"{nickname} joined the chat!\n".encode("utf-8"))
client.send("You Have Connected to the server".encode("utf-8"))
thread = threading.Thread(target=handle,args=(client,))
thread.start()
print("******Server is running******")
receive()
| [
11748,
17802,
11,
4704,
278,
201,
198,
201,
198,
39,
10892,
796,
366,
16799,
13,
15,
13,
15,
13,
16,
1,
201,
198,
15490,
796,
860,
17032,
201,
198,
201,
198,
15388,
796,
17802,
13,
44971,
7,
44971,
13,
8579,
62,
1268,
2767,
11,
17802,
13,
50,
11290,
62,
2257,
32235,
8,
201,
198,
15388,
13,
21653,
19510,
39,
10892,
11,
350,
9863,
4008,
201,
198,
201,
198,
15388,
13,
4868,
268,
3419,
201,
198,
201,
198,
565,
2334,
796,
17635,
201,
198,
17172,
14933,
796,
17635,
201,
198,
201,
198,
201,
198,
2,
7025,
25439,
201,
198,
4299,
7025,
7,
20500,
2599,
201,
198,
220,
220,
220,
329,
5456,
287,
7534,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5456,
13,
21280,
7,
20500,
8,
201,
198,
201,
198,
2,
5412,
25439,
201,
198,
4299,
5412,
7,
16366,
2599,
201,
198,
220,
220,
220,
981,
6407,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
796,
5456,
13,
8344,
85,
7,
1238,
2780,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
1,
90,
17172,
14933,
58,
565,
2334,
13,
9630,
7,
16366,
15437,
92,
1139,
1391,
20500,
92,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7025,
7,
20500,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
7534,
13,
9630,
7,
16366,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7534,
13,
28956,
7,
16366,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21814,
796,
14428,
14933,
58,
9630,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14428,
14933,
13,
28956,
7,
17172,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
2,
3328,
25439,
201,
198,
4299,
3328,
33529,
201,
198,
220,
220,
220,
981,
6407,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5456,
11,
21975,
796,
4382,
13,
13635,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
1,
13313,
276,
351,
1391,
2536,
7,
21975,
38165,
2474,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5456,
13,
21280,
7203,
45,
11860,
20608,
1911,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
21814,
796,
5456,
13,
8344,
85,
7,
1238,
2780,
737,
12501,
1098,
7203,
40477,
12,
23,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14428,
14933,
13,
33295,
7,
17172,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7534,
13,
33295,
7,
16366,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
1,
23609,
3672,
286,
649,
5456,
318,
1391,
17172,
3672,
92,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
7025,
7,
69,
1,
90,
17172,
3672,
92,
5399,
262,
8537,
0,
59,
77,
1911,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5456,
13,
21280,
7203,
1639,
8192,
8113,
276,
284,
262,
4382,
1911,
268,
8189,
7203,
40477,
12,
23,
48774,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4704,
796,
4704,
278,
13,
16818,
7,
16793,
28,
28144,
11,
22046,
16193,
16366,
11,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4704,
13,
9688,
3419,
201,
198,
201,
198,
4798,
7203,
2466,
1174,
10697,
318,
2491,
2466,
1174,
4943,
201,
198,
260,
15164,
3419,
201,
198,
201,
198
] | 2.163807 | 641 |
#
# Copyright (c) 2015, Adam Meily <meily.adam@gmail.com>
# Pypsi - https://github.com/ameily/pypsi
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
'''
Base classes for developing pluggable commands and plugins.
'''
import argparse
import sys
from pypsi.ansi import AnsiCodes, AnsiCode
from pypsi.format import get_lines, wrap_line
class Plugin(object):
'''
A plugin is an object that is able to modify a
:py:class:`pypsi.shell.Shell` object's behavior. Whereas a command can be
execute from user input, the `Plugin` class does not contain a `run()`
function.
'''
def __init__(self, preprocess=None, postprocess=None):
'''
Constructor can take two parameters: `preprocess` and `postprocess`
These values determine where the plugin resides inside of the
preprocess and postprocess list. This list, inside of
:class:`pypsi.shell.Shell`, is iterated sequentially, from most
priority to least. So, the highest priority value is 0, which means it
will be the first plugin to run, and the lowest value is 100, which
means it will be the last plugin to run. If either value is `None`, the
plugin is not added to the processing list. For example, if this plugin
only provides a preprocessing functionality, then postprocess should be
set to :const:`None`.
:param int preprocess: the preprocess priority
:param int postprocess: the postprocess priority
'''
self.preprocess = preprocess
self.postprocess = postprocess
def setup(self, shell): # pylint: disable=unused-argument
'''
Called after the plugin has been registered to the active shell.
:param pypsi.shell.Shell shell: the active shell
:returns int: 0 on success, -1 on failure
'''
return 0
def on_input(self, shell, line): # pylint: disable=unused-argument
'''
Called after input from the user has been received. The return value is
the preprocessed line. This means that modifying the line argument will
not populate back. If this function does no preprocessing, return line
unmodified.
:param pypsi.shell.Shell shell: the active shell
:param str line: the current input statement string
:returns str: the preprocessed line
'''
return line
def on_tokenize(self, shell, tokens, origin): # pylint: disable=unused-argument
'''
Called after an input string has been tokenized. If this function
performs no preprocessing, return the tokens unmodified.
:param pypsi.shell.Shell shell: the active shell
:param list tokens: the list of :class:`pypsi.cmdline.Token` objects
:param str origin: the origin of the input, can be either 'input' if
received from a call to `input()` or 'prompt' if the input is the
prompt to display to the user
:returns list: the list of preprocessed :class:`pypsi.cmdline.Token`
objects
'''
return tokens
def on_input_canceled(self, shell): # pylint: disable=unused-argument
'''
Called when the user can canceled entering a statement via SIGINT
(Ctrl+C).
:param pypsi.shell.Shell shell: the active shell
:returns int: 0 on success, -1 on error
'''
return 0
def on_statement_finished(self, shell, rc): # pylint: disable=unused-argument
'''
Called when a statement has been completely executed.
:param pypsi.shell.Shell shell: the active shell
:returns int: 0 on success, -1 on error
'''
return 0
class Command(object):
'''
A pluggable command that users can execute. All commands need to derive
from this class. When a command is executed by a user, the command's
:meth:`run` method will be called. The return value of the :meth:`run`
method is used when processing forthcoming commands in the active
statement. The return value must be an :class:`int` and follows the Unix
standard: 0 on success, less than 0 on error, and greater than 0 given
invalid input or incorrect usage.
Each command has a topic associated with it. This topic can be referenced
by commands such as :class:`pypsi.commands.help.HelpCommand` to categorize
commands in help messages.
A command can be used as a fallback handler by implementing the
:meth:`fallback` method. This is similar to the :meth:`run` method, except
that is accepts one more argument: the command name to execute that wasn't
found by the shell. The return value of :meth:`fallback` holds the same
purpose as the return value of :meth:`run`.
By the time :meth:`run` is called, the system streams have been updated to
point to the current file streams issued in the statement. For example, if
the statement redirects standard out (:attr:`sys.stdout`) to a file, the
destination file is automatically opened and :attr:`sys.stdout` is
redirected to the opened file stream. Once the command has complete
execution, the redirected stream is automatically closed and
:attr:`sys.stdout` is set to its original stream.
'''
def __init__(self, name, usage=None, brief=None,
topic=None, pipe='str'):
'''
:param str name: the name of the command which the user will reference
in the shell
:param str usage: the usage message to be displayed to the user
:param str brief: a brief description of the command
:param str topic: the topic that this command belongs to
:param str pipe: the type of data that will be read from and written to
any pipes
'''
self.name = name
self.usage = usage or ''
self.brief = brief or ''
self.topic = topic or ''
self.pipe = pipe or 'str'
def complete(self, shell, args, prefix): # pylint: disable=unused-argument
'''
Called when the user attempts a tab-completion action for this command.
:param pypsi.shell.Shell shell: the active shell
:param list args: the list of arguments, the last one containing the
cursor position
:param str prefix: the prefix that all items returned must start with
:returns list: the list of strings that could complete the current
action
'''
return []
def usage_error(self, shell, *args):
'''
Display an error message that indicates incorrect usage of this
command. After the error is displayed, the usage is printed.
:param pypsi.shell.Shell shell: the active shell
:param args: list of strings that are the error message
'''
self.error(shell, *args)
print(AnsiCodes.yellow, self.usage, AnsiCodes.reset, sep='')
def error(self, shell, *args): # pylint: disable=unused-argument
'''
Display an error message to the user.
:param pypsi.shell.Shell shell: the active shell
:param args: the error message to display
'''
msg = "{}: {}".format(self.name, ''.join([str(a) for a in args]))
print(AnsiCodes.red, msg, AnsiCodes.reset, file=sys.stderr, sep='')
def run(self, shell, args):
'''
Execute the command. All commands need to implement this method.
:param pypsi.shell.Shell shell: the active shell
:param list args: list of string arguments
:returns int: 0 on success, less than 0 on error, and greater than 0 on
invalid usage
'''
raise NotImplementedError()
def setup(self, shell): # pylint: disable=unused-argument
'''
Called when the plugin has been registered to the active shell.
:param pypsi.shell.Shell shell: the active shell
:returns int: 0 on success, -1 on error
'''
return 0
def fallback(self, shell, name, args): # pylint: disable=unused-argument
'''
Called when this command was set as the fallback command. The only
difference between this and :meth:`run` is that this method accepts the
command name that was entered by the user.
:param pypsi.shell.Shell shell: the active shell
:param str name: the name of the command to run
:param list args: arguments
:returns int: 0 on success, less than 0 on error, and greater than 0 on
invalid usage
'''
return None
class CommandShortCircuit(Exception):
'''
Exception raised when the user enter invalid arguments or requests usage
information via the -h and --help flags.
'''
def __init__(self, code):
'''
:param int code: the code the command should return
'''
super().__init__(code)
self.code = code
class PypsiArgParser(argparse.ArgumentParser):
'''
Customized :class:`argparse.ArgumentParser` for use in pypsi. This class
slightly modifies the base ArgumentParser so that the following occurs:
- The whole program does not exit on printing the help message or bad
arguments
- Any error messages are intercepted and printed on the active shell's
error stream
- Adds the option to provide callbacks for tab-completing
options and parameters
'''
def __init__(self, *args, **kwargs):
#: Store callback functions for positional parameters
self._pos_completers = []
#: Store callback functions for optional arguments with values
self._op_completers = {}
#: If a positional argument can be specified more than once,
# store it's callback here and return it multiple times
self._repeating_cb = None
super().__init__(*args, **kwargs)
def exit(self, status=0, message=None):
if message:
print(AnsiCodes.red, message, AnsiCodes.reset, file=sys.stderr,
sep='')
raise CommandShortCircuit(status)
def print_usage(self, file=None):
f = file or sys.stderr
print(AnsiCodes.yellow, self.format_usage(), AnsiCodes.reset, sep='',
file=f)
def print_help(self, file=None):
f = file or sys.stderr
print(AnsiCodes.yellow, self.format_help(), AnsiCodes.reset, sep='',
file=f)
def get_options(self):
'''
:return: All optional arguments (ex, '-v'/'--verbose')
'''
return list(self._op_completers.keys())
def get_option_completer(self, option):
'''
Returns the callback for the specified optional argument,
Or None if one was not specified.
:param str option: The Option
:return function: The callback function or None
'''
return self._op_completers.get(option, None)
def has_value(self, arg):
'''
Check if the optional argument has a value associated with it.
:param str arg: Optional argument to check
:return: True if arg has a value, false otherwise
'''
# pylint: disable=protected-access
# _option_string_actions is a dictionary containing all of the optional
# arguments and the argparse action they should perform. Currently, the
# only two actions that store a value are _AppendAction/_StoreAction.
# These represent the value passed to 'action' in add_argument:
# parser.add_argument('-l', '--long', action='store')
action = self._option_string_actions.get(arg, None)
return isinstance(action,
(argparse._AppendAction, argparse._StoreAction))
def get_positional_completer(self, pos):
'''
Get the callback for a positional parameter
:param pos: index of the parameter - first param's index = 0
:return: The callback if it exists, else None
'''
try:
return self._pos_completers[pos]
except IndexError:
if self._repeating_cb:
# A positional parameter is set to repeat
return self._repeating_cb
return None
def get_positional_arg_index(self, args):
'''
Get the positional index of a cursor, based on
optional arguments and positional arguments
:param list args: List of str arguments from the Command Line
:return:
'''
index = 0
for token in args:
if token in self._option_string_actions:
# Token is an optional argument ( ex, '-v' / '--verbose' )
if self.has_value(token):
# Optional Argument has a value associated with it, so
# reduce index to not count it's value as a pos param
index -= 1
else:
# Is a positional param or value for an optional argument
index += 1
# return zero-based index
return index - 1
def add_argument(self, *args, completer=None, **kwargs): # pylint: disable=arguments-differ
'''
Override add_argument function of argparse.ArgumentParser to
handle callback functions.
:param args: Positional arguments to pass up to argparse
:param function completer: Optional callback function for argument
:param kwargs: Keywork arguments to pass up to argparse
:return:
'''
cb = completer
nargs = kwargs.get('nargs', None)
chars = self.prefix_chars
if not args or len(args) == 1 and args[0][0] not in chars:
# If no positional args are supplied or only one is supplied and
# it doesn't look like an option string, parse a positional
# argument ( from argparse )
if nargs and nargs in ('+', '*', argparse.REMAINDER):
# Positional param can repeat
# Currently only stores the last repeating completer specified
self._repeating_cb = cb
self._pos_completers.append(cb)
else:
# Add an optional argument
for arg in args:
self._op_completers[arg] = cb
# Call argparse.add_argument()
return super().add_argument(*args, **kwargs)
def error(self, message):
print(AnsiCodes.red, self.prog, ": error: ", message, AnsiCodes.reset,
sep='', file=sys.stderr)
self.print_usage()
self.exit(1)
def pypsi_print(*args, sep=' ', end='\n', file=None, flush=True, width=None,
wrap=True, wrap_prefix=None, replace_errors=True):
'''
Wraps the functionality of the Python builtin `print` function. The
:meth:`pypsi.shell.Shell.bootstrap` overrides the Python :meth:`print`
function with :meth:`pypsi_print`.
:param str sep: string to print between arguments
:param str end: string to print at the end of the output
:param file file: output stream, if this is :const:`None`, the default is
:data:`sys.stdout`
:param bool flush: whether to flush the output stream
:param int width: override the stream's width
:param bool wrap: whether to word wrap the output
:param str wrap_prefix: prefix string to print prior to every new line that
is wrapped
:param bool replace_errors: replace invalid character points with the '?'
character
'''
file = file or sys.stdout
last = len(args) - 1
def write_safe(data):
'''
Write the input str to the file and, if an encoding error occurs and
replace_errors is ``True``, remove invalid code points and print again.
'''
try:
file.write(data)
except UnicodeEncodeError:
if replace_errors:
enc = getattr(file, 'encoding', sys.getdefaultencoding())
file.write(data.encode(enc, errors='replace').decode(enc))
else:
raise
if wrap and hasattr(file, 'width') and file.width:
width = width or file.width
parts = []
for arg in args:
if isinstance(arg, str):
parts.append(arg)
elif arg is None:
parts.append('')
elif isinstance(arg, AnsiCode):
if file.isatty():
parts.append(str(arg))
elif arg.s is not None:
parts.append(str(arg.s))
else:
parts.append(str(arg))
txt = sep.join(parts)
for (line, endl) in get_lines(txt):
if line:
first = True
wrapno = 0
for wrapped in wrap_line(line, width, wrap_prefix=wrap_prefix):
if not wrapped:
continue
wrapno += 1
if not first:
file.write('\n')
else:
first = False
write_safe(wrapped)
if not line or endl:
file.write('\n')
else:
last = len(args) - 1
for (i, arg) in enumerate(args):
write_safe(str(arg))
if sep and i != last:
write_safe(sep)
if end:
write_safe(end)
if flush:
file.flush()
| [
2,
198,
2,
15069,
357,
66,
8,
1853,
11,
7244,
2185,
813,
1279,
1326,
813,
13,
324,
321,
31,
14816,
13,
785,
29,
198,
2,
9485,
862,
72,
532,
3740,
1378,
12567,
13,
785,
14,
480,
813,
14,
9078,
862,
72,
198,
2,
198,
2,
2448,
3411,
284,
779,
11,
4866,
11,
13096,
11,
290,
14,
273,
14983,
428,
3788,
329,
597,
198,
2,
4007,
351,
393,
1231,
6838,
318,
29376,
7520,
11,
2810,
326,
262,
2029,
198,
2,
6634,
4003,
290,
428,
7170,
4003,
1656,
287,
477,
9088,
13,
198,
2,
198,
2,
3336,
47466,
3180,
36592,
2389,
1961,
366,
1921,
3180,
1,
5357,
3336,
44746,
13954,
48778,
50,
11096,
34764,
11015,
198,
2,
13315,
23337,
9795,
5390,
12680,
47466,
47783,
2751,
11096,
8959,
49094,
34764,
11015,
3963,
198,
2,
34482,
3398,
1565,
5603,
25382,
5357,
376,
46144,
13,
3268,
8005,
49261,
50163,
3336,
44746,
9348,
43031,
19146,
7473,
198,
2,
15529,
38846,
11,
42242,
11,
3268,
17931,
23988,
11,
6375,
7102,
5188,
10917,
3525,
12576,
29506,
25552,
6375,
15529,
29506,
25552,
198,
2,
25003,
15821,
36,
5959,
15731,
16724,
2751,
16034,
406,
18420,
3963,
23210,
11,
42865,
6375,
4810,
19238,
29722,
11,
7655,
2767,
16879,
3268,
3537,
198,
2,
40282,
3963,
27342,
10659,
11,
399,
7156,
43,
3528,
18310,
6375,
25401,
309,
9863,
40,
20958,
40282,
11,
5923,
1797,
2751,
16289,
3963,
198,
2,
6375,
3268,
7102,
45,
24565,
13315,
3336,
23210,
6375,
19878,
13775,
10725,
5222,
3963,
12680,
47466,
13,
198,
2,
198,
198,
7061,
6,
198,
14881,
6097,
329,
5922,
6107,
70,
540,
9729,
290,
20652,
13,
198,
7061,
6,
628,
198,
11748,
1822,
29572,
198,
11748,
25064,
198,
6738,
12972,
862,
72,
13,
504,
72,
1330,
1052,
13396,
34,
4147,
11,
1052,
13396,
10669,
198,
6738,
12972,
862,
72,
13,
18982,
1330,
651,
62,
6615,
11,
14441,
62,
1370,
628,
198,
4871,
42636,
7,
15252,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
317,
13877,
318,
281,
2134,
326,
318,
1498,
284,
13096,
257,
198,
220,
220,
220,
1058,
9078,
25,
4871,
25,
63,
9078,
862,
72,
13,
29149,
13,
23248,
63,
2134,
338,
4069,
13,
28016,
257,
3141,
460,
307,
198,
220,
220,
220,
12260,
422,
2836,
5128,
11,
262,
4600,
37233,
63,
1398,
857,
407,
3994,
257,
4600,
5143,
3419,
63,
198,
220,
220,
220,
2163,
13,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
662,
14681,
28,
14202,
11,
1281,
14681,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
28407,
273,
460,
1011,
734,
10007,
25,
4600,
3866,
14681,
63,
290,
4600,
7353,
14681,
63,
198,
220,
220,
220,
220,
220,
220,
220,
2312,
3815,
5004,
810,
262,
13877,
29076,
2641,
286,
262,
198,
220,
220,
220,
220,
220,
220,
220,
662,
14681,
290,
1281,
14681,
1351,
13,
770,
1351,
11,
2641,
286,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4871,
25,
63,
9078,
862,
72,
13,
29149,
13,
23248,
47671,
318,
11629,
515,
4726,
3746,
11,
422,
749,
198,
220,
220,
220,
220,
220,
220,
220,
8475,
284,
1551,
13,
1406,
11,
262,
4511,
8475,
1988,
318,
657,
11,
543,
1724,
340,
198,
220,
220,
220,
220,
220,
220,
220,
481,
307,
262,
717,
13877,
284,
1057,
11,
290,
262,
9016,
1988,
318,
1802,
11,
543,
198,
220,
220,
220,
220,
220,
220,
220,
1724,
340,
481,
307,
262,
938,
13877,
284,
1057,
13,
1002,
2035,
1988,
318,
4600,
14202,
47671,
262,
198,
220,
220,
220,
220,
220,
220,
220,
13877,
318,
407,
2087,
284,
262,
7587,
1351,
13,
1114,
1672,
11,
611,
428,
13877,
198,
220,
220,
220,
220,
220,
220,
220,
691,
3769,
257,
662,
36948,
11244,
11,
788,
1281,
14681,
815,
307,
198,
220,
220,
220,
220,
220,
220,
220,
900,
284,
1058,
9979,
25,
63,
14202,
44646,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
493,
662,
14681,
25,
262,
662,
14681,
8475,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
493,
1281,
14681,
25,
262,
1281,
14681,
8475,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3866,
14681,
796,
662,
14681,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7353,
14681,
796,
1281,
14681,
628,
220,
220,
220,
825,
9058,
7,
944,
11,
7582,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
706,
262,
13877,
468,
587,
6823,
284,
262,
4075,
7582,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
493,
25,
657,
319,
1943,
11,
532,
16,
319,
5287,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
628,
220,
220,
220,
825,
319,
62,
15414,
7,
944,
11,
7582,
11,
1627,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
706,
5128,
422,
262,
2836,
468,
587,
2722,
13,
383,
1441,
1988,
318,
198,
220,
220,
220,
220,
220,
220,
220,
262,
662,
14681,
276,
1627,
13,
770,
1724,
326,
30620,
262,
1627,
4578,
481,
198,
220,
220,
220,
220,
220,
220,
220,
407,
48040,
736,
13,
1002,
428,
2163,
857,
645,
662,
36948,
11,
1441,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
555,
41771,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
1627,
25,
262,
1459,
5128,
2643,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
965,
25,
262,
662,
14681,
276,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1627,
628,
220,
220,
220,
825,
319,
62,
30001,
1096,
7,
944,
11,
7582,
11,
16326,
11,
8159,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
706,
281,
5128,
4731,
468,
587,
11241,
1143,
13,
1002,
428,
2163,
198,
220,
220,
220,
220,
220,
220,
220,
17706,
645,
662,
36948,
11,
1441,
262,
16326,
555,
41771,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
16326,
25,
262,
1351,
286,
1058,
4871,
25,
63,
9078,
862,
72,
13,
28758,
1370,
13,
30642,
63,
5563,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
8159,
25,
262,
8159,
286,
262,
5128,
11,
460,
307,
2035,
705,
15414,
6,
611,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2722,
422,
257,
869,
284,
4600,
15414,
3419,
63,
393,
705,
16963,
457,
6,
611,
262,
5128,
318,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6152,
284,
3359,
284,
262,
2836,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
1351,
25,
262,
1351,
286,
662,
14681,
276,
1058,
4871,
25,
63,
9078,
862,
72,
13,
28758,
1370,
13,
30642,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5563,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
16326,
628,
220,
220,
220,
825,
319,
62,
15414,
62,
66,
590,
992,
7,
944,
11,
7582,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
618,
262,
2836,
460,
19994,
8218,
257,
2643,
2884,
33993,
12394,
198,
220,
220,
220,
220,
220,
220,
220,
357,
40069,
10,
34,
737,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
493,
25,
657,
319,
1943,
11,
532,
16,
319,
4049,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
628,
220,
220,
220,
825,
319,
62,
26090,
62,
43952,
7,
944,
11,
7582,
11,
48321,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
618,
257,
2643,
468,
587,
3190,
10945,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
493,
25,
657,
319,
1943,
11,
532,
16,
319,
4049,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
628,
198,
4871,
9455,
7,
15252,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
317,
6107,
70,
540,
3141,
326,
2985,
460,
12260,
13,
1439,
9729,
761,
284,
27099,
198,
220,
220,
220,
422,
428,
1398,
13,
1649,
257,
3141,
318,
10945,
416,
257,
2836,
11,
262,
3141,
338,
198,
220,
220,
220,
1058,
76,
2788,
25,
63,
5143,
63,
2446,
481,
307,
1444,
13,
383,
1441,
1988,
286,
262,
1058,
76,
2788,
25,
63,
5143,
63,
198,
220,
220,
220,
2446,
318,
973,
618,
7587,
21220,
9729,
287,
262,
4075,
198,
220,
220,
220,
2643,
13,
383,
1441,
1988,
1276,
307,
281,
1058,
4871,
25,
63,
600,
63,
290,
5679,
262,
33501,
198,
220,
220,
220,
3210,
25,
657,
319,
1943,
11,
1342,
621,
657,
319,
4049,
11,
290,
3744,
621,
657,
1813,
198,
220,
220,
220,
12515,
5128,
393,
11491,
8748,
13,
628,
220,
220,
220,
5501,
3141,
468,
257,
7243,
3917,
351,
340,
13,
770,
7243,
460,
307,
20717,
198,
220,
220,
220,
416,
9729,
884,
355,
1058,
4871,
25,
63,
9078,
862,
72,
13,
9503,
1746,
13,
16794,
13,
22087,
21575,
63,
284,
17851,
1096,
198,
220,
220,
220,
9729,
287,
1037,
6218,
13,
628,
220,
220,
220,
317,
3141,
460,
307,
973,
355,
257,
2121,
1891,
21360,
416,
15427,
262,
198,
220,
220,
220,
1058,
76,
2788,
25,
63,
7207,
1891,
63,
2446,
13,
770,
318,
2092,
284,
262,
1058,
76,
2788,
25,
63,
5143,
63,
2446,
11,
2845,
198,
220,
220,
220,
326,
318,
18178,
530,
517,
4578,
25,
262,
3141,
1438,
284,
12260,
326,
2492,
470,
198,
220,
220,
220,
1043,
416,
262,
7582,
13,
383,
1441,
1988,
286,
1058,
76,
2788,
25,
63,
7207,
1891,
63,
6622,
262,
976,
198,
220,
220,
220,
4007,
355,
262,
1441,
1988,
286,
1058,
76,
2788,
25,
63,
5143,
44646,
628,
220,
220,
220,
2750,
262,
640,
1058,
76,
2788,
25,
63,
5143,
63,
318,
1444,
11,
262,
1080,
15190,
423,
587,
6153,
284,
198,
220,
220,
220,
966,
284,
262,
1459,
2393,
15190,
4884,
287,
262,
2643,
13,
1114,
1672,
11,
611,
198,
220,
220,
220,
262,
2643,
18941,
82,
3210,
503,
357,
25,
35226,
25,
63,
17597,
13,
19282,
448,
63,
8,
284,
257,
2393,
11,
262,
198,
220,
220,
220,
10965,
2393,
318,
6338,
4721,
290,
1058,
35226,
25,
63,
17597,
13,
19282,
448,
63,
318,
198,
220,
220,
220,
45158,
284,
262,
4721,
2393,
4269,
13,
4874,
262,
3141,
468,
1844,
198,
220,
220,
220,
9706,
11,
262,
45158,
4269,
318,
6338,
4838,
290,
198,
220,
220,
220,
1058,
35226,
25,
63,
17597,
13,
19282,
448,
63,
318,
900,
284,
663,
2656,
4269,
13,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
11,
8748,
28,
14202,
11,
4506,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7243,
28,
14202,
11,
12656,
11639,
2536,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
1438,
25,
262,
1438,
286,
262,
3141,
543,
262,
2836,
481,
4941,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
262,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
8748,
25,
262,
8748,
3275,
284,
307,
9066,
284,
262,
2836,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
4506,
25,
257,
4506,
6764,
286,
262,
3141,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
7243,
25,
262,
7243,
326,
428,
3141,
14448,
284,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
12656,
25,
262,
2099,
286,
1366,
326,
481,
307,
1100,
422,
290,
3194,
284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
597,
19860,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
26060,
796,
8748,
393,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
65,
3796,
796,
4506,
393,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
26652,
796,
7243,
393,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
34360,
796,
12656,
393,
705,
2536,
6,
628,
220,
220,
220,
825,
1844,
7,
944,
11,
7582,
11,
26498,
11,
21231,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
618,
262,
2836,
6370,
257,
7400,
12,
785,
24547,
2223,
329,
428,
3141,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
26498,
25,
262,
1351,
286,
7159,
11,
262,
938,
530,
7268,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23493,
2292,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
21231,
25,
262,
21231,
326,
477,
3709,
4504,
1276,
923,
351,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
1351,
25,
262,
1351,
286,
13042,
326,
714,
1844,
262,
1459,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2223,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
17635,
628,
220,
220,
220,
825,
8748,
62,
18224,
7,
944,
11,
7582,
11,
1635,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
16531,
281,
4049,
3275,
326,
9217,
11491,
8748,
286,
428,
198,
220,
220,
220,
220,
220,
220,
220,
3141,
13,
2293,
262,
4049,
318,
9066,
11,
262,
8748,
318,
10398,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
26498,
25,
1351,
286,
13042,
326,
389,
262,
4049,
3275,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18224,
7,
29149,
11,
1635,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2025,
13396,
34,
4147,
13,
36022,
11,
2116,
13,
26060,
11,
1052,
13396,
34,
4147,
13,
42503,
11,
41767,
28,
7061,
8,
628,
220,
220,
220,
825,
4049,
7,
944,
11,
7582,
11,
1635,
22046,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
16531,
281,
4049,
3275,
284,
262,
2836,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
26498,
25,
262,
4049,
3275,
284,
3359,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
45144,
38362,
23884,
1911,
18982,
7,
944,
13,
3672,
11,
705,
4458,
22179,
26933,
2536,
7,
64,
8,
329,
257,
287,
26498,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2025,
13396,
34,
4147,
13,
445,
11,
31456,
11,
1052,
13396,
34,
4147,
13,
42503,
11,
2393,
28,
17597,
13,
301,
1082,
81,
11,
41767,
28,
7061,
8,
628,
220,
220,
220,
825,
1057,
7,
944,
11,
7582,
11,
26498,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
8393,
1133,
262,
3141,
13,
1439,
9729,
761,
284,
3494,
428,
2446,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
26498,
25,
1351,
286,
4731,
7159,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
493,
25,
657,
319,
1943,
11,
1342,
621,
657,
319,
4049,
11,
290,
3744,
621,
657,
319,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12515,
8748,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
3419,
628,
220,
220,
220,
825,
9058,
7,
944,
11,
7582,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
618,
262,
13877,
468,
587,
6823,
284,
262,
4075,
7582,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
493,
25,
657,
319,
1943,
11,
532,
16,
319,
4049,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
628,
220,
220,
220,
825,
2121,
1891,
7,
944,
11,
7582,
11,
1438,
11,
26498,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
34099,
618,
428,
3141,
373,
900,
355,
262,
2121,
1891,
3141,
13,
383,
691,
198,
220,
220,
220,
220,
220,
220,
220,
3580,
1022,
428,
290,
1058,
76,
2788,
25,
63,
5143,
63,
318,
326,
428,
2446,
18178,
262,
198,
220,
220,
220,
220,
220,
220,
220,
3141,
1438,
326,
373,
5982,
416,
262,
2836,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12972,
862,
72,
13,
29149,
13,
23248,
7582,
25,
262,
4075,
7582,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
1438,
25,
262,
1438,
286,
262,
3141,
284,
1057,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
26498,
25,
7159,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
493,
25,
657,
319,
1943,
11,
1342,
621,
657,
319,
4049,
11,
290,
3744,
621,
657,
319,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12515,
8748,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
198,
4871,
9455,
16438,
31560,
5013,
7,
16922,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
35528,
4376,
618,
262,
2836,
3802,
12515,
7159,
393,
7007,
8748,
198,
220,
220,
220,
1321,
2884,
262,
532,
71,
290,
1377,
16794,
9701,
13,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2438,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
493,
2438,
25,
262,
2438,
262,
3141,
815,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
8189,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8189,
796,
2438,
628,
198,
4871,
9485,
862,
72,
28100,
46677,
7,
853,
29572,
13,
28100,
1713,
46677,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
8562,
1143,
1058,
4871,
25,
63,
853,
29572,
13,
28100,
1713,
46677,
63,
329,
779,
287,
12972,
862,
72,
13,
770,
1398,
198,
220,
220,
220,
4622,
953,
6945,
262,
2779,
45751,
46677,
523,
326,
262,
1708,
8833,
25,
628,
220,
220,
220,
532,
383,
2187,
1430,
857,
407,
8420,
319,
13570,
262,
1037,
3275,
393,
2089,
198,
220,
220,
220,
220,
220,
7159,
198,
220,
220,
220,
532,
4377,
4049,
6218,
389,
29842,
290,
10398,
319,
262,
4075,
7582,
338,
198,
220,
220,
220,
220,
220,
4049,
4269,
198,
220,
220,
220,
532,
34333,
262,
3038,
284,
2148,
869,
10146,
329,
7400,
12,
785,
47130,
198,
220,
220,
220,
220,
220,
3689,
290,
10007,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
25,
9363,
23838,
5499,
329,
45203,
10007,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
1930,
62,
785,
1154,
1010,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
25,
9363,
23838,
5499,
329,
11902,
7159,
351,
3815,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
404,
62,
785,
1154,
1010,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
25,
1002,
257,
45203,
4578,
460,
307,
7368,
517,
621,
1752,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
3650,
340,
338,
23838,
994,
290,
1441,
340,
3294,
1661,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
45956,
803,
62,
21101,
796,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
46491,
22046,
11,
12429,
46265,
22046,
8,
628,
220,
220,
220,
825,
8420,
7,
944,
11,
3722,
28,
15,
11,
3275,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3275,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2025,
13396,
34,
4147,
13,
445,
11,
3275,
11,
1052,
13396,
34,
4147,
13,
42503,
11,
2393,
28,
17597,
13,
301,
1082,
81,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41767,
28,
7061,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
9455,
16438,
31560,
5013,
7,
13376,
8,
628,
220,
220,
220,
825,
3601,
62,
26060,
7,
944,
11,
2393,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
2393,
393,
25064,
13,
301,
1082,
81,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2025,
13396,
34,
4147,
13,
36022,
11,
2116,
13,
18982,
62,
26060,
22784,
1052,
13396,
34,
4147,
13,
42503,
11,
41767,
11639,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
69,
8,
628,
220,
220,
220,
825,
3601,
62,
16794,
7,
944,
11,
2393,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
2393,
393,
25064,
13,
301,
1082,
81,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2025,
13396,
34,
4147,
13,
36022,
11,
2116,
13,
18982,
62,
16794,
22784,
1052,
13396,
34,
4147,
13,
42503,
11,
41767,
11639,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
28,
69,
8,
628,
220,
220,
220,
825,
651,
62,
25811,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
1439,
11902,
7159,
357,
1069,
11,
705,
12,
85,
26488,
6,
438,
19011,
577,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1351,
7,
944,
13557,
404,
62,
785,
1154,
1010,
13,
13083,
28955,
628,
220,
220,
220,
825,
651,
62,
18076,
62,
785,
1154,
353,
7,
944,
11,
3038,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
262,
23838,
329,
262,
7368,
11902,
4578,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1471,
6045,
611,
530,
373,
407,
7368,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
3038,
25,
383,
16018,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
2163,
25,
383,
23838,
2163,
393,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
404,
62,
785,
1154,
1010,
13,
1136,
7,
18076,
11,
6045,
8,
628,
220,
220,
220,
825,
468,
62,
8367,
7,
944,
11,
1822,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6822,
611,
262,
11902,
4578,
468,
257,
1988,
3917,
351,
340,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
965,
1822,
25,
32233,
4578,
284,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
6407,
611,
1822,
468,
257,
1988,
11,
3991,
4306,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
279,
2645,
600,
25,
15560,
28,
24326,
12,
15526,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4808,
18076,
62,
8841,
62,
4658,
318,
257,
22155,
7268,
477,
286,
262,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
7159,
290,
262,
1822,
29572,
2223,
484,
815,
1620,
13,
16888,
11,
262,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
691,
734,
4028,
326,
3650,
257,
1988,
389,
4808,
4677,
437,
12502,
47835,
22658,
12502,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2312,
2380,
262,
1988,
3804,
284,
705,
2673,
6,
287,
751,
62,
49140,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
30751,
13,
2860,
62,
49140,
10786,
12,
75,
3256,
705,
438,
6511,
3256,
2223,
11639,
8095,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2223,
796,
2116,
13557,
18076,
62,
8841,
62,
4658,
13,
1136,
7,
853,
11,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
318,
39098,
7,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
853,
29572,
13557,
4677,
437,
12502,
11,
1822,
29572,
13557,
22658,
12502,
4008,
628,
220,
220,
220,
825,
651,
62,
1930,
1859,
62,
785,
1154,
353,
7,
944,
11,
1426,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
3497,
262,
23838,
329,
257,
45203,
11507,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1426,
25,
6376,
286,
262,
11507,
532,
717,
5772,
338,
6376,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
383,
23838,
611,
340,
7160,
11,
2073,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
1930,
62,
785,
1154,
1010,
58,
1930,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
12901,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
45956,
803,
62,
21101,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
317,
45203,
11507,
318,
900,
284,
9585,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
45956,
803,
62,
21101,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
220,
220,
825,
651,
62,
1930,
1859,
62,
853,
62,
9630,
7,
944,
11,
26498,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
3497,
262,
45203,
6376,
286,
257,
23493,
11,
1912,
319,
198,
220,
220,
220,
220,
220,
220,
220,
11902,
7159,
290,
45203,
7159,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1351,
26498,
25,
7343,
286,
965,
7159,
422,
262,
9455,
6910,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
11241,
287,
26498,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
11241,
287,
2116,
13557,
18076,
62,
8841,
62,
4658,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
29130,
318,
281,
11902,
4578,
357,
409,
11,
705,
12,
85,
6,
1220,
705,
438,
19011,
577,
6,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
10134,
62,
8367,
7,
30001,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
32233,
45751,
468,
257,
1988,
3917,
351,
340,
11,
523,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4646,
6376,
284,
407,
954,
340,
338,
1988,
355,
257,
1426,
5772,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
48185,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1148,
257,
45203,
5772,
393,
1988,
329,
281,
11902,
4578,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1441,
6632,
12,
3106,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6376,
532,
352,
628,
220,
220,
220,
825,
751,
62,
49140,
7,
944,
11,
1635,
22046,
11,
1224,
353,
28,
14202,
11,
12429,
46265,
22046,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
853,
2886,
12,
26069,
263,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
3827,
13154,
751,
62,
49140,
2163,
286,
1822,
29572,
13,
28100,
1713,
46677,
284,
198,
220,
220,
220,
220,
220,
220,
220,
5412,
23838,
5499,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
26498,
25,
220,
220,
18574,
1859,
7159,
284,
1208,
510,
284,
1822,
29572,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2163,
1224,
353,
25,
32233,
23838,
2163,
329,
4578,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
479,
86,
22046,
25,
7383,
1818,
7159,
284,
1208,
510,
284,
1822,
29572,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
269,
65,
796,
1224,
353,
198,
220,
220,
220,
220,
220,
220,
220,
299,
22046,
796,
479,
86,
22046,
13,
1136,
10786,
77,
22046,
3256,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
34534,
796,
2116,
13,
40290,
62,
354,
945,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
26498,
393,
18896,
7,
22046,
8,
6624,
352,
290,
26498,
58,
15,
7131,
15,
60,
407,
287,
34534,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
645,
45203,
26498,
389,
14275,
393,
691,
530,
318,
14275,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
340,
1595,
470,
804,
588,
281,
3038,
4731,
11,
21136,
257,
45203,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4578,
357,
422,
1822,
29572,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
299,
22046,
290,
299,
22046,
287,
19203,
10,
3256,
705,
9,
3256,
1822,
29572,
13,
2200,
5673,
12115,
1137,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
18574,
1859,
5772,
460,
9585,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16888,
691,
7000,
262,
938,
20394,
1224,
353,
7368,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
45956,
803,
62,
21101,
796,
269,
65,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
1930,
62,
785,
1154,
1010,
13,
33295,
7,
21101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3060,
281,
11902,
4578,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1822,
287,
26498,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
404,
62,
785,
1154,
1010,
58,
853,
60,
796,
269,
65,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4889,
1822,
29572,
13,
2860,
62,
49140,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2208,
22446,
2860,
62,
49140,
46491,
22046,
11,
12429,
46265,
22046,
8,
628,
220,
220,
220,
825,
4049,
7,
944,
11,
3275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2025,
13396,
34,
4147,
13,
445,
11,
2116,
13,
1676,
70,
11,
366,
25,
4049,
25,
33172,
3275,
11,
1052,
13396,
34,
4147,
13,
42503,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41767,
11639,
3256,
2393,
28,
17597,
13,
301,
1082,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4798,
62,
26060,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
37023,
7,
16,
8,
628,
198,
4299,
12972,
862,
72,
62,
4798,
46491,
22046,
11,
41767,
11639,
46083,
886,
11639,
59,
77,
3256,
2393,
28,
14202,
11,
24773,
28,
17821,
11,
9647,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14441,
28,
17821,
11,
14441,
62,
40290,
28,
14202,
11,
6330,
62,
48277,
28,
17821,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
27323,
862,
262,
11244,
286,
262,
11361,
3170,
259,
4600,
4798,
63,
2163,
13,
383,
198,
220,
220,
220,
1058,
76,
2788,
25,
63,
9078,
862,
72,
13,
29149,
13,
23248,
13,
18769,
26418,
63,
23170,
1460,
262,
11361,
1058,
76,
2788,
25,
63,
4798,
63,
198,
220,
220,
220,
2163,
351,
1058,
76,
2788,
25,
63,
9078,
862,
72,
62,
4798,
44646,
628,
220,
220,
220,
1058,
17143,
965,
41767,
25,
4731,
284,
3601,
1022,
7159,
198,
220,
220,
220,
1058,
17143,
965,
886,
25,
4731,
284,
3601,
379,
262,
886,
286,
262,
5072,
198,
220,
220,
220,
1058,
17143,
2393,
2393,
25,
5072,
4269,
11,
611,
428,
318,
1058,
9979,
25,
63,
14202,
47671,
262,
4277,
318,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7890,
25,
63,
17597,
13,
19282,
448,
63,
198,
220,
220,
220,
1058,
17143,
20512,
24773,
25,
1771,
284,
24773,
262,
5072,
4269,
198,
220,
220,
220,
1058,
17143,
493,
9647,
25,
20957,
262,
4269,
338,
9647,
198,
220,
220,
220,
1058,
17143,
20512,
14441,
25,
1771,
284,
1573,
14441,
262,
5072,
198,
220,
220,
220,
1058,
17143,
965,
14441,
62,
40290,
25,
21231,
4731,
284,
3601,
3161,
284,
790,
649,
1627,
326,
198,
220,
220,
220,
220,
220,
220,
220,
318,
12908,
198,
220,
220,
220,
1058,
17143,
20512,
6330,
62,
48277,
25,
6330,
12515,
2095,
2173,
351,
262,
705,
8348,
198,
220,
220,
220,
220,
220,
220,
220,
2095,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
2393,
796,
2393,
393,
25064,
13,
19282,
448,
198,
220,
220,
220,
938,
796,
18896,
7,
22046,
8,
532,
352,
628,
220,
220,
220,
825,
3551,
62,
21230,
7,
7890,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
19430,
262,
5128,
965,
284,
262,
2393,
290,
11,
611,
281,
21004,
4049,
8833,
290,
198,
220,
220,
220,
220,
220,
220,
220,
6330,
62,
48277,
318,
7559,
17821,
15506,
11,
4781,
12515,
2438,
2173,
290,
3601,
757,
13,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
13,
13564,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
34371,
4834,
8189,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6330,
62,
48277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2207,
796,
651,
35226,
7,
7753,
11,
705,
12685,
7656,
3256,
25064,
13,
1136,
12286,
12685,
7656,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
13,
13564,
7,
7890,
13,
268,
8189,
7,
12685,
11,
8563,
11639,
33491,
27691,
12501,
1098,
7,
12685,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
628,
220,
220,
220,
611,
14441,
290,
468,
35226,
7,
7753,
11,
705,
10394,
11537,
290,
2393,
13,
10394,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9647,
796,
9647,
393,
2393,
13,
10394,
198,
220,
220,
220,
220,
220,
220,
220,
3354,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1822,
287,
26498,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
853,
11,
965,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3354,
13,
33295,
7,
853,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1822,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3354,
13,
33295,
7,
7061,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
853,
11,
1052,
13396,
10669,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2393,
13,
271,
265,
774,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3354,
13,
33295,
7,
2536,
7,
853,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1822,
13,
82,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3354,
13,
33295,
7,
2536,
7,
853,
13,
82,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3354,
13,
33295,
7,
2536,
7,
853,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
256,
742,
796,
41767,
13,
22179,
7,
42632,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
1370,
11,
886,
75,
8,
287,
651,
62,
6615,
7,
14116,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1627,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
717,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14441,
3919,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
12908,
287,
14441,
62,
1370,
7,
1370,
11,
9647,
11,
14441,
62,
40290,
28,
37150,
62,
40290,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
12908,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14441,
3919,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
717,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
13,
13564,
10786,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
717,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
21230,
7,
29988,
1496,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1627,
393,
886,
75,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
13,
13564,
10786,
59,
77,
11537,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
938,
796,
18896,
7,
22046,
8,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
72,
11,
1822,
8,
287,
27056,
378,
7,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
21230,
7,
2536,
7,
853,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
41767,
290,
1312,
14512,
938,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
21230,
7,
325,
79,
8,
628,
220,
220,
220,
611,
886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
21230,
7,
437,
8,
198,
220,
220,
220,
611,
24773,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
13,
25925,
3419,
198
] | 2.510978 | 7,196 |
QUESTIONS = ['a', 'b', 'c', 'x', 'y', 'z']
def anyone(group):
answers = []
for person in group:
answers.extend(person)
return len(set(answers))
def everyone(group):
answers = set.intersection(*(set(person) for person in group))
return len(answers)
if __name__ == '__main__':
with open('input') as file:
groups = []
group = []
for row in file:
row = row.strip()
if not row:
groups.append(group)
group = []
continue
group.append(row)
groups.append(group)
print(sum(map(anyone, groups)))
print(sum(map(everyone, groups)))
| [
35780,
11053,
796,
37250,
64,
3256,
705,
65,
3256,
705,
66,
3256,
705,
87,
3256,
705,
88,
3256,
705,
89,
20520,
198,
198,
4299,
2687,
7,
8094,
2599,
198,
220,
220,
220,
7429,
796,
17635,
198,
220,
220,
220,
329,
1048,
287,
1448,
25,
198,
220,
220,
220,
220,
220,
220,
220,
7429,
13,
2302,
437,
7,
6259,
8,
198,
220,
220,
220,
1441,
18896,
7,
2617,
7,
504,
86,
364,
4008,
198,
198,
4299,
2506,
7,
8094,
2599,
198,
220,
220,
220,
7429,
796,
900,
13,
3849,
5458,
46491,
7,
2617,
7,
6259,
8,
329,
1048,
287,
1448,
4008,
198,
220,
220,
220,
1441,
18896,
7,
504,
86,
364,
8,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
351,
1280,
10786,
15414,
11537,
355,
2393,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2628,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1448,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5752,
287,
2393,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5752,
796,
5752,
13,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
5752,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2628,
13,
33295,
7,
8094,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1448,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1448,
13,
33295,
7,
808,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2628,
13,
33295,
7,
8094,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
16345,
7,
8899,
7,
1092,
505,
11,
2628,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
16345,
7,
8899,
7,
47057,
11,
2628,
22305,
198
] | 2.069277 | 332 |
from dataclasses import dataclass
from typing import Any, Dict, Generator, List, Optional
from .base import (
Blob,
Bucket,
BucketClient,
BucketEntry,
ClientError,
PathyScanDir,
PurePathy,
)
try:
from google.api_core import exceptions as gcs_errors # type:ignore
from google.auth.exceptions import DefaultCredentialsError # type:ignore
from google.cloud.storage import Blob as GCSNativeBlob # type:ignore
from google.cloud.storage import Bucket as GCSNativeBucket # type:ignore
from google.cloud.storage import Client as GCSNativeClient # type:ignore
has_gcs = True
except ImportError:
GCSNativeBlob = Any
DefaultCredentialsError = BaseException
gcs_errors = Any
GCSNativeBucket = Any
GCSNativeClient = Any
has_gcs = False
_MISSING_DEPS = """You are using the GCS functionality of Pathy without
having the required dependencies installed.
Please try installing them:
pip install pathy[gcs]
"""
class BucketEntryGCS(BucketEntry["BucketGCS", GCSNativeBlob]):
...
class BucketClientGCS(BucketClient):
client: Optional[GCSNativeClient]
def __init__(self, **kwargs: Any) -> None:
self.recreate(**kwargs)
def recreate(self, **kwargs: Any) -> None:
creds = kwargs["credentials"] if "credentials" in kwargs else None
if creds is not None:
kwargs["project"] = creds.project_id
try:
self.client = GCSNativeClient(**kwargs)
except TypeError:
# TypeError is raised if the imports for GCSNativeClient fail and are
# assigned to Any, which is not callable.
self.client = None
def make_uri(self, path: PurePathy) -> str:
return str(path)
def create_bucket(self, path: PurePathy) -> Bucket:
assert self.client is not None, _MISSING_DEPS
return self.client.create_bucket(path.root)
def delete_bucket(self, path: PurePathy) -> None:
assert self.client is not None, _MISSING_DEPS
bucket = self.client.get_bucket(path.root)
bucket.delete()
def exists(self, path: PurePathy) -> bool:
# Because we want all the parents of a valid blob (e.g. "directory" in
# "directory/foo.file") to return True, we enumerate the blobs with a prefix
# and compare the object names to see if they match a substring of the path
key_name = str(path.key)
try:
for obj in self.list_blobs(path):
if obj.name == key_name:
return True
if obj.name.startswith(key_name + path._flavour.sep):
return True
except gcs_errors.ClientError:
return False
return False
def lookup_bucket(self, path: PurePathy) -> Optional[BucketGCS]:
assert self.client is not None, _MISSING_DEPS
try:
native_bucket = self.client.bucket(path.root)
if native_bucket is not None:
return BucketGCS(str(path.root), bucket=native_bucket)
except gcs_errors.ClientError as err:
print(err)
return None
def get_bucket(self, path: PurePathy) -> BucketGCS:
assert self.client is not None, _MISSING_DEPS
try:
native_bucket = self.client.bucket(path.root)
if native_bucket is not None:
return BucketGCS(str(path.root), bucket=native_bucket)
raise FileNotFoundError(f"Bucket {path.root} does not exist!")
except gcs_errors.ClientError as e:
raise ClientError(message=e.message, code=e.code)
def list_buckets(
self, **kwargs: Dict[str, Any]
) -> Generator[GCSNativeBucket, None, None]:
assert self.client is not None, _MISSING_DEPS
return self.client.list_buckets(**kwargs) # type:ignore
def scandir( # type:ignore[override]
self,
path: Optional[PurePathy] = None,
prefix: Optional[str] = None,
delimiter: Optional[str] = None,
) -> PathyScanDir:
return _GCSScanDir(client=self, path=path, prefix=prefix, delimiter=delimiter)
class _GCSScanDir(PathyScanDir):
_client: BucketClientGCS
| [
6738,
4818,
330,
28958,
1330,
4818,
330,
31172,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
35986,
11,
7343,
11,
32233,
198,
198,
6738,
764,
8692,
1330,
357,
198,
220,
220,
220,
1086,
672,
11,
198,
220,
220,
220,
48353,
11,
198,
220,
220,
220,
48353,
11792,
11,
198,
220,
220,
220,
48353,
30150,
11,
198,
220,
220,
220,
20985,
12331,
11,
198,
220,
220,
220,
350,
10036,
33351,
35277,
11,
198,
220,
220,
220,
17129,
47,
10036,
11,
198,
8,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
23645,
13,
15042,
62,
7295,
1330,
13269,
355,
308,
6359,
62,
48277,
220,
1303,
2099,
25,
46430,
198,
220,
220,
220,
422,
23645,
13,
18439,
13,
1069,
11755,
1330,
15161,
34,
445,
14817,
12331,
220,
1303,
2099,
25,
46430,
198,
220,
220,
220,
422,
23645,
13,
17721,
13,
35350,
1330,
1086,
672,
355,
402,
7902,
31272,
3629,
672,
220,
1303,
2099,
25,
46430,
198,
220,
220,
220,
422,
23645,
13,
17721,
13,
35350,
1330,
48353,
355,
402,
7902,
31272,
33,
38811,
220,
1303,
2099,
25,
46430,
198,
220,
220,
220,
422,
23645,
13,
17721,
13,
35350,
1330,
20985,
355,
402,
7902,
31272,
11792,
220,
1303,
2099,
25,
46430,
628,
220,
220,
220,
468,
62,
70,
6359,
796,
6407,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
402,
7902,
31272,
3629,
672,
796,
4377,
198,
220,
220,
220,
15161,
34,
445,
14817,
12331,
796,
7308,
16922,
198,
220,
220,
220,
308,
6359,
62,
48277,
796,
4377,
198,
220,
220,
220,
402,
7902,
31272,
33,
38811,
796,
4377,
198,
220,
220,
220,
402,
7902,
31272,
11792,
796,
4377,
198,
220,
220,
220,
468,
62,
70,
6359,
796,
10352,
198,
198,
62,
44,
16744,
2751,
62,
7206,
3705,
796,
37227,
1639,
389,
1262,
262,
402,
7902,
11244,
286,
350,
10036,
1231,
198,
40965,
262,
2672,
20086,
6589,
13,
198,
198,
5492,
1949,
15975,
606,
25,
628,
220,
220,
220,
7347,
2721,
3108,
88,
58,
70,
6359,
60,
198,
198,
37811,
628,
198,
4871,
48353,
30150,
38,
7902,
7,
33,
38811,
30150,
14692,
33,
38811,
38,
7902,
1600,
402,
7902,
31272,
3629,
672,
60,
2599,
198,
220,
220,
220,
2644,
628,
628,
198,
4871,
48353,
11792,
38,
7902,
7,
33,
38811,
11792,
2599,
198,
220,
220,
220,
5456,
25,
32233,
58,
38,
7902,
31272,
11792,
60,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
22046,
25,
4377,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
260,
17953,
7,
1174,
46265,
22046,
8,
628,
220,
220,
220,
825,
32049,
7,
944,
11,
12429,
46265,
22046,
25,
4377,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2600,
82,
796,
479,
86,
22046,
14692,
66,
445,
14817,
8973,
611,
366,
66,
445,
14817,
1,
287,
479,
86,
22046,
2073,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2600,
82,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
14692,
16302,
8973,
796,
2600,
82,
13,
16302,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
796,
402,
7902,
31272,
11792,
7,
1174,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
5994,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5994,
12331,
318,
4376,
611,
262,
17944,
329,
402,
7902,
31272,
11792,
2038,
290,
389,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
8686,
284,
4377,
11,
543,
318,
407,
869,
540,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
796,
6045,
628,
220,
220,
220,
825,
787,
62,
9900,
7,
944,
11,
3108,
25,
17129,
47,
10036,
8,
4613,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
965,
7,
6978,
8,
628,
220,
220,
220,
825,
2251,
62,
27041,
316,
7,
944,
11,
3108,
25,
17129,
47,
10036,
8,
4613,
48353,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
16366,
318,
407,
6045,
11,
4808,
44,
16744,
2751,
62,
7206,
3705,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
16366,
13,
17953,
62,
27041,
316,
7,
6978,
13,
15763,
8,
628,
220,
220,
220,
825,
12233,
62,
27041,
316,
7,
944,
11,
3108,
25,
17129,
47,
10036,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
16366,
318,
407,
6045,
11,
4808,
44,
16744,
2751,
62,
7206,
3705,
198,
220,
220,
220,
220,
220,
220,
220,
19236,
796,
2116,
13,
16366,
13,
1136,
62,
27041,
316,
7,
6978,
13,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
19236,
13,
33678,
3419,
628,
220,
220,
220,
825,
7160,
7,
944,
11,
3108,
25,
17129,
47,
10036,
8,
4613,
20512,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4362,
356,
765,
477,
262,
3397,
286,
257,
4938,
44812,
357,
68,
13,
70,
13,
366,
34945,
1,
287,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
366,
34945,
14,
21943,
13,
7753,
4943,
284,
1441,
6407,
11,
356,
27056,
378,
262,
698,
8158,
351,
257,
21231,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
290,
8996,
262,
2134,
3891,
284,
766,
611,
484,
2872,
257,
3293,
1806,
286,
262,
3108,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
3672,
796,
965,
7,
6978,
13,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
26181,
287,
2116,
13,
4868,
62,
2436,
8158,
7,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
26181,
13,
3672,
6624,
1994,
62,
3672,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
26181,
13,
3672,
13,
9688,
2032,
342,
7,
2539,
62,
3672,
1343,
3108,
13557,
2704,
29023,
13,
325,
79,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
308,
6359,
62,
48277,
13,
11792,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
628,
220,
220,
220,
825,
35847,
62,
27041,
316,
7,
944,
11,
3108,
25,
17129,
47,
10036,
8,
4613,
32233,
58,
33,
38811,
38,
7902,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
16366,
318,
407,
6045,
11,
4808,
44,
16744,
2751,
62,
7206,
3705,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6868,
62,
27041,
316,
796,
2116,
13,
16366,
13,
27041,
316,
7,
6978,
13,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6868,
62,
27041,
316,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
48353,
38,
7902,
7,
2536,
7,
6978,
13,
15763,
828,
19236,
28,
30191,
62,
27041,
316,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
308,
6359,
62,
48277,
13,
11792,
12331,
355,
11454,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
8056,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
220,
220,
825,
651,
62,
27041,
316,
7,
944,
11,
3108,
25,
17129,
47,
10036,
8,
4613,
48353,
38,
7902,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
16366,
318,
407,
6045,
11,
4808,
44,
16744,
2751,
62,
7206,
3705,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6868,
62,
27041,
316,
796,
2116,
13,
16366,
13,
27041,
316,
7,
6978,
13,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6868,
62,
27041,
316,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
48353,
38,
7902,
7,
2536,
7,
6978,
13,
15763,
828,
19236,
28,
30191,
62,
27041,
316,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
9220,
3673,
21077,
12331,
7,
69,
1,
33,
38811,
1391,
6978,
13,
15763,
92,
857,
407,
2152,
2474,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
308,
6359,
62,
48277,
13,
11792,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
20985,
12331,
7,
20500,
28,
68,
13,
20500,
11,
2438,
28,
68,
13,
8189,
8,
628,
220,
220,
220,
825,
1351,
62,
27041,
1039,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
12429,
46265,
22046,
25,
360,
713,
58,
2536,
11,
4377,
60,
198,
220,
220,
220,
1267,
4613,
35986,
58,
38,
7902,
31272,
33,
38811,
11,
6045,
11,
6045,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
16366,
318,
407,
6045,
11,
4808,
44,
16744,
2751,
62,
7206,
3705,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
16366,
13,
4868,
62,
27041,
1039,
7,
1174,
46265,
22046,
8,
220,
1303,
2099,
25,
46430,
628,
220,
220,
220,
825,
629,
392,
343,
7,
220,
1303,
2099,
25,
46430,
58,
2502,
13154,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
25,
32233,
58,
49548,
47,
10036,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
25,
32233,
58,
2536,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
46728,
2676,
25,
32233,
58,
2536,
60,
796,
6045,
11,
198,
220,
220,
220,
1267,
4613,
350,
10036,
33351,
35277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4808,
38,
7902,
33351,
35277,
7,
16366,
28,
944,
11,
3108,
28,
6978,
11,
21231,
28,
40290,
11,
46728,
2676,
28,
12381,
320,
2676,
8,
628,
198,
4871,
4808,
38,
7902,
33351,
35277,
7,
47,
10036,
33351,
35277,
2599,
198,
220,
220,
220,
4808,
16366,
25,
48353,
11792,
38,
7902,
198
] | 2.388636 | 1,760 |
# -*- coding: utf-8 -*-
from time import sleep
from bs4 import BeautifulSoup
import csv
import requests
links = []
items = []
for i in range(1,38):
endpoint = f"https://baby.webteb.com/baby-names/%D8%A7%D8%B3%D9%85%D8%A7%D8%A1-%D8%A7%D9%88%D9%84%D8%A7%D8%AF-%D9%88%D8%A8%D9%86%D8%A7%D8%AA?pageindex={i}"
get_response = requests.get(endpoint)
# print(get_response.content)
soup = BeautifulSoup(get_response.content, 'lxml')
# print(soup.prettify())
section = soup.find('div', {'class':'page-section'})
for li in section.find_all('li'):
links.append(li.a['href'])
print(f'{i}', li.a['href'])
for i, link in zip(range(1,len(links)+1), links):
url = f"https://baby.webteb.com{link}"
get_response = requests.get(url)
soup = BeautifulSoup(get_response.content, 'lxml')
content = soup.find('div', {'class':'section name'})
section1 = content.find('div', {'class':'section'})
name_detail = content.find('div', {'class':'name-details'})
section2 = name_detail.find('div', {'class':'section'})
span = section2.find('span', {'class':'latin'})
item = {}
if content.h1.text:
item['arabic_name'] = content.h1.text
if section1.p.text:
item['meaning'] = section1.p.text
if span.text:
item['english_name'] = span.text
print(i, content.h1.text, section1.p.text, span.text)
items.append(item)
filename = '/home/naga/dev/babyNamesScraping/project/both.csv'
with open(filename, 'w', newline='') as f:
w = csv.DictWriter(f, fieldnames=['arabic_name','meaning', 'english_name'], extrasaction='ignore' , delimiter = ';')
w.writeheader()
print(items)
for item in items:
w.writerow(item)
print(item)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
640,
1330,
3993,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
198,
11748,
269,
21370,
198,
11748,
7007,
198,
198,
28751,
796,
17635,
198,
23814,
796,
17635,
198,
198,
1640,
1312,
287,
2837,
7,
16,
11,
2548,
2599,
198,
220,
220,
220,
36123,
796,
277,
1,
5450,
1378,
40252,
13,
12384,
660,
65,
13,
785,
14,
40252,
12,
14933,
14,
4,
35,
23,
4,
32,
22,
4,
35,
23,
4,
33,
18,
4,
35,
24,
4,
5332,
4,
35,
23,
4,
32,
22,
4,
35,
23,
4,
32,
16,
12,
4,
35,
23,
4,
32,
22,
4,
35,
24,
4,
3459,
4,
35,
24,
4,
5705,
4,
35,
23,
4,
32,
22,
4,
35,
23,
4,
8579,
12,
4,
35,
24,
4,
3459,
4,
35,
23,
4,
32,
23,
4,
35,
24,
4,
4521,
4,
35,
23,
4,
32,
22,
4,
35,
23,
4,
3838,
30,
7700,
9630,
34758,
72,
36786,
628,
220,
220,
220,
651,
62,
26209,
796,
7007,
13,
1136,
7,
437,
4122,
8,
198,
220,
220,
220,
1303,
3601,
7,
1136,
62,
26209,
13,
11299,
8,
628,
220,
220,
220,
17141,
796,
23762,
50,
10486,
7,
1136,
62,
26209,
13,
11299,
11,
705,
75,
19875,
11537,
198,
220,
220,
220,
1303,
3601,
7,
82,
10486,
13,
3866,
926,
1958,
28955,
628,
220,
220,
220,
2665,
796,
17141,
13,
19796,
10786,
7146,
3256,
1391,
6,
4871,
10354,
6,
7700,
12,
5458,
6,
30072,
628,
220,
220,
220,
329,
7649,
287,
2665,
13,
19796,
62,
439,
10786,
4528,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6117,
13,
33295,
7,
4528,
13,
64,
17816,
33257,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
6,
90,
72,
92,
3256,
7649,
13,
64,
17816,
33257,
6,
12962,
628,
198,
1640,
1312,
11,
2792,
287,
19974,
7,
9521,
7,
16,
11,
11925,
7,
28751,
47762,
16,
828,
6117,
2599,
198,
220,
220,
220,
19016,
796,
277,
1,
5450,
1378,
40252,
13,
12384,
660,
65,
13,
785,
90,
8726,
36786,
628,
220,
220,
220,
651,
62,
26209,
796,
7007,
13,
1136,
7,
6371,
8,
628,
220,
220,
220,
17141,
796,
23762,
50,
10486,
7,
1136,
62,
26209,
13,
11299,
11,
705,
75,
19875,
11537,
628,
220,
220,
220,
2695,
796,
17141,
13,
19796,
10786,
7146,
3256,
1391,
6,
4871,
10354,
6,
5458,
1438,
6,
30072,
198,
220,
220,
220,
2665,
16,
796,
2695,
13,
19796,
10786,
7146,
3256,
1391,
6,
4871,
10354,
6,
5458,
6,
30072,
198,
220,
220,
220,
1438,
62,
49170,
796,
2695,
13,
19796,
10786,
7146,
3256,
1391,
6,
4871,
10354,
6,
3672,
12,
36604,
6,
30072,
198,
220,
220,
220,
2665,
17,
796,
1438,
62,
49170,
13,
19796,
10786,
7146,
3256,
1391,
6,
4871,
10354,
6,
5458,
6,
30072,
198,
220,
220,
220,
11506,
796,
2665,
17,
13,
19796,
10786,
12626,
3256,
1391,
6,
4871,
10354,
6,
75,
10680,
6,
30072,
628,
220,
220,
220,
2378,
796,
23884,
198,
220,
220,
220,
611,
2695,
13,
71,
16,
13,
5239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2378,
17816,
283,
397,
291,
62,
3672,
20520,
796,
2695,
13,
71,
16,
13,
5239,
198,
220,
220,
220,
611,
2665,
16,
13,
79,
13,
5239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2378,
17816,
24815,
20520,
796,
2665,
16,
13,
79,
13,
5239,
198,
220,
220,
220,
611,
11506,
13,
5239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2378,
17816,
39126,
62,
3672,
20520,
796,
11506,
13,
5239,
628,
220,
220,
220,
3601,
7,
72,
11,
2695,
13,
71,
16,
13,
5239,
11,
2665,
16,
13,
79,
13,
5239,
11,
11506,
13,
5239,
8,
628,
220,
220,
220,
3709,
13,
33295,
7,
9186,
8,
628,
198,
34345,
796,
31051,
11195,
14,
77,
8126,
14,
7959,
14,
40252,
36690,
3351,
2416,
278,
14,
16302,
14,
16885,
13,
40664,
6,
198,
4480,
1280,
7,
34345,
11,
705,
86,
3256,
649,
1370,
28,
7061,
8,
355,
277,
25,
198,
220,
220,
220,
266,
796,
269,
21370,
13,
35,
713,
34379,
7,
69,
11,
2214,
14933,
28,
17816,
283,
397,
291,
62,
3672,
41707,
24815,
3256,
705,
39126,
62,
3672,
6,
4357,
33849,
2673,
11639,
46430,
6,
837,
46728,
2676,
796,
705,
26,
11537,
198,
220,
220,
220,
266,
13,
13564,
25677,
3419,
198,
220,
220,
220,
3601,
7,
23814,
8,
198,
220,
220,
220,
329,
2378,
287,
3709,
25,
198,
220,
220,
220,
220,
220,
220,
220,
266,
13,
16002,
322,
7,
9186,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
9186,
8,
198,
220,
220,
220,
220
] | 2.258065 | 775 |
from typing import Tuple
import haiku as hk
import jax.numpy as jnp
import numpyro
from absl import flags
from numpyro.distributions.continuous import MultivariateNormal
from sde import drifts, diffusions
Array = jnp.ndarray
flags.DEFINE_enum("solver", "strong_3_halfs", ["euler_maruyama", "strong_3_halfs"], "Solver to use.")
FLAGS = flags.FLAGS
class BaseSolver:
def __init__(self, delta_t: float, beta_dims: int, drift: drifts.BaseDrift, diffusion: diffusions.BaseDiffusion):
self.delta_t = delta_t
self.beta_dims = beta_dims
self.drift = drift
self.diffusion = diffusion
def __call__(self, x_0: Array, time: float) -> Array:
raise NotImplementedError
class EulerMaruyamaSolver(BaseSolver):
def __init__(self, delta_t: float, beta_dims: int, drift: drifts.BaseDrift, diffusion: diffusions.BaseDiffusion):
super().__init__(delta_t, beta_dims, drift, diffusion)
def __call__(self, x_0: Array, time: float) -> Array:
rng_beta = hk.next_rng_key()
delta_beta = numpyro.sample("delta_beta",
MultivariateNormal(
loc=jnp.zeros(self.beta_dims),
scale_tril=jnp.sqrt(self.delta_t) * jnp.eye(self.beta_dims)),
rng_key=rng_beta)
drift = self.drift(x_0, time)
diff = self.diffusion(x_0, time)
x_1 = x_0 + drift * self.delta_t + jnp.matmul(diff, delta_beta)
return x_1
class Strong3HalfsSolver(BaseSolver):
def __init__(self, delta_t: float, beta_dims: int, drift: drifts.BaseDrift, diffusion: diffusions.BaseDiffusion):
super().__init__(delta_t, beta_dims, drift, diffusion)
def __call__(self, x_0: Array, time: float) -> Array:
rng_beta = hk.next_rng_key()
# Vector of zeros
beta_mean_vector = jnp.zeros((self.beta_dims*2, ))
# Covariance matrix for the betas and gammas
beta_covariance_top_left = self.delta_t ** 3 / 3 * jnp.eye(self.beta_dims)
beta_covariance_top_right = self.delta_t ** 2 / 2 * jnp.eye(self.beta_dims)
beta_covariance_bottom_right = self.delta_t * jnp.eye(self.beta_dims)
beta_covariance_top = jnp.concatenate((beta_covariance_top_left, beta_covariance_top_right), axis=1)
beta_covariance_bottom = jnp.concatenate((beta_covariance_top_right, beta_covariance_bottom_right),
axis=1)
beta_covariance = jnp.concatenate((beta_covariance_top, beta_covariance_bottom), axis=0)
delta_gamma_beta = numpyro.sample("delta_gamma_beta",
MultivariateNormal(loc=beta_mean_vector,
covariance_matrix=beta_covariance),
rng_key=rng_beta)
delta_gamma = delta_gamma_beta[:self.beta_dims]
delta_beta = delta_gamma_beta[self.beta_dims:]
drift_0 = self.drift(x_0, time)
diff = self.diffusion(x_0, time)
diff_plus = self.diffusion(x_0, time + self.delta_t)
init_x_1 = x_0 + drift_0 * self.delta_t + jnp.matmul(diff, delta_beta)
init_x_1 += 1. / self.delta_t * jnp.matmul(diff_plus - diff, delta_beta * self.delta_t - delta_gamma)
def scan_fn(carry, s):
x_1 = carry
x_0_plus = \
x_0 + drift_0 * self.delta_t / self.beta_dims + \
diff[:, s] * jnp.sqrt(self.delta_t)
x_0_minus = \
x_0 + drift_0 * self.delta_t / self.beta_dims - \
diff[:, s] * jnp.sqrt(self.delta_t)
drift_0_plus = self.drift(x_0_plus, time + self.delta_t)
drift_0_minus = self.drift(x_0_minus, time + self.delta_t)
x_1 += 0.25 * self.delta_t * (drift_0_plus + drift_0_minus)
x_1 -= 0.5 * drift_0 * self.delta_t
x_1 += \
1. / (2 * jnp.sqrt(self.delta_t)) * (drift_0_plus - drift_0_minus) * delta_gamma[s]
return x_1, None
final_x_1, _ = hk.scan(scan_fn, init_x_1, jnp.arange(self.beta_dims))
return final_x_1
solvers_dict = {
"euler_maruyama": EulerMaruyamaSolver,
"strong_3_halfs": Strong3HalfsSolver
}
| [
6738,
19720,
1330,
309,
29291,
198,
198,
11748,
387,
28643,
355,
289,
74,
198,
11748,
474,
897,
13,
77,
32152,
355,
474,
37659,
198,
11748,
299,
32152,
305,
198,
6738,
2352,
75,
1330,
9701,
198,
6738,
299,
32152,
305,
13,
17080,
2455,
507,
13,
18487,
5623,
1330,
7854,
42524,
26447,
198,
198,
6738,
264,
2934,
1330,
1553,
19265,
11,
814,
15880,
198,
198,
19182,
796,
474,
37659,
13,
358,
18747,
198,
198,
33152,
13,
7206,
29940,
62,
44709,
7203,
82,
14375,
1600,
366,
11576,
62,
18,
62,
13959,
82,
1600,
14631,
68,
18173,
62,
3876,
4669,
1689,
1600,
366,
11576,
62,
18,
62,
13959,
82,
33116,
366,
50,
14375,
284,
779,
19570,
198,
38948,
50,
796,
9701,
13,
38948,
50,
628,
198,
4871,
7308,
50,
14375,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
25979,
62,
83,
25,
12178,
11,
12159,
62,
67,
12078,
25,
493,
11,
24260,
25,
1553,
19265,
13,
14881,
6187,
2135,
11,
44258,
25,
814,
15880,
13,
14881,
28813,
4241,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
67,
12514,
62,
83,
796,
25979,
62,
83,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31361,
62,
67,
12078,
796,
12159,
62,
67,
12078,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7109,
2135,
796,
24260,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
26069,
4241,
796,
44258,
628,
220,
220,
220,
825,
11593,
13345,
834,
7,
944,
11,
2124,
62,
15,
25,
15690,
11,
640,
25,
12178,
8,
4613,
15690,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
628,
198,
4871,
412,
18173,
7676,
4669,
1689,
50,
14375,
7,
14881,
50,
14375,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
25979,
62,
83,
25,
12178,
11,
12159,
62,
67,
12078,
25,
493,
11,
24260,
25,
1553,
19265,
13,
14881,
6187,
2135,
11,
44258,
25,
814,
15880,
13,
14881,
28813,
4241,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
67,
12514,
62,
83,
11,
12159,
62,
67,
12078,
11,
24260,
11,
44258,
8,
628,
220,
220,
220,
825,
11593,
13345,
834,
7,
944,
11,
2124,
62,
15,
25,
15690,
11,
640,
25,
12178,
8,
4613,
15690,
25,
198,
220,
220,
220,
220,
220,
220,
220,
374,
782,
62,
31361,
796,
289,
74,
13,
19545,
62,
81,
782,
62,
2539,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
25979,
62,
31361,
796,
299,
32152,
305,
13,
39873,
7203,
67,
12514,
62,
31361,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7854,
42524,
26447,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1179,
28,
73,
37659,
13,
9107,
418,
7,
944,
13,
31361,
62,
67,
12078,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
62,
2213,
346,
28,
73,
37659,
13,
31166,
17034,
7,
944,
13,
67,
12514,
62,
83,
8,
1635,
474,
37659,
13,
25379,
7,
944,
13,
31361,
62,
67,
12078,
36911,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
782,
62,
2539,
28,
81,
782,
62,
31361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
24260,
796,
2116,
13,
7109,
2135,
7,
87,
62,
15,
11,
640,
8,
198,
220,
220,
220,
220,
220,
220,
220,
814,
796,
2116,
13,
26069,
4241,
7,
87,
62,
15,
11,
640,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
16,
796,
2124,
62,
15,
1343,
24260,
1635,
2116,
13,
67,
12514,
62,
83,
1343,
474,
37659,
13,
6759,
76,
377,
7,
26069,
11,
25979,
62,
31361,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
62,
16,
628,
198,
4871,
13535,
18,
31305,
82,
50,
14375,
7,
14881,
50,
14375,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
25979,
62,
83,
25,
12178,
11,
12159,
62,
67,
12078,
25,
493,
11,
24260,
25,
1553,
19265,
13,
14881,
6187,
2135,
11,
44258,
25,
814,
15880,
13,
14881,
28813,
4241,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
67,
12514,
62,
83,
11,
12159,
62,
67,
12078,
11,
24260,
11,
44258,
8,
628,
220,
220,
220,
825,
11593,
13345,
834,
7,
944,
11,
2124,
62,
15,
25,
15690,
11,
640,
25,
12178,
8,
4613,
15690,
25,
198,
220,
220,
220,
220,
220,
220,
220,
374,
782,
62,
31361,
796,
289,
74,
13,
19545,
62,
81,
782,
62,
2539,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
20650,
286,
1976,
27498,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
32604,
62,
31364,
796,
474,
37659,
13,
9107,
418,
19510,
944,
13,
31361,
62,
67,
12078,
9,
17,
11,
15306,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
39751,
2743,
590,
17593,
329,
262,
731,
292,
290,
9106,
5356,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
66,
709,
2743,
590,
62,
4852,
62,
9464,
796,
2116,
13,
67,
12514,
62,
83,
12429,
513,
1220,
513,
1635,
474,
37659,
13,
25379,
7,
944,
13,
31361,
62,
67,
12078,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
66,
709,
2743,
590,
62,
4852,
62,
3506,
796,
2116,
13,
67,
12514,
62,
83,
12429,
362,
1220,
362,
1635,
474,
37659,
13,
25379,
7,
944,
13,
31361,
62,
67,
12078,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
66,
709,
2743,
590,
62,
22487,
62,
3506,
796,
2116,
13,
67,
12514,
62,
83,
1635,
474,
37659,
13,
25379,
7,
944,
13,
31361,
62,
67,
12078,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
66,
709,
2743,
590,
62,
4852,
796,
474,
37659,
13,
1102,
9246,
268,
378,
19510,
31361,
62,
66,
709,
2743,
590,
62,
4852,
62,
9464,
11,
12159,
62,
66,
709,
2743,
590,
62,
4852,
62,
3506,
828,
16488,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
66,
709,
2743,
590,
62,
22487,
796,
474,
37659,
13,
1102,
9246,
268,
378,
19510,
31361,
62,
66,
709,
2743,
590,
62,
4852,
62,
3506,
11,
12159,
62,
66,
709,
2743,
590,
62,
22487,
62,
3506,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16488,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
12159,
62,
66,
709,
2743,
590,
796,
474,
37659,
13,
1102,
9246,
268,
378,
19510,
31361,
62,
66,
709,
2743,
590,
62,
4852,
11,
12159,
62,
66,
709,
2743,
590,
62,
22487,
828,
16488,
28,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
25979,
62,
28483,
2611,
62,
31361,
796,
299,
32152,
305,
13,
39873,
7203,
67,
12514,
62,
28483,
2611,
62,
31361,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7854,
42524,
26447,
7,
17946,
28,
31361,
62,
32604,
62,
31364,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44829,
590,
62,
6759,
8609,
28,
31361,
62,
66,
709,
2743,
590,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
782,
62,
2539,
28,
81,
782,
62,
31361,
8,
628,
220,
220,
220,
220,
220,
220,
220,
25979,
62,
28483,
2611,
796,
25979,
62,
28483,
2611,
62,
31361,
58,
25,
944,
13,
31361,
62,
67,
12078,
60,
198,
220,
220,
220,
220,
220,
220,
220,
25979,
62,
31361,
796,
25979,
62,
28483,
2611,
62,
31361,
58,
944,
13,
31361,
62,
67,
12078,
47715,
628,
220,
220,
220,
220,
220,
220,
220,
24260,
62,
15,
796,
2116,
13,
7109,
2135,
7,
87,
62,
15,
11,
640,
8,
198,
220,
220,
220,
220,
220,
220,
220,
814,
796,
2116,
13,
26069,
4241,
7,
87,
62,
15,
11,
640,
8,
198,
220,
220,
220,
220,
220,
220,
220,
814,
62,
9541,
796,
2116,
13,
26069,
4241,
7,
87,
62,
15,
11,
640,
1343,
2116,
13,
67,
12514,
62,
83,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2315,
62,
87,
62,
16,
796,
2124,
62,
15,
1343,
24260,
62,
15,
1635,
2116,
13,
67,
12514,
62,
83,
1343,
474,
37659,
13,
6759,
76,
377,
7,
26069,
11,
25979,
62,
31361,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2315,
62,
87,
62,
16,
15853,
352,
13,
1220,
2116,
13,
67,
12514,
62,
83,
1635,
474,
37659,
13,
6759,
76,
377,
7,
26069,
62,
9541,
532,
814,
11,
25979,
62,
31361,
1635,
2116,
13,
67,
12514,
62,
83,
532,
25979,
62,
28483,
2611,
8,
628,
220,
220,
220,
220,
220,
220,
220,
825,
9367,
62,
22184,
7,
34993,
11,
264,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
16,
796,
3283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
15,
62,
9541,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
15,
1343,
24260,
62,
15,
1635,
2116,
13,
67,
12514,
62,
83,
1220,
2116,
13,
31361,
62,
67,
12078,
1343,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
814,
58,
45299,
264,
60,
1635,
474,
37659,
13,
31166,
17034,
7,
944,
13,
67,
12514,
62,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
15,
62,
40191,
796,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
15,
1343,
24260,
62,
15,
1635,
2116,
13,
67,
12514,
62,
83,
1220,
2116,
13,
31361,
62,
67,
12078,
532,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
814,
58,
45299,
264,
60,
1635,
474,
37659,
13,
31166,
17034,
7,
944,
13,
67,
12514,
62,
83,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24260,
62,
15,
62,
9541,
796,
2116,
13,
7109,
2135,
7,
87,
62,
15,
62,
9541,
11,
640,
1343,
2116,
13,
67,
12514,
62,
83,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24260,
62,
15,
62,
40191,
796,
2116,
13,
7109,
2135,
7,
87,
62,
15,
62,
40191,
11,
640,
1343,
2116,
13,
67,
12514,
62,
83,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
16,
15853,
657,
13,
1495,
1635,
2116,
13,
67,
12514,
62,
83,
1635,
357,
7109,
2135,
62,
15,
62,
9541,
1343,
24260,
62,
15,
62,
40191,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
16,
48185,
657,
13,
20,
1635,
24260,
62,
15,
1635,
2116,
13,
67,
12514,
62,
83,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
62,
16,
15853,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
352,
13,
1220,
357,
17,
1635,
474,
37659,
13,
31166,
17034,
7,
944,
13,
67,
12514,
62,
83,
4008,
1635,
357,
7109,
2135,
62,
15,
62,
9541,
532,
24260,
62,
15,
62,
40191,
8,
1635,
25979,
62,
28483,
2611,
58,
82,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2124,
62,
16,
11,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
2457,
62,
87,
62,
16,
11,
4808,
796,
289,
74,
13,
35836,
7,
35836,
62,
22184,
11,
2315,
62,
87,
62,
16,
11,
474,
37659,
13,
283,
858,
7,
944,
13,
31361,
62,
67,
12078,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2457,
62,
87,
62,
16,
628,
198,
34453,
690,
62,
11600,
796,
1391,
198,
220,
220,
220,
366,
68,
18173,
62,
3876,
4669,
1689,
1298,
412,
18173,
7676,
4669,
1689,
50,
14375,
11,
198,
220,
220,
220,
366,
11576,
62,
18,
62,
13959,
82,
1298,
13535,
18,
31305,
82,
50,
14375,
198,
92,
198
] | 1.925959 | 2,242 |
#
# PySNMP MIB module JUNIPER-SONET-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-SONET-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:50:16 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint")
ifIndex, ifDescr = mibBuilder.importSymbols("IF-MIB", "ifIndex", "ifDescr")
jnxMibs, jnxSonetNotifications = mibBuilder.importSymbols("JUNIPER-SMI", "jnxMibs", "jnxSonetNotifications")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibIdentifier, Gauge32, iso, ObjectIdentity, TimeTicks, ModuleIdentity, Integer32, Counter32, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter64, IpAddress, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Gauge32", "iso", "ObjectIdentity", "TimeTicks", "ModuleIdentity", "Integer32", "Counter32", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter64", "IpAddress", "Bits")
DisplayString, DateAndTime, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "DateAndTime", "TextualConvention")
jnxSonet = ModuleIdentity((1, 3, 6, 1, 4, 1, 2636, 3, 20))
jnxSonet.setRevisions(('2002-12-12 00:00', '2002-08-08 00:00',))
if mibBuilder.loadTexts: jnxSonet.setLastUpdated('200307182154Z')
if mibBuilder.loadTexts: jnxSonet.setOrganization('Juniper Networks, Inc.')
class JnxSonetAlarmId(TextualConvention, Bits):
status = 'current'
namedValues = NamedValues(("sonetLolAlarm", 0), ("sonetPllAlarm", 1), ("sonetLofAlarm", 2), ("sonetLosAlarm", 3), ("sonetSefAlarm", 4), ("sonetLaisAlarm", 5), ("sonetPaisAlarm", 6), ("sonetLopAlarm", 7), ("sonetBerrSdAlarm", 8), ("sonetBerrSfAlarm", 9), ("sonetLrdiAlarm", 10), ("sonetPrdiAlarm", 11), ("sonetReiAlarm", 12), ("sonetUneqAlarm", 13), ("sonetPmisAlarm", 14), ("sonetLocAlarm", 15), ("sonetVaisAlarm", 16), ("sonetVlopAlarm", 17), ("sonetVrdiAlarm", 18), ("sonetVuneqAlarm", 19), ("sonetVmisAlarm", 20), ("sonetVlocAlarm", 21), ("sdhLolAlarm", 22), ("sdhPllAlarm", 23), ("sdhLofAlarm", 24), ("sdhLosAlarm", 25), ("sdhOofAlarm", 26), ("sdhMsAisAlarm", 27), ("sdhHpAisAlarm", 28), ("sdhLopAlarm", 29), ("sdhBerrSdAlarm", 30), ("sdhBerrSfAlarm", 31), ("sdhMsFerfAlarm", 32), ("sdhHpFerfAlarm", 33), ("sdhMsFebeAlarm", 34), ("sdhHpUneqAlarm", 35), ("sdhHpMisAlarm", 36), ("sdhLocAlarm", 37))
jnxSonetAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1))
jnxSonetAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1), )
if mibBuilder.loadTexts: jnxSonetAlarmTable.setStatus('current')
jnxSonetAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: jnxSonetAlarmEntry.setStatus('current')
jnxSonetCurrentAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1, 1, 1), JnxSonetAlarmId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: jnxSonetCurrentAlarms.setStatus('current')
jnxSonetLastAlarmId = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1, 1, 2), JnxSonetAlarmId()).setMaxAccess("readonly")
if mibBuilder.loadTexts: jnxSonetLastAlarmId.setStatus('current')
jnxSonetLastAlarmTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: jnxSonetLastAlarmTime.setStatus('current')
jnxSonetLastAlarmDate = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: jnxSonetLastAlarmDate.setStatus('current')
jnxSonetLastAlarmEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 2636, 3, 20, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("set", 2), ("cleared", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: jnxSonetLastAlarmEvent.setStatus('current')
jnxSonetNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2636, 4, 6, 0))
jnxSonetAlarmSet = NotificationType((1, 3, 6, 1, 4, 1, 2636, 4, 6, 0, 1)).setObjects(("IF-MIB", "ifDescr"), ("JUNIPER-SONET-MIB", "jnxSonetLastAlarmId"), ("JUNIPER-SONET-MIB", "jnxSonetCurrentAlarms"), ("JUNIPER-SONET-MIB", "jnxSonetLastAlarmDate"))
if mibBuilder.loadTexts: jnxSonetAlarmSet.setStatus('current')
jnxSonetAlarmCleared = NotificationType((1, 3, 6, 1, 4, 1, 2636, 4, 6, 0, 2)).setObjects(("IF-MIB", "ifDescr"), ("JUNIPER-SONET-MIB", "jnxSonetLastAlarmId"), ("JUNIPER-SONET-MIB", "jnxSonetCurrentAlarms"), ("JUNIPER-SONET-MIB", "jnxSonetLastAlarmDate"))
if mibBuilder.loadTexts: jnxSonetAlarmCleared.setStatus('current')
mibBuilder.exportSymbols("JUNIPER-SONET-MIB", jnxSonetAlarms=jnxSonetAlarms, jnxSonetCurrentAlarms=jnxSonetCurrentAlarms, jnxSonetLastAlarmTime=jnxSonetLastAlarmTime, jnxSonetAlarmTable=jnxSonetAlarmTable, JnxSonetAlarmId=JnxSonetAlarmId, jnxSonetLastAlarmEvent=jnxSonetLastAlarmEvent, jnxSonetAlarmSet=jnxSonetAlarmSet, PYSNMP_MODULE_ID=jnxSonet, jnxSonetNotificationPrefix=jnxSonetNotificationPrefix, jnxSonetAlarmCleared=jnxSonetAlarmCleared, jnxSonetAlarmEntry=jnxSonetAlarmEntry, jnxSonet=jnxSonet, jnxSonetLastAlarmId=jnxSonetLastAlarmId, jnxSonetLastAlarmDate=jnxSonetLastAlarmDate)
| [
2,
198,
2,
9485,
15571,
7378,
337,
9865,
8265,
449,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
357,
4023,
1378,
16184,
76,
489,
8937,
13,
785,
14,
79,
893,
11632,
8,
198,
2,
7054,
45,
13,
16,
2723,
2393,
1378,
14,
14490,
14,
67,
615,
47562,
19,
14,
13603,
14,
76,
571,
82,
13,
16184,
76,
489,
8937,
13,
785,
14,
292,
77,
16,
14,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
198,
2,
21522,
771,
416,
279,
893,
11632,
12,
15,
13,
18,
13,
19,
379,
2892,
2758,
2808,
678,
25,
1120,
25,
1433,
13130,
198,
2,
1550,
2583,
42274,
54,
15567,
19,
12,
44,
12,
1415,
2425,
3859,
21450,
2196,
1248,
13,
20,
13,
15,
416,
2836,
288,
615,
47562,
19,
198,
2,
8554,
11361,
2196,
513,
13,
22,
13,
18,
357,
12286,
11,
1526,
2681,
13130,
11,
7769,
25,
1954,
25,
1314,
8,
220,
198,
2,
198,
12349,
316,
10100,
11,
9515,
33234,
7483,
11,
34142,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
1921,
45,
16,
1600,
366,
12349,
316,
10100,
1600,
366,
10267,
33234,
7483,
1600,
366,
46541,
4943,
198,
45,
2434,
40161,
11,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
1921,
45,
16,
12,
1677,
5883,
1137,
6234,
1600,
366,
45,
2434,
40161,
4943,
198,
11395,
17257,
3103,
2536,
2913,
11,
14206,
11395,
3103,
2536,
2913,
11,
1482,
2536,
6003,
38176,
11,
1482,
2536,
6003,
9492,
5458,
11,
11052,
10699,
3103,
2536,
2913,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
1921,
45,
16,
12,
2200,
20032,
12529,
1600,
366,
11395,
17257,
3103,
2536,
2913,
1600,
366,
28008,
11395,
3103,
2536,
2913,
1600,
366,
3103,
2536,
6003,
38176,
1600,
366,
3103,
2536,
6003,
9492,
5458,
1600,
366,
11395,
10699,
3103,
2536,
2913,
4943,
198,
361,
15732,
11,
611,
24564,
81,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
5064,
12,
8895,
33,
1600,
366,
361,
15732,
1600,
366,
361,
24564,
81,
4943,
198,
73,
77,
87,
44,
571,
82,
11,
474,
77,
87,
31056,
316,
3673,
6637,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
41,
4944,
4061,
1137,
12,
50,
8895,
1600,
366,
73,
77,
87,
44,
571,
82,
1600,
366,
73,
77,
87,
31056,
316,
3673,
6637,
4943,
198,
3673,
2649,
13247,
11,
19937,
38143,
3610,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
15571,
7378,
85,
17,
12,
10943,
37,
1600,
366,
3673,
2649,
13247,
1600,
366,
26796,
38143,
3610,
4943,
198,
44,
571,
33234,
7483,
11,
35094,
469,
2624,
11,
47279,
11,
9515,
7390,
26858,
11,
3862,
51,
3378,
11,
19937,
7390,
26858,
11,
34142,
2624,
11,
15034,
2624,
11,
791,
32696,
2624,
11,
337,
571,
3351,
282,
283,
11,
337,
571,
10962,
11,
337,
571,
10962,
25166,
11,
337,
571,
10962,
39470,
11,
42808,
6030,
11,
15034,
2414,
11,
314,
79,
20231,
11,
44733,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
15571,
7378,
85,
17,
12,
50,
8895,
1600,
366,
44,
571,
33234,
7483,
1600,
366,
38,
559,
469,
2624,
1600,
366,
26786,
1600,
366,
10267,
7390,
26858,
1600,
366,
7575,
51,
3378,
1600,
366,
26796,
7390,
26858,
1600,
366,
46541,
2624,
1600,
366,
31694,
2624,
1600,
366,
3118,
32696,
2624,
1600,
366,
44,
571,
3351,
282,
283,
1600,
366,
44,
571,
10962,
1600,
366,
44,
571,
10962,
25166,
1600,
366,
44,
571,
10962,
39470,
1600,
366,
3673,
2649,
6030,
1600,
366,
31694,
2414,
1600,
366,
40,
79,
20231,
1600,
366,
33,
896,
4943,
198,
23114,
10100,
11,
7536,
1870,
7575,
11,
8255,
723,
3103,
4018,
796,
285,
571,
32875,
13,
11748,
13940,
2022,
10220,
7203,
15571,
7378,
85,
17,
12,
4825,
1600,
366,
23114,
10100,
1600,
366,
10430,
1870,
7575,
1600,
366,
8206,
723,
3103,
4018,
4943,
198,
73,
77,
87,
31056,
316,
796,
19937,
7390,
26858,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
4008,
198,
73,
77,
87,
31056,
316,
13,
2617,
18009,
3279,
7,
10786,
16942,
12,
1065,
12,
1065,
3571,
25,
405,
3256,
705,
16942,
12,
2919,
12,
2919,
3571,
25,
405,
3256,
4008,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
13,
2617,
5956,
17354,
10786,
2167,
22996,
24294,
21526,
57,
11537,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
13,
2617,
26121,
1634,
10786,
22396,
9346,
27862,
11,
3457,
2637,
8,
198,
4871,
449,
77,
87,
31056,
316,
2348,
1670,
7390,
7,
8206,
723,
3103,
4018,
11,
44733,
2599,
198,
220,
220,
220,
3722,
796,
705,
14421,
6,
198,
220,
220,
220,
3706,
40161,
796,
34441,
40161,
7,
7203,
1559,
316,
43,
349,
2348,
1670,
1600,
657,
828,
5855,
1559,
316,
47,
297,
2348,
1670,
1600,
352,
828,
5855,
1559,
316,
43,
1659,
2348,
1670,
1600,
362,
828,
5855,
1559,
316,
28903,
2348,
1670,
1600,
513,
828,
5855,
1559,
316,
50,
891,
2348,
1670,
1600,
604,
828,
5855,
1559,
316,
14772,
271,
2348,
1670,
1600,
642,
828,
5855,
1559,
316,
47,
15152,
2348,
1670,
1600,
718,
828,
5855,
1559,
316,
43,
404,
2348,
1670,
1600,
767,
828,
5855,
1559,
316,
33,
8056,
50,
67,
2348,
1670,
1600,
807,
828,
5855,
1559,
316,
33,
8056,
50,
69,
2348,
1670,
1600,
860,
828,
5855,
1559,
316,
43,
4372,
72,
2348,
1670,
1600,
838,
828,
5855,
1559,
316,
47,
4372,
72,
2348,
1670,
1600,
1367,
828,
5855,
1559,
316,
3041,
72,
2348,
1670,
1600,
1105,
828,
5855,
1559,
316,
52,
710,
80,
2348,
1670,
1600,
1511,
828,
5855,
1559,
316,
47,
25413,
2348,
1670,
1600,
1478,
828,
5855,
1559,
316,
33711,
2348,
1670,
1600,
1315,
828,
5855,
1559,
316,
53,
15152,
2348,
1670,
1600,
1467,
828,
5855,
1559,
316,
53,
75,
404,
2348,
1670,
1600,
1596,
828,
5855,
1559,
316,
53,
4372,
72,
2348,
1670,
1600,
1248,
828,
5855,
1559,
316,
53,
1726,
80,
2348,
1670,
1600,
678,
828,
5855,
1559,
316,
53,
25413,
2348,
1670,
1600,
1160,
828,
5855,
1559,
316,
53,
17946,
2348,
1670,
1600,
2310,
828,
5855,
21282,
71,
43,
349,
2348,
1670,
1600,
2534,
828,
5855,
21282,
71,
47,
297,
2348,
1670,
1600,
2242,
828,
5855,
21282,
71,
43,
1659,
2348,
1670,
1600,
1987,
828,
5855,
21282,
71,
28903,
2348,
1670,
1600,
1679,
828,
5855,
21282,
71,
46,
1659,
2348,
1670,
1600,
2608,
828,
5855,
21282,
71,
10128,
32,
271,
2348,
1670,
1600,
2681,
828,
5855,
21282,
71,
39,
79,
32,
271,
2348,
1670,
1600,
2579,
828,
5855,
21282,
71,
43,
404,
2348,
1670,
1600,
2808,
828,
5855,
21282,
71,
33,
8056,
50,
67,
2348,
1670,
1600,
1542,
828,
5855,
21282,
71,
33,
8056,
50,
69,
2348,
1670,
1600,
3261,
828,
5855,
21282,
71,
10128,
43362,
69,
2348,
1670,
1600,
3933,
828,
5855,
21282,
71,
39,
79,
43362,
69,
2348,
1670,
1600,
4747,
828,
5855,
21282,
71,
10128,
14304,
1350,
2348,
1670,
1600,
4974,
828,
5855,
21282,
71,
39,
79,
52,
710,
80,
2348,
1670,
1600,
3439,
828,
5855,
21282,
71,
39,
79,
31281,
2348,
1670,
1600,
4570,
828,
5855,
21282,
71,
33711,
2348,
1670,
1600,
5214,
4008,
198,
198,
73,
77,
87,
31056,
316,
2348,
8357,
796,
337,
571,
33234,
7483,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
4008,
198,
73,
77,
87,
31056,
316,
2348,
1670,
10962,
796,
337,
571,
10962,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
828,
1267,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
2348,
1670,
10962,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
2348,
1670,
30150,
796,
337,
571,
10962,
25166,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
11,
352,
828,
6739,
2617,
15732,
36690,
19510,
15,
11,
366,
5064,
12,
8895,
33,
1600,
366,
361,
15732,
48774,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
2348,
1670,
30150,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
11297,
2348,
8357,
796,
337,
571,
10962,
39470,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
11,
352,
11,
352,
828,
449,
77,
87,
31056,
316,
2348,
1670,
7390,
3419,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
11297,
2348,
8357,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
7390,
796,
337,
571,
10962,
39470,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
11,
352,
11,
362,
828,
449,
77,
87,
31056,
316,
2348,
1670,
7390,
3419,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
7390,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
7575,
796,
337,
571,
10962,
39470,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
11,
352,
11,
513,
828,
3862,
51,
3378,
3419,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
7575,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
10430,
796,
337,
571,
10962,
39470,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
11,
352,
11,
604,
828,
7536,
1870,
7575,
3419,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
10430,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
9237,
796,
337,
571,
10962,
39470,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
513,
11,
1160,
11,
352,
11,
352,
11,
352,
11,
642,
828,
34142,
2624,
22446,
7266,
4906,
7,
7266,
4906,
22882,
28,
3103,
2536,
6003,
38176,
7,
28008,
11395,
3103,
2536,
2913,
7,
16,
11,
362,
11,
513,
4008,
737,
21018,
7,
13190,
40161,
28,
45,
2434,
40161,
7,
7203,
23108,
1600,
352,
828,
5855,
2617,
1600,
362,
828,
5855,
2375,
1144,
1600,
513,
22305,
737,
2617,
11518,
15457,
7203,
961,
8807,
4943,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
9237,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
3673,
2649,
36698,
844,
796,
337,
571,
33234,
7483,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
604,
11,
718,
11,
657,
4008,
198,
73,
77,
87,
31056,
316,
2348,
1670,
7248,
796,
42808,
6030,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
604,
11,
718,
11,
657,
11,
352,
29720,
2617,
10267,
82,
7,
7203,
5064,
12,
8895,
33,
1600,
366,
361,
24564,
81,
12340,
5855,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
366,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
7390,
12340,
5855,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
366,
73,
77,
87,
31056,
316,
11297,
2348,
8357,
12340,
5855,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
366,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
10430,
48774,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
2348,
1670,
7248,
13,
2617,
19580,
10786,
14421,
11537,
198,
73,
77,
87,
31056,
316,
2348,
1670,
34349,
1144,
796,
42808,
6030,
19510,
16,
11,
513,
11,
718,
11,
352,
11,
604,
11,
352,
11,
2608,
2623,
11,
604,
11,
718,
11,
657,
11,
362,
29720,
2617,
10267,
82,
7,
7203,
5064,
12,
8895,
33,
1600,
366,
361,
24564,
81,
12340,
5855,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
366,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
7390,
12340,
5855,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
366,
73,
77,
87,
31056,
316,
11297,
2348,
8357,
12340,
5855,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
366,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
10430,
48774,
198,
361,
285,
571,
32875,
13,
2220,
8206,
82,
25,
474,
77,
87,
31056,
316,
2348,
1670,
34349,
1144,
13,
2617,
19580,
10786,
14421,
11537,
198,
76,
571,
32875,
13,
39344,
13940,
2022,
10220,
7203,
41,
4944,
4061,
1137,
12,
11782,
2767,
12,
8895,
33,
1600,
474,
77,
87,
31056,
316,
2348,
8357,
28,
73,
77,
87,
31056,
316,
2348,
8357,
11,
474,
77,
87,
31056,
316,
11297,
2348,
8357,
28,
73,
77,
87,
31056,
316,
11297,
2348,
8357,
11,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
7575,
28,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
7575,
11,
474,
77,
87,
31056,
316,
2348,
1670,
10962,
28,
73,
77,
87,
31056,
316,
2348,
1670,
10962,
11,
449,
77,
87,
31056,
316,
2348,
1670,
7390,
28,
41,
77,
87,
31056,
316,
2348,
1670,
7390,
11,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
9237,
28,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
9237,
11,
474,
77,
87,
31056,
316,
2348,
1670,
7248,
28,
73,
77,
87,
31056,
316,
2348,
1670,
7248,
11,
350,
56,
15571,
7378,
62,
33365,
24212,
62,
2389,
28,
73,
77,
87,
31056,
316,
11,
474,
77,
87,
31056,
316,
3673,
2649,
36698,
844,
28,
73,
77,
87,
31056,
316,
3673,
2649,
36698,
844,
11,
474,
77,
87,
31056,
316,
2348,
1670,
34349,
1144,
28,
73,
77,
87,
31056,
316,
2348,
1670,
34349,
1144,
11,
474,
77,
87,
31056,
316,
2348,
1670,
30150,
28,
73,
77,
87,
31056,
316,
2348,
1670,
30150,
11,
474,
77,
87,
31056,
316,
28,
73,
77,
87,
31056,
316,
11,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
7390,
28,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
7390,
11,
474,
77,
87,
31056,
316,
5956,
2348,
1670,
10430,
28,
73,
77,
87,
31056,
316,
5956,
2348,
1670,
10430,
8,
198
] | 2.383058 | 2,420 |
from unit.applications.lang.python import TestApplicationPython
class TestClientIP(TestApplicationPython):
prerequisites = {'modules': {'python': 'any'}}
def client_ip(self, options):
assert 'success' in self.conf(
{
"127.0.0.1:7081": {
"client_ip": options,
"pass": "applications/client_ip",
},
"[::1]:7082": {
"client_ip": options,
"pass": "applications/client_ip",
},
},
'listeners',
), 'listeners configure'
def get_xff(self, xff, sock_type='ipv4'):
port = 7081 if sock_type == 'ipv4' else 7082
return self.get(
sock_type=sock_type,
port=port,
headers={'Connection': 'close', 'X-Forwarded-For': xff},
)['body']
def setup_method(self):
self.load('client_ip')
def test_settings_client_ip_single_ip(self):
self.client_ip(
{'header': 'X-Forwarded-For', 'source': '123.123.123.123'}
)
assert self.get(port=7081)['body'] == '127.0.0.1', 'ipv4 default'
assert (
self.get(sock_type='ipv6', port=7082)['body'] == '::1'
), 'ipv6 default'
assert self.get_xff('1.1.1.1') == '127.0.0.1', 'bad source'
assert self.get_xff('blah') == '127.0.0.1', 'bad header'
assert self.get_xff('1.1.1.1', 'ipv6') == '::1', 'bad source ipv6'
self.client_ip({'header': 'X-Forwarded-For', 'source': '127.0.0.1'})
assert self.get(port=7081)['body'] == '127.0.0.1', 'ipv4 default 2'
assert (
self.get(sock_type='ipv6', port=7082)['body'] == '::1'
), 'ipv6 default 2'
assert self.get_xff('1.1.1.1') == '1.1.1.1', 'replace'
assert self.get_xff('blah') == '127.0.0.1', 'bad header 2'
assert self.get_xff('1.1.1.1', 'ipv6') == '::1', 'bad source ipv6 2'
self.client_ip({'header': 'X-Forwarded-For', 'source': '!127.0.0.1'})
assert self.get_xff('1.1.1.1') == '127.0.0.1', 'bad source 3'
assert self.get_xff('1.1.1.1', 'ipv6') == '1.1.1.1', 'replace 2'
def test_settings_client_ip_ipv4(self):
self.client_ip({'header': 'X-Forwarded-For', 'source': '127.0.0.1'})
assert (
self.get_xff('8.8.8.8, 84.23.23.11') == '84.23.23.11'
), 'xff replace'
assert (
self.get_xff('8.8.8.8, 84.23.23.11, 127.0.0.1') == '127.0.0.1'
), 'xff replace 2'
assert (
self.get_xff(['8.8.8.8', '127.0.0.1, 10.0.1.1']) == '10.0.1.1'
), 'xff replace multi'
def test_settings_client_ip_ipv6(self):
self.client_ip({'header': 'X-Forwarded-For', 'source': '::1'})
assert self.get_xff('1.1.1.1') == '127.0.0.1', 'bad source ipv4'
for ip in [
'f607:7403:1e4b:6c66:33b2:843f:2517:da27',
'2001:db8:3c4d:15::1a2f:1a2b',
'2001::3c4d:15:1a2f:1a2b',
'::11.22.33.44',
]:
assert self.get_xff(ip, 'ipv6') == ip, 'replace'
def test_settings_client_ip_recursive(self):
self.client_ip(
{
'header': 'X-Forwarded-For',
'recursive': True,
'source': ['127.0.0.1', '10.50.0.17', '10.5.2.1'],
}
)
assert self.get_xff('1.1.1.1') == '1.1.1.1', 'xff chain'
assert self.get_xff('1.1.1.1, 10.5.2.1') == '1.1.1.1', 'xff chain 2'
assert (
self.get_xff('8.8.8.8, 1.1.1.1, 10.5.2.1') == '1.1.1.1'
), 'xff chain 3'
assert (
self.get_xff('10.50.0.17, 10.5.2.1, 10.5.2.1') == '10.50.0.17'
), 'xff chain 4'
assert (
self.get_xff(['8.8.8.8', '1.1.1.1, 127.0.0.1']) == '1.1.1.1'
), 'xff replace multi'
assert (
self.get_xff(['8.8.8.8', '1.1.1.1, 127.0.0.1', '10.5.2.1'])
== '1.1.1.1'
), 'xff replace multi 2'
assert (
self.get_xff(['10.5.2.1', '10.50.0.17, 1.1.1.1', '10.5.2.1'])
== '1.1.1.1'
), 'xff replace multi 3'
assert (
self.get_xff('8.8.8.8, 2001:db8:3c4d:15::1a2f:1a2b, 127.0.0.1')
== '2001:db8:3c4d:15::1a2f:1a2b'
), 'xff chain ipv6'
def test_settings_client_ip_invalid(self):
assert 'error' in self.conf(
{
"http": {
"client_ip": {'header': 'X-Forwarded-For', 'source': []}
}
},
'settings',
), 'empty array source'
assert 'error' in self.conf(
{
"http": {
"client_ip": {'header': 'X-Forwarded-For', 'source': 'a'}
}
},
'settings',
), 'empty source invalid'
| [
6738,
4326,
13,
1324,
677,
602,
13,
17204,
13,
29412,
1330,
6208,
23416,
37906,
628,
198,
4871,
6208,
11792,
4061,
7,
14402,
23416,
37906,
2599,
198,
220,
220,
220,
662,
34075,
796,
1391,
6,
18170,
10354,
1391,
6,
29412,
10354,
705,
1092,
6,
11709,
628,
220,
220,
220,
825,
5456,
62,
541,
7,
944,
11,
3689,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
705,
13138,
6,
287,
2116,
13,
10414,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16799,
13,
15,
13,
15,
13,
16,
25,
2154,
6659,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16366,
62,
541,
1298,
3689,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
6603,
1298,
366,
1324,
677,
602,
14,
16366,
62,
541,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12878,
3712,
16,
5974,
2154,
6469,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16366,
62,
541,
1298,
3689,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
6603,
1298,
366,
1324,
677,
602,
14,
16366,
62,
541,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4868,
36014,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
4868,
36014,
17425,
6,
628,
220,
220,
220,
825,
651,
62,
47596,
7,
944,
11,
2124,
487,
11,
32263,
62,
4906,
11639,
541,
85,
19,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2493,
796,
767,
2919,
16,
611,
32263,
62,
4906,
6624,
705,
541,
85,
19,
6,
2073,
767,
2919,
17,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32263,
62,
4906,
28,
82,
735,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2493,
28,
634,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24697,
34758,
6,
32048,
10354,
705,
19836,
3256,
705,
55,
12,
39746,
276,
12,
1890,
10354,
2124,
487,
5512,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
17816,
2618,
20520,
628,
220,
220,
220,
825,
9058,
62,
24396,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2220,
10786,
16366,
62,
541,
11537,
628,
220,
220,
220,
825,
1332,
62,
33692,
62,
16366,
62,
541,
62,
29762,
62,
541,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
705,
10163,
13,
10163,
13,
10163,
13,
10163,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
7,
634,
28,
2154,
6659,
8,
17816,
2618,
20520,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
541,
85,
19,
4277,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
7,
82,
735,
62,
4906,
11639,
541,
85,
21,
3256,
2493,
28,
2154,
6469,
8,
17816,
2618,
20520,
6624,
705,
3712,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
541,
85,
21,
4277,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
11537,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
14774,
2723,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
2436,
993,
11537,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
14774,
13639,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
541,
85,
21,
11537,
6624,
705,
3712,
16,
3256,
705,
14774,
2723,
20966,
85,
21,
6,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
62,
541,
15090,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
705,
16799,
13,
15,
13,
15,
13,
16,
6,
30072,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
7,
634,
28,
2154,
6659,
8,
17816,
2618,
20520,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
541,
85,
19,
4277,
362,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
7,
82,
735,
62,
4906,
11639,
541,
85,
21,
3256,
2493,
28,
2154,
6469,
8,
17816,
2618,
20520,
6624,
705,
3712,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
541,
85,
21,
4277,
362,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
11537,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
33491,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
2436,
993,
11537,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
14774,
13639,
362,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
541,
85,
21,
11537,
6624,
705,
3712,
16,
3256,
705,
14774,
2723,
20966,
85,
21,
362,
6,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
62,
541,
15090,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
705,
0,
16799,
13,
15,
13,
15,
13,
16,
6,
30072,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
11537,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
14774,
2723,
513,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
541,
85,
21,
11537,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
33491,
362,
6,
628,
220,
220,
220,
825,
1332,
62,
33692,
62,
16366,
62,
541,
62,
541,
85,
19,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
62,
541,
15090,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
705,
16799,
13,
15,
13,
15,
13,
16,
6,
30072,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
10786,
23,
13,
23,
13,
23,
13,
23,
11,
9508,
13,
1954,
13,
1954,
13,
1157,
11537,
6624,
705,
5705,
13,
1954,
13,
1954,
13,
1157,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6330,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
10786,
23,
13,
23,
13,
23,
13,
23,
11,
9508,
13,
1954,
13,
1954,
13,
1157,
11,
18112,
13,
15,
13,
15,
13,
16,
11537,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6330,
362,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
7,
17816,
23,
13,
23,
13,
23,
13,
23,
3256,
705,
16799,
13,
15,
13,
15,
13,
16,
11,
838,
13,
15,
13,
16,
13,
16,
6,
12962,
6624,
705,
940,
13,
15,
13,
16,
13,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6330,
5021,
6,
628,
220,
220,
220,
825,
1332,
62,
33692,
62,
16366,
62,
541,
62,
541,
85,
21,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
62,
541,
15090,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
705,
3712,
16,
6,
30072,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
11537,
6624,
705,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
14774,
2723,
20966,
85,
19,
6,
628,
220,
220,
220,
220,
220,
220,
220,
329,
20966,
287,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
69,
31980,
25,
22,
31552,
25,
16,
68,
19,
65,
25,
21,
66,
2791,
25,
2091,
65,
17,
25,
23,
3559,
69,
25,
1495,
1558,
25,
6814,
1983,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14585,
25,
9945,
23,
25,
18,
66,
19,
67,
25,
1314,
3712,
16,
64,
17,
69,
25,
16,
64,
17,
65,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14585,
3712,
18,
66,
19,
67,
25,
1314,
25,
16,
64,
17,
69,
25,
16,
64,
17,
65,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3712,
1157,
13,
1828,
13,
2091,
13,
2598,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
7,
541,
11,
705,
541,
85,
21,
11537,
6624,
20966,
11,
705,
33491,
6,
628,
220,
220,
220,
825,
1332,
62,
33692,
62,
16366,
62,
541,
62,
8344,
30753,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16366,
62,
541,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8344,
30753,
10354,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10459,
10354,
37250,
16799,
13,
15,
13,
15,
13,
16,
3256,
705,
940,
13,
1120,
13,
15,
13,
1558,
3256,
705,
940,
13,
20,
13,
17,
13,
16,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
11537,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
47596,
6333,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2116,
13,
1136,
62,
47596,
10786,
16,
13,
16,
13,
16,
13,
16,
11,
838,
13,
20,
13,
17,
13,
16,
11537,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
3256,
705,
47596,
6333,
362,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
10786,
23,
13,
23,
13,
23,
13,
23,
11,
352,
13,
16,
13,
16,
13,
16,
11,
838,
13,
20,
13,
17,
13,
16,
11537,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6333,
513,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
10786,
940,
13,
1120,
13,
15,
13,
1558,
11,
838,
13,
20,
13,
17,
13,
16,
11,
838,
13,
20,
13,
17,
13,
16,
11537,
6624,
705,
940,
13,
1120,
13,
15,
13,
1558,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6333,
604,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
7,
17816,
23,
13,
23,
13,
23,
13,
23,
3256,
705,
16,
13,
16,
13,
16,
13,
16,
11,
18112,
13,
15,
13,
15,
13,
16,
6,
12962,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6330,
5021,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
7,
17816,
23,
13,
23,
13,
23,
13,
23,
3256,
705,
16,
13,
16,
13,
16,
13,
16,
11,
18112,
13,
15,
13,
15,
13,
16,
3256,
705,
940,
13,
20,
13,
17,
13,
16,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6330,
5021,
362,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
7,
17816,
940,
13,
20,
13,
17,
13,
16,
3256,
705,
940,
13,
1120,
13,
15,
13,
1558,
11,
352,
13,
16,
13,
16,
13,
16,
3256,
705,
940,
13,
20,
13,
17,
13,
16,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6624,
705,
16,
13,
16,
13,
16,
13,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6330,
5021,
513,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
47596,
10786,
23,
13,
23,
13,
23,
13,
23,
11,
5878,
25,
9945,
23,
25,
18,
66,
19,
67,
25,
1314,
3712,
16,
64,
17,
69,
25,
16,
64,
17,
65,
11,
18112,
13,
15,
13,
15,
13,
16,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6624,
705,
14585,
25,
9945,
23,
25,
18,
66,
19,
67,
25,
1314,
3712,
16,
64,
17,
69,
25,
16,
64,
17,
65,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
47596,
6333,
20966,
85,
21,
6,
628,
220,
220,
220,
825,
1332,
62,
33692,
62,
16366,
62,
541,
62,
259,
12102,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
705,
18224,
6,
287,
2116,
13,
10414,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4023,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16366,
62,
541,
1298,
1391,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
17635,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
33692,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
28920,
7177,
2723,
6,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
705,
18224,
6,
287,
2116,
13,
10414,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4023,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16366,
62,
541,
1298,
1391,
6,
25677,
10354,
705,
55,
12,
39746,
276,
12,
1890,
3256,
705,
10459,
10354,
705,
64,
6,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
33692,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
705,
28920,
2723,
12515,
6,
198
] | 1.713883 | 2,838 |
#!/usr/bin/env python
from batch_demographics import create_app
from config import DevConfig
app = create_app(DevConfig())
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000) | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
6738,
15458,
62,
9536,
24188,
1330,
2251,
62,
1324,
198,
6738,
4566,
1330,
6245,
16934,
198,
198,
1324,
796,
2251,
62,
1324,
7,
13603,
16934,
28955,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
598,
13,
5143,
7,
4774,
2625,
15,
13,
15,
13,
15,
13,
15,
1600,
2493,
28,
33942,
8
] | 2.753623 | 69 |
from django.contrib import admin
from .models import supeHero
# Register your models here.
admin.site.register(supeHero)
# Register your models here.
| [
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
6738,
764,
27530,
1330,
424,
431,
30411,
198,
198,
2,
17296,
534,
4981,
994,
13,
198,
28482,
13,
15654,
13,
30238,
7,
2385,
431,
30411,
8,
198,
2,
17296,
534,
4981,
994,
13,
198
] | 3.511628 | 43 |
from easygui.boxes.choice_box import choicebox
from easygui.boxes.text_box import textbox
from phase1 import phase1
from phase2 import phase2
__author__ = 'po0ya'
choices = [
'Phase1',
'Phase2'
]
choice = choicebox(msg='Please select project phase:', choices=choices)
if choice == choices[0]:
phase1()
else:
phase2()
| [
6738,
2562,
48317,
13,
29305,
13,
25541,
62,
3524,
1330,
3572,
3524,
198,
6738,
2562,
48317,
13,
29305,
13,
5239,
62,
3524,
1330,
2420,
3524,
198,
6738,
7108,
16,
1330,
7108,
16,
198,
6738,
7108,
17,
1330,
7108,
17,
198,
198,
834,
9800,
834,
796,
705,
7501,
15,
3972,
6,
198,
198,
6679,
1063,
796,
685,
198,
220,
220,
220,
705,
35645,
16,
3256,
198,
220,
220,
220,
705,
35645,
17,
6,
198,
60,
198,
198,
25541,
796,
3572,
3524,
7,
19662,
11639,
5492,
2922,
1628,
7108,
25,
3256,
7747,
28,
6679,
1063,
8,
198,
198,
361,
3572,
6624,
7747,
58,
15,
5974,
198,
220,
220,
220,
7108,
16,
3419,
198,
17772,
25,
198,
220,
220,
220,
7108,
17,
3419,
198
] | 2.785124 | 121 |
# -*- coding: utf-8 -*-
# Copyright 2015 Donne Martin. 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. A copy of
# the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from __future__ import unicode_literals
from __future__ import print_function
import re
try:
from collections import OrderedDict
except:
from ordereddict import OrderedDict
class DataUtil(object):
"""Utility class to read from the data folder.
Attributes:
* None.
"""
def create_header_to_type_map(self, headers, data_type):
"""Creates a dict mapping headers to ResourceTypes.
Headers are the resource headers as they appear in the RESOURCES.txt.
Headers are mapped to their corresponding ResourceType.
Args:
* headers: A string that represents the header.
* data_type: An Enum specifying the data type.
Returns:
An OrderedDict mapping headers to ResourceTypes.
"""
command_types = []
for item in data_type:
if item != data_type.NUM_TYPES:
command_types.append(item)
return OrderedDict(zip(headers, command_types))
def get_data(self, data_file_path, header_to_type_map, data_type):
"""Gets all data from the specified data file.
Args:
* data_file_path: A string representing the full file path of
the data file.
* header_to_type_map: A dictionary mapping the data header labels
to the data types.
* data_type: An Enum specifying the data type.
Returns:
A list, where each element is a list of completions for each
data_type
"""
data_lists = [[] for x in range(data_type.NUM_TYPES.value)]
with open(data_file_path) as f:
for line in f:
line = re.sub('\n', '', line)
parsing_header = False
# Check if we are reading in a data header to determine
# which set of data we are parsing
for key, value in header_to_type_map.items():
if key in line:
data_type = value
parsing_header = True
break
if not parsing_header:
# Store the data in its associated list
if line.strip() != '':
data_lists[data_type.value].append(line)
for data_list in data_lists:
data_list.sort()
return data_lists
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
15069,
1853,
2094,
710,
5780,
13,
1439,
6923,
33876,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
11074,
921,
198,
2,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
317,
4866,
286,
198,
2,
262,
13789,
318,
5140,
379,
198,
2,
198,
2,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
393,
287,
262,
366,
43085,
1,
2393,
19249,
428,
2393,
13,
770,
2393,
318,
198,
2,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
198,
2,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
4091,
262,
13789,
329,
262,
2176,
198,
2,
3303,
15030,
21627,
290,
11247,
739,
262,
13789,
13,
198,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
11748,
302,
198,
28311,
25,
198,
220,
220,
220,
422,
17268,
1330,
14230,
1068,
35,
713,
198,
16341,
25,
198,
220,
220,
220,
422,
6149,
11600,
1330,
14230,
1068,
35,
713,
628,
198,
4871,
6060,
18274,
346,
7,
15252,
2599,
198,
220,
220,
220,
37227,
18274,
879,
1398,
284,
1100,
422,
262,
1366,
9483,
13,
628,
220,
220,
220,
49213,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1635,
6045,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
2251,
62,
25677,
62,
1462,
62,
4906,
62,
8899,
7,
944,
11,
24697,
11,
1366,
62,
4906,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16719,
274,
257,
8633,
16855,
24697,
284,
20857,
31431,
13,
628,
220,
220,
220,
220,
220,
220,
220,
7123,
364,
389,
262,
8271,
24697,
355,
484,
1656,
287,
262,
15731,
2606,
7397,
1546,
13,
14116,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7123,
364,
389,
27661,
284,
511,
11188,
20857,
6030,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
24697,
25,
317,
4731,
326,
6870,
262,
13639,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
1366,
62,
4906,
25,
1052,
2039,
388,
31577,
262,
1366,
2099,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1052,
14230,
1068,
35,
713,
16855,
24697,
284,
20857,
31431,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3141,
62,
19199,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
1366,
62,
4906,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2378,
14512,
1366,
62,
4906,
13,
41359,
62,
9936,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3141,
62,
19199,
13,
33295,
7,
9186,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
14230,
1068,
35,
713,
7,
13344,
7,
50145,
11,
3141,
62,
19199,
4008,
628,
220,
220,
220,
825,
651,
62,
7890,
7,
944,
11,
1366,
62,
7753,
62,
6978,
11,
13639,
62,
1462,
62,
4906,
62,
8899,
11,
1366,
62,
4906,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
38,
1039,
477,
1366,
422,
262,
7368,
1366,
2393,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
1366,
62,
7753,
62,
6978,
25,
317,
4731,
10200,
262,
1336,
2393,
3108,
286,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
262,
1366,
2393,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
13639,
62,
1462,
62,
4906,
62,
8899,
25,
317,
22155,
16855,
262,
1366,
13639,
14722,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
262,
1366,
3858,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
1366,
62,
4906,
25,
1052,
2039,
388,
31577,
262,
1366,
2099,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
1351,
11,
810,
1123,
5002,
318,
257,
1351,
286,
1224,
45240,
329,
1123,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
20713,
796,
16410,
60,
329,
2124,
287,
2837,
7,
7890,
62,
4906,
13,
41359,
62,
9936,
47,
1546,
13,
8367,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
7890,
62,
7753,
62,
6978,
8,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1627,
796,
302,
13,
7266,
10786,
59,
77,
3256,
705,
3256,
1627,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32096,
62,
25677,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6822,
611,
356,
389,
3555,
287,
257,
1366,
13639,
284,
5004,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
543,
900,
286,
1366,
356,
389,
32096,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1988,
287,
13639,
62,
1462,
62,
4906,
62,
8899,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1994,
287,
1627,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
4906,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32096,
62,
25677,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
32096,
62,
25677,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9363,
262,
1366,
287,
663,
3917,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1627,
13,
36311,
3419,
14512,
10148,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
20713,
58,
7890,
62,
4906,
13,
8367,
4083,
33295,
7,
1370,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1366,
62,
4868,
287,
1366,
62,
20713,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
4868,
13,
30619,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
62,
20713,
198
] | 2.345912 | 1,272 |
# Generated by Django 3.1.3 on 2021-06-23 02:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('onlinecourse', '0002_auto_20210623_0941'),
]
operations = [
migrations.CreateModel(
name='Homeworkanswer',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('choices', models.ManyToManyField(to='onlinecourse.Choice')),
('homework', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='onlinecourse.homework')),
],
),
]
| [
2,
2980,
515,
416,
37770,
513,
13,
16,
13,
18,
319,
33448,
12,
3312,
12,
1954,
7816,
25,
2623,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
198,
11748,
42625,
14208,
13,
9945,
13,
27530,
13,
2934,
1616,
295,
628,
198,
4871,
36991,
7,
76,
3692,
602,
13,
44,
4254,
2599,
628,
220,
220,
220,
20086,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
25119,
17319,
3256,
705,
34215,
62,
23736,
62,
19004,
15801,
1954,
62,
2931,
3901,
33809,
198,
220,
220,
220,
2361,
628,
220,
220,
220,
4560,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
16447,
17633,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
28718,
6433,
41484,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7032,
41888,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
312,
3256,
4981,
13,
27722,
15878,
7,
23736,
62,
25598,
28,
17821,
11,
4165,
62,
2539,
28,
17821,
11,
11389,
1096,
28,
25101,
11,
15942,
577,
62,
3672,
11639,
2389,
11537,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
6679,
1063,
3256,
4981,
13,
7085,
2514,
7085,
15878,
7,
1462,
11639,
25119,
17319,
13,
46770,
11537,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
26452,
6433,
3256,
4981,
13,
33616,
9218,
7,
261,
62,
33678,
28,
28241,
14208,
13,
9945,
13,
27530,
13,
2934,
1616,
295,
13,
34,
42643,
19266,
11,
284,
11639,
25119,
17319,
13,
26452,
6433,
11537,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
2361,
198
] | 2.268608 | 309 |
'''
33. Search in Rotated Sorted Array Medium
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no duplicate exists in the array.
Your algorithm's runtime complexity must be in the order of O(log n).
Example 1:
Input: nums = [4,5,6,7,0,1,2], target = 0
Output: 4
Example 2:
Input: nums = [4,5,6,7,0,1,2], target = 3
Output: -1
'''
class Solution:
def search(self, nums: List[int], target: int) -> int:
l, r = 0, len(nums)-1
while l <= r:
mid = l + (r-l)//2
if nums[mid] == target:
return mid
# Check if pivot applies
if nums[l] <= nums[mid]:
if nums[l] <= target < nums[mid]:
r = mid - 1
else:
l = mid + 1
else:
if nums[mid] < target <= nums[r]:
l = mid + 1
else:
r = mid - 1
return -1
| [
7061,
6,
198,
2091,
13,
11140,
287,
18481,
515,
311,
9741,
15690,
13398,
198,
198,
15979,
577,
281,
7177,
23243,
287,
41988,
1502,
318,
38375,
379,
617,
30355,
6439,
284,
345,
27091,
13,
198,
198,
7,
72,
13,
68,
1539,
685,
15,
11,
16,
11,
17,
11,
19,
11,
20,
11,
21,
11,
22,
60,
1244,
1716,
685,
19,
11,
20,
11,
21,
11,
22,
11,
15,
11,
16,
11,
17,
35944,
198,
198,
1639,
389,
1813,
257,
2496,
1988,
284,
2989,
13,
1002,
1043,
287,
262,
7177,
1441,
663,
6376,
11,
4306,
1441,
532,
16,
13,
198,
198,
1639,
743,
7048,
645,
23418,
7160,
287,
262,
7177,
13,
198,
198,
7120,
11862,
338,
19124,
13357,
1276,
307,
287,
262,
1502,
286,
440,
7,
6404,
299,
737,
198,
198,
16281,
352,
25,
198,
198,
20560,
25,
997,
82,
796,
685,
19,
11,
20,
11,
21,
11,
22,
11,
15,
11,
16,
11,
17,
4357,
2496,
796,
657,
198,
26410,
25,
604,
198,
16281,
362,
25,
198,
198,
20560,
25,
997,
82,
796,
685,
19,
11,
20,
11,
21,
11,
22,
11,
15,
11,
16,
11,
17,
4357,
2496,
796,
513,
198,
26410,
25,
532,
16,
198,
7061,
6,
198,
4871,
28186,
25,
198,
220,
220,
220,
825,
2989,
7,
944,
11,
997,
82,
25,
7343,
58,
600,
4357,
2496,
25,
493,
8,
4613,
493,
25,
198,
220,
220,
220,
220,
220,
220,
220,
300,
11,
374,
796,
657,
11,
18896,
7,
77,
5700,
13219,
16,
198,
220,
220,
220,
220,
220,
220,
220,
981,
300,
19841,
374,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3095,
796,
300,
1343,
357,
81,
12,
75,
8,
1003,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
997,
82,
58,
13602,
60,
6624,
2496,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3095,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6822,
611,
30355,
8991,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
997,
82,
58,
75,
60,
19841,
997,
82,
58,
13602,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
997,
82,
58,
75,
60,
19841,
2496,
1279,
997,
82,
58,
13602,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
3095,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
3095,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
997,
82,
58,
13602,
60,
1279,
2496,
19841,
997,
82,
58,
81,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
796,
3095,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
796,
3095,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
532,
16,
198
] | 1.969595 | 592 |
"""
glashammer.bundles.contrib.auth.openidauth
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open ID Support for Glashammer
:copyright: 2010 Glashammer Developers
:license: MIT
"""
from openid.consumer.consumer import Consumer, SUCCESS, CANCEL
from werkzeug import redirect
from glashammer.utils import sibpath, url_for, Response
from glashammer.bundles.sessions import setup_sessions, get_session
from glashammer.bundles.auth import setup_auth, login
def login_view(req):
session = get_session()
consumer = Consumer(session, None)
url_back = url_for('openid/login', _external=True)
if req.method == 'POST':
url = req.form.get('openid')
authreq = consumer.begin(url)
return redirect(authreq.redirectURL(url_back, url_back))
else:
res = consumer.complete(req.args, url_back)
if res.status == SUCCESS:
identity = req.args.get('openid.identity')
login(identity)
return Response('Successfully logged in as: %s' % identity)
elif res.status == CANCEL:
return Response('Cancelled')
else:
return Response('Nope')
print res == SUCCESS
def setup_openid(app):
app.add_setup(setup_sessions)
app.add_setup(setup_auth)
app.add_url('/openid/login', 'openid/login', view=login_view)
| [
37811,
198,
4743,
1077,
321,
647,
13,
65,
917,
829,
13,
3642,
822,
13,
18439,
13,
9654,
3755,
1071,
198,
27156,
27156,
15116,
4907,
198,
198,
11505,
4522,
7929,
329,
2671,
1077,
321,
647,
198,
198,
25,
22163,
4766,
25,
3050,
2671,
1077,
321,
647,
34152,
198,
25,
43085,
25,
17168,
198,
37811,
198,
198,
6738,
1280,
312,
13,
49827,
13,
49827,
1330,
18110,
11,
13558,
4093,
7597,
11,
15628,
34,
3698,
198,
198,
6738,
266,
9587,
2736,
1018,
1330,
18941,
198,
198,
6738,
1278,
1077,
321,
647,
13,
26791,
1330,
264,
571,
6978,
11,
19016,
62,
1640,
11,
18261,
198,
198,
6738,
1278,
1077,
321,
647,
13,
65,
917,
829,
13,
82,
6202,
1330,
9058,
62,
82,
6202,
11,
651,
62,
29891,
198,
6738,
1278,
1077,
321,
647,
13,
65,
917,
829,
13,
18439,
1330,
9058,
62,
18439,
11,
17594,
628,
198,
4299,
17594,
62,
1177,
7,
42180,
2599,
198,
220,
220,
220,
6246,
796,
651,
62,
29891,
3419,
198,
220,
220,
220,
7172,
796,
18110,
7,
29891,
11,
6045,
8,
198,
220,
220,
220,
19016,
62,
1891,
796,
19016,
62,
1640,
10786,
9654,
312,
14,
38235,
3256,
4808,
22615,
28,
17821,
8,
198,
220,
220,
220,
611,
43089,
13,
24396,
6624,
705,
32782,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
796,
43089,
13,
687,
13,
1136,
10786,
9654,
312,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6284,
42180,
796,
7172,
13,
27471,
7,
6371,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
18941,
7,
18439,
42180,
13,
445,
1060,
21886,
7,
6371,
62,
1891,
11,
19016,
62,
1891,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
7172,
13,
20751,
7,
42180,
13,
22046,
11,
19016,
62,
1891,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
581,
13,
13376,
6624,
13558,
4093,
7597,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5369,
796,
43089,
13,
22046,
13,
1136,
10786,
9654,
312,
13,
738,
414,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
7,
738,
414,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18261,
10786,
33244,
2759,
18832,
287,
355,
25,
4064,
82,
6,
4064,
5369,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
581,
13,
13376,
6624,
15628,
34,
3698,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18261,
10786,
34,
590,
3353,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
18261,
10786,
45,
3008,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
581,
6624,
13558,
4093,
7597,
628,
198,
4299,
9058,
62,
9654,
312,
7,
1324,
2599,
198,
220,
220,
220,
598,
13,
2860,
62,
40406,
7,
40406,
62,
82,
6202,
8,
198,
220,
220,
220,
598,
13,
2860,
62,
40406,
7,
40406,
62,
18439,
8,
628,
220,
220,
220,
598,
13,
2860,
62,
6371,
10786,
14,
9654,
312,
14,
38235,
3256,
705,
9654,
312,
14,
38235,
3256,
1570,
28,
38235,
62,
1177,
8,
198
] | 2.511321 | 530 |
import pandas as pd
import numpy as np
import os
import pickle as pkl
import json
from tqdm import tqdm
def convert_samples(samples):
print('Converting samples...')
indexes = samples[0]['index']
labels = [samples[0]['label']] * len(indexes)
del samples[0]
for sample in tqdm(samples):
# indexes = np.vstack((indexes, sample['index']))
indexes = np.concatenate((indexes, sample['index']), axis=0)
labels += [sample['label']] * len(sample['index'])
labels = np.asarray(labels)
return indexes, labels
def preprocess_data(data_path, task_type):
samples = []
labels = []
total = 0
print('Reading raw files for {}...'.format(task_type))
for file in tqdm(os.listdir(data_path)):
total += 1
if file.startswith('0'):
dead = 0
else:
dead = 1
raw_sample = pd.read_csv(os.path.join(data_path, file), sep=',')
raw_sample = raw_sample.fillna(0)
medicine = raw_sample.iloc[:, 209:].as_matrix()
index = raw_sample.iloc[:, 3:208].as_matrix()
index = np.concatenate((index, medicine), axis=1)
index = index.tolist()
samples += index
labels += [dead] * len(index)
# sample = {'patient_id': total,
# 'index': index,
# 'label': dead,
# 'name': file}
# samples.append(sample)
# train_samples, test_samples = train_test_split(samples, test_size=0.2)
# dim = samples[0]['index'].shape[1]
dim = len(samples[0])
# del samples
# indexes, labels = convert_samples(samples)
print('Num of samples : ', len(samples))
return [np.asarray(samples, dtype=np.float32), np.asarray(labels, dtype=np.int32)], dim
def save(data, path, data_type):
print('Saving {} data...'.format(data_type))
np.save(os.path.join(path, data_type + '_x.npy'), data[0])
np.save(os.path.join(path, data_type + '_y.npy'), data[1])
# with open(file_name, 'w') as f:
# json.dump(data, f)
# f.close()
single_task = ['5849', '25000', '41401', '4019']
for task in single_task:
path = 'data/preprocessed_data/baseline/' + task
if not os.path.exists(path):
os.makedirs(path)
train_data, dim = preprocess_data('data/raw_data/' + task + '/train', task)
save(train_data, 'data/preprocessed_data/baseline/' + task, 'train')
test_data, dim = preprocess_data('data/raw_data/' + task + '/test', task)
save(test_data, 'data/preprocessed_data/baseline/' + task, 'test')
| [
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
11748,
2298,
293,
355,
279,
41582,
198,
11748,
33918,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
628,
198,
4299,
10385,
62,
82,
12629,
7,
82,
12629,
2599,
198,
220,
220,
220,
3601,
10786,
3103,
48820,
8405,
986,
11537,
198,
220,
220,
220,
39199,
796,
8405,
58,
15,
7131,
6,
9630,
20520,
198,
220,
220,
220,
14722,
796,
685,
82,
12629,
58,
15,
7131,
6,
18242,
6,
11907,
1635,
18896,
7,
9630,
274,
8,
198,
220,
220,
220,
1619,
8405,
58,
15,
60,
198,
220,
220,
220,
329,
6291,
287,
256,
80,
36020,
7,
82,
12629,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
39199,
796,
45941,
13,
85,
25558,
19510,
9630,
274,
11,
6291,
17816,
9630,
20520,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
39199,
796,
45941,
13,
1102,
9246,
268,
378,
19510,
9630,
274,
11,
6291,
17816,
9630,
20520,
828,
16488,
28,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
14722,
15853,
685,
39873,
17816,
18242,
6,
11907,
1635,
18896,
7,
39873,
17816,
9630,
6,
12962,
628,
220,
220,
220,
14722,
796,
45941,
13,
292,
18747,
7,
23912,
1424,
8,
198,
220,
220,
220,
1441,
39199,
11,
14722,
628,
198,
4299,
662,
14681,
62,
7890,
7,
7890,
62,
6978,
11,
4876,
62,
4906,
2599,
198,
220,
220,
220,
8405,
796,
17635,
198,
220,
220,
220,
14722,
796,
17635,
198,
220,
220,
220,
2472,
796,
657,
198,
220,
220,
220,
3601,
10786,
36120,
8246,
3696,
329,
23884,
986,
4458,
18982,
7,
35943,
62,
4906,
4008,
198,
220,
220,
220,
329,
2393,
287,
256,
80,
36020,
7,
418,
13,
4868,
15908,
7,
7890,
62,
6978,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2472,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2393,
13,
9688,
2032,
342,
10786,
15,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2636,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2636,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
8246,
62,
39873,
796,
279,
67,
13,
961,
62,
40664,
7,
418,
13,
6978,
13,
22179,
7,
7890,
62,
6978,
11,
2393,
828,
41767,
28,
3256,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
8246,
62,
39873,
796,
8246,
62,
39873,
13,
20797,
2616,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9007,
796,
8246,
62,
39873,
13,
346,
420,
58,
45299,
28815,
25,
4083,
292,
62,
6759,
8609,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
8246,
62,
39873,
13,
346,
420,
58,
45299,
513,
25,
21315,
4083,
292,
62,
6759,
8609,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
45941,
13,
1102,
9246,
268,
378,
19510,
9630,
11,
9007,
828,
16488,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
6376,
13,
83,
349,
396,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
8405,
15853,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
14722,
15853,
685,
25124,
60,
1635,
18896,
7,
9630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
6291,
796,
1391,
6,
26029,
62,
312,
10354,
2472,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9630,
10354,
6376,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18242,
10354,
2636,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
2393,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
8405,
13,
33295,
7,
39873,
8,
198,
220,
220,
220,
1303,
4512,
62,
82,
12629,
11,
1332,
62,
82,
12629,
796,
4512,
62,
9288,
62,
35312,
7,
82,
12629,
11,
1332,
62,
7857,
28,
15,
13,
17,
8,
198,
220,
220,
220,
1303,
5391,
796,
8405,
58,
15,
7131,
6,
9630,
6,
4083,
43358,
58,
16,
60,
198,
220,
220,
220,
5391,
796,
18896,
7,
82,
12629,
58,
15,
12962,
198,
220,
220,
220,
1303,
1619,
8405,
198,
220,
220,
220,
1303,
39199,
11,
14722,
796,
10385,
62,
82,
12629,
7,
82,
12629,
8,
198,
220,
220,
220,
3601,
10786,
33111,
286,
8405,
1058,
46083,
18896,
7,
82,
12629,
4008,
198,
220,
220,
220,
1441,
685,
37659,
13,
292,
18747,
7,
82,
12629,
11,
288,
4906,
28,
37659,
13,
22468,
2624,
828,
45941,
13,
292,
18747,
7,
23912,
1424,
11,
288,
4906,
28,
37659,
13,
600,
2624,
8,
4357,
5391,
628,
198,
4299,
3613,
7,
7890,
11,
3108,
11,
1366,
62,
4906,
2599,
198,
220,
220,
220,
3601,
10786,
50,
2703,
23884,
1366,
986,
4458,
18982,
7,
7890,
62,
4906,
4008,
198,
220,
220,
220,
45941,
13,
21928,
7,
418,
13,
6978,
13,
22179,
7,
6978,
11,
1366,
62,
4906,
1343,
705,
62,
87,
13,
77,
9078,
33809,
1366,
58,
15,
12962,
198,
220,
220,
220,
45941,
13,
21928,
7,
418,
13,
6978,
13,
22179,
7,
6978,
11,
1366,
62,
4906,
1343,
705,
62,
88,
13,
77,
9078,
33809,
1366,
58,
16,
12962,
198,
220,
220,
220,
1303,
351,
1280,
7,
7753,
62,
3672,
11,
705,
86,
11537,
355,
277,
25,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
33918,
13,
39455,
7,
7890,
11,
277,
8,
198,
220,
220,
220,
1303,
277,
13,
19836,
3419,
628,
198,
29762,
62,
35943,
796,
37250,
3365,
2920,
3256,
705,
1495,
830,
3256,
705,
37309,
486,
3256,
705,
21844,
24,
20520,
198,
1640,
4876,
287,
2060,
62,
35943,
25,
198,
220,
220,
220,
3108,
796,
705,
7890,
14,
3866,
14681,
276,
62,
7890,
14,
12093,
4470,
14,
6,
1343,
4876,
198,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
6978,
8,
198,
220,
220,
220,
4512,
62,
7890,
11,
5391,
796,
662,
14681,
62,
7890,
10786,
7890,
14,
1831,
62,
7890,
14,
6,
1343,
4876,
1343,
31051,
27432,
3256,
4876,
8,
198,
220,
220,
220,
3613,
7,
27432,
62,
7890,
11,
705,
7890,
14,
3866,
14681,
276,
62,
7890,
14,
12093,
4470,
14,
6,
1343,
4876,
11,
705,
27432,
11537,
198,
220,
220,
220,
1332,
62,
7890,
11,
5391,
796,
662,
14681,
62,
7890,
10786,
7890,
14,
1831,
62,
7890,
14,
6,
1343,
4876,
1343,
31051,
9288,
3256,
4876,
8,
198,
220,
220,
220,
3613,
7,
9288,
62,
7890,
11,
705,
7890,
14,
3866,
14681,
276,
62,
7890,
14,
12093,
4470,
14,
6,
1343,
4876,
11,
705,
9288,
11537,
198
] | 2.259325 | 1,126 |
import webapp2
from webapp2_extras import jinja2
class BaseHandler(webapp2.RequestHandler):
"""Provide a cached Jinja environment to each request."""
def render_response(self, _template, **context):
# Renders a template and writes the result to the response.
rv = self.jinja2.render_template(_template, **context)
self.response.write(rv)
class MainPage(BaseHandler):
def get(self):
context = {'title': 'Example App'}
self.render_response('main.html', **context)
app = webapp2.WSGIApplication([("/_ah/warmup", MainPage),
('/', MainPage),
])
| [
11748,
3992,
1324,
17,
198,
6738,
3992,
1324,
17,
62,
2302,
8847,
1330,
474,
259,
6592,
17,
628,
198,
4871,
7308,
25060,
7,
12384,
1324,
17,
13,
18453,
25060,
2599,
198,
220,
37227,
15946,
485,
257,
39986,
17297,
6592,
2858,
284,
1123,
2581,
526,
15931,
628,
220,
825,
8543,
62,
26209,
7,
944,
11,
4808,
28243,
11,
12429,
22866,
2599,
198,
220,
220,
220,
1303,
371,
7338,
257,
11055,
290,
6797,
262,
1255,
284,
262,
2882,
13,
198,
220,
220,
220,
374,
85,
796,
2116,
13,
18594,
6592,
17,
13,
13287,
62,
28243,
28264,
28243,
11,
12429,
22866,
8,
198,
220,
220,
220,
2116,
13,
26209,
13,
13564,
7,
81,
85,
8,
628,
198,
4871,
8774,
9876,
7,
14881,
25060,
2599,
198,
220,
825,
651,
7,
944,
2599,
198,
220,
220,
220,
4732,
796,
1391,
6,
7839,
10354,
705,
16281,
2034,
6,
92,
198,
220,
220,
220,
2116,
13,
13287,
62,
26209,
10786,
12417,
13,
6494,
3256,
12429,
22866,
8,
628,
198,
1324,
796,
3992,
1324,
17,
13,
19416,
38,
3539,
381,
10142,
26933,
7203,
47835,
993,
14,
31975,
929,
1600,
8774,
9876,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19203,
14,
3256,
8774,
9876,
828,
198,
12962,
198
] | 2.696429 | 224 |
import unittest
from src.choice import Choice
from src.choice.exceptions import InvalidChoiceException
class UserChoiceTests(unittest.TestCase):
"""Tests for the user choice class"""
def test_valid_choice(self):
"""Test valid user input"""
choice = Choice('r')
self.assertTrue(choice.is_valid())
self.assertEqual(choice.get_choice(), 0)
def test_invalid_choice(self):
"""Test invalid user input"""
choice = Choice('h')
self.assertFalse(choice.is_valid())
with self.assertRaises(InvalidChoiceException):
choice.get_choice()
if __name__ == '__main__':
unittest.main()
| [
11748,
555,
715,
395,
198,
198,
6738,
12351,
13,
25541,
1330,
18502,
198,
6738,
12351,
13,
25541,
13,
1069,
11755,
1330,
17665,
46770,
16922,
628,
198,
4871,
11787,
46770,
51,
3558,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
51,
3558,
329,
262,
2836,
3572,
1398,
37811,
628,
220,
220,
220,
825,
1332,
62,
12102,
62,
25541,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
4938,
2836,
5128,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
3572,
796,
18502,
10786,
81,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
17821,
7,
25541,
13,
271,
62,
12102,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
36,
13255,
7,
25541,
13,
1136,
62,
25541,
22784,
657,
8,
628,
220,
220,
220,
825,
1332,
62,
259,
12102,
62,
25541,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14402,
12515,
2836,
5128,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
3572,
796,
18502,
10786,
71,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30493,
25101,
7,
25541,
13,
271,
62,
12102,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
351,
2116,
13,
30493,
21762,
2696,
7,
44651,
46770,
16922,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3572,
13,
1136,
62,
25541,
3419,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 2.607843 | 255 |
class Solution:
def findCenter(self, edges: List[List[int]]) -> int:
return list(set(edges[0]) & set(edges[1]))[0]
| [
4871,
28186,
25,
198,
220,
220,
220,
825,
1064,
23656,
7,
944,
11,
13015,
25,
7343,
58,
8053,
58,
600,
11907,
8,
4613,
493,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1351,
7,
2617,
7,
276,
3212,
58,
15,
12962,
1222,
900,
7,
276,
3212,
58,
16,
60,
4008,
58,
15,
60,
198
] | 2.267857 | 56 |
#!/usr/bin/env python3
import unittest
import os
import networkit as nk
class Test_Centrality(unittest.TestCase):
def test_DegreeCentrality(self):
g = nk.Graph(8, False, False)
g.addEdge(0, 2)
g.addEdge(0, 5)
g.addEdge(1, 2)
g.addEdge(2, 3)
g.addEdge(2, 2)
g.addEdge(2, 4)
g.addEdge(3, 5)
g.addEdge(4, 5)
g.addEdge(5, 5)
g.addEdge(5, 6)
g.addEdge(5, 7)
g.addEdge(7, 7)
expected_result = [2.0, 1.0, 4.0, 2.0, 2.0, 5.0, 1.0, 1.0]
dc = nk.centrality.DegreeCentrality(g).run().scores()
self.assertListEqual(expected_result, dc)
if __name__ == "__main__":
unittest.main()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
11748,
555,
715,
395,
198,
11748,
28686,
198,
11748,
3127,
270,
355,
299,
74,
628,
198,
4871,
6208,
62,
30645,
414,
7,
403,
715,
395,
13,
14402,
20448,
2599,
628,
197,
4299,
1332,
62,
35,
1533,
631,
30645,
414,
7,
944,
2599,
198,
197,
197,
70,
796,
299,
74,
13,
37065,
7,
23,
11,
10352,
11,
10352,
8,
628,
197,
197,
70,
13,
2860,
37021,
7,
15,
11,
362,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
15,
11,
642,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
16,
11,
362,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
17,
11,
513,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
17,
11,
362,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
17,
11,
604,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
18,
11,
642,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
19,
11,
642,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
20,
11,
642,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
20,
11,
718,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
20,
11,
767,
8,
198,
197,
197,
70,
13,
2860,
37021,
7,
22,
11,
767,
8,
628,
197,
197,
40319,
62,
20274,
796,
685,
17,
13,
15,
11,
352,
13,
15,
11,
604,
13,
15,
11,
362,
13,
15,
11,
362,
13,
15,
11,
642,
13,
15,
11,
352,
13,
15,
11,
352,
13,
15,
60,
628,
197,
197,
17896,
796,
299,
74,
13,
31463,
414,
13,
35,
1533,
631,
30645,
414,
7,
70,
737,
5143,
22446,
1416,
2850,
3419,
628,
197,
197,
944,
13,
30493,
8053,
36,
13255,
7,
40319,
62,
20274,
11,
30736,
8,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
197,
403,
715,
395,
13,
12417,
3419,
198
] | 1.945687 | 313 |
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 28 15:03:12 2020
@author: Ayantika
"""
# Importing necessary libraries
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
import pickle
# Reading the data
Wine = pd.read_csv("Wine.csv")
print(Wine.head())
#iris.drop("Id", axis=1, inplace = True)
y = Wine['Customer_Segment']
Wine.drop(columns='Customer_Segment',inplace=True)
X = Wine[['Alcohol', 'Malic_Acid', 'Ash', 'Ash_Alcanity', 'Magnesium', 'Total_Phenols', 'Flavanoids',
'Nonflavanoid_Phenols', 'Proanthocyanins', 'Color_Intensity', 'Hue', 'OD280', 'Proline']]
# Training the model
x_train,x_test,y_train,y_test = train_test_split(X,y, test_size=0.3)
model = LogisticRegression()
model.fit(x_train,y_train)
pickle.dump(model,open('model.pkl','wb'))
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
201,
198,
37811,
201,
198,
41972,
319,
19480,
3158,
2579,
1315,
25,
3070,
25,
1065,
12131,
201,
198,
201,
198,
31,
9800,
25,
13709,
415,
9232,
201,
198,
37811,
201,
198,
201,
198,
2,
17267,
278,
3306,
12782,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
11748,
19798,
292,
355,
279,
67,
220,
201,
198,
6738,
19798,
292,
1330,
7171,
11,
6060,
19778,
201,
198,
6738,
1341,
35720,
13,
19849,
62,
49283,
1330,
4512,
62,
9288,
62,
35312,
220,
201,
198,
6738,
1341,
35720,
13,
29127,
62,
19849,
1330,
5972,
2569,
8081,
2234,
201,
198,
11748,
2298,
293,
201,
198,
201,
198,
2,
11725,
262,
1366,
201,
198,
54,
500,
796,
279,
67,
13,
961,
62,
40664,
7203,
54,
500,
13,
40664,
4943,
201,
198,
4798,
7,
54,
500,
13,
2256,
28955,
201,
198,
2,
29616,
13,
14781,
7203,
7390,
1600,
16488,
28,
16,
11,
287,
5372,
796,
6407,
8,
201,
198,
88,
796,
20447,
17816,
44939,
62,
41030,
434,
20520,
201,
198,
54,
500,
13,
14781,
7,
28665,
82,
11639,
44939,
62,
41030,
434,
3256,
259,
5372,
28,
17821,
8,
201,
198,
55,
796,
20447,
58,
17816,
2348,
4857,
3256,
705,
15029,
291,
62,
12832,
312,
3256,
705,
26754,
3256,
705,
26754,
62,
2348,
5171,
414,
3256,
705,
13436,
27619,
3256,
705,
14957,
62,
47,
831,
10220,
3256,
705,
7414,
12421,
10994,
3256,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15419,
2704,
12421,
1868,
62,
47,
831,
10220,
3256,
705,
2964,
29313,
420,
4121,
1040,
3256,
705,
10258,
62,
5317,
6377,
3256,
705,
39,
518,
3256,
705,
3727,
21033,
3256,
705,
2964,
1370,
6,
11907,
201,
198,
201,
198,
2,
13614,
262,
2746,
201,
198,
87,
62,
27432,
11,
87,
62,
9288,
11,
88,
62,
27432,
11,
88,
62,
9288,
796,
4512,
62,
9288,
62,
35312,
7,
55,
11,
88,
11,
1332,
62,
7857,
28,
15,
13,
18,
8,
201,
198,
19849,
796,
5972,
2569,
8081,
2234,
3419,
201,
198,
19849,
13,
11147,
7,
87,
62,
27432,
11,
88,
62,
27432,
8,
201,
198,
201,
198,
27729,
293,
13,
39455,
7,
19849,
11,
9654,
10786,
19849,
13,
79,
41582,
41707,
39346,
6,
4008,
201,
198
] | 2.476064 | 376 |
from app import app
from models import db, connect_db, User, Issue, Comment, Priority, Status, Category, Role
# Drop db tables and create them anew
db.drop_all()
db.create_all()
# Priority
p1 = Priority(
priority_id=0,
priority_label="Low"
)
p2 = Priority(
priority_id=1,
priority_label="Medium"
)
p3 = Priority(
priority_id=2,
priority_label="High"
)
p4 = Priority(
priority_id=3,
priority_label="Urgent"
)
# Status
s1 = Status(
status_id=0,
status_label="Submitted"
)
s2 = Status(
status_id=1,
status_label="Assigned"
)
s3 = Status(
status_id=2,
status_label="Resolved"
)
# Category
c1 = Category(
category_id=0,
category_label="Technical Issue"
)
c2 = Category(
category_id=1,
category_label="Customer Complaint"
)
c3 = Category(
category_id=2,
category_label="Product Request"
)
ro1 = Role(
role_id=0,
role_label="user"
)
ro2 = Role(
role_id=1,
role_label="assignee"
)
ro3 = Role(
role_id=2,
role_label="admin"
)
db.session.add_all([p1,p2,p3,p4,s1,s2,s3,c1,c2,c3,ro1,ro2,ro3])
db.session.commit()
# Sample users.
# u1 = User.register(
# email="user1@example.com",
# first_name="Admin",
# last_name="User",
# password="password1"
# )
# u2 = User.register(
# email="user2@example.com",
# first_name="Regular",
# last_name="User",
# password="password2"
# )
# u3 = User.register(
# email="user3@example.com",
# first_name="Assignee",
# last_name="User",
# password="password3"
# )
# u1.role = 2
# u3.role = 1
# db.session.commit()
# # Sample issues
# i1 = Issue(
# title="Printer on fire!",
# text="Huge flames are shooting out of paper tray 1!!! Please bring fire extinguisher ASAP!!!",
# reporter=2
# )
# i2 = Issue(
# title="Computer not responding",
# text="My PC is showing the loading spinner and will not respond to keyboard or mouse input. It has been doing this for 6 weeks.",
# reporter=2
# )
# i3 = Issue(
# title="Please bring in nacho flavored Beanfields chips",
# text="We're not saying you're going to get addicted to our slamming NACHO, but we're also not going to say you won't. Nacho-lly we're biased since it is our best seller. NACHO just has unmatched taste that makes being cheesy, well, cool and vegan. The kinda vegan you want at your barbecue so you can say, 'yeah NACHO came with me. We're good like that.' Nacho average tortilla chip.",
# category=2,
# reporter=3
# )
# i4 = Issue(
# title="Clerk was rude and dismissive",
# text="She told me to wear a mask, and I don't wanna!",
# category=1,
# reporter=3
# )
# db.session.add_all([i1,i2,i3,i4])
# db.session.commit()
| [
6738,
598,
1330,
598,
198,
6738,
4981,
1330,
20613,
11,
2018,
62,
9945,
11,
11787,
11,
18232,
11,
18957,
11,
34416,
11,
12678,
11,
21743,
11,
20934,
198,
198,
2,
14258,
20613,
8893,
290,
2251,
606,
44951,
198,
9945,
13,
14781,
62,
439,
3419,
198,
9945,
13,
17953,
62,
439,
3419,
198,
198,
2,
34416,
198,
198,
79,
16,
796,
34416,
7,
198,
220,
220,
220,
8475,
62,
312,
28,
15,
11,
198,
220,
220,
220,
8475,
62,
18242,
2625,
20535,
1,
198,
8,
198,
198,
79,
17,
796,
34416,
7,
198,
220,
220,
220,
8475,
62,
312,
28,
16,
11,
198,
220,
220,
220,
8475,
62,
18242,
2625,
31205,
1,
198,
8,
198,
198,
79,
18,
796,
34416,
7,
198,
220,
220,
220,
8475,
62,
312,
28,
17,
11,
198,
220,
220,
220,
8475,
62,
18242,
2625,
11922,
1,
198,
8,
198,
198,
79,
19,
796,
34416,
7,
198,
220,
220,
220,
8475,
62,
312,
28,
18,
11,
198,
220,
220,
220,
8475,
62,
18242,
2625,
16692,
6783,
1,
198,
8,
198,
198,
2,
12678,
198,
198,
82,
16,
796,
12678,
7,
198,
220,
220,
220,
3722,
62,
312,
28,
15,
11,
198,
220,
220,
220,
3722,
62,
18242,
2625,
7004,
3291,
1,
198,
8,
198,
198,
82,
17,
796,
12678,
7,
198,
220,
220,
220,
3722,
62,
312,
28,
16,
11,
198,
220,
220,
220,
3722,
62,
18242,
2625,
8021,
3916,
1,
198,
8,
198,
198,
82,
18,
796,
12678,
7,
198,
220,
220,
220,
3722,
62,
312,
28,
17,
11,
198,
220,
220,
220,
3722,
62,
18242,
2625,
4965,
5634,
1,
198,
8,
198,
198,
2,
21743,
198,
198,
66,
16,
796,
21743,
7,
198,
220,
220,
220,
6536,
62,
312,
28,
15,
11,
198,
220,
220,
220,
6536,
62,
18242,
2625,
45638,
18232,
1,
198,
8,
198,
198,
66,
17,
796,
21743,
7,
198,
220,
220,
220,
6536,
62,
312,
28,
16,
11,
198,
220,
220,
220,
6536,
62,
18242,
2625,
44939,
20011,
2913,
1,
198,
8,
198,
198,
66,
18,
796,
21743,
7,
198,
220,
220,
220,
6536,
62,
312,
28,
17,
11,
198,
220,
220,
220,
6536,
62,
18242,
2625,
15667,
19390,
1,
198,
8,
198,
198,
305,
16,
796,
20934,
7,
198,
220,
220,
220,
2597,
62,
312,
28,
15,
11,
198,
220,
220,
220,
2597,
62,
18242,
2625,
7220,
1,
198,
8,
198,
198,
305,
17,
796,
20934,
7,
198,
220,
220,
220,
2597,
62,
312,
28,
16,
11,
198,
220,
220,
220,
2597,
62,
18242,
2625,
562,
570,
1453,
1,
198,
8,
198,
198,
305,
18,
796,
20934,
7,
198,
220,
220,
220,
2597,
62,
312,
28,
17,
11,
198,
220,
220,
220,
2597,
62,
18242,
2625,
28482,
1,
198,
8,
628,
198,
9945,
13,
29891,
13,
2860,
62,
439,
26933,
79,
16,
11,
79,
17,
11,
79,
18,
11,
79,
19,
11,
82,
16,
11,
82,
17,
11,
82,
18,
11,
66,
16,
11,
66,
17,
11,
66,
18,
11,
305,
16,
11,
305,
17,
11,
305,
18,
12962,
198,
9945,
13,
29891,
13,
41509,
3419,
198,
198,
2,
27565,
2985,
13,
198,
198,
2,
334,
16,
796,
11787,
13,
30238,
7,
198,
2,
220,
220,
220,
220,
3053,
2625,
7220,
16,
31,
20688,
13,
785,
1600,
198,
2,
220,
220,
220,
220,
717,
62,
3672,
2625,
46787,
1600,
198,
2,
220,
220,
220,
220,
938,
62,
3672,
2625,
12982,
1600,
198,
2,
220,
220,
220,
220,
9206,
2625,
28712,
16,
1,
198,
2,
1267,
198,
198,
2,
334,
17,
796,
11787,
13,
30238,
7,
198,
2,
220,
220,
220,
220,
3053,
2625,
7220,
17,
31,
20688,
13,
785,
1600,
198,
2,
220,
220,
220,
220,
717,
62,
3672,
2625,
40164,
1600,
198,
2,
220,
220,
220,
220,
938,
62,
3672,
2625,
12982,
1600,
198,
2,
220,
220,
220,
220,
9206,
2625,
28712,
17,
1,
198,
2,
1267,
198,
198,
2,
334,
18,
796,
11787,
13,
30238,
7,
198,
2,
220,
220,
220,
220,
3053,
2625,
7220,
18,
31,
20688,
13,
785,
1600,
198,
2,
220,
220,
220,
220,
717,
62,
3672,
2625,
8021,
570,
1453,
1600,
198,
2,
220,
220,
220,
220,
938,
62,
3672,
2625,
12982,
1600,
198,
2,
220,
220,
220,
220,
9206,
2625,
28712,
18,
1,
198,
2,
1267,
198,
198,
2,
334,
16,
13,
18090,
796,
362,
198,
2,
334,
18,
13,
18090,
796,
352,
198,
198,
2,
20613,
13,
29891,
13,
41509,
3419,
198,
198,
2,
1303,
27565,
2428,
198,
198,
2,
1312,
16,
796,
18232,
7,
198,
2,
220,
220,
220,
220,
3670,
2625,
6836,
3849,
319,
2046,
40754,
198,
2,
220,
220,
220,
220,
2420,
2625,
39,
2217,
16209,
389,
4395,
503,
286,
3348,
26473,
352,
10185,
4222,
2222,
2046,
24995,
4828,
46199,
10185,
1600,
198,
2,
220,
220,
220,
220,
9095,
28,
17,
198,
2,
1267,
198,
198,
2,
1312,
17,
796,
18232,
7,
198,
2,
220,
220,
220,
220,
3670,
2625,
34556,
407,
14409,
1600,
198,
2,
220,
220,
220,
220,
2420,
2625,
3666,
4217,
318,
4478,
262,
11046,
599,
5083,
290,
481,
407,
3031,
284,
10586,
393,
10211,
5128,
13,
220,
632,
468,
587,
1804,
428,
329,
718,
2745,
33283,
198,
2,
220,
220,
220,
220,
9095,
28,
17,
198,
2,
1267,
198,
198,
2,
1312,
18,
796,
18232,
7,
198,
2,
220,
220,
220,
220,
3670,
2625,
5492,
2222,
287,
299,
43703,
45613,
26510,
25747,
12014,
1600,
198,
2,
220,
220,
220,
220,
2420,
2625,
1135,
821,
407,
2282,
345,
821,
1016,
284,
651,
28357,
284,
674,
39603,
399,
16219,
46,
11,
475,
356,
821,
635,
407,
1016,
284,
910,
345,
1839,
470,
13,
399,
43703,
12,
12810,
356,
821,
21925,
1201,
340,
318,
674,
1266,
18583,
13,
399,
16219,
46,
655,
468,
48621,
6938,
326,
1838,
852,
45002,
11,
880,
11,
3608,
290,
15169,
13,
383,
17855,
15169,
345,
765,
379,
534,
36646,
523,
345,
460,
910,
11,
705,
43669,
399,
16219,
46,
1625,
351,
502,
13,
775,
821,
922,
588,
326,
2637,
399,
43703,
2811,
7619,
5049,
11594,
33283,
198,
2,
220,
220,
220,
220,
6536,
28,
17,
11,
198,
2,
220,
220,
220,
220,
9095,
28,
18,
198,
2,
1267,
198,
198,
2,
1312,
19,
796,
18232,
7,
198,
2,
220,
220,
220,
220,
3670,
2625,
34,
1754,
74,
373,
22066,
290,
49010,
1600,
198,
2,
220,
220,
220,
220,
2420,
2625,
3347,
1297,
502,
284,
5806,
257,
9335,
11,
290,
314,
836,
470,
18869,
40754,
198,
2,
220,
220,
220,
220,
6536,
28,
16,
11,
198,
2,
220,
220,
220,
220,
9095,
28,
18,
198,
2,
1267,
198,
198,
2,
20613,
13,
29891,
13,
2860,
62,
439,
26933,
72,
16,
11,
72,
17,
11,
72,
18,
11,
72,
19,
12962,
198,
2,
20613,
13,
29891,
13,
41509,
3419,
198
] | 2.454709 | 1,115 |
from main import app
app.run(host='127.0.0.1', port=8090, debug=True)
| [
6738,
1388,
1330,
598,
198,
1324,
13,
5143,
7,
4774,
11639,
16799,
13,
15,
13,
15,
13,
16,
3256,
2493,
28,
1795,
3829,
11,
14257,
28,
17821,
8,
198
] | 2.413793 | 29 |
"""
:py:mod:`pymco.ssl`
-------------------
Contains SSL security provider plugin.
"""
from __future__ import print_function
import base64
import os
try:
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
except ImportError as exc:
print('You need install pycrypto for using SSL security provider')
raise exc
from .. import exc
from . import SecurityProvider
from .. import utils
class SSLProvider(SecurityProvider):
"""Provide SSL security provider plugin.
See
http://docs.puppetlabs.com/mcollective/reference/plugins/security_ssl.html
for further information.
"""
def __init__(self, config):
super(SSLProvider, self).__init__(config=config)
self._private_key = None
self._server_public_key = None
self._caller_id = None
self._serializer = None
def sign(self, msg):
"""Implement :py:meth:`pymco.security.SecurityProvider.sign`."""
msg[':callerid'] = self.callerid
msg[':hash'] = self.get_hash(msg)
return msg
def verify(self, msg):
"""Implement :py:meth:`pymco.security.SecurityProvider.verify`."""
hash_ = SHA.new(msg[':body'].encode('utf8'))
verifier = PKCS1_v1_5.new(self.server_public_key)
signature = base64.b64decode(msg[':hash'])
if not verifier.verify(hash_, signature):
raise exc.VerificationError(
'Message {0} can\'t be verified'.format(msg))
return msg
def get_hash(self, msg):
"""Get the hash for the given message.
:arg pymco.message.Message msg: message to get hash for.
:return: message hash so the receiver can verify the message.
"""
hashed_signature = SHA.new(msg[':body'].encode('utf8'))
signer = PKCS1_v1_5.new(self.private_key)
hashed_signature = signer.sign(hashed_signature)
return base64.b64encode(hashed_signature)
def _load_rsa_key(self, key, cache):
if not cache:
cache = self._server_public_key = utils.load_rsa_key(self.config[key])
return cache
| [
37811,
198,
25,
9078,
25,
4666,
25,
63,
79,
4948,
1073,
13,
45163,
63,
198,
1783,
6329,
198,
4264,
1299,
25952,
2324,
10131,
13877,
13,
198,
37811,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
11748,
2779,
2414,
198,
11748,
28686,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
36579,
13,
11712,
1300,
1330,
29673,
7902,
16,
62,
85,
16,
62,
20,
198,
220,
220,
220,
422,
36579,
13,
26257,
1330,
25630,
198,
16341,
17267,
12331,
355,
2859,
25,
198,
220,
220,
220,
3601,
10786,
1639,
761,
2721,
12972,
29609,
78,
329,
1262,
25952,
2324,
10131,
11537,
198,
220,
220,
220,
5298,
2859,
198,
198,
6738,
11485,
1330,
2859,
198,
6738,
764,
1330,
4765,
29495,
198,
6738,
11485,
1330,
3384,
4487,
628,
198,
4871,
25952,
29495,
7,
24074,
29495,
2599,
198,
220,
220,
220,
37227,
15946,
485,
25952,
2324,
10131,
13877,
13,
628,
220,
220,
220,
4091,
198,
220,
220,
220,
2638,
1378,
31628,
13,
79,
44933,
75,
8937,
13,
785,
14,
76,
33327,
425,
14,
35790,
14,
37390,
14,
12961,
62,
45163,
13,
6494,
198,
220,
220,
220,
329,
2252,
1321,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
4566,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
7,
31127,
29495,
11,
2116,
737,
834,
15003,
834,
7,
11250,
28,
11250,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
19734,
62,
2539,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15388,
62,
11377,
62,
2539,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
13345,
263,
62,
312,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
46911,
7509,
796,
6045,
628,
220,
220,
220,
825,
1051,
7,
944,
11,
31456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3546,
26908,
1058,
9078,
25,
76,
2788,
25,
63,
79,
4948,
1073,
13,
12961,
13,
24074,
29495,
13,
12683,
63,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
58,
10354,
13345,
263,
312,
20520,
796,
2116,
13,
13345,
263,
312,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
58,
10354,
17831,
20520,
796,
2116,
13,
1136,
62,
17831,
7,
19662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
31456,
628,
220,
220,
220,
825,
11767,
7,
944,
11,
31456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3546,
26908,
1058,
9078,
25,
76,
2788,
25,
63,
79,
4948,
1073,
13,
12961,
13,
24074,
29495,
13,
332,
1958,
63,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
12234,
62,
796,
25630,
13,
3605,
7,
19662,
58,
10354,
2618,
6,
4083,
268,
8189,
10786,
40477,
23,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3326,
7483,
796,
29673,
7902,
16,
62,
85,
16,
62,
20,
13,
3605,
7,
944,
13,
15388,
62,
11377,
62,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9877,
796,
2779,
2414,
13,
65,
2414,
12501,
1098,
7,
19662,
58,
10354,
17831,
6,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
3326,
7483,
13,
332,
1958,
7,
17831,
62,
11,
9877,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
2859,
13,
13414,
2649,
12331,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12837,
1391,
15,
92,
460,
43054,
83,
307,
19000,
4458,
18982,
7,
19662,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
31456,
628,
220,
220,
220,
825,
651,
62,
17831,
7,
944,
11,
31456,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
262,
12234,
329,
262,
1813,
3275,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
853,
279,
4948,
1073,
13,
20500,
13,
12837,
31456,
25,
3275,
284,
651,
12234,
329,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
3275,
12234,
523,
262,
9733,
460,
11767,
262,
3275,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
468,
704,
62,
12683,
1300,
796,
25630,
13,
3605,
7,
19662,
58,
10354,
2618,
6,
4083,
268,
8189,
10786,
40477,
23,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1051,
263,
796,
29673,
7902,
16,
62,
85,
16,
62,
20,
13,
3605,
7,
944,
13,
19734,
62,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
468,
704,
62,
12683,
1300,
796,
1051,
263,
13,
12683,
7,
71,
5263,
62,
12683,
1300,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2779,
2414,
13,
65,
2414,
268,
8189,
7,
71,
5263,
62,
12683,
1300,
8,
628,
220,
220,
220,
825,
4808,
2220,
62,
3808,
64,
62,
2539,
7,
944,
11,
1994,
11,
12940,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
12940,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12940,
796,
2116,
13557,
15388,
62,
11377,
62,
2539,
796,
3384,
4487,
13,
2220,
62,
3808,
64,
62,
2539,
7,
944,
13,
11250,
58,
2539,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
12940,
198
] | 2.439675 | 862 |
import inspect
import pkgutil
from importlib import import_module
from pathlib import Path
from client.connection import Connection
from client.exceptions import ArkParameterException
from client.resource import Resource
class ArkClient(object):
def __init__(self, hostname):
"""
:param string hostname: Node hostname. Examples: `http://127.0.0.1:4002` or
`http://my.domain.io/api/`. This is to allow people to server the api
on whatever url they want.
"""
self.connection = Connection(hostname)
self._import_api()
def _import_api(self):
"""
Dynamically imports API endpoints.
"""
modules = pkgutil.iter_modules([str(Path(__file__).parent / 'api')])
for _, name, _ in modules:
module = import_module('client.api.{}'.format(name))
for attr in dir(module):
# If attr name is `Resource`, skip it as it's a class and also has a
# subclass of Resource
if attr == 'Resource':
continue
attribute = getattr(module, attr)
if inspect.isclass(attribute) and issubclass(attribute, Resource):
# Set module class as a property on the client
setattr(self, name, attribute(self.connection))
| [
11748,
10104,
198,
11748,
279,
10025,
22602,
198,
6738,
1330,
8019,
1330,
1330,
62,
21412,
198,
6738,
3108,
8019,
1330,
10644,
198,
198,
6738,
5456,
13,
38659,
1330,
26923,
198,
6738,
5456,
13,
1069,
11755,
1330,
9128,
36301,
16922,
198,
6738,
5456,
13,
31092,
1330,
20857,
198,
198,
4871,
9128,
11792,
7,
15252,
2599,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2583,
3672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4731,
2583,
3672,
25,
19081,
2583,
3672,
13,
21066,
25,
4600,
4023,
1378,
16799,
13,
15,
13,
15,
13,
16,
25,
7029,
17,
63,
393,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4600,
4023,
1378,
1820,
13,
27830,
13,
952,
14,
15042,
14,
44646,
770,
318,
284,
1249,
661,
284,
4382,
262,
40391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
4232,
19016,
484,
765,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
38659,
796,
26923,
7,
4774,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
11748,
62,
15042,
3419,
628,
220,
220,
220,
825,
4808,
11748,
62,
15042,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
14970,
1146,
17944,
7824,
886,
13033,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
13103,
796,
279,
10025,
22602,
13,
2676,
62,
18170,
26933,
2536,
7,
15235,
7,
834,
7753,
834,
737,
8000,
1220,
705,
15042,
11537,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
329,
4808,
11,
1438,
11,
4808,
287,
13103,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8265,
796,
1330,
62,
21412,
10786,
16366,
13,
15042,
13,
90,
92,
4458,
18982,
7,
3672,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
708,
81,
287,
26672,
7,
21412,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
708,
81,
1438,
318,
4600,
26198,
47671,
14267,
340,
355,
340,
338,
257,
1398,
290,
635,
468,
257,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
47611,
286,
20857,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
708,
81,
6624,
705,
26198,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11688,
796,
651,
35226,
7,
21412,
11,
708,
81,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
10104,
13,
271,
4871,
7,
42348,
8,
290,
1189,
549,
4871,
7,
42348,
11,
20857,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5345,
8265,
1398,
355,
257,
3119,
319,
262,
5456,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
1438,
11,
11688,
7,
944,
13,
38659,
4008,
198
] | 2.383128 | 569 |
import avalon.api
from reveries.maya import lib, capsule
from reveries.maya.plugins import ReferenceLoader
class CameraLoader(ReferenceLoader, avalon.api.Loader):
"""Specific loader for the reveries.camera family"""
label = "Reference camera"
order = -10
icon = "code-fork"
color = "orange"
hosts = ["maya"]
families = ["reveries.camera"]
representations = [
"mayaAscii",
"Alembic",
"FBX",
]
def process_reference(self, context, name, namespace, group, options):
import maya.cmds as cmds
representation = context["representation"]
entry_path = self.file_path(representation)
nodes = cmds.file(entry_path,
namespace=namespace,
ignoreVersion=True,
sharedReferenceFile=False,
groupReference=True,
groupName=group,
reference=True,
lockReference=False,
returnNewNodes=True)
# Lock camera
camera = cmds.listRelatives(cmds.ls(type="camera", long=True),
parent=True,
fullPath=True)[0]
with capsule.ref_edit_unlock():
lib.lock_transform(camera, additional=["focalLength",
"cameraAperture",
"lensSqueezeRatio",
"shutterAngle",
"centerOfInterest"])
lib.lock_transform(group)
self[:] = nodes
def switch(self, container, representation):
self.update(container, representation)
| [
198,
11748,
37441,
261,
13,
15042,
198,
6738,
33033,
444,
13,
11261,
64,
1330,
9195,
11,
27855,
198,
6738,
33033,
444,
13,
11261,
64,
13,
37390,
1330,
20984,
17401,
628,
198,
4871,
20432,
17401,
7,
26687,
17401,
11,
37441,
261,
13,
15042,
13,
17401,
2599,
198,
220,
220,
220,
37227,
32419,
40213,
329,
262,
33033,
444,
13,
25695,
1641,
37811,
628,
220,
220,
220,
6167,
796,
366,
26687,
4676,
1,
198,
220,
220,
220,
1502,
796,
532,
940,
198,
220,
220,
220,
7196,
796,
366,
8189,
12,
32523,
1,
198,
220,
220,
220,
3124,
796,
366,
43745,
1,
628,
220,
220,
220,
11453,
796,
14631,
11261,
64,
8973,
628,
220,
220,
220,
4172,
796,
14631,
260,
332,
444,
13,
25695,
8973,
628,
220,
220,
220,
24612,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
366,
11261,
64,
1722,
979,
72,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
37474,
2022,
291,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
26001,
55,
1600,
198,
220,
220,
220,
2361,
628,
220,
220,
220,
825,
1429,
62,
35790,
7,
944,
11,
4732,
11,
1438,
11,
25745,
11,
1448,
11,
3689,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1330,
743,
64,
13,
28758,
82,
355,
23991,
82,
628,
220,
220,
220,
220,
220,
220,
220,
10552,
796,
4732,
14692,
15603,
341,
8973,
628,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
6978,
796,
2116,
13,
7753,
62,
6978,
7,
15603,
341,
8,
628,
220,
220,
220,
220,
220,
220,
220,
13760,
796,
23991,
82,
13,
7753,
7,
13000,
62,
6978,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25745,
28,
14933,
10223,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8856,
14815,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4888,
26687,
8979,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1448,
26687,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1448,
5376,
28,
8094,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4941,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5793,
26687,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3791,
45,
4147,
28,
17821,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
13656,
4676,
198,
220,
220,
220,
220,
220,
220,
220,
4676,
796,
23991,
82,
13,
4868,
6892,
2929,
7,
28758,
82,
13,
7278,
7,
4906,
2625,
25695,
1600,
890,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2560,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1336,
15235,
28,
17821,
38381,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
351,
27855,
13,
5420,
62,
19312,
62,
403,
5354,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9195,
13,
5354,
62,
35636,
7,
25695,
11,
3224,
28,
14692,
69,
4374,
24539,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
25695,
32,
27286,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
75,
641,
22266,
1453,
2736,
29665,
952,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1477,
10381,
13450,
293,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16159,
5189,
19302,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9195,
13,
5354,
62,
35636,
7,
8094,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
58,
47715,
796,
13760,
628,
220,
220,
220,
825,
5078,
7,
944,
11,
9290,
11,
10552,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
19119,
7,
34924,
11,
10552,
8,
198
] | 1.86961 | 974 |
# encoding: utf-8
# module renderdoc
# from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd
# by generator 1.146
# no doc
# imports
import enum as __enum
from .SwigPyObject import SwigPyObject
class D3D12OM(SwigPyObject):
""" Describes the current state of the output-merger stage of the D3D12 pipeline. """
def __eq__(self, *args, **kwargs): # real signature unknown
""" Return self==value. """
pass
def __ge__(self, *args, **kwargs): # real signature unknown
""" Return self>=value. """
pass
def __gt__(self, *args, **kwargs): # real signature unknown
""" Return self>value. """
pass
def __hash__(self, *args, **kwargs): # real signature unknown
""" Return hash(self). """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
def __le__(self, *args, **kwargs): # real signature unknown
""" Return self<=value. """
pass
def __lt__(self, *args, **kwargs): # real signature unknown
""" Return self<value. """
pass
def __ne__(self, *args, **kwargs): # real signature unknown
""" Return self!=value. """
pass
blendState = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""A :class:`D3D12BlendState` with the details of the blend state."""
depthReadOnly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""``True`` if depth access to the depth-stencil target is read-only."""
depthStencilState = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""A :class:`D3D12DepthStencilState` with the details of the depth-stencil state."""
depthTarget = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""A :class:`D3D12View` with details of the bound depth-stencil target."""
multiSampleCount = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""The sample count used for rendering."""
multiSampleQuality = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""The MSAA quality level used for rendering."""
renderTargets = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""A list of :class:`D3D12View` describing the bound render targets."""
stencilReadOnly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""``True`` if stenncil access to the depth-stencil target is read-only."""
this = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
thisown = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
__dict__ = None # (!) real value is ''
| [
2,
21004,
25,
3384,
69,
12,
23,
198,
2,
8265,
8543,
15390,
198,
2,
422,
350,
7479,
16,
12,
7391,
82,
59,
62,
37906,
59,
20519,
12,
16541,
42829,
6677,
59,
13287,
15390,
13,
79,
5173,
198,
2,
416,
17301,
352,
13,
20964,
198,
2,
645,
2205,
198,
198,
2,
17944,
198,
11748,
33829,
355,
11593,
44709,
628,
198,
6738,
764,
10462,
328,
20519,
10267,
1330,
2451,
328,
20519,
10267,
198,
198,
4871,
360,
18,
35,
1065,
2662,
7,
10462,
328,
20519,
10267,
2599,
198,
220,
220,
220,
37227,
39373,
22090,
262,
1459,
1181,
286,
262,
5072,
12,
647,
1362,
3800,
286,
262,
360,
18,
35,
1065,
11523,
13,
37227,
198,
220,
220,
220,
825,
11593,
27363,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
2116,
855,
8367,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
469,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
2116,
29,
28,
8367,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
13655,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
2116,
29,
8367,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
17831,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
12234,
7,
944,
737,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
293,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
2116,
27,
28,
8367,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
2528,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
2116,
27,
8367,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
825,
11593,
710,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
1303,
1103,
9877,
6439,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8229,
2116,
0,
28,
8367,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
628,
220,
220,
220,
13516,
9012,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
32,
1058,
4871,
25,
63,
35,
18,
35,
1065,
3629,
437,
9012,
63,
351,
262,
3307,
286,
262,
13516,
1181,
526,
15931,
628,
220,
220,
220,
6795,
5569,
10049,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
15506,
17821,
15506,
611,
6795,
1895,
284,
262,
6795,
12,
26400,
2856,
2496,
318,
1100,
12,
8807,
526,
15931,
628,
220,
220,
220,
6795,
1273,
268,
2856,
9012,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
32,
1058,
4871,
25,
63,
35,
18,
35,
1065,
48791,
1273,
268,
2856,
9012,
63,
351,
262,
3307,
286,
262,
6795,
12,
26400,
2856,
1181,
526,
15931,
628,
220,
220,
220,
6795,
21745,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
32,
1058,
4871,
25,
63,
35,
18,
35,
1065,
7680,
63,
351,
3307,
286,
262,
5421,
6795,
12,
26400,
2856,
2496,
526,
15931,
628,
220,
220,
220,
5021,
36674,
12332,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
464,
6291,
954,
973,
329,
14837,
526,
15931,
628,
220,
220,
220,
5021,
36674,
35013,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
464,
6579,
3838,
3081,
1241,
973,
329,
14837,
526,
15931,
628,
220,
220,
220,
8543,
51,
853,
1039,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
32,
1351,
286,
1058,
4871,
25,
63,
35,
18,
35,
1065,
7680,
63,
12059,
262,
5421,
8543,
6670,
526,
15931,
628,
220,
220,
220,
45219,
2856,
5569,
10049,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
198,
220,
220,
220,
37227,
15506,
17821,
15506,
611,
336,
1697,
2856,
1895,
284,
262,
6795,
12,
26400,
2856,
2496,
318,
1100,
12,
8807,
526,
15931,
628,
220,
220,
220,
428,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
628,
220,
220,
220,
428,
593,
796,
3119,
7,
50033,
2116,
25,
2134,
22784,
37456,
2116,
11,
410,
25,
6045,
11,
37456,
2116,
25,
6045,
8,
220,
1303,
4277,
628,
198,
220,
220,
220,
11593,
11600,
834,
796,
6045,
1303,
357,
8133,
1103,
1988,
318,
10148,
628,
198
] | 2.937372 | 974 |
/home/runner/.cache/pip/pool/85/03/a8/e8d26fae6c7b3b8548be18e886767b946dd069a8481930ee9dda2adccd | [
14,
11195,
14,
16737,
11757,
23870,
14,
79,
541,
14,
7742,
14,
5332,
14,
3070,
14,
64,
23,
14,
68,
23,
67,
2075,
69,
3609,
21,
66,
22,
65,
18,
65,
5332,
2780,
1350,
1507,
68,
3459,
3134,
3134,
65,
24,
3510,
1860,
3312,
24,
64,
23,
2780,
1129,
1270,
1453,
24,
1860,
64,
17,
324,
535,
67
] | 1.655172 | 58 |
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import itertools
fonts = {"family": "serif",
"weight": "normal",
"size": "12"}
plt.rc('font', **fonts)
plt.rc('text', usetex=True)
ftc_noiseless = np.loadtxt('ftc_noiseless_case3.csv')
ftc_noise = np.loadtxt('ftc_noise_case3.csv')
no_ftc_noiseless = np.loadtxt('no_ftc_noiseless_case3.csv')
x = np.linspace(0, ftc_noiseless.shape[0], ftc_noiseless.shape[0] - 50)
with sns.cubehelix_palette(8, start=.5, rot=-.75, reverse=True):
ax = plt.subplot(111)
ax.plot(x, no_ftc_noiseless[50:, 0], label=r'$X_D$ No FTC (Noiseless)', linestyle='-.')
ax.plot(x, ftc_noise[50:, 0], label=r'$X_D$ FTC', linestyle='--')
ax.plot(x, ftc_noiseless[50:, 0], label=r'$X_D$ FTC (Noiseless)')
ax.plot(x, no_ftc_noiseless[50:, 1], linestyle='-.', label=r'$X_B$ No FTC (Noiseless)')
ax.plot(x, ftc_noise[50:, 1], linestyle='--', label=r'$X_B$ FTC')
ax.plot(x, ftc_noiseless[50:, 1], label=r'$X_B$ FTC (Noiseless)')
plt.xlabel(r'Time, \textit{t} (min)')
plt.ylabel(r'\%MeOH, $\textit{X}_D$ (wt. \%)')
def flip(items, ncol):
return itertools.chain(*[items[i::ncol] for i in range(ncol)])
handles, labels = ax.get_legend_handles_labels()
plt.legend(flip(handles, 2), flip(labels, 2), loc=6, ncol=2, prop={'size': 12}, frameon=False)
plt.savefig('Case3_Plot.eps', format='eps', dpi=1000)
plt.show()
| [
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
384,
397,
1211,
355,
3013,
82,
198,
11748,
340,
861,
10141,
198,
198,
10331,
82,
796,
19779,
17989,
1298,
366,
2655,
361,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
366,
6551,
1298,
366,
11265,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
366,
7857,
1298,
366,
1065,
20662,
198,
198,
489,
83,
13,
6015,
10786,
10331,
3256,
12429,
10331,
82,
8,
198,
489,
83,
13,
6015,
10786,
5239,
3256,
514,
316,
1069,
28,
17821,
8,
198,
198,
701,
66,
62,
3919,
271,
5321,
796,
45941,
13,
2220,
14116,
10786,
701,
66,
62,
3919,
271,
5321,
62,
7442,
18,
13,
40664,
11537,
198,
701,
66,
62,
3919,
786,
796,
45941,
13,
2220,
14116,
10786,
701,
66,
62,
3919,
786,
62,
7442,
18,
13,
40664,
11537,
198,
3919,
62,
701,
66,
62,
3919,
271,
5321,
796,
45941,
13,
2220,
14116,
10786,
3919,
62,
701,
66,
62,
3919,
271,
5321,
62,
7442,
18,
13,
40664,
11537,
198,
198,
87,
796,
45941,
13,
21602,
10223,
7,
15,
11,
10117,
66,
62,
3919,
271,
5321,
13,
43358,
58,
15,
4357,
10117,
66,
62,
3919,
271,
5321,
13,
43358,
58,
15,
60,
532,
2026,
8,
198,
198,
4480,
3013,
82,
13,
40296,
2978,
844,
62,
18596,
5857,
7,
23,
11,
923,
28,
13,
20,
11,
5724,
10779,
13,
2425,
11,
9575,
28,
17821,
2599,
198,
220,
220,
220,
7877,
796,
458,
83,
13,
7266,
29487,
7,
16243,
8,
198,
220,
220,
220,
7877,
13,
29487,
7,
87,
11,
645,
62,
701,
66,
62,
3919,
271,
5321,
58,
1120,
45299,
657,
4357,
6167,
28,
81,
6,
3,
55,
62,
35,
3,
1400,
35606,
357,
2949,
271,
5321,
8,
3256,
9493,
10992,
11639,
12,
2637,
8,
198,
220,
220,
220,
7877,
13,
29487,
7,
87,
11,
10117,
66,
62,
3919,
786,
58,
1120,
45299,
657,
4357,
6167,
28,
81,
6,
3,
55,
62,
35,
3,
35606,
3256,
9493,
10992,
11639,
438,
11537,
198,
220,
220,
220,
7877,
13,
29487,
7,
87,
11,
10117,
66,
62,
3919,
271,
5321,
58,
1120,
45299,
657,
4357,
6167,
28,
81,
6,
3,
55,
62,
35,
3,
35606,
357,
2949,
271,
5321,
8,
11537,
628,
220,
220,
220,
7877,
13,
29487,
7,
87,
11,
645,
62,
701,
66,
62,
3919,
271,
5321,
58,
1120,
45299,
352,
4357,
9493,
10992,
11639,
12,
2637,
11,
6167,
28,
81,
6,
3,
55,
62,
33,
3,
1400,
35606,
357,
2949,
271,
5321,
8,
11537,
198,
220,
220,
220,
7877,
13,
29487,
7,
87,
11,
10117,
66,
62,
3919,
786,
58,
1120,
45299,
352,
4357,
9493,
10992,
11639,
438,
3256,
6167,
28,
81,
6,
3,
55,
62,
33,
3,
35606,
11537,
198,
220,
220,
220,
7877,
13,
29487,
7,
87,
11,
10117,
66,
62,
3919,
271,
5321,
58,
1120,
45299,
352,
4357,
6167,
28,
81,
6,
3,
55,
62,
33,
3,
35606,
357,
2949,
271,
5321,
8,
11537,
198,
198,
489,
83,
13,
87,
18242,
7,
81,
6,
7575,
11,
3467,
5239,
270,
90,
83,
92,
357,
1084,
8,
11537,
198,
489,
83,
13,
2645,
9608,
7,
81,
6,
59,
4,
5308,
12096,
11,
39280,
5239,
270,
90,
55,
92,
62,
35,
3,
357,
46569,
13,
3467,
4407,
11537,
628,
198,
4299,
14283,
7,
23814,
11,
299,
4033,
2599,
198,
220,
220,
220,
1441,
340,
861,
10141,
13,
7983,
46491,
58,
23814,
58,
72,
3712,
77,
4033,
60,
329,
1312,
287,
2837,
7,
77,
4033,
8,
12962,
628,
198,
4993,
829,
11,
14722,
796,
7877,
13,
1136,
62,
1455,
437,
62,
4993,
829,
62,
23912,
1424,
3419,
198,
489,
83,
13,
1455,
437,
7,
2704,
541,
7,
4993,
829,
11,
362,
828,
14283,
7,
23912,
1424,
11,
362,
828,
1179,
28,
21,
11,
299,
4033,
28,
17,
11,
2632,
34758,
6,
7857,
10354,
1105,
5512,
5739,
261,
28,
25101,
8,
198,
198,
489,
83,
13,
21928,
5647,
10786,
20448,
18,
62,
43328,
13,
25386,
3256,
5794,
11639,
25386,
3256,
288,
14415,
28,
12825,
8,
198,
198,
489,
83,
13,
12860,
3419,
198
] | 2.076809 | 677 |
import cv2
import numpy as np
class GUI():
def __init__(self):
self.switch_window = cv2.namedWindow("Values")
self.hmin_bar = cv2.createTrackbar('Hue Min', 'Values', 0, 255, self.nothing)
self.hmax_bar = cv2.createTrackbar('Hue Max', 'Values', 0, 255, self.nothing)
hue_min = cv2.setTrackbarPos('Hue Max','Values', 255)
self.vmin_bar = cv2.createTrackbar('Value Min', 'Values', 0, 255, self.nothing)
self.vmax_bar = cv2.createTrackbar('Value Max', 'Values', 0, 255, self.nothing)
hue_min = cv2.setTrackbarPos('Value Max','Values', 255)
self.smin_bar = cv2.createTrackbar('Saturation Min', 'Values', 0, 255, self.nothing)
self.smax_bar = cv2.createTrackbar('Saturation Max', 'Values', 0, 255, self.nothing)
hue_min = cv2.setTrackbarPos('Saturation Max','Values', 255)
# self.realtime_button = cv2.createButton('Realtime', 'Values')
def run(self):
camera = cv2.VideoCapture(-1)
while camera.isOpened():
_, originalImage = camera.read()
hsvImage = cv2.cvtColor(originalImage, cv2.COLOR_BGR2HSV)
hue_min = cv2.getTrackbarPos('Hue Min', 'Values')
hue_max = cv2.getTrackbarPos('Hue Max', 'Values')
value_min = cv2.getTrackbarPos('Value Min', 'Values')
value_max = cv2.getTrackbarPos('Value Max', 'Values')
saturation_min = cv2.getTrackbarPos('Saturation Min', 'Values')
saturation_max = cv2.getTrackbarPos('Saturation Max', 'Values')
lower = np.array([hue_min, saturation_min, value_min])
upper = np.array([hue_max, saturation_max, value_max])
# erode_element = cv2.getStructuringElement(cv2.MORPH_RECT, (3, 3))
# dilate_element = cv2.getStructuringElement(cv2.MORPH_RECT, (8, 8))
mask = cv2.inRange(hsvImage, lower, upper)
# mask = cv2.erode(mask, erode_element)
# mask = cv2.dilate(mask, dilate_element)
cv2.imshow("Original", originalImage)
cv2.imshow("Mask", mask)
cv2.waitKey(5)
cv2.destroyAllWindows()
def nothing(self, x):
pass
def main():
user_gui = GUI()
user_gui.run()
if __name__ == '__main__':
main() | [
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
198,
198,
4871,
25757,
33529,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
17497,
796,
269,
85,
17,
13,
13190,
27703,
7203,
40161,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
71,
1084,
62,
5657,
796,
269,
85,
17,
13,
17953,
24802,
5657,
10786,
39,
518,
1855,
3256,
705,
40161,
3256,
657,
11,
14280,
11,
2116,
13,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
71,
9806,
62,
5657,
796,
269,
85,
17,
13,
17953,
24802,
5657,
10786,
39,
518,
5436,
3256,
705,
40161,
3256,
657,
11,
14280,
11,
2116,
13,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37409,
62,
1084,
796,
269,
85,
17,
13,
2617,
24802,
5657,
21604,
10786,
39,
518,
5436,
41707,
40161,
3256,
14280,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
85,
1084,
62,
5657,
796,
269,
85,
17,
13,
17953,
24802,
5657,
10786,
11395,
1855,
3256,
705,
40161,
3256,
657,
11,
14280,
11,
2116,
13,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
85,
9806,
62,
5657,
796,
269,
85,
17,
13,
17953,
24802,
5657,
10786,
11395,
5436,
3256,
705,
40161,
3256,
657,
11,
14280,
11,
2116,
13,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37409,
62,
1084,
796,
269,
85,
17,
13,
2617,
24802,
5657,
21604,
10786,
11395,
5436,
41707,
40161,
3256,
14280,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
82,
1084,
62,
5657,
796,
269,
85,
17,
13,
17953,
24802,
5657,
10786,
50,
36921,
1855,
3256,
705,
40161,
3256,
657,
11,
14280,
11,
2116,
13,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5796,
897,
62,
5657,
796,
269,
85,
17,
13,
17953,
24802,
5657,
10786,
50,
36921,
5436,
3256,
705,
40161,
3256,
657,
11,
14280,
11,
2116,
13,
22366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37409,
62,
1084,
796,
269,
85,
17,
13,
2617,
24802,
5657,
21604,
10786,
50,
36921,
5436,
41707,
40161,
3256,
14280,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2116,
13,
5305,
2435,
62,
16539,
796,
269,
85,
17,
13,
17953,
21864,
10786,
15633,
2435,
3256,
705,
40161,
11537,
628,
220,
220,
220,
825,
1057,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
4676,
796,
269,
85,
17,
13,
10798,
49630,
32590,
16,
8,
628,
220,
220,
220,
220,
220,
220,
220,
981,
4676,
13,
271,
18257,
2945,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
11,
2656,
5159,
796,
4676,
13,
961,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
289,
21370,
5159,
796,
269,
85,
17,
13,
33967,
83,
10258,
7,
14986,
5159,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
7998,
53,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37409,
62,
1084,
796,
269,
85,
17,
13,
1136,
24802,
5657,
21604,
10786,
39,
518,
1855,
3256,
705,
40161,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37409,
62,
9806,
796,
269,
85,
17,
13,
1136,
24802,
5657,
21604,
10786,
39,
518,
5436,
3256,
705,
40161,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
62,
1084,
796,
269,
85,
17,
13,
1136,
24802,
5657,
21604,
10786,
11395,
1855,
3256,
705,
40161,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
62,
9806,
796,
269,
85,
17,
13,
1136,
24802,
5657,
21604,
10786,
11395,
5436,
3256,
705,
40161,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36275,
62,
1084,
796,
269,
85,
17,
13,
1136,
24802,
5657,
21604,
10786,
50,
36921,
1855,
3256,
705,
40161,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36275,
62,
9806,
796,
269,
85,
17,
13,
1136,
24802,
5657,
21604,
10786,
50,
36921,
5436,
3256,
705,
40161,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2793,
796,
45941,
13,
18747,
26933,
71,
518,
62,
1084,
11,
36275,
62,
1084,
11,
1988,
62,
1084,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6727,
796,
45941,
13,
18747,
26933,
71,
518,
62,
9806,
11,
36275,
62,
9806,
11,
1988,
62,
9806,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1931,
1098,
62,
30854,
796,
269,
85,
17,
13,
1136,
44909,
870,
20180,
7,
33967,
17,
13,
44,
1581,
11909,
62,
23988,
11,
357,
18,
11,
513,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
11844,
378,
62,
30854,
796,
269,
85,
17,
13,
1136,
44909,
870,
20180,
7,
33967,
17,
13,
44,
1581,
11909,
62,
23988,
11,
357,
23,
11,
807,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9335,
796,
269,
85,
17,
13,
259,
17257,
7,
11994,
85,
5159,
11,
2793,
11,
6727,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9335,
796,
269,
85,
17,
13,
263,
1098,
7,
27932,
11,
1931,
1098,
62,
30854,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
9335,
796,
269,
85,
17,
13,
67,
346,
378,
7,
27932,
11,
11844,
378,
62,
30854,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
12860,
7203,
20556,
1600,
2656,
5159,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
12860,
7203,
45195,
1600,
9335,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
17077,
9218,
7,
20,
8,
628,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
41659,
3237,
11209,
3419,
628,
220,
220,
220,
825,
2147,
7,
944,
11,
2124,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
198,
4299,
1388,
33529,
198,
220,
220,
220,
2836,
62,
48317,
796,
25757,
3419,
198,
220,
220,
220,
2836,
62,
48317,
13,
5143,
3419,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419
] | 2.144068 | 1,062 |
'''
Encapsulates all tasks that can be run against the 'notes' endpoint
'''
def get_task_comments(client, task_id):
params = {
'task_id' : int(task_id)
}
response = client.authenticated_request(client.api.Endpoints.TASK_COMMENTS, params=params)
assert response.status_code == 200
return response.json()
def get_list_comments(client, list_id):
params = {
'list_id' : int(list_id)
}
response = client.authenticated_request(client.api.Endpoints.TASK_COMMENTS, params=params)
assert response.status_code == 200
return response.json()
def get_task_comment(client, comment_id):
endpoint = '/'.join([client.api.Endpoints.TASK_COMMENTS, str(comment_id)])
response = client.authenticated_request(endpoint)
return response.json()
def create_comment(client, task_id, text):
data = {
'task_id' : int(task_id),
'text' : text,
}
response = client.authenticated_request(client.api.Endpoints.TASK_COMMENTS, method='POST', data=data)
return response.json()
| [
7061,
6,
198,
27195,
1686,
15968,
477,
8861,
326,
460,
307,
1057,
1028,
262,
705,
17815,
6,
36123,
198,
7061,
6,
198,
4299,
651,
62,
35943,
62,
15944,
7,
16366,
11,
4876,
62,
312,
2599,
198,
220,
220,
220,
42287,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
35943,
62,
312,
6,
1058,
493,
7,
35943,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
2882,
796,
5456,
13,
41299,
3474,
62,
25927,
7,
16366,
13,
15042,
13,
12915,
13033,
13,
51,
1921,
42,
62,
9858,
28957,
11,
42287,
28,
37266,
8,
198,
220,
220,
220,
6818,
2882,
13,
13376,
62,
8189,
6624,
939,
198,
220,
220,
220,
1441,
2882,
13,
17752,
3419,
198,
198,
4299,
651,
62,
4868,
62,
15944,
7,
16366,
11,
1351,
62,
312,
2599,
198,
220,
220,
220,
42287,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4868,
62,
312,
6,
1058,
493,
7,
4868,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
2882,
796,
5456,
13,
41299,
3474,
62,
25927,
7,
16366,
13,
15042,
13,
12915,
13033,
13,
51,
1921,
42,
62,
9858,
28957,
11,
42287,
28,
37266,
8,
198,
220,
220,
220,
6818,
2882,
13,
13376,
62,
8189,
6624,
939,
198,
220,
220,
220,
1441,
2882,
13,
17752,
3419,
198,
198,
4299,
651,
62,
35943,
62,
23893,
7,
16366,
11,
2912,
62,
312,
2599,
198,
220,
220,
220,
36123,
796,
31051,
4458,
22179,
26933,
16366,
13,
15042,
13,
12915,
13033,
13,
51,
1921,
42,
62,
9858,
28957,
11,
965,
7,
23893,
62,
312,
8,
12962,
198,
220,
220,
220,
2882,
796,
5456,
13,
41299,
3474,
62,
25927,
7,
437,
4122,
8,
198,
220,
220,
220,
1441,
2882,
13,
17752,
3419,
198,
198,
4299,
2251,
62,
23893,
7,
16366,
11,
4876,
62,
312,
11,
2420,
2599,
198,
220,
220,
220,
1366,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
35943,
62,
312,
6,
1058,
493,
7,
35943,
62,
312,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5239,
6,
1058,
2420,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
2882,
796,
5456,
13,
41299,
3474,
62,
25927,
7,
16366,
13,
15042,
13,
12915,
13033,
13,
51,
1921,
42,
62,
9858,
28957,
11,
2446,
11639,
32782,
3256,
1366,
28,
7890,
8,
198,
220,
220,
220,
1441,
2882,
13,
17752,
3419,
628
] | 2.491954 | 435 |
# Generated by Django 2.2.2 on 2019-07-03 11:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogApp', '0006_delete_admin'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='image_height',
),
migrations.RemoveField(
model_name='user',
name='image_width',
),
migrations.AlterField(
model_name='user',
name='avatar',
field=models.CharField(max_length=100, null=True),
),
]
| [
2,
2980,
515,
416,
37770,
362,
13,
17,
13,
17,
319,
13130,
12,
2998,
12,
3070,
1367,
25,
2713,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628,
198,
4871,
36991,
7,
76,
3692,
602,
13,
44,
4254,
2599,
628,
220,
220,
220,
20086,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
14036,
4677,
3256,
705,
830,
21,
62,
33678,
62,
28482,
33809,
198,
220,
220,
220,
2361,
628,
220,
220,
220,
4560,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
27914,
15878,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
3672,
11639,
7220,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
9060,
62,
17015,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
27914,
15878,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
3672,
11639,
7220,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
9060,
62,
10394,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
2348,
353,
15878,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
3672,
11639,
7220,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
615,
9459,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2214,
28,
27530,
13,
12441,
15878,
7,
9806,
62,
13664,
28,
3064,
11,
9242,
28,
17821,
828,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
2361,
198
] | 2.05102 | 294 |
'''
Program to convert any Image to Pattern
Input your Image URL or just press enter to see the default image.
Created by Sayok Dey Majumder.
Github User handle : NeilSayok
Link to profile: https://github.com/NeilSayok
'''
import cv2
import imutils
import urllib.request
import numpy as np
url = input("Enter Url to your Image or Press Enter if you want to use default image\n")
if(url == ""):
url = 'https://avatars.githubusercontent.com/u/21328143?v=4'
req = urllib.request.urlopen(url)
arr = np.asarray(bytearray(req.read()), dtype=np.uint8)
img = cv2.imdecode(arr, -1) # 'Load it as it is'
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img = imutils.resize(img, width=300,height=300)
thresh = 127
im_bw = 255 - cv2.threshold(img, thresh, 255, cv2.THRESH_BINARY)[1]
print(im_bw.shape)
with open("Out.txt", "w") as fh:
for a in im_bw:
for b in a:
if(b == 255):
fh.write("*")
else:
fh.write(" ")
fh.write("\n")
| [
7061,
6,
198,
15167,
284,
10385,
597,
7412,
284,
23939,
198,
198,
20560,
534,
7412,
10289,
393,
655,
1803,
3802,
284,
766,
262,
4277,
2939,
13,
220,
220,
198,
198,
41972,
416,
13816,
482,
1024,
88,
12390,
388,
1082,
13,
198,
198,
38,
10060,
11787,
5412,
1058,
15929,
25515,
482,
198,
198,
11280,
284,
7034,
25,
3740,
1378,
12567,
13,
785,
14,
29354,
25515,
482,
198,
198,
7061,
6,
628,
198,
198,
11748,
269,
85,
17,
198,
11748,
545,
26791,
198,
11748,
2956,
297,
571,
13,
25927,
198,
11748,
299,
32152,
355,
45941,
628,
198,
6371,
796,
5128,
7203,
17469,
8799,
75,
284,
534,
7412,
393,
4332,
6062,
611,
345,
765,
284,
779,
4277,
2939,
59,
77,
4943,
198,
361,
7,
6371,
6624,
13538,
2599,
198,
220,
220,
220,
19016,
796,
705,
5450,
1378,
615,
40193,
13,
12567,
43667,
13,
785,
14,
84,
14,
26427,
2078,
21139,
30,
85,
28,
19,
6,
198,
42180,
796,
2956,
297,
571,
13,
25927,
13,
6371,
9654,
7,
6371,
8,
198,
3258,
796,
45941,
13,
292,
18747,
7,
1525,
83,
451,
2433,
7,
42180,
13,
961,
3419,
828,
288,
4906,
28,
37659,
13,
28611,
23,
8,
198,
9600,
796,
269,
85,
17,
13,
320,
12501,
1098,
7,
3258,
11,
532,
16,
8,
1303,
705,
8912,
340,
355,
340,
318,
6,
198,
9600,
796,
269,
85,
17,
13,
33967,
83,
10258,
7,
9600,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
38,
30631,
8,
198,
198,
9600,
796,
545,
26791,
13,
411,
1096,
7,
9600,
11,
9647,
28,
6200,
11,
17015,
28,
6200,
8,
198,
198,
400,
3447,
796,
18112,
198,
320,
62,
65,
86,
796,
14280,
532,
269,
85,
17,
13,
400,
10126,
7,
9600,
11,
294,
3447,
11,
14280,
11,
269,
85,
17,
13,
4221,
19535,
39,
62,
33,
1268,
13153,
38381,
16,
60,
198,
198,
4798,
7,
320,
62,
65,
86,
13,
43358,
8,
198,
198,
4480,
1280,
7203,
7975,
13,
14116,
1600,
366,
86,
4943,
355,
277,
71,
25,
628,
220,
220,
220,
329,
257,
287,
545,
62,
65,
86,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
275,
287,
257,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7,
65,
6624,
14280,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
71,
13,
13564,
7203,
9,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
71,
13,
13564,
7203,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
277,
71,
13,
13564,
7203,
59,
77,
4943,
628,
628
] | 2.239468 | 451 |
#
# Copyright (c) 2017, Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
"""Functionality for analyzing buildstats"""
import json
import logging
import os
import re
from collections import namedtuple,OrderedDict
from statistics import mean
log = logging.getLogger()
taskdiff_fields = ('pkg', 'pkg_op', 'task', 'task_op', 'value1', 'value2',
'absdiff', 'reldiff')
TaskDiff = namedtuple('TaskDiff', ' '.join(taskdiff_fields))
class BSError(Exception):
"""Error handling of buildstats"""
pass
class BSTask(dict):
def __init__(self, *args, **kwargs):
self['start_time'] = None
self['elapsed_time'] = None
self['status'] = None
self['iostat'] = {}
self['rusage'] = {}
self['child_rusage'] = {}
super(BSTask, self).__init__(*args, **kwargs)
class BSTaskAggregate(object):
"""Class representing multiple runs of the same task"""
properties = ('cputime', 'walltime', 'read_bytes', 'write_bytes',
'read_ops', 'write_ops')
def __init__(self, tasks=None):
self._tasks = tasks or []
self._properties = {}
def __getattr__(self, name):
if name in self.properties:
if name not in self._properties:
# Calculate properties on demand only. We only provide mean
# value, so far
self._properties[name] = mean([getattr(t, name) for t in self._tasks])
return self._properties[name]
else:
raise AttributeError("'BSTaskAggregate' has no attribute '{}'".format(name))
def append(self, task):
"""Append new task"""
# Reset pre-calculated properties
assert isinstance(task, BSTask), "Type is '{}' instead of 'BSTask'".format(type(task))
self._properties = {}
self._tasks.append(task)
class BSRecipe(object):
"""Class representing buildstats of one recipe"""
def __init__(self, name, epoch, version, revision):
self.name = name
self.epoch = epoch
self.version = version
self.revision = revision
if epoch is None:
self.evr = "{}-{}".format(version, revision)
else:
self.evr = "{}_{}-{}".format(epoch, version, revision)
self.tasks = {}
def aggregate(self, bsrecipe):
"""Aggregate data of another recipe buildstats"""
if self.nevr != bsrecipe.nevr:
raise ValueError("Refusing to aggregate buildstats, recipe version "
"differs: {} vs. {}".format(self.nevr, bsrecipe.nevr))
if set(self.tasks.keys()) != set(bsrecipe.tasks.keys()):
raise ValueError("Refusing to aggregate buildstats, set of tasks "
"in {} differ".format(self.name))
for taskname, taskdata in bsrecipe.tasks.items():
if not isinstance(self.tasks[taskname], BSTaskAggregate):
self.tasks[taskname] = BSTaskAggregate([self.tasks[taskname]])
self.tasks[taskname].append(taskdata)
class BuildStats(dict):
"""Class representing buildstats of one build"""
def aggregate(self, buildstats):
"""Aggregate other buildstats into this"""
if set(self.keys()) != set(buildstats.keys()):
raise ValueError("Refusing to aggregate buildstats, set of "
"recipes is different")
for pkg, data in buildstats.items():
self[pkg].aggregate(data)
def diff_buildstats(bs1, bs2, stat_attr, min_val=None, min_absdiff=None):
"""Compare the tasks of two buildstats"""
tasks_diff = []
pkgs = set(bs1.keys()).union(set(bs2.keys()))
for pkg in pkgs:
tasks1 = bs1[pkg].tasks if pkg in bs1 else {}
tasks2 = bs2[pkg].tasks if pkg in bs2 else {}
if not tasks1:
pkg_op = '+'
elif not tasks2:
pkg_op = '-'
else:
pkg_op = ' '
for task in set(tasks1.keys()).union(set(tasks2.keys())):
task_op = ' '
if task in tasks1:
val1 = getattr(bs1[pkg].tasks[task], stat_attr)
else:
task_op = '+'
val1 = 0
if task in tasks2:
val2 = getattr(bs2[pkg].tasks[task], stat_attr)
else:
val2 = 0
task_op = '-'
if val1 == 0:
reldiff = float('inf')
else:
reldiff = 100 * (val2 - val1) / val1
if min_val and max(val1, val2) < min_val:
log.debug("Filtering out %s:%s (%s)", pkg, task,
max(val1, val2))
continue
if min_absdiff and abs(val2 - val1) < min_absdiff:
log.debug("Filtering out %s:%s (difference of %s)", pkg, task,
val2-val1)
continue
tasks_diff.append(TaskDiff(pkg, pkg_op, task, task_op, val1, val2,
val2-val1, reldiff))
return tasks_diff
class BSVerDiff(object):
"""Class representing recipe version differences between two buildstats"""
def __init__(self, bs1, bs2):
RecipeVerDiff = namedtuple('RecipeVerDiff', 'left right')
recipes1 = set(bs1.keys())
recipes2 = set(bs2.keys())
self.new = dict([(r, bs2[r]) for r in sorted(recipes2 - recipes1)])
self.dropped = dict([(r, bs1[r]) for r in sorted(recipes1 - recipes2)])
self.echanged = {}
self.vchanged = {}
self.rchanged = {}
self.unchanged = {}
self.empty_diff = False
common = recipes2.intersection(recipes1)
if common:
for recipe in common:
rdiff = RecipeVerDiff(bs1[recipe], bs2[recipe])
if bs1[recipe].epoch != bs2[recipe].epoch:
self.echanged[recipe] = rdiff
elif bs1[recipe].version != bs2[recipe].version:
self.vchanged[recipe] = rdiff
elif bs1[recipe].revision != bs2[recipe].revision:
self.rchanged[recipe] = rdiff
else:
self.unchanged[recipe] = rdiff
if len(recipes1) == len(recipes2) == len(self.unchanged):
self.empty_diff = True
def __bool__(self):
return not self.empty_diff
| [
2,
198,
2,
15069,
357,
66,
8,
2177,
11,
8180,
10501,
13,
198,
2,
198,
2,
770,
1430,
318,
1479,
3788,
26,
345,
460,
17678,
4163,
340,
290,
14,
273,
13096,
340,
198,
2,
739,
262,
2846,
290,
3403,
286,
262,
22961,
3611,
5094,
13789,
11,
198,
2,
2196,
362,
11,
355,
3199,
416,
262,
3232,
10442,
5693,
13,
198,
2,
198,
2,
770,
1430,
318,
9387,
287,
262,
2911,
340,
481,
307,
4465,
11,
475,
42881,
198,
2,
15529,
34764,
56,
26,
1231,
772,
262,
17142,
18215,
286,
34482,
3398,
1565,
5603,
25382,
393,
198,
2,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
13,
220,
4091,
262,
22961,
3611,
5094,
13789,
329,
198,
2,
517,
3307,
13,
198,
2,
198,
37811,
22203,
1483,
329,
22712,
1382,
34242,
37811,
198,
11748,
33918,
198,
11748,
18931,
198,
11748,
28686,
198,
11748,
302,
198,
6738,
17268,
1330,
3706,
83,
29291,
11,
35422,
1068,
35,
713,
198,
6738,
7869,
1330,
1612,
628,
198,
6404,
796,
18931,
13,
1136,
11187,
1362,
3419,
628,
198,
35943,
26069,
62,
25747,
796,
19203,
35339,
3256,
705,
35339,
62,
404,
3256,
705,
35943,
3256,
705,
35943,
62,
404,
3256,
705,
8367,
16,
3256,
705,
8367,
17,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8937,
26069,
3256,
705,
260,
335,
733,
11537,
198,
25714,
28813,
796,
3706,
83,
29291,
10786,
25714,
28813,
3256,
705,
45302,
22179,
7,
35943,
26069,
62,
25747,
4008,
628,
198,
4871,
347,
5188,
81,
1472,
7,
16922,
2599,
198,
220,
220,
220,
37227,
12331,
9041,
286,
1382,
34242,
37811,
198,
220,
220,
220,
1208,
628,
198,
4871,
44992,
2093,
7,
11600,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
17816,
9688,
62,
2435,
20520,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
17816,
417,
28361,
62,
2435,
20520,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
17816,
13376,
20520,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
17816,
72,
455,
265,
20520,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
17816,
14932,
496,
20520,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
17816,
9410,
62,
14932,
496,
20520,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
7,
33,
2257,
2093,
11,
2116,
737,
834,
15003,
834,
46491,
22046,
11,
12429,
46265,
22046,
8,
628,
198,
4871,
44992,
2093,
46384,
49373,
7,
15252,
2599,
198,
220,
220,
220,
37227,
9487,
10200,
3294,
4539,
286,
262,
976,
4876,
37811,
198,
220,
220,
220,
6608,
796,
19203,
66,
1996,
524,
3256,
705,
11930,
2435,
3256,
705,
961,
62,
33661,
3256,
705,
13564,
62,
33661,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
961,
62,
2840,
3256,
705,
13564,
62,
2840,
11537,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
8861,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
83,
6791,
796,
8861,
393,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48310,
796,
23884,
628,
220,
220,
220,
825,
11593,
1136,
35226,
834,
7,
944,
11,
1438,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1438,
287,
2116,
13,
48310,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1438,
407,
287,
2116,
13557,
48310,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
27131,
378,
6608,
319,
3512,
691,
13,
775,
691,
2148,
1612,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1988,
11,
523,
1290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48310,
58,
3672,
60,
796,
1612,
26933,
1136,
35226,
7,
83,
11,
1438,
8,
329,
256,
287,
2116,
13557,
83,
6791,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
48310,
58,
3672,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
3460,
4163,
12331,
7203,
6,
33,
2257,
2093,
46384,
49373,
6,
468,
645,
11688,
705,
90,
92,
6,
1911,
18982,
7,
3672,
4008,
628,
220,
220,
220,
825,
24443,
7,
944,
11,
4876,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4677,
437,
649,
4876,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
30027,
662,
12,
9948,
49262,
6608,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
35943,
11,
44992,
2093,
828,
366,
6030,
318,
705,
90,
92,
6,
2427,
286,
705,
33,
2257,
2093,
6,
1911,
18982,
7,
4906,
7,
35943,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48310,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
83,
6791,
13,
33295,
7,
35943,
8,
628,
198,
4871,
24218,
37523,
7,
15252,
2599,
198,
220,
220,
220,
37227,
9487,
10200,
1382,
34242,
286,
530,
8364,
37811,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
11,
36835,
11,
2196,
11,
18440,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
538,
5374,
796,
36835,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9641,
796,
2196,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
260,
10178,
796,
18440,
198,
220,
220,
220,
220,
220,
220,
220,
611,
36835,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1990,
81,
796,
45144,
92,
12,
90,
92,
1911,
18982,
7,
9641,
11,
18440,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1990,
81,
796,
45144,
92,
23330,
92,
12,
90,
92,
1911,
18982,
7,
538,
5374,
11,
2196,
11,
18440,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
83,
6791,
796,
23884,
628,
220,
220,
220,
825,
19406,
7,
944,
11,
275,
82,
29102,
431,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
46384,
49373,
1366,
286,
1194,
8364,
1382,
34242,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
710,
37020,
14512,
275,
82,
29102,
431,
13,
710,
37020,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
8134,
3500,
284,
19406,
1382,
34242,
11,
8364,
2196,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
26069,
364,
25,
23884,
3691,
13,
23884,
1911,
18982,
7,
944,
13,
710,
37020,
11,
275,
82,
29102,
431,
13,
710,
37020,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
900,
7,
944,
13,
83,
6791,
13,
13083,
28955,
14512,
900,
7,
1443,
29102,
431,
13,
83,
6791,
13,
13083,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
8134,
3500,
284,
19406,
1382,
34242,
11,
900,
286,
8861,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
259,
23884,
13238,
1911,
18982,
7,
944,
13,
3672,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
329,
4876,
3672,
11,
4876,
7890,
287,
275,
82,
29102,
431,
13,
83,
6791,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
318,
39098,
7,
944,
13,
83,
6791,
58,
35943,
3672,
4357,
44992,
2093,
46384,
49373,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
83,
6791,
58,
35943,
3672,
60,
796,
44992,
2093,
46384,
49373,
26933,
944,
13,
83,
6791,
58,
35943,
3672,
11907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
83,
6791,
58,
35943,
3672,
4083,
33295,
7,
35943,
7890,
8,
628,
198,
4871,
10934,
29668,
7,
11600,
2599,
198,
220,
220,
220,
37227,
9487,
10200,
1382,
34242,
286,
530,
1382,
37811,
628,
198,
220,
220,
220,
825,
19406,
7,
944,
11,
1382,
34242,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
46384,
49373,
584,
1382,
34242,
656,
428,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
611,
900,
7,
944,
13,
13083,
28955,
14512,
900,
7,
11249,
34242,
13,
13083,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
8134,
3500,
284,
19406,
1382,
34242,
11,
900,
286,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8344,
18636,
318,
1180,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
329,
279,
10025,
11,
1366,
287,
1382,
34242,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
58,
35339,
4083,
9460,
49373,
7,
7890,
8,
628,
198,
4299,
814,
62,
11249,
34242,
7,
1443,
16,
11,
275,
82,
17,
11,
1185,
62,
35226,
11,
949,
62,
2100,
28,
14202,
11,
949,
62,
8937,
26069,
28,
14202,
2599,
198,
220,
220,
220,
37227,
41488,
262,
8861,
286,
734,
1382,
34242,
37811,
198,
220,
220,
220,
8861,
62,
26069,
796,
17635,
198,
220,
220,
220,
279,
10025,
82,
796,
900,
7,
1443,
16,
13,
13083,
3419,
737,
24592,
7,
2617,
7,
1443,
17,
13,
13083,
3419,
4008,
198,
220,
220,
220,
329,
279,
10025,
287,
279,
10025,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
8861,
16,
796,
275,
82,
16,
58,
35339,
4083,
83,
6791,
611,
279,
10025,
287,
275,
82,
16,
2073,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
8861,
17,
796,
275,
82,
17,
58,
35339,
4083,
83,
6791,
611,
279,
10025,
287,
275,
82,
17,
2073,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
8861,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
404,
796,
705,
10,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
407,
8861,
17,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
404,
796,
705,
19355,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
10025,
62,
404,
796,
705,
705,
628,
220,
220,
220,
220,
220,
220,
220,
329,
4876,
287,
900,
7,
83,
6791,
16,
13,
13083,
3419,
737,
24592,
7,
2617,
7,
83,
6791,
17,
13,
13083,
28955,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4876,
62,
404,
796,
705,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4876,
287,
8861,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
16,
796,
651,
35226,
7,
1443,
16,
58,
35339,
4083,
83,
6791,
58,
35943,
4357,
1185,
62,
35226,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4876,
62,
404,
796,
705,
10,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
16,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4876,
287,
8861,
17,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
17,
796,
651,
35226,
7,
1443,
17,
58,
35339,
4083,
83,
6791,
58,
35943,
4357,
1185,
62,
35226,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
17,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4876,
62,
404,
796,
705,
19355,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1188,
16,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
302,
335,
733,
796,
12178,
10786,
10745,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
302,
335,
733,
796,
1802,
1635,
357,
2100,
17,
532,
1188,
16,
8,
1220,
1188,
16,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
949,
62,
2100,
290,
3509,
7,
2100,
16,
11,
1188,
17,
8,
1279,
949,
62,
2100,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
13,
24442,
7203,
11928,
20212,
503,
4064,
82,
25,
4,
82,
37633,
82,
42501,
279,
10025,
11,
4876,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
7,
2100,
16,
11,
1188,
17,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
949,
62,
8937,
26069,
290,
2352,
7,
2100,
17,
532,
1188,
16,
8,
1279,
949,
62,
8937,
26069,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
13,
24442,
7203,
11928,
20212,
503,
4064,
82,
25,
4,
82,
357,
26069,
1945,
286,
4064,
82,
42501,
279,
10025,
11,
4876,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
17,
12,
2100,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8861,
62,
26069,
13,
33295,
7,
25714,
28813,
7,
35339,
11,
279,
10025,
62,
404,
11,
4876,
11,
4876,
62,
404,
11,
1188,
16,
11,
1188,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
17,
12,
2100,
16,
11,
302,
335,
733,
4008,
198,
220,
220,
220,
1441,
8861,
62,
26069,
628,
198,
4871,
24218,
13414,
28813,
7,
15252,
2599,
198,
220,
220,
220,
37227,
9487,
10200,
8364,
2196,
5400,
1022,
734,
1382,
34242,
37811,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
275,
82,
16,
11,
275,
82,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
26694,
13414,
28813,
796,
3706,
83,
29291,
10786,
37523,
13414,
28813,
3256,
705,
9464,
826,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
14296,
16,
796,
900,
7,
1443,
16,
13,
13083,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
14296,
17,
796,
900,
7,
1443,
17,
13,
13083,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3605,
796,
8633,
26933,
7,
81,
11,
275,
82,
17,
58,
81,
12962,
329,
374,
287,
23243,
7,
8344,
18636,
17,
532,
14296,
16,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22285,
1496,
796,
8633,
26933,
7,
81,
11,
275,
82,
16,
58,
81,
12962,
329,
374,
287,
23243,
7,
8344,
18636,
16,
532,
14296,
17,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3055,
5102,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
85,
40985,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
40985,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3316,
5102,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
28920,
62,
26069,
796,
10352,
628,
220,
220,
220,
220,
220,
220,
220,
2219,
796,
14296,
17,
13,
3849,
5458,
7,
8344,
18636,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2219,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
8364,
287,
2219,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
26069,
796,
26694,
13414,
28813,
7,
1443,
16,
58,
29102,
431,
4357,
275,
82,
17,
58,
29102,
431,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
275,
82,
16,
58,
29102,
431,
4083,
538,
5374,
14512,
275,
82,
17,
58,
29102,
431,
4083,
538,
5374,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3055,
5102,
58,
29102,
431,
60,
796,
374,
26069,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
275,
82,
16,
58,
29102,
431,
4083,
9641,
14512,
275,
82,
17,
58,
29102,
431,
4083,
9641,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
85,
40985,
58,
29102,
431,
60,
796,
374,
26069,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
275,
82,
16,
58,
29102,
431,
4083,
260,
10178,
14512,
275,
82,
17,
58,
29102,
431,
4083,
260,
10178,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
40985,
58,
29102,
431,
60,
796,
374,
26069,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3316,
5102,
58,
29102,
431,
60,
796,
374,
26069,
628,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
8344,
18636,
16,
8,
6624,
18896,
7,
8344,
18636,
17,
8,
6624,
18896,
7,
944,
13,
3316,
5102,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
28920,
62,
26069,
796,
6407,
628,
220,
220,
220,
825,
11593,
30388,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
407,
2116,
13,
28920,
62,
26069,
198
] | 2.143849 | 3,170 |
import os
import time
import random
import ast
import json
import argparse
import numpy as np
import tensorflow as tf
from style_enc_model import Style_Enc_Model
from data import CHN_Style_DataLoader
from model_utils import save_model, reset_graph
NPZ_DIR = "../WriteLikeYouData/npz_relative_dist/CASIA_rdp4.0"
assert os.path.exists(NPZ_DIR)
print("NPZ_DIR:", NPZ_DIR)
def print_save_args(args, save_dir, readme=""):
os.makedirs(save_dir, exist_ok=True)
args_dict = vars(args)
for key in args_dict.keys():
print(key, "=", args_dict[key])
with open(os.path.join(save_dir, 'model_config.json'), 'w') as f:
json.dump(args_dict, f, indent=True)
if readme != "":
with open(os.path.join(save_dir, 'readme.txt'),"w") as f:
f.write(readme)
def evaluate_model(sess, model, dataloader):
avg_loss = 0.0
avg_ac_loss = 0.0
avg_mhe_loss = 0.0
bn = dataloader.size // dataloader.batch_size
for i in range(bn):
batch_zi_array, batch_lens = dataloader.get_random_batch_data()
feed = {
model.input_data: batch_zi_array,
model.seq_lens: batch_lens,
}
(loss, ac_loss, mhe_loss) = sess.run([model.loss, model.ac_loss, model.mhe_loss], feed)
avg_loss += loss
avg_ac_loss += ac_loss
avg_mhe_loss += mhe_loss
bn += 1
avg_loss /= bn
avg_ac_loss /= bn
avg_mhe_loss /= bn
return avg_loss, avg_ac_loss, avg_mhe_loss
def train(sess, model, valid_model, train_dataloader, valid_dataloader, log_root):
"""Train a model."""
# Setup summary writer.
os.makedirs(log_root, exist_ok=True)
train_summary_writer = tf.summary.FileWriter(log_root + "/train_log", sess.graph)
valid_summary_writer = tf.summary.FileWriter(log_root + "/valid_log")
saver = tf.train.Saver(tf.global_variables(), max_to_keep=5)
t_vars = tf.trainable_variables()
count_t_vars = 0
for var in t_vars:
num_param = np.prod(var.get_shape().as_list())
count_t_vars += num_param
print('%s %s %d' % (var.name, str(var.get_shape()), num_param))
print('Total trainable variables %d.' % count_t_vars)
best_valid_loss = 999999.0
MIN_LR, DECAY = 0.0000001, 0.9999
for step in range(1000000):
start = time.time()
batch_zi_array, batch_len_array = train_dataloader.get_random_batch_data()
curr_learning_rate = (model.init_lr - MIN_LR) * (DECAY ** step) + MIN_LR
feed = {
model.input_data: batch_zi_array,
model.seq_lens: batch_len_array,
model.lr: curr_learning_rate,
}
# training
(_, loss, ac_loss, mhe_loss, summ_str) = sess.run([model.train_op, model.loss, model.ac_loss, model.mhe_loss, model.summ], feed)
train_summary_writer.add_summary(summ_str, step)
train_summary_writer.flush()
# log
if step % 50 == 0 and step > 0:
print("Train step %d, lr:%.6f, loss: %.4f, ac_loss: %.4f, mhe_loss: %.4f; train time: %.2fs" % (
step, curr_learning_rate, loss, ac_loss, mhe_loss, time.time() - start))
# validation
if step % 500 == 0 and step > 0:
start = time.time()
print("validating...", log_root)
valid_loss, valid_ac_loss, valid_mhe_loss = evaluate_model(sess, valid_model, valid_dataloader)
valid_loss_summ = tf.summary.Summary()
valid_loss_summ.value.add(tag='valid_loss', simple_value=float(valid_loss))
valid_loss_summ.value.add(tag='valid_ac_loss', simple_value=float(valid_ac_loss))
valid_loss_summ.value.add(tag='valid_mhe_loss', simple_value=float(valid_mhe_loss))
print("Best valid loss: %.4f, loss: %.4f, ac_loss: %.4f, mhe_loss: %.4f; valid time: %.2fs" % (
best_valid_loss, valid_loss, valid_ac_loss, valid_mhe_loss, time.time() - start))
valid_summary_writer.add_summary(valid_loss_summ, step)
valid_summary_writer.flush()
if valid_loss < best_valid_loss:
best_valid_loss = valid_loss
print("Better model, best_valid_loss: %.4f" % best_valid_loss)
save_model(sess, saver, log_root, step)
def trainer(npzs,
args,
train_GB_range,
valid_GB_range):
reset_graph()
model = Style_Enc_Model(
init_lr = args.init_lr,
num_writer_per_batch=args.num_writer_per_batch,
num_entry_per_writer=args.num_entry_per_writer,
max_seq_len=args.max_seq_len,
rnn_size=args.rnn_size,
rnn_layers=args.rnn_layers,
embedding_dim = args.embedding_dim,
ac_softmax_m=args.ac_softmax_m,
ac_softmax_s=args.ac_softmax_s,
mhe_lambda=args.mhe_lambda,
input_keep_prob = args.input_keep_prob,
output_keep_prob = args.output_keep_prob,
state_keep_prob = args.state_keep_prob)
valid_model = Style_Enc_Model(
init_lr = args.init_lr,
num_writer_per_batch=args.num_writer_per_batch,
num_entry_per_writer=args.num_entry_per_writer,
max_seq_len=args.max_seq_len,
rnn_size=args.rnn_size,
rnn_layers=args.rnn_layers,
embedding_dim = args.embedding_dim,
ac_softmax_m=args.ac_softmax_m,
ac_softmax_s=args.ac_softmax_s,
mhe_lambda=args.mhe_lambda,
input_keep_prob = 1.0,
output_keep_prob = 1.0,
state_keep_prob = 1.0,
reuse=True,
is_training=False)
sess = tf.InteractiveSession()
sess.run(tf.global_variables_initializer())
print("train data:")
train_dataloader = CHN_Style_DataLoader(
npzs,
GB_range = train_GB_range,
is_traing=True,
num_writer_per_batch=args.num_writer_per_batch,
num_entry_per_writer=args.num_entry_per_writer,
max_seq_len=args.max_seq_len,
scale_factor=200.0, # for whole data set
random_scale_factor=args.random_scale_factor, # only for training
augment_stroke_prob=args.augment_stroke_prob
)
print("valid data:")
valid_dataloader = CHN_Style_DataLoader(
npzs,
GB_range = valid_GB_range,
is_traing=False,
num_writer_per_batch=args.num_writer_per_batch,
num_entry_per_writer=args.num_entry_per_writer,
max_seq_len=args.max_seq_len,
scale_factor=200.0, # for whole data set
random_scale_factor=0.0,
augment_stroke_prob=0.0
)
train(sess, model, valid_model, train_dataloader, valid_dataloader, args.log_root)
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--init_lr", type=float, default=0.001, help="init learning rate")
parser.add_argument("--num_writer_per_batch", type=int, default=64)
parser.add_argument("--num_entry_per_writer", type=int, default=16)
parser.add_argument("--max_seq_len", type=int, default=110)
parser.add_argument("--random_scale_factor", type=float, default=0.1)
parser.add_argument("--augment_stroke_prob", type=float, default=0.1)
parser.add_argument("--rnn_size", type=int, default=256)
parser.add_argument("--rnn_layers", type=int, default=1)
parser.add_argument("--embedding_dim", type=int, default=256)
parser.add_argument("--ac_softmax_m", type=float, default=0.35)
parser.add_argument("--ac_softmax_s", type=int, default=30)
parser.add_argument("--mhe_lambda", type=float, default=0.0)
parser.add_argument("--input_keep_prob", type=float, default=1.0)
parser.add_argument("--output_keep_prob", type=float, default=1.0)
parser.add_argument("--state_keep_prob", type=float, default=1.0)
parser.add_argument("--log_root", type=str, default="./models/demo")
args = parser.parse_args()
# CUDA_VISIBLE_DEVICES=3 python style_enc_train.py --rnn_layers=4 --ac_softmax_m=0.1 --log_root=./models/0107_layer4_m010
npz_10 = [os.path.join(NPZ_DIR, "%03d.npz" % n) for n in range(1, 421)]
npz_11 = [os.path.join(NPZ_DIR, "%d.npz" % n) for n in range(1001, 1301)]
npz_12 = [os.path.join(NPZ_DIR, "%d.npz" % n) for n in range(501, 801)]
# npz_C = [os.path.join(NPZ_DIR, "C%03d-f.npz" % n) for n in range(1, 61)]
npzs = npz_10 + npz_11 + npz_12
for npz in npzs:
assert os.path.exists(npz)
readme = "%d writers: 1.0 %d, 1.1 %d, 1.2 %d." % (len(npzs), len(npz_10), len(npz_11), len(npz_12))
print(readme)
readme += "\nGB range: train(201-6763), valid(1-200)"
print_save_args(args, args.log_root, readme=readme)
trainer(npzs,
args = args,
train_GB_range=(201, 6763),
valid_GB_range=(1, 200))
if __name__ == '__main__':
main()
| [
11748,
28686,
198,
11748,
640,
198,
11748,
4738,
198,
11748,
6468,
198,
11748,
33918,
198,
11748,
1822,
29572,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
11192,
273,
11125,
355,
48700,
198,
198,
6738,
3918,
62,
12685,
62,
19849,
1330,
17738,
62,
27195,
62,
17633,
198,
6738,
1366,
1330,
5870,
45,
62,
21466,
62,
6601,
17401,
198,
6738,
2746,
62,
26791,
1330,
3613,
62,
19849,
11,
13259,
62,
34960,
198,
198,
22182,
57,
62,
34720,
796,
366,
40720,
16594,
7594,
1639,
6601,
14,
37659,
89,
62,
43762,
62,
17080,
14,
34,
1921,
3539,
62,
4372,
79,
19,
13,
15,
1,
198,
198,
30493,
28686,
13,
6978,
13,
1069,
1023,
7,
22182,
57,
62,
34720,
8,
198,
4798,
7203,
22182,
57,
62,
34720,
25,
1600,
28498,
57,
62,
34720,
8,
628,
198,
4299,
3601,
62,
21928,
62,
22046,
7,
22046,
11,
3613,
62,
15908,
11,
1100,
1326,
33151,
2599,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
21928,
62,
15908,
11,
2152,
62,
482,
28,
17821,
8,
198,
220,
220,
220,
26498,
62,
11600,
796,
410,
945,
7,
22046,
8,
198,
220,
220,
220,
329,
1994,
287,
26498,
62,
11600,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
2539,
11,
366,
28,
1600,
26498,
62,
11600,
58,
2539,
12962,
198,
220,
220,
220,
351,
1280,
7,
418,
13,
6978,
13,
22179,
7,
21928,
62,
15908,
11,
705,
19849,
62,
11250,
13,
17752,
33809,
705,
86,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
33918,
13,
39455,
7,
22046,
62,
11600,
11,
277,
11,
33793,
28,
17821,
8,
198,
220,
220,
220,
611,
1100,
1326,
14512,
366,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
418,
13,
6978,
13,
22179,
7,
21928,
62,
15908,
11,
705,
961,
1326,
13,
14116,
11537,
553,
86,
4943,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
7,
961,
1326,
8,
198,
198,
4299,
13446,
62,
19849,
7,
82,
408,
11,
2746,
11,
4818,
282,
1170,
263,
2599,
198,
220,
220,
220,
42781,
62,
22462,
796,
657,
13,
15,
198,
220,
220,
220,
42781,
62,
330,
62,
22462,
796,
657,
13,
15,
198,
220,
220,
220,
42781,
62,
76,
258,
62,
22462,
796,
657,
13,
15,
198,
220,
220,
220,
275,
77,
796,
4818,
282,
1170,
263,
13,
7857,
3373,
4818,
282,
1170,
263,
13,
43501,
62,
7857,
220,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
9374,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
15458,
62,
17027,
62,
18747,
11,
15458,
62,
75,
641,
796,
4818,
282,
1170,
263,
13,
1136,
62,
25120,
62,
43501,
62,
7890,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3745,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
13,
15414,
62,
7890,
25,
15458,
62,
17027,
62,
18747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
13,
41068,
62,
75,
641,
25,
15458,
62,
75,
641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
357,
22462,
11,
936,
62,
22462,
11,
285,
258,
62,
22462,
8,
796,
264,
408,
13,
5143,
26933,
19849,
13,
22462,
11,
2746,
13,
330,
62,
22462,
11,
2746,
13,
76,
258,
62,
22462,
4357,
3745,
8,
628,
220,
220,
220,
220,
220,
220,
220,
42781,
62,
22462,
15853,
2994,
198,
220,
220,
220,
220,
220,
220,
220,
42781,
62,
330,
62,
22462,
15853,
936,
62,
22462,
198,
220,
220,
220,
220,
220,
220,
220,
42781,
62,
76,
258,
62,
22462,
15853,
285,
258,
62,
22462,
198,
220,
220,
220,
220,
220,
220,
220,
275,
77,
15853,
352,
628,
220,
220,
220,
42781,
62,
22462,
1220,
28,
275,
77,
198,
220,
220,
220,
42781,
62,
330,
62,
22462,
1220,
28,
275,
77,
198,
220,
220,
220,
42781,
62,
76,
258,
62,
22462,
1220,
28,
275,
77,
198,
220,
220,
220,
1441,
42781,
62,
22462,
11,
42781,
62,
330,
62,
22462,
11,
42781,
62,
76,
258,
62,
22462,
198,
198,
4299,
4512,
7,
82,
408,
11,
2746,
11,
4938,
62,
19849,
11,
4512,
62,
67,
10254,
1170,
263,
11,
4938,
62,
67,
10254,
1170,
263,
11,
2604,
62,
15763,
2599,
198,
220,
220,
220,
37227,
44077,
257,
2746,
526,
15931,
198,
220,
220,
220,
1303,
31122,
10638,
6260,
13,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
6404,
62,
15763,
11,
2152,
62,
482,
28,
17821,
8,
198,
220,
220,
220,
4512,
62,
49736,
62,
16002,
796,
48700,
13,
49736,
13,
8979,
34379,
7,
6404,
62,
15763,
1343,
12813,
27432,
62,
6404,
1600,
264,
408,
13,
34960,
8,
198,
220,
220,
220,
4938,
62,
49736,
62,
16002,
796,
48700,
13,
49736,
13,
8979,
34379,
7,
6404,
62,
15763,
1343,
12813,
12102,
62,
6404,
4943,
198,
220,
220,
220,
473,
332,
796,
48700,
13,
27432,
13,
50,
8770,
7,
27110,
13,
20541,
62,
25641,
2977,
22784,
3509,
62,
1462,
62,
14894,
28,
20,
8,
628,
220,
220,
220,
256,
62,
85,
945,
796,
48700,
13,
27432,
540,
62,
25641,
2977,
3419,
198,
220,
220,
220,
954,
62,
83,
62,
85,
945,
796,
657,
198,
220,
220,
220,
329,
1401,
287,
256,
62,
85,
945,
25,
198,
220,
220,
220,
220,
220,
220,
220,
997,
62,
17143,
796,
45941,
13,
1676,
67,
7,
7785,
13,
1136,
62,
43358,
22446,
292,
62,
4868,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
954,
62,
83,
62,
85,
945,
15853,
997,
62,
17143,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
4,
82,
4064,
82,
4064,
67,
6,
4064,
357,
7785,
13,
3672,
11,
965,
7,
7785,
13,
1136,
62,
43358,
3419,
828,
997,
62,
17143,
4008,
198,
220,
220,
220,
3601,
10786,
14957,
4512,
540,
9633,
4064,
67,
2637,
4064,
954,
62,
83,
62,
85,
945,
8,
628,
220,
220,
220,
1266,
62,
12102,
62,
22462,
796,
36006,
17032,
13,
15,
198,
220,
220,
220,
20625,
62,
35972,
11,
27196,
4792,
796,
657,
13,
2388,
8298,
11,
657,
13,
24214,
628,
220,
220,
220,
329,
2239,
287,
2837,
7,
16,
10535,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
15458,
62,
17027,
62,
18747,
11,
15458,
62,
11925,
62,
18747,
796,
4512,
62,
67,
10254,
1170,
263,
13,
1136,
62,
25120,
62,
43501,
62,
7890,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1090,
81,
62,
40684,
62,
4873,
796,
357,
19849,
13,
15003,
62,
14050,
532,
20625,
62,
35972,
8,
1635,
357,
41374,
4792,
12429,
2239,
8,
1343,
20625,
62,
35972,
628,
220,
220,
220,
220,
220,
220,
220,
3745,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
13,
15414,
62,
7890,
25,
15458,
62,
17027,
62,
18747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
13,
41068,
62,
75,
641,
25,
15458,
62,
11925,
62,
18747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
13,
14050,
25,
1090,
81,
62,
40684,
62,
4873,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3047,
198,
220,
220,
220,
220,
220,
220,
220,
44104,
11,
2994,
11,
936,
62,
22462,
11,
285,
258,
62,
22462,
11,
30114,
62,
2536,
8,
796,
264,
408,
13,
5143,
26933,
19849,
13,
27432,
62,
404,
11,
2746,
13,
22462,
11,
2746,
13,
330,
62,
22462,
11,
2746,
13,
76,
258,
62,
22462,
11,
2746,
13,
82,
13929,
4357,
3745,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4512,
62,
49736,
62,
16002,
13,
2860,
62,
49736,
7,
82,
13929,
62,
2536,
11,
2239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4512,
62,
49736,
62,
16002,
13,
25925,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2604,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2239,
4064,
2026,
6624,
657,
290,
2239,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
44077,
2239,
4064,
67,
11,
300,
81,
25,
7225,
21,
69,
11,
2994,
25,
4064,
13,
19,
69,
11,
936,
62,
22462,
25,
4064,
13,
19,
69,
11,
285,
258,
62,
22462,
25,
4064,
13,
19,
69,
26,
4512,
640,
25,
4064,
13,
17,
9501,
1,
4064,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2239,
11,
1090,
81,
62,
40684,
62,
4873,
11,
2994,
11,
936,
62,
22462,
11,
285,
258,
62,
22462,
11,
640,
13,
2435,
3419,
532,
923,
4008,
628,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
21201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2239,
4064,
5323,
6624,
657,
290,
2239,
1875,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
796,
640,
13,
2435,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
12102,
803,
9313,
11,
2604,
62,
15763,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
22462,
11,
4938,
62,
330,
62,
22462,
11,
4938,
62,
76,
258,
62,
22462,
796,
13446,
62,
19849,
7,
82,
408,
11,
4938,
62,
19849,
11,
4938,
62,
67,
10254,
1170,
263,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
22462,
62,
82,
13929,
796,
48700,
13,
49736,
13,
22093,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
22462,
62,
82,
13929,
13,
8367,
13,
2860,
7,
12985,
11639,
12102,
62,
22462,
3256,
2829,
62,
8367,
28,
22468,
7,
12102,
62,
22462,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
22462,
62,
82,
13929,
13,
8367,
13,
2860,
7,
12985,
11639,
12102,
62,
330,
62,
22462,
3256,
2829,
62,
8367,
28,
22468,
7,
12102,
62,
330,
62,
22462,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
22462,
62,
82,
13929,
13,
8367,
13,
2860,
7,
12985,
11639,
12102,
62,
76,
258,
62,
22462,
3256,
2829,
62,
8367,
28,
22468,
7,
12102,
62,
76,
258,
62,
22462,
4008,
628,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
13014,
4938,
2994,
25,
4064,
13,
19,
69,
11,
2994,
25,
4064,
13,
19,
69,
11,
936,
62,
22462,
25,
4064,
13,
19,
69,
11,
285,
258,
62,
22462,
25,
4064,
13,
19,
69,
26,
4938,
640,
25,
4064,
13,
17,
9501,
1,
4064,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
12102,
62,
22462,
11,
4938,
62,
22462,
11,
4938,
62,
330,
62,
22462,
11,
4938,
62,
76,
258,
62,
22462,
11,
640,
13,
2435,
3419,
532,
923,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
49736,
62,
16002,
13,
2860,
62,
49736,
7,
12102,
62,
22462,
62,
82,
13929,
11,
2239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
49736,
62,
16002,
13,
25925,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4938,
62,
22462,
1279,
1266,
62,
12102,
62,
22462,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
62,
12102,
62,
22462,
796,
4938,
62,
22462,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
28971,
2746,
11,
1266,
62,
12102,
62,
22462,
25,
4064,
13,
19,
69,
1,
4064,
1266,
62,
12102,
62,
22462,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3613,
62,
19849,
7,
82,
408,
11,
473,
332,
11,
2604,
62,
15763,
11,
2239,
8,
628,
198,
4299,
21997,
7,
37659,
89,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4512,
62,
4579,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
4579,
62,
9521,
2599,
628,
220,
220,
220,
13259,
62,
34960,
3419,
628,
220,
220,
220,
2746,
796,
17738,
62,
27195,
62,
17633,
7,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2315,
62,
14050,
796,
26498,
13,
15003,
62,
14050,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
16002,
62,
525,
62,
43501,
28,
22046,
13,
22510,
62,
16002,
62,
525,
62,
43501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
13000,
62,
525,
62,
16002,
28,
22046,
13,
22510,
62,
13000,
62,
525,
62,
16002,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
41068,
62,
11925,
28,
22046,
13,
9806,
62,
41068,
62,
11925,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
20471,
62,
7857,
28,
22046,
13,
81,
20471,
62,
7857,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
20471,
62,
75,
6962,
28,
22046,
13,
81,
20471,
62,
75,
6962,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11525,
12083,
62,
27740,
796,
26498,
13,
20521,
12083,
62,
27740,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
936,
62,
4215,
9806,
62,
76,
28,
22046,
13,
330,
62,
4215,
9806,
62,
76,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
936,
62,
4215,
9806,
62,
82,
28,
22046,
13,
330,
62,
4215,
9806,
62,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
258,
62,
50033,
28,
22046,
13,
76,
258,
62,
50033,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
14894,
62,
1676,
65,
796,
26498,
13,
15414,
62,
14894,
62,
1676,
65,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
14894,
62,
1676,
65,
796,
26498,
13,
22915,
62,
14894,
62,
1676,
65,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
62,
14894,
62,
1676,
65,
796,
26498,
13,
5219,
62,
14894,
62,
1676,
65,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
4938,
62,
19849,
796,
17738,
62,
27195,
62,
17633,
7,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2315,
62,
14050,
796,
26498,
13,
15003,
62,
14050,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
16002,
62,
525,
62,
43501,
28,
22046,
13,
22510,
62,
16002,
62,
525,
62,
43501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
13000,
62,
525,
62,
16002,
28,
22046,
13,
22510,
62,
13000,
62,
525,
62,
16002,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
41068,
62,
11925,
28,
22046,
13,
9806,
62,
41068,
62,
11925,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
20471,
62,
7857,
28,
22046,
13,
81,
20471,
62,
7857,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
20471,
62,
75,
6962,
28,
22046,
13,
81,
20471,
62,
75,
6962,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11525,
12083,
62,
27740,
796,
26498,
13,
20521,
12083,
62,
27740,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
936,
62,
4215,
9806,
62,
76,
28,
22046,
13,
330,
62,
4215,
9806,
62,
76,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
936,
62,
4215,
9806,
62,
82,
28,
22046,
13,
330,
62,
4215,
9806,
62,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
258,
62,
50033,
28,
22046,
13,
76,
258,
62,
50033,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
14894,
62,
1676,
65,
796,
352,
13,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
14894,
62,
1676,
65,
796,
352,
13,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
62,
14894,
62,
1676,
65,
796,
352,
13,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32349,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
34409,
28,
25101,
8,
628,
220,
220,
220,
264,
408,
796,
48700,
13,
9492,
5275,
36044,
3419,
198,
220,
220,
220,
264,
408,
13,
5143,
7,
27110,
13,
20541,
62,
25641,
2977,
62,
36733,
7509,
28955,
628,
220,
220,
220,
3601,
7203,
27432,
1366,
25,
4943,
198,
220,
220,
220,
4512,
62,
67,
10254,
1170,
263,
796,
5870,
45,
62,
21466,
62,
6601,
17401,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
89,
82,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13124,
62,
9521,
796,
4512,
62,
4579,
62,
9521,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9535,
278,
28,
17821,
11,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
16002,
62,
525,
62,
43501,
28,
22046,
13,
22510,
62,
16002,
62,
525,
62,
43501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
13000,
62,
525,
62,
16002,
28,
22046,
13,
22510,
62,
13000,
62,
525,
62,
16002,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
41068,
62,
11925,
28,
22046,
13,
9806,
62,
41068,
62,
11925,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
62,
31412,
28,
2167,
13,
15,
11,
220,
1303,
329,
2187,
1366,
900,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4738,
62,
9888,
62,
31412,
28,
22046,
13,
25120,
62,
9888,
62,
31412,
11,
220,
1303,
691,
329,
3047,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35016,
62,
30757,
62,
1676,
65,
28,
22046,
13,
559,
5154,
62,
30757,
62,
1676,
65,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
3601,
7203,
12102,
1366,
25,
4943,
198,
220,
220,
220,
4938,
62,
67,
10254,
1170,
263,
796,
5870,
45,
62,
21466,
62,
6601,
17401,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45941,
89,
82,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13124,
62,
9521,
796,
4938,
62,
4579,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9535,
278,
28,
25101,
11,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
16002,
62,
525,
62,
43501,
28,
22046,
13,
22510,
62,
16002,
62,
525,
62,
43501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
62,
13000,
62,
525,
62,
16002,
28,
22046,
13,
22510,
62,
13000,
62,
525,
62,
16002,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
41068,
62,
11925,
28,
22046,
13,
9806,
62,
41068,
62,
11925,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
62,
31412,
28,
2167,
13,
15,
11,
220,
1303,
329,
2187,
1366,
900,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4738,
62,
9888,
62,
31412,
28,
15,
13,
15,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35016,
62,
30757,
62,
1676,
65,
28,
15,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
4512,
7,
82,
408,
11,
2746,
11,
4938,
62,
19849,
11,
4512,
62,
67,
10254,
1170,
263,
11,
4938,
62,
67,
10254,
1170,
263,
11,
26498,
13,
6404,
62,
15763,
8,
628,
198,
4299,
1388,
33529,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
628,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
15003,
62,
14050,
1600,
2099,
28,
22468,
11,
220,
4277,
28,
15,
13,
8298,
11,
1037,
2625,
15003,
4673,
2494,
4943,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
22510,
62,
16002,
62,
525,
62,
43501,
1600,
2099,
28,
600,
11,
4277,
28,
2414,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
22510,
62,
13000,
62,
525,
62,
16002,
1600,
2099,
28,
600,
11,
4277,
28,
1433,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
9806,
62,
41068,
62,
11925,
1600,
2099,
28,
600,
11,
4277,
28,
11442,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
25120,
62,
9888,
62,
31412,
1600,
2099,
28,
22468,
11,
220,
4277,
28,
15,
13,
16,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
559,
5154,
62,
30757,
62,
1676,
65,
1600,
2099,
28,
22468,
11,
220,
4277,
28,
15,
13,
16,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
81,
20471,
62,
7857,
1600,
2099,
28,
600,
11,
4277,
28,
11645,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
81,
20471,
62,
75,
6962,
1600,
2099,
28,
600,
11,
4277,
28,
16,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
20521,
12083,
62,
27740,
1600,
2099,
28,
600,
11,
4277,
28,
11645,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
330,
62,
4215,
9806,
62,
76,
1600,
2099,
28,
22468,
11,
4277,
28,
15,
13,
2327,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
330,
62,
4215,
9806,
62,
82,
1600,
2099,
28,
600,
11,
4277,
28,
1270,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
76,
258,
62,
50033,
1600,
2099,
28,
22468,
11,
4277,
28,
15,
13,
15,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
15414,
62,
14894,
62,
1676,
65,
1600,
2099,
28,
22468,
11,
220,
4277,
28,
16,
13,
15,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
22915,
62,
14894,
62,
1676,
65,
1600,
2099,
28,
22468,
11,
220,
4277,
28,
16,
13,
15,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
5219,
62,
14894,
62,
1676,
65,
1600,
2099,
28,
22468,
11,
220,
4277,
28,
16,
13,
15,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
7203,
438,
6404,
62,
15763,
1600,
2099,
28,
2536,
11,
220,
4277,
28,
1911,
14,
27530,
14,
9536,
78,
4943,
198,
220,
220,
220,
26498,
796,
30751,
13,
29572,
62,
22046,
3419,
628,
220,
220,
220,
1303,
29369,
5631,
62,
29817,
34563,
62,
39345,
34444,
28,
18,
21015,
3918,
62,
12685,
62,
27432,
13,
9078,
1377,
81,
20471,
62,
75,
6962,
28,
19,
1377,
330,
62,
4215,
9806,
62,
76,
28,
15,
13,
16,
1377,
6404,
62,
15763,
28,
19571,
27530,
14,
486,
2998,
62,
29289,
19,
62,
76,
20943,
628,
220,
220,
220,
45941,
89,
62,
940,
796,
685,
418,
13,
6978,
13,
22179,
7,
22182,
57,
62,
34720,
11,
36521,
3070,
67,
13,
37659,
89,
1,
4064,
299,
8,
329,
299,
287,
2837,
7,
16,
11,
49294,
15437,
198,
220,
220,
220,
45941,
89,
62,
1157,
796,
685,
418,
13,
6978,
13,
22179,
7,
22182,
57,
62,
34720,
11,
36521,
67,
13,
37659,
89,
1,
4064,
299,
8,
329,
299,
287,
2837,
7,
47705,
11,
1511,
486,
15437,
198,
220,
220,
220,
45941,
89,
62,
1065,
796,
685,
418,
13,
6978,
13,
22179,
7,
22182,
57,
62,
34720,
11,
36521,
67,
13,
37659,
89,
1,
4064,
299,
8,
329,
299,
287,
2837,
7,
33548,
11,
807,
486,
15437,
198,
220,
220,
220,
1303,
45941,
89,
62,
34,
796,
685,
418,
13,
6978,
13,
22179,
7,
22182,
57,
62,
34720,
11,
366,
34,
4,
3070,
67,
12,
69,
13,
37659,
89,
1,
4064,
299,
8,
329,
299,
287,
2837,
7,
16,
11,
8454,
15437,
198,
220,
220,
220,
45941,
89,
82,
796,
45941,
89,
62,
940,
1343,
45941,
89,
62,
1157,
1343,
45941,
89,
62,
1065,
198,
220,
220,
220,
329,
45941,
89,
287,
45941,
89,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
28686,
13,
6978,
13,
1069,
1023,
7,
37659,
89,
8,
628,
220,
220,
220,
1100,
1326,
796,
36521,
67,
8786,
25,
352,
13,
15,
4064,
67,
11,
352,
13,
16,
4064,
67,
11,
352,
13,
17,
4064,
67,
526,
4064,
357,
11925,
7,
37659,
89,
82,
828,
18896,
7,
37659,
89,
62,
940,
828,
18896,
7,
37659,
89,
62,
1157,
828,
18896,
7,
37659,
89,
62,
1065,
4008,
198,
220,
220,
220,
3601,
7,
961,
1326,
8,
198,
220,
220,
220,
1100,
1326,
15853,
37082,
77,
4579,
2837,
25,
4512,
7,
1264,
12,
3134,
5066,
828,
4938,
7,
16,
12,
2167,
16725,
198,
220,
220,
220,
220,
198,
220,
220,
220,
3601,
62,
21928,
62,
22046,
7,
22046,
11,
26498,
13,
6404,
62,
15763,
11,
1100,
1326,
28,
961,
1326,
8,
628,
220,
220,
220,
21997,
7,
37659,
89,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
796,
26498,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4512,
62,
4579,
62,
9521,
16193,
1264,
11,
718,
49641,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
4579,
62,
9521,
16193,
16,
11,
939,
4008,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.04842 | 4,399 |
km = float(input('digite km rodados: '))
dias = float(input('total de dias: '))
total_de_km = km * 0.15
total_de_dias = dias * 60
total_a_pagar = total_de_dias + total_de_km
print(f'total a pagar e: {total_a_pagar} R$')
| [
13276,
796,
12178,
7,
15414,
10786,
12894,
578,
10571,
15299,
22484,
25,
705,
4008,
198,
67,
4448,
796,
12178,
7,
15414,
10786,
23350,
390,
2566,
292,
25,
705,
4008,
198,
198,
23350,
62,
2934,
62,
13276,
796,
10571,
1635,
657,
13,
1314,
198,
23350,
62,
2934,
62,
67,
4448,
796,
2566,
292,
1635,
3126,
198,
198,
23350,
62,
64,
62,
79,
32452,
796,
2472,
62,
2934,
62,
67,
4448,
1343,
2472,
62,
2934,
62,
13276,
198,
198,
4798,
7,
69,
470,
4997,
257,
279,
32452,
304,
25,
1391,
23350,
62,
64,
62,
79,
32452,
92,
371,
3,
11537,
628,
198
] | 2.25 | 100 |
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines
def usersfunctions_user_activity_recent(client,
user_id):
return client.recent(user_id=user_id)
def usersfunctions_user_calendar_calendar_view_calendar_allowed_calendar_sharing_role(client,
user_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_calendar_view_exception_occurrence_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_calendar_view_instance_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_calendar_view_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_calendar_event_calendar_allowed_calendar_sharing_role(client,
user_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_event_exception_occurrence_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_event_instance_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_event_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_calendar_allowed_calendar_sharing_role(client,
user_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
user=user)
def usersfunctions_user_calendar_group_calendar_calendar_view_calendar_allowed_calendar_sharing_role(client,
user_id,
calendar_group_id,
calendar_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_group_calendar_calendar_view_exception_occurrence_delta(client,
user_id,
calendar_group_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_group_calendar_calendar_view_instance_delta(client,
user_id,
calendar_group_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_group_calendar_calendar_view_delta(client,
user_id,
calendar_group_id,
calendar_id):
return client.delta(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id)
def usersfunctions_user_calendar_group_calendar_event_calendar_allowed_calendar_sharing_role(client,
user_id,
calendar_group_id,
calendar_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_group_calendar_event_exception_occurrence_delta(client,
user_id,
calendar_group_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_group_calendar_event_instance_delta(client,
user_id,
calendar_group_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_group_calendar_event_delta(client,
user_id,
calendar_group_id,
calendar_id):
return client.delta(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id)
def usersfunctions_user_calendar_group_calendar_allowed_calendar_sharing_role(client,
user_id,
calendar_group_id,
calendar_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
calendar_group_id=calendar_group_id,
calendar_id=calendar_id,
user=user)
def usersfunctions_user_calendar_calendar_view_calendar_allowed_calendar_sharing_role(client,
user_id,
calendar_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
calendar_id=calendar_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_calendar_view_exception_occurrence_delta(client,
user_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_calendar_view_instance_delta(client,
user_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_calendar_view_delta(client,
user_id,
calendar_id):
return client.delta(user_id=user_id,
calendar_id=calendar_id)
def usersfunctions_user_calendar_event_calendar_allowed_calendar_sharing_role(client,
user_id,
calendar_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
calendar_id=calendar_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_event_exception_occurrence_delta(client,
user_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_event_instance_delta(client,
user_id,
calendar_id,
event_id):
return client.delta(user_id=user_id,
calendar_id=calendar_id,
event_id=event_id)
def usersfunctions_user_calendar_event_delta(client,
user_id,
calendar_id):
return client.delta(user_id=user_id,
calendar_id=calendar_id)
def usersfunctions_user_calendar_allowed_calendar_sharing_role(client,
user_id,
calendar_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
calendar_id=calendar_id,
user=user)
def usersfunctions_user_calendar_view_calendar_calendar_view_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_view_calendar_event_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_view_calendar_allowed_calendar_sharing_role(client,
user_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
event_id=event_id,
user=user)
def usersfunctions_user_calendar_view_exception_occurrence_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_view_instance_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_calendar_view_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_contact_folder_child_folder_delta(client,
user_id,
contact_folder_id):
return client.delta(user_id=user_id,
contact_folder_id=contact_folder_id)
def usersfunctions_user_contact_folder_contact_delta(client,
user_id,
contact_folder_id):
return client.delta(user_id=user_id,
contact_folder_id=contact_folder_id)
def usersfunctions_user_contact_folder_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_contact_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_event_calendar_calendar_view_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_event_calendar_event_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_event_calendar_allowed_calendar_sharing_role(client,
user_id,
event_id,
user):
return client.allowed_calendar_sharing_roles(user_id=user_id,
event_id=event_id,
user=user)
def usersfunctions_user_event_exception_occurrence_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_event_instance_delta(client,
user_id,
event_id):
return client.delta(user_id=user_id,
event_id=event_id)
def usersfunctions_user_event_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_mail_folder_child_folder_delta(client,
user_id,
mail_folder_id):
return client.delta(user_id=user_id,
mail_folder_id=mail_folder_id)
def usersfunctions_user_mail_folder_message_delta(client,
user_id,
mail_folder_id):
return client.delta(user_id=user_id,
mail_folder_id=mail_folder_id)
def usersfunctions_user_mail_folder_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_managed_app_registration_show_user_id_with_flagged_app_registration(client,
user_id):
return client.get_user_ids_with_flagged_app_registration(user_id=user_id)
def usersfunctions_user_managed_device_show_file_vault_key(client,
user_id,
managed_device_id):
return client.get_file_vault_key(user_id=user_id,
managed_device_id=managed_device_id)
def usersfunctions_user_managed_device_show_non_compliant_setting(client,
user_id,
managed_device_id):
return client.get_non_compliant_settings(user_id=user_id,
managed_device_id=managed_device_id)
def usersfunctions_user_message_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_delta(client):
return client.delta()
def usersfunctions_user_export_device_and_app_management_data_d390(client,
user_id):
return client.export_device_and_app_management_data_d390(user_id=user_id)
def usersfunctions_user_export_device_and_app_management_data623_c(client,
user_id,
skip,
top):
return client.export_device_and_app_management_data623_c(user_id=user_id,
skip=skip,
top=top)
def usersfunctions_user_find_room_ac49(client,
user_id,
room_list):
return client.find_rooms_ac49(user_id=user_id,
room_list=room_list)
def usersfunctions_user_find_room_d266(client,
user_id):
return client.find_rooms_d266(user_id=user_id)
def usersfunctions_user_find_room_list(client,
user_id):
return client.find_room_lists(user_id=user_id)
def usersfunctions_user_is_managed_app_user_blocked(client,
user_id):
return client.is_managed_app_user_blocked(user_id=user_id)
def usersfunctions_user_reminder_view(client,
user_id,
start_date_time,
end_date_time):
return client.reminder_view(user_id=user_id,
start_date_time=start_date_time,
end_date_time=end_date_time)
def usersfunctions_user_show_effective_device_enrollment_configuration(client,
user_id):
return client.get_effective_device_enrollment_configurations(user_id=user_id)
def usersfunctions_user_show_logged_on_managed_device(client,
user_id):
return client.get_logged_on_managed_devices(user_id=user_id)
def usersfunctions_user_show_managed_app_blocked_user(client):
return client.get_managed_app_blocked_users()
def usersfunctions_user_show_managed_app_diagnostic_statuses(client,
user_id):
return client.get_managed_app_diagnostic_statuses(user_id=user_id)
def usersfunctions_user_show_managed_app_policy(client,
user_id):
return client.get_managed_app_policies(user_id=user_id)
def usersfunctions_user_show_managed_device_with_app_failure(client,
user_id):
return client.get_managed_devices_with_app_failures(user_id=user_id)
def usersfunctions_user_show_managed_device_with_failed_or_pending_app(client,
user_id):
return client.get_managed_devices_with_failed_or_pending_apps(user_id=user_id)
def usersfunctions_user_onenote_notebook_section_group_section_page_preview(client,
user_id,
notebook_id,
section_group_id,
onenote_section_id,
onenote_page_id):
return client.preview(user_id=user_id,
notebook_id=notebook_id,
section_group_id=section_group_id,
onenote_section_id=onenote_section_id,
onenote_page_id=onenote_page_id)
def usersfunctions_user_onenote_notebook_section_page_preview(client,
user_id,
notebook_id,
onenote_section_id,
onenote_page_id):
return client.preview(user_id=user_id,
notebook_id=notebook_id,
onenote_section_id=onenote_section_id,
onenote_page_id=onenote_page_id)
def usersfunctions_user_onenote_notebook_show_recent_notebook(client,
user_id,
include_personal_notebooks):
if include_personal_notebooks is None:
include_personal_notebooks = False
return client.get_recent_notebooks(user_id=user_id,
include_personal_notebooks=include_personal_notebooks)
def usersfunctions_user_onenote_page_preview(client,
user_id,
onenote_page_id):
return client.preview(user_id=user_id,
onenote_page_id=onenote_page_id)
def usersfunctions_user_onenote_page_parent_notebook_section_group_section_page_preview(client,
user_id,
onenote_page_id,
section_group_id,
onenote_section_id,
onenote_page_id1):
return client.preview(user_id=user_id,
onenote_page_id=onenote_page_id,
section_group_id=section_group_id,
onenote_section_id=onenote_section_id,
onenote_page_id1=onenote_page_id1)
def usersfunctions_user_onenote_page_parent_notebook_section_page_preview(client,
user_id,
onenote_page_id,
onenote_section_id,
onenote_page_id1):
return client.preview(user_id=user_id,
onenote_page_id=onenote_page_id,
onenote_section_id=onenote_section_id,
onenote_page_id1=onenote_page_id1)
def usersfunctions_user_onenote_page_parent_section_page_preview(client,
user_id,
onenote_page_id,
onenote_page_id1):
return client.preview(user_id=user_id,
onenote_page_id=onenote_page_id,
onenote_page_id1=onenote_page_id1)
def usersfunctions_user_onenote_section_group_parent_notebook_section_page_preview(client,
user_id,
section_group_id,
onenote_section_id,
onenote_page_id):
return client.preview(user_id=user_id,
section_group_id=section_group_id,
onenote_section_id=onenote_section_id,
onenote_page_id=onenote_page_id)
def usersfunctions_user_onenote_section_group_section_page_preview(client,
user_id,
section_group_id,
onenote_section_id,
onenote_page_id):
return client.preview(user_id=user_id,
section_group_id=section_group_id,
onenote_section_id=onenote_section_id,
onenote_page_id=onenote_page_id)
def usersfunctions_user_onenote_section_page_preview(client,
user_id,
onenote_section_id,
onenote_page_id):
return client.preview(user_id=user_id,
onenote_section_id=onenote_section_id,
onenote_page_id=onenote_page_id)
def usersfunctions_user_outlook_supported_language(client,
user_id):
return client.supported_languages(user_id=user_id)
def usersfunctions_user_outlook_supported_time_zone_ee48(client,
user_id):
return client.supported_time_zones_ee48(user_id=user_id)
def usersfunctions_user_outlook_supported_time_zones51_c6(client,
user_id,
time_zone_standard):
return client.supported_time_zones51_c6(user_id=user_id,
time_zone_standard=time_zone_standard)
def usersfunctions_user_planner_all_delta(client,
user_id):
return client.delta(user_id=user_id)
def usersfunctions_user_todo_list_task_delta(client,
user_id,
todo_task_list_id):
return client.delta(user_id=user_id,
todo_task_list_id=todo_task_list_id)
def usersfunctions_user_todo_list_delta(client,
user_id):
return client.delta(user_id=user_id)
| [
2,
16529,
35937,
201,
198,
2,
15069,
357,
66,
8,
5413,
10501,
13,
1439,
2489,
10395,
13,
201,
198,
2,
49962,
739,
262,
17168,
13789,
13,
4091,
13789,
13,
14116,
287,
262,
1628,
6808,
329,
201,
198,
2,
5964,
1321,
13,
201,
198,
2,
201,
198,
2,
6127,
7560,
416,
5413,
357,
49,
8,
11160,
19452,
6127,
35986,
13,
201,
198,
2,
19179,
743,
2728,
11491,
4069,
290,
481,
307,
2626,
611,
262,
2438,
318,
201,
198,
2,
16935,
515,
13,
201,
198,
2,
16529,
35937,
201,
198,
2,
279,
2645,
600,
25,
15560,
28,
18820,
12,
21834,
12,
6615,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
21797,
62,
49921,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
49921,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
15596,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
15596,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
15596,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
15596,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
8094,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
8094,
62,
312,
28,
9948,
9239,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
15596,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11845,
62,
312,
28,
9948,
9239,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
1177,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
1177,
62,
9948,
9239,
62,
15596,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
1177,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
1177,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
1177,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
9948,
9239,
62,
1177,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
32057,
62,
43551,
62,
9410,
62,
43551,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
43551,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
43551,
62,
312,
28,
32057,
62,
43551,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
32057,
62,
43551,
62,
32057,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
43551,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
43551,
62,
312,
28,
32057,
62,
43551,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
32057,
62,
43551,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
32057,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
15596,
62,
9948,
9239,
62,
9948,
9239,
62,
1177,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
15596,
62,
9948,
9239,
62,
15596,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
15596,
62,
9948,
9239,
62,
40845,
62,
9948,
9239,
62,
21987,
62,
18090,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
40845,
62,
9948,
9239,
62,
21987,
62,
305,
829,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
28,
7220,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
15596,
62,
1069,
4516,
62,
13966,
33928,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
15596,
62,
39098,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
312,
28,
15596,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
15596,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
4529,
62,
43551,
62,
9410,
62,
43551,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
62,
43551,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
62,
43551,
62,
312,
28,
4529,
62,
43551,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
4529,
62,
43551,
62,
20500,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
62,
43551,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6920,
62,
43551,
62,
312,
28,
4529,
62,
43551,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
4529,
62,
43551,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
39935,
62,
1324,
62,
2301,
33397,
62,
12860,
62,
7220,
62,
312,
62,
4480,
62,
2704,
14655,
62,
1324,
62,
2301,
33397,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
7220,
62,
2340,
62,
4480,
62,
2704,
14655,
62,
1324,
62,
2301,
33397,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
39935,
62,
25202,
62,
12860,
62,
7753,
62,
85,
1721,
62,
2539,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5257,
62,
25202,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
7753,
62,
85,
1721,
62,
2539,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5257,
62,
25202,
62,
312,
28,
39935,
62,
25202,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
39935,
62,
25202,
62,
12860,
62,
13159,
62,
23855,
3014,
62,
33990,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5257,
62,
25202,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
13159,
62,
23855,
3014,
62,
33692,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5257,
62,
25202,
62,
312,
28,
39935,
62,
25202,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
20500,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
67,
12514,
7,
16366,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
3419,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
39344,
62,
25202,
62,
392,
62,
1324,
62,
27604,
62,
7890,
62,
67,
25964,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
39344,
62,
25202,
62,
392,
62,
1324,
62,
27604,
62,
7890,
62,
67,
25964,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
39344,
62,
25202,
62,
392,
62,
1324,
62,
27604,
62,
7890,
46872,
62,
66,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14267,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1353,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
39344,
62,
25202,
62,
392,
62,
1324,
62,
27604,
62,
7890,
46872,
62,
66,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14267,
28,
48267,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1353,
28,
4852,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
19796,
62,
3823,
62,
330,
2920,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2119,
62,
4868,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
19796,
62,
9649,
62,
330,
2920,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2119,
62,
4868,
28,
3823,
62,
4868,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
19796,
62,
3823,
62,
67,
25540,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
19796,
62,
9649,
62,
67,
25540,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
19796,
62,
3823,
62,
4868,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
19796,
62,
3823,
62,
20713,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
271,
62,
39935,
62,
1324,
62,
7220,
62,
2436,
3543,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
271,
62,
39935,
62,
1324,
62,
7220,
62,
2436,
3543,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
2787,
5540,
62,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
62,
4475,
62,
2435,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
62,
4475,
62,
2435,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
2787,
5540,
62,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
62,
4475,
62,
2435,
28,
9688,
62,
4475,
62,
2435,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
62,
4475,
62,
2435,
28,
437,
62,
4475,
62,
2435,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
16803,
62,
25202,
62,
268,
48108,
62,
11250,
3924,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
16803,
62,
25202,
62,
268,
48108,
62,
11250,
20074,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
6404,
2004,
62,
261,
62,
39935,
62,
25202,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
6404,
2004,
62,
261,
62,
39935,
62,
42034,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
39935,
62,
1324,
62,
2436,
3543,
62,
7220,
7,
16366,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
39935,
62,
1324,
62,
2436,
3543,
62,
18417,
3419,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
39935,
62,
1324,
62,
47356,
15132,
62,
14269,
2664,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
39935,
62,
1324,
62,
47356,
15132,
62,
14269,
2664,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
39935,
62,
1324,
62,
30586,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
39935,
62,
1324,
62,
79,
4160,
444,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
39935,
62,
25202,
62,
4480,
62,
1324,
62,
32165,
495,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
39935,
62,
42034,
62,
4480,
62,
1324,
62,
32165,
942,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
12860,
62,
39935,
62,
25202,
62,
4480,
62,
47904,
62,
273,
62,
79,
1571,
62,
1324,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
39935,
62,
42034,
62,
4480,
62,
47904,
62,
273,
62,
79,
1571,
62,
18211,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
11295,
2070,
62,
5458,
62,
8094,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20922,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20922,
62,
312,
28,
11295,
2070,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
28,
5458,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
11295,
2070,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20922,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20922,
62,
312,
28,
11295,
2070,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
11295,
2070,
62,
12860,
62,
49921,
62,
11295,
2070,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2291,
62,
22682,
62,
11295,
12106,
2599,
201,
198,
220,
220,
220,
611,
2291,
62,
22682,
62,
11295,
12106,
318,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2291,
62,
22682,
62,
11295,
12106,
796,
10352,
201,
198,
220,
220,
220,
1441,
5456,
13,
1136,
62,
49921,
62,
11295,
12106,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2291,
62,
22682,
62,
11295,
12106,
28,
17256,
62,
22682,
62,
11295,
12106,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
7700,
62,
8000,
62,
11295,
2070,
62,
5458,
62,
8094,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
16,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
28,
5458,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
16,
28,
34481,
1258,
62,
7700,
62,
312,
16,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
7700,
62,
8000,
62,
11295,
2070,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
16,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
16,
28,
34481,
1258,
62,
7700,
62,
312,
16,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
7700,
62,
8000,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
16,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
16,
28,
34481,
1258,
62,
7700,
62,
312,
16,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
5458,
62,
8094,
62,
8000,
62,
11295,
2070,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
28,
5458,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
5458,
62,
8094,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2665,
62,
8094,
62,
312,
28,
5458,
62,
8094,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
34481,
1258,
62,
5458,
62,
7700,
62,
3866,
1177,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
3866,
1177,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
5458,
62,
312,
28,
34481,
1258,
62,
5458,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
319,
268,
1258,
62,
7700,
62,
312,
28,
34481,
1258,
62,
7700,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
448,
5460,
62,
15999,
62,
16129,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
15999,
62,
75,
33213,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
448,
5460,
62,
15999,
62,
2435,
62,
11340,
62,
1453,
2780,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
15999,
62,
2435,
62,
89,
1952,
62,
1453,
2780,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
448,
5460,
62,
15999,
62,
2435,
62,
89,
1952,
4349,
62,
66,
21,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
62,
11340,
62,
20307,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
15999,
62,
2435,
62,
89,
1952,
4349,
62,
66,
21,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
62,
11340,
62,
20307,
28,
2435,
62,
11340,
62,
20307,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
11578,
1008,
62,
439,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
83,
24313,
62,
4868,
62,
35943,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
4598,
62,
35943,
62,
4868,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
284,
4598,
62,
35943,
62,
4868,
62,
312,
28,
83,
24313,
62,
35943,
62,
4868,
62,
312,
8,
201,
198,
201,
198,
201,
198,
4299,
2985,
12543,
2733,
62,
7220,
62,
83,
24313,
62,
4868,
62,
67,
12514,
7,
16366,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
312,
2599,
201,
198,
220,
220,
220,
1441,
5456,
13,
67,
12514,
7,
7220,
62,
312,
28,
7220,
62,
312,
8,
201,
198
] | 1.440238 | 22,054 |
from VarEvents import Property
from VarEvents import Var
from time import sleep
from xml.dom import minidom
class Climate(object):
"""
This class handles the ISY climate module.
| parent: ISY class
| xml: String of xml data containing the climate data
:ivar Gust_Speed: Watched Variable representing the gust speed.
:ivar Temperature: Watched Variable representing the temperature.
:ivar Temperature_Rate: Watched Variable representing the temperature rate.
:ivar Rain_Rate: Watched Variable representing the rain rate.
:ivar Max_Rain_Rate: Watched Variable representing the rain rate.
:ivar Temperature_High: Watched Variable representing the high temperature.
:ivar Pressure_Rate: Watched variable representing the pressure rate.
:ivar Wind_Speed: Watched Variable representing the wind speed.
:ivar Elevation: Watched Variable representing the elevation.
:ivar Dew_Point: Watched Variable representing the dew point.
:ivar Wind_Average_Speed: Watched Variable representing the avg wind speed.
:ivar Pressure: Watched Variable representing the pressure.
:ivar Gust_Direction: Watched Variable representing the gust direction.
:ivar Wind_Average_Direction: Watched Variable representing the average wind
direction.
:ivar Light: Watched Variable representing the amount of light.
:ivar Wind_Direction: Watched Variable representing the wind direction.
:ivar Humidity: Watched Variable representing the humidity.
:ivar Humidity_Rate: Watched Variable representing the humidity rate.
:ivar Rain_Today: Watched Variable representing the forcast rain today.
:ivar Light_Rate: Watched Variable representing the light rate.
:ivar Water_Deficit_Yesterday: Watched Variable representing the water
deficit yesterday.
:ivar Irrigation_Requirement: Watched Variable representing the irrigation
requirement.
:ivar Feels_Like: Watched Variable representing the feels like temperature.
:ivar Temperature_Low: Watched Variable representing the low temperature.
:ivar Evapotranspiration: Watched Variable representing the
evapotranspiration amount.
:ivar Gust_Speed_units: Gust speed units.
:ivar Temperature_units: Temperature units.
:ivar Temperature_Rate_units: Temperature rate units.
:ivar Rain_Rate_units: Rain rate units.
:ivar Max_Rain_Rate_units: Max rain rate units.
:ivar Temperature_High_units: High temperature units.
:ivar Pressure_Rate_units: Pressure rate units.
:ivar Wind_Speed_units: Wind speed units.
:ivar Elevation_units: Elevation units.
:ivar Dew_Point_units: Dew point units.
:ivar Wind_Average_Speed_units: Average wind speed units.
:ivar Pressure_units: Pressure units.
:ivar Gust_Direction_units: Gust direction units.
:ivar Wind_Average_Direction_units: Average wind direction units.
:ivar Light_units: Light amount units.
:ivar Wind_Direction_units: Wind direction units.
:ivar Humidity_units: Humidity units.
:ivar Humidity_Rate_units: Humidity rate units.
:ivar Rain_Today_units: Rain forecast units.
:ivar Light_Rate_units: Light rate units.
:ivar Water_Deficit_Yesterday_units: Water deficit units.
:ivar Irrigation_Requirement_units: Irrigation requirement units.
:ivar Feels_Like_units: Feels like temperature units.
:ivar Temperature_Low_units: Low temperature units.
:ivar Evapotranspiration_units: Evapotranspiration units.
"""
# Values
_id2name = ['Temperature', 'Temperature_High', 'Temperature_Low',
'Feels_Like', 'Temperature_Average', 'Humidity', None,
'Pressure', None, 'Dew_Point', 'Wind_Speed', None,
'Wind_Direction', None, 'Gust_Speed', None, 'Total_Rain_Today',
'Light', None, None, None, 'Evapotranspiration',
'Irrigation_Requirement', 'Water_Deficit_Yesterday',
'Elevation', None, None, None, None,
'Average_Temperature_Tomorrow', 'High_Temperature_Tomorrow',
'Low_Temperature_Tomorrow', 'Humidity_Tomorrow',
'Wind_Speed_Tomorrow', 'Gust_Speed_Tomorrow', 'Rain_Tomorrow',
'Snow_Tomorrow', None, None, None, None,
'Forecast_Average_Temperature', 'Forecast_High_Temperature',
'Forecast_Low_Temperature', 'Forecast_Humidity',
'Forecast_Rain', 'Forecast_Snow', None, None, None, None]
# value properties
Temperature = Property(0, readonly=True)
Temperature_High = Property(0, readonly=True)
Temperature_Low = Property(0, readonly=True)
Feels_Like = Property(0, readonly=True)
Temperature_Average = Property(0, readonly=True)
Humidity = Property(0, readonly=True)
Pressure = Property(0, readonly=True)
Dew_Point = Property(0, readonly=True)
Wind_Speed = Property(0, readonly=True)
Wind_Direction = Property(0, readonly=True)
Gust_Speed = Property(0, readonly=True)
Total_Rain_Today = Property(0, readonly=True)
Light = Property(0, readonly=True)
Evapotranspiration = Property(0, readonly=True)
Irrigation_Requirement = Property(0, readonly=True)
Water_Deficit_Yesterday = Property(0, readonly=True)
Elevation = Property(0, readonly=True)
# Coverage = Property(0, readonly=True)
# Intensity = Property(0, readonly=True)
# Weather_Condition = Property(0, readonly=True)
# Cloud_Condition = Property(0, readonly=True)
Average_Temperature_Tomorrow = Property(0, readonly=True)
High_Temperature_Tomorrow = Property(0, readonly=True)
Low_Temperature_Tomorrow = Property(0, readonly=True)
Humidity_Tomorrow = Property(0, readonly=True)
Wind_Speed_Tomorrow = Property(0, readonly=True)
Gust_Speed_Tomorrow = Property(0, readonly=True)
Rain_Tomorrow = Property(0, readonly=True)
Snow_Tomorrow = Property(0, readonly=True)
# Coverage_Tomorrow = Property(0, readonly=True)
# Intensity_Tomorrow = Property(0, readonly=True)
# Weather_Condition_Tomorrow = Property(0, readonly=True)
# Cloud_Condition_Tomorrow = Property(0, readonly=True)
Forecast_Average_Temperature = Property(0, readonly=True)
Forecast_High_Temperature = Property(0, readonly=True)
Forecast_Low_Temperature = Property(0, readonly=True)
Forecast_Humidity = Property(0, readonly=True)
Forecast_Rain = Property(0, readonly=True)
Forecast_Snow = Property(0, readonly=True)
# Forecast_Coverage = Property(0, readonly=True)
# Forecast_Intensity = Property(0, readonly=True)
# Forecast_Weather_Condition = Property(0, readonly=True)
# Forecast_Cloud_Condition = Property(0, readonly=True)
# unit properties
Temperature_units = ''
Temperature_High_units = ''
Temperature_Low_units = ''
Feels_Like_units = ''
Temperature_Average_units = ''
Humidity_units = ''
Pressure_units = ''
Dew_Point_units = ''
Wind_Speed_units = ''
Wind_Direction_units = ''
Gust_Speed_units = ''
Total_Rain_Today_units = ''
Light_units = ''
Evapotranspiration_units = ''
Irrigation_Requirement_units = ''
Water_Deficit_Yesterday_units = ''
Elevation_units = ''
# Coverage_units = ''
# Intensity_units = ''
# Weather_Condition_units = ''
# Cloud_Condition_units = ''
Average_Temperature_Tomorrow_units = ''
High_Temperature_Tomorrow_units = ''
Low_Temperature_Tomorrow_units = ''
Humidity_Tomorrow_units = ''
Wind_Speed_Tomorrow_units = ''
Gust_Speed_Tomorrow_units = ''
Rain_Tomorrow_units = ''
Snow_Tomorrow_units = ''
# Coverage_Tomorrow_units = ''
# Intensity_Tomorrow_units = ''
# Weather_Condition_Tomorrow_units = ''
# Cloud_Condition_Tomorrow_units = ''
Forecast_Average_Temperature_units = ''
Forecast_High_Temperature_units = ''
Forecast_Low_Temperature_units = ''
Forecast_Humidity_units = ''
Forecast_Rain_units = ''
Forecast_Snow_units = ''
# Forecast_Coverage_units = ''
# Forecast_Intensity_units = ''
# Forecast_Weather_Condition_units = ''
# Forecast_Cloud_Condition_units = ''
def __init__(self, parent, xml=None):
super(Climate, self).__init__()
self.parent = parent
self.parse(xml)
def __str__(self):
""" Returns a string representing the climate manager. """
return 'Climate Module'
def __repr__(self):
""" Returns a long string showing all the climate values. """
out = 'Climate Module\n'
for attr_name in dir(self):
attr = getattr(self, attr_name)
if isinstance(attr, Var):
units = getattr(self, attr_name + '_units')
out += ' ' + attr_name + ' = ' + str(attr) \
+ ' ' + units + '\n'
return out
def parse(self, xml):
"""
Parses the xml data.
xml: String of the xml data
"""
try:
xmldoc = minidom.parseString(xml)
except:
self.parent.log.error('ISY Could not parse climate, poorly '
+ 'formatted XML.')
else:
# parse definitions
feature = xmldoc.getElementsByTagName('climate')[0]
for node in feature.childNodes:
(val, unit) = self._parse_val(node.firstChild.toxml())
name = node.nodeName
try:
prop = getattr(self, name)
prop.update(val, force=True, silent=True)
setattr(self, name + '_units', unit)
except:
pass
self.parent.log.info('ISY Loaded Environment Data')
def _parse_val(self, val):
try:
# assume standard val unit combination
(val, unit) = self._parse_val_num(val)
except ValueError:
# assume direction
(val, unit) = self._parse_val_dir(val)
return (val, unit)
def _parse_val_num(self, val):
split_val = val.split()
if len(split_val) == 2:
return (float(split_val[0]), split_val[1])
else:
# probably elevation, assume feet
return (float(split_val[0]), 'feet')
def _parse_val_dir(self, val):
dirs = {'N': 0.,
'NNE': 22.5,
'NE': 45.,
'ENE': 67.5,
'E': 90.,
'ESE': 112.5,
'SE': 135.,
'SSE': 157.5,
'S': 180.,
'SSW': 202.5,
'SW': 225.,
'WSW': 247.5,
'W': 270.,
'WNW': 292.5,
'NW': 315.,
'NNW': 337.5,
'N/A': None}
return (dirs[val], 'deg')
def update(self, waitTime=0):
"""
Updates the contents of the climate class
waitTime: [optional] Amount of seconds to wait before updating
"""
sleep(waitTime)
xml = self.parent.conn.getClimate()
self.parse(xml)
def _upmsg(self, xmldoc):
cid = int(xmldoc.getElementsByTagName('action')[0]
.firstChild.toxml()) - 1
val_raw = xmldoc.getElementsByTagName('value')[0] \
.firstChild.toxml().strip()
unit_raw = xmldoc.getElementsByTagName('unit')[0].firstChild
if unit_raw is not None:
unit_raw = unit_raw.toxml().strip()
else:
unit_raw = ''
if cid < len(self._id2name):
(val, unit) = self._parse_val((val_raw + ' ' + unit_raw).strip())
cname = self._id2name[cid]
if cname is not None:
attr = getattr(self, cname)
attr.update(val, force=True, silent=True)
setattr(self, cname + '_units', unit)
self.parent.log.info('ISY Updated Climate Value: ' + cname)
| [
6738,
12372,
37103,
1330,
14161,
201,
198,
6738,
12372,
37103,
1330,
12372,
201,
198,
6738,
640,
1330,
3993,
201,
198,
6738,
35555,
13,
3438,
1330,
949,
312,
296,
201,
198,
201,
198,
201,
198,
4871,
13963,
7,
15252,
2599,
201,
198,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
770,
1398,
17105,
262,
3180,
56,
4258,
8265,
13,
201,
198,
201,
198,
220,
220,
220,
930,
220,
2560,
25,
3180,
56,
1398,
201,
198,
220,
220,
220,
930,
220,
35555,
25,
10903,
286,
35555,
1366,
7268,
262,
4258,
1366,
201,
198,
201,
198,
220,
220,
220,
1058,
452,
283,
26657,
62,
22785,
25,
12242,
1740,
35748,
10200,
262,
35253,
2866,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
25,
12242,
1740,
35748,
10200,
262,
5951,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
32184,
25,
12242,
1740,
35748,
10200,
262,
5951,
2494,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
10301,
62,
32184,
25,
12242,
1740,
35748,
10200,
262,
6290,
2494,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5436,
62,
31443,
62,
32184,
25,
12242,
1740,
35748,
10200,
262,
6290,
2494,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
11922,
25,
12242,
1740,
35748,
10200,
262,
1029,
5951,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
30980,
62,
32184,
25,
12242,
1740,
7885,
10200,
262,
3833,
2494,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
22785,
25,
12242,
1740,
35748,
10200,
262,
2344,
2866,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
37881,
341,
25,
12242,
1740,
35748,
10200,
262,
22910,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
25075,
62,
12727,
25,
12242,
1740,
35748,
10200,
262,
390,
86,
966,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
26287,
62,
22785,
25,
12242,
1740,
35748,
10200,
262,
42781,
2344,
2866,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
30980,
25,
12242,
1740,
35748,
10200,
262,
3833,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
26657,
62,
35,
4154,
25,
12242,
1740,
35748,
10200,
262,
35253,
4571,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
26287,
62,
35,
4154,
25,
12242,
1740,
35748,
10200,
262,
2811,
2344,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4571,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
4401,
25,
12242,
1740,
35748,
10200,
262,
2033,
286,
1657,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
35,
4154,
25,
12242,
1740,
35748,
10200,
262,
2344,
4571,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
11054,
17995,
25,
12242,
1740,
35748,
10200,
262,
27716,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
11054,
17995,
62,
32184,
25,
12242,
1740,
35748,
10200,
262,
27716,
2494,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
10301,
62,
8888,
25,
12242,
1740,
35748,
10200,
262,
329,
2701,
6290,
1909,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
4401,
62,
32184,
25,
12242,
1740,
35748,
10200,
262,
1657,
2494,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5638,
62,
7469,
3628,
62,
28065,
25,
12242,
1740,
35748,
10200,
262,
1660,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11807,
7415,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5686,
4359,
341,
62,
16844,
24615,
25,
12242,
1740,
35748,
10200,
262,
35425,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9079,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5452,
1424,
62,
7594,
25,
12242,
1740,
35748,
10200,
262,
5300,
588,
5951,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
20535,
25,
12242,
1740,
35748,
10200,
262,
1877,
5951,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
4319,
499,
313,
26084,
10514,
25,
12242,
1740,
35748,
10200,
262,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
499,
313,
26084,
10514,
2033,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
26657,
62,
22785,
62,
41667,
25,
26657,
2866,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
41667,
25,
34467,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
32184,
62,
41667,
25,
34467,
2494,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
10301,
62,
32184,
62,
41667,
25,
10301,
2494,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5436,
62,
31443,
62,
32184,
62,
41667,
25,
5436,
6290,
2494,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
11922,
62,
41667,
25,
3334,
5951,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
30980,
62,
32184,
62,
41667,
25,
30980,
2494,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
22785,
62,
41667,
25,
3086,
2866,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
37881,
341,
62,
41667,
25,
37881,
341,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
25075,
62,
12727,
62,
41667,
25,
25075,
966,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
26287,
62,
22785,
62,
41667,
25,
13475,
2344,
2866,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
30980,
62,
41667,
25,
30980,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
26657,
62,
35,
4154,
62,
41667,
25,
26657,
4571,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
26287,
62,
35,
4154,
62,
41667,
25,
13475,
2344,
4571,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
4401,
62,
41667,
25,
4401,
2033,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
3086,
62,
35,
4154,
62,
41667,
25,
3086,
4571,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
11054,
17995,
62,
41667,
25,
11054,
17995,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
11054,
17995,
62,
32184,
62,
41667,
25,
11054,
17995,
2494,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
10301,
62,
8888,
62,
41667,
25,
10301,
11092,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
4401,
62,
32184,
62,
41667,
25,
4401,
2494,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5638,
62,
7469,
3628,
62,
28065,
62,
41667,
25,
5638,
11807,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5686,
4359,
341,
62,
16844,
24615,
62,
41667,
25,
5686,
4359,
341,
9079,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
5452,
1424,
62,
7594,
62,
41667,
25,
5452,
1424,
588,
5951,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
34467,
62,
20535,
62,
41667,
25,
7754,
5951,
4991,
13,
201,
198,
220,
220,
220,
1058,
452,
283,
4319,
499,
313,
26084,
10514,
62,
41667,
25,
4319,
499,
313,
26084,
10514,
4991,
13,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
1303,
27068,
201,
198,
220,
220,
220,
4808,
312,
17,
3672,
796,
37250,
42492,
3256,
705,
42492,
62,
11922,
3256,
705,
42492,
62,
20535,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14304,
1424,
62,
7594,
3256,
705,
42492,
62,
26287,
3256,
705,
32661,
17995,
3256,
6045,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
13800,
495,
3256,
6045,
11,
705,
35,
413,
62,
12727,
3256,
705,
8731,
62,
22785,
3256,
6045,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8731,
62,
35,
4154,
3256,
6045,
11,
705,
38,
436,
62,
22785,
3256,
6045,
11,
705,
14957,
62,
31443,
62,
8888,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15047,
3256,
6045,
11,
6045,
11,
6045,
11,
705,
15200,
499,
313,
26084,
10514,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
23820,
4359,
341,
62,
16844,
24615,
3256,
705,
19184,
62,
7469,
3628,
62,
28065,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
36,
2768,
341,
3256,
6045,
11,
6045,
11,
6045,
11,
6045,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
26287,
62,
42492,
62,
49488,
3256,
705,
11922,
62,
42492,
62,
49488,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20535,
62,
42492,
62,
49488,
3256,
705,
32661,
17995,
62,
49488,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8731,
62,
22785,
62,
49488,
3256,
705,
38,
436,
62,
22785,
62,
49488,
3256,
705,
31443,
62,
49488,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
28974,
62,
49488,
3256,
6045,
11,
6045,
11,
6045,
11,
6045,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16351,
2701,
62,
26287,
62,
42492,
3256,
705,
16351,
2701,
62,
11922,
62,
42492,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16351,
2701,
62,
20535,
62,
42492,
3256,
705,
16351,
2701,
62,
32661,
17995,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16351,
2701,
62,
31443,
3256,
705,
16351,
2701,
62,
28974,
3256,
6045,
11,
6045,
11,
6045,
11,
6045,
60,
201,
198,
201,
198,
220,
220,
220,
1303,
1988,
6608,
201,
198,
220,
220,
220,
34467,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
34467,
62,
11922,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
34467,
62,
20535,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
5452,
1424,
62,
7594,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
34467,
62,
26287,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
11054,
17995,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
30980,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
25075,
62,
12727,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
3086,
62,
22785,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
3086,
62,
35,
4154,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
26657,
62,
22785,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
7472,
62,
31443,
62,
8888,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4401,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4319,
499,
313,
26084,
10514,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
5686,
4359,
341,
62,
16844,
24615,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
5638,
62,
7469,
3628,
62,
28065,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
37881,
341,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
33998,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
2558,
6377,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
15615,
62,
48362,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
10130,
62,
48362,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
13475,
62,
42492,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
3334,
62,
42492,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
7754,
62,
42492,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
11054,
17995,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
3086,
62,
22785,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
26657,
62,
22785,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
10301,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
7967,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
33998,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
2558,
6377,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
15615,
62,
48362,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
10130,
62,
48362,
62,
49488,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4558,
2701,
62,
26287,
62,
42492,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4558,
2701,
62,
11922,
62,
42492,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4558,
2701,
62,
20535,
62,
42492,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4558,
2701,
62,
32661,
17995,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4558,
2701,
62,
31443,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
4558,
2701,
62,
28974,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
7222,
1857,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
5317,
6377,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
41865,
62,
48362,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
18839,
62,
48362,
796,
14161,
7,
15,
11,
1100,
8807,
28,
17821,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
4326,
6608,
201,
198,
220,
220,
220,
34467,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
34467,
62,
11922,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
34467,
62,
20535,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
5452,
1424,
62,
7594,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
34467,
62,
26287,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
11054,
17995,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
30980,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
25075,
62,
12727,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
3086,
62,
22785,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
3086,
62,
35,
4154,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
26657,
62,
22785,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
7472,
62,
31443,
62,
8888,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4401,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4319,
499,
313,
26084,
10514,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
5686,
4359,
341,
62,
16844,
24615,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
5638,
62,
7469,
3628,
62,
28065,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
37881,
341,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
33998,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
2558,
6377,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
15615,
62,
48362,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
10130,
62,
48362,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
13475,
62,
42492,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
3334,
62,
42492,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
7754,
62,
42492,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
11054,
17995,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
3086,
62,
22785,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
26657,
62,
22785,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
10301,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
7967,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
33998,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
2558,
6377,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
15615,
62,
48362,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
10130,
62,
48362,
62,
49488,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4558,
2701,
62,
26287,
62,
42492,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4558,
2701,
62,
11922,
62,
42492,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4558,
2701,
62,
20535,
62,
42492,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4558,
2701,
62,
32661,
17995,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4558,
2701,
62,
31443,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
4558,
2701,
62,
28974,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
7222,
1857,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
5317,
6377,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
41865,
62,
48362,
62,
41667,
796,
10148,
201,
198,
220,
220,
220,
1303,
4558,
2701,
62,
18839,
62,
48362,
62,
41667,
796,
10148,
201,
198,
201,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2560,
11,
35555,
28,
14202,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
7,
37649,
11,
2116,
737,
834,
15003,
834,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8000,
796,
2560,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
29572,
7,
19875,
8,
201,
198,
201,
198,
220,
220,
220,
825,
11593,
2536,
834,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16409,
257,
4731,
10200,
262,
4258,
4706,
13,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
37649,
19937,
6,
201,
198,
201,
198,
220,
220,
220,
825,
11593,
260,
1050,
834,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16409,
257,
890,
4731,
4478,
477,
262,
4258,
3815,
13,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
503,
796,
705,
37649,
19937,
59,
77,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
708,
81,
62,
3672,
287,
26672,
7,
944,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
708,
81,
796,
651,
35226,
7,
944,
11,
708,
81,
62,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
35226,
11,
12372,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4991,
796,
651,
35226,
7,
944,
11,
708,
81,
62,
3672,
1343,
705,
62,
41667,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
15853,
705,
220,
705,
1343,
708,
81,
62,
3672,
1343,
705,
796,
705,
1343,
965,
7,
35226,
8,
3467,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1343,
705,
705,
1343,
4991,
1343,
705,
59,
77,
6,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
503,
201,
198,
201,
198,
220,
220,
220,
825,
21136,
7,
944,
11,
35555,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
23042,
274,
262,
35555,
1366,
13,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
35555,
25,
10903,
286,
262,
35555,
1366,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
76,
335,
420,
796,
949,
312,
296,
13,
29572,
10100,
7,
19875,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8000,
13,
6404,
13,
18224,
10786,
1797,
56,
10347,
407,
21136,
4258,
11,
13455,
705,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1343,
705,
687,
16898,
23735,
2637,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
21136,
17336,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3895,
796,
2124,
76,
335,
420,
13,
1136,
36,
3639,
3886,
24835,
5376,
10786,
42570,
11537,
58,
15,
60,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
10139,
287,
3895,
13,
9410,
45,
4147,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2100,
11,
4326,
8,
796,
2116,
13557,
29572,
62,
2100,
7,
17440,
13,
11085,
16424,
13,
83,
1140,
4029,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
10139,
13,
17440,
5376,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2632,
796,
651,
35226,
7,
944,
11,
1438,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2632,
13,
19119,
7,
2100,
11,
2700,
28,
17821,
11,
10574,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
1438,
1343,
705,
62,
41667,
3256,
4326,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8000,
13,
6404,
13,
10951,
10786,
1797,
56,
42485,
9344,
6060,
11537,
201,
198,
201,
198,
220,
220,
220,
825,
4808,
29572,
62,
2100,
7,
944,
11,
1188,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7048,
3210,
1188,
4326,
6087,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2100,
11,
4326,
8,
796,
2116,
13557,
29572,
62,
2100,
62,
22510,
7,
2100,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7048,
4571,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2100,
11,
4326,
8,
796,
2116,
13557,
29572,
62,
2100,
62,
15908,
7,
2100,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
2100,
11,
4326,
8,
201,
198,
201,
198,
220,
220,
220,
825,
4808,
29572,
62,
2100,
62,
22510,
7,
944,
11,
1188,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6626,
62,
2100,
796,
1188,
13,
35312,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
35312,
62,
2100,
8,
6624,
362,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
22468,
7,
35312,
62,
2100,
58,
15,
46570,
6626,
62,
2100,
58,
16,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2192,
22910,
11,
7048,
3625,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
22468,
7,
35312,
62,
2100,
58,
15,
46570,
705,
39690,
11537,
201,
198,
201,
198,
220,
220,
220,
825,
4808,
29572,
62,
2100,
62,
15908,
7,
944,
11,
1188,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
288,
17062,
796,
1391,
6,
45,
10354,
657,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6144,
36,
10354,
2534,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12161,
10354,
4153,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
39267,
10354,
8275,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
36,
10354,
4101,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
33635,
10354,
13539,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5188,
10354,
17501,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50,
5188,
10354,
23313,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
50,
10354,
11546,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5432,
54,
10354,
22131,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
17887,
10354,
18500,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
54,
17887,
10354,
30179,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
54,
10354,
20479,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
54,
27605,
10354,
41569,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27605,
10354,
32647,
1539,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6144,
54,
10354,
42294,
13,
20,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
45,
14,
32,
10354,
6045,
92,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
357,
15908,
82,
58,
2100,
4357,
705,
13500,
11537,
201,
198,
201,
198,
220,
220,
220,
825,
4296,
7,
944,
11,
4043,
7575,
28,
15,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
28090,
262,
10154,
286,
262,
4258,
1398,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4043,
7575,
25,
685,
25968,
60,
26308,
286,
4201,
284,
4043,
878,
19698,
201,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3993,
7,
17077,
7575,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
35555,
796,
2116,
13,
8000,
13,
37043,
13,
1136,
37649,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
29572,
7,
19875,
8,
201,
198,
201,
198,
220,
220,
220,
825,
4808,
929,
19662,
7,
944,
11,
2124,
76,
335,
420,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
269,
312,
796,
493,
7,
87,
76,
335,
420,
13,
1136,
36,
3639,
3886,
24835,
5376,
10786,
2673,
11537,
58,
15,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
11085,
16424,
13,
83,
1140,
4029,
28955,
532,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
62,
1831,
796,
2124,
76,
335,
420,
13,
1136,
36,
3639,
3886,
24835,
5376,
10786,
8367,
11537,
58,
15,
60,
3467,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
11085,
16424,
13,
83,
1140,
4029,
22446,
36311,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4326,
62,
1831,
796,
2124,
76,
335,
420,
13,
1136,
36,
3639,
3886,
24835,
5376,
10786,
20850,
11537,
58,
15,
4083,
11085,
16424,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4326,
62,
1831,
318,
407,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4326,
62,
1831,
796,
4326,
62,
1831,
13,
83,
1140,
4029,
22446,
36311,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4326,
62,
1831,
796,
10148,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
269,
312,
1279,
18896,
7,
944,
13557,
312,
17,
3672,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2100,
11,
4326,
8,
796,
2116,
13557,
29572,
62,
2100,
19510,
2100,
62,
1831,
1343,
705,
705,
1343,
4326,
62,
1831,
737,
36311,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
3672,
796,
2116,
13557,
312,
17,
3672,
58,
66,
312,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
269,
3672,
318,
407,
6045,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
708,
81,
796,
651,
35226,
7,
944,
11,
269,
3672,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
708,
81,
13,
19119,
7,
2100,
11,
2700,
28,
17821,
11,
10574,
28,
17821,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
269,
3672,
1343,
705,
62,
41667,
3256,
4326,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8000,
13,
6404,
13,
10951,
10786,
1797,
56,
19433,
13963,
11052,
25,
705,
1343,
269,
3672,
8,
201,
198
] | 2.33327 | 5,296 |
from PySide2.QtCore import Qt, Slot, QDir, QSettings
from PySide2.QtWidgets import QApplication, QMainWindow, QWidget, QAction, QPushButton, QFileDialog, QInputDialog, \
QLineEdit, QHBoxLayout, QVBoxLayout, QLabel
import sys
class Application(QWidget):
pathToWTF = "_retail_/WTF/Account"
def __init__(self):
QWidget.__init__(self)
self.config = QSettings("Nierhain", "WTFUtils")
self.layout = QHBoxLayout()
self.quit = QPushButton("Quit")
# Options
self.accountname = QLineEdit(self.config.value("accountname"))
self.realm = QLineEdit(self.config.value("realm"))
self.character = QLineEdit(self.config.value("character"))
self.wowPath = QLineEdit(self.config.value("wowPath"))
self.wowPath.picker = QPushButton('Select')
self.copyPath = QLineEdit(self.config.value("copyPath"))
self.copyPath.picker = QPushButton('Select')
self.backupPath = QLineEdit(self.config.value("backupPath"))
self.backupPath.picker = QPushButton('Select')
self.options = QVBoxLayout()
self.options.setMargin(10)
self.options.addWidget(QLabel("WoW path"))
self.options.addWidget(self.wowPath)
self.options.addWidget(self.wowPath.picker)
self.options.addWidget(QLabel("Character settings path"))
self.options.addWidget(self.copyPath)
self.options.addWidget(self.copyPath.picker)
self.options.addWidget(QLabel("Account name"))
self.options.addWidget(self.accountname)
self.options.addWidget(QLabel("Realm"))
self.options.addWidget(self.realm)
self.options.addWidget(QLabel("Character name"))
self.options.addWidget(self.character)
self.options.addWidget(QLabel("Backup folder path"))
self.options.addWidget(self.backupPath)
self.options.addWidget(self.backupPath.picker)
self.options.addStretch()
self.options.addWidget(self.quit)
self.layout.addLayout(self.options)
self.setLayout(self.layout)
self.realm.editingFinished.connect(self.setRealm)
self.quit.clicked.connect(self.quit_application)
self.copyPath.picker.clicked.connect(self.setCopyPath)
self.wowPath.picker.clicked.connect(self.setWowPath)
self.backupPath.picker.clicked.connect(self.setBackupPath)
self.character.editingFinished.connect(self.setCharacter)
class MainWindow(QMainWindow):
def __init__(self, widget):
QMainWindow.__init__(self)
self.setWindowTitle("WTFUtils - by Nierhain")
self.menu = self.menuBar()
self.file_menu = self.menu.addMenu("File")
exit_action = QAction("Exit", self)
exit_action.setShortcut("Ctrl+Q")
exit_action.triggered.connect(self.exit_app)
self.file_menu.addAction(exit_action)
self.setCentralWidget(widget)
if __name__ == "__main__":
app = QApplication(sys.argv)
widget = Application()
window = MainWindow(widget)
window.resize(800, 600)
window.show()
sys.exit(app.exec_())
| [
6738,
9485,
24819,
17,
13,
48,
83,
14055,
1330,
33734,
11,
32026,
11,
1195,
35277,
11,
1195,
26232,
198,
6738,
9485,
24819,
17,
13,
48,
83,
54,
312,
11407,
1330,
1195,
23416,
11,
1195,
13383,
27703,
11,
1195,
38300,
11,
1195,
12502,
11,
1195,
49222,
21864,
11,
1195,
8979,
44204,
11,
1195,
20560,
44204,
11,
3467,
198,
220,
220,
220,
1195,
13949,
18378,
11,
1195,
39,
14253,
32517,
11,
1195,
53,
14253,
32517,
11,
1195,
33986,
198,
198,
11748,
25064,
628,
198,
4871,
15678,
7,
48,
38300,
2599,
198,
220,
220,
220,
3108,
2514,
54,
10234,
796,
45434,
1186,
603,
62,
14,
54,
10234,
14,
30116,
1,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1195,
38300,
13,
834,
15003,
834,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11250,
796,
1195,
26232,
7203,
45,
959,
71,
391,
1600,
366,
54,
10234,
18274,
4487,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
39786,
796,
1195,
39,
14253,
32517,
3419,
628,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
47391,
796,
1195,
49222,
21864,
7203,
4507,
270,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
18634,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
23317,
3672,
796,
1195,
13949,
18378,
7,
944,
13,
11250,
13,
8367,
7203,
23317,
3672,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5305,
76,
796,
1195,
13949,
18378,
7,
944,
13,
11250,
13,
8367,
7203,
5305,
76,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22769,
796,
1195,
13949,
18378,
7,
944,
13,
11250,
13,
8367,
7203,
22769,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42773,
15235,
796,
1195,
13949,
18378,
7,
944,
13,
11250,
13,
8367,
7203,
42773,
15235,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42773,
15235,
13,
79,
15799,
796,
1195,
49222,
21864,
10786,
17563,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30073,
15235,
796,
1195,
13949,
18378,
7,
944,
13,
11250,
13,
8367,
7203,
30073,
15235,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30073,
15235,
13,
79,
15799,
796,
1195,
49222,
21864,
10786,
17563,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1891,
929,
15235,
796,
1195,
13949,
18378,
7,
944,
13,
11250,
13,
8367,
7203,
1891,
929,
15235,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1891,
929,
15235,
13,
79,
15799,
796,
1195,
49222,
21864,
10786,
17563,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
796,
1195,
53,
14253,
32517,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2617,
24428,
259,
7,
940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
9711,
9608,
7203,
49450,
54,
3108,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
42773,
15235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
42773,
15235,
13,
79,
15799,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
9711,
9608,
7203,
27275,
6460,
3108,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
30073,
15235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
30073,
15235,
13,
79,
15799,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
9711,
9608,
7203,
30116,
1438,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
23317,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
9711,
9608,
7203,
15633,
76,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
5305,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
9711,
9608,
7203,
27275,
1438,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
22769,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
9711,
9608,
7203,
7282,
929,
9483,
3108,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
1891,
929,
15235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
1891,
929,
15235,
13,
79,
15799,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
39181,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25811,
13,
2860,
38300,
7,
944,
13,
47391,
8,
628,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
39786,
13,
2860,
32517,
7,
944,
13,
25811,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
32517,
7,
944,
13,
39786,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5305,
76,
13,
276,
1780,
18467,
1348,
13,
8443,
7,
944,
13,
2617,
15633,
76,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
47391,
13,
565,
9484,
13,
8443,
7,
944,
13,
47391,
62,
31438,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
30073,
15235,
13,
79,
15799,
13,
565,
9484,
13,
8443,
7,
944,
13,
2617,
29881,
15235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42773,
15235,
13,
79,
15799,
13,
565,
9484,
13,
8443,
7,
944,
13,
2617,
22017,
15235,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1891,
929,
15235,
13,
79,
15799,
13,
565,
9484,
13,
8443,
7,
944,
13,
2617,
7282,
929,
15235,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22769,
13,
276,
1780,
18467,
1348,
13,
8443,
7,
944,
13,
2617,
27275,
8,
628,
198,
198,
4871,
8774,
27703,
7,
48,
13383,
27703,
2599,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
26295,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1195,
13383,
27703,
13,
834,
15003,
834,
7,
944,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
27703,
19160,
7203,
54,
10234,
18274,
4487,
532,
416,
399,
959,
71,
391,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
26272,
796,
2116,
13,
26272,
10374,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7753,
62,
26272,
796,
2116,
13,
26272,
13,
2860,
23381,
7203,
8979,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
8420,
62,
2673,
796,
1195,
12502,
7203,
30337,
1600,
2116,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8420,
62,
2673,
13,
2617,
16438,
8968,
7203,
40069,
10,
48,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
8420,
62,
2673,
13,
2213,
328,
10446,
13,
8443,
7,
944,
13,
37023,
62,
1324,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7753,
62,
26272,
13,
2860,
12502,
7,
37023,
62,
2673,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2617,
30645,
38300,
7,
42655,
8,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
598,
796,
1195,
23416,
7,
17597,
13,
853,
85,
8,
198,
220,
220,
220,
26295,
796,
15678,
3419,
198,
220,
220,
220,
4324,
796,
8774,
27703,
7,
42655,
8,
198,
220,
220,
220,
4324,
13,
411,
1096,
7,
7410,
11,
10053,
8,
198,
220,
220,
220,
4324,
13,
12860,
3419,
198,
220,
220,
220,
25064,
13,
37023,
7,
1324,
13,
18558,
62,
28955,
198
] | 2.389231 | 1,300 |
from __future__ import division
from __future__ import absolute_import
# PopulationSim
# See full license in LICENSE.txt.
import logging
import pandas as pd
import numpy as np
from activitysim.core import pipeline
from activitysim.core import inject
from activitysim.core.config import setting
from .helper import get_control_table
from .helper import get_weight_table
from .helper import weight_table_name
logger = logging.getLogger(__name__)
| [
6738,
11593,
37443,
834,
1330,
7297,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
2,
20133,
8890,
198,
2,
4091,
1336,
5964,
287,
38559,
24290,
13,
14116,
13,
198,
198,
11748,
18931,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
3842,
14323,
13,
7295,
1330,
11523,
198,
6738,
3842,
14323,
13,
7295,
1330,
8677,
198,
198,
6738,
3842,
14323,
13,
7295,
13,
11250,
1330,
4634,
198,
6738,
764,
2978,
525,
1330,
651,
62,
13716,
62,
11487,
198,
6738,
764,
2978,
525,
1330,
651,
62,
6551,
62,
11487,
198,
198,
6738,
764,
2978,
525,
1330,
3463,
62,
11487,
62,
3672,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628
] | 3.579365 | 126 |
import os
import pickle
import os.path
import sys
import torch
import torch.utils.data as data
import torchvision.transforms as transforms
from PIL import Image, ImageDraw, ImageFont
import cv2
import numpy as np
from operator import itemgetter
from skimage.draw import polygon
if sys.version_info[0] == 2:
import xml.etree.cElementTree as ET
else:
import xml.etree.ElementTree as ET
VOC_CLASSES = ( '__background__', # always index 0
'aeroplane', 'bicycle', 'bird', 'boat',
'bottle', 'bus', 'car', 'cat', 'chair',
'cow', 'diningtable', 'dog', 'horse',
'motorbike', 'person', 'pottedplant',
'sheep', 'sofa', 'train', 'tvmonitor')
VOC_CLASSES = ( '__background__', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20')
# for making bounding boxes pretty
COLORS = ((255, 0, 0, 128), (0, 255, 0, 128), (0, 0, 255, 128),
(0, 255, 255, 128), (255, 0, 255, 128), (255, 255, 0, 128))
class AnnotationTransform(object):
"""Transforms a VOC annotation into a Tensor of bbox coords and label index
Initilized with a dictionary lookup of classnames to indexes
Arguments:
class_to_ind (dict, optional): dictionary lookup of classnames -> indexes
(default: alphabetic indexing of VOC's 20 classes)
keep_difficult (bool, optional): keep difficult instances or not
(default: False)
height (int): height
width (int): width
"""
def __init__(self, class_to_ind=None, keep_difficult=True):
self.class_to_ind = class_to_ind or dict(
zip(VOC_CLASSES, range(len(VOC_CLASSES))))
self.keep_difficult = keep_difficult
def __call__(self, target):
"""
Arguments:
target (annotation) : the target annotation to be made usable
will be an ET.Element
Returns:
a list containing lists of bounding boxes [bbox coords, class name]
"""
res = np.empty((0,5))
for obj in target.iter('object'):
difficult = int(obj.find('difficult').text) == 1
if not self.keep_difficult and difficult:
continue
name = obj.find('name').text.lower().strip()
bbox = obj.find('bndbox')
pts = ['xmin', 'ymin', 'xmax', 'ymax']
bndbox = []
for i, pt in enumerate(pts):
cur_pt = int(bbox.find(pt).text) - 1
# scale height or width
#cur_pt = cur_pt / width if i % 2 == 0 else cur_pt / height
bndbox.append(cur_pt)
label_idx = self.class_to_ind[name]
bndbox.append(label_idx)
res = np.vstack((res,bndbox)) # [xmin, ymin, xmax, ymax, label_ind]
# img_id = target.find('filename').text[:-4]
return res # [[xmin, ymin, xmax, ymax, label_ind], ... ]
class JACQUARDDetection(data.Dataset):
"""VOC Detection Dataset Object
input is image, target is annotation
Arguments:
root (string): filepath to VOCdevkit folder.
image_set (string): imageset to use (eg. 'train', 'val', 'test')
transform (callable, optional): transformation to perform on the
input image
target_transform (callable, optional): transformation to perform on the
target `annotation`
(eg: take in caption string, return tensor of word indices)
dataset_name (string, optional): which dataset to load
(default: 'VOC2007')
"""
def __init__(self, root, image_sets, preproc=None, target_transform=AnnotationTransform(),
dataset_name='VOC0712'):
self.root = root
self.image_set = image_sets
self.preproc = preproc
self.target_transform = target_transform
self.name = dataset_name
self._annopath = os.path.join('%s', 'Annotations', '%s.xml')
self._imgpath = os.path.join('%s', 'JPEGImages', '%s.jpg')
self.ids = list()
for (year, name) in image_sets:
self._year = year
rootpath = os.path.join(self.root, 'VOC' + year)
for line in open(os.path.join(rootpath, 'ImageSets', 'Main', name + '.txt')):
self.ids.append((rootpath, line.strip()))
def __getitem__(self, index):
img_id = self.ids[index]
target = ET.parse(self._annopath % img_id).getroot()
img = cv2.imread(self._imgpath % img_id, cv2.IMREAD_COLOR)
height, width, _ = img.shape
if self.target_transform is not None:
target = self.target_transform(target)
if self.preproc is not None:
img, target = self.preproc(img, target)
#print(img.size())
# target = self.target_transform(target, width, height)
#print(target.shape)
return img, target
def __len__(self):
return len(self.ids)
def pull_image(self, index):
'''Returns the original image object at index in PIL form
Note: not using self.__getitem__(), as any transformations passed in
could mess up this functionality.
Argument:
index (int): index of img to show
Return:
PIL img
'''
img_id = self.ids[index]
return cv2.imread(self._imgpath % img_id, cv2.IMREAD_COLOR)
def pull_anno(self, index):
'''Returns the original annotation of image at index
Note: not using self.__getitem__(), as any transformations passed in
could mess up this functionality.
Argument:
index (int): index of img to get annotation of
Return:
list: [img_id, [(label, bbox coords),...]]
eg: ('001718', [('dog', (96, 13, 438, 332))])
'''
img_id = self.ids[index]
anno = ET.parse(self._annopath % img_id).getroot()
# gt = self.target_transform(anno, 1, 1)
# gt = self.target_transform(anno)
# return img_id[1], gt
if self.target_transform is not None:
anno = self.target_transform(anno)
return anno
def pull_img_anno(self, index):
'''Returns the original annotation of image at index
Note: not using self.__getitem__(), as any transformations passed in
could mess up this functionality.
Argument:
index (int): index of img to get annotation of
Return:
list: [img_id, [(label, bbox coords),...]]
eg: ('001718', [('dog', (96, 13, 438, 332))])
'''
img_id = self.ids[index]
img = cv2.imread(self._imgpath % img_id, cv2.IMREAD_COLOR)
anno = ET.parse(self._annopath % img_id).getroot()
gt = self.target_transform(anno)
height, width, _ = img.shape
boxes = gt[:,:-1]
labels = gt[:,-1]
boxes[:, 0::2] /= width
boxes[:, 1::2] /= height
labels = np.expand_dims(labels,1)
targets = np.hstack((boxes,labels))
return img, targets
def pull_tensor(self, index):
'''Returns the original image at an index in tensor form
Note: not using self.__getitem__(), as any transformations passed in
could mess up this functionality.
Argument:
index (int): index of img to show
Return:
tensorized version of img, squeezed
'''
to_tensor = transforms.ToTensor()
return torch.Tensor(self.pull_image(index)).unsqueeze_(0)
def evaluate_detections(self, all_boxes, output_dir=None):
"""
all_boxes is a list of length number-of-classes.
Each list element is a list of length number-of-images.
Each of those list elements is either an empty list []
or a numpy array of detection.
all_boxes[class][image] = [] or np.array of shape #dets x 5
"""
self._write_voc_results_file(all_boxes)
aps,map = self._do_python_eval(output_dir)
return aps,map
def _get_voc_results_file_template(self):
filename = 'comp4_det_test' + '_{:s}.txt'
filedir = os.path.join(
self.root, 'results', 'VOC' + self._year, 'Main')
if not os.path.exists(filedir):
os.makedirs(filedir)
path = os.path.join(filedir, filename)
return path
def _write_voc_results_file(self, all_boxes):
for cls_ind, cls in enumerate(VOC_CLASSES):
cls_ind = cls_ind
if cls == '__background__':
continue
print('Writing {} VOC results file'.format(cls))
filename = self._get_voc_results_file_template().format(cls)
with open(filename, 'wt') as f:
for im_ind, index in enumerate(self.ids):
index = index[1]
dets = all_boxes[cls_ind][im_ind]
if dets == []:
continue
for k in range(dets.shape[0]):
f.write('{:s} {:.3f} {:.1f} {:.1f} {:.1f} {:.1f}\n'.
format(index, dets[k, -1],
dets[k, 0] + 1, dets[k, 1] + 1,
dets[k, 2] + 1, dets[k, 3] + 1))
def _do_python_eval(self, output_dir='output'):
rootpath = os.path.join(self.root, 'VOC' + self._year)
name = self.image_set[0][1]
annopath = os.path.join(
rootpath,
'Annotations',
'{:s}.xml')
imagesetfile = os.path.join(
rootpath,
'ImageSets',
'Main',
name+'.txt')
cachedir = os.path.join(self.root, 'annotations_cache')
aps = []
# The PASCAL VOC metric changed in 2010
use_07_metric = True if int(self._year) < 2010 else False
print('VOC07 metric? ' + ('Yes' if use_07_metric else 'No'))
if output_dir is not None and not os.path.isdir(output_dir):
os.mkdir(output_dir)
detDB = {}
for i, cls in enumerate(VOC_CLASSES):
if cls == '__background__':
continue
filename = self._get_voc_results_file_template().format(cls)
detfile = filename.format(cls)
with open(detfile, 'r') as f:
lines = f.readlines()
splitlines = [x.strip().split(' ') for x in lines]
image_ids = [x[0] for x in splitlines]
confidence = np.array([float(x[1]) for x in splitlines])
BB = np.array([[float(z) for z in x[2:]] for x in splitlines])
for j in range(len(image_ids)):
im_loc = image_ids[j]
conf_loc = confidence[j]
bb_loc = BB[j, :]
if im_loc not in detDB:
detDB[im_loc] = []
bb_entry = [conf_loc, int(cls), bb_loc[0], bb_loc[1], bb_loc[2], bb_loc[3]] #confidence, class, xmin, ymin, xmax, ymax
detDB[im_loc].append(bb_entry)
with open(imagesetfile, 'r') as f:
lines = f.readlines()
imagenames = [x.strip() for x in lines]
total = 0
suc = 0
for im in imagenames:#foreach image
if im not in detDB:
print("No detections for image", im)
continue
bbDB = sorted(detDB[im], key=itemgetter(0), reverse=True)
bestBB = bbDB[0]
gtbbs = self.parse_rec(annopath.format(im))
max_iou = self.calc_max_iou(bestBB, gtbbs)
total += 1
if max_iou > 0.25:
suc += 1
if total % 100 == 0:
print(suc, total, suc/total)
acc = suc / total
print("FINAL ACCURACY", acc)
return acc, acc
def bb_to_corners(self, bb, angle_classes = 19):
corners = np.zeros((4, 2))
x = (bb[4] + bb[2]) / 2.0
y = (bb[5] + bb[3]) / 2.0
width = bb[4] - bb[2]
height = bb[5] - bb[3]
angle = (bb[1] - 1) / angle_classes * np.pi
corners = np.zeros((4, 2));
corners[0, 0] = -width / 2;
corners[0, 1] = height / 2;
corners[1, 0] = width / 2;
corners[1, 1] = height / 2;
corners[2, 0] = width / 2;
corners[2, 1] = -height / 2;
corners[3, 0] = -width / 2;
corners[3, 1] = -height / 2;
rot = [[np.cos(angle), np.sin(angle)], [-np.sin(angle), np.cos(angle)]]
corners = np.dot(corners, rot)
corners = corners + np.array([x, y])
return corners, angle
def calc_max_iou(self, bb, gtbbs, visualize=False):
max_iou = 0
corners1, angle1 = self.bb_to_corners(bb)
if visualize:
img = np.zeros((1024, 1024, 3), np.uint8)
self.cv2corners(img, corners1, color=(0, 255, 0))
for i in range(len(gtbbs)):
gtbb = gtbbs[i]
gtbb = [1, int(gtbb['name']), gtbb['bbox'][0], gtbb['bbox'][1], gtbb['bbox'][2], gtbb['bbox'][3]]
corners2, angle2 = self.bb_to_corners(gtbb)
if visualize:
self.cv2corners(img, corners2)
if abs(angle2 - angle1) > np.pi / 6:
continue
iou = self.calc_iou(corners1, corners2)
max_iou = max(iou, max_iou)
if visualize:
print(max_iou)
cv2.imshow('result', img)
cv2.waitKey(0)
return max_iou
def calc_iou(self, corners1, corners2):
rr1, cc1 = polygon(corners1[:, 0], corners1[:, 1])
rr2, cc2 = polygon(corners2[:, 0], corners2[:, 1])
try:
r_max = max(rr1.max(), rr2.max()) + 1
c_max = max(cc1.max(), cc2.max()) + 1
except:
return 0
canvas = np.zeros((r_max, c_max))
canvas[rr1, cc1] += 1
canvas[rr2, cc2] += 1
union = np.sum(canvas > 0)
if union == 0:
return 0
intersection = np.sum(canvas == 2)
return intersection * 1.0 / union
def cv2corners(self, img, corners, color=(255, 0, 0)):
for i in range(4):
nextI = (i + 1) % 4
c1 = (int(corners[i, 0]), int(corners[i, 1]))
c2 = (int(corners[nextI, 0]), int(corners[nextI, 1]))
cv2.line(img, c1, c2, color, 3)
def parse_rec(self, filename):
""" Parse a PASCAL VOC xml file """
tree = ET.parse(filename)
objects = []
for obj in tree.findall('object'):
obj_struct = {}
obj_struct['name'] = obj.find('name').text
# obj_struct['pose'] = obj.find('pose').text
obj_struct['truncated'] = int(obj.find('truncated').text)
obj_struct['difficult'] = int(obj.find('difficult').text)
bbox = obj.find('bndbox')
obj_struct['bbox'] = [int(bbox.find('xmin').text),
int(bbox.find('ymin').text),
int(bbox.find('xmax').text),
int(bbox.find('ymax').text)]
objects.append(obj_struct)
return objects
def show(self, index):
img, target = self.__getitem__(index)
for obj in target:
obj = obj.astype(np.int)
cv2.rectangle(img, (obj[0], obj[1]), (obj[2], obj[3]), (255,0,0), 3)
cv2.imwrite('./image.jpg', img)
## test
# if __name__ == '__main__':
# ds = VOCDetection('../../../../../dataset/VOCdevkit/', [('2012', 'train')],
# None, AnnotationTransform())
# print(len(ds))
# img, target = ds[0]
# print(target)
# ds.show(1) | [
11748,
28686,
198,
11748,
2298,
293,
198,
11748,
28686,
13,
6978,
198,
11748,
25064,
198,
11748,
28034,
198,
11748,
28034,
13,
26791,
13,
7890,
355,
1366,
198,
11748,
28034,
10178,
13,
7645,
23914,
355,
31408,
198,
6738,
350,
4146,
1330,
7412,
11,
7412,
25302,
11,
7412,
23252,
198,
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
10088,
1330,
2378,
1136,
353,
198,
6738,
1341,
9060,
13,
19334,
1330,
7514,
14520,
198,
198,
361,
25064,
13,
9641,
62,
10951,
58,
15,
60,
6624,
362,
25,
198,
220,
220,
220,
1330,
35555,
13,
316,
631,
13,
66,
20180,
27660,
355,
12152,
198,
17772,
25,
198,
220,
220,
220,
1330,
35555,
13,
316,
631,
13,
20180,
27660,
355,
12152,
628,
198,
53,
4503,
62,
31631,
1546,
796,
357,
705,
834,
25249,
834,
3256,
1303,
1464,
6376,
657,
198,
220,
220,
220,
705,
25534,
20106,
1531,
3256,
705,
65,
35298,
3256,
705,
16944,
3256,
705,
24482,
3256,
198,
220,
220,
220,
705,
10985,
293,
3256,
705,
10885,
3256,
705,
7718,
3256,
705,
9246,
3256,
705,
16337,
3256,
198,
220,
220,
220,
705,
8232,
3256,
705,
67,
3191,
11487,
3256,
705,
9703,
3256,
705,
30527,
3256,
198,
220,
220,
220,
705,
76,
20965,
32256,
3256,
705,
6259,
3256,
705,
79,
8426,
15060,
3256,
198,
220,
220,
220,
705,
7091,
538,
3256,
705,
568,
13331,
3256,
705,
27432,
3256,
705,
14981,
41143,
11537,
198,
198,
53,
4503,
62,
31631,
1546,
796,
357,
705,
834,
25249,
834,
3256,
705,
16,
3256,
705,
17,
3256,
705,
18,
3256,
705,
19,
3256,
705,
20,
3256,
705,
21,
3256,
705,
22,
3256,
705,
23,
3256,
705,
24,
3256,
705,
940,
3256,
705,
1157,
3256,
705,
1065,
3256,
705,
1485,
3256,
705,
1415,
3256,
705,
1314,
3256,
705,
1433,
3256,
705,
1558,
3256,
705,
1507,
3256,
705,
1129,
3256,
705,
1238,
11537,
198,
198,
2,
329,
1642,
5421,
278,
10559,
2495,
198,
25154,
20673,
796,
14808,
13381,
11,
657,
11,
657,
11,
13108,
828,
357,
15,
11,
14280,
11,
657,
11,
13108,
828,
357,
15,
11,
657,
11,
14280,
11,
13108,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
15,
11,
14280,
11,
14280,
11,
13108,
828,
357,
13381,
11,
657,
11,
14280,
11,
13108,
828,
357,
13381,
11,
14280,
11,
657,
11,
13108,
4008,
628,
198,
4871,
1052,
38983,
41762,
7,
15252,
2599,
628,
220,
220,
220,
37227,
8291,
23914,
257,
569,
4503,
23025,
656,
257,
309,
22854,
286,
275,
3524,
763,
3669,
290,
6167,
6376,
198,
220,
220,
220,
44707,
346,
1143,
351,
257,
22155,
35847,
286,
1398,
14933,
284,
39199,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1398,
62,
1462,
62,
521,
357,
11600,
11,
11902,
2599,
22155,
35847,
286,
1398,
14933,
4613,
39199,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
12286,
25,
435,
746,
33312,
6376,
278,
286,
569,
4503,
338,
1160,
6097,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1394,
62,
26069,
2249,
357,
30388,
11,
11902,
2599,
1394,
2408,
10245,
393,
407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
12286,
25,
10352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
357,
600,
2599,
6001,
198,
220,
220,
220,
220,
220,
220,
220,
9647,
357,
600,
2599,
9647,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1398,
62,
1462,
62,
521,
28,
14202,
11,
1394,
62,
26069,
2249,
28,
17821,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4871,
62,
1462,
62,
521,
796,
1398,
62,
1462,
62,
521,
393,
8633,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19974,
7,
53,
4503,
62,
31631,
1546,
11,
2837,
7,
11925,
7,
53,
4503,
62,
31631,
1546,
35514,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14894,
62,
26069,
2249,
796,
1394,
62,
26069,
2249,
628,
220,
220,
220,
825,
11593,
13345,
834,
7,
944,
11,
2496,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
357,
1236,
14221,
8,
1058,
262,
2496,
23025,
284,
307,
925,
24284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
481,
307,
281,
12152,
13,
20180,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
1351,
7268,
8341,
286,
5421,
278,
10559,
220,
685,
65,
3524,
763,
3669,
11,
1398,
1438,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
581,
796,
45941,
13,
28920,
19510,
15,
11,
20,
4008,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
26181,
287,
2496,
13,
2676,
10786,
15252,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2408,
796,
493,
7,
26801,
13,
19796,
10786,
26069,
2249,
27691,
5239,
8,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
14894,
62,
26069,
2249,
290,
2408,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
26181,
13,
19796,
10786,
3672,
27691,
5239,
13,
21037,
22446,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
3524,
796,
26181,
13,
19796,
10786,
65,
358,
3524,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43344,
796,
37250,
87,
1084,
3256,
705,
88,
1084,
3256,
705,
87,
9806,
3256,
705,
4948,
897,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
358,
3524,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
42975,
287,
27056,
378,
7,
457,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
62,
457,
796,
493,
7,
65,
3524,
13,
19796,
7,
457,
737,
5239,
8,
532,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5046,
6001,
393,
9647,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
22019,
62,
457,
796,
1090,
62,
457,
1220,
9647,
611,
1312,
4064,
362,
6624,
657,
2073,
1090,
62,
457,
1220,
6001,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
358,
3524,
13,
33295,
7,
22019,
62,
457,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
62,
312,
87,
796,
2116,
13,
4871,
62,
1462,
62,
521,
58,
3672,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
358,
3524,
13,
33295,
7,
18242,
62,
312,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
796,
45941,
13,
85,
25558,
19510,
411,
11,
65,
358,
3524,
4008,
220,
1303,
685,
87,
1084,
11,
331,
1084,
11,
2124,
9806,
11,
331,
9806,
11,
6167,
62,
521,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
33705,
62,
312,
796,
2496,
13,
19796,
10786,
34345,
27691,
5239,
58,
21912,
19,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
581,
220,
1303,
16410,
87,
1084,
11,
331,
1084,
11,
2124,
9806,
11,
331,
9806,
11,
6167,
62,
521,
4357,
2644,
2361,
628,
198,
4871,
449,
2246,
10917,
9795,
11242,
3213,
7,
7890,
13,
27354,
292,
316,
2599,
628,
220,
220,
220,
37227,
53,
4503,
46254,
16092,
292,
316,
9515,
628,
220,
220,
220,
5128,
318,
2939,
11,
2496,
318,
23025,
628,
220,
220,
220,
20559,
2886,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6808,
357,
8841,
2599,
2393,
6978,
284,
569,
4503,
7959,
15813,
9483,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
2617,
357,
8841,
2599,
4263,
316,
284,
779,
357,
1533,
13,
705,
27432,
3256,
705,
2100,
3256,
705,
9288,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6121,
357,
13345,
540,
11,
11902,
2599,
13389,
284,
1620,
319,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5128,
2939,
198,
220,
220,
220,
220,
220,
220,
220,
2496,
62,
35636,
357,
13345,
540,
11,
11902,
2599,
13389,
284,
1620,
319,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
4600,
1236,
14221,
63,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
1533,
25,
1011,
287,
8305,
4731,
11,
1441,
11192,
273,
286,
1573,
36525,
8,
198,
220,
220,
220,
220,
220,
220,
220,
27039,
62,
3672,
357,
8841,
11,
11902,
2599,
543,
27039,
284,
3440,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
12286,
25,
705,
53,
4503,
12726,
11537,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
6808,
11,
2939,
62,
28709,
11,
662,
36942,
28,
14202,
11,
2496,
62,
35636,
28,
2025,
38983,
41762,
22784,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27039,
62,
3672,
11639,
53,
4503,
2998,
1065,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15763,
796,
6808,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9060,
62,
2617,
796,
2939,
62,
28709,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3866,
36942,
796,
662,
36942,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16793,
62,
35636,
796,
2496,
62,
35636,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3672,
796,
27039,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
1236,
18569,
796,
28686,
13,
6978,
13,
22179,
10786,
4,
82,
3256,
705,
2025,
30078,
3256,
705,
4,
82,
13,
19875,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9600,
6978,
796,
28686,
13,
6978,
13,
22179,
10786,
4,
82,
3256,
705,
12889,
7156,
29398,
3256,
705,
4,
82,
13,
9479,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2340,
796,
1351,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
1941,
11,
1438,
8,
287,
2939,
62,
28709,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
1941,
796,
614,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6808,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
15763,
11,
705,
53,
4503,
6,
1343,
614,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
1280,
7,
418,
13,
6978,
13,
22179,
7,
15763,
6978,
11,
705,
5159,
50,
1039,
3256,
705,
13383,
3256,
1438,
1343,
45302,
14116,
11537,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2340,
13,
33295,
19510,
15763,
6978,
11,
1627,
13,
36311,
3419,
4008,
628,
220,
220,
220,
825,
11593,
1136,
9186,
834,
7,
944,
11,
6376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
312,
796,
2116,
13,
2340,
58,
9630,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2496,
796,
12152,
13,
29572,
7,
944,
13557,
1236,
18569,
4064,
33705,
62,
312,
737,
1136,
15763,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
796,
269,
85,
17,
13,
320,
961,
7,
944,
13557,
9600,
6978,
4064,
33705,
62,
312,
11,
269,
85,
17,
13,
3955,
15675,
62,
46786,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
11,
9647,
11,
4808,
796,
33705,
13,
43358,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
16793,
62,
35636,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
796,
2116,
13,
16793,
62,
35636,
7,
16793,
8,
628,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
3866,
36942,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
11,
2496,
796,
2116,
13,
3866,
36942,
7,
9600,
11,
2496,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
7,
9600,
13,
7857,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2496,
796,
2116,
13,
16793,
62,
35636,
7,
16793,
11,
9647,
11,
6001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
7,
16793,
13,
43358,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
33705,
11,
2496,
628,
220,
220,
220,
825,
11593,
11925,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
18896,
7,
944,
13,
2340,
8,
628,
220,
220,
220,
825,
2834,
62,
9060,
7,
944,
11,
6376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
35561,
262,
2656,
2939,
2134,
379,
6376,
287,
350,
4146,
1296,
628,
220,
220,
220,
220,
220,
220,
220,
5740,
25,
407,
1262,
2116,
13,
834,
1136,
9186,
834,
22784,
355,
597,
38226,
3804,
287,
198,
220,
220,
220,
220,
220,
220,
220,
714,
2085,
510,
428,
11244,
13,
628,
220,
220,
220,
220,
220,
220,
220,
45751,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
357,
600,
2599,
6376,
286,
33705,
284,
905,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
350,
4146,
33705,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
312,
796,
2116,
13,
2340,
58,
9630,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
269,
85,
17,
13,
320,
961,
7,
944,
13557,
9600,
6978,
4064,
33705,
62,
312,
11,
269,
85,
17,
13,
3955,
15675,
62,
46786,
8,
628,
220,
220,
220,
825,
2834,
62,
1236,
78,
7,
944,
11,
6376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
35561,
262,
2656,
23025,
286,
2939,
379,
6376,
628,
220,
220,
220,
220,
220,
220,
220,
5740,
25,
407,
1262,
2116,
13,
834,
1136,
9186,
834,
22784,
355,
597,
38226,
3804,
287,
198,
220,
220,
220,
220,
220,
220,
220,
714,
2085,
510,
428,
11244,
13,
628,
220,
220,
220,
220,
220,
220,
220,
45751,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
357,
600,
2599,
6376,
286,
33705,
284,
651,
23025,
286,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
25,
220,
685,
9600,
62,
312,
11,
47527,
18242,
11,
275,
3524,
763,
3669,
828,
986,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29206,
25,
19203,
405,
1558,
1507,
3256,
685,
10786,
9703,
3256,
357,
4846,
11,
1511,
11,
604,
2548,
11,
41423,
4008,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
312,
796,
2116,
13,
2340,
58,
9630,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1529,
78,
796,
12152,
13,
29572,
7,
944,
13557,
1236,
18569,
4064,
33705,
62,
312,
737,
1136,
15763,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
308,
83,
796,
2116,
13,
16793,
62,
35636,
7,
1236,
78,
11,
352,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
308,
83,
796,
2116,
13,
16793,
62,
35636,
7,
1236,
78,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1441,
33705,
62,
312,
58,
16,
4357,
308,
83,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
16793,
62,
35636,
318,
407,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1529,
78,
796,
2116,
13,
16793,
62,
35636,
7,
1236,
78,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1529,
78,
198,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
825,
2834,
62,
9600,
62,
1236,
78,
7,
944,
11,
6376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
35561,
262,
2656,
23025,
286,
2939,
379,
6376,
628,
220,
220,
220,
220,
220,
220,
220,
5740,
25,
407,
1262,
2116,
13,
834,
1136,
9186,
834,
22784,
355,
597,
38226,
3804,
287,
198,
220,
220,
220,
220,
220,
220,
220,
714,
2085,
510,
428,
11244,
13,
628,
220,
220,
220,
220,
220,
220,
220,
45751,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
357,
600,
2599,
6376,
286,
33705,
284,
651,
23025,
286,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
25,
220,
685,
9600,
62,
312,
11,
47527,
18242,
11,
275,
3524,
763,
3669,
828,
986,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29206,
25,
19203,
405,
1558,
1507,
3256,
685,
10786,
9703,
3256,
357,
4846,
11,
1511,
11,
604,
2548,
11,
41423,
4008,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
62,
312,
796,
2116,
13,
2340,
58,
9630,
60,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
796,
269,
85,
17,
13,
320,
961,
7,
944,
13557,
9600,
6978,
4064,
33705,
62,
312,
11,
269,
85,
17,
13,
3955,
15675,
62,
46786,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1529,
78,
796,
12152,
13,
29572,
7,
944,
13557,
1236,
18569,
4064,
33705,
62,
312,
737,
1136,
15763,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
308,
83,
796,
2116,
13,
16793,
62,
35636,
7,
1236,
78,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
11,
9647,
11,
4808,
796,
33705,
13,
43358,
198,
220,
220,
220,
220,
220,
220,
220,
10559,
796,
308,
83,
58,
45299,
21912,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
14722,
796,
308,
83,
58,
25,
12095,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
10559,
58,
45299,
657,
3712,
17,
60,
1220,
28,
9647,
198,
220,
220,
220,
220,
220,
220,
220,
10559,
58,
45299,
352,
3712,
17,
60,
1220,
28,
6001,
198,
220,
220,
220,
220,
220,
220,
220,
14722,
796,
45941,
13,
11201,
392,
62,
67,
12078,
7,
23912,
1424,
11,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6670,
796,
45941,
13,
71,
25558,
19510,
29305,
11,
23912,
1424,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
33705,
11,
6670,
628,
220,
220,
220,
825,
2834,
62,
83,
22854,
7,
944,
11,
6376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
35561,
262,
2656,
2939,
379,
281,
6376,
287,
11192,
273,
1296,
628,
220,
220,
220,
220,
220,
220,
220,
5740,
25,
407,
1262,
2116,
13,
834,
1136,
9186,
834,
22784,
355,
597,
38226,
3804,
287,
198,
220,
220,
220,
220,
220,
220,
220,
714,
2085,
510,
428,
11244,
13,
628,
220,
220,
220,
220,
220,
220,
220,
45751,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
357,
600,
2599,
6376,
286,
33705,
284,
905,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11192,
273,
1143,
2196,
286,
33705,
11,
29650,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
284,
62,
83,
22854,
796,
31408,
13,
2514,
51,
22854,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
28034,
13,
51,
22854,
7,
944,
13,
31216,
62,
9060,
7,
9630,
29720,
13271,
421,
1453,
2736,
41052,
15,
8,
628,
220,
220,
220,
825,
13446,
62,
15255,
478,
507,
7,
944,
11,
477,
62,
29305,
11,
5072,
62,
15908,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
29305,
318,
257,
1351,
286,
4129,
1271,
12,
1659,
12,
37724,
13,
198,
220,
220,
220,
220,
220,
220,
220,
5501,
1351,
5002,
318,
257,
1351,
286,
4129,
1271,
12,
1659,
12,
17566,
13,
198,
220,
220,
220,
220,
220,
220,
220,
5501,
286,
883,
1351,
4847,
318,
2035,
281,
6565,
1351,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
393,
257,
299,
32152,
7177,
286,
13326,
13,
628,
220,
220,
220,
220,
220,
220,
220,
477,
62,
29305,
58,
4871,
7131,
9060,
60,
796,
17635,
393,
45941,
13,
18747,
286,
5485,
1303,
67,
1039,
2124,
642,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
13564,
62,
18893,
62,
43420,
62,
7753,
7,
439,
62,
29305,
8,
198,
220,
220,
220,
220,
220,
220,
220,
257,
862,
11,
8899,
796,
2116,
13557,
4598,
62,
29412,
62,
18206,
7,
22915,
62,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
257,
862,
11,
8899,
628,
220,
220,
220,
825,
4808,
1136,
62,
18893,
62,
43420,
62,
7753,
62,
28243,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
796,
705,
5589,
19,
62,
15255,
62,
9288,
6,
1343,
705,
23330,
25,
82,
27422,
14116,
6,
198,
220,
220,
220,
220,
220,
220,
220,
5717,
343,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15763,
11,
705,
43420,
3256,
705,
53,
4503,
6,
1343,
2116,
13557,
1941,
11,
705,
13383,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
69,
3902,
343,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
69,
3902,
343,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
796,
28686,
13,
6978,
13,
22179,
7,
69,
3902,
343,
11,
29472,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
3108,
628,
220,
220,
220,
825,
4808,
13564,
62,
18893,
62,
43420,
62,
7753,
7,
944,
11,
477,
62,
29305,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
537,
82,
62,
521,
11,
537,
82,
287,
27056,
378,
7,
53,
4503,
62,
31631,
1546,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
537,
82,
62,
521,
796,
537,
82,
62,
521,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
537,
82,
6624,
705,
834,
25249,
834,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
33874,
23884,
569,
4503,
2482,
2393,
4458,
18982,
7,
565,
82,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29472,
796,
2116,
13557,
1136,
62,
18893,
62,
43420,
62,
7753,
62,
28243,
22446,
18982,
7,
565,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
34345,
11,
705,
46569,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
545,
62,
521,
11,
6376,
287,
27056,
378,
7,
944,
13,
2340,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
796,
6376,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
1039,
796,
477,
62,
29305,
58,
565,
82,
62,
521,
7131,
320,
62,
521,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
288,
1039,
6624,
685,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
2837,
7,
67,
1039,
13,
43358,
58,
15,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
10786,
90,
25,
82,
92,
46110,
13,
18,
69,
92,
46110,
13,
16,
69,
92,
46110,
13,
16,
69,
92,
46110,
13,
16,
69,
92,
46110,
13,
16,
69,
32239,
77,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5794,
7,
9630,
11,
288,
1039,
58,
74,
11,
532,
16,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
1039,
58,
74,
11,
657,
60,
1343,
352,
11,
288,
1039,
58,
74,
11,
352,
60,
1343,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
1039,
58,
74,
11,
362,
60,
1343,
352,
11,
288,
1039,
58,
74,
11,
513,
60,
1343,
352,
4008,
628,
220,
220,
220,
825,
4808,
4598,
62,
29412,
62,
18206,
7,
944,
11,
5072,
62,
15908,
11639,
22915,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
6808,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
15763,
11,
705,
53,
4503,
6,
1343,
2116,
13557,
1941,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
2116,
13,
9060,
62,
2617,
58,
15,
7131,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1529,
18569,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6808,
6978,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2025,
30078,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
90,
25,
82,
27422,
19875,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
4263,
316,
7753,
796,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6808,
6978,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5159,
50,
1039,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
13383,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
10,
4458,
14116,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
39986,
343,
796,
28686,
13,
6978,
13,
22179,
7,
944,
13,
15763,
11,
705,
34574,
602,
62,
23870,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
257,
862,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
383,
350,
42643,
1847,
569,
4503,
18663,
3421,
287,
3050,
198,
220,
220,
220,
220,
220,
220,
220,
779,
62,
2998,
62,
4164,
1173,
796,
6407,
611,
493,
7,
944,
13557,
1941,
8,
1279,
3050,
2073,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
53,
4503,
2998,
18663,
30,
705,
1343,
19203,
5297,
6,
611,
779,
62,
2998,
62,
4164,
1173,
2073,
705,
2949,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5072,
62,
15908,
318,
407,
6045,
290,
407,
28686,
13,
6978,
13,
9409,
343,
7,
22915,
62,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
28015,
15908,
7,
22915,
62,
15908,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1062,
11012,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
537,
82,
287,
27056,
378,
7,
53,
4503,
62,
31631,
1546,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
537,
82,
6624,
705,
834,
25249,
834,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29472,
796,
2116,
13557,
1136,
62,
18893,
62,
43420,
62,
7753,
62,
28243,
22446,
18982,
7,
565,
82,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1062,
7753,
796,
29472,
13,
18982,
7,
565,
82,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
15255,
7753,
11,
705,
81,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
277,
13,
961,
6615,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6626,
6615,
796,
685,
87,
13,
36311,
22446,
35312,
10786,
705,
8,
329,
2124,
287,
3951,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
2340,
796,
685,
87,
58,
15,
60,
329,
2124,
287,
6626,
6615,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6628,
796,
45941,
13,
18747,
26933,
22468,
7,
87,
58,
16,
12962,
329,
2124,
287,
6626,
6615,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12597,
796,
45941,
13,
18747,
26933,
58,
22468,
7,
89,
8,
329,
1976,
287,
2124,
58,
17,
25,
11907,
329,
2124,
287,
6626,
6615,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
2837,
7,
11925,
7,
9060,
62,
2340,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
545,
62,
17946,
796,
2939,
62,
2340,
58,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1013,
62,
17946,
796,
6628,
58,
73,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
65,
62,
17946,
796,
12597,
58,
73,
11,
1058,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
545,
62,
17946,
407,
287,
1062,
11012,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1062,
11012,
58,
320,
62,
17946,
60,
796,
17635,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
65,
62,
13000,
796,
685,
10414,
62,
17946,
11,
493,
7,
565,
82,
828,
275,
65,
62,
17946,
58,
15,
4357,
275,
65,
62,
17946,
58,
16,
4357,
275,
65,
62,
17946,
58,
17,
4357,
275,
65,
62,
17946,
58,
18,
11907,
1303,
39745,
11,
1398,
11,
2124,
1084,
11,
331,
1084,
11,
2124,
9806,
11,
331,
9806,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1062,
11012,
58,
320,
62,
17946,
4083,
33295,
7,
11848,
62,
13000,
8,
628,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
17566,
316,
7753,
11,
705,
81,
11537,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
277,
13,
961,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3590,
268,
1047,
796,
685,
87,
13,
36311,
3419,
329,
2124,
287,
3951,
60,
628,
220,
220,
220,
220,
220,
220,
220,
2472,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
6522,
796,
657,
628,
220,
220,
220,
220,
220,
220,
220,
329,
545,
287,
3590,
268,
1047,
43922,
754,
620,
2939,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
545,
407,
287,
1062,
11012,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
2949,
4886,
507,
329,
2939,
1600,
545,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
65,
11012,
796,
23243,
7,
15255,
11012,
58,
320,
4357,
1994,
28,
9186,
1136,
353,
7,
15,
828,
9575,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1266,
15199,
796,
275,
65,
11012,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
83,
65,
1443,
796,
2116,
13,
29572,
62,
8344,
7,
1236,
18569,
13,
18982,
7,
320,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
72,
280,
796,
2116,
13,
9948,
66,
62,
9806,
62,
72,
280,
7,
13466,
15199,
11,
308,
83,
65,
1443,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2472,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3509,
62,
72,
280,
1875,
657,
13,
1495,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6522,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2472,
4064,
1802,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
82,
1229,
11,
2472,
11,
6522,
14,
23350,
8,
628,
220,
220,
220,
220,
220,
220,
220,
697,
796,
6522,
1220,
2472,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
37,
17961,
15859,
4261,
43300,
1600,
697,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
697,
11,
697,
628,
220,
220,
220,
825,
275,
65,
62,
1462,
62,
20772,
364,
7,
944,
11,
275,
65,
11,
9848,
62,
37724,
796,
678,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
796,
45941,
13,
9107,
418,
19510,
19,
11,
362,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
357,
11848,
58,
19,
60,
1343,
275,
65,
58,
17,
12962,
1220,
362,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
331,
796,
357,
11848,
58,
20,
60,
1343,
275,
65,
58,
18,
12962,
1220,
362,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
9647,
796,
275,
65,
58,
19,
60,
532,
275,
65,
58,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
796,
275,
65,
58,
20,
60,
532,
275,
65,
58,
18,
60,
198,
220,
220,
220,
220,
220,
220,
220,
9848,
796,
357,
11848,
58,
16,
60,
532,
352,
8,
1220,
9848,
62,
37724,
1635,
45941,
13,
14415,
628,
220,
220,
220,
220,
220,
220,
220,
14371,
796,
45941,
13,
9107,
418,
19510,
19,
11,
362,
18125,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
15,
11,
657,
60,
796,
532,
10394,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
15,
11,
352,
60,
796,
6001,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
16,
11,
657,
60,
796,
9647,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
16,
11,
352,
60,
796,
6001,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
17,
11,
657,
60,
796,
9647,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
17,
11,
352,
60,
796,
532,
17015,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
18,
11,
657,
60,
796,
532,
10394,
1220,
362,
26,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
58,
18,
11,
352,
60,
796,
532,
17015,
1220,
362,
26,
628,
220,
220,
220,
220,
220,
220,
220,
5724,
796,
16410,
37659,
13,
6966,
7,
9248,
828,
45941,
13,
31369,
7,
9248,
8,
4357,
25915,
37659,
13,
31369,
7,
9248,
828,
45941,
13,
6966,
7,
9248,
8,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
796,
45941,
13,
26518,
7,
20772,
364,
11,
5724,
8,
628,
220,
220,
220,
220,
220,
220,
220,
14371,
796,
14371,
1343,
45941,
13,
18747,
26933,
87,
11,
331,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
14371,
11,
9848,
628,
220,
220,
220,
825,
42302,
62,
9806,
62,
72,
280,
7,
944,
11,
275,
65,
11,
308,
83,
65,
1443,
11,
38350,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
72,
280,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
14371,
16,
11,
9848,
16,
796,
2116,
13,
11848,
62,
1462,
62,
20772,
364,
7,
11848,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
38350,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33705,
796,
45941,
13,
9107,
418,
19510,
35500,
11,
28119,
11,
513,
828,
45941,
13,
28611,
23,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33967,
17,
20772,
364,
7,
9600,
11,
14371,
16,
11,
3124,
16193,
15,
11,
14280,
11,
657,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
13655,
65,
1443,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
83,
11848,
796,
308,
83,
65,
1443,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
83,
11848,
796,
685,
16,
11,
493,
7,
13655,
11848,
17816,
3672,
20520,
828,
308,
83,
11848,
17816,
65,
3524,
6,
7131,
15,
4357,
308,
83,
11848,
17816,
65,
3524,
6,
7131,
16,
4357,
308,
83,
11848,
17816,
65,
3524,
6,
7131,
17,
4357,
308,
83,
11848,
17816,
65,
3524,
6,
7131,
18,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14371,
17,
11,
9848,
17,
796,
2116,
13,
11848,
62,
1462,
62,
20772,
364,
7,
13655,
11848,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
38350,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33967,
17,
20772,
364,
7,
9600,
11,
14371,
17,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2352,
7,
9248,
17,
532,
9848,
16,
8,
1875,
45941,
13,
14415,
1220,
718,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
280,
796,
2116,
13,
9948,
66,
62,
72,
280,
7,
20772,
364,
16,
11,
14371,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
62,
72,
280,
796,
3509,
7,
72,
280,
11,
3509,
62,
72,
280,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
38350,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
9806,
62,
72,
280,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
12860,
10786,
20274,
3256,
33705,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
17077,
9218,
7,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3509,
62,
72,
280,
628,
220,
220,
220,
825,
42302,
62,
72,
280,
7,
944,
11,
14371,
16,
11,
14371,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
374,
81,
16,
11,
36624,
16,
796,
7514,
14520,
7,
20772,
364,
16,
58,
45299,
657,
4357,
14371,
16,
58,
45299,
352,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
374,
81,
17,
11,
36624,
17,
796,
7514,
14520,
7,
20772,
364,
17,
58,
45299,
657,
4357,
14371,
17,
58,
45299,
352,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
62,
9806,
796,
3509,
7,
21062,
16,
13,
9806,
22784,
374,
81,
17,
13,
9806,
28955,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
62,
9806,
796,
3509,
7,
535,
16,
13,
9806,
22784,
36624,
17,
13,
9806,
28955,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
628,
220,
220,
220,
220,
220,
220,
220,
21978,
796,
45941,
13,
9107,
418,
19510,
81,
62,
9806,
11,
269,
62,
9806,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
21978,
58,
21062,
16,
11,
36624,
16,
60,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
21978,
58,
21062,
17,
11,
36624,
17,
60,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
6441,
796,
45941,
13,
16345,
7,
5171,
11017,
1875,
657,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6441,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
657,
198,
220,
220,
220,
220,
220,
220,
220,
16246,
796,
45941,
13,
16345,
7,
5171,
11017,
6624,
362,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
16246,
1635,
352,
13,
15,
1220,
6441,
628,
220,
220,
220,
825,
269,
85,
17,
20772,
364,
7,
944,
11,
33705,
11,
14371,
11,
3124,
16193,
13381,
11,
657,
11,
657,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
19,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1306,
40,
796,
357,
72,
1343,
352,
8,
4064,
604,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
16,
796,
357,
600,
7,
20772,
364,
58,
72,
11,
657,
46570,
493,
7,
20772,
364,
58,
72,
11,
352,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
17,
796,
357,
600,
7,
20772,
364,
58,
19545,
40,
11,
657,
46570,
493,
7,
20772,
364,
58,
19545,
40,
11,
352,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1370,
7,
9600,
11,
269,
16,
11,
269,
17,
11,
3124,
11,
513,
8,
628,
220,
220,
220,
825,
21136,
62,
8344,
7,
944,
11,
29472,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
2547,
325,
257,
350,
42643,
1847,
569,
4503,
35555,
2393,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5509,
796,
12152,
13,
29572,
7,
34345,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5563,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
26181,
287,
5509,
13,
19796,
439,
10786,
15252,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
7249,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
7249,
17816,
3672,
20520,
796,
26181,
13,
19796,
10786,
3672,
27691,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
26181,
62,
7249,
17816,
3455,
20520,
796,
26181,
13,
19796,
10786,
3455,
27691,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
7249,
17816,
2213,
19524,
515,
20520,
796,
493,
7,
26801,
13,
19796,
10786,
2213,
19524,
515,
27691,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
7249,
17816,
26069,
2249,
20520,
796,
493,
7,
26801,
13,
19796,
10786,
26069,
2249,
27691,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
275,
3524,
796,
26181,
13,
19796,
10786,
65,
358,
3524,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
7249,
17816,
65,
3524,
20520,
796,
685,
600,
7,
65,
3524,
13,
19796,
10786,
87,
1084,
27691,
5239,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
7,
65,
3524,
13,
19796,
10786,
88,
1084,
27691,
5239,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
7,
65,
3524,
13,
19796,
10786,
87,
9806,
27691,
5239,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
493,
7,
65,
3524,
13,
19796,
10786,
4948,
897,
27691,
5239,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5563,
13,
33295,
7,
26801,
62,
7249,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
5563,
628,
220,
220,
220,
825,
905,
7,
944,
11,
6376,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
33705,
11,
2496,
796,
2116,
13,
834,
1136,
9186,
834,
7,
9630,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
26181,
287,
2496,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
796,
26181,
13,
459,
2981,
7,
37659,
13,
600,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
2554,
9248,
7,
9600,
11,
357,
26801,
58,
15,
4357,
26181,
58,
16,
46570,
357,
26801,
58,
17,
4357,
26181,
58,
18,
46570,
357,
13381,
11,
15,
11,
15,
828,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
13564,
7,
4458,
14,
9060,
13,
9479,
3256,
33705,
8,
628,
628,
198,
2235,
1332,
198,
2,
611,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
2,
220,
220,
220,
220,
288,
82,
796,
569,
4503,
11242,
3213,
10786,
40720,
40720,
40720,
40720,
40720,
19608,
292,
316,
14,
53,
4503,
7959,
15813,
14,
3256,
685,
10786,
6999,
3256,
705,
27432,
11537,
4357,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6045,
11,
1052,
38983,
41762,
28955,
198,
2,
220,
220,
220,
220,
3601,
7,
11925,
7,
9310,
4008,
198,
2,
220,
220,
220,
220,
33705,
11,
2496,
796,
288,
82,
58,
15,
60,
198,
2,
220,
220,
220,
220,
3601,
7,
16793,
8,
198,
2,
220,
220,
220,
220,
288,
82,
13,
12860,
7,
16,
8
] | 1.99521 | 7,933 |
import cv2
import numpy as np
import imutils
import easyocr
from matplotlib import pyplot as plt
image = cv2.imread('images/license.jpg')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
image_filter = cv2.bilateralFilter(gray, 11, 15, 15)
edges = cv2.Canny(image_filter, 30, 200)
contours = cv2.findContours(edges.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
contours = imutils.grab_contours(contours)
contours = sorted(contours, key=cv2.contourArea, reverse=True)
position = None
for contour in contours:
approx = cv2.approxPolyDP(contour, 10, True)
number_of_edges = 4
if len(approx) == number_of_edges:
position = approx
break
mask = np.zeros(gray.shape, np.uint8)
new_image = cv2.drawContours(mask, [position], 0, 255, -1)
bitwise_image = cv2.bitwise_and(image, image, mask=mask)
x, y = np.where(mask == 255)
x1, y1 = np.min(x), np.min(y)
x2, y2 = np.max(x), np.max(y)
crop = gray[x1:x2, y1:y2]
text = easyocr.Reader(['en'])
text = text.readtext(crop)
result = text[0][-2]
final_image = cv2.putText(image, result, (x1, y2 + 60), cv2.FONT_HERSHEY_PLAIN, 3, (0, 0, 255), 1)
final_image = cv2.rectangle(image, (x1, x2), (y1, y2), (0, 255, 0), 1)
plt.imshow(cv2.cvtColor(final_image, cv2.COLOR_BGR2RGB))
plt.show()
| [
11748,
269,
85,
17,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
545,
26791,
198,
11748,
2562,
1696,
198,
6738,
2603,
29487,
8019,
1330,
12972,
29487,
355,
458,
83,
198,
198,
9060,
796,
269,
85,
17,
13,
320,
961,
10786,
17566,
14,
43085,
13,
9479,
11537,
198,
44605,
796,
269,
85,
17,
13,
33967,
83,
10258,
7,
9060,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
38,
30631,
8,
198,
198,
9060,
62,
24455,
796,
269,
85,
17,
13,
65,
14796,
22417,
7,
44605,
11,
1367,
11,
1315,
11,
1315,
8,
198,
276,
3212,
796,
269,
85,
17,
13,
34,
7737,
7,
9060,
62,
24455,
11,
1542,
11,
939,
8,
198,
198,
3642,
4662,
796,
269,
85,
17,
13,
19796,
4264,
4662,
7,
276,
3212,
13,
30073,
22784,
269,
85,
17,
13,
2200,
5446,
62,
51,
11587,
11,
269,
85,
17,
13,
3398,
29833,
62,
2969,
31190,
55,
62,
48913,
16437,
8,
198,
3642,
4662,
796,
545,
26791,
13,
32393,
62,
3642,
4662,
7,
3642,
4662,
8,
198,
3642,
4662,
796,
23243,
7,
3642,
4662,
11,
1994,
28,
33967,
17,
13,
3642,
454,
30547,
11,
9575,
28,
17821,
8,
198,
198,
9150,
796,
6045,
198,
1640,
542,
454,
287,
542,
4662,
25,
198,
220,
220,
220,
5561,
796,
269,
85,
17,
13,
1324,
13907,
34220,
6322,
7,
3642,
454,
11,
838,
11,
6407,
8,
198,
220,
220,
220,
1271,
62,
1659,
62,
276,
3212,
796,
604,
198,
220,
220,
220,
611,
18896,
7,
1324,
13907,
8,
6624,
1271,
62,
1659,
62,
276,
3212,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2292,
796,
5561,
198,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
198,
27932,
796,
45941,
13,
9107,
418,
7,
44605,
13,
43358,
11,
45941,
13,
28611,
23,
8,
198,
3605,
62,
9060,
796,
269,
85,
17,
13,
19334,
4264,
4662,
7,
27932,
11,
685,
9150,
4357,
657,
11,
14280,
11,
532,
16,
8,
198,
2545,
3083,
62,
9060,
796,
269,
85,
17,
13,
2545,
3083,
62,
392,
7,
9060,
11,
2939,
11,
9335,
28,
27932,
8,
198,
198,
87,
11,
331,
796,
45941,
13,
3003,
7,
27932,
6624,
14280,
8,
198,
87,
16,
11,
331,
16,
796,
45941,
13,
1084,
7,
87,
828,
45941,
13,
1084,
7,
88,
8,
198,
87,
17,
11,
331,
17,
796,
45941,
13,
9806,
7,
87,
828,
45941,
13,
9806,
7,
88,
8,
198,
31476,
796,
12768,
58,
87,
16,
25,
87,
17,
11,
331,
16,
25,
88,
17,
60,
198,
198,
5239,
796,
2562,
1696,
13,
33634,
7,
17816,
268,
6,
12962,
198,
5239,
796,
2420,
13,
961,
5239,
7,
31476,
8,
198,
198,
20274,
796,
2420,
58,
15,
7131,
12,
17,
60,
198,
20311,
62,
9060,
796,
269,
85,
17,
13,
1996,
8206,
7,
9060,
11,
1255,
11,
357,
87,
16,
11,
331,
17,
1343,
3126,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
6489,
29833,
11,
513,
11,
357,
15,
11,
657,
11,
14280,
828,
352,
8,
198,
20311,
62,
9060,
796,
269,
85,
17,
13,
2554,
9248,
7,
9060,
11,
357,
87,
16,
11,
2124,
17,
828,
357,
88,
16,
11,
331,
17,
828,
357,
15,
11,
14280,
11,
657,
828,
352,
8,
198,
198,
489,
83,
13,
320,
12860,
7,
33967,
17,
13,
33967,
83,
10258,
7,
20311,
62,
9060,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
36982,
4008,
198,
489,
83,
13,
12860,
3419,
198
] | 2.2 | 570 |
# Carlos Montes Parra
# A program that displays a number from the Fibonacci sequence. The position
# in the sequence is linked to the first and last letter of the user's name
# and the addition of their Unicode values.
# Adapted from one of Ian McLoughlin's lectures https://github.com/ianmcloughlin/python-fib/blob/master/fibname.py
def fib(n):
# This function returns the nth Fibonacci number
i = 0
j = 1
n = n - 1
while n >= 0:
i, j = j, i + j
n = n - 1
return i
name = "Montes"
first = name[0]
last = name[-1]
firstN = ord(first)
lastN = ord(last)
x = firstN + lastN
ans = fib(x)
print("My surname is", name)
print("The first letter", first, "is number", firstN)
print("The last letter", last, "is number", lastN)
print("Fibonacci number", x, "is", ans)
# SOLUTION
# My surname is Montes
# The first letter M is number 77
# The last letter s is number 115
# Fibonacci number 192 is 5972304273877744135569338397692020533504
# ord () is a python built-in function which returns the Unicode value linked to a one-character string. It's the opposite of chr() or unichr()
| [
2,
17409,
5575,
274,
2547,
430,
198,
198,
2,
317,
1430,
326,
11298,
257,
1271,
422,
262,
41566,
261,
44456,
8379,
13,
383,
2292,
220,
198,
2,
287,
262,
8379,
318,
6692,
284,
262,
717,
290,
938,
3850,
286,
262,
2836,
338,
1438,
198,
2,
290,
262,
3090,
286,
511,
34371,
3815,
13,
198,
198,
2,
30019,
276,
422,
530,
286,
12930,
18365,
619,
2815,
338,
25917,
3740,
1378,
12567,
13,
785,
14,
666,
76,
565,
619,
2815,
14,
29412,
12,
69,
571,
14,
2436,
672,
14,
9866,
14,
69,
571,
3672,
13,
9078,
198,
198,
4299,
12900,
7,
77,
2599,
198,
220,
1303,
770,
2163,
5860,
262,
299,
400,
41566,
261,
44456,
1271,
198,
220,
1312,
796,
657,
198,
220,
474,
796,
352,
198,
220,
299,
796,
299,
532,
352,
628,
220,
981,
299,
18189,
657,
25,
198,
220,
220,
220,
1312,
11,
474,
796,
474,
11,
1312,
1343,
474,
198,
220,
220,
220,
299,
796,
299,
532,
352,
198,
220,
220,
198,
220,
1441,
1312,
198,
198,
3672,
796,
366,
26031,
274,
1,
198,
11085,
796,
1438,
58,
15,
60,
198,
12957,
796,
1438,
58,
12,
16,
60,
198,
11085,
45,
796,
2760,
7,
11085,
8,
198,
12957,
45,
796,
2760,
7,
12957,
8,
198,
87,
796,
717,
45,
1343,
938,
45,
198,
198,
504,
796,
12900,
7,
87,
8,
198,
4798,
7203,
3666,
40358,
318,
1600,
1438,
8,
198,
4798,
7203,
464,
717,
3850,
1600,
717,
11,
366,
271,
1271,
1600,
717,
45,
8,
198,
4798,
7203,
464,
938,
3850,
1600,
938,
11,
366,
271,
1271,
1600,
938,
45,
8,
198,
4798,
7203,
37,
571,
261,
44456,
1271,
1600,
2124,
11,
366,
271,
1600,
9093,
8,
198,
198,
2,
36817,
35354,
198,
198,
2,
2011,
40358,
318,
5575,
274,
198,
198,
2,
383,
717,
3850,
337,
318,
1271,
8541,
198,
198,
2,
383,
938,
3850,
264,
318,
1271,
12279,
198,
198,
2,
41566,
261,
44456,
1271,
17817,
318,
7863,
4761,
21288,
1983,
2548,
29331,
2598,
1485,
2816,
3388,
28460,
33372,
3388,
1238,
21261,
2091,
33580,
220,
198,
198,
2,
2760,
7499,
318,
257,
21015,
3170,
12,
259,
2163,
543,
5860,
262,
34371,
1988,
6692,
284,
257,
530,
12,
22769,
4731,
13,
632,
338,
262,
6697,
286,
442,
81,
3419,
393,
555,
488,
81,
3419,
198
] | 2.931217 | 378 |
import os
import argparse
import numpy as np
import pandas as pd
TASK = "xflickrco"
LANGS = ['de', 'ja']
SHOTS = [200, 500, 1000, 1500, '100x5', '200x5']
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--models', type=str)
parser.add_argument('--exp_dir', type=str)
parser.add_argument('--version', type=str, default=None)
args = parser.parse_args()
version = f".{args.version}" if args.version is not None else ""
exp_dir = args.exp_dir + version
models = args.models.split(",")
for shot in SHOTS:
res_ir_df = pd.DataFrame(columns=['model']+LANGS)
res_tr_df = pd.DataFrame(columns=['model']+LANGS)
for model in models:
res_ir = dict()
res_tr = dict()
res_ir['model'] = model
res_tr['model'] = model
for lang in LANGS:
fn = os.path.join(exp_dir, model, TASK, lang, str(shot), f"test.out")
try:
lines = [l.strip() for l in open(fn).readlines() if l.startswith("Final")] #[-1]
ir1 = float(lines[-2].split()[1].split(",")[0].split(':')[1])
tr1 = float(lines[-1].split()[1].split(",")[0].split(':')[1])
res_ir[lang] = ir1
res_tr[lang] = tr1
except:
print(fn)
res_ir[lang] = -1.0
res_tr[lang] = -1.0
# avg_ir = np.mean([res_ir[lang] for lang in LANGS])
# avg_tr = np.mean([res_tr[lang] for lang in LANGS])
# res_ir['avg'] = avg_ir
# res_tr['avg'] = avg_tr
res_ir_df = res_ir_df.append(res_ir, ignore_index=True)
res_tr_df = res_tr_df.append(res_tr, ignore_index=True)
res_ir_df.to_csv(f"{TASK}/xFlickrCO-many_ir_{shot}{version}.csv", index=False)
res_tr_df.to_csv(f"{TASK}/xFlickrCO-many_tr_{shot}{version}.csv", index=False)
| [
11748,
28686,
198,
11748,
1822,
29572,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
198,
51,
1921,
42,
796,
366,
87,
2704,
18994,
1073,
1,
198,
25697,
14313,
796,
37250,
2934,
3256,
705,
6592,
20520,
198,
9693,
33472,
796,
685,
2167,
11,
5323,
11,
8576,
11,
20007,
11,
705,
3064,
87,
20,
3256,
705,
2167,
87,
20,
20520,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
30751,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
27530,
3256,
2099,
28,
2536,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
11201,
62,
15908,
3256,
2099,
28,
2536,
8,
198,
220,
220,
220,
30751,
13,
2860,
62,
49140,
10786,
438,
9641,
3256,
2099,
28,
2536,
11,
4277,
28,
14202,
8,
198,
220,
220,
220,
26498,
796,
30751,
13,
29572,
62,
22046,
3419,
628,
220,
220,
220,
2196,
796,
277,
1911,
90,
22046,
13,
9641,
36786,
611,
26498,
13,
9641,
318,
407,
6045,
2073,
13538,
198,
220,
220,
220,
1033,
62,
15908,
796,
26498,
13,
11201,
62,
15908,
1343,
2196,
628,
220,
220,
220,
4981,
796,
26498,
13,
27530,
13,
35312,
7,
2430,
8,
198,
220,
220,
220,
329,
2823,
287,
6006,
33472,
25,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
62,
7568,
796,
279,
67,
13,
6601,
19778,
7,
28665,
82,
28,
17816,
19849,
20520,
10,
25697,
14313,
8,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
62,
7568,
796,
279,
67,
13,
6601,
19778,
7,
28665,
82,
28,
17816,
19849,
20520,
10,
25697,
14313,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2746,
287,
4981,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
796,
8633,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
796,
8633,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
17816,
19849,
20520,
796,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
17816,
19849,
20520,
796,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
42392,
287,
24192,
14313,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24714,
796,
28686,
13,
6978,
13,
22179,
7,
11201,
62,
15908,
11,
2746,
11,
309,
1921,
42,
11,
42392,
11,
965,
7,
9442,
828,
277,
1,
9288,
13,
448,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
685,
75,
13,
36311,
3419,
329,
300,
287,
1280,
7,
22184,
737,
961,
6615,
3419,
611,
300,
13,
9688,
2032,
342,
7203,
19006,
4943,
60,
1303,
58,
12,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4173,
16,
796,
12178,
7,
6615,
58,
12,
17,
4083,
35312,
3419,
58,
16,
4083,
35312,
7,
2430,
38381,
15,
4083,
35312,
7,
10354,
11537,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
491,
16,
796,
12178,
7,
6615,
58,
12,
16,
4083,
35312,
3419,
58,
16,
4083,
35312,
7,
2430,
38381,
15,
4083,
35312,
7,
10354,
11537,
58,
16,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
58,
17204,
60,
796,
4173,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
58,
17204,
60,
796,
491,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
22184,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
58,
17204,
60,
796,
532,
16,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
58,
17204,
60,
796,
532,
16,
13,
15,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
42781,
62,
343,
796,
45941,
13,
32604,
26933,
411,
62,
343,
58,
17204,
60,
329,
42392,
287,
24192,
14313,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
42781,
62,
2213,
796,
45941,
13,
32604,
26933,
411,
62,
2213,
58,
17204,
60,
329,
42392,
287,
24192,
14313,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
581,
62,
343,
17816,
615,
70,
20520,
796,
42781,
62,
343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
581,
62,
2213,
17816,
615,
70,
20520,
796,
42781,
62,
2213,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
62,
7568,
796,
581,
62,
343,
62,
7568,
13,
33295,
7,
411,
62,
343,
11,
8856,
62,
9630,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
62,
7568,
796,
581,
62,
2213,
62,
7568,
13,
33295,
7,
411,
62,
2213,
11,
8856,
62,
9630,
28,
17821,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
343,
62,
7568,
13,
1462,
62,
40664,
7,
69,
1,
90,
51,
1921,
42,
92,
14,
87,
47250,
8220,
12,
21834,
62,
343,
23330,
9442,
18477,
9641,
27422,
40664,
1600,
6376,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
581,
62,
2213,
62,
7568,
13,
1462,
62,
40664,
7,
69,
1,
90,
51,
1921,
42,
92,
14,
87,
47250,
8220,
12,
21834,
62,
2213,
23330,
9442,
18477,
9641,
27422,
40664,
1600,
6376,
28,
25101,
8,
198
] | 1.899809 | 1,048 |
import matplotlib.pyplot as plt
import numpy as np
plt.plot(list(index for index, y in enumerate(get_coords())), list(y for y in get_coords()), "y-.s")
plt.show()
| [
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
628,
198,
198,
489,
83,
13,
29487,
7,
4868,
7,
9630,
329,
6376,
11,
331,
287,
27056,
378,
7,
1136,
62,
1073,
3669,
28955,
828,
1351,
7,
88,
329,
331,
287,
651,
62,
1073,
3669,
3419,
828,
366,
88,
34507,
82,
4943,
198,
489,
83,
13,
12860,
3419,
198
] | 2.553846 | 65 |
from torchtext.data import Field
from quati import constants
from quati.dataset.vocabulary import Vocabulary
class AffixesField(Field):
"""
Defines a field for affixes (prefixes and suffixes) by setting only
unk_token and pad_token to their default constant value.
"""
def __init__(self, **kwargs):
super().__init__(unk_token=constants.UNK,
pad_token=constants.PAD,
batch_first=True,
**kwargs)
self.vocab_cls = Vocabulary
| [
6738,
28034,
5239,
13,
7890,
1330,
7663,
198,
198,
6738,
627,
7246,
1330,
38491,
198,
6738,
627,
7246,
13,
19608,
292,
316,
13,
18893,
22528,
1330,
47208,
22528,
628,
198,
4871,
6708,
844,
274,
15878,
7,
15878,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2896,
1127,
257,
2214,
329,
1527,
844,
274,
357,
40290,
274,
290,
35488,
274,
8,
416,
4634,
691,
198,
220,
220,
220,
555,
74,
62,
30001,
290,
14841,
62,
30001,
284,
511,
4277,
6937,
1988,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
2954,
62,
30001,
28,
9979,
1187,
13,
4944,
42,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14841,
62,
30001,
28,
9979,
1187,
13,
47,
2885,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15458,
62,
11085,
28,
17821,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12429,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18893,
397,
62,
565,
82,
796,
47208,
22528,
628,
198
] | 2.22314 | 242 |
"""Interface to the game"""
import anre
import time
import enum
import logging
import pkg_resources
class MainScreen(enum.Enum):
RANHORN = "ranhorn"
DARK_FOREST = "dark_forest"
CAMPAIGN = "campaign"
HEROS = "heros"
CHAT = "chat"
class Screen(enum.Enum):
MAIL = "mail"
BAG = "bag"
FRIENDS = "friends"
QUESTS_DAILIES = "quests_dailies"
QUESTS_WEEKLY = "quests_weekly"
QUESTS_CAMPAIGN = "quests_campaign"
BOUNTY_QUESTS = "bounty_quests"
BOUNTY_TEAM = "bounty_team"
logging.basicConfig(level=logging.INFO)
LOG = logging.getLogger(__name__)
AVOID_DOUBLE_TAB_DELAY = 0.1
class AFKArena:
def __init__(self, ar: anre.Anre) -> None:
self.ar = ar
self.activity_name = "com.lilithgame.hgame.gp"
self.current_screen = MainScreen.CAMPAIGN
def start_app(self):
self.ar.start_app(self.activity_name)
def close_app(self):
self.ar.close_app(self.activity_name)
def wait_until_loaded(self):
LOG.info("waiting till app is loaded")
while self.ar.get_pixel("50%", -1, update=True) != (242, 225, 145):
time.sleep(0.1)
LOG.info("afk arena done loading")
def switch_to(self, target):
LOG.debug("switch from %s to %s", self.current_screen, target)
if self.current_screen == target:
return
main_screens = {
MainScreen.RANHORN: "10%",
MainScreen.DARK_FOREST: "30%",
MainScreen.CAMPAIGN: "50%",
MainScreen.HEROS: "70%",
MainScreen.CHAT: "90%",
}
if target == Screen.FRIENDS:
self.switch_to(MainScreen.CAMPAIGN)
self.click_all_image("menu_arrow")
self.tap_image("friends")
elif target == Screen.MAIL:
self.switch_to(MainScreen.CAMPAIGN)
self.click_all_image("menu_arrow", timeout=3)
self.tap_image("mail")
elif target == "guild":
self.switch_to(MainScreen.RANHORN)
self.ar.tap("30%", "15%")
time.sleep(AVOID_DOUBLE_TAB_DELAY)
elif target == Screen.QUESTS_DAILIES:
self.switch_to(MainScreen.CAMPAIGN)
self.tap_image("quests")
time.sleep(AVOID_DOUBLE_TAB_DELAY)
elif target == Screen.BOUNTY_QUESTS:
self.switch_to(MainScreen.DARK_FOREST)
self.tap_image("bounty_board")
time.sleep(AVOID_DOUBLE_TAB_DELAY)
elif target == "guild_hunting":
self.switch_to("guild")
self.tap_image("guild_hunting")
elif target in main_screens:
# we want to go to one of the main screens, ensure there
# is no back button visible (meaning we are in one of the)
# subscreens
self.click_all_image("back", timeout=5)
x = main_screens[target]
self.ar.tap(x, -10)
else:
raise AttributeError(f"Unkown screen '{target}'")
# TODO verify we successfully reached desired screen
self.current_screen = target
def tap_image(self, image_name, scale=1.0, threshold=0.9, timeout=60):
collect = pkg_resources.resource_filename("afka", f"res/{image_name}.png")
return self.ar.tap_image(collect, scale=scale, threshold=threshold, timeout=timeout)
def find_image(self, image_name, scale=1.0):
collect = pkg_resources.resource_filename("afka", f"res/{image_name}.png")
return self.ar.find_image(collect, scale=scale)
def wait_for_image(self, image_name, scale=1.0, timeout=60, threshold=0.9):
collect = pkg_resources.resource_filename("afka", f"res/{image_name}.png")
return self.ar.wait_for_image(collect, timeout=timeout, threshold=threshold, scale=scale)
def loot_afk_chest(self):
LOG.info("starting loot_afk_chest")
self.switch_to(MainScreen.CAMPAIGN)
self.ar.tap("50%", -450) # tap on pile of loot
self.tap_image("blue_button") # tap collect button
time.sleep(AVOID_DOUBLE_TAB_DELAY)
LOG.info("done loot_afk_chest")
def loot_fast_rewards(self, spend_diamonds=False):
LOG.info("starting loot_fast_rewards")
self.switch_to(MainScreen.CAMPAIGN)
self.tap_image("fast_rewards")
self.wait_for_image("popup")
conf, x, y = self.find_image("collect_for_50")
if conf >= 0.8:
if spend_diamonds:
self.ar.tap(x, y)
else:
LOG.info("fast rewards only available for diamonds and spend_diamonds=False")
self.ar.tap(10, 10)
time.sleep(AVOID_DOUBLE_TAB_DELAY)
LOG.info("done loot_fast_rewards")
return
else:
self.tap_image("collect_yellow")
time.sleep(AVOID_DOUBLE_TAB_DELAY)
self.ar.tap(10, 10)
time.sleep(AVOID_DOUBLE_TAB_DELAY)
self.ar.tap(10, 10)
time.sleep(AVOID_DOUBLE_TAB_DELAY)
LOG.info("done loot_fast_rewards")
def friends_send_and_receive(self):
LOG.info("starting friends_send_and_receive")
self.switch_to(Screen.FRIENDS)
# tap Send & Receive button
self.tap_image("and")
LOG.info("done friends_send_and_receive")
def collect_mail(self):
LOG.info("starting collect_mail")
self.switch_to(Screen.MAIL)
self.tap_image("blue_button")
LOG.info("done collect_mail")
def guild_hunt(self):
LOG.info("starting guild_hunt")
self.switch_to("guild_hunting")
for _ in range(2):
try:
self.tap_image("guild_hunt_challenge", timeout=10) # start challenge
except ValueError:
print("Looks like guild hunting already done")
break
time.sleep(0.1)
self.tap_image("guild_hunt_challenge") # begin battle (confirms formation)
time.sleep(60)
self.tap_image("tap_to_close")
self.tap_image("tap_to_close")
LOG.info("done guild_hunt")
def click_all_image(self, image_name, scale=1.0, threshold=0.9, timeout=5):
LOG.debug("Click all %s images", image_name)
while True:
self.ar.update_screencap()
try:
self.tap_image(image_name, scale=scale, threshold=threshold, timeout=timeout)
except ValueError:
return
def collect_quest_rewards(self):
LOG.info("starting collect_quest_rewards")
self.switch_to(Screen.QUESTS_DAILIES)
self.click_all_image("blue_button", threshold=0.7, scale=0.85)
self.click_all_image("quest_reward", threshold=0.7, scale=0.85)
# self.switch_to(Screen.QUESTS_DAILIES)
# self.switch_to("quests_campaign")
LOG.info("done collect_quest_rewards")
def fight_campaign(self):
LOG.info("starting fight_campaign")
self.switch_to(MainScreen.CAMPAIGN)
self.tap_image("guild_hunt_challenge") # begin battle
time.sleep(1)
self.ar.update_screencap()
self.tap_image("guild_hunt_challenge") # begin battle (confirms formation)
self.tap_image("touch_screen_to_continue", timeout=160)
self.tap_image("touch_screen_to_continue", timeout=10)
LOG.info("done collect_quest_rewards")
def close(self):
self.ar.close() | [
37811,
39317,
284,
262,
983,
37811,
198,
198,
11748,
281,
260,
198,
11748,
640,
198,
11748,
33829,
198,
11748,
18931,
198,
198,
11748,
279,
10025,
62,
37540,
628,
198,
4871,
8774,
23901,
7,
44709,
13,
4834,
388,
2599,
198,
220,
220,
220,
371,
1565,
39,
30649,
796,
366,
2596,
25311,
1,
198,
220,
220,
220,
46455,
62,
13775,
6465,
796,
366,
21953,
62,
29623,
1,
198,
220,
220,
220,
32421,
4537,
16284,
796,
366,
35012,
1,
198,
220,
220,
220,
24906,
2640,
796,
366,
258,
4951,
1,
198,
220,
220,
220,
5870,
1404,
796,
366,
17006,
1,
628,
198,
4871,
15216,
7,
44709,
13,
4834,
388,
2599,
198,
220,
220,
220,
8779,
4146,
796,
366,
4529,
1,
198,
220,
220,
220,
347,
4760,
796,
366,
21454,
1,
198,
220,
220,
220,
48167,
1677,
5258,
796,
366,
36154,
1,
198,
220,
220,
220,
19604,
1546,
4694,
62,
5631,
4146,
11015,
796,
366,
421,
3558,
62,
67,
603,
444,
1,
198,
220,
220,
220,
19604,
1546,
4694,
62,
54,
33823,
11319,
796,
366,
421,
3558,
62,
45291,
1,
198,
220,
220,
220,
19604,
1546,
4694,
62,
34,
2390,
4537,
16284,
796,
366,
421,
3558,
62,
35012,
1,
198,
220,
220,
220,
347,
19385,
9936,
62,
10917,
1546,
4694,
796,
366,
65,
17705,
62,
421,
3558,
1,
198,
220,
220,
220,
347,
19385,
9936,
62,
9328,
2390,
796,
366,
65,
17705,
62,
15097,
1,
628,
198,
6404,
2667,
13,
35487,
16934,
7,
5715,
28,
6404,
2667,
13,
10778,
8,
198,
198,
25294,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
796,
657,
13,
16,
628,
198,
4871,
12341,
25123,
918,
64,
25,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
610,
25,
281,
260,
13,
2025,
260,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
796,
610,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
21797,
62,
3672,
796,
366,
785,
13,
75,
346,
342,
6057,
13,
71,
6057,
13,
31197,
1,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14421,
62,
9612,
796,
8774,
23901,
13,
34,
2390,
4537,
16284,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
923,
62,
1324,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
9688,
62,
1324,
7,
944,
13,
21797,
62,
3672,
8,
628,
220,
220,
220,
825,
1969,
62,
1324,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
19836,
62,
1324,
7,
944,
13,
21797,
62,
3672,
8,
628,
220,
220,
220,
825,
4043,
62,
28446,
62,
14578,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
10247,
1780,
10597,
598,
318,
9639,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
981,
2116,
13,
283,
13,
1136,
62,
32515,
7203,
1120,
4,
1600,
532,
16,
11,
4296,
28,
17821,
8,
14512,
357,
27877,
11,
18500,
11,
20299,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
1878,
74,
13478,
1760,
11046,
4943,
628,
220,
220,
220,
825,
5078,
62,
1462,
7,
944,
11,
2496,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
31943,
422,
4064,
82,
284,
4064,
82,
1600,
2116,
13,
14421,
62,
9612,
11,
2496,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
14421,
62,
9612,
6624,
2496,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
1388,
62,
1416,
5681,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8774,
23901,
13,
49,
1565,
39,
30649,
25,
366,
940,
4,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8774,
23901,
13,
35,
14175,
62,
13775,
6465,
25,
366,
1270,
4,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8774,
23901,
13,
34,
2390,
4537,
16284,
25,
366,
1120,
4,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8774,
23901,
13,
16879,
2640,
25,
366,
2154,
4,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8774,
23901,
13,
31542,
25,
366,
3829,
4,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2496,
6624,
15216,
13,
37,
7112,
1677,
5258,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
34,
2390,
4537,
16284,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12976,
62,
439,
62,
9060,
7203,
26272,
62,
6018,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
36154,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2496,
6624,
15216,
13,
5673,
4146,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
34,
2390,
4537,
16284,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12976,
62,
439,
62,
9060,
7203,
26272,
62,
6018,
1600,
26827,
28,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
4529,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2496,
6624,
366,
70,
3547,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
49,
1565,
39,
30649,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7203,
1270,
4,
1600,
366,
1314,
4,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2496,
6624,
15216,
13,
10917,
1546,
4694,
62,
5631,
4146,
11015,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
34,
2390,
4537,
16284,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
421,
3558,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2496,
6624,
15216,
13,
33,
19385,
9936,
62,
10917,
1546,
4694,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
35,
14175,
62,
13775,
6465,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
65,
17705,
62,
3526,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2496,
6624,
366,
70,
3547,
62,
20088,
889,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7203,
70,
3547,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
70,
3547,
62,
20088,
889,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2496,
287,
1388,
62,
1416,
5681,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
356,
765,
284,
467,
284,
530,
286,
262,
1388,
8947,
11,
4155,
612,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
318,
645,
736,
4936,
7424,
357,
24815,
356,
389,
287,
530,
286,
262,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5294,
5681,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12976,
62,
439,
62,
9060,
7203,
1891,
1600,
26827,
28,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
1388,
62,
1416,
5681,
58,
16793,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7,
87,
11,
532,
940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
3460,
4163,
12331,
7,
69,
1,
3118,
74,
593,
3159,
705,
90,
16793,
92,
6,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
11767,
356,
7675,
4251,
10348,
3159,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14421,
62,
9612,
796,
2496,
628,
198,
220,
220,
220,
825,
9814,
62,
9060,
7,
944,
11,
2939,
62,
3672,
11,
5046,
28,
16,
13,
15,
11,
11387,
28,
15,
13,
24,
11,
26827,
28,
1899,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2824,
796,
279,
10025,
62,
37540,
13,
31092,
62,
34345,
7203,
1878,
4914,
1600,
277,
1,
411,
14,
90,
9060,
62,
3672,
27422,
11134,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
283,
13,
44335,
62,
9060,
7,
33327,
11,
5046,
28,
9888,
11,
11387,
28,
400,
10126,
11,
26827,
28,
48678,
8,
628,
220,
220,
220,
825,
1064,
62,
9060,
7,
944,
11,
2939,
62,
3672,
11,
5046,
28,
16,
13,
15,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2824,
796,
279,
10025,
62,
37540,
13,
31092,
62,
34345,
7203,
1878,
4914,
1600,
277,
1,
411,
14,
90,
9060,
62,
3672,
27422,
11134,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
283,
13,
19796,
62,
9060,
7,
33327,
11,
5046,
28,
9888,
8,
628,
220,
220,
220,
825,
4043,
62,
1640,
62,
9060,
7,
944,
11,
2939,
62,
3672,
11,
5046,
28,
16,
13,
15,
11,
26827,
28,
1899,
11,
11387,
28,
15,
13,
24,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2824,
796,
279,
10025,
62,
37540,
13,
31092,
62,
34345,
7203,
1878,
4914,
1600,
277,
1,
411,
14,
90,
9060,
62,
3672,
27422,
11134,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
283,
13,
17077,
62,
1640,
62,
9060,
7,
33327,
11,
26827,
28,
48678,
11,
11387,
28,
400,
10126,
11,
5046,
28,
9888,
8,
628,
220,
220,
220,
825,
16702,
62,
1878,
74,
62,
46713,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
16702,
62,
1878,
74,
62,
46713,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
34,
2390,
4537,
16284,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7203,
1120,
4,
1600,
532,
17885,
8,
220,
1303,
9814,
319,
14540,
286,
16702,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
17585,
62,
16539,
4943,
220,
1303,
9814,
2824,
4936,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
16702,
62,
1878,
74,
62,
46713,
4943,
628,
220,
220,
220,
825,
16702,
62,
7217,
62,
260,
2017,
7,
944,
11,
4341,
62,
67,
8446,
82,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
16702,
62,
7217,
62,
260,
2017,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
34,
2390,
4537,
16284,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
7217,
62,
260,
2017,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
17077,
62,
1640,
62,
9060,
7203,
12924,
929,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
1013,
11,
2124,
11,
331,
796,
2116,
13,
19796,
62,
9060,
7203,
33327,
62,
1640,
62,
1120,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1013,
18189,
657,
13,
23,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4341,
62,
67,
8446,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7,
87,
11,
331,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
7217,
11530,
691,
1695,
329,
30984,
290,
4341,
62,
67,
8446,
82,
28,
25101,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7,
940,
11,
838,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
16702,
62,
7217,
62,
260,
2017,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
33327,
62,
36022,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7,
940,
11,
838,
8,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
44335,
7,
940,
11,
838,
8,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
10116,
46,
2389,
62,
35,
2606,
19146,
62,
5603,
33,
62,
35,
3698,
4792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
16702,
62,
7217,
62,
260,
2017,
4943,
628,
220,
220,
220,
825,
2460,
62,
21280,
62,
392,
62,
260,
15164,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
2460,
62,
21280,
62,
392,
62,
260,
15164,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
23901,
13,
37,
7112,
1677,
5258,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9814,
16290,
1222,
797,
15164,
4936,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
392,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
2460,
62,
21280,
62,
392,
62,
260,
15164,
4943,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
2824,
62,
4529,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
2824,
62,
4529,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
23901,
13,
5673,
4146,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
17585,
62,
16539,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
2824,
62,
4529,
4943,
628,
220,
220,
220,
825,
19806,
62,
35060,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
19806,
62,
35060,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7203,
70,
3547,
62,
20088,
889,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
329,
4808,
287,
2837,
7,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
70,
3547,
62,
35060,
62,
36747,
3540,
1600,
26827,
28,
940,
8,
1303,
923,
4427,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
41102,
588,
19806,
10988,
1541,
1760,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
70,
3547,
62,
35060,
62,
36747,
3540,
4943,
1303,
2221,
3344,
357,
10414,
8789,
9978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
1899,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
44335,
62,
1462,
62,
19836,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
44335,
62,
1462,
62,
19836,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
19806,
62,
35060,
4943,
628,
220,
220,
220,
825,
3904,
62,
439,
62,
9060,
7,
944,
11,
2939,
62,
3672,
11,
5046,
28,
16,
13,
15,
11,
11387,
28,
15,
13,
24,
11,
26827,
28,
20,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
24442,
7203,
8164,
477,
4064,
82,
4263,
1600,
2939,
62,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
19119,
62,
9612,
11128,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7,
9060,
62,
3672,
11,
5046,
28,
9888,
11,
11387,
28,
400,
10126,
11,
26827,
28,
48678,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
825,
2824,
62,
6138,
62,
260,
2017,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
2824,
62,
6138,
62,
260,
2017,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
23901,
13,
10917,
1546,
4694,
62,
5631,
4146,
11015,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12976,
62,
439,
62,
9060,
7203,
17585,
62,
16539,
1600,
11387,
28,
15,
13,
22,
11,
5046,
28,
15,
13,
5332,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12976,
62,
439,
62,
9060,
7203,
6138,
62,
260,
904,
1600,
11387,
28,
15,
13,
22,
11,
5046,
28,
15,
13,
5332,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2116,
13,
31943,
62,
1462,
7,
23901,
13,
10917,
1546,
4694,
62,
5631,
4146,
11015,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
2116,
13,
31943,
62,
1462,
7203,
421,
3558,
62,
35012,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
2824,
62,
6138,
62,
260,
2017,
4943,
628,
220,
220,
220,
825,
1907,
62,
35012,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
38690,
1907,
62,
35012,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
31943,
62,
1462,
7,
13383,
23901,
13,
34,
2390,
4537,
16284,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
70,
3547,
62,
35060,
62,
36747,
3540,
4943,
1303,
2221,
3344,
198,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
19119,
62,
9612,
11128,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
70,
3547,
62,
35060,
62,
36747,
3540,
4943,
1303,
2221,
3344,
357,
10414,
8789,
9978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
29332,
62,
9612,
62,
1462,
62,
43043,
1600,
26827,
28,
14198,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
44335,
62,
9060,
7203,
29332,
62,
9612,
62,
1462,
62,
43043,
1600,
26827,
28,
940,
8,
198,
220,
220,
220,
220,
220,
220,
220,
41605,
13,
10951,
7203,
28060,
2824,
62,
6138,
62,
260,
2017,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
825,
1969,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
283,
13,
19836,
3419
] | 2.064266 | 3,610 |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for glazier.lib.file_util."""
from pyfakefs import fake_filesystem
from glazier.lib import file_util
from absl.testing import absltest
class FileUtilTest(absltest.TestCase):
def setUp(self):
super(FileUtilTest, self).setUp()
self.filesystem = fake_filesystem.FakeFilesystem()
file_util.os = fake_filesystem.FakeOsModule(self.filesystem)
file_util.open = fake_filesystem.FakeFileOpen(self.filesystem)
def testCreateDirectories(self):
self.filesystem.CreateFile('/test')
self.assertRaises(file_util.Error, file_util.CreateDirectories,
'/test/file.txt')
file_util.CreateDirectories('/tmp/test/path/file.log')
self.assertTrue(self.filesystem.Exists('/tmp/test/path'))
if __name__ == '__main__':
absltest.main()
| [
2,
15069,
1584,
3012,
3457,
13,
1439,
6923,
33876,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
37811,
51,
3558,
329,
1278,
1031,
959,
13,
8019,
13,
7753,
62,
22602,
526,
15931,
198,
198,
6738,
12972,
30706,
9501,
1330,
8390,
62,
16624,
6781,
198,
6738,
1278,
1031,
959,
13,
8019,
1330,
2393,
62,
22602,
198,
6738,
2352,
75,
13,
33407,
1330,
2352,
2528,
395,
628,
198,
4871,
9220,
18274,
346,
14402,
7,
8937,
2528,
395,
13,
14402,
20448,
2599,
628,
220,
825,
900,
4933,
7,
944,
2599,
198,
220,
220,
220,
2208,
7,
8979,
18274,
346,
14402,
11,
2116,
737,
2617,
4933,
3419,
198,
220,
220,
220,
2116,
13,
16624,
6781,
796,
8390,
62,
16624,
6781,
13,
49233,
25876,
6781,
3419,
198,
220,
220,
220,
2393,
62,
22602,
13,
418,
796,
8390,
62,
16624,
6781,
13,
49233,
16748,
26796,
7,
944,
13,
16624,
6781,
8,
198,
220,
220,
220,
2393,
62,
22602,
13,
9654,
796,
8390,
62,
16624,
6781,
13,
49233,
8979,
11505,
7,
944,
13,
16624,
6781,
8,
628,
220,
825,
1332,
16447,
13470,
1749,
7,
944,
2599,
198,
220,
220,
220,
2116,
13,
16624,
6781,
13,
16447,
8979,
10786,
14,
9288,
11537,
198,
220,
220,
220,
2116,
13,
30493,
21762,
2696,
7,
7753,
62,
22602,
13,
12331,
11,
2393,
62,
22602,
13,
16447,
13470,
1749,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31051,
9288,
14,
7753,
13,
14116,
11537,
198,
220,
220,
220,
2393,
62,
22602,
13,
16447,
13470,
1749,
10786,
14,
22065,
14,
9288,
14,
6978,
14,
7753,
13,
6404,
11537,
198,
220,
220,
220,
2116,
13,
30493,
17821,
7,
944,
13,
16624,
6781,
13,
3109,
1023,
10786,
14,
22065,
14,
9288,
14,
6978,
6,
4008,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
2352,
2528,
395,
13,
12417,
3419,
198
] | 3.050885 | 452 |
import py
pydir = py.path.local(py.__file__).dirpath()
pytestpath = pydir.join("bin", "py.test")
EXPECTTIMEOUT=10.0
class TestGeneralUsage:
def test_config_error(self, testdir):
testdir.makeconftest("""
class ConftestPlugin:
def pytest_configure(self, config):
raise config.Error("hello")
""")
result = testdir.runpytest(testdir.tmpdir)
assert result.ret != 0
assert result.stderr.fnmatch_lines([
'*ERROR: hello'
])
def test_basetemp(self, testdir):
mytemp = testdir.tmpdir.mkdir("mytemp")
p = testdir.makepyfile("""
import py
def test_1():
py.test.ensuretemp('xyz')
""")
result = testdir.runpytest(p, '--basetemp=%s' %mytemp)
assert result.ret == 0
assert mytemp.join('xyz').check(dir=1)
def test_assertion_magic(self, testdir):
p = testdir.makepyfile("""
def test_this():
x = 0
assert x
""")
result = testdir.runpytest(p)
extra = result.stdout.fnmatch_lines([
"> assert x",
"E assert 0",
])
assert result.ret == 1
def test_collectonly_simple(self, testdir):
p = testdir.makepyfile("""
def test_func1():
pass
class TestClass:
def test_method(self):
pass
""")
result = testdir.runpytest("--collectonly", p)
stderr = result.stderr.str().strip()
assert stderr.startswith("inserting into sys.path")
assert result.ret == 0
extra = result.stdout.fnmatch_lines(py.code.Source("""
<Module '*.py'>
<Function 'test_func1'*>
<Class 'TestClass'>
<Instance '()'>
<Function 'test_method'*>
""").strip())
def test_collectonly_error(self, testdir):
p = testdir.makepyfile("import Errlkjqweqwe")
result = testdir.runpytest("--collectonly", p)
stderr = result.stderr.str().strip()
assert stderr.startswith("inserting into sys.path")
assert result.ret == 1
extra = result.stdout.fnmatch_lines(py.code.Source("""
<Module '*.py'>
*ImportError*
!!!*failures*!!!
*test_collectonly_error.py:1*
""").strip())
def test_nested_import_error(self, testdir):
p = testdir.makepyfile("""
import import_fails
def test_this():
assert import_fails.a == 1
""")
testdir.makepyfile(import_fails="import does_not_work")
result = testdir.runpytest(p)
extra = result.stdout.fnmatch_lines([
"> import import_fails",
"E ImportError: No module named does_not_work",
])
assert result.ret == 1
def test_skipped_reasons(self, testdir):
testdir.makepyfile(
test_one="""
from conftest import doskip
def setup_function(func):
doskip()
def test_func():
pass
class TestClass:
def test_method(self):
doskip()
""",
test_two = """
from conftest import doskip
doskip()
""",
conftest = """
import py
def doskip():
py.test.skip('test')
"""
)
result = testdir.runpytest()
extra = result.stdout.fnmatch_lines([
"*test_one.py ss",
"*test_two.py S",
"___* skipped test summary *_",
"*conftest.py:3: *3* Skipped: 'test'",
])
assert result.ret == 0
def test_deselected(self, testdir):
testpath = testdir.makepyfile("""
def test_one():
pass
def test_two():
pass
def test_three():
pass
"""
)
result = testdir.runpytest("-k", "test_two:", testpath)
extra = result.stdout.fnmatch_lines([
"*test_deselected.py ..",
"=* 1 test*deselected by 'test_two:'*=",
])
assert result.ret == 0
def test_no_skip_summary_if_failure(self, testdir):
testdir.makepyfile("""
import py
def test_ok():
pass
def test_fail():
assert 0
def test_skip():
py.test.skip("dontshow")
""")
result = testdir.runpytest()
assert result.stdout.str().find("skip test summary") == -1
assert result.ret == 1
def test_passes(self, testdir):
p1 = testdir.makepyfile("""
def test_passes():
pass
class TestClass:
def test_method(self):
pass
""")
old = p1.dirpath().chdir()
try:
result = testdir.runpytest()
finally:
old.chdir()
extra = result.stdout.fnmatch_lines([
"test_passes.py ..",
"* 2 pass*",
])
assert result.ret == 0
def test_header_trailer_info(self, testdir):
p1 = testdir.makepyfile("""
def test_passes():
pass
""")
result = testdir.runpytest()
verinfo = ".".join(map(str, py.std.sys.version_info[:3]))
extra = result.stdout.fnmatch_lines([
"*===== test session starts ====*",
"python: platform %s -- Python %s*" %(
py.std.sys.platform, verinfo), # , py.std.sys.executable),
"*test_header_trailer_info.py .",
"=* 1 passed in *.[0-9][0-9] seconds *=",
])
def test_traceback_failure(self, testdir):
p1 = testdir.makepyfile("""
def g():
return 2
def f(x):
assert x == g()
def test_onefails():
f(3)
""")
result = testdir.runpytest(p1)
result.stdout.fnmatch_lines([
"*test_traceback_failure.py F",
"====* FAILURES *====",
"____*____",
"",
" def test_onefails():",
"> f(3)",
"",
"*test_*.py:6: ",
"_ _ _ *",
#"",
" def f(x):",
"> assert x == g()",
"E assert 3 == 2",
"E + where 2 = g()",
"",
"*test_traceback_failure.py:4: AssertionError"
])
def test_capturing_outerr(self, testdir):
p1 = testdir.makepyfile("""
import sys
def test_capturing():
print 42
print >>sys.stderr, 23
def test_capturing_error():
print 1
print >>sys.stderr, 2
raise ValueError
""")
result = testdir.runpytest(p1)
result.stdout.fnmatch_lines([
"*test_capturing_outerr.py .F",
"====* FAILURES *====",
"____*____",
"*test_capturing_outerr.py:8: ValueError",
"*--- Captured stdout ---*",
"1",
"*--- Captured stderr ---*",
"2",
])
def test_showlocals(self, testdir):
p1 = testdir.makepyfile("""
def test_showlocals():
x = 3
y = "x" * 5000
assert 0
""")
result = testdir.runpytest(p1, '-l')
result.stdout.fnmatch_lines([
#"_ _ * Locals *",
"x* = 3",
"y* = 'xxxxxx*"
])
def test_verbose_reporting(self, testdir):
p1 = testdir.makepyfile("""
import py
def test_fail():
raise ValueError()
def test_pass():
pass
class TestClass:
def test_skip(self):
py.test.skip("hello")
def test_gen():
def check(x):
assert x == 1
yield check, 0
""")
result = testdir.runpytest(p1, '-v')
result.stdout.fnmatch_lines([
"*test_verbose_reporting.py:2: test_fail*FAIL*",
"*test_verbose_reporting.py:4: test_pass*PASS*",
"*test_verbose_reporting.py:7: TestClass.test_skip*SKIP*",
"*test_verbose_reporting.py:10: test_gen*FAIL*",
])
assert result.ret == 1
result = testdir.runpytest(p1, '-v', '-n 1')
result.stdout.fnmatch_lines([
"*FAIL*test_verbose_reporting.py:2: test_fail*",
])
assert result.ret == 1
class TestDistribution:
def test_dist_conftest_options(self, testdir):
p1 = testdir.tmpdir.ensure("dir", 'p1.py')
p1.dirpath("__init__.py").write("")
p1.dirpath("conftest.py").write(py.code.Source("""
print "importing conftest", __file__
import py
Option = py.test.config.Option
option = py.test.config.addoptions("someopt",
Option('--someopt', action="store_true", dest="someopt", default=False))
dist_rsync_roots = ['../dir']
print "added options", option
print "config file seen from conftest", py.test.config
"""))
p1.write(py.code.Source("""
import py, conftest
def test_1():
print "config from test_1", py.test.config
print "conftest from test_1", conftest.__file__
print "test_1: py.test.config.option.someopt", py.test.config.option.someopt
print "test_1: conftest", conftest
print "test_1: conftest.option.someopt", conftest.option.someopt
assert conftest.option.someopt
"""))
result = testdir.runpytest('-d', '--tx=popen', p1, '--someopt')
assert result.ret == 0
extra = result.stdout.fnmatch_lines([
"*1 passed*",
])
def test_manytests_to_one_popen(self, testdir):
p1 = testdir.makepyfile("""
import py
def test_fail0():
assert 0
def test_fail1():
raise ValueError()
def test_ok():
pass
def test_skip():
py.test.skip("hello")
""",
)
result = testdir.runpytest(p1, '-d', '--tx=popen', '--tx=popen')
result.stdout.fnmatch_lines([
"*1*popen*Python*",
"*2*popen*Python*",
"*2 failed, 1 passed, 1 skipped*",
])
assert result.ret == 1
def test_dist_conftest_specified(self, testdir):
p1 = testdir.makepyfile("""
import py
def test_fail0():
assert 0
def test_fail1():
raise ValueError()
def test_ok():
pass
def test_skip():
py.test.skip("hello")
""",
)
testdir.makeconftest("""
pytest_option_tx = 'popen popen popen'.split()
""")
result = testdir.runpytest(p1, '-d')
result.stdout.fnmatch_lines([
"*1*popen*Python*",
"*2*popen*Python*",
"*3*popen*Python*",
"*2 failed, 1 passed, 1 skipped*",
])
assert result.ret == 1
def test_dist_tests_with_crash(self, testdir):
if not hasattr(py.std.os, 'kill'):
py.test.skip("no os.kill")
p1 = testdir.makepyfile("""
import py
def test_fail0():
assert 0
def test_fail1():
raise ValueError()
def test_ok():
pass
def test_skip():
py.test.skip("hello")
def test_crash():
import time
import os
time.sleep(0.5)
os.kill(os.getpid(), 15)
"""
)
result = testdir.runpytest(p1, '-d', '--tx=3*popen')
result.stdout.fnmatch_lines([
"*popen*Python*",
"*popen*Python*",
"*popen*Python*",
"*node down*",
"*3 failed, 1 passed, 1 skipped*"
])
assert result.ret == 1
def test_distribution_rsyncdirs_example(self, testdir):
source = testdir.mkdir("source")
dest = testdir.mkdir("dest")
subdir = source.mkdir("example_pkg")
subdir.ensure("__init__.py")
p = subdir.join("test_one.py")
p.write("def test_5(): assert not __file__.startswith(%r)" % str(p))
result = testdir.runpytest("-d", "--rsyncdir=%(subdir)s" % locals(),
"--tx=popen//chdir=%(dest)s" % locals(), p)
assert result.ret == 0
result.stdout.fnmatch_lines([
"*1* *popen*platform*",
#"RSyncStart: [G1]",
#"RSyncFinished: [G1]",
"*1 passed*"
])
assert dest.join(subdir.basename).check(dir=1)
def test_dist_each(self, testdir):
interpreters = []
for name in ("python2.4", "python2.5"):
interp = py.path.local.sysfind(name)
if interp is None:
py.test.skip("%s not found" % name)
interpreters.append(interp)
testdir.makepyfile(__init__="", test_one="""
import sys
def test_hello():
print "%s...%s" % sys.version_info[:2]
assert 0
""")
args = ["--dist=each"]
args += ["--tx", "popen//python=%s" % interpreters[0]]
args += ["--tx", "popen//python=%s" % interpreters[1]]
result = testdir.runpytest(*args)
result.stdout.fnmatch_lines(["2...4"])
result.stdout.fnmatch_lines(["2...5"])
class TestInteractive:
def getspawn(self, tmpdir):
pexpect = py.test.importorskip("pexpect")
basetemp = tmpdir.mkdir("basetemp")
def spawn(cmd):
cmd = cmd + " --basetemp=" + str(basetemp)
return pexpect.spawn(cmd, logfile=tmpdir.join("spawn.out").open("w"))
return spawn
def requirespexpect(self, version_needed):
pexpect = py.test.importorskip("pexpect")
ver = tuple(map(int, pexpect.__version__.split(".")))
if ver < version_needed:
py.test.skip("pexpect version %s needed" %(".".join(map(str, version_needed))))
def test_pdb_interaction(self, testdir):
self.requirespexpect((2,3))
spawn = self.getspawn(testdir.tmpdir)
p1 = testdir.makepyfile("""
def test_1():
i = 0
assert i == 1
""")
child = spawn("%s %s --pdb %s" % (py.std.sys.executable, pytestpath, p1))
child.timeout = EXPECTTIMEOUT
#child.expect(".*def test_1.*")
child.expect(".*i = 0.*")
child.expect("(Pdb)")
child.sendeof()
child.expect("1 failed")
if child.isalive():
child.wait()
def test_simple_looponfail_interaction(self, testdir):
spawn = self.getspawn(testdir.tmpdir)
p1 = testdir.makepyfile("""
def test_1():
assert 1 == 0
""")
p1.setmtime(p1.mtime() - 50.0)
child = spawn("%s %s --looponfail %s" % (py.std.sys.executable, pytestpath, p1))
child.timeout = EXPECTTIMEOUT
child.expect("assert 1 == 0")
child.expect("test_simple_looponfail_interaction.py:")
child.expect("1 failed")
child.expect("waiting for changes")
p1.write(py.code.Source("""
def test_1():
assert 1 == 1
"""))
child.expect("MODIFIED.*test_simple_looponfail_interaction.py", timeout=4.0)
child.expect("1 passed", timeout=5.0)
child.kill(15)
class TestKeyboardInterrupt:
def test_raised_in_testfunction(self, testdir):
p1 = testdir.makepyfile("""
import py
def test_fail():
raise ValueError()
def test_inter():
raise KeyboardInterrupt()
""")
result = testdir.runpytest(p1)
result.stdout.fnmatch_lines([
#"*test_inter() INTERRUPTED",
"*KEYBOARD INTERRUPT*",
"*1 failed*",
])
| [
11748,
12972,
198,
198,
79,
5173,
343,
796,
12972,
13,
6978,
13,
12001,
7,
9078,
13,
834,
7753,
834,
737,
15908,
6978,
3419,
198,
9078,
9288,
6978,
796,
279,
5173,
343,
13,
22179,
7203,
8800,
1600,
366,
9078,
13,
9288,
4943,
198,
49864,
9782,
34694,
12425,
28,
940,
13,
15,
198,
198,
4871,
6208,
12218,
28350,
25,
198,
220,
220,
220,
825,
1332,
62,
11250,
62,
18224,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
15908,
13,
15883,
1102,
701,
395,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1398,
1482,
701,
395,
37233,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
12972,
9288,
62,
11250,
495,
7,
944,
11,
4566,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
4566,
13,
12331,
7203,
31373,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
9288,
15908,
13,
22065,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
14512,
657,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
301,
1082,
81,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9,
24908,
25,
23748,
6,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628,
220,
220,
220,
825,
1332,
62,
12093,
316,
45787,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
616,
29510,
796,
1332,
15908,
13,
22065,
15908,
13,
28015,
15908,
7203,
1820,
29510,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
16,
33529,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
641,
495,
29510,
10786,
5431,
89,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
11,
705,
438,
12093,
316,
45787,
28,
4,
82,
6,
4064,
1820,
29510,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
616,
29510,
13,
22179,
10786,
5431,
89,
27691,
9122,
7,
15908,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
825,
1332,
62,
30493,
295,
62,
32707,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
5661,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
2124,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29,
220,
220,
220,
220,
220,
220,
6818,
2124,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
36,
220,
220,
220,
220,
220,
220,
6818,
657,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
628,
220,
220,
220,
825,
1332,
62,
33327,
8807,
62,
36439,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
20786,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1398,
6208,
9487,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
24396,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7203,
438,
33327,
8807,
1600,
279,
8,
198,
220,
220,
220,
220,
220,
220,
220,
336,
1082,
81,
796,
1255,
13,
301,
1082,
81,
13,
2536,
22446,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
336,
1082,
81,
13,
9688,
2032,
342,
7203,
28463,
278,
656,
25064,
13,
6978,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
7,
9078,
13,
8189,
13,
7416,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
26796,
705,
24620,
9078,
44167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
22203,
705,
9288,
62,
20786,
16,
6,
9,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
9487,
705,
14402,
9487,
44167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
33384,
705,
3419,
44167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
22203,
705,
9288,
62,
24396,
6,
9,
29,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
11074,
36311,
28955,
628,
220,
220,
220,
825,
1332,
62,
33327,
8807,
62,
18224,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
11748,
41512,
75,
42421,
80,
732,
80,
732,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7203,
438,
33327,
8807,
1600,
279,
8,
198,
220,
220,
220,
220,
220,
220,
220,
336,
1082,
81,
796,
1255,
13,
301,
1082,
81,
13,
2536,
22446,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
336,
1082,
81,
13,
9688,
2032,
342,
7203,
28463,
278,
656,
25064,
13,
6978,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
7,
9078,
13,
8189,
13,
7416,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
26796,
705,
24620,
9078,
44167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
20939,
12331,
9,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10185,
9,
32165,
942,
9,
10185,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
9288,
62,
33327,
8807,
62,
18224,
13,
9078,
25,
16,
9,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
11074,
36311,
28955,
628,
198,
220,
220,
220,
825,
1332,
62,
77,
7287,
62,
11748,
62,
18224,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
1330,
62,
69,
1768,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
5661,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
1330,
62,
69,
1768,
13,
64,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
15908,
13,
15883,
9078,
7753,
7,
11748,
62,
69,
1768,
2625,
11748,
857,
62,
1662,
62,
1818,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29,
220,
220,
1330,
1330,
62,
69,
1768,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
36,
220,
220,
17267,
12331,
25,
1400,
8265,
3706,
857,
62,
1662,
62,
1818,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
628,
220,
220,
220,
825,
1332,
62,
8135,
3949,
62,
260,
2812,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
15908,
13,
15883,
9078,
7753,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
505,
2625,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
422,
369,
701,
395,
1330,
23430,
74,
541,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
9058,
62,
8818,
7,
20786,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23430,
74,
541,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
20786,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1398,
6208,
9487,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
24396,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23430,
74,
541,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13538,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1332,
62,
11545,
796,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
422,
369,
701,
395,
1330,
23430,
74,
541,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23430,
74,
541,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13538,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
369,
701,
395,
796,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
23430,
74,
541,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
10786,
9288,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
3419,
220,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
505,
13,
9078,
37786,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
11545,
13,
9078,
311,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17569,
9,
26684,
1332,
10638,
1635,
62,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
1102,
701,
395,
13,
9078,
25,
18,
25,
1635,
18,
9,
3661,
3949,
25,
705,
9288,
6,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
628,
220,
220,
220,
825,
1332,
62,
67,
2771,
12609,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
6978,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
505,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
11545,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
15542,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7203,
12,
74,
1600,
366,
9288,
62,
11545,
25,
1600,
1332,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
67,
2771,
12609,
13,
9078,
11485,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
28,
9,
352,
1332,
9,
67,
2771,
12609,
416,
705,
9288,
62,
11545,
32105,
9,
28,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
628,
220,
220,
220,
825,
1332,
62,
3919,
62,
48267,
62,
49736,
62,
361,
62,
32165,
495,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
482,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
48267,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
67,
756,
12860,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
3419,
220,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
19282,
448,
13,
2536,
22446,
19796,
7203,
48267,
1332,
10638,
4943,
6624,
532,
16,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
628,
220,
220,
220,
825,
1332,
62,
6603,
274,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
6603,
274,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1398,
6208,
9487,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
24396,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1468,
796,
279,
16,
13,
15908,
6978,
22446,
354,
15908,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1468,
13,
354,
15908,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9288,
62,
6603,
274,
13,
9078,
11485,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
362,
1208,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
628,
220,
220,
220,
825,
1332,
62,
25677,
62,
9535,
5329,
62,
10951,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
6603,
274,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3326,
10951,
796,
366,
526,
13,
22179,
7,
8899,
7,
2536,
11,
12972,
13,
19282,
13,
17597,
13,
9641,
62,
10951,
58,
25,
18,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
1421,
28,
1332,
6246,
4940,
796,
18604,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29412,
25,
3859,
4064,
82,
1377,
11361,
4064,
82,
9,
1,
4064,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
19282,
13,
17597,
13,
24254,
11,
3326,
10951,
828,
1303,
837,
12972,
13,
19282,
13,
17597,
13,
18558,
18187,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
25677,
62,
9535,
5329,
62,
10951,
13,
9078,
22135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
28,
9,
352,
3804,
287,
1635,
3693,
15,
12,
24,
7131,
15,
12,
24,
60,
4201,
1635,
28,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628,
220,
220,
220,
825,
1332,
62,
40546,
1891,
62,
32165,
495,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
308,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
277,
7,
87,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
2124,
6624,
308,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
505,
69,
1768,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
7,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
40546,
1891,
62,
32165,
495,
13,
9078,
376,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1421,
9,
9677,
4146,
29514,
1635,
1421,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1427,
9,
1427,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
220,
220,
825,
1332,
62,
505,
69,
1768,
33529,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29,
220,
220,
220,
220,
220,
220,
277,
7,
18,
42501,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
24620,
9078,
25,
21,
25,
33172,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45434,
4808,
4808,
1635,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
220,
220,
220,
825,
277,
7,
87,
2599,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29,
220,
220,
220,
220,
220,
220,
6818,
2124,
6624,
308,
3419,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
36,
220,
220,
220,
220,
220,
220,
6818,
513,
6624,
362,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
36,
220,
220,
220,
220,
220,
220,
220,
1343,
220,
810,
362,
796,
308,
3419,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
40546,
1891,
62,
32165,
495,
13,
9078,
25,
19,
25,
2195,
861,
295,
12331,
1,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628,
220,
220,
220,
825,
1332,
62,
27144,
870,
62,
39605,
81,
7,
944,
11,
1332,
15908,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
25064,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
27144,
870,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
5433,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
9609,
17597,
13,
301,
1082,
81,
11,
2242,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
27144,
870,
62,
18224,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
9609,
17597,
13,
301,
1082,
81,
11,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
27144,
870,
62,
39605,
81,
13,
9078,
764,
37,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1421,
9,
9677,
4146,
29514,
1635,
1421,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1427,
9,
1427,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
27144,
870,
62,
39605,
81,
13,
9078,
25,
23,
25,
11052,
12331,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
6329,
6790,
1522,
14367,
448,
11420,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
6329,
6790,
1522,
336,
1082,
81,
11420,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628,
220,
220,
220,
825,
1332,
62,
1477,
4883,
420,
874,
7,
944,
11,
1332,
15908,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
1477,
4883,
420,
874,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
796,
366,
87,
1,
1635,
23336,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
657,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
11,
705,
12,
75,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1,
62,
4808,
1635,
15181,
874,
1635,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
87,
9,
796,
513,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
88,
9,
796,
705,
12343,
5324,
9,
1,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628,
220,
220,
220,
825,
1332,
62,
19011,
577,
62,
49914,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
6603,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1398,
6208,
9487,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
48267,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
31373,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
5235,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
2198,
7,
87,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
2124,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7800,
2198,
11,
657,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
11,
705,
12,
85,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
19011,
577,
62,
49914,
13,
9078,
25,
17,
25,
1332,
62,
32165,
9,
7708,
4146,
9,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
19011,
577,
62,
49914,
13,
9078,
25,
19,
25,
1332,
62,
6603,
9,
47924,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
19011,
577,
62,
49914,
13,
9078,
25,
22,
25,
6208,
9487,
13,
9288,
62,
48267,
9,
18831,
4061,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
9288,
62,
19011,
577,
62,
49914,
13,
9078,
25,
940,
25,
1332,
62,
5235,
9,
7708,
4146,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
11,
705,
12,
85,
3256,
705,
12,
77,
352,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
7708,
4146,
9,
9288,
62,
19011,
577,
62,
49914,
13,
9078,
25,
17,
25,
1332,
62,
32165,
9,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
198,
198,
4871,
6208,
20344,
3890,
25,
198,
220,
220,
220,
825,
1332,
62,
17080,
62,
1102,
701,
395,
62,
25811,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
22065,
15908,
13,
641,
495,
7203,
15908,
1600,
705,
79,
16,
13,
9078,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
13,
15908,
6978,
7203,
834,
15003,
834,
13,
9078,
11074,
13564,
7203,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
13,
15908,
6978,
7203,
1102,
701,
395,
13,
9078,
11074,
13564,
7,
9078,
13,
8189,
13,
7416,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
11748,
278,
369,
701,
395,
1600,
11593,
7753,
834,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16018,
796,
12972,
13,
9288,
13,
11250,
13,
19722,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3038,
796,
12972,
13,
9288,
13,
11250,
13,
2860,
25811,
7203,
11246,
8738,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16018,
10786,
438,
11246,
8738,
3256,
2223,
2625,
8095,
62,
7942,
1600,
2244,
2625,
11246,
8738,
1600,
4277,
28,
25101,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1233,
62,
81,
27261,
62,
19150,
796,
37250,
40720,
15908,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
29373,
3689,
1600,
3038,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
11250,
2393,
1775,
422,
369,
701,
395,
1600,
12972,
13,
9288,
13,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
13,
13564,
7,
9078,
13,
8189,
13,
7416,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
11,
369,
701,
395,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
16,
33529,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
11250,
422,
1332,
62,
16,
1600,
12972,
13,
9288,
13,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
1102,
701,
395,
422,
1332,
62,
16,
1600,
369,
701,
395,
13,
834,
7753,
834,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
9288,
62,
16,
25,
12972,
13,
9288,
13,
11250,
13,
18076,
13,
11246,
8738,
1600,
12972,
13,
9288,
13,
11250,
13,
18076,
13,
11246,
8738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
9288,
62,
16,
25,
369,
701,
395,
1600,
369,
701,
395,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
366,
9288,
62,
16,
25,
369,
701,
395,
13,
18076,
13,
11246,
8738,
1600,
369,
701,
395,
13,
18076,
13,
11246,
8738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
369,
701,
395,
13,
18076,
13,
11246,
8738,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
10786,
12,
67,
3256,
705,
438,
17602,
28,
79,
9654,
3256,
279,
16,
11,
705,
438,
11246,
8738,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
796,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
16,
3804,
9,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628,
220,
220,
220,
825,
1332,
62,
805,
20760,
3558,
62,
1462,
62,
505,
62,
79,
9654,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
15,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
482,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
48267,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
31373,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13538,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
11,
705,
12,
67,
3256,
705,
438,
17602,
28,
79,
9654,
3256,
705,
438,
17602,
28,
79,
9654,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
16,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
17,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
17,
4054,
11,
352,
3804,
11,
352,
26684,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
628,
220,
220,
220,
825,
1332,
62,
17080,
62,
1102,
701,
395,
62,
23599,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
15,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
482,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
48267,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
31373,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13538,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1332,
15908,
13,
15883,
1102,
701,
395,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
9288,
62,
18076,
62,
17602,
796,
705,
79,
9654,
1461,
268,
1461,
268,
4458,
35312,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
11,
705,
12,
67,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
16,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
17,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
18,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
17,
4054,
11,
352,
3804,
11,
352,
26684,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
628,
220,
220,
220,
825,
1332,
62,
17080,
62,
41989,
62,
4480,
62,
6098,
1077,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
468,
35226,
7,
9078,
13,
19282,
13,
418,
11,
705,
12728,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
3919,
28686,
13,
12728,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
15,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
482,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
48267,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
31373,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
6098,
1077,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
640,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
28686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
15,
13,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
12728,
7,
418,
13,
1136,
35317,
22784,
1315,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
11,
705,
12,
67,
3256,
705,
438,
17602,
28,
18,
9,
79,
9654,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
79,
9654,
9,
37906,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
17440,
866,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
18,
4054,
11,
352,
3804,
11,
352,
26684,
9,
1,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
352,
628,
220,
220,
220,
825,
1332,
62,
17080,
3890,
62,
81,
28869,
10210,
17062,
62,
20688,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2723,
796,
1332,
15908,
13,
28015,
15908,
7203,
10459,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2244,
796,
1332,
15908,
13,
28015,
15908,
7203,
16520,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
850,
15908,
796,
2723,
13,
28015,
15908,
7203,
20688,
62,
35339,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
850,
15908,
13,
641,
495,
7203,
834,
15003,
834,
13,
9078,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
279,
796,
850,
15908,
13,
22179,
7203,
9288,
62,
505,
13,
9078,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
279,
13,
13564,
7203,
4299,
1332,
62,
20,
33529,
6818,
407,
11593,
7753,
834,
13,
9688,
2032,
342,
7,
4,
81,
16725,
4064,
965,
7,
79,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7203,
12,
67,
1600,
366,
438,
81,
28869,
10210,
343,
28,
4,
7,
7266,
15908,
8,
82,
1,
4064,
17205,
22784,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
438,
17602,
28,
79,
9654,
1003,
354,
15908,
28,
4,
7,
16520,
8,
82,
1,
4064,
17205,
22784,
279,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
1255,
13,
1186,
6624,
657,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
16,
9,
1635,
79,
9654,
9,
24254,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1,
6998,
13361,
10434,
25,
685,
38,
16,
60,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1,
6998,
13361,
18467,
1348,
25,
685,
38,
16,
60,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
16,
3804,
9,
1,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
2244,
13,
22179,
7,
7266,
15908,
13,
12093,
12453,
737,
9122,
7,
15908,
28,
16,
8,
628,
220,
220,
220,
825,
1332,
62,
17080,
62,
27379,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
16795,
1010,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1438,
287,
5855,
29412,
17,
13,
19,
1600,
366,
29412,
17,
13,
20,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
987,
79,
796,
12972,
13,
6978,
13,
12001,
13,
17597,
19796,
7,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
987,
79,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
4,
82,
407,
1043,
1,
4064,
1438,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16795,
1010,
13,
33295,
7,
3849,
79,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1332,
15908,
13,
15883,
9078,
7753,
7,
834,
15003,
834,
2625,
1600,
1332,
62,
505,
2625,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
25064,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
31373,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
36521,
82,
986,
4,
82,
1,
4064,
25064,
13,
9641,
62,
10951,
58,
25,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
657,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
796,
14631,
438,
17080,
28,
27379,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
15853,
14631,
438,
17602,
1600,
366,
79,
9654,
1003,
29412,
28,
4,
82,
1,
4064,
16795,
1010,
58,
15,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
26498,
15853,
14631,
438,
17602,
1600,
366,
79,
9654,
1003,
29412,
28,
4,
82,
1,
4064,
16795,
1010,
58,
16,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
46491,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
7,
14692,
17,
986,
19,
8973,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
7,
14692,
17,
986,
20,
8973,
8,
628,
198,
4871,
6208,
9492,
5275,
25,
198,
220,
220,
220,
825,
651,
48183,
7,
944,
11,
45218,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
613,
87,
806,
796,
12972,
13,
9288,
13,
11748,
669,
74,
541,
7203,
24900,
806,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1615,
316,
45787,
796,
45218,
15908,
13,
28015,
15908,
7203,
12093,
316,
45787,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
825,
10922,
7,
28758,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
23991,
1343,
366,
1377,
12093,
316,
45787,
2625,
1343,
965,
7,
12093,
316,
45787,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
613,
87,
806,
13,
48183,
7,
28758,
11,
2604,
7753,
28,
22065,
15908,
13,
22179,
7203,
48183,
13,
448,
11074,
9654,
7203,
86,
48774,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10922,
628,
220,
220,
220,
825,
4433,
24900,
806,
7,
944,
11,
2196,
62,
27938,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
613,
87,
806,
796,
12972,
13,
9288,
13,
11748,
669,
74,
541,
7203,
24900,
806,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
3326,
796,
46545,
7,
8899,
7,
600,
11,
613,
87,
806,
13,
834,
9641,
834,
13,
35312,
7203,
526,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3326,
1279,
2196,
62,
27938,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12972,
13,
9288,
13,
48267,
7203,
24900,
806,
2196,
4064,
82,
2622,
1,
4064,
7203,
526,
13,
22179,
7,
8899,
7,
2536,
11,
2196,
62,
27938,
35514,
198,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
825,
1332,
62,
79,
9945,
62,
3849,
2673,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
47911,
24900,
806,
19510,
17,
11,
18,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
10922,
796,
2116,
13,
11407,
79,
3832,
7,
9288,
15908,
13,
22065,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
1312,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
796,
10922,
7203,
4,
82,
4064,
82,
1377,
79,
9945,
4064,
82,
1,
4064,
357,
9078,
13,
19282,
13,
17597,
13,
18558,
18187,
11,
12972,
9288,
6978,
11,
279,
16,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
48678,
796,
25703,
9782,
34694,
12425,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9410,
13,
1069,
806,
7,
1911,
9,
4299,
1332,
62,
16,
15885,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7,
1911,
9,
72,
796,
657,
15885,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
7,
47,
9945,
8,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
21280,
68,
1659,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
16,
4054,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1200,
13,
28456,
425,
33529,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
17077,
3419,
628,
220,
220,
220,
825,
1332,
62,
36439,
62,
26268,
261,
32165,
62,
3849,
2673,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
10922,
796,
2116,
13,
11407,
79,
3832,
7,
9288,
15908,
13,
22065,
15908,
8,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
352,
6624,
657,
220,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
13,
2617,
76,
2435,
7,
79,
16,
13,
76,
2435,
3419,
532,
2026,
13,
15,
8,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
796,
10922,
7203,
4,
82,
4064,
82,
1377,
26268,
261,
32165,
4064,
82,
1,
4064,
357,
9078,
13,
19282,
13,
17597,
13,
18558,
18187,
11,
12972,
9288,
6978,
11,
279,
16,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
48678,
796,
25703,
9782,
34694,
12425,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
30493,
352,
6624,
657,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
9288,
62,
36439,
62,
26268,
261,
32165,
62,
3849,
2673,
13,
9078,
25,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
16,
4054,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
10247,
1780,
329,
2458,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
13,
13564,
7,
9078,
13,
8189,
13,
7416,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
16,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
352,
6624,
352,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
33365,
28343,
15885,
9288,
62,
36439,
62,
26268,
261,
32165,
62,
3849,
2673,
13,
9078,
1600,
26827,
28,
19,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
1069,
806,
7203,
16,
3804,
1600,
26827,
28,
20,
13,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1200,
13,
12728,
7,
1314,
8,
198,
220,
220,
220,
220,
220,
220,
220,
198,
4871,
6208,
9218,
3526,
9492,
3622,
25,
220,
198,
220,
220,
220,
825,
1332,
62,
49309,
62,
259,
62,
9288,
8818,
7,
944,
11,
1332,
15908,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
279,
16,
796,
1332,
15908,
13,
15883,
9078,
7753,
7203,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
12972,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
32165,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
1332,
62,
3849,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
31973,
9492,
3622,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
13538,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1332,
15908,
13,
5143,
9078,
9288,
7,
79,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
13,
19282,
448,
13,
22184,
15699,
62,
6615,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1,
9,
9288,
62,
3849,
3419,
23255,
49,
8577,
36493,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
20373,
8202,
9795,
23255,
49,
8577,
51,
9,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9,
16,
4054,
9,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
33761,
628
] | 1.799743 | 9,323 |
from utils import ListNode
class Solution:
def remove_nth_from_end(self, head: ListNode, n: int) -> ListNode:
if not head:
return
ans = ListNode(0)
ans.next = head
fast, slow = ans, ans
for _ in range(n + 1):
fast = fast.next
while fast.next:
fast = fast.next
slow = slow.next
slow.next = slow.next.next
return ans.next
| [
6738,
3384,
4487,
1330,
7343,
19667,
628,
198,
4871,
28186,
25,
198,
220,
220,
220,
825,
4781,
62,
77,
400,
62,
6738,
62,
437,
7,
944,
11,
1182,
25,
7343,
19667,
11,
299,
25,
493,
8,
4613,
7343,
19667,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1182,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
9093,
796,
7343,
19667,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
9093,
13,
19545,
796,
1182,
198,
220,
220,
220,
220,
220,
220,
220,
3049,
11,
3105,
796,
9093,
11,
9093,
198,
220,
220,
220,
220,
220,
220,
220,
329,
4808,
287,
2837,
7,
77,
1343,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3049,
796,
3049,
13,
19545,
198,
220,
220,
220,
220,
220,
220,
220,
981,
3049,
13,
19545,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3049,
796,
3049,
13,
19545,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3105,
796,
3105,
13,
19545,
198,
220,
220,
220,
220,
220,
220,
220,
3105,
13,
19545,
796,
3105,
13,
19545,
13,
19545,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
9093,
13,
19545,
198
] | 2 | 219 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-24 18:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("thiamsu", "0010_auto_20171124_1825")]
operations = [
migrations.AlterUniqueTogether(
name="approvedtranslation", unique_together=set([])
),
migrations.RemoveField(model_name="approvedtranslation", name="reviewer"),
migrations.RemoveField(model_name="approvedtranslation", name="song"),
migrations.RemoveField(model_name="approvedtranslation", name="translation"),
migrations.DeleteModel(name="ApprovedTranslation"),
]
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
2980,
515,
416,
37770,
352,
13,
1157,
13,
20,
319,
2177,
12,
1157,
12,
1731,
1248,
25,
1983,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
628,
198,
4871,
36991,
7,
76,
3692,
602,
13,
44,
4254,
2599,
628,
220,
220,
220,
20086,
796,
685,
7203,
400,
1789,
2385,
1600,
366,
37187,
62,
23736,
62,
1264,
4869,
17464,
62,
1507,
1495,
4943,
60,
628,
220,
220,
220,
4560,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
2348,
353,
40257,
41631,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2625,
29137,
41519,
1600,
3748,
62,
45525,
28,
2617,
26933,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
27914,
15878,
7,
19849,
62,
3672,
2625,
29137,
41519,
1600,
1438,
2625,
19023,
263,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
27914,
15878,
7,
19849,
62,
3672,
2625,
29137,
41519,
1600,
1438,
2625,
34050,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
27914,
15878,
7,
19849,
62,
3672,
2625,
29137,
41519,
1600,
1438,
2625,
41519,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
38727,
17633,
7,
3672,
2625,
4677,
305,
1079,
48313,
12340,
198,
220,
220,
220,
2361,
198
] | 2.792 | 250 |
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
from graphviz import Digraph
def draw():
g = Digraph('Nematoda Key', comment="FOO",filename = 'NematodaKey.gv')#, node_attr={'color': 'lightblue2', 'style': 'filled'} )
g.graph_attr['rankdir'] = 'LR'
g.node('001', label='Phylum\nNematoda',fillcolor='red',style="filled")
g.node('Class\nChromadorea', shape='doubleoctagon', color='blue', fillcolor='aquamarine3',style="rounded,filled")
g.node('Class\nEnoplea', shape='doubleoctagon', color='blue', fillcolor='aquamarine3',style="rounded,filled")
g.edge('001','Amphids')
g.edge('001','Cuticle')
g.edge('001','Phasmids')
g.edge('001','Esophagus')
g.edge('001','Excretory\nSystem')
g.edge('001','Females')
g.edge('001','Caudal\nAlae')
g.edge('001','Males')
g.edge('Amphids','Class\nChromadorea', label='Labial\npost-labial\npore-like\nslit-like\nelaborate coils\nspirals')
g.edge('Cuticle','Class\nChromadorea', label='annulated\nornamented with\nprojections and setae.')
g.edge('Phasmids','Class\nChromadorea', label='Distinct\nor indistinct\nposterior')
g.edge('Esophagus','Class\nChromadorea', label='Divided into bulbs\n3 to 5 esophageal glands')
g.edge('Excretory\nSystem','Class\nChromadorea', label='Glandular\nor tubular.')
g.edge('Females','Class\nChromadorea', label='One or\n two ovaries.')
g.edge('Caudal\nAlae','Class\nChromadorea', label='Present or\nabsent')
g.edge('Amphids','Class\nEnoplea', label='Pocket like\nnot spiral\npost-labial')
g.edge('Cuticle','Class\nEnoplea', label='Smooth or\nfinely striated')
g.edge('Phasmids','Class\nEnoplea', label='Present or\nabsent')
g.edge('Esophagus','Class\nEnoplea', label='Cylindrical or bottle-shaped\n3 to 5 esophageal glands\nstichosome\nor trophosome')
g.edge('Excretory\nSystem','Class\nEnoplea', label='Simple non-tubular\nSingle cell')
g.edge('Females','Class\nEnoplea', label='Two ovaries')
g.edge('Males','Class\nEnoplea', label='Two testes.')
g.edge('Caudal\nAlae','Class\nEnoplea', label='Rare')
g.render('NematodaKey.gv', format='svg', view=True)
g.render('NematodaKey.gv', format='jpg', view=False)
g.render('NematodaKey.gv', format='pdf', view=False)
def main():
# Use a breakpoint in the code line below to debug your script.
draw()
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
main()
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
| [
2,
770,
318,
257,
6291,
11361,
4226,
13,
198,
198,
2,
4332,
15576,
10,
37,
940,
284,
12260,
340,
393,
6330,
340,
351,
534,
2438,
13,
198,
2,
4332,
11198,
15576,
284,
2989,
8347,
329,
6097,
11,
3696,
11,
2891,
9168,
11,
4028,
11,
290,
6460,
13,
198,
6738,
4823,
85,
528,
1330,
7367,
1470,
198,
4299,
3197,
33529,
628,
220,
220,
220,
308,
796,
7367,
1470,
10786,
45,
368,
265,
11329,
7383,
3256,
2912,
2625,
6080,
46,
1600,
34345,
796,
705,
45,
368,
265,
11329,
9218,
13,
70,
85,
11537,
2,
11,
10139,
62,
35226,
34758,
6,
8043,
10354,
705,
2971,
17585,
17,
3256,
705,
7635,
10354,
705,
20286,
6,
92,
1267,
198,
220,
220,
220,
308,
13,
34960,
62,
35226,
17816,
43027,
15908,
20520,
796,
705,
35972,
6,
628,
198,
220,
220,
220,
308,
13,
17440,
10786,
8298,
3256,
6167,
11639,
2725,
11183,
59,
77,
45,
368,
265,
11329,
3256,
20797,
8043,
11639,
445,
3256,
7635,
2625,
20286,
4943,
198,
220,
220,
220,
308,
13,
17440,
10786,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
5485,
11639,
23352,
38441,
1840,
3256,
3124,
11639,
17585,
3256,
6070,
8043,
11639,
36129,
321,
34569,
18,
3256,
7635,
2625,
39262,
11,
20286,
4943,
198,
220,
220,
220,
308,
13,
17440,
10786,
9487,
59,
77,
4834,
643,
64,
3256,
5485,
11639,
23352,
38441,
1840,
3256,
3124,
11639,
17585,
3256,
6070,
8043,
11639,
36129,
321,
34569,
18,
3256,
7635,
2625,
39262,
11,
20286,
4943,
628,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
5840,
746,
2340,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
26254,
1548,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
2725,
8597,
2340,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
23041,
2522,
31111,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
40127,
1186,
652,
59,
77,
11964,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
37,
368,
2040,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
34,
3885,
282,
59,
77,
2348,
3609,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
8298,
41707,
44,
2040,
11537,
628,
198,
220,
220,
220,
308,
13,
14907,
10786,
5840,
746,
2340,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
17822,
498,
59,
77,
7353,
12,
23912,
498,
59,
37659,
382,
12,
2339,
59,
5907,
18250,
12,
2339,
59,
4954,
4820,
378,
41331,
59,
77,
45564,
874,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
26254,
1548,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
1236,
4817,
59,
77,
1211,
3263,
276,
351,
59,
77,
16302,
507,
290,
900,
3609,
2637,
8,
198,
220,
220,
220,
308,
13,
14907,
10786,
2725,
8597,
2340,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
20344,
4612,
59,
13099,
37665,
4612,
59,
37659,
6197,
1504,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
23041,
2522,
31111,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
24095,
1384,
656,
34122,
59,
77,
18,
284,
642,
1658,
2522,
496,
282,
42093,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
40127,
1186,
652,
59,
77,
11964,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
38,
1044,
934,
59,
13099,
12202,
934,
2637,
8,
198,
220,
220,
220,
308,
13,
14907,
10786,
37,
368,
2040,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
3198,
393,
59,
77,
734,
19643,
3166,
2637,
8,
198,
220,
220,
220,
308,
13,
14907,
10786,
34,
3885,
282,
59,
77,
2348,
3609,
41707,
9487,
59,
77,
1925,
398,
324,
46215,
3256,
6167,
11639,
34695,
393,
59,
77,
8937,
298,
11537,
628,
220,
220,
220,
308,
13,
14907,
10786,
5840,
746,
2340,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
45454,
588,
59,
77,
1662,
23642,
59,
77,
7353,
12,
23912,
498,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
26254,
1548,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
7556,
5226,
393,
59,
77,
38125,
306,
2338,
515,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
2725,
8597,
2340,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
34695,
393,
59,
77,
8937,
298,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
23041,
2522,
31111,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
34,
2645,
521,
8143,
393,
9294,
12,
16760,
59,
77,
18,
284,
642,
1658,
2522,
496,
282,
42093,
59,
77,
301,
488,
418,
462,
59,
13099,
4161,
746,
418,
462,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
40127,
1186,
652,
59,
77,
11964,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
26437,
1729,
12,
37995,
934,
59,
77,
28008,
2685,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
37,
368,
2040,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
7571,
19643,
3166,
11537,
198,
220,
220,
220,
308,
13,
14907,
10786,
44,
2040,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
7571,
1332,
274,
2637,
8,
198,
220,
220,
220,
308,
13,
14907,
10786,
34,
3885,
282,
59,
77,
2348,
3609,
41707,
9487,
59,
77,
4834,
643,
64,
3256,
6167,
11639,
26737,
11537,
628,
628,
220,
220,
220,
308,
13,
13287,
10786,
45,
368,
265,
11329,
9218,
13,
70,
85,
3256,
5794,
11639,
21370,
70,
3256,
1570,
28,
17821,
8,
198,
220,
220,
220,
308,
13,
13287,
10786,
45,
368,
265,
11329,
9218,
13,
70,
85,
3256,
5794,
11639,
9479,
3256,
1570,
28,
25101,
8,
198,
220,
220,
220,
308,
13,
13287,
10786,
45,
368,
265,
11329,
9218,
13,
70,
85,
3256,
5794,
11639,
12315,
3256,
1570,
28,
25101,
8,
198,
198,
4299,
1388,
33529,
198,
220,
220,
220,
1303,
5765,
257,
2270,
4122,
287,
262,
2438,
1627,
2174,
284,
14257,
534,
4226,
13,
198,
220,
220,
220,
3197,
3419,
628,
198,
2,
4332,
262,
4077,
4936,
287,
262,
308,
10381,
284,
1057,
262,
4226,
13,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198,
198,
2,
4091,
9485,
1925,
1670,
1037,
379,
3740,
1378,
2503,
13,
31173,
1671,
1299,
13,
785,
14,
16794,
14,
9078,
354,
1670,
14,
198
] | 2.565217 | 1,035 |
import json
import socketserver
import threading
import time
from http.server import BaseHTTPRequestHandler, HTTPServer
from io import BytesIO
from pathlib import Path
import sys
from socketserver import ThreadingMixIn
from time import sleep
import depthai as dai
import numpy as np
import cv2
from PIL import Image
import blobconverter
HTTP_SERVER_PORT = 8090
class TCPServerRequest(socketserver.BaseRequestHandler):
def handle(self):
# Handle is called each time a client is connected
# When OpenDataCam connects, do not return - instead keep the connection open and keep streaming data
# First send HTTP header
header = 'HTTP/1.0 200 OK\r\nServer: Mozarella/2.2\r\nAccept-Range: bytes\r\nConnection: close\r\nMax-Age: 0\r\nExpires: 0\r\nCache-Control: no-cache, private\r\nPragma: no-cache\r\nContent-Type: application/json\r\n\r\n'
self.request.send(header.encode())
while True:
sleep(0.1)
if hasattr(self.server, 'datatosend'):
self.request.send(self.server.datatosend.encode() + "\r\n".encode())
# HTTPServer MJPEG
class VideoStreamHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-type', 'multipart/x-mixed-replace; boundary=--jpgboundary')
self.end_headers()
while True:
sleep(0.1)
if hasattr(self.server, 'frametosend'):
image = Image.fromarray(cv2.cvtColor(self.server.frametosend, cv2.COLOR_BGR2RGB))
stream_file = BytesIO()
image.save(stream_file, 'JPEG')
self.wfile.write("--jpgboundary".encode())
self.send_header('Content-type', 'image/jpeg')
self.send_header('Content-length', str(stream_file.getbuffer().nbytes))
self.end_headers()
image.save(self.wfile, 'JPEG')
class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
"""Handle requests in a separate thread."""
pass
# start TCP data server
server_TCP = socketserver.TCPServer(('localhost', 8070), TCPServerRequest)
th = threading.Thread(target=server_TCP.serve_forever)
th.daemon = True
th.start()
# start MJPEG HTTP Server
server_HTTP = ThreadedHTTPServer(('localhost', HTTP_SERVER_PORT), VideoStreamHandler)
th2 = threading.Thread(target=server_HTTP.serve_forever)
th2.daemon = True
th2.start()
# MobilenetSSD label texts
labelMap = ["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow",
"diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"]
syncNN = True
def create_pipeline(depth):
# Start defining a pipeline
pipeline = dai.Pipeline()
pipeline.setOpenVINOVersion(version=dai.OpenVINO.Version.VERSION_2021_2)
# Define a source - color camera
colorCam = pipeline.createColorCamera()
if depth:
mobilenet = pipeline.createMobileNetSpatialDetectionNetwork()
monoLeft = pipeline.createMonoCamera()
monoRight = pipeline.createMonoCamera()
stereo = pipeline.createStereoDepth()
else:
mobilenet = pipeline.createMobileNetDetectionNetwork()
colorCam.setPreviewSize(300, 300)
colorCam.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
colorCam.setInterleaved(False)
colorCam.setColorOrder(dai.ColorCameraProperties.ColorOrder.BGR)
mobilenet.setBlobPath(blobconverter.from_zoo("mobilenet-ssd", shaves=6, version="2021.2"))
mobilenet.setConfidenceThreshold(0.5)
mobilenet.input.setBlocking(False)
if depth:
monoLeft.setResolution(dai.MonoCameraProperties.SensorResolution.THE_400_P)
monoLeft.setBoardSocket(dai.CameraBoardSocket.LEFT)
monoRight.setResolution(dai.MonoCameraProperties.SensorResolution.THE_400_P)
monoRight.setBoardSocket(dai.CameraBoardSocket.RIGHT)
# Setting node configs
stereo.initialConfig.setConfidenceThreshold(255)
stereo.depth.link(mobilenet.inputDepth)
mobilenet.setBoundingBoxScaleFactor(0.5)
mobilenet.setDepthLowerThreshold(100)
mobilenet.setDepthUpperThreshold(5000)
monoLeft.out.link(stereo.left)
monoRight.out.link(stereo.right)
xoutRgb = pipeline.createXLinkOut()
xoutRgb.setStreamName("rgb")
colorCam.preview.link(mobilenet.input)
if syncNN:
mobilenet.passthrough.link(xoutRgb.input)
else:
colorCam.preview.link(xoutRgb.input)
xoutNN = pipeline.createXLinkOut()
xoutNN.setStreamName("detections")
mobilenet.out.link(xoutNN.input)
if depth:
xoutBoundingBoxDepthMapping = pipeline.createXLinkOut()
xoutBoundingBoxDepthMapping.setStreamName("boundingBoxDepthMapping")
mobilenet.boundingBoxMapping.link(xoutBoundingBoxDepthMapping.input)
xoutDepth = pipeline.createXLinkOut()
xoutDepth.setStreamName("depth")
mobilenet.passthroughDepth.link(xoutDepth.input)
return pipeline
# Pipeline is defined, now we can connect to the device
with dai.Device(dai.OpenVINO.Version.VERSION_2021_2) as device:
cams = device.getConnectedCameras()
depth_enabled = dai.CameraBoardSocket.LEFT in cams and dai.CameraBoardSocket.RIGHT in cams
# Start pipeline
device.startPipeline(create_pipeline(depth_enabled))
print(f"DepthAI is up & running. Navigate to 'localhost:{str(HTTP_SERVER_PORT)}' with Chrome to see the mjpeg stream")
# Output queues will be used to get the rgb frames and nn data from the outputs defined above
previewQueue = device.getOutputQueue(name="rgb", maxSize=4, blocking=False)
detectionNNQueue = device.getOutputQueue(name="detections", maxSize=4, blocking=False)
if depth_enabled:
xoutBoundingBoxDepthMapping = device.getOutputQueue(name="boundingBoxDepthMapping", maxSize=4, blocking=False)
depthQueue = device.getOutputQueue(name="depth", maxSize=4, blocking=False)
frame = None
detections = []
startTime = time.monotonic()
counter = 0
fps = 0
color = (255, 255, 255)
while True:
inPreview = previewQueue.get()
frame = inPreview.getCvFrame()
inNN = detectionNNQueue.get()
detections = inNN.detections
counter+=1
current_time = time.monotonic()
if (current_time - startTime) > 1 :
fps = counter / (current_time - startTime)
counter = 0
startTime = current_time
if depth_enabled:
depth = depthQueue.get()
depthFrame = depth.getFrame()
depthFrameColor = cv2.normalize(depthFrame, None, 255, 0, cv2.NORM_INF, cv2.CV_8UC1)
depthFrameColor = cv2.equalizeHist(depthFrameColor)
depthFrameColor = cv2.applyColorMap(depthFrameColor, cv2.COLORMAP_HOT)
if len(detections) != 0:
boundingBoxMapping = xoutBoundingBoxDepthMapping.get()
roiDatas = boundingBoxMapping.getConfigData()
for roiData in roiDatas:
roi = roiData.roi
roi = roi.denormalize(depthFrameColor.shape[1], depthFrameColor.shape[0])
topLeft = roi.topLeft()
bottomRight = roi.bottomRight()
xmin = int(topLeft.x)
ymin = int(topLeft.y)
xmax = int(bottomRight.x)
ymax = int(bottomRight.y)
cv2.rectangle(depthFrameColor, (xmin, ymin), (xmax, ymax), color, cv2.FONT_HERSHEY_SCRIPT_SIMPLEX)
# If the frame is available, draw bounding boxes on it and show the frame
height = frame.shape[0]
width = frame.shape[1]
for detection in detections:
# Denormalize bounding box
x1 = int(detection.xmin * width)
x2 = int(detection.xmax * width)
y1 = int(detection.ymin * height)
y2 = int(detection.ymax * height)
try:
label = labelMap[detection.label]
except:
label = detection.label
cv2.putText(frame, str(label), (x1 + 10, y1 + 20), cv2.FONT_HERSHEY_TRIPLEX, 0.5, color)
cv2.putText(frame, "{:.2f}".format(detection.confidence*100), (x1 + 10, y1 + 35), cv2.FONT_HERSHEY_TRIPLEX, 0.5, color)
if depth_enabled:
cv2.putText(frame, f"X: {int(detection.spatialCoordinates.x)} mm", (x1 + 10, y1 + 50), cv2.FONT_HERSHEY_TRIPLEX, 0.5, color)
cv2.putText(frame, f"Y: {int(detection.spatialCoordinates.y)} mm", (x1 + 10, y1 + 65), cv2.FONT_HERSHEY_TRIPLEX, 0.5, color)
cv2.putText(frame, f"Z: {int(detection.spatialCoordinates.z)} mm", (x1 + 10, y1 + 80), cv2.FONT_HERSHEY_TRIPLEX, 0.5, color)
cv2.rectangle(frame, (x1, y1), (x2, y2), color, cv2.FONT_HERSHEY_SIMPLEX)
server_TCP.datatosend = str(label) + "," + f"{int(detection.confidence * 100)}%"
cv2.putText(frame, "NN fps: {:.2f}".format(fps), (2, frame.shape[0] - 4), cv2.FONT_HERSHEY_TRIPLEX, 0.4, color)
if depth_enabled:
new_width = int(depthFrameColor.shape[1] * (frame.shape[0] / depthFrameColor.shape[0]))
stacked = np.hstack([frame, cv2.resize(depthFrameColor, (new_width, frame.shape[0]))])
cv2.imshow("stacked", stacked)
server_HTTP.frametosend = stacked
else:
cv2.imshow("frame", frame)
server_HTTP.frametosend = frame
if cv2.waitKey(1) == ord('q'):
break
| [
11748,
33918,
198,
11748,
37037,
18497,
198,
11748,
4704,
278,
198,
11748,
640,
198,
6738,
2638,
13,
15388,
1330,
7308,
40717,
18453,
25060,
11,
38288,
18497,
198,
6738,
33245,
1330,
2750,
4879,
9399,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
25064,
198,
6738,
37037,
18497,
1330,
14122,
278,
35608,
818,
198,
6738,
640,
1330,
3993,
198,
11748,
6795,
1872,
355,
288,
1872,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
269,
85,
17,
198,
6738,
350,
4146,
1330,
7412,
198,
11748,
44812,
1102,
332,
353,
198,
198,
40717,
62,
35009,
5959,
62,
15490,
796,
807,
42534,
198,
198,
4871,
17283,
3705,
18497,
18453,
7,
82,
11603,
18497,
13,
14881,
18453,
25060,
2599,
198,
220,
220,
220,
825,
5412,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
33141,
318,
1444,
1123,
640,
257,
5456,
318,
5884,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1649,
4946,
6601,
21701,
20417,
11,
466,
407,
1441,
532,
2427,
1394,
262,
4637,
1280,
290,
1394,
11305,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
3274,
3758,
14626,
13639,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
796,
705,
40717,
14,
16,
13,
15,
939,
7477,
59,
81,
59,
77,
10697,
25,
28036,
45494,
14,
17,
13,
17,
59,
81,
59,
77,
38855,
12,
17257,
25,
9881,
59,
81,
59,
77,
32048,
25,
1969,
59,
81,
59,
77,
11518,
12,
23396,
25,
657,
59,
81,
59,
77,
16870,
2387,
25,
657,
59,
81,
59,
77,
30562,
12,
15988,
25,
645,
12,
23870,
11,
2839,
59,
81,
59,
77,
6836,
363,
2611,
25,
645,
12,
23870,
59,
81,
59,
77,
19746,
12,
6030,
25,
3586,
14,
17752,
59,
81,
59,
77,
59,
81,
59,
77,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25927,
13,
21280,
7,
25677,
13,
268,
8189,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3993,
7,
15,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
944,
13,
15388,
11,
705,
19608,
35492,
437,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
25927,
13,
21280,
7,
944,
13,
15388,
13,
19608,
35492,
437,
13,
268,
8189,
3419,
1343,
37082,
81,
59,
77,
1911,
268,
8189,
28955,
628,
198,
2,
38288,
18497,
337,
12889,
7156,
198,
4871,
7623,
12124,
25060,
7,
14881,
40717,
18453,
25060,
2599,
198,
220,
220,
220,
825,
466,
62,
18851,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
21280,
62,
26209,
7,
2167,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
21280,
62,
25677,
10786,
19746,
12,
4906,
3256,
705,
16680,
541,
433,
14,
87,
12,
76,
2966,
12,
33491,
26,
18645,
28,
438,
9479,
7784,
560,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
437,
62,
50145,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3993,
7,
15,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
944,
13,
15388,
11,
705,
19298,
316,
418,
437,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
796,
7412,
13,
6738,
18747,
7,
33967,
17,
13,
33967,
83,
10258,
7,
944,
13,
15388,
13,
19298,
316,
418,
437,
11,
269,
85,
17,
13,
46786,
62,
33,
10761,
17,
36982,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4269,
62,
7753,
796,
2750,
4879,
9399,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
13,
21928,
7,
5532,
62,
7753,
11,
705,
12889,
7156,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
86,
7753,
13,
13564,
7203,
438,
9479,
7784,
560,
1911,
268,
8189,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
21280,
62,
25677,
10786,
19746,
12,
4906,
3256,
705,
9060,
14,
73,
22071,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
21280,
62,
25677,
10786,
19746,
12,
13664,
3256,
965,
7,
5532,
62,
7753,
13,
1136,
22252,
22446,
77,
33661,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
437,
62,
50145,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
13,
21928,
7,
944,
13,
86,
7753,
11,
705,
12889,
7156,
11537,
628,
198,
4871,
14122,
276,
6535,
28820,
18497,
7,
16818,
278,
35608,
818,
11,
38288,
18497,
2599,
198,
220,
220,
220,
37227,
37508,
7007,
287,
257,
4553,
4704,
526,
15931,
198,
220,
220,
220,
1208,
628,
198,
2,
923,
23633,
1366,
4382,
198,
15388,
62,
4825,
47,
796,
37037,
18497,
13,
4825,
3705,
18497,
7,
10786,
36750,
3256,
4019,
2154,
828,
17283,
3705,
18497,
18453,
8,
198,
400,
796,
4704,
278,
13,
16818,
7,
16793,
28,
15388,
62,
4825,
47,
13,
2655,
303,
62,
754,
332,
8,
198,
400,
13,
6814,
7966,
796,
6407,
198,
400,
13,
9688,
3419,
628,
198,
2,
923,
337,
12889,
7156,
14626,
9652,
198,
15388,
62,
40717,
796,
14122,
276,
6535,
28820,
18497,
7,
10786,
36750,
3256,
14626,
62,
35009,
5959,
62,
15490,
828,
7623,
12124,
25060,
8,
198,
400,
17,
796,
4704,
278,
13,
16818,
7,
16793,
28,
15388,
62,
40717,
13,
2655,
303,
62,
754,
332,
8,
198,
400,
17,
13,
6814,
7966,
796,
6407,
198,
400,
17,
13,
9688,
3419,
628,
198,
198,
2,
45951,
268,
316,
5432,
35,
6167,
13399,
198,
18242,
13912,
796,
14631,
25249,
1600,
366,
25534,
20106,
1531,
1600,
366,
65,
35298,
1600,
366,
16944,
1600,
366,
24482,
1600,
366,
10985,
293,
1600,
366,
10885,
1600,
366,
7718,
1600,
366,
9246,
1600,
366,
16337,
1600,
366,
8232,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
67,
3191,
11487,
1600,
366,
9703,
1600,
366,
30527,
1600,
366,
76,
20965,
32256,
1600,
366,
6259,
1600,
366,
79,
8426,
15060,
1600,
366,
7091,
538,
1600,
366,
568,
13331,
1600,
366,
27432,
1600,
366,
14981,
41143,
8973,
198,
198,
27261,
6144,
796,
6407,
198,
198,
4299,
2251,
62,
79,
541,
4470,
7,
18053,
2599,
198,
220,
220,
220,
1303,
7253,
16215,
257,
11523,
198,
220,
220,
220,
11523,
796,
288,
1872,
13,
47,
541,
4470,
3419,
198,
220,
220,
220,
11523,
13,
2617,
11505,
53,
1268,
8874,
6900,
7,
9641,
28,
67,
1872,
13,
11505,
53,
46016,
13,
14815,
13,
43717,
62,
1238,
2481,
62,
17,
8,
198,
220,
220,
220,
1303,
2896,
500,
257,
2723,
532,
3124,
4676,
198,
220,
220,
220,
3124,
21701,
796,
11523,
13,
17953,
10258,
35632,
3419,
198,
220,
220,
220,
611,
6795,
25,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
796,
11523,
13,
17953,
17066,
7934,
4561,
34961,
11242,
3213,
26245,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
18819,
796,
11523,
13,
17953,
9069,
78,
35632,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
11028,
796,
11523,
13,
17953,
9069,
78,
35632,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
24820,
796,
11523,
13,
17953,
1273,
32934,
48791,
3419,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
796,
11523,
13,
17953,
17066,
7934,
11242,
3213,
26245,
3419,
628,
220,
220,
220,
3124,
21701,
13,
2617,
48835,
10699,
7,
6200,
11,
5867,
8,
198,
220,
220,
220,
3124,
21701,
13,
2617,
4965,
2122,
7,
67,
1872,
13,
10258,
35632,
2964,
18200,
13,
47864,
4965,
2122,
13,
10970,
62,
24045,
62,
47,
8,
198,
220,
220,
220,
3124,
21701,
13,
2617,
9492,
293,
9586,
7,
25101,
8,
198,
220,
220,
220,
3124,
21701,
13,
2617,
10258,
18743,
7,
67,
1872,
13,
10258,
35632,
2964,
18200,
13,
10258,
18743,
13,
33,
10761,
8,
628,
220,
220,
220,
17754,
268,
316,
13,
2617,
3629,
672,
15235,
7,
2436,
672,
1102,
332,
353,
13,
6738,
62,
89,
2238,
7203,
76,
25898,
268,
316,
12,
824,
67,
1600,
427,
3080,
28,
21,
11,
2196,
2625,
1238,
2481,
13,
17,
48774,
198,
220,
220,
220,
17754,
268,
316,
13,
2617,
18546,
1704,
817,
10126,
7,
15,
13,
20,
8,
198,
220,
220,
220,
17754,
268,
316,
13,
15414,
13,
2617,
3629,
8629,
7,
25101,
8,
628,
220,
220,
220,
611,
6795,
25,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
18819,
13,
2617,
4965,
2122,
7,
67,
1872,
13,
9069,
78,
35632,
2964,
18200,
13,
47864,
4965,
2122,
13,
10970,
62,
7029,
62,
47,
8,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
18819,
13,
2617,
29828,
39105,
7,
67,
1872,
13,
35632,
29828,
39105,
13,
2538,
9792,
8,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
11028,
13,
2617,
4965,
2122,
7,
67,
1872,
13,
9069,
78,
35632,
2964,
18200,
13,
47864,
4965,
2122,
13,
10970,
62,
7029,
62,
47,
8,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
11028,
13,
2617,
29828,
39105,
7,
67,
1872,
13,
35632,
29828,
39105,
13,
49,
9947,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
25700,
10139,
4566,
82,
198,
220,
220,
220,
220,
220,
220,
220,
24820,
13,
36733,
16934,
13,
2617,
18546,
1704,
817,
10126,
7,
13381,
8,
198,
220,
220,
220,
220,
220,
220,
220,
24820,
13,
18053,
13,
8726,
7,
76,
25898,
268,
316,
13,
15414,
48791,
8,
628,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
13,
2617,
33,
9969,
14253,
29990,
41384,
7,
15,
13,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
13,
2617,
48791,
31426,
817,
10126,
7,
3064,
8,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
13,
2617,
48791,
52,
2848,
817,
10126,
7,
27641,
8,
628,
220,
220,
220,
220,
220,
220,
220,
33361,
18819,
13,
448,
13,
8726,
7,
301,
32934,
13,
9464,
8,
198,
220,
220,
220,
220,
220,
220,
220,
33361,
11028,
13,
448,
13,
8726,
7,
301,
32934,
13,
3506,
8,
628,
220,
220,
220,
2124,
448,
49,
22296,
796,
11523,
13,
17953,
55,
11280,
7975,
3419,
198,
220,
220,
220,
2124,
448,
49,
22296,
13,
2617,
12124,
5376,
7203,
81,
22296,
4943,
198,
220,
220,
220,
3124,
21701,
13,
3866,
1177,
13,
8726,
7,
76,
25898,
268,
316,
13,
15414,
8,
198,
220,
220,
220,
611,
17510,
6144,
25,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
13,
44429,
48476,
740,
13,
8726,
7,
87,
448,
49,
22296,
13,
15414,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3124,
21701,
13,
3866,
1177,
13,
8726,
7,
87,
448,
49,
22296,
13,
15414,
8,
628,
198,
220,
220,
220,
2124,
448,
6144,
796,
11523,
13,
17953,
55,
11280,
7975,
3419,
198,
220,
220,
220,
2124,
448,
6144,
13,
2617,
12124,
5376,
7203,
15255,
478,
507,
4943,
198,
220,
220,
220,
17754,
268,
316,
13,
448,
13,
8726,
7,
87,
448,
6144,
13,
15414,
8,
628,
220,
220,
220,
611,
6795,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
448,
33,
9969,
14253,
48791,
44,
5912,
796,
11523,
13,
17953,
55,
11280,
7975,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
448,
33,
9969,
14253,
48791,
44,
5912,
13,
2617,
12124,
5376,
7203,
7784,
278,
14253,
48791,
44,
5912,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
13,
7784,
278,
14253,
44,
5912,
13,
8726,
7,
87,
448,
33,
9969,
14253,
48791,
44,
5912,
13,
15414,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2124,
448,
48791,
796,
11523,
13,
17953,
55,
11280,
7975,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
448,
48791,
13,
2617,
12124,
5376,
7203,
18053,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
17754,
268,
316,
13,
44429,
48476,
740,
48791,
13,
8726,
7,
87,
448,
48791,
13,
15414,
8,
628,
220,
220,
220,
1441,
11523,
198,
198,
2,
37709,
318,
5447,
11,
783,
356,
460,
2018,
284,
262,
3335,
198,
4480,
288,
1872,
13,
24728,
7,
67,
1872,
13,
11505,
53,
46016,
13,
14815,
13,
43717,
62,
1238,
2481,
62,
17,
8,
355,
3335,
25,
198,
220,
220,
220,
269,
4105,
796,
3335,
13,
1136,
13313,
276,
34,
2382,
292,
3419,
198,
220,
220,
220,
6795,
62,
25616,
796,
288,
1872,
13,
35632,
29828,
39105,
13,
2538,
9792,
287,
269,
4105,
290,
288,
1872,
13,
35632,
29828,
39105,
13,
49,
9947,
287,
269,
4105,
628,
220,
220,
220,
1303,
7253,
11523,
198,
220,
220,
220,
3335,
13,
9688,
47,
541,
4470,
7,
17953,
62,
79,
541,
4470,
7,
18053,
62,
25616,
4008,
628,
220,
220,
220,
3601,
7,
69,
1,
48791,
20185,
318,
510,
1222,
2491,
13,
13244,
10055,
284,
705,
36750,
29164,
2536,
7,
40717,
62,
35009,
5959,
62,
15490,
38165,
6,
351,
13282,
284,
766,
262,
285,
73,
22071,
4269,
4943,
628,
220,
220,
220,
1303,
25235,
43359,
481,
307,
973,
284,
651,
262,
46140,
13431,
290,
299,
77,
1366,
422,
262,
23862,
5447,
2029,
198,
220,
220,
220,
12714,
34991,
796,
3335,
13,
1136,
26410,
34991,
7,
3672,
2625,
81,
22296,
1600,
3509,
10699,
28,
19,
11,
12013,
28,
25101,
8,
198,
220,
220,
220,
13326,
6144,
34991,
796,
3335,
13,
1136,
26410,
34991,
7,
3672,
2625,
15255,
478,
507,
1600,
3509,
10699,
28,
19,
11,
12013,
28,
25101,
8,
198,
220,
220,
220,
611,
6795,
62,
25616,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
448,
33,
9969,
14253,
48791,
44,
5912,
796,
3335,
13,
1136,
26410,
34991,
7,
3672,
2625,
7784,
278,
14253,
48791,
44,
5912,
1600,
3509,
10699,
28,
19,
11,
12013,
28,
25101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6795,
34991,
796,
3335,
13,
1136,
26410,
34991,
7,
3672,
2625,
18053,
1600,
3509,
10699,
28,
19,
11,
12013,
28,
25101,
8,
628,
220,
220,
220,
5739,
796,
6045,
198,
220,
220,
220,
4886,
507,
796,
17635,
628,
220,
220,
220,
923,
7575,
796,
640,
13,
2144,
313,
9229,
3419,
198,
220,
220,
220,
3753,
796,
657,
198,
220,
220,
220,
32977,
796,
657,
198,
220,
220,
220,
3124,
796,
357,
13381,
11,
14280,
11,
14280,
8,
628,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
287,
48835,
796,
12714,
34991,
13,
1136,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
5739,
796,
287,
48835,
13,
1136,
34,
85,
19778,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
287,
6144,
796,
13326,
6144,
34991,
13,
1136,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4886,
507,
796,
287,
6144,
13,
15255,
478,
507,
628,
220,
220,
220,
220,
220,
220,
220,
3753,
47932,
16,
198,
220,
220,
220,
220,
220,
220,
220,
1459,
62,
2435,
796,
640,
13,
2144,
313,
9229,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
14421,
62,
2435,
532,
923,
7575,
8,
1875,
352,
1058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32977,
796,
3753,
1220,
357,
14421,
62,
2435,
532,
923,
7575,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3753,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
7575,
796,
1459,
62,
2435,
628,
220,
220,
220,
220,
220,
220,
220,
611,
6795,
62,
25616,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6795,
796,
6795,
34991,
13,
1136,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6795,
19778,
796,
6795,
13,
1136,
19778,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6795,
19778,
10258,
796,
269,
85,
17,
13,
11265,
1096,
7,
18053,
19778,
11,
6045,
11,
14280,
11,
657,
11,
269,
85,
17,
13,
35510,
44,
62,
1268,
37,
11,
269,
85,
17,
13,
33538,
62,
23,
9598,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6795,
19778,
10258,
796,
269,
85,
17,
13,
40496,
1096,
13749,
7,
18053,
19778,
10258,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6795,
19778,
10258,
796,
269,
85,
17,
13,
39014,
10258,
13912,
7,
18053,
19778,
10258,
11,
269,
85,
17,
13,
46786,
33767,
62,
39,
2394,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
15255,
478,
507,
8,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5421,
278,
14253,
44,
5912,
796,
2124,
448,
33,
9969,
14253,
48791,
44,
5912,
13,
1136,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
72,
27354,
292,
796,
5421,
278,
14253,
44,
5912,
13,
1136,
16934,
6601,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
686,
72,
6601,
287,
686,
72,
27354,
292,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
72,
796,
686,
72,
6601,
13,
305,
72,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
686,
72,
796,
686,
72,
13,
6559,
6636,
1096,
7,
18053,
19778,
10258,
13,
43358,
58,
16,
4357,
6795,
19778,
10258,
13,
43358,
58,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1353,
18819,
796,
686,
72,
13,
4852,
18819,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4220,
11028,
796,
686,
72,
13,
22487,
11028,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
1084,
796,
493,
7,
4852,
18819,
13,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
1084,
796,
493,
7,
4852,
18819,
13,
88,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
9806,
796,
493,
7,
22487,
11028,
13,
87,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
9806,
796,
493,
7,
22487,
11028,
13,
88,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
2554,
9248,
7,
18053,
19778,
10258,
11,
357,
87,
1084,
11,
331,
1084,
828,
357,
87,
9806,
11,
331,
9806,
828,
3124,
11,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
6173,
46023,
62,
48913,
16437,
55,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
262,
5739,
318,
1695,
11,
3197,
5421,
278,
10559,
319,
340,
290,
905,
262,
5739,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
796,
5739,
13,
43358,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
9647,
220,
796,
5739,
13,
43358,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
329,
13326,
287,
4886,
507,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5601,
6636,
1096,
5421,
278,
3091,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
16,
796,
493,
7,
15255,
3213,
13,
87,
1084,
1635,
9647,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2124,
17,
796,
493,
7,
15255,
3213,
13,
87,
9806,
1635,
9647,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
16,
796,
493,
7,
15255,
3213,
13,
88,
1084,
1635,
6001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
17,
796,
493,
7,
15255,
3213,
13,
4948,
897,
1635,
6001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
796,
6167,
13912,
58,
15255,
3213,
13,
18242,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6167,
796,
13326,
13,
18242,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1996,
8206,
7,
14535,
11,
965,
7,
18242,
828,
357,
87,
16,
1343,
838,
11,
331,
16,
1343,
1160,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
5446,
4061,
2538,
55,
11,
657,
13,
20,
11,
3124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1996,
8206,
7,
14535,
11,
45144,
25,
13,
17,
69,
92,
1911,
18982,
7,
15255,
3213,
13,
39745,
9,
3064,
828,
357,
87,
16,
1343,
838,
11,
331,
16,
1343,
3439,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
5446,
4061,
2538,
55,
11,
657,
13,
20,
11,
3124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
6795,
62,
25616,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1996,
8206,
7,
14535,
11,
277,
1,
55,
25,
1391,
600,
7,
15255,
3213,
13,
2777,
34961,
7222,
585,
17540,
13,
87,
38165,
8085,
1600,
357,
87,
16,
1343,
838,
11,
331,
16,
1343,
2026,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
5446,
4061,
2538,
55,
11,
657,
13,
20,
11,
3124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1996,
8206,
7,
14535,
11,
277,
1,
56,
25,
1391,
600,
7,
15255,
3213,
13,
2777,
34961,
7222,
585,
17540,
13,
88,
38165,
8085,
1600,
357,
87,
16,
1343,
838,
11,
331,
16,
1343,
6135,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
5446,
4061,
2538,
55,
11,
657,
13,
20,
11,
3124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1996,
8206,
7,
14535,
11,
277,
1,
57,
25,
1391,
600,
7,
15255,
3213,
13,
2777,
34961,
7222,
585,
17540,
13,
89,
38165,
8085,
1600,
357,
87,
16,
1343,
838,
11,
331,
16,
1343,
4019,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
5446,
4061,
2538,
55,
11,
657,
13,
20,
11,
3124,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
2554,
9248,
7,
14535,
11,
357,
87,
16,
11,
331,
16,
828,
357,
87,
17,
11,
331,
17,
828,
3124,
11,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
48913,
16437,
55,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4382,
62,
4825,
47,
13,
19608,
35492,
437,
796,
965,
7,
18242,
8,
1343,
366,
553,
1343,
277,
1,
90,
600,
7,
15255,
3213,
13,
39745,
1635,
1802,
38165,
39658,
628,
198,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
1996,
8206,
7,
14535,
11,
366,
6144,
32977,
25,
46110,
13,
17,
69,
92,
1911,
18982,
7,
29647,
828,
357,
17,
11,
5739,
13,
43358,
58,
15,
60,
532,
604,
828,
269,
85,
17,
13,
37,
35830,
62,
39,
4877,
13909,
56,
62,
5446,
4061,
2538,
55,
11,
657,
13,
19,
11,
3124,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6795,
62,
25616,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
62,
10394,
796,
493,
7,
18053,
19778,
10258,
13,
43358,
58,
16,
60,
1635,
357,
14535,
13,
43358,
58,
15,
60,
1220,
6795,
19778,
10258,
13,
43358,
58,
15,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24167,
796,
45941,
13,
71,
25558,
26933,
14535,
11,
269,
85,
17,
13,
411,
1096,
7,
18053,
19778,
10258,
11,
357,
3605,
62,
10394,
11,
5739,
13,
43358,
58,
15,
60,
4008,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
12860,
7203,
301,
6021,
1600,
24167,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4382,
62,
40717,
13,
19298,
316,
418,
437,
796,
24167,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
85,
17,
13,
320,
12860,
7203,
14535,
1600,
5739,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4382,
62,
40717,
13,
19298,
316,
418,
437,
796,
5739,
628,
198,
220,
220,
220,
220,
220,
220,
220,
611,
269,
85,
17,
13,
17077,
9218,
7,
16,
8,
6624,
2760,
10786,
80,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
198
] | 2.254516 | 4,263 |
import string
import pdb
from collections import namedtuple
import math
ADD, SUB, MUL, DIV, CHAR = 'ADD','SUB','MUL','DIV','CHAR'
NUM, EOF, OPAR, CPAR, POW = 'NUM','EOF','OPAR','CPAR','POW'
WHITESPACE = string.whitespace
Token = namedtuple('Token',['token_type', 'token_value'])
class Lexer(object):
def __init__(self, text):
self.text = text
self.pos = 0
self.cur_char = self.text[self.pos]
def error(self):
raise ValueError('Invalid character')
def get_next_char(self):
self.pos += 1
if self.pos <= len(self.text) - 1:
self.cur_char = self.text[self.pos]
else:
self.cur_char = None
def get_whitespace(self):
value = ''
while self.cur_char != None and self.cur_char in WHITESPACE:
value = value + self.cur_char
self.get_next_char()
def get_num(self):
value = ''
while self.cur_char != None and self.cur_char.isdigit():
value = value + self.cur_char
self.get_next_char()
return int(value)
def get_chars(self):
value = ''
while self.cur_char != None and self.cur_char.isalpha():
value = value + self.cur_char
self.get_next_char()
return value
def get_next_token(self):
while self.cur_char != None:
if self.cur_char in WHITESPACE:
value = self.get_whitespace()
if self.cur_char.isdigit():
value = self.get_num()
return Token(NUM, value)
if self.cur_char.isalpha():
value = self.get_chars()
return Token(CHAR, value)
if self.cur_char == '+':
token = Token(ADD, self.cur_char)
self.get_next_char()
return token
if self.cur_char == '-':
token = Token(SUB, self.cur_char)
self.get_next_char()
return token
if self.cur_char == '*':
token = Token(MUL, self.cur_char)
self.get_next_char()
return token
if self.cur_char == '/':
token = Token(DIV, self.cur_char)
self.get_next_char()
return token
if self.cur_char == '(':
token = Token(OPAR, self.cur_char)
self.get_next_char()
return token
if self.cur_char == ')':
token = Token(CPAR, self.cur_char)
self.get_next_char()
return token
if self.cur_char == '^':
token = Token(POW, self.cur_char)
self.get_next_char()
return token
self.error()
return Token(EOF, None)
class Interpreter(object):
def __init__(self, lexer):
self.lexer = lexer
self.cur_token = self.lexer.get_next_token()
def error(self):
raise SyntaxError('Invalid syntax')
def check_token_type(self, token_type):
print(self.cur_token)
#pdb.set_trace()
if self.cur_token.token_type == token_type:
self.cur_token = self.lexer.get_next_token()
else:
self.error()
def expr1(self):
result = self.expr2()
while (self.cur_token.token_type != EOF and
self.cur_token.token_type in (ADD, SUB)):
if self.cur_token.token_type == ADD:
self.check_token_type(ADD)
result = result + self.expr2()
if self.cur_token.token_type == SUB:
self.check_token_type(SUB)
result = result - self.expr2()
return result
def expr2(self):
result = self.expr3()
while (self.cur_token.token_type != EOF and
self.cur_token.token_type in (MUL, DIV)):
if self.cur_token.token_type == MUL:
self.check_token_type(MUL)
result = result * self.expr3()
if self.cur_token.token_type == DIV:
self.check_token_type(DIV)
result = result / self.expr3()
return result
def expr3(self):
if self.cur_token.token_type == OPAR:
self.check_token_type(OPAR)
result = self.expr1()
self.check_token_type(CPAR)
else:
result = self.expr4()
return result
def expr4(self):
result = self.factor()
while (self.cur_token.token_type != EOF and
self.cur_token.token_type is POW):
self.check_token_type(POW)
result = math.pow(result, self.expr1())
return result
def factor(self):
value = self.cur_token.token_value
self.check_token_type(NUM)
return value
def main():
while True:
try:
text = input('calc>')
except e:
continue
#pdb.set_trace()
lexer = Lexer(text)
interpreter = Interpreter(lexer)
result = interpreter.expr1()
print(result)
if __name__ == "__main__":
main()
| [
11748,
4731,
198,
11748,
279,
9945,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
11748,
10688,
198,
198,
29266,
11,
28932,
11,
337,
6239,
11,
360,
3824,
11,
28521,
796,
705,
29266,
41707,
50,
10526,
41707,
44,
6239,
41707,
33569,
41707,
38019,
6,
198,
41359,
11,
412,
19238,
11,
13349,
1503,
11,
16932,
1503,
11,
24148,
796,
705,
41359,
41707,
4720,
37,
41707,
3185,
1503,
41707,
8697,
1503,
41707,
47,
3913,
6,
198,
198,
12418,
2043,
1546,
47,
11598,
796,
4731,
13,
1929,
2737,
10223,
198,
198,
30642,
796,
3706,
83,
29291,
10786,
30642,
3256,
17816,
30001,
62,
4906,
3256,
705,
30001,
62,
8367,
6,
12962,
198,
198,
4871,
17210,
263,
7,
15252,
2599,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2420,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5239,
796,
2420,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1930,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
10641,
796,
2116,
13,
5239,
58,
944,
13,
1930,
60,
628,
220,
220,
220,
825,
4049,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
10786,
44651,
2095,
11537,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
651,
62,
19545,
62,
10641,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1930,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
1930,
19841,
18896,
7,
944,
13,
5239,
8,
532,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
10641,
796,
2116,
13,
5239,
58,
944,
13,
1930,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
10641,
796,
6045,
628,
220,
220,
220,
825,
651,
62,
1929,
2737,
10223,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
981,
2116,
13,
22019,
62,
10641,
14512,
6045,
290,
2116,
13,
22019,
62,
10641,
287,
7655,
2043,
1546,
47,
11598,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
1343,
2116,
13,
22019,
62,
10641,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
628,
220,
220,
220,
825,
651,
62,
22510,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
981,
2116,
13,
22019,
62,
10641,
14512,
6045,
290,
2116,
13,
22019,
62,
10641,
13,
9409,
328,
270,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
1343,
2116,
13,
22019,
62,
10641,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
493,
7,
8367,
8,
628,
220,
220,
220,
825,
651,
62,
354,
945,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
981,
2116,
13,
22019,
62,
10641,
14512,
6045,
290,
2116,
13,
22019,
62,
10641,
13,
271,
26591,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1988,
1343,
2116,
13,
22019,
62,
10641,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1988,
628,
220,
220,
220,
825,
651,
62,
19545,
62,
30001,
7,
944,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
981,
2116,
13,
22019,
62,
10641,
14512,
6045,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
287,
7655,
2043,
1546,
47,
11598,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2116,
13,
1136,
62,
1929,
2737,
10223,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
13,
9409,
328,
270,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2116,
13,
1136,
62,
22510,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
29130,
7,
41359,
11,
1988,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
13,
271,
26591,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2116,
13,
1136,
62,
354,
945,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
29130,
7,
38019,
11,
1988,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
705,
10,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
29266,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
705,
12,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
50,
10526,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
705,
9,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
44,
6239,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
31051,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
33569,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
29513,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
3185,
1503,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
705,
8,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
8697,
1503,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
10641,
6624,
705,
61,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
29130,
7,
47,
3913,
11,
2116,
13,
22019,
62,
10641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1136,
62,
19545,
62,
10641,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11241,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18224,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
29130,
7,
4720,
37,
11,
6045,
8,
628,
198,
4871,
4225,
3866,
353,
7,
15252,
2599,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
31191,
263,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2588,
263,
796,
31191,
263,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
30001,
796,
2116,
13,
2588,
263,
13,
1136,
62,
19545,
62,
30001,
3419,
628,
220,
220,
220,
825,
4049,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
26375,
897,
12331,
10786,
44651,
15582,
11537,
628,
220,
220,
220,
825,
2198,
62,
30001,
62,
4906,
7,
944,
11,
11241,
62,
4906,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
944,
13,
22019,
62,
30001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
79,
9945,
13,
2617,
62,
40546,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
6624,
11241,
62,
4906,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
30001,
796,
2116,
13,
2588,
263,
13,
1136,
62,
19545,
62,
30001,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18224,
3419,
220,
628,
220,
220,
220,
825,
44052,
16,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
31937,
17,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
981,
357,
944,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
14512,
412,
19238,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
287,
357,
29266,
11,
28932,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
6624,
27841,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
29266,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1255,
1343,
2116,
13,
31937,
17,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
6624,
28932,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
50,
10526,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1255,
532,
2116,
13,
31937,
17,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
628,
220,
220,
220,
825,
44052,
17,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
31937,
18,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
981,
357,
944,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
14512,
412,
19238,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
287,
357,
44,
6239,
11,
360,
3824,
8,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
6624,
337,
6239,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
44,
6239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1255,
1635,
2116,
13,
31937,
18,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
6624,
360,
3824,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
33569,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
1255,
1220,
2116,
13,
31937,
18,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
628,
220,
220,
220,
825,
44052,
18,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
6624,
13349,
1503,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
3185,
1503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
31937,
16,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
8697,
1503,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
31937,
19,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
628,
220,
220,
220,
825,
44052,
19,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
2116,
13,
31412,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
981,
357,
944,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
14512,
412,
19238,
290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
4906,
318,
24148,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
47,
3913,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
10688,
13,
79,
322,
7,
20274,
11,
2116,
13,
31937,
16,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
628,
220,
220,
220,
825,
5766,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2116,
13,
22019,
62,
30001,
13,
30001,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9122,
62,
30001,
62,
4906,
7,
41359,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1988,
198,
198,
4299,
1388,
33529,
198,
220,
220,
220,
981,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
5128,
10786,
9948,
66,
29,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
79,
9945,
13,
2617,
62,
40546,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
31191,
263,
796,
17210,
263,
7,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
28846,
796,
4225,
3866,
353,
7,
2588,
263,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
28846,
13,
31937,
16,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
20274,
8,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419,
198
] | 1.896165 | 2,764 |
# -*- coding: utf-8 -*-
"""
@author: Victor Kohler
@since: date 17/12/2016
@version: 0.1
"""
import httplib
import helpers
import cookies
class Response(object):
"""Used to set and return data back to the server. The Response object
can be instantiated in one of two ways:
1. It is created manually in the view function to add custom headers,
cookies or response codes.
2. It gets created automatically once the view function returns
some data.
Create the response object from the view using app.make_response(data)
"""
def __init__(self, make_response=None, code=200, data=''):
"""For the view data we're currently supporting either a tuple with
both the returned data and a dictionary of headers or just the
returned data.
"""
if isinstance(data, tuple):
self.data = data[0]
headers = data[1]
else:
self.data = data
headers = {}
self.headers = headers
self.code = code
self.make_response = make_response
def set_cookie(self, key, value='', path='/', expires=None, max_age=None,
domain=None, secure=False, httponly=False):
"""Creates a cookie dictionary and adds it to the headers.
This function is ment to be used in the view function:
resp = make_response(data)
resp.set_cookie('key', 'value')
"""
cookie = cookies.create_cookie(key, value, path, expires, max_age,
domain, secure, httponly)
#TODO: Handle multiple cookies
self.headers.update(cookie)
def render(self):
"""Renders the final response back to the server with status code,
headers and data. It aslo transform headers and codes into
a WSGI compatible format.
If status code is 5xx or 4xx no view data is returned.
"""
# If the content type is not specified, we set
# it to text/html as the default
if 'content-type' not in map(lambda x:x.lower(), self.headers):
self.headers['Content-Type'] = 'text/html'
# Set headers as list of tuples
self.headers = [(k, v) for k, v in self.headers.items()]
# httplib.responses maps the HTTP 1.1 status codes to W3C names.
# Output example: '200 OK' or '404 Not Found'
resp_code = '{} {}'.format(self.code, httplib.responses[self.code])
if str(self.code)[0] in ['4', '5'] and not self.data:
self.make_response(resp_code, self.headers)
return resp_code.encode('utf-8')
try:
data = bytes(self.data).encode('utf-8')
except UnicodeDecodeError:
data = bytes(self.data)
self.make_response(resp_code, self.headers)
return data
def __repr__(self):
return '%s(%r)' % (self.__class__.__name__, self.__dict__)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
31,
9800,
25,
12622,
24754,
1754,
198,
31,
20777,
25,
3128,
1596,
14,
1065,
14,
5304,
198,
31,
9641,
25,
657,
13,
16,
198,
37811,
198,
198,
11748,
1841,
489,
571,
198,
11748,
49385,
198,
11748,
14746,
198,
198,
4871,
18261,
7,
15252,
2599,
198,
220,
220,
220,
37227,
38052,
284,
900,
290,
1441,
1366,
736,
284,
262,
4382,
13,
383,
18261,
2134,
198,
220,
220,
220,
460,
307,
9113,
12931,
287,
530,
286,
734,
2842,
25,
628,
220,
220,
220,
352,
13,
632,
318,
2727,
14500,
287,
262,
1570,
2163,
284,
751,
2183,
24697,
11,
220,
198,
220,
220,
220,
14746,
393,
2882,
12416,
13,
198,
220,
220,
220,
220,
198,
220,
220,
220,
362,
13,
632,
3011,
2727,
6338,
1752,
262,
1570,
2163,
5860,
198,
220,
220,
220,
617,
1366,
13,
628,
220,
220,
220,
13610,
262,
2882,
2134,
422,
262,
1570,
1262,
598,
13,
15883,
62,
26209,
7,
7890,
8,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
787,
62,
26209,
28,
14202,
11,
2438,
28,
2167,
11,
1366,
28,
7061,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
1890,
262,
1570,
1366,
356,
821,
3058,
6493,
2035,
257,
46545,
351,
198,
220,
220,
220,
220,
220,
220,
220,
1111,
262,
4504,
1366,
290,
257,
22155,
286,
24697,
393,
655,
262,
220,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
1366,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
7890,
11,
46545,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
796,
1366,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24697,
796,
1366,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
7890,
796,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24697,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
50145,
796,
24697,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
8189,
796,
2438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15883,
62,
26209,
796,
787,
62,
26209,
628,
220,
220,
220,
825,
900,
62,
44453,
7,
944,
11,
1994,
11,
1988,
11639,
3256,
3108,
11639,
14,
3256,
27396,
28,
14202,
11,
3509,
62,
496,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7386,
28,
14202,
11,
5713,
28,
25101,
11,
2638,
8807,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16719,
274,
257,
19751,
22155,
290,
6673,
340,
284,
262,
24697,
13,
198,
220,
220,
220,
220,
220,
220,
220,
770,
2163,
318,
6229,
284,
307,
973,
287,
262,
1570,
2163,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1217,
796,
787,
62,
26209,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1217,
13,
2617,
62,
44453,
10786,
2539,
3256,
705,
8367,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
19751,
796,
14746,
13,
17953,
62,
44453,
7,
2539,
11,
1988,
11,
3108,
11,
27396,
11,
3509,
62,
496,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7386,
11,
5713,
11,
2638,
8807,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
51,
3727,
46,
25,
33141,
3294,
14746,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
50145,
13,
19119,
7,
44453,
8,
628,
220,
220,
220,
825,
8543,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
49,
7338,
262,
2457,
2882,
736,
284,
262,
4382,
351,
3722,
2438,
11,
198,
220,
220,
220,
220,
220,
220,
220,
24697,
290,
1366,
13,
632,
355,
5439,
6121,
24697,
290,
12416,
656,
198,
220,
220,
220,
220,
220,
220,
220,
257,
25290,
18878,
11670,
5794,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1002,
3722,
2438,
318,
642,
5324,
393,
604,
5324,
645,
1570,
1366,
318,
4504,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
262,
2695,
2099,
318,
407,
7368,
11,
356,
900,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
340,
284,
2420,
14,
6494,
355,
262,
4277,
198,
220,
220,
220,
220,
220,
220,
220,
611,
705,
11299,
12,
4906,
6,
407,
287,
3975,
7,
50033,
2124,
25,
87,
13,
21037,
22784,
2116,
13,
50145,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
50145,
17816,
19746,
12,
6030,
20520,
796,
705,
5239,
14,
6494,
6,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
5345,
24697,
355,
1351,
286,
12777,
2374,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
50145,
796,
47527,
74,
11,
410,
8,
329,
479,
11,
410,
287,
2116,
13,
50145,
13,
23814,
3419,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1841,
489,
571,
13,
16733,
274,
8739,
262,
14626,
352,
13,
16,
3722,
12416,
284,
370,
18,
34,
3891,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
25235,
1672,
25,
705,
2167,
7477,
6,
393,
705,
26429,
1892,
4062,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1217,
62,
8189,
796,
705,
90,
92,
23884,
4458,
18982,
7,
944,
13,
8189,
11,
1841,
489,
571,
13,
16733,
274,
58,
944,
13,
8189,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
611,
965,
7,
944,
13,
8189,
38381,
15,
60,
287,
37250,
19,
3256,
705,
20,
20520,
290,
407,
2116,
13,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15883,
62,
26209,
7,
4363,
62,
8189,
11,
2116,
13,
50145,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1217,
62,
8189,
13,
268,
8189,
10786,
40477,
12,
23,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
9881,
7,
944,
13,
7890,
737,
268,
8189,
10786,
40477,
12,
23,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
34371,
10707,
1098,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
9881,
7,
944,
13,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15883,
62,
26209,
7,
4363,
62,
8189,
11,
2116,
13,
50145,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
628,
220,
220,
220,
825,
11593,
260,
1050,
834,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
705,
4,
82,
7,
4,
81,
33047,
4064,
357,
944,
13,
834,
4871,
834,
13,
834,
3672,
834,
11,
2116,
13,
834,
11600,
834,
8,
198
] | 2.42314 | 1,210 |
# Copyright 2021 Sony Corporation.
# Copyright 2021 Sony Group Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import numpy as np
import pytest
import nnabla as nn
import nnabla_rl.algorithms as A
import nnabla_rl.environments as E
from nnabla_rl.replay_buffer import ReplayBuffer
class TestMunchausenDQN(object):
def setup_method(self, method):
nn.clear_parameters()
def test_algorithm_name(self):
dummy_env = E.DummyDiscreteImg()
dqn = A.MunchausenDQN(dummy_env)
assert dqn.__name__ == 'MunchausenDQN'
def test_continuous_action_env_unsupported(self):
'''
Check that error occurs when training on continuous action env
'''
dummy_env = E.DummyContinuous()
config = A.MunchausenDQNConfig()
with pytest.raises(Exception):
A.MunchausenDQN(dummy_env, config=config)
def test_run_online_training(self):
'''
Check that no error occurs when calling online training
'''
dummy_env = E.DummyDiscreteImg()
config = A.MunchausenDQNConfig()
config.start_timesteps = 5
config.batch_size = 5
config.learner_update_frequency = 1
config.target_update_frequency = 1
dqn = A.MunchausenDQN(dummy_env, config=config)
dqn.train_online(dummy_env, total_iterations=10)
def test_run_online_training_multistep(self):
'''
Check that no error occurs when calling online training
'''
dummy_env = E.DummyDiscreteImg()
config = A.MunchausenDQNConfig()
config.num_steps = 2
config.start_timesteps = 5
config.batch_size = 5
config.learner_update_frequency = 1
config.target_update_frequency = 1
dqn = A.MunchausenDQN(dummy_env, config=config)
dqn.train_online(dummy_env, total_iterations=10)
def test_run_offline_training(self):
'''
Check that no error occurs when calling offline training
'''
dummy_env = E.DummyDiscreteImg()
batch_size = 5
config = A.MunchausenDQNConfig()
config.batch_size = batch_size
config.learner_update_frequency = 1
config.target_update_frequency = 1
dqn = A.MunchausenDQN(dummy_env, config=config)
experiences = generate_dummy_experiences(dummy_env, batch_size)
buffer = ReplayBuffer()
buffer.append_all(experiences)
dqn.train_offline(buffer, total_iterations=5)
def test_compute_eval_action(self):
dummy_env = E.DummyDiscreteImg()
dqn = A.MunchausenDQN(dummy_env)
state = dummy_env.reset()
state = np.float32(state)
action = dqn.compute_eval_action(state)
assert action.shape == (1,)
def test_parameter_range(self):
with pytest.raises(ValueError):
A.MunchausenDQNConfig(gamma=-0.1)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(batch_size=-1)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(learning_rate=-0.1)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(learner_update_frequency=-1000)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(target_update_frequency=-1000)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(start_timesteps=-1000)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(replay_buffer_size=-1000)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(initial_epsilon=1.5)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(final_epsilon=1.1)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(test_epsilon=-1000)
with pytest.raises(ValueError):
A.MunchausenDQNConfig(max_explore_steps=-100)
def test_latest_iteration_state(self):
'''
Check that latest iteration state has the keys and values we expected
'''
dummy_env = E.DummyDiscreteImg()
m_dqn = A.MunchausenDQN(dummy_env)
m_dqn._q_function_trainer_state = {'q_loss': 0., 'td_errors': np.array([0., 1.])}
latest_iteration_state = m_dqn.latest_iteration_state
assert 'q_loss' in latest_iteration_state['scalar']
assert 'td_errors' in latest_iteration_state['histogram']
assert latest_iteration_state['scalar']['q_loss'] == 0.
assert np.allclose(latest_iteration_state['histogram']['td_errors'], np.array([0., 1.]))
if __name__ == "__main__":
from testing_utils import generate_dummy_experiences
pytest.main()
else:
from ..testing_utils import generate_dummy_experiences
| [
2,
15069,
33448,
10184,
10501,
13,
198,
2,
15069,
33448,
10184,
4912,
10501,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
2,
198,
2,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
2,
198,
2,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
2,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
2,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
2,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
2,
11247,
739,
262,
13789,
13,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
12972,
9288,
198,
198,
11748,
299,
77,
397,
5031,
355,
299,
77,
198,
11748,
299,
77,
397,
5031,
62,
45895,
13,
282,
7727,
907,
355,
317,
198,
11748,
299,
77,
397,
5031,
62,
45895,
13,
268,
12103,
355,
412,
198,
6738,
299,
77,
397,
5031,
62,
45895,
13,
260,
1759,
62,
22252,
1330,
23635,
28632,
628,
198,
4871,
6208,
44,
3316,
8717,
268,
35,
48,
45,
7,
15252,
2599,
198,
220,
220,
220,
825,
9058,
62,
24396,
7,
944,
11,
2446,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
299,
77,
13,
20063,
62,
17143,
7307,
3419,
628,
220,
220,
220,
825,
1332,
62,
282,
42289,
62,
3672,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
15642,
8374,
3546,
70,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
8,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
288,
80,
77,
13,
834,
3672,
834,
6624,
705,
44,
3316,
8717,
268,
35,
48,
45,
6,
628,
220,
220,
220,
825,
1332,
62,
18487,
5623,
62,
2673,
62,
24330,
62,
403,
15999,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6822,
326,
4049,
8833,
618,
3047,
319,
12948,
2223,
17365,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
17875,
5623,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
16922,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
11,
4566,
28,
11250,
8,
628,
220,
220,
220,
825,
1332,
62,
5143,
62,
25119,
62,
34409,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6822,
326,
645,
4049,
8833,
618,
4585,
2691,
3047,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
15642,
8374,
3546,
70,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
9688,
62,
16514,
395,
25386,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
43501,
62,
7857,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
3238,
1008,
62,
19119,
62,
35324,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
16793,
62,
19119,
62,
35324,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
11,
4566,
28,
11250,
8,
628,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
13,
27432,
62,
25119,
7,
67,
13513,
62,
24330,
11,
2472,
62,
2676,
602,
28,
940,
8,
628,
220,
220,
220,
825,
1332,
62,
5143,
62,
25119,
62,
34409,
62,
16680,
396,
538,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6822,
326,
645,
4049,
8833,
618,
4585,
2691,
3047,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
15642,
8374,
3546,
70,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
22510,
62,
20214,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
9688,
62,
16514,
395,
25386,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
43501,
62,
7857,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
3238,
1008,
62,
19119,
62,
35324,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
16793,
62,
19119,
62,
35324,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
11,
4566,
28,
11250,
8,
628,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
13,
27432,
62,
25119,
7,
67,
13513,
62,
24330,
11,
2472,
62,
2676,
602,
28,
940,
8,
628,
220,
220,
220,
825,
1332,
62,
5143,
62,
2364,
1370,
62,
34409,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6822,
326,
645,
4049,
8833,
618,
4585,
18043,
3047,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
15642,
8374,
3546,
70,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
15458,
62,
7857,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
43501,
62,
7857,
796,
15458,
62,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
3238,
1008,
62,
19119,
62,
35324,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
13,
16793,
62,
19119,
62,
35324,
796,
352,
628,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
11,
4566,
28,
11250,
8,
628,
220,
220,
220,
220,
220,
220,
220,
6461,
796,
7716,
62,
67,
13513,
62,
23100,
10035,
7,
67,
13513,
62,
24330,
11,
15458,
62,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
11876,
796,
23635,
28632,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
11876,
13,
33295,
62,
439,
7,
23100,
10035,
8,
198,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
13,
27432,
62,
2364,
1370,
7,
22252,
11,
2472,
62,
2676,
602,
28,
20,
8,
628,
220,
220,
220,
825,
1332,
62,
5589,
1133,
62,
18206,
62,
2673,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
15642,
8374,
3546,
70,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
288,
80,
77,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1181,
796,
31548,
62,
24330,
13,
42503,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1181,
796,
45941,
13,
22468,
2624,
7,
5219,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2223,
796,
288,
80,
77,
13,
5589,
1133,
62,
18206,
62,
2673,
7,
5219,
8,
628,
220,
220,
220,
220,
220,
220,
220,
6818,
2223,
13,
43358,
6624,
357,
16,
35751,
628,
220,
220,
220,
825,
1332,
62,
17143,
2357,
62,
9521,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
28483,
2611,
10779,
15,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
43501,
62,
7857,
10779,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
40684,
62,
4873,
10779,
15,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
3238,
1008,
62,
19119,
62,
35324,
10779,
12825,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
16793,
62,
19119,
62,
35324,
10779,
12825,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
9688,
62,
16514,
395,
25386,
10779,
12825,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
260,
1759,
62,
22252,
62,
7857,
10779,
12825,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
36733,
62,
538,
18217,
261,
28,
16,
13,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
20311,
62,
538,
18217,
261,
28,
16,
13,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
9288,
62,
538,
18217,
261,
10779,
12825,
8,
198,
220,
220,
220,
220,
220,
220,
220,
351,
12972,
9288,
13,
430,
2696,
7,
11395,
12331,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
16934,
7,
9806,
62,
20676,
382,
62,
20214,
10779,
3064,
8,
628,
220,
220,
220,
825,
1332,
62,
42861,
62,
2676,
341,
62,
5219,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
220,
220,
220,
220,
6822,
326,
3452,
24415,
1181,
468,
262,
8251,
290,
3815,
356,
2938,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
220,
220,
220,
220,
31548,
62,
24330,
796,
412,
13,
35,
13513,
15642,
8374,
3546,
70,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
285,
62,
49506,
77,
796,
317,
13,
44,
3316,
8717,
268,
35,
48,
45,
7,
67,
13513,
62,
24330,
8,
628,
220,
220,
220,
220,
220,
220,
220,
285,
62,
49506,
77,
13557,
80,
62,
8818,
62,
2213,
10613,
62,
5219,
796,
1391,
6,
80,
62,
22462,
10354,
657,
1539,
705,
8671,
62,
48277,
10354,
45941,
13,
18747,
26933,
15,
1539,
352,
8183,
38165,
628,
220,
220,
220,
220,
220,
220,
220,
3452,
62,
2676,
341,
62,
5219,
796,
285,
62,
49506,
77,
13,
42861,
62,
2676,
341,
62,
5219,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
705,
80,
62,
22462,
6,
287,
3452,
62,
2676,
341,
62,
5219,
17816,
1416,
282,
283,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
705,
8671,
62,
48277,
6,
287,
3452,
62,
2676,
341,
62,
5219,
17816,
10034,
21857,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
3452,
62,
2676,
341,
62,
5219,
17816,
1416,
282,
283,
6,
7131,
6,
80,
62,
22462,
20520,
6624,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
45941,
13,
439,
19836,
7,
42861,
62,
2676,
341,
62,
5219,
17816,
10034,
21857,
6,
7131,
6,
8671,
62,
48277,
6,
4357,
45941,
13,
18747,
26933,
15,
1539,
352,
8183,
4008,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
422,
4856,
62,
26791,
1330,
7716,
62,
67,
13513,
62,
23100,
10035,
198,
220,
220,
220,
12972,
9288,
13,
12417,
3419,
198,
17772,
25,
198,
220,
220,
220,
422,
11485,
33407,
62,
26791,
1330,
7716,
62,
67,
13513,
62,
23100,
10035,
198
] | 2.289231 | 2,275 |
# Generated by Django 2.0.4 on 2018-04-25 14:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('jobs', '0003_auto_20180425_1406'),
]
operations = [
migrations.AlterField(
model_name='job',
name='industry',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Industry'),
),
migrations.DeleteModel(
name='Industry',
),
]
| [
2,
2980,
515,
416,
37770,
362,
13,
15,
13,
19,
319,
2864,
12,
3023,
12,
1495,
1478,
25,
1120,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
198,
11748,
42625,
14208,
13,
9945,
13,
27530,
13,
2934,
1616,
295,
628,
198,
4871,
36991,
7,
76,
3692,
602,
13,
44,
4254,
2599,
628,
220,
220,
220,
20086,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
43863,
3256,
705,
830,
18,
62,
23736,
62,
1264,
1795,
32114,
62,
1415,
3312,
33809,
198,
220,
220,
220,
2361,
628,
220,
220,
220,
4560,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
2348,
353,
15878,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
62,
3672,
11639,
21858,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
23213,
563,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2214,
28,
27530,
13,
33616,
9218,
7,
261,
62,
33678,
28,
28241,
14208,
13,
9945,
13,
27530,
13,
2934,
1616,
295,
13,
34,
42643,
19266,
11,
284,
11639,
23317,
82,
13,
35848,
563,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
220,
220,
220,
220,
15720,
602,
13,
38727,
17633,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
35848,
563,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
2361,
198
] | 2.176707 | 249 |
#!/usr/bin/env python
# from .app_macros import * #relative import - did not work properly
from app_macros import *
class App():
def __init__(self,):
""" App's constructor."""
self.init_app()
def init_app(self):
""" Initializes the App. """
try:
self.setup_app()
self.main_label = self.create_label(CONST_WELCOME_MSG, 25, 5, 5)
self.elevator_request_button = self.create_button("elevator_request_button",
self.frame, CONST_ELEVATOR_REQUEST_LABEL, self.build_elevator_keypad, 5, 8)
self.run_app() # runs app on a loop
except:
print("Error initializing the app")
def setup_app(self):
""" Sets the App's frame and title. """
self.frame = Tk() # Creating main window application
self.frame.geometry(CONST_GEOMETRY) # Setting size of the application's frame.
self.frame.title(CONST_TITLE) # Assigning the application a title.
def create_button(self, button_name, frame, txt, cb, _col, _row):
""" Makes a button. """
button_name = Button(frame, text=txt, command=cb)
button_name.grid(column=_col, row=_row )
return button_name
def run_app(self):
""" Runs the App. """
self.frame.mainloop()
def destroy_button(self, button_name):
""" Destroy a button in the App. """
button_name.destroy()
def create_label(self, txt, size, _col, _row):
""" Set the App's main label. """
self.label = Label(self.frame, text=txt, font=(CONST_FONT, size))
self.label.grid(column= _col, row= _row)
return self.label
def change_label(self, label, txt, size):
""" Changes App's main label. Note: Does not change grid. """
self.label.configure(text=txt, font=(CONST_FONT, size))
def terminate_app(self):
""" Changes App's main label."""
return
def display_info(self, info):
""" Display pop-up information of the elevator system."""
messagebox.showinfo(CONST_TITLE, info)
def display_warning(self, info):
""" Display pop-up warnings of the elevator system."""
messagebox.showwarning(CONST_TITLE, info)
def display_error(self, info):
""" Display pop-up errors of the elevator system."""
messagebox.showerror(CONST_TITLE, info)
# Next up we can see our callbacks defined for the buttons
def build_elevator_keypad(self):
""" Command that builds the keypad of the elevator system."""
self.destroy_button(self.elevator_request_button) # destroy the request button
self.display_info(REQUEST_MSG) # alert user that an elevator is on its way.
# creating the elevator's keypad:
self.elev_manager = ElevatorManager()
self.display_elevator_attr()
self.build_keypad_layers()
def build_keypad_layers(self):
""" Builds all the layers of the keypad."""
self.build_first_keypad_layer()
self.build_second_keypad_layer()
self.build_third_keypad_layer()
self.build_fourth_keypad_layer()
self.build_fith_keypad_layer()
self.build_sixth_keypad_layer()
self.build_seventh_keypad_layer()
self.build_eight_keypad_layer()
def build_eight_keypad_layer(self):
""" Makes button for eight layer of the keypad."""
self.capacity_label = self.create_label(CAPACITY_LABEL, CONST_LABEL_SIZE, 1, 18)
self.max_weight_label = self.create_label(MAXIMUM_WEIGHT_LABEL, CONST_LABEL_SIZE, 4, 18)
def build_seventh_keypad_layer(self):
""" Makes buttons for seventh layer of the keypad."""
self.maintenance_button = self.create_button("maintenance_button", self.frame,
MAINTENANCE_LABEL, self.get_elevator_maintenance_state, 4, 15)
def build_sixth_keypad_layer(self):
""" Makes buttons for sixth layer of the keypad."""
self.open_door_button = self.create_button("open_door_button", self.frame,
OPEN_DOOR_LABEL, self.open_elevator_door, 3, 6)
self.close_door_button = self.create_button("close_door_button",self.frame,
CLOSE_DOOR_LABEL, self.close_elevator_door, 4, 6)
self.lobby_button = self.create_button("lobby_button", self.frame, LOBBY_LABEL, self.dummy, 5, 6)
def build_fith_keypad_layer(self):
""" Makes buttons for fith layer of the keypad."""
self.f1_button = self.create_button("f1_button", self.frame, FIRST_FLOOR_LABEL, self.set_elevator_floor(CONST_FIRST_FLOOR), 3, 4)
self.f2_button = self.create_button("f2_button", self.frame, SECOND_FLOOR_LABEL, self.set_elevator_floor(CONST_SECOND_FLOOR), 4, 4)
self.f3_button = self.create_button("f3_button", self.frame, THIRD_FLOOR_LABEL, self.set_elevator_floor(CONST_THIRD_FLOOR), 5, 4)
def build_fourth_keypad_layer(self):
""" Makes buttons for fourth layer of the keypad."""
self.f4_button = self.create_button("f4_button", self.frame, FOURTH_FLOOR_LABEL, self.set_elevator_floor(CONST_FOURTH_FLOOR), 3, 3)
self.f5_button = self.create_button("f5_button", self.frame, FITH_FLOOR_LABEL, self.set_elevator_floor(CONST_FITH_FLOOR), 4, 3)
self.f6_button = self.create_button("f6_button", self.frame, SIXTH_FLOOR_LABEL, self.set_elevator_floor(CONST_SIXTH_FLOOR), 5, 3)
def build_third_keypad_layer(self):
""" Makes buttons for third layer of the keypad"""
self.f7_button = self.create_button("f7_button", self.frame, SEVENTH_FLOOR_LABEL, self.set_elevator_floor(TENTH_FLOOR_LABEL), 3, 2)
self.f8_button = self.create_button("f8_button", self.frame, EIGHTH_FLOOR_LABEL, self.set_elevator_floor(ELEVENTH_FLOOR_LABEL), 4, 2)
self.f9_button = self.create_button("f9_button", self.frame, NEIGH_FLOOR_LABEL, self.set_elevator_floor(TWELFTH_FLOOR_LABEL), 5, 2)
def build_second_keypad_layer(self):
""" Makes buttons for second layer of the keypad."""
self.f10_button = self.create_button("f10_button", self.frame, TENTH_FLOOR_LABEL, self.set_elevator_floor(TENTH_FLOOR_LABEL), 3, 1)
self.f11_button = self.create_button("f11_button", self.frame, ELEVENTH_FLOOR_LABEL, self.set_elevator_floor(ELEVENTH_FLOOR_LABEL), 4, 1)
self.f12_button = self.create_button("f12_button", self.frame, TWELFTH_FLOOR_LABEL, self.set_elevator_floor(TWELFTH_FLOOR_LABEL), 5, 1)
def build_first_keypad_layer(self):
""" Makes label for first layer of the keypad"""
self.keypad_label = self.create_label(KEYPAD_LABEL, CONST_LABEL_SIZE, 3.5, 0) # title of keypad
def dummy(self):
return
def display_elevator_attr(self):
""" Display elevator attributes to the user."""
try:
self.elev_manager.display_elevator_attr()
self.change_label(self.main_label,CURRENT_FLOOR_LABEL, CONST_LABEL_SIZE) # current floor
self.label.grid(column=0, row=1) # changing the main label's grid location
self.current_temperature_label = self.create_label(CURRENT_TEMPERATURE_LABEL, CONST_LABEL_SIZE, 0, 3) # current temp
self.current_weight_label = self.create_label(CURRENT_WEIGHT_LABEL, CONST_LABEL_SIZE, 0, 5) # current weight
self.person_count_label = self.create_label(PERSON_COUNT_LABEL, CONST_LABEL_SIZE, 0, 7) # current person count
# tests
self.elev_manager.init_comm()
if not (self.elev_manager.arduino_message_queue.empty()):
self.arduino_test_msg = self.elev_manager.arduino_message_queue.get()
#print(self.arduino_test_msg)
self.arduino_test = self.create_label(self.arduino_test_msg, CONST_LABEL_SIZE, 0, 2)
self.arduino_test = self.create_label(self.arduino_test_msg, CONST_LABEL_SIZE, 0, 4)
self.arduino_test = self.create_label(self.arduino_test_msg, CONST_LABEL_SIZE, 0, 6)
self.arduino_test = self.create_label(self.arduino_test_msg, CONST_LABEL_SIZE, 0, 8)
except:
print("Elevator attributes could not be displayed")
def open_elevator_door(self):
""" Calls the manager to open the door."""
self.elev_manager.set_elevator_door_status()
def close_elevator_door(self):
self.elev_manager.set_elevator_door_status()
def set_elevator_floor(self, floor):
self.elev_manager.set_elevator_floor(floor)
def get_elevator_lobby(self):
self.elev_manager.get_elevator_lobby()
def get_elevator_maintenance_state(self):
self.elev_manager.get_elevator_maintenance_state()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
220,
220,
220,
198,
2,
422,
764,
1324,
62,
20285,
4951,
1330,
1635,
220,
1303,
43762,
1330,
532,
750,
407,
670,
6105,
198,
6738,
598,
62,
20285,
4951,
1330,
1635,
628,
198,
4871,
2034,
33529,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
2034,
338,
23772,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
15003,
62,
1324,
3419,
628,
220,
220,
220,
825,
2315,
62,
1324,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
20768,
4340,
262,
2034,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
40406,
62,
1324,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12417,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
10943,
2257,
62,
54,
3698,
9858,
36,
62,
5653,
38,
11,
1679,
11,
642,
11,
642,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
1352,
62,
25927,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
68,
2768,
1352,
62,
25927,
62,
16539,
1600,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14535,
11,
7102,
2257,
62,
36,
2538,
53,
25633,
62,
2200,
35780,
62,
48780,
3698,
11,
2116,
13,
11249,
62,
68,
2768,
1352,
62,
2539,
15636,
11,
642,
11,
807,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
5143,
62,
1324,
3419,
1303,
4539,
598,
319,
257,
9052,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
12331,
4238,
2890,
262,
598,
4943,
628,
220,
220,
220,
825,
9058,
62,
1324,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
21394,
262,
2034,
338,
5739,
290,
3670,
13,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14535,
796,
309,
74,
3419,
1303,
30481,
1388,
4324,
3586,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14535,
13,
469,
15748,
7,
10943,
2257,
62,
8264,
2662,
2767,
18276,
8,
1303,
25700,
2546,
286,
262,
3586,
338,
5739,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14535,
13,
7839,
7,
10943,
2257,
62,
49560,
2538,
8,
1303,
2195,
38944,
262,
3586,
257,
3670,
13,
198,
220,
220,
220,
220,
628,
220,
220,
220,
825,
2251,
62,
16539,
7,
944,
11,
4936,
62,
3672,
11,
5739,
11,
256,
742,
11,
269,
65,
11,
4808,
4033,
11,
4808,
808,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
257,
4936,
13,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
4936,
62,
3672,
796,
20969,
7,
14535,
11,
2420,
28,
14116,
11,
3141,
28,
21101,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4936,
62,
3672,
13,
25928,
7,
28665,
28,
62,
4033,
11,
5752,
28,
62,
808,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4936,
62,
3672,
628,
198,
220,
220,
220,
825,
1057,
62,
1324,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
44743,
262,
2034,
13,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14535,
13,
12417,
26268,
3419,
628,
198,
220,
220,
220,
825,
4117,
62,
16539,
7,
944,
11,
4936,
62,
3672,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
19448,
257,
4936,
287,
262,
2034,
13,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
4936,
62,
3672,
13,
41659,
3419,
628,
198,
220,
220,
220,
825,
2251,
62,
18242,
7,
944,
11,
256,
742,
11,
2546,
11,
4808,
4033,
11,
4808,
808,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
5345,
262,
2034,
338,
1388,
6167,
13,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18242,
796,
36052,
7,
944,
13,
14535,
11,
2420,
28,
14116,
11,
10369,
16193,
10943,
2257,
62,
37,
35830,
11,
2546,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18242,
13,
25928,
7,
28665,
28,
4808,
4033,
11,
5752,
28,
4808,
808,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
18242,
628,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
825,
1487,
62,
18242,
7,
944,
11,
6167,
11,
256,
742,
11,
2546,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
19179,
2034,
338,
1388,
6167,
13,
5740,
25,
8314,
407,
1487,
10706,
13,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18242,
13,
11250,
495,
7,
5239,
28,
14116,
11,
10369,
16193,
10943,
2257,
62,
37,
35830,
11,
2546,
4008,
220,
628,
220,
220,
220,
220,
198,
220,
220,
220,
825,
23654,
62,
1324,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
19179,
2034,
338,
1388,
6167,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
198,
220,
220,
220,
825,
3359,
62,
10951,
7,
944,
11,
7508,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16531,
1461,
12,
929,
1321,
286,
262,
20932,
1080,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
3275,
3524,
13,
12860,
10951,
7,
10943,
2257,
62,
49560,
2538,
11,
7508,
8,
220,
628,
198,
220,
220,
220,
825,
3359,
62,
43917,
7,
944,
11,
7508,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16531,
1461,
12,
929,
14601,
286,
262,
20932,
1080,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
3275,
3524,
13,
12860,
43917,
7,
10943,
2257,
62,
49560,
2538,
11,
7508,
8,
220,
628,
198,
220,
220,
220,
825,
3359,
62,
18224,
7,
944,
11,
7508,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16531,
1461,
12,
929,
8563,
286,
262,
20932,
1080,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
3275,
3524,
13,
1477,
789,
1472,
7,
10943,
2257,
62,
49560,
2538,
11,
7508,
8,
220,
198,
220,
220,
220,
220,
628,
220,
220,
220,
1303,
7406,
510,
356,
460,
766,
674,
869,
10146,
5447,
329,
262,
12163,
628,
220,
220,
220,
825,
1382,
62,
68,
2768,
1352,
62,
2539,
15636,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
9455,
326,
12188,
262,
1994,
15636,
286,
262,
20932,
1080,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
41659,
62,
16539,
7,
944,
13,
68,
2768,
1352,
62,
25927,
62,
16539,
8,
1303,
4117,
262,
2581,
4936,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13812,
62,
10951,
7,
2200,
35780,
62,
5653,
38,
8,
1303,
7995,
2836,
326,
281,
20932,
318,
319,
663,
835,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4441,
262,
20932,
338,
1994,
15636,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
796,
37881,
1352,
13511,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
13812,
62,
68,
2768,
1352,
62,
35226,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
2539,
15636,
62,
75,
6962,
3419,
628,
198,
220,
220,
220,
825,
1382,
62,
2539,
15636,
62,
75,
6962,
7,
944,
2599,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10934,
82,
477,
262,
11685,
286,
262,
1994,
15636,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
11085,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
12227,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
17089,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
49393,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
69,
342,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
19412,
400,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
325,
20987,
62,
2539,
15636,
62,
29289,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11249,
62,
26022,
62,
2539,
15636,
62,
29289,
3419,
628,
220,
220,
220,
825,
1382,
62,
26022,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
4936,
329,
3624,
7679,
286,
262,
1994,
15636,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42404,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
33177,
2246,
9050,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
352,
11,
1248,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9806,
62,
6551,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
22921,
3955,
5883,
62,
8845,
9947,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
604,
11,
1248,
8,
628,
220,
220,
220,
825,
1382,
62,
325,
20987,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
12163,
329,
14024,
7679,
286,
262,
1994,
15636,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12417,
8219,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
12417,
8219,
62,
16539,
1600,
2116,
13,
14535,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8779,
12394,
1677,
19240,
62,
48780,
3698,
11,
2116,
13,
1136,
62,
68,
2768,
1352,
62,
12417,
8219,
62,
5219,
11,
604,
11,
1315,
8,
628,
220,
220,
220,
825,
1382,
62,
19412,
400,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
12163,
329,
11695,
7679,
286,
262,
1994,
15636,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
9654,
62,
9424,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
9654,
62,
9424,
62,
16539,
1600,
2116,
13,
14535,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
38303,
62,
18227,
1581,
62,
48780,
3698,
11,
2116,
13,
9654,
62,
68,
2768,
1352,
62,
9424,
11,
513,
11,
718,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
19836,
62,
9424,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
19836,
62,
9424,
62,
16539,
1600,
944,
13,
14535,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7852,
14058,
62,
18227,
1581,
62,
48780,
3698,
11,
2116,
13,
19836,
62,
68,
2768,
1352,
62,
9424,
11,
604,
11,
718,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
75,
11369,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
75,
11369,
62,
16539,
1600,
2116,
13,
14535,
11,
406,
9864,
17513,
62,
48780,
3698,
11,
2116,
13,
67,
13513,
11,
642,
11,
718,
8,
628,
198,
220,
220,
220,
825,
1382,
62,
69,
342,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
12163,
329,
277,
342,
7679,
286,
262,
1994,
15636,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
16,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
16,
62,
16539,
1600,
2116,
13,
14535,
11,
31328,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
10943,
2257,
62,
39776,
2257,
62,
3697,
46,
1581,
828,
513,
11,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
17,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
17,
62,
16539,
1600,
2116,
13,
14535,
11,
10729,
18672,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
10943,
2257,
62,
23683,
18672,
62,
3697,
46,
1581,
828,
604,
11,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
18,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
18,
62,
16539,
1600,
2116,
13,
14535,
11,
2320,
46833,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
10943,
2257,
62,
4221,
46833,
62,
3697,
46,
1581,
828,
642,
11,
604,
8,
628,
220,
220,
220,
825,
1382,
62,
49393,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
12163,
329,
5544,
7679,
286,
262,
1994,
15636,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
19,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
19,
62,
16539,
1600,
2116,
13,
14535,
11,
376,
11698,
4221,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
10943,
2257,
62,
37,
11698,
4221,
62,
3697,
46,
1581,
828,
513,
11,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
20,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
20,
62,
16539,
1600,
2116,
13,
14535,
11,
376,
10554,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
10943,
2257,
62,
37,
10554,
62,
3697,
46,
1581,
828,
604,
11,
513,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
21,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
21,
62,
16539,
1600,
2116,
13,
14535,
11,
311,
10426,
4221,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
10943,
2257,
62,
50,
10426,
4221,
62,
3697,
46,
1581,
828,
642,
11,
513,
8,
628,
220,
220,
220,
825,
1382,
62,
17089,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
12163,
329,
2368,
7679,
286,
262,
1994,
15636,
37811,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
22,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
22,
62,
16539,
1600,
2116,
13,
14535,
11,
7946,
53,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
51,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
828,
513,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
23,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
23,
62,
16539,
1600,
2116,
13,
14535,
11,
412,
18060,
4221,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
36,
2538,
53,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
828,
604,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
24,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
24,
62,
16539,
1600,
2116,
13,
14535,
11,
10635,
18060,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
34551,
37738,
4221,
62,
3697,
46,
1581,
62,
48780,
3698,
828,
642,
11,
362,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
1382,
62,
12227,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
12163,
329,
1218,
7679,
286,
262,
1994,
15636,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
940,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
940,
62,
16539,
1600,
2116,
13,
14535,
11,
309,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
51,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
828,
513,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
1157,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
1157,
62,
16539,
1600,
2116,
13,
14535,
11,
40342,
53,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
36,
2538,
53,
3525,
39,
62,
3697,
46,
1581,
62,
48780,
3698,
828,
604,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
1065,
62,
16539,
796,
2116,
13,
17953,
62,
16539,
7203,
69,
1065,
62,
16539,
1600,
2116,
13,
14535,
11,
17306,
37738,
4221,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
2116,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
34551,
37738,
4221,
62,
3697,
46,
1581,
62,
48780,
3698,
828,
642,
11,
352,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
825,
1382,
62,
11085,
62,
2539,
15636,
62,
29289,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27433,
6167,
329,
717,
7679,
286,
262,
1994,
15636,
37811,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
2539,
15636,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
20373,
47,
2885,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
513,
13,
20,
11,
657,
8,
1303,
3670,
286,
1994,
15636,
628,
220,
220,
220,
825,
31548,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
198,
220,
220,
220,
825,
3359,
62,
68,
2768,
1352,
62,
35226,
7,
944,
2599,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
16531,
20932,
12608,
284,
262,
2836,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
13812,
62,
68,
2768,
1352,
62,
35226,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
3803,
62,
18242,
7,
944,
13,
12417,
62,
18242,
11,
34,
39237,
62,
3697,
46,
1581,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
8,
1303,
1459,
4314,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18242,
13,
25928,
7,
28665,
28,
15,
11,
5752,
28,
16,
8,
1303,
5609,
262,
1388,
6167,
338,
10706,
4067,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14421,
62,
11498,
21069,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
34,
39237,
62,
51,
3620,
18973,
40086,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
513,
8,
1303,
1459,
20218,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14421,
62,
6551,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
34,
39237,
62,
8845,
9947,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
642,
8,
1303,
1459,
3463,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
6259,
62,
9127,
62,
18242,
796,
2116,
13,
17953,
62,
18242,
7,
47,
29086,
62,
34,
28270,
62,
48780,
3698,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
767,
8,
1303,
1459,
1048,
954,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5254,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
15003,
62,
9503,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
357,
944,
13,
68,
2768,
62,
37153,
13,
446,
84,
2879,
62,
20500,
62,
36560,
13,
28920,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
446,
84,
2879,
62,
9288,
62,
19662,
796,
2116,
13,
68,
2768,
62,
37153,
13,
446,
84,
2879,
62,
20500,
62,
36560,
13,
1136,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4798,
7,
944,
13,
446,
84,
2879,
62,
9288,
62,
19662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
446,
84,
2879,
62,
9288,
796,
2116,
13,
17953,
62,
18242,
7,
944,
13,
446,
84,
2879,
62,
9288,
62,
19662,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
362,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
446,
84,
2879,
62,
9288,
796,
2116,
13,
17953,
62,
18242,
7,
944,
13,
446,
84,
2879,
62,
9288,
62,
19662,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
604,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
446,
84,
2879,
62,
9288,
796,
2116,
13,
17953,
62,
18242,
7,
944,
13,
446,
84,
2879,
62,
9288,
62,
19662,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
718,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
446,
84,
2879,
62,
9288,
796,
2116,
13,
17953,
62,
18242,
7,
944,
13,
446,
84,
2879,
62,
9288,
62,
19662,
11,
7102,
2257,
62,
48780,
3698,
62,
33489,
11,
657,
11,
807,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
36,
2768,
1352,
12608,
714,
407,
307,
9066,
4943,
628,
198,
220,
220,
220,
825,
1280,
62,
68,
2768,
1352,
62,
9424,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27592,
262,
4706,
284,
1280,
262,
3420,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
2617,
62,
68,
2768,
1352,
62,
9424,
62,
13376,
3419,
198,
220,
220,
220,
220,
628,
220,
220,
220,
825,
1969,
62,
68,
2768,
1352,
62,
9424,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
2617,
62,
68,
2768,
1352,
62,
9424,
62,
13376,
3419,
198,
220,
220,
220,
220,
628,
220,
220,
220,
825,
900,
62,
68,
2768,
1352,
62,
28300,
7,
944,
11,
4314,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
2617,
62,
68,
2768,
1352,
62,
28300,
7,
28300,
8,
198,
220,
220,
220,
220,
628,
220,
220,
220,
825,
651,
62,
68,
2768,
1352,
62,
75,
11369,
7,
944,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
1136,
62,
68,
2768,
1352,
62,
75,
11369,
3419,
198,
220,
220,
220,
220,
628,
220,
220,
220,
825,
651,
62,
68,
2768,
1352,
62,
12417,
8219,
62,
5219,
7,
944,
2599,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
68,
2768,
62,
37153,
13,
1136,
62,
68,
2768,
1352,
62,
12417,
8219,
62,
5219,
3419,
628
] | 2.280624 | 3,845 |
"""Clean Code in Python - Chapter 3: General Traits of Good Code
> Error Handling - Exceptions
"""
import logging
import time
from base import Connector, Event
logger = logging.getLogger(__name__)
def connect_with_retry(
connector: Connector, retry_n_times: int, retry_backoff: int = 5
):
"""Tries to establish the connection of <connector> retrying
<retry_n_times>, and waiting <retry_backoff> seconds between attempts.
If it can connect, returns the connection object.
If it's not possible to connect after the retries have been exhausted, raises ``ConnectionError``.
:param connector: An object with a ``.connect()`` method.
:param retry_n_times int: The number of times to try to call
``connector.connect()``.
:param retry_backoff int: The time lapse between retry calls.
"""
for _ in range(retry_n_times):
try:
return connector.connect()
except ConnectionError as e:
logger.info(
"%s: attempting new connection in %is", e, retry_backoff
)
time.sleep(retry_backoff)
exc = ConnectionError(f"Couldn't connect after {retry_n_times} times")
logger.exception(exc)
raise exc
class DataTransport:
"""An example of an object that separates the exception handling by
abstraction levels.
"""
_RETRY_BACKOFF: int = 5
_RETRY_TIMES: int = 3
def __init__(self, connector: Connector) -> None:
self._connector = connector
self.connection = None
def deliver_event(self, event: Event):
self.connection = connect_with_retry(
self._connector, self._RETRY_TIMES, self._RETRY_BACKOFF
)
self.send(event)
def send(self, event: Event):
try:
return self.connection.send(event.decode())
except ValueError as e:
logger.error("%r contains incorrect data: %s", event, e)
raise
| [
37811,
32657,
6127,
287,
11361,
532,
7006,
513,
25,
3611,
4759,
896,
286,
4599,
6127,
198,
198,
29,
13047,
49500,
532,
1475,
11755,
198,
37811,
198,
11748,
18931,
198,
11748,
640,
198,
198,
6738,
2779,
1330,
8113,
273,
11,
8558,
198,
198,
6404,
1362,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628,
198,
4299,
2018,
62,
4480,
62,
1186,
563,
7,
198,
220,
220,
220,
21716,
25,
8113,
273,
11,
1005,
563,
62,
77,
62,
22355,
25,
493,
11,
1005,
563,
62,
1891,
2364,
25,
493,
796,
642,
198,
2599,
198,
220,
220,
220,
37227,
51,
1678,
284,
4474,
262,
4637,
286,
1279,
8443,
273,
29,
1005,
14992,
198,
220,
220,
220,
1279,
1186,
563,
62,
77,
62,
22355,
22330,
290,
4953,
1279,
1186,
563,
62,
1891,
2364,
29,
4201,
1022,
6370,
13,
628,
220,
220,
220,
1002,
340,
460,
2018,
11,
5860,
262,
4637,
2134,
13,
198,
220,
220,
220,
1002,
340,
338,
407,
1744,
284,
2018,
706,
262,
1005,
1678,
423,
587,
19064,
11,
12073,
7559,
32048,
12331,
15506,
13,
628,
220,
220,
220,
1058,
17143,
21716,
25,
220,
220,
220,
220,
220,
220,
220,
220,
1052,
2134,
351,
257,
7559,
13,
8443,
3419,
15506,
2446,
13,
198,
220,
220,
220,
1058,
17143,
1005,
563,
62,
77,
62,
22355,
493,
25,
383,
1271,
286,
1661,
284,
1949,
284,
869,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7559,
8443,
273,
13,
8443,
3419,
15506,
13,
198,
220,
220,
220,
1058,
17143,
1005,
563,
62,
1891,
2364,
493,
25,
383,
640,
42689,
1022,
1005,
563,
3848,
13,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
329,
4808,
287,
2837,
7,
1186,
563,
62,
77,
62,
22355,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
21716,
13,
8443,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
26923,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
10951,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36521,
82,
25,
9361,
649,
4637,
287,
4064,
271,
1600,
304,
11,
1005,
563,
62,
1891,
2364,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
13,
42832,
7,
1186,
563,
62,
1891,
2364,
8,
198,
220,
220,
220,
2859,
796,
26923,
12331,
7,
69,
1,
23722,
77,
470,
2018,
706,
1391,
1186,
563,
62,
77,
62,
22355,
92,
1661,
4943,
198,
220,
220,
220,
49706,
13,
1069,
4516,
7,
41194,
8,
198,
220,
220,
220,
5298,
2859,
628,
198,
4871,
6060,
8291,
634,
25,
198,
220,
220,
220,
37227,
2025,
1672,
286,
281,
2134,
326,
31555,
262,
6631,
9041,
416,
198,
220,
220,
220,
34651,
2974,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
4808,
2200,
40405,
62,
31098,
27977,
25,
493,
796,
642,
198,
220,
220,
220,
4808,
2200,
40405,
62,
51,
3955,
1546,
25,
493,
796,
513,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
21716,
25,
8113,
273,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8443,
273,
796,
21716,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
38659,
796,
6045,
628,
220,
220,
220,
825,
5203,
62,
15596,
7,
944,
11,
1785,
25,
8558,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
38659,
796,
2018,
62,
4480,
62,
1186,
563,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8443,
273,
11,
2116,
13557,
2200,
40405,
62,
51,
3955,
1546,
11,
2116,
13557,
2200,
40405,
62,
31098,
27977,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
21280,
7,
15596,
8,
628,
220,
220,
220,
825,
3758,
7,
944,
11,
1785,
25,
8558,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
38659,
13,
21280,
7,
15596,
13,
12501,
1098,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49706,
13,
18224,
7203,
4,
81,
4909,
11491,
1366,
25,
4064,
82,
1600,
1785,
11,
304,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
198
] | 2.532734 | 779 |
from flask import Blueprint, render_template, Response
from application.helpers import requires_auth
from core.tag.models import Tag
tag_pages = Blueprint('tag', __name__
, template_folder='templates', static_folder='static')
| [
6738,
42903,
1330,
39932,
11,
8543,
62,
28243,
11,
18261,
198,
198,
6738,
3586,
13,
16794,
364,
1330,
4433,
62,
18439,
198,
6738,
4755,
13,
12985,
13,
27530,
1330,
17467,
198,
198,
12985,
62,
31126,
796,
39932,
10786,
12985,
3256,
11593,
3672,
834,
198,
197,
11,
11055,
62,
43551,
11639,
11498,
17041,
3256,
9037,
62,
43551,
11639,
12708,
11537,
628
] | 3.833333 | 60 |