content
stringlengths 1
1.04M
| input_ids
sequencelengths 1
774k
| ratio_char_token
float64 0.38
22.9
| token_count
int64 1
774k
|
---|---|---|---|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# **************************************************************************
# Copyright ยฉ 2017 jianglin
# File Name: runserver.py
# Author: jianglin
# Email: [email protected]
# Created: 2017-02-02 09:18:53 (CST)
# Last Update:ๆๆๅ 2017-2-16 22:19:49 (CST)
# By:
# Description:
# **************************************************************************
from flask_apscheduler import scheduler
from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
from scheduler import create_app
from pytz import timezone
app = create_app(Config())
def hello():
'''
่พๅบๆถ้ด
'''
from time import time
print(time())
from apscheduler.jobstores.base import ConflictingIdError
try:
a = scheduler.add_job(hello, trigger='interval', seconds=10, id='3')
except ConflictingIdError as e:
print(e)
if __name__ == '__main__':
app.run()
print(app.url_map)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
41906,
17174,
4557,
1174,
198,
2,
15069,
10673,
2177,
474,
15483,
2815,
198,
2,
9220,
6530,
25,
1057,
15388,
13,
9078,
198,
2,
6434,
25,
474,
15483,
2815,
198,
2,
9570,
25,
2124,
7745,
648,
33057,
22,
31,
14816,
13,
785,
198,
2,
15622,
25,
2177,
12,
2999,
12,
2999,
7769,
25,
1507,
25,
4310,
357,
34,
2257,
8,
198,
2,
4586,
10133,
25,
23626,
253,
17312,
253,
32368,
249,
2177,
12,
17,
12,
1433,
2534,
25,
1129,
25,
2920,
357,
34,
2257,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2750,
25,
198,
2,
12489,
25,
198,
2,
41906,
17174,
4557,
1174,
198,
6738,
42903,
62,
499,
1416,
704,
18173,
1330,
6038,
18173,
198,
6738,
257,
862,
1740,
18173,
13,
21858,
43409,
13,
25410,
282,
26599,
1330,
16363,
2348,
26599,
33308,
22658,
198,
6738,
6038,
18173,
1330,
2251,
62,
1324,
198,
6738,
12972,
22877,
1330,
640,
11340,
628,
198,
198,
1324,
796,
2251,
62,
1324,
7,
16934,
28955,
628,
198,
4299,
23748,
33529,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
5525,
122,
241,
49035,
118,
33768,
114,
29785,
112,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
422,
640,
1330,
640,
198,
220,
220,
220,
3601,
7,
2435,
28955,
628,
198,
6738,
257,
862,
1740,
18173,
13,
21858,
43409,
13,
8692,
1330,
7326,
677,
889,
7390,
12331,
198,
28311,
25,
198,
220,
220,
220,
257,
796,
6038,
18173,
13,
2860,
62,
21858,
7,
31373,
11,
7616,
11639,
3849,
2100,
3256,
4201,
28,
940,
11,
4686,
11639,
18,
11537,
198,
16341,
7326,
677,
889,
7390,
12331,
355,
304,
25,
198,
220,
220,
220,
3601,
7,
68,
8,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
598,
13,
5143,
3419,
198,
220,
220,
220,
3601,
7,
1324,
13,
6371,
62,
8899,
8,
198
] | 2.816817 | 333 |
# Str08.py
# a1 a2 a3 a4;print(a1, a2, a3, a4) --> Java, C, SQL, Python
a1, a2, a3, a4 = 'Java,C,SQL,Python'.split(',')
print(a1, a2, a3, a4)
b = ['H', 'e', 'l', 'l', 'o']
b = ''.join(b)
print(b)
a = ''
for i in range(0,len(b)):
a += b[i]
print(a)
print('์๋
ํ์ธ์', sep=' ', end='\n')
print('์๋
ํ์ธ์', end='')
print('์๋
ํ์ธ์', end=' ')
print('์๋
ํ์ธ์')
print('์','๋
','ํ','์ธ','์', sep=' ')
print('์','๋
','ํ','์ธ','์', sep='/')
print('์','๋
','ํ','์ธ','์', sep=',', end='\t')
# sep๋ ๊ทธ ๊ตฌ๋ฌธ ๋ด์์์ ๊ตฌ๋ถ์, end๋ ๋ณต์๊ฐ์ ๊ตฌ๋ฌธ ์ฌ์ด์ ๊ตฌ๋ถ์
| [
2,
4285,
2919,
13,
9078,
628,
198,
2,
257,
16,
257,
17,
220,
257,
18,
220,
220,
257,
19,
26,
4798,
7,
64,
16,
11,
257,
17,
11,
257,
18,
11,
257,
19,
8,
14610,
7349,
11,
327,
11,
16363,
11,
11361,
198,
64,
16,
11,
257,
17,
11,
257,
18,
11,
257,
19,
796,
705,
29584,
11,
34,
11,
17861,
11,
37906,
4458,
35312,
7,
3256,
11537,
198,
4798,
7,
64,
16,
11,
257,
17,
11,
257,
18,
11,
257,
19,
8,
198,
198,
65,
796,
37250,
39,
3256,
705,
68,
3256,
705,
75,
3256,
705,
75,
3256,
705,
78,
20520,
198,
65,
796,
705,
4458,
22179,
7,
65,
8,
198,
4798,
7,
65,
8,
198,
198,
64,
796,
10148,
198,
1640,
1312,
287,
2837,
7,
15,
11,
11925,
7,
65,
8,
2599,
198,
220,
220,
220,
257,
15853,
275,
58,
72,
60,
198,
198,
4798,
7,
64,
8,
628,
198,
198,
4798,
10786,
168,
243,
230,
167,
227,
243,
47991,
246,
168,
226,
116,
168,
248,
242,
3256,
41767,
11639,
46083,
886,
11639,
59,
77,
11537,
198,
4798,
10786,
168,
243,
230,
167,
227,
243,
47991,
246,
168,
226,
116,
168,
248,
242,
3256,
886,
28,
7061,
8,
198,
4798,
10786,
168,
243,
230,
167,
227,
243,
47991,
246,
168,
226,
116,
168,
248,
242,
3256,
886,
11639,
705,
8,
198,
4798,
10786,
168,
243,
230,
167,
227,
243,
47991,
246,
168,
226,
116,
168,
248,
242,
11537,
198,
4798,
10786,
168,
243,
230,
41707,
167,
227,
243,
41707,
47991,
246,
41707,
168,
226,
116,
41707,
168,
248,
242,
3256,
41767,
11639,
705,
8,
198,
4798,
10786,
168,
243,
230,
41707,
167,
227,
243,
41707,
47991,
246,
41707,
168,
226,
116,
41707,
168,
248,
242,
3256,
41767,
11639,
14,
11537,
198,
4798,
10786,
168,
243,
230,
41707,
167,
227,
243,
41707,
47991,
246,
41707,
168,
226,
116,
41707,
168,
248,
242,
3256,
41767,
28,
3256,
3256,
886,
11639,
59,
83,
11537,
198,
2,
41767,
167,
232,
242,
220,
166,
115,
116,
220,
166,
113,
105,
167,
105,
116,
31619,
224,
112,
168,
245,
238,
168,
226,
250,
35975,
246,
220,
166,
113,
105,
167,
114,
226,
168,
252,
238,
11,
886,
167,
232,
242,
31619,
111,
113,
168,
230,
246,
166,
108,
250,
35975,
246,
220,
166,
113,
105,
167,
105,
116,
23821,
8955,
35975,
112,
35975,
246,
220,
166,
113,
105,
167,
114,
226,
168,
252,
238,
628,
198
] | 1.298507 | 402 |
import unittest
if __name__ == '__main__':
unittest.main()
| [
11748,
555,
715,
395,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
555,
715,
395,
13,
12417,
3419,
198
] | 2.392857 | 28 |
import msgpackrpc
from core.expando import ExpandoServer
ADDR = SERVER = THREAD = None
(ADDR, SERVER, THREAD) = ExpandoServer().serve()
client = msgpackrpc.Client(ADDR, unpack_encoding='utf-8')
client.call('add_expansion', u'esc', u'a vim user I see')
action = client.call('expand', u'esc')
print(action)
| [
11748,
31456,
8002,
81,
14751,
198,
6738,
4755,
13,
11201,
25440,
1330,
5518,
25440,
10697,
628,
198,
2885,
7707,
796,
18871,
5959,
796,
2320,
15675,
796,
6045,
198,
7,
2885,
7707,
11,
18871,
5959,
11,
2320,
15675,
8,
796,
5518,
25440,
10697,
22446,
2655,
303,
3419,
198,
198,
16366,
796,
31456,
8002,
81,
14751,
13,
11792,
7,
2885,
7707,
11,
555,
8002,
62,
12685,
7656,
11639,
40477,
12,
23,
11537,
198,
16366,
13,
13345,
10786,
2860,
62,
11201,
5487,
3256,
334,
6,
3798,
3256,
334,
6,
64,
43907,
2836,
314,
766,
11537,
198,
2673,
796,
5456,
13,
13345,
10786,
11201,
392,
3256,
334,
6,
3798,
11537,
198,
198,
4798,
7,
2673,
8,
198
] | 2.734513 | 113 |
""" the urls of rmon.views """
from flask import Blueprint
from rmon.views.index import IndexView
from rmon.views.server import ServerList,ServerDetail
api = Blueprint('api',__name__)
api.add_url_rule('/',view_func=IndexView.as_view('index'))
api.add_url_rule('/servers/',view_func=ServerList.as_view('server_list'))
api.add_url_rule('/servers/<int:object_id>',view_func=ServerDetail.as_view('server_detail'))
| [
37811,
262,
2956,
7278,
286,
374,
2144,
13,
33571,
37227,
198,
6738,
42903,
1330,
39932,
198,
6738,
374,
2144,
13,
33571,
13,
9630,
1330,
12901,
7680,
198,
6738,
374,
2144,
13,
33571,
13,
15388,
1330,
9652,
8053,
11,
10697,
11242,
603,
198,
198,
15042,
796,
39932,
10786,
15042,
3256,
834,
3672,
834,
8,
198,
15042,
13,
2860,
62,
6371,
62,
25135,
10786,
14,
3256,
1177,
62,
20786,
28,
15732,
7680,
13,
292,
62,
1177,
10786,
9630,
6,
4008,
198,
15042,
13,
2860,
62,
6371,
62,
25135,
10786,
14,
2655,
690,
14,
3256,
1177,
62,
20786,
28,
10697,
8053,
13,
292,
62,
1177,
10786,
15388,
62,
4868,
6,
4008,
198,
15042,
13,
2860,
62,
6371,
62,
25135,
10786,
14,
2655,
690,
14,
27,
600,
25,
15252,
62,
312,
29,
3256,
1177,
62,
20786,
28,
10697,
11242,
603,
13,
292,
62,
1177,
10786,
15388,
62,
49170,
6,
4008,
198
] | 2.795918 | 147 |
# -*- coding: utf-8 -*-
# encoding: utf-8
import smtplib
from email.mime.text import MIMEText
from email.utils import formataddr
if __name__ == "__main__":
mh = MailHelper('[email protected]', '1992wen1031')
mh.sendmail('[email protected],[email protected], ', 'Pythonๅ้้ฎไปถ', '่ฟๅชๆฏไธไธชๆต่ฏ้ฎไปถ,่ฏทไธ่ฆๅๅค!') | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
21004,
25,
3384,
69,
12,
23,
198,
198,
11748,
895,
83,
489,
571,
198,
6738,
3053,
13,
76,
524,
13,
5239,
1330,
337,
3955,
2767,
2302,
198,
6738,
3053,
13,
26791,
1330,
5794,
29851,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
285,
71,
796,
11099,
47429,
10786,
1477,
5488,
89,
12,
258,
31,
448,
5460,
13,
785,
3256,
705,
23847,
21006,
940,
3132,
11537,
198,
220,
220,
220,
285,
71,
13,
21280,
4529,
10786,
86,
23548,
675,
78,
16,
31,
24136,
13,
785,
11,
4521,
2327,
486,
19707,
31,
38227,
13,
785,
11,
46083,
705,
37906,
20998,
239,
34460,
223,
165,
224,
106,
20015,
114,
3256,
705,
32573,
247,
20998,
103,
42468,
31660,
10310,
103,
38184,
233,
46237,
243,
165,
224,
106,
20015,
114,
11,
46237,
115,
38834,
17358,
223,
32368,
252,
13783,
235,
0,
11537
] | 1.900621 | 161 |
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
CUDA_FLAGS = []
ext_modules=[
CUDAExtension('soft_renderer.cuda.load_textures', [
'soft_renderer/cuda/load_textures_cuda.cpp',
'soft_renderer/cuda/load_textures_cuda_kernel.cu',
],
extra_compile_args={'cxx': [], 'nvcc': [
'--generate-code=arch=compute_35,code=sm_35',
'--generate-code=arch=compute_37,code=sm_37',
'--generate-code=arch=compute_50,code=sm_50',
'--generate-code=arch=compute_52,code=sm_52',
'--generate-code=arch=compute_53,code=sm_53',
'--generate-code=arch=compute_60,code=sm_60',
'--generate-code=arch=compute_61,code=sm_61',
'--generate-code=arch=compute_62,code=sm_62',
'--generate-code=arch=compute_70,code=sm_70',
'--generate-code=arch=compute_72,code=sm_72',
'--generate-code=arch=compute_75,code=sm_75',
'--generate-code=arch=compute_86,code=sm_86',
]}
),
CUDAExtension('soft_renderer.cuda.create_texture_image', [
'soft_renderer/cuda/create_texture_image_cuda.cpp',
'soft_renderer/cuda/create_texture_image_cuda_kernel.cu',
],
extra_compile_args={'cxx': [], 'nvcc': [
'--generate-code=arch=compute_35,code=sm_35',
'--generate-code=arch=compute_37,code=sm_37',
'--generate-code=arch=compute_50,code=sm_50',
'--generate-code=arch=compute_52,code=sm_52',
'--generate-code=arch=compute_53,code=sm_53',
'--generate-code=arch=compute_60,code=sm_60',
'--generate-code=arch=compute_61,code=sm_61',
'--generate-code=arch=compute_62,code=sm_62',
'--generate-code=arch=compute_70,code=sm_70',
'--generate-code=arch=compute_72,code=sm_72',
'--generate-code=arch=compute_75,code=sm_75',
'--generate-code=arch=compute_86,code=sm_86',
]}
),
CUDAExtension('soft_renderer.cuda.soft_rasterize', [
'soft_renderer/cuda/soft_rasterize_cuda.cpp',
'soft_renderer/cuda/soft_rasterize_cuda_kernel.cu',
],
extra_compile_args={'cxx': [], 'nvcc': [
'--generate-code=arch=compute_35,code=sm_35',
'--generate-code=arch=compute_37,code=sm_37',
'--generate-code=arch=compute_50,code=sm_50',
'--generate-code=arch=compute_52,code=sm_52',
'--generate-code=arch=compute_53,code=sm_53',
'--generate-code=arch=compute_60,code=sm_60',
'--generate-code=arch=compute_61,code=sm_61',
'--generate-code=arch=compute_62,code=sm_62',
'--generate-code=arch=compute_70,code=sm_70',
'--generate-code=arch=compute_72,code=sm_72',
'--generate-code=arch=compute_75,code=sm_75',
'--generate-code=arch=compute_86,code=sm_86',
]}
),
CUDAExtension('soft_renderer.cuda.voxelization', [
'soft_renderer/cuda/voxelization_cuda.cpp',
'soft_renderer/cuda/voxelization_cuda_kernel.cu',
],
extra_compile_args={'cxx': [], 'nvcc': [
'--generate-code=arch=compute_35,code=sm_35',
'--generate-code=arch=compute_37,code=sm_37',
'--generate-code=arch=compute_50,code=sm_50',
'--generate-code=arch=compute_52,code=sm_52',
'--generate-code=arch=compute_53,code=sm_53',
'--generate-code=arch=compute_60,code=sm_60',
'--generate-code=arch=compute_61,code=sm_61',
'--generate-code=arch=compute_62,code=sm_62',
'--generate-code=arch=compute_70,code=sm_70',
'--generate-code=arch=compute_72,code=sm_72',
'--generate-code=arch=compute_75,code=sm_75',
'--generate-code=arch=compute_86,code=sm_86',
]}
),
]
INSTALL_REQUIREMENTS = ['numpy', 'torch', 'torchvision', 'scikit-image', 'tqdm', 'imageio']
setup(
description='PyTorch implementation of "Soft Rasterizer"',
author='Shichen Liu',
author_email='[email protected]',
license='MIT License',
version='1.0.0',
name='soft_renderer',
packages=['soft_renderer', 'soft_renderer.cuda', 'soft_renderer.functional'],
install_requires=INSTALL_REQUIREMENTS,
ext_modules=ext_modules,
cmdclass = {'build_ext': BuildExtension}
)
| [
6738,
900,
37623,
10141,
1330,
9058,
11,
1064,
62,
43789,
198,
198,
6738,
28034,
13,
26791,
13,
20322,
62,
2302,
3004,
1330,
10934,
11627,
3004,
11,
29369,
5631,
11627,
3004,
198,
198,
43633,
5631,
62,
38948,
50,
796,
17635,
198,
198,
2302,
62,
18170,
41888,
198,
220,
220,
220,
29369,
5631,
11627,
3004,
10786,
4215,
62,
10920,
11882,
13,
66,
15339,
13,
2220,
62,
5239,
942,
3256,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
2220,
62,
5239,
942,
62,
66,
15339,
13,
20322,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
2220,
62,
5239,
942,
62,
66,
15339,
62,
33885,
13,
27399,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
62,
5589,
576,
62,
22046,
34758,
6,
66,
5324,
10354,
685,
4357,
705,
48005,
535,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2327,
11,
8189,
28,
5796,
62,
2327,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2718,
11,
8189,
28,
5796,
62,
2718,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1120,
11,
8189,
28,
5796,
62,
1120,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4309,
11,
8189,
28,
5796,
62,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4310,
11,
8189,
28,
5796,
62,
4310,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1899,
11,
8189,
28,
5796,
62,
1899,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5333,
11,
8189,
28,
5796,
62,
5333,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5237,
11,
8189,
28,
5796,
62,
5237,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2154,
11,
8189,
28,
5796,
62,
2154,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4761,
11,
8189,
28,
5796,
62,
4761,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2425,
11,
8189,
28,
5796,
62,
2425,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4521,
11,
8189,
28,
5796,
62,
4521,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
29369,
5631,
11627,
3004,
10786,
4215,
62,
10920,
11882,
13,
66,
15339,
13,
17953,
62,
41293,
62,
9060,
3256,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
17953,
62,
41293,
62,
9060,
62,
66,
15339,
13,
20322,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
17953,
62,
41293,
62,
9060,
62,
66,
15339,
62,
33885,
13,
27399,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
62,
5589,
576,
62,
22046,
34758,
6,
66,
5324,
10354,
685,
4357,
705,
48005,
535,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2327,
11,
8189,
28,
5796,
62,
2327,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2718,
11,
8189,
28,
5796,
62,
2718,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1120,
11,
8189,
28,
5796,
62,
1120,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4309,
11,
8189,
28,
5796,
62,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4310,
11,
8189,
28,
5796,
62,
4310,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1899,
11,
8189,
28,
5796,
62,
1899,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5333,
11,
8189,
28,
5796,
62,
5333,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5237,
11,
8189,
28,
5796,
62,
5237,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2154,
11,
8189,
28,
5796,
62,
2154,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4761,
11,
8189,
28,
5796,
62,
4761,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2425,
11,
8189,
28,
5796,
62,
2425,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4521,
11,
8189,
28,
5796,
62,
4521,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
29369,
5631,
11627,
3004,
10786,
4215,
62,
10920,
11882,
13,
66,
15339,
13,
4215,
62,
81,
1603,
1096,
3256,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
4215,
62,
81,
1603,
1096,
62,
66,
15339,
13,
20322,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
4215,
62,
81,
1603,
1096,
62,
66,
15339,
62,
33885,
13,
27399,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
62,
5589,
576,
62,
22046,
34758,
6,
66,
5324,
10354,
685,
4357,
705,
48005,
535,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2327,
11,
8189,
28,
5796,
62,
2327,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2718,
11,
8189,
28,
5796,
62,
2718,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1120,
11,
8189,
28,
5796,
62,
1120,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4309,
11,
8189,
28,
5796,
62,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4310,
11,
8189,
28,
5796,
62,
4310,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1899,
11,
8189,
28,
5796,
62,
1899,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5333,
11,
8189,
28,
5796,
62,
5333,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5237,
11,
8189,
28,
5796,
62,
5237,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2154,
11,
8189,
28,
5796,
62,
2154,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4761,
11,
8189,
28,
5796,
62,
4761,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2425,
11,
8189,
28,
5796,
62,
2425,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4521,
11,
8189,
28,
5796,
62,
4521,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
29369,
5631,
11627,
3004,
10786,
4215,
62,
10920,
11882,
13,
66,
15339,
13,
85,
1140,
417,
1634,
3256,
685,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
85,
1140,
417,
1634,
62,
66,
15339,
13,
20322,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
705,
4215,
62,
10920,
11882,
14,
66,
15339,
14,
85,
1140,
417,
1634,
62,
66,
15339,
62,
33885,
13,
27399,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
3131,
62,
5589,
576,
62,
22046,
34758,
6,
66,
5324,
10354,
685,
4357,
705,
48005,
535,
10354,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2327,
11,
8189,
28,
5796,
62,
2327,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2718,
11,
8189,
28,
5796,
62,
2718,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1120,
11,
8189,
28,
5796,
62,
1120,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4309,
11,
8189,
28,
5796,
62,
4309,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4310,
11,
8189,
28,
5796,
62,
4310,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
1899,
11,
8189,
28,
5796,
62,
1899,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5333,
11,
8189,
28,
5796,
62,
5333,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
5237,
11,
8189,
28,
5796,
62,
5237,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2154,
11,
8189,
28,
5796,
62,
2154,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4761,
11,
8189,
28,
5796,
62,
4761,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
2425,
11,
8189,
28,
5796,
62,
2425,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
438,
8612,
378,
12,
8189,
28,
998,
28,
5589,
1133,
62,
4521,
11,
8189,
28,
5796,
62,
4521,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
92,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
2361,
198,
198,
38604,
7036,
62,
2200,
49128,
28957,
796,
37250,
77,
32152,
3256,
705,
13165,
354,
3256,
705,
13165,
354,
10178,
3256,
705,
36216,
15813,
12,
9060,
3256,
705,
83,
80,
36020,
3256,
705,
9060,
952,
20520,
198,
198,
40406,
7,
198,
220,
220,
220,
6764,
11639,
20519,
15884,
354,
7822,
286,
366,
18380,
371,
1603,
7509,
1,
3256,
198,
220,
220,
220,
1772,
11639,
2484,
41437,
18258,
3256,
198,
220,
220,
220,
1772,
62,
12888,
11639,
4528,
1530,
41437,
3865,
31,
14816,
13,
785,
3256,
198,
220,
220,
220,
5964,
11639,
36393,
13789,
3256,
198,
220,
220,
220,
2196,
11639,
16,
13,
15,
13,
15,
3256,
198,
220,
220,
220,
1438,
11639,
4215,
62,
10920,
11882,
3256,
198,
220,
220,
220,
10392,
28,
17816,
4215,
62,
10920,
11882,
3256,
705,
4215,
62,
10920,
11882,
13,
66,
15339,
3256,
705,
4215,
62,
10920,
11882,
13,
45124,
6,
4357,
198,
220,
220,
220,
2721,
62,
47911,
28,
38604,
7036,
62,
2200,
49128,
28957,
11,
198,
220,
220,
220,
1070,
62,
18170,
28,
2302,
62,
18170,
11,
198,
220,
220,
220,
23991,
4871,
796,
1391,
6,
11249,
62,
2302,
10354,
10934,
11627,
3004,
92,
198,
8,
198
] | 1.909284 | 2,359 |
import pandas as pd
import numpy as np
from random import randrange
from datetime import timedelta
from datetime import datetime
import random
import string
from faker import Faker
countries = ["ะะฐะทะฐั
ััะฐะฝ", "ะ ะพััะธั", "ะัะฐะปะธั", "ะะตัะผะฐะฝะธั", "ะะธัะฐะน", "ะกะจะ"]
regions = ["ะะปะผะฐัั", "ะัั-ะกัะปัะฐะฝ", "ะจัะผะบะตะฝั"]
choices = ["ะดะฐ", "ะฝะตั"]
hospitals = ["ะะฝะพะณะพะฟัะพัะธะปัะฝัะน ะผะตะดะธัะธะฝัะบะธะน ัะตะฝัั", "ะดะพะผะฐัะฝะธะน ะบะฐัะฐะฝัะธะฝ", "ััะฐัะธะพะฝะฐั", "ััะฐะฝะทะธั", "ะฒัะปะตั ะฒ ัะฒะตะนัะฐัะธั", "ะะพัะพะดัะบะฐั ะธะฝัะตะบัะธะพะฝะฝะฐั ะฑะพะปัะฝะธัะฐ"]
addresses = ["ะกะฐัะฐะนััะบ", "ะัะฝะฐะตะฒะฐ", "ะกะตะนััะปะปะธะฝะฐ", "ะ ััะบัะปะพะฒะฐ", "ะะฑะฐั", "ะะฐะฝะณะตะปัะดะธะฝะฐ", "ะะฐะฝัะธะปะพะฒะฐ", "ะขะพัะตะบัะปะพะฒะฐ", "ะะตะปัะพะบัะฐะฝ", "ะกัะณะฐะฝะฐะบ"]
def random_date(start, end):
"""
This function will return a random datetime between two datetime
objects.
"""
delta = end - start
int_delta = (delta.days * 24 * 60 * 60) + delta.seconds
random_second = randrange(int_delta)
return start + timedelta(seconds=random_second)
generate_fake_csv() | [
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
4738,
1330,
43720,
9521,
198,
6738,
4818,
8079,
1330,
28805,
12514,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
11748,
4738,
198,
11748,
4731,
198,
6738,
277,
3110,
1330,
376,
3110,
198,
198,
9127,
1678,
796,
14631,
140,
248,
16142,
140,
115,
16142,
141,
227,
21727,
20375,
16142,
22177,
1600,
366,
140,
254,
15166,
21727,
21727,
18849,
40623,
1600,
366,
140,
246,
20375,
16142,
30143,
18849,
40623,
1600,
366,
140,
241,
16843,
21169,
43108,
16142,
22177,
18849,
40623,
1600,
366,
140,
248,
18849,
20375,
16142,
140,
117,
1600,
366,
140,
94,
140,
101,
140,
238,
8973,
198,
2301,
507,
796,
14631,
140,
238,
30143,
43108,
16142,
20375,
45035,
1600,
366,
140,
251,
35072,
21169,
12,
140,
94,
35072,
30143,
20375,
16142,
22177,
1600,
366,
140,
101,
45035,
43108,
31583,
16843,
22177,
20375,
8973,
198,
6679,
1063,
796,
14631,
43666,
16142,
1600,
366,
22177,
16843,
20375,
8973,
198,
71,
2117,
8321,
796,
14631,
140,
250,
22177,
25443,
111,
25443,
123,
21169,
15166,
141,
226,
18849,
30143,
45367,
22177,
45035,
140,
117,
12466,
120,
16843,
43666,
18849,
141,
228,
18849,
22177,
21727,
31583,
18849,
140,
117,
220,
141,
228,
16843,
22177,
20375,
21169,
1600,
366,
43666,
25443,
120,
16142,
141,
230,
22177,
18849,
140,
117,
12466,
118,
16142,
21169,
16142,
22177,
20375,
18849,
22177,
1600,
366,
21727,
20375,
16142,
141,
228,
18849,
15166,
22177,
16142,
21169,
1600,
366,
20375,
21169,
16142,
22177,
140,
115,
18849,
20375,
1600,
366,
38857,
45035,
30143,
16843,
20375,
12466,
110,
220,
141,
230,
38857,
16843,
140,
117,
141,
228,
16142,
21169,
18849,
141,
236,
1600,
366,
140,
241,
15166,
21169,
25443,
112,
21727,
31583,
16142,
40623,
12466,
116,
22177,
141,
226,
16843,
31583,
141,
228,
18849,
15166,
22177,
22177,
16142,
40623,
12466,
109,
25443,
119,
45367,
22177,
18849,
141,
228,
16142,
8973,
198,
2860,
16746,
796,
14631,
140,
94,
16142,
21169,
16142,
140,
117,
141,
230,
45035,
31583,
1600,
366,
140,
248,
35072,
22177,
16142,
16843,
38857,
16142,
1600,
366,
140,
94,
16843,
140,
117,
141,
226,
35072,
30143,
30143,
18849,
22177,
16142,
1600,
366,
140,
254,
45035,
21727,
31583,
35072,
30143,
25443,
110,
16142,
1600,
366,
140,
238,
140,
109,
16142,
40623,
1600,
366,
140,
244,
16142,
22177,
140,
111,
16843,
30143,
45367,
43666,
18849,
22177,
16142,
1600,
366,
140,
253,
16142,
22177,
141,
226,
18849,
30143,
25443,
110,
16142,
1600,
366,
140,
95,
15166,
21169,
16843,
31583,
35072,
30143,
25443,
110,
16142,
1600,
366,
140,
244,
16843,
30143,
20375,
25443,
118,
21727,
16142,
22177,
1600,
366,
140,
94,
45035,
140,
111,
16142,
22177,
16142,
31583,
8973,
198,
198,
4299,
4738,
62,
4475,
7,
9688,
11,
886,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
770,
2163,
481,
1441,
257,
4738,
4818,
8079,
1022,
734,
4818,
8079,
220,
198,
220,
220,
220,
5563,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
25979,
796,
886,
532,
923,
198,
220,
220,
220,
493,
62,
67,
12514,
796,
357,
67,
12514,
13,
12545,
1635,
1987,
1635,
3126,
1635,
3126,
8,
1343,
25979,
13,
43012,
198,
220,
220,
220,
4738,
62,
12227,
796,
43720,
9521,
7,
600,
62,
67,
12514,
8,
198,
220,
220,
220,
1441,
923,
1343,
28805,
12514,
7,
43012,
28,
25120,
62,
12227,
8,
198,
198,
8612,
378,
62,
30706,
62,
40664,
3419
] | 1.696751 | 554 |
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy import spatial
import picasso.io as io
### High density data
dir_name = '/fs/pool/pool-schwille-paint/Data/p17.lbFCS2/20-12-09_N1_T23_ibidi_cseries/21-01-19_FS_id180'
file_name = 'ibidi_id180_Pm2-05nM_p40uW_1_MMStack_Pos0.ome_locs_render_picked_props.hdf5'
### Low density data
# dir_name = '/fs/pool/pool-schwille-paint/Data/p17.lbFCS2/20-12-10_N1-5xCTC_cseries_varexp/21-01-19_FS_id180_exp400'
# file_name = 'id180_Pm2-2d5nM_p40uW_exp400_1_MMStack_Pos0.ome_locs_render_picked_props.hdf5'
### Load props
props = pd.DataFrame(io.load_locs(os.path.join(dir_name,file_name))[0])
### Build KDtree and ask for nearest neighbor
data = props[['x','y']].values.astype(np.float32)
tree = spatial.cKDTree(data)
d,idx = tree.query(data,k=[2])
### Plot nearest neighbor distance distribution in data
f = plt.figure(0,figsize = [5,4])
f.clear()
ax = f.add_subplot(111)
ax.hist(d,bins=np.linspace(0,12,100))
| [
11748,
28686,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
6738,
629,
541,
88,
1330,
21739,
198,
198,
11748,
8301,
28372,
13,
952,
355,
33245,
628,
198,
21017,
3334,
12109,
1366,
198,
15908,
62,
3672,
796,
31051,
9501,
14,
7742,
14,
7742,
12,
20601,
86,
8270,
12,
79,
2913,
14,
6601,
14,
79,
1558,
13,
23160,
4851,
50,
17,
14,
1238,
12,
1065,
12,
2931,
62,
45,
16,
62,
51,
1954,
62,
571,
19830,
62,
66,
25076,
14,
2481,
12,
486,
12,
1129,
62,
10652,
62,
312,
15259,
6,
198,
7753,
62,
3672,
796,
705,
571,
19830,
62,
312,
15259,
62,
47,
76,
17,
12,
2713,
77,
44,
62,
79,
1821,
84,
54,
62,
16,
62,
12038,
25896,
62,
21604,
15,
13,
462,
62,
17946,
82,
62,
13287,
62,
41891,
62,
1676,
862,
13,
71,
7568,
20,
6,
198,
198,
21017,
7754,
12109,
1366,
198,
2,
26672,
62,
3672,
796,
31051,
9501,
14,
7742,
14,
7742,
12,
20601,
86,
8270,
12,
79,
2913,
14,
6601,
14,
79,
1558,
13,
23160,
4851,
50,
17,
14,
1238,
12,
1065,
12,
940,
62,
45,
16,
12,
20,
87,
4177,
34,
62,
66,
25076,
62,
85,
533,
42372,
14,
2481,
12,
486,
12,
1129,
62,
10652,
62,
312,
15259,
62,
11201,
7029,
6,
198,
2,
2393,
62,
3672,
796,
705,
312,
15259,
62,
47,
76,
17,
12,
17,
67,
20,
77,
44,
62,
79,
1821,
84,
54,
62,
11201,
7029,
62,
16,
62,
12038,
25896,
62,
21604,
15,
13,
462,
62,
17946,
82,
62,
13287,
62,
41891,
62,
1676,
862,
13,
71,
7568,
20,
6,
198,
198,
21017,
8778,
25744,
198,
1676,
862,
796,
279,
67,
13,
6601,
19778,
7,
952,
13,
2220,
62,
17946,
82,
7,
418,
13,
6978,
13,
22179,
7,
15908,
62,
3672,
11,
7753,
62,
3672,
4008,
58,
15,
12962,
220,
198,
198,
21017,
10934,
43943,
21048,
290,
1265,
329,
16936,
4780,
198,
7890,
796,
25744,
58,
17816,
87,
41707,
88,
20520,
4083,
27160,
13,
459,
2981,
7,
37659,
13,
22468,
2624,
8,
198,
21048,
796,
21739,
13,
66,
42,
24544,
631,
7,
7890,
8,
198,
67,
11,
312,
87,
796,
5509,
13,
22766,
7,
7890,
11,
74,
41888,
17,
12962,
198,
198,
21017,
28114,
16936,
4780,
5253,
6082,
287,
1366,
198,
69,
796,
458,
83,
13,
26875,
7,
15,
11,
5647,
7857,
796,
685,
20,
11,
19,
12962,
198,
69,
13,
20063,
3419,
198,
897,
796,
277,
13,
2860,
62,
7266,
29487,
7,
16243,
8,
198,
897,
13,
10034,
7,
67,
11,
65,
1040,
28,
37659,
13,
21602,
10223,
7,
15,
11,
1065,
11,
3064,
4008,
628
] | 2.238202 | 445 |
# Copyright (c) 2012-2019 Eli Janssen
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file.
# this example shows how filtering can be done on the url generation side.
# this example through https urls (no proxying required), and only allows http
# requests over port 80.
import hashlib
import hmac
import base64
from urllib.parse import urlsplit
CAMO_HOST = 'https://img.example.com'
print(camo_url("test", "http://golang.org/doc/gopher/frontpage.png"))
# https://img.example.org/D23vHLFHsOhPOcvdxeoQyAJTpvM/aHR0cDovL2dvbGFuZy5vcmcvZG9jL2dvcGhlci9mcm9udHBhZ2UucG5n
print(camo_url("test", "http://golang.org:80/doc/gopher/frontpage.png"))
# https://img.example.com/8_b8SZkMlTYfsGFtkZS7SyJn37k/aHR0cDovL2dvbGFuZy5vcmc6ODAvZG9jL2dvcGhlci9mcm9udHBhZ2UucG5n
print(camo_url("test", "http://golang.org:8080/doc/gopher/frontpage.png"))
# Nope!
| [
2,
15069,
357,
66,
8,
2321,
12,
23344,
25204,
449,
504,
6248,
198,
2,
5765,
286,
428,
2723,
2438,
318,
21825,
416,
281,
17168,
12,
7635,
198,
2,
5964,
326,
460,
307,
1043,
287,
262,
38559,
24290,
2393,
13,
198,
198,
2,
428,
1672,
2523,
703,
25431,
460,
307,
1760,
319,
262,
19016,
5270,
1735,
13,
198,
2,
428,
1672,
832,
3740,
2956,
7278,
357,
3919,
14793,
1112,
2672,
828,
290,
691,
3578,
2638,
198,
2,
7007,
625,
2493,
4019,
13,
198,
198,
11748,
12234,
8019,
198,
11748,
289,
20285,
198,
11748,
2779,
2414,
198,
6738,
2956,
297,
571,
13,
29572,
1330,
2956,
7278,
489,
270,
628,
198,
34,
2390,
46,
62,
39,
10892,
796,
705,
5450,
1378,
9600,
13,
20688,
13,
785,
6,
628,
198,
198,
4798,
7,
66,
18811,
62,
6371,
7203,
9288,
1600,
366,
4023,
1378,
70,
349,
648,
13,
2398,
14,
15390,
14,
70,
8803,
14,
8534,
7700,
13,
11134,
48774,
198,
2,
3740,
1378,
9600,
13,
20688,
13,
2398,
14,
35,
1954,
85,
6581,
44602,
82,
5812,
16402,
66,
20306,
27705,
78,
48,
88,
32,
41,
51,
79,
85,
44,
14,
64,
17184,
15,
66,
35,
709,
43,
17,
67,
85,
65,
21713,
84,
57,
88,
20,
85,
11215,
33967,
57,
38,
24,
73,
43,
17,
67,
28435,
38,
18519,
979,
24,
76,
11215,
24,
463,
32886,
71,
57,
17,
52,
1229,
38,
20,
77,
198,
4798,
7,
66,
18811,
62,
6371,
7203,
9288,
1600,
366,
4023,
1378,
70,
349,
648,
13,
2398,
25,
1795,
14,
15390,
14,
70,
8803,
14,
8534,
7700,
13,
11134,
48774,
198,
2,
3740,
1378,
9600,
13,
20688,
13,
785,
14,
23,
62,
65,
23,
50,
57,
74,
44,
75,
9936,
9501,
21713,
30488,
57,
50,
22,
13940,
41,
77,
2718,
74,
14,
64,
17184,
15,
66,
35,
709,
43,
17,
67,
85,
65,
21713,
84,
57,
88,
20,
85,
11215,
66,
21,
3727,
7355,
57,
38,
24,
73,
43,
17,
67,
28435,
38,
18519,
979,
24,
76,
11215,
24,
463,
32886,
71,
57,
17,
52,
1229,
38,
20,
77,
198,
4798,
7,
66,
18811,
62,
6371,
7203,
9288,
1600,
366,
4023,
1378,
70,
349,
648,
13,
2398,
25,
1795,
1795,
14,
15390,
14,
70,
8803,
14,
8534,
7700,
13,
11134,
48774,
198,
2,
39544,
0,
198
] | 2.366048 | 377 |
#program to create a new string with no duplicate consecutive letters from a given string.
print(no_consecutive_letters("PPYYYTTHON"))
print(no_consecutive_letters("PPyyythonnn"))
print(no_consecutive_letters("Java"))
print(no_consecutive_letters("PPPHHHPPP")) | [
2,
23065,
284,
2251,
257,
649,
4731,
351,
645,
23418,
12785,
7475,
422,
257,
1813,
4731,
13,
198,
198,
4798,
7,
3919,
62,
1102,
4552,
425,
62,
15653,
7203,
10246,
26314,
56,
51,
4221,
1340,
48774,
198,
4798,
7,
3919,
62,
1102,
4552,
425,
62,
15653,
7203,
10246,
22556,
7535,
20471,
48774,
198,
4798,
7,
3919,
62,
1102,
4552,
425,
62,
15653,
7203,
29584,
48774,
198,
4798,
7,
3919,
62,
1102,
4552,
425,
62,
15653,
7203,
10246,
11909,
16768,
10246,
47,
48774,
220
] | 3.156627 | 83 |
import sys
import pathlib
import numpy as np
from collections import namedtuple
from scipy import interpolate
import math
path_package = pathlib.Path(__file__).parent.absolute()
sys.path.insert(1,str(path_package.parent))
import API as compression
#%%โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# SETUP
path_data = path_package / 'data'
Reference = namedtuple('Reference',
['raw','atol','cmethod','ostyle','compressed'],
defaults=[1e-5,'interp10','monolith',None])
#%%โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# FUNCTIONS
##%%โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
## Auxiliary functions
#%%โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# Reference raw data
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
raw = {'poly0': raw_poly0,
'poly1': raw_poly1,
'poly2': raw_poly2,
'sine': raw_sine}
###โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
class Data():
'''Data container'''
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
references = [Reference(raw['poly0'],1e-5,'interp10','monolith')]
#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| [
11748,
25064,
198,
11748,
3108,
8019,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
6738,
629,
541,
88,
1330,
39555,
378,
198,
11748,
10688,
198,
198,
6978,
62,
26495,
796,
3108,
8019,
13,
15235,
7,
834,
7753,
834,
737,
8000,
13,
48546,
3419,
628,
198,
17597,
13,
6978,
13,
28463,
7,
16,
11,
2536,
7,
6978,
62,
26495,
13,
8000,
4008,
198,
11748,
7824,
355,
19794,
198,
2,
16626,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
28670,
198,
2,
25823,
8577,
198,
198,
6978,
62,
7890,
796,
3108,
62,
26495,
1220,
705,
7890,
6,
198,
198,
26687,
796,
3706,
83,
29291,
10786,
26687,
3256,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37250,
1831,
41707,
265,
349,
41707,
66,
24396,
41707,
455,
2349,
41707,
5589,
2790,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26235,
41888,
16,
68,
12,
20,
4032,
3849,
79,
940,
41707,
2144,
21446,
3256,
14202,
12962,
198,
198,
2,
16626,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
28670,
198,
2,
29397,
4177,
11053,
628,
198,
2235,
16626,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
198,
2235,
47105,
28129,
5499,
628,
198,
2,
16626,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
28670,
198,
2,
20984,
8246,
1366,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198,
1831,
796,
1391,
6,
35428,
15,
10354,
8246,
62,
35428,
15,
11,
198,
220,
220,
220,
220,
220,
220,
705,
35428,
16,
10354,
8246,
62,
35428,
16,
11,
198,
220,
220,
220,
220,
220,
220,
705,
35428,
17,
10354,
8246,
62,
35428,
17,
11,
198,
220,
220,
220,
220,
220,
220,
705,
82,
500,
10354,
8246,
62,
82,
500,
92,
198,
21017,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
31732,
28670,
198,
4871,
6060,
33529,
198,
220,
220,
220,
705,
7061,
6601,
9290,
7061,
6,
198,
220,
220,
220,
1303,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
8418,
7280,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198,
5420,
4972,
796,
685,
26687,
7,
1831,
17816,
35428,
15,
6,
4357,
16,
68,
12,
20,
4032,
3849,
79,
940,
41707,
2144,
21446,
11537,
60,
198,
2,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
28542,
16068,
8418,
7280,
198
] | 2.856419 | 592 |
from office365.teams.shifts.change_tracked_entity import ChangeTrackedEntity
class Shift(ChangeTrackedEntity):
"""
Represents a unit of scheduled work in a shifts.
"""
pass
| [
6738,
2607,
24760,
13,
660,
4105,
13,
1477,
19265,
13,
3803,
62,
2213,
6021,
62,
26858,
1330,
9794,
2898,
6021,
32398,
628,
198,
4871,
15576,
7,
19400,
2898,
6021,
32398,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1432,
6629,
257,
4326,
286,
7530,
670,
287,
257,
15381,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1208,
198
] | 3.080645 | 62 |
"""
time: a
space: a
"""
| [
37811,
198,
2435,
25,
257,
198,
13200,
25,
257,
198,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | 1.541667 | 24 |
"""This module contains the wrapper class to interacte with fzf.
The fzf class should be used for all occasion when fzf needs
to be launched. fzfaws comes with 4 fzf binary files and will
be used if user doesn't specify to use system fzf in config file.
"""
import os
import subprocess
import sys
from typing import Any, Dict, Generator, List, Optional, Union
from fzfaws.utils.exceptions import EmptyList, NoSelectionMade
class Pyfzf:
r"""A simple wrapper class for fzf utilizing subprocess module.
To create a entry into fzf, use Pyfzf.append_fzf() and pass in the string.
To create mutiple entries, would require manually pass in \n to seperate each entry.
For a list of response from boto3, it is recommended to use the process_list() function.
Example:
fzf = Pyfzf()
s3 = boto3.client('s3')
response = s3.list_buckets()
fzf.process_list(response["Buckets"], "Name")
selected_bucket = fzf.execute_fzf(multi_select=False)
The above example process the list of buckets in response and make "Name" the return value.
The selected_bucket will be a bucket name.
"""
def __init__(self) -> None:
"""Construct the Pyfzf instance.
Credit to https://github.com/pmazurek/aws-fuzzy-finder for the binary detection
method.
"""
self.fzf_string: str = ""
if sys.maxsize > 2 ** 32:
arch = "amd64"
else:
arch = "386"
if sys.platform.startswith("darwin"):
system = "darwin"
elif sys.platform.startswith("linux"):
system = "linux"
else:
print(
"fzfaws currently is only compatible with python3.6+ on MacOS or Linux"
)
sys.exit(1)
self.fzf_path: str = (
"fzf"
if os.getenv("FZFAWS_FZF_EXECUTABLE", "binary") == "system"
else "%s/../libs/fzf-0.21.1-%s_%s"
% (os.path.dirname(os.path.abspath(__file__)), system, arch)
)
def append_fzf(self, new_string: str) -> None:
r"""Append stings to fzf_string.
To have mutiple entries, seperate them by '\n'
Example:fzf.append_fzf('hello')
fzf.append_fzf('\n')
fzf.append_fzf('world')
:param new_string: strings to append to fzf entry
:type new_string: str
"""
self.fzf_string += new_string
def execute_fzf(
self,
empty_allow: bool = False,
print_col: int = 2,
preview: Optional[str] = None,
multi_select: bool = False,
header: Optional[str] = None,
delimiter: Optional[str] = None,
) -> Union[List[Any], List[str], str]:
r"""Execute fzf and return formated string.
Example:
fzf = Pyfzf()
fzf.append_fzf('Hello: hello')
fzf.append_fzf('\n')
fzf.append_fzf('World: world')
fzf.append_fzf('\n')
print(fzf.execute_fzf(empty_allow=True, print_col=1, preview='cat {}', multi_select=True))
The selected string would look like "Hello: hello".
Above example would return 'Hello:'' if the first entry is selected, print col is 1,
if print_col was 2, 'hello' would be printed.
:param empty_allow: determine if empty selection is allowed
:type empty_allow: bool, optional
:param print_col: which column of the result to print (used by awk), -1 print everything except first col
:type print_col: int, optional
:param preview: display preview in fzf, e.g.(echo 'hello')
:type preview: str, optional
:param multi_select: enable fzf multi selection
:type multi_select: bool, optional
:param header: header to display in fzf
:type header: str, optional
:param delimiter: the delimiter to seperate print_col, like awk number
:type delimiter: Optional[str]
:raises NoSelectionMade: when user did not make a selection and empty_allow is False
:return: selected entry from fzf
:rtype: Union[list[Any], list[str], str]
"""
# remove trailing spaces/lines
self.fzf_string = str(self.fzf_string).rstrip()
fzf_input = subprocess.Popen(("echo", self.fzf_string), stdout=subprocess.PIPE)
cmd_list: list = self._construct_fzf_cmd()
selection: bytes = b""
selection_str: str = ""
if header:
cmd_list.append("--header=%s" % header)
if multi_select:
cmd_list.append("--multi")
else:
cmd_list.append("--no-multi")
if preview:
cmd_list.extend(["--preview", preview])
try:
selection = subprocess.check_output(cmd_list, stdin=fzf_input.stdout)
selection_str = str(selection, "utf-8")
if not selection and not empty_allow:
raise NoSelectionMade
# if first line contains ctrl-c, exit
self._check_ctrl_c(selection_str)
except subprocess.CalledProcessError:
# this exception may happend if user didn't make a selection in fzf
# thus ending with non zero exit code
if not empty_allow:
raise NoSelectionMade
elif empty_allow:
if multi_select:
return []
else:
return ""
if multi_select:
return_list: List[str] = []
# multi_select would return everything seperate by \n
selections: List[str] = selection_str.strip().splitlines()
for item in selections:
processed_str = self._get_col(item, print_col, delimiter)
return_list.append(processed_str)
return return_list
else:
return self._get_col(selection_str.strip(), print_col, delimiter)
def get_local_file(
self,
search_from_root: bool = False,
cloudformation: bool = False,
directory: bool = False,
hidden: bool = False,
empty_allow: bool = False,
multi_select: bool = False,
header: Optional[str] = None,
) -> Union[List[Any], List[str], str]:
"""Get local files through fzf.
Populate the local files into fzf, if search_from_root is true
all files would be populated.
Note: could be extremely slow to seach from root if fd not installed.
:param search_from_root: search files from root
:type search_from_root: bool, optional
:param cloudformation: only search yaml or json
:type cloudformation: bool, optional
:param directory: search directory
:type directory: bool, optional
:param hidden: search hidden file, only has effect when fd installed
:type hidden: bool, optional
:param empty_allow: allow empty selection
:type empty_allow: bool, optional
:param multi_select: allow multi selection
:type multi_select: bool, optional
:param header: header display in fzf
:type header: str, optional
:raises NoSelectionMade: when empty_allow=False and no selection was made
:return: selected file path or folder path
:rtype: Union[list[Any], list[str], str]
"""
if search_from_root:
home_path = os.path.expanduser("~")
os.chdir(home_path)
if not header and directory:
header = r"Selecting ./ will use current directory"
cmd: str = ""
if self._check_fd():
if directory:
cmd = "echo \033[33m./\033[0m; fd --type d"
elif cloudformation:
cmd = "fd --type f --regex '(yaml|yml|json)$'"
else:
cmd = "fd --type f"
if hidden:
cmd += " -H"
else:
if directory:
cmd = "echo \033[33m./\033[0m; find * -type d"
elif cloudformation:
cmd = 'find * -type f -name "*.json" -o -name "*.yaml" -o -name "*.yml"'
else:
cmd = "find * -type f"
list_file = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=True
)
selected_file_path: bytes = b""
selected_file_path_str: str = ""
try:
cmd_list: list = self._construct_fzf_cmd()
if header:
cmd_list.append("--header=%s" % header)
if multi_select:
cmd_list.append("-m")
else:
cmd_list.append("+m")
selected_file_path = subprocess.check_output(
cmd_list, stdin=list_file.stdout
)
selected_file_path_str = str(selected_file_path, "utf-8")
if not empty_allow and not selected_file_path:
raise NoSelectionMade
self._check_ctrl_c(selected_file_path_str)
except subprocess.CalledProcessError:
# subprocess exception will raise when user press ecs to exit fzf
if not empty_allow:
raise NoSelectionMade
elif empty_allow:
return [] if empty_allow else ""
if multi_select:
# multi_select would return everything seperate by \n
return selected_file_path_str.strip().splitlines()
else:
return selected_file_path_str.strip()
def _construct_fzf_cmd(self) -> List[str]:
"""Construct command for fzf.
:return: command list processable by subprocess
:rtype: list[str]
"""
cmd_list: list = [self.fzf_path, "--ansi", "--expect=ctrl-c"]
if os.getenv("FZFAWS_FZF_OPTS"):
cmd_list.extend(os.getenv("FZFAWS_FZF_OPTS").split(" "))
if os.getenv("FZFAWS_FZF_KEYS"):
cmd_list.append(os.getenv("FZFAWS_FZF_KEYS", ""))
return cmd_list
def _check_ctrl_c(self, fzf_result: str) -> None:
"""Check if ctrl_c is pressed during fzf invokation.
If ctrl_c is pressed, exit entire fzfaws program instead of
keep moving forward.
:param fzf_result: the str output of fzf subprocess
:type fzf_result: tr
"""
result = fzf_result.splitlines()
if len(result) < 1:
return
if result[0] == "ctrl-c":
raise KeyboardInterrupt
def _check_fd(self):
"""Check if fd is intalled on the machine."""
try:
subprocess.run(
["command", "-v", "fd"], stdout=subprocess.DEVNULL, check=True
)
return True
except:
return False
def process_list(
self,
response_list: Union[list, Generator],
key_name: str,
*arg_keys,
empty_allow: bool = False
) -> None:
"""Process list passed in and formatted for fzf.
Processes the list passed into it and prepare the fzf operation
Note: need to invoke fzf.execute_fzf() to pop the fzf
process and get the user selection.
Example:
list = [{'Name': 1, 'Mame': 2}, {'Name': 2, 'Mame': 3}]
fzf.process_list(list, 'Name', 'Mame')
fzf.execute_fzf(empty_allow=False)
In the above example, if first entry is selected, it will return 1.
:param response_list: list to process
:type response_list: list
:param key_name: key_name to search and add into response
:type key_name: str
:param gap: gap between each key
:type gap: int, optional
:raises EmptyList: when the list is empty and did not get any result
"""
for item in response_list:
self.append_fzf("%s: %s" % (key_name, item.get(key_name)))
for arg in arg_keys:
self.append_fzf(" | ")
self.append_fzf("%s: %s" % (arg, item.get(arg)))
self.append_fzf("\n")
if not self.fzf_string and not empty_allow:
raise EmptyList("Result list was empty")
def format_selected_to_dict(self, selected_str: str) -> Dict[str, Any]:
"""Format the selected option into a proper dictionary.
This is only useful if fzf.execute_fzf(print_col=0).
This is useful to use in conjuction with process_list, process_list
might contain a lot of information but printing all of them into
a str may not be useful enough.
Example:
fzf.process_list(
response_generator,
"InstanceId",
"Status",
"InstanceType",
"Name",
"KeyName",
"PublicDnsName",
"PublicIpAddress",
"PrivateIpAddress",
)
result = fzf.execute_fzf(multi_select=multi_select, header=header, print_col=0)
result_dict = fzf.format_selected_to_dict(result)
:param selected_str: the selected str from fzf.execute_fzf
:type selected_str: str
:return: formatted instance details in dict form
:rtype: Dict[str, Any]
"""
formatted_dict: Dict[str, Any] = {}
selected_list = selected_str.split(" | ")
for key_value in selected_list:
key, value = key_value.split(": ")
if value == "None":
formatted_dict.update({key: None})
else:
formatted_dict.update({key: value})
return formatted_dict
def _get_col(self, string: str, print_col: int, delimiter: Optional[str]) -> str:
"""Return the wanted col of the given str.
:param string: string to process
:type string: str
:param print_col: column to return
:type print_col: int
:param delimiter: delimiter that seperate the column
:type delimiter: Optional[str]
:return: the print_col of the string
:rtype: str
"""
if print_col == 0:
return string
else:
delimited_str = string.split(delimiter)
if print_col - 1 > len(delimited_str):
# somewhat similar to awk behavior?
# when the print col exceed the col number, awk return the entire string
return string
return delimited_str[print_col - 1]
| [
37811,
1212,
8265,
4909,
262,
29908,
1398,
284,
9427,
68,
351,
277,
89,
69,
13,
198,
198,
464,
277,
89,
69,
1398,
815,
307,
973,
329,
477,
6695,
618,
277,
89,
69,
2476,
198,
1462,
307,
5611,
13,
277,
89,
69,
8356,
2058,
351,
604,
277,
89,
69,
13934,
3696,
290,
481,
198,
1350,
973,
611,
2836,
1595,
470,
11986,
284,
779,
1080,
277,
89,
69,
287,
4566,
2393,
13,
198,
37811,
198,
11748,
28686,
198,
11748,
850,
14681,
198,
11748,
25064,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
35986,
11,
7343,
11,
32233,
11,
4479,
198,
198,
6738,
277,
89,
69,
8356,
13,
26791,
13,
1069,
11755,
1330,
33523,
8053,
11,
1400,
4653,
1564,
24616,
628,
198,
4871,
9485,
69,
89,
69,
25,
198,
220,
220,
220,
374,
37811,
32,
2829,
29908,
1398,
329,
277,
89,
69,
25137,
850,
14681,
8265,
13,
628,
220,
220,
220,
1675,
2251,
257,
5726,
656,
277,
89,
69,
11,
779,
9485,
69,
89,
69,
13,
33295,
62,
69,
89,
69,
3419,
290,
1208,
287,
262,
4731,
13,
198,
220,
220,
220,
1675,
2251,
4517,
2480,
12784,
11,
561,
2421,
14500,
1208,
287,
3467,
77,
284,
384,
30052,
1123,
5726,
13,
628,
220,
220,
220,
1114,
257,
1351,
286,
2882,
422,
275,
2069,
18,
11,
340,
318,
7151,
284,
779,
262,
1429,
62,
4868,
3419,
2163,
13,
628,
220,
220,
220,
17934,
25,
198,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
796,
9485,
69,
89,
69,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
264,
18,
796,
275,
2069,
18,
13,
16366,
10786,
82,
18,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
264,
18,
13,
4868,
62,
27041,
1039,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
14681,
62,
4868,
7,
26209,
14692,
33,
1347,
1039,
33116,
366,
5376,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
6163,
62,
27041,
316,
796,
277,
89,
69,
13,
41049,
62,
69,
89,
69,
7,
41684,
62,
19738,
28,
25101,
8,
628,
220,
220,
220,
383,
2029,
1672,
1429,
262,
1351,
286,
38674,
287,
2882,
290,
787,
366,
5376,
1,
262,
1441,
1988,
13,
198,
220,
220,
220,
383,
6163,
62,
27041,
316,
481,
307,
257,
19236,
1438,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
42316,
262,
9485,
69,
89,
69,
4554,
13,
628,
220,
220,
220,
220,
220,
220,
220,
10504,
284,
3740,
1378,
12567,
13,
785,
14,
4426,
1031,
495,
74,
14,
8356,
12,
69,
4715,
88,
12,
22805,
329,
262,
13934,
13326,
198,
220,
220,
220,
220,
220,
220,
220,
2446,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
89,
69,
62,
8841,
25,
965,
796,
13538,
198,
220,
220,
220,
220,
220,
220,
220,
611,
25064,
13,
9806,
7857,
1875,
362,
12429,
3933,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3934,
796,
366,
28745,
2414,
1,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3934,
796,
366,
21734,
1,
628,
220,
220,
220,
220,
220,
220,
220,
611,
25064,
13,
24254,
13,
9688,
2032,
342,
7203,
27455,
5404,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1080,
796,
366,
27455,
5404,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
25064,
13,
24254,
13,
9688,
2032,
342,
7203,
23289,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1080,
796,
366,
23289,
1,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
69,
89,
69,
8356,
3058,
318,
691,
11670,
351,
21015,
18,
13,
21,
10,
319,
4100,
2640,
393,
7020,
1,
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,
25064,
13,
37023,
7,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
89,
69,
62,
6978,
25,
965,
796,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
69,
89,
69,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
1136,
24330,
7203,
37,
57,
7708,
19416,
62,
37,
57,
37,
62,
6369,
2943,
3843,
17534,
1600,
366,
39491,
4943,
6624,
366,
10057,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
36521,
82,
14,
40720,
8019,
82,
14,
69,
89,
69,
12,
15,
13,
2481,
13,
16,
12,
4,
82,
62,
4,
82,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4064,
357,
418,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
397,
2777,
776,
7,
834,
7753,
834,
36911,
1080,
11,
3934,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
825,
24443,
62,
69,
89,
69,
7,
944,
11,
649,
62,
8841,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
374,
37811,
4677,
437,
336,
654,
284,
277,
89,
69,
62,
8841,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1675,
423,
4517,
2480,
12784,
11,
384,
30052,
606,
416,
705,
59,
77,
6,
198,
220,
220,
220,
220,
220,
220,
220,
17934,
25,
69,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
31373,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
6894,
11537,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
649,
62,
8841,
25,
13042,
284,
24443,
284,
277,
89,
69,
5726,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
649,
62,
8841,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
89,
69,
62,
8841,
15853,
649,
62,
8841,
628,
220,
220,
220,
825,
12260,
62,
69,
89,
69,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6565,
62,
12154,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
4033,
25,
493,
796,
362,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12714,
25,
32233,
58,
2536,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5021,
62,
19738,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
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,
4479,
58,
8053,
58,
7149,
4357,
7343,
58,
2536,
4357,
965,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
374,
37811,
23002,
1133,
277,
89,
69,
290,
1441,
1296,
515,
4731,
13,
628,
220,
220,
220,
220,
220,
220,
220,
17934,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
796,
9485,
69,
89,
69,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
15496,
25,
23748,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
10603,
25,
995,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
33295,
62,
69,
89,
69,
10786,
59,
77,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
89,
69,
13,
41049,
62,
69,
89,
69,
7,
28920,
62,
12154,
28,
17821,
11,
3601,
62,
4033,
28,
16,
11,
12714,
11639,
9246,
23884,
3256,
5021,
62,
19738,
28,
17821,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
383,
6163,
4731,
561,
804,
588,
366,
15496,
25,
23748,
1911,
198,
220,
220,
220,
220,
220,
220,
220,
23302,
1672,
561,
1441,
705,
15496,
25,
7061,
611,
262,
717,
5726,
318,
6163,
11,
3601,
951,
318,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3601,
62,
4033,
373,
362,
11,
705,
31373,
6,
561,
307,
10398,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
6565,
62,
12154,
25,
5004,
611,
6565,
6356,
318,
3142,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
6565,
62,
12154,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3601,
62,
4033,
25,
543,
5721,
286,
262,
1255,
284,
3601,
357,
1484,
416,
3253,
74,
828,
532,
16,
3601,
2279,
2845,
717,
951,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3601,
62,
4033,
25,
493,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
12714,
25,
3359,
12714,
287,
277,
89,
69,
11,
304,
13,
70,
12195,
30328,
705,
31373,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
12714,
25,
965,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
5021,
62,
19738,
25,
7139,
277,
89,
69,
5021,
6356,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
5021,
62,
19738,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
13639,
25,
13639,
284,
3359,
287,
277,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
13639,
25,
965,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
46728,
2676,
25,
262,
46728,
2676,
284,
384,
30052,
3601,
62,
4033,
11,
588,
3253,
74,
1271,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
46728,
2676,
25,
32233,
58,
2536,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
430,
2696,
1400,
4653,
1564,
24616,
25,
618,
2836,
750,
407,
787,
257,
6356,
290,
6565,
62,
12154,
318,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
6163,
5726,
422,
277,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
4479,
58,
4868,
58,
7149,
4357,
1351,
58,
2536,
4357,
965,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4781,
25462,
9029,
14,
6615,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
69,
89,
69,
62,
8841,
796,
965,
7,
944,
13,
69,
89,
69,
62,
8841,
737,
81,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
62,
15414,
796,
850,
14681,
13,
47,
9654,
7,
7203,
30328,
1600,
2116,
13,
69,
89,
69,
62,
8841,
828,
14367,
448,
28,
7266,
14681,
13,
47,
4061,
36,
8,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
25,
1351,
796,
2116,
13557,
41571,
62,
69,
89,
69,
62,
28758,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6356,
25,
9881,
796,
275,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
6356,
62,
2536,
25,
965,
796,
13538,
628,
220,
220,
220,
220,
220,
220,
220,
611,
13639,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
33295,
7203,
438,
25677,
28,
4,
82,
1,
4064,
13639,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
5021,
62,
19738,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
33295,
7203,
438,
41684,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
33295,
7203,
438,
3919,
12,
41684,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
611,
12714,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
2302,
437,
7,
14692,
438,
3866,
1177,
1600,
12714,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6356,
796,
850,
14681,
13,
9122,
62,
22915,
7,
28758,
62,
4868,
11,
14367,
259,
28,
69,
89,
69,
62,
15414,
13,
19282,
448,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6356,
62,
2536,
796,
965,
7,
49283,
11,
366,
40477,
12,
23,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
6356,
290,
407,
6565,
62,
12154,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
1400,
4653,
1564,
24616,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
611,
717,
1627,
4909,
269,
14859,
12,
66,
11,
8420,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9122,
62,
44755,
62,
66,
7,
49283,
62,
2536,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2845,
850,
14681,
13,
34,
4262,
18709,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
428,
6631,
743,
1147,
437,
611,
2836,
1422,
470,
787,
257,
6356,
287,
277,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
4145,
7464,
351,
1729,
6632,
8420,
2438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
6565,
62,
12154,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
1400,
4653,
1564,
24616,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
6565,
62,
12154,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5021,
62,
19738,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
17635,
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,
1441,
13538,
628,
220,
220,
220,
220,
220,
220,
220,
611,
5021,
62,
19738,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
62,
4868,
25,
7343,
58,
2536,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5021,
62,
19738,
561,
1441,
2279,
384,
30052,
416,
3467,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28224,
25,
7343,
58,
2536,
60,
796,
6356,
62,
2536,
13,
36311,
22446,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
28224,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13686,
62,
2536,
796,
2116,
13557,
1136,
62,
4033,
7,
9186,
11,
3601,
62,
4033,
11,
46728,
2676,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
62,
4868,
13,
33295,
7,
14681,
276,
62,
2536,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1441,
62,
4868,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
1136,
62,
4033,
7,
49283,
62,
2536,
13,
36311,
22784,
3601,
62,
4033,
11,
46728,
2676,
8,
628,
220,
220,
220,
825,
651,
62,
12001,
62,
7753,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2989,
62,
6738,
62,
15763,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6279,
1161,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8619,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7104,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6565,
62,
12154,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5021,
62,
19738,
25,
20512,
796,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
25,
32233,
58,
2536,
60,
796,
6045,
11,
198,
220,
220,
220,
1267,
4613,
4479,
58,
8053,
58,
7149,
4357,
7343,
58,
2536,
4357,
965,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
1957,
3696,
832,
277,
89,
69,
13,
628,
220,
220,
220,
220,
220,
220,
220,
8099,
5039,
262,
1957,
3696,
656,
277,
89,
69,
11,
611,
2989,
62,
6738,
62,
15763,
318,
2081,
198,
220,
220,
220,
220,
220,
220,
220,
477,
3696,
561,
307,
22331,
13,
628,
220,
220,
220,
220,
220,
220,
220,
5740,
25,
714,
307,
4457,
3105,
284,
384,
620,
422,
6808,
611,
277,
67,
407,
6589,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2989,
62,
6738,
62,
15763,
25,
2989,
3696,
422,
6808,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2989,
62,
6738,
62,
15763,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
6279,
1161,
25,
691,
2989,
331,
43695,
393,
33918,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
6279,
1161,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
8619,
25,
2989,
8619,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
8619,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
7104,
25,
2989,
7104,
2393,
11,
691,
468,
1245,
618,
277,
67,
6589,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
7104,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
6565,
62,
12154,
25,
1249,
6565,
6356,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
6565,
62,
12154,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
5021,
62,
19738,
25,
1249,
5021,
6356,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
5021,
62,
19738,
25,
20512,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
13639,
25,
13639,
3359,
287,
277,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
13639,
25,
965,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
430,
2696,
1400,
4653,
1564,
24616,
25,
618,
6565,
62,
12154,
28,
25101,
290,
645,
6356,
373,
925,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
6163,
2393,
3108,
393,
9483,
3108,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
4479,
58,
4868,
58,
7149,
4357,
1351,
58,
2536,
4357,
965,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2989,
62,
6738,
62,
15763,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1363,
62,
6978,
796,
28686,
13,
6978,
13,
11201,
392,
7220,
7203,
93,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
354,
15908,
7,
11195,
62,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
13639,
290,
8619,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
796,
374,
1,
17563,
278,
24457,
481,
779,
1459,
8619,
1,
628,
220,
220,
220,
220,
220,
220,
220,
23991,
25,
965,
796,
13538,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
9122,
62,
16344,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8619,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
366,
30328,
3467,
44427,
58,
2091,
76,
19571,
59,
44427,
58,
15,
76,
26,
277,
67,
1377,
4906,
288,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
6279,
1161,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
366,
16344,
1377,
4906,
277,
1377,
260,
25636,
29513,
88,
43695,
91,
88,
4029,
91,
17752,
8,
3,
29653,
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,
23991,
796,
366,
16344,
1377,
4906,
277,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7104,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
15853,
366,
532,
39,
1,
628,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
8619,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
366,
30328,
3467,
44427,
58,
2091,
76,
19571,
59,
44427,
58,
15,
76,
26,
1064,
1635,
532,
4906,
288,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
6279,
1161,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
796,
705,
19796,
1635,
532,
4906,
277,
532,
3672,
366,
24620,
17752,
1,
532,
78,
532,
3672,
366,
24620,
88,
43695,
1,
532,
78,
532,
3672,
366,
24620,
88,
4029,
30543,
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,
23991,
796,
366,
19796,
1635,
532,
4906,
277,
1,
628,
220,
220,
220,
220,
220,
220,
220,
1351,
62,
7753,
796,
850,
14681,
13,
47,
9654,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
11,
14367,
448,
28,
7266,
14681,
13,
47,
4061,
36,
11,
336,
1082,
81,
28,
7266,
14681,
13,
39345,
33991,
11,
7582,
28,
17821,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
6163,
62,
7753,
62,
6978,
25,
9881,
796,
275,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
6163,
62,
7753,
62,
6978,
62,
2536,
25,
965,
796,
13538,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
25,
1351,
796,
2116,
13557,
41571,
62,
69,
89,
69,
62,
28758,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
13639,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
33295,
7203,
438,
25677,
28,
4,
82,
1,
4064,
13639,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5021,
62,
19738,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
33295,
7203,
12,
76,
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,
23991,
62,
4868,
13,
33295,
7203,
10,
76,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6163,
62,
7753,
62,
6978,
796,
850,
14681,
13,
9122,
62,
22915,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
11,
14367,
259,
28,
4868,
62,
7753,
13,
19282,
448,
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,
6163,
62,
7753,
62,
6978,
62,
2536,
796,
965,
7,
34213,
62,
7753,
62,
6978,
11,
366,
40477,
12,
23,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
6565,
62,
12154,
290,
407,
6163,
62,
7753,
62,
6978,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
1400,
4653,
1564,
24616,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
9122,
62,
44755,
62,
66,
7,
34213,
62,
7753,
62,
6978,
62,
2536,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2845,
850,
14681,
13,
34,
4262,
18709,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
850,
14681,
6631,
481,
5298,
618,
2836,
1803,
304,
6359,
284,
8420,
277,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
6565,
62,
12154,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
1400,
4653,
1564,
24616,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
6565,
62,
12154,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
17635,
611,
6565,
62,
12154,
2073,
13538,
628,
220,
220,
220,
220,
220,
220,
220,
611,
5021,
62,
19738,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
5021,
62,
19738,
561,
1441,
2279,
384,
30052,
416,
3467,
77,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6163,
62,
7753,
62,
6978,
62,
2536,
13,
36311,
22446,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6163,
62,
7753,
62,
6978,
62,
2536,
13,
36311,
3419,
628,
220,
220,
220,
825,
4808,
41571,
62,
69,
89,
69,
62,
28758,
7,
944,
8,
4613,
7343,
58,
2536,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
42316,
3141,
329,
277,
89,
69,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
3141,
1351,
1429,
540,
416,
850,
14681,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
1351,
58,
2536,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
25,
1351,
796,
685,
944,
13,
69,
89,
69,
62,
6978,
11,
366,
438,
504,
72,
1600,
366,
438,
1069,
806,
28,
44755,
12,
66,
8973,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
1136,
24330,
7203,
37,
57,
7708,
19416,
62,
37,
57,
37,
62,
3185,
4694,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
2302,
437,
7,
418,
13,
1136,
24330,
7203,
37,
57,
7708,
19416,
62,
37,
57,
37,
62,
3185,
4694,
11074,
35312,
7203,
366,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
28686,
13,
1136,
24330,
7203,
37,
57,
7708,
19416,
62,
37,
57,
37,
62,
7336,
16309,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23991,
62,
4868,
13,
33295,
7,
418,
13,
1136,
24330,
7203,
37,
57,
7708,
19416,
62,
37,
57,
37,
62,
7336,
16309,
1600,
13538,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
23991,
62,
4868,
628,
220,
220,
220,
825,
4808,
9122,
62,
44755,
62,
66,
7,
944,
11,
277,
89,
69,
62,
20274,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
9787,
611,
269,
14859,
62,
66,
318,
12070,
1141,
277,
89,
69,
800,
482,
341,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1002,
269,
14859,
62,
66,
318,
12070,
11,
8420,
2104,
277,
89,
69,
8356,
1430,
2427,
286,
198,
220,
220,
220,
220,
220,
220,
220,
1394,
3867,
2651,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
277,
89,
69,
62,
20274,
25,
262,
965,
5072,
286,
277,
89,
69,
850,
14681,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
277,
89,
69,
62,
20274,
25,
491,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
277,
89,
69,
62,
20274,
13,
35312,
6615,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
20274,
8,
1279,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
58,
15,
60,
6624,
366,
44755,
12,
66,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
31973,
9492,
3622,
628,
220,
220,
220,
825,
4808,
9122,
62,
16344,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
9787,
611,
277,
67,
318,
493,
4262,
319,
262,
4572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
14681,
13,
5143,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14631,
21812,
1600,
27444,
85,
1600,
366,
16344,
33116,
14367,
448,
28,
7266,
14681,
13,
39345,
33991,
11,
2198,
28,
17821,
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,
1441,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
628,
220,
220,
220,
825,
1429,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2882,
62,
4868,
25,
4479,
58,
4868,
11,
35986,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
3672,
25,
965,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1635,
853,
62,
13083,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6565,
62,
12154,
25,
20512,
796,
10352,
198,
220,
220,
220,
1267,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
18709,
1351,
3804,
287,
290,
39559,
329,
277,
89,
69,
13,
628,
220,
220,
220,
220,
220,
220,
220,
10854,
274,
262,
1351,
3804,
656,
340,
290,
8335,
262,
277,
89,
69,
4905,
198,
220,
220,
220,
220,
220,
220,
220,
5740,
25,
761,
284,
26342,
277,
89,
69,
13,
41049,
62,
69,
89,
69,
3419,
284,
1461,
262,
277,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
1429,
290,
651,
262,
2836,
6356,
13,
628,
220,
220,
220,
220,
220,
220,
220,
17934,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
796,
685,
90,
6,
5376,
10354,
352,
11,
705,
44,
480,
10354,
362,
5512,
1391,
6,
5376,
10354,
362,
11,
705,
44,
480,
10354,
513,
92,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
14681,
62,
4868,
7,
4868,
11,
705,
5376,
3256,
705,
44,
480,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
41049,
62,
69,
89,
69,
7,
28920,
62,
12154,
28,
25101,
8,
628,
220,
220,
220,
220,
220,
220,
220,
554,
262,
2029,
1672,
11,
611,
717,
5726,
318,
6163,
11,
340,
481,
1441,
352,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2882,
62,
4868,
25,
1351,
284,
1429,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2882,
62,
4868,
25,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1994,
62,
3672,
25,
1994,
62,
3672,
284,
2989,
290,
751,
656,
2882,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1994,
62,
3672,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
7625,
25,
7625,
1022,
1123,
1994,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
7625,
25,
493,
11,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
430,
2696,
33523,
8053,
25,
618,
262,
1351,
318,
6565,
290,
750,
407,
651,
597,
1255,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
329,
2378,
287,
2882,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33295,
62,
69,
89,
69,
7203,
4,
82,
25,
4064,
82,
1,
4064,
357,
2539,
62,
3672,
11,
2378,
13,
1136,
7,
2539,
62,
3672,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1822,
287,
1822,
62,
13083,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33295,
62,
69,
89,
69,
7203,
930,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33295,
62,
69,
89,
69,
7203,
4,
82,
25,
4064,
82,
1,
4064,
357,
853,
11,
2378,
13,
1136,
7,
853,
22305,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
33295,
62,
69,
89,
69,
7203,
59,
77,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
69,
89,
69,
62,
8841,
290,
407,
6565,
62,
12154,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
33523,
8053,
7203,
23004,
1351,
373,
6565,
4943,
628,
220,
220,
220,
825,
5794,
62,
34213,
62,
1462,
62,
11600,
7,
944,
11,
6163,
62,
2536,
25,
965,
8,
4613,
360,
713,
58,
2536,
11,
4377,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
26227,
262,
6163,
3038,
656,
257,
1774,
22155,
13,
628,
220,
220,
220,
220,
220,
220,
220,
770,
318,
691,
4465,
611,
277,
89,
69,
13,
41049,
62,
69,
89,
69,
7,
4798,
62,
4033,
28,
15,
737,
628,
220,
220,
220,
220,
220,
220,
220,
770,
318,
4465,
284,
779,
287,
11644,
8110,
351,
1429,
62,
4868,
11,
1429,
62,
4868,
198,
220,
220,
220,
220,
220,
220,
220,
1244,
3994,
257,
1256,
286,
1321,
475,
13570,
477,
286,
606,
656,
198,
220,
220,
220,
220,
220,
220,
220,
257,
965,
743,
407,
307,
4465,
1576,
13,
628,
220,
220,
220,
220,
220,
220,
220,
17934,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
89,
69,
13,
14681,
62,
4868,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
62,
8612,
1352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33384,
7390,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
19580,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33384,
6030,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
5376,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9218,
5376,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15202,
35,
5907,
5376,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15202,
40,
79,
20231,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29067,
40,
79,
20231,
1600,
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,
1255,
796,
277,
89,
69,
13,
41049,
62,
69,
89,
69,
7,
41684,
62,
19738,
28,
41684,
62,
19738,
11,
13639,
28,
25677,
11,
3601,
62,
4033,
28,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
62,
11600,
796,
277,
89,
69,
13,
18982,
62,
34213,
62,
1462,
62,
11600,
7,
20274,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
6163,
62,
2536,
25,
262,
6163,
965,
422,
277,
89,
69,
13,
41049,
62,
69,
89,
69,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
6163,
62,
2536,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
39559,
4554,
3307,
287,
8633,
1296,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
360,
713,
58,
2536,
11,
4377,
60,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
39559,
62,
11600,
25,
360,
713,
58,
2536,
11,
4377,
60,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
6163,
62,
4868,
796,
6163,
62,
2536,
13,
35312,
7203,
930,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
62,
8367,
287,
6163,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
11,
1988,
796,
1994,
62,
8367,
13,
35312,
7,
1298,
366,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
6624,
366,
14202,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39559,
62,
11600,
13,
19119,
15090,
2539,
25,
6045,
30072,
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,
39559,
62,
11600,
13,
19119,
15090,
2539,
25,
1988,
30072,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
39559,
62,
11600,
628,
220,
220,
220,
825,
4808,
1136,
62,
4033,
7,
944,
11,
4731,
25,
965,
11,
3601,
62,
4033,
25,
493,
11,
46728,
2676,
25,
32233,
58,
2536,
12962,
4613,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
262,
2227,
951,
286,
262,
1813,
965,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4731,
25,
4731,
284,
1429,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
4731,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3601,
62,
4033,
25,
5721,
284,
1441,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3601,
62,
4033,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
46728,
2676,
25,
46728,
2676,
326,
384,
30052,
262,
5721,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
46728,
2676,
25,
32233,
58,
2536,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
262,
3601,
62,
4033,
286,
262,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
3601,
62,
4033,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
46728,
863,
62,
2536,
796,
4731,
13,
35312,
7,
12381,
320,
2676,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3601,
62,
4033,
532,
352,
1875,
18896,
7,
12381,
320,
863,
62,
2536,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6454,
2092,
284,
3253,
74,
4069,
30,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
618,
262,
3601,
951,
7074,
262,
951,
1271,
11,
3253,
74,
1441,
262,
2104,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
46728,
863,
62,
2536,
58,
4798,
62,
4033,
532,
352,
60,
198
] | 2.145319 | 6,730 |
from gears_cli import run, install_requirements, export_requirements, import_requirements
from click.testing import CliRunner
from RLTest import Defaults
import os
Defaults.decode_responses = True
SSL_ARGS = ['--ssl', 'True', '--ssl-keyfile', './tests/tls/redis.key', '--ssl-certfile', './tests/tls/redis.crt', '--ssl-ca-certs', './tests/tls/ca.crt', '--ssl-password', 'foobar']
| [
6738,
28713,
62,
44506,
1330,
1057,
11,
2721,
62,
8897,
18883,
11,
10784,
62,
8897,
18883,
11,
1330,
62,
8897,
18883,
198,
6738,
3904,
13,
33407,
1330,
1012,
72,
49493,
198,
6738,
45715,
14402,
1330,
2896,
13185,
198,
11748,
28686,
198,
198,
7469,
13185,
13,
12501,
1098,
62,
16733,
274,
796,
6407,
198,
198,
31127,
62,
1503,
14313,
796,
37250,
438,
45163,
3256,
705,
17821,
3256,
705,
438,
45163,
12,
2539,
7753,
3256,
705,
19571,
41989,
14,
83,
7278,
14,
445,
271,
13,
2539,
3256,
705,
438,
45163,
12,
22583,
7753,
3256,
705,
19571,
41989,
14,
83,
7278,
14,
445,
271,
13,
6098,
83,
3256,
705,
438,
45163,
12,
6888,
12,
22583,
82,
3256,
705,
19571,
41989,
14,
83,
7278,
14,
6888,
13,
6098,
83,
3256,
705,
438,
45163,
12,
28712,
3256,
705,
6513,
30973,
20520,
198
] | 2.781022 | 137 |
# Generated by Django 3.0.8 on 2020-07-20 22:02
from django.db import migrations, models
| [
2,
2980,
515,
416,
37770,
513,
13,
15,
13,
23,
319,
12131,
12,
2998,
12,
1238,
2534,
25,
2999,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.84375 | 32 |
import math
lim = 100
sum = math.trunc(lim * (lim + 1) / 2)
carressum = sum * sum
sumcarres = math.trunc(lim * (lim + 1) * (2 * lim + 1) / 6)
print("%d" % (carressum - sumcarres), end='')
| [
11748,
10688,
628,
198,
2475,
796,
1802,
198,
16345,
796,
10688,
13,
2213,
19524,
7,
2475,
1635,
357,
2475,
1343,
352,
8,
1220,
362,
8,
198,
7718,
601,
388,
796,
2160,
1635,
2160,
198,
16345,
7718,
411,
796,
10688,
13,
2213,
19524,
7,
2475,
1635,
357,
2475,
1343,
352,
8,
1635,
357,
17,
1635,
1761,
1343,
352,
8,
1220,
718,
8,
198,
4798,
7203,
4,
67,
1,
4064,
357,
7718,
601,
388,
532,
2160,
7718,
411,
828,
886,
28,
7061,
8,
628
] | 2.329268 | 82 |
try:
import asyncio
except ImportError:
try:
import trollius as asyncio
except ImportError:
asyncio = None
try:
from threading import RLock as Lock
except ImportError:
from rx.internal.concurrency import NoLock as Lock
try:
from asyncio import Future
except ImportError:
try:
from trollius import Future
except ImportError:
Future = None
# Rx configuration dictionary
config = {
"Future": Future,
"Lock": Lock,
"asyncio": asyncio
}
from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
| [
28311,
25,
198,
220,
220,
220,
1330,
30351,
952,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1330,
13278,
3754,
355,
30351,
952,
198,
220,
220,
220,
2845,
17267,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
30351,
952,
796,
6045,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
4704,
278,
1330,
371,
25392,
355,
13656,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
422,
374,
87,
13,
32538,
13,
1102,
34415,
1330,
1400,
25392,
355,
13656,
198,
198,
28311,
25,
198,
220,
220,
220,
422,
30351,
952,
1330,
10898,
198,
16341,
17267,
12331,
25,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
422,
13278,
3754,
1330,
10898,
198,
220,
220,
220,
2845,
17267,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
10898,
796,
6045,
628,
198,
2,
49715,
8398,
22155,
198,
11250,
796,
1391,
198,
220,
220,
220,
366,
29783,
1298,
10898,
11,
198,
220,
220,
220,
366,
25392,
1298,
13656,
11,
198,
220,
220,
220,
366,
292,
13361,
952,
1298,
30351,
952,
198,
92,
198,
198,
6738,
764,
672,
3168,
540,
1330,
19243,
540,
198,
6738,
764,
272,
6704,
672,
3168,
540,
1330,
19200,
31310,
712,
540,
198,
6738,
764,
672,
15388,
1330,
27058,
198,
198,
6738,
764,
1330,
10667,
672,
15388,
198,
6738,
764,
1330,
9493,
80,
198,
6738,
764,
1330,
736,
36151,
628
] | 2.958333 | 240 |
# -*- coding: utf-8 -*-
# File: model_desc.py
from collections import namedtuple
import tensorflow as tf
from ..utils.argtools import memoized_method
from ..tfutils.common import get_op_tensor_name
from ..tfutils.tower import get_current_tower_context
from ..compat import backport_tensor_spec, tfv1
TensorSpec = backport_tensor_spec()
__all__ = ['InputDesc', 'ModelDesc', 'ModelDescBase']
def build_or_reuse_placeholder(tensor_spec):
"""
Build a tf.placeholder from the metadata in the given tensor spec, or return an existing one.
Args:
tensor_spec (tf.TensorSpec):
Returns:
tf.Tensor:
"""
g = tfv1.get_default_graph()
name = tensor_spec.name
try:
tensor = g.get_tensor_by_name(name + ':0')
assert "Placeholder" in tensor.op.type, "Tensor {} exists but is not a placeholder!".format(name)
assert tensor_spec.is_compatible_with(tensor), \
"Tensor {} exists but is not compatible with the signature!".format(tensor)
if tensor.shape == tensor_spec.shape:
# It might be desirable to use a placeholder of a different shape in some tower
# (e.g., a less specific shape)
return tensor
except KeyError:
pass
with tfv1.name_scope(None): # clear any name scope it might get called in
ret = tfv1.placeholder(
tensor_spec.dtype, shape=tensor_spec.shape, name=tensor_spec.name)
return ret
class InputDesc(
namedtuple('InputDescTuple', ['type', 'shape', 'name'])):
"""
An equivalent of `tf.TensorSpec`.
History: this concept is used to represent metadata about the inputs,
which can be later used to build placeholders or other types of input source.
It is introduced much much earlier than the equivalent concept `tf.TensorSpec`
was introduced in TensorFlow.
Therefore, we now switched to use `tf.TensorSpec`, but keep this here for compatibility reasons.
"""
def __new__(cls, type, shape, name):
"""
Args:
type (tf.DType):
shape (tuple):
name (str):
"""
# TODO mark deprecated
assert isinstance(type, tf.DType), type
return tf.TensorSpec(shape=shape, dtype=type, name=name)
class ModelDescBase(object):
"""
Base class for a model description.
"""
@memoized_method
@memoized_method
def get_input_signature(self):
"""
Returns:
A list of :class:`tf.TensorSpec`, which describes the inputs of this model.
The result is cached for each instance of :class:`ModelDescBase`.
"""
with tf.Graph().as_default() as G: # create these placeholder in a temporary graph
inputs = self.inputs()
assert isinstance(inputs, (list, tuple)), \
"ModelDesc.inputs() should return a list of tf.TensorSpec objects! Got {} instead.".format(str(inputs))
if isinstance(inputs[0], tf.Tensor):
for p in inputs:
assert "Placeholder" in p.op.type, \
"inputs() have to return TensorSpec or placeholders! Found {} instead.".format(p)
assert p.graph == G, "Placeholders returned by inputs() should be created inside inputs()!"
return [TensorSpec(shape=p.shape, dtype=p.dtype, name=get_op_tensor_name(p.name)[0]) for p in inputs]
@property
def input_names(self):
"""
Returns:
[str]: the names of all the inputs.
"""
return [k.name for k in self.get_input_signature()]
def inputs(self):
"""
Returns a list of :class:`tf.TensorSpec` or placeholders.
A subclass is expected to implement this method.
If returning placeholders,
the placeholders __have to__ be created inside this method.
Don't return placeholders created in other places.
Also, you should never call this method by yourself.
Returns:
list[tf.TensorSpec or tf.placeholder]. To be converted to :class:`tf.TensorSpec`.
"""
raise NotImplementedError()
def build_graph(self, *args):
"""
Build the whole symbolic graph.
This is supposed to be part of the "tower function" when used with :class:`TowerTrainer`.
A subclass is expected to implement this method.
Args:
args ([tf.Tensor]): tensors that matches the list of inputs defined by ``inputs()``.
Returns:
In general it returns nothing, but a subclass
may require it to return necessary information to build the trainer.
For example, `SingleCostTrainer` expect this method to return the cost tensor.
"""
raise NotImplementedError()
@property
def training(self):
"""
Returns:
bool: whether the caller is under a training context or not.
"""
return get_current_tower_context().is_training
class ModelDesc(ModelDescBase):
"""
A ModelDesc with **single cost** and **single optimizer**.
It has the following constraints in addition to :class:`ModelDescBase`:
1. :meth:`build_graph(...)` method should return a cost when called under a training context.
The cost will be the final cost to be optimized by the optimizer.
Therefore it should include necessary regularization.
2. Subclass is expected to implement :meth:`optimizer()` method.
"""
@memoized_method
def get_optimizer(self):
"""
Return the memoized optimizer returned by `optimizer()`.
Users of :class:`ModelDesc` will need to implement `optimizer()`,
which will only be called once per each model.
Returns:
a :class:`tf.train.Optimizer` instance.
"""
ret = self.optimizer()
assert isinstance(ret, tfv1.train.Optimizer), \
"ModelDesc.optimizer() must return a tf.train.Optimizer! Got {} instead.".format(str(ret))
return ret
def optimizer(self):
"""
Returns a `tf.train.Optimizer` instance.
A subclass is expected to implement this method.
"""
raise NotImplementedError()
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
9220,
25,
2746,
62,
20147,
13,
9078,
628,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
11748,
11192,
273,
11125,
355,
48700,
198,
198,
6738,
11485,
26791,
13,
853,
31391,
1330,
16155,
1143,
62,
24396,
198,
6738,
11485,
27110,
26791,
13,
11321,
1330,
651,
62,
404,
62,
83,
22854,
62,
3672,
198,
6738,
11485,
27110,
26791,
13,
36170,
1330,
651,
62,
14421,
62,
36170,
62,
22866,
198,
6738,
11485,
5589,
265,
1330,
736,
634,
62,
83,
22854,
62,
16684,
11,
48700,
85,
16,
198,
198,
51,
22854,
22882,
796,
736,
634,
62,
83,
22854,
62,
16684,
3419,
628,
198,
834,
439,
834,
796,
37250,
20560,
24564,
3256,
705,
17633,
24564,
3256,
705,
17633,
24564,
14881,
20520,
628,
198,
4299,
1382,
62,
273,
62,
260,
1904,
62,
5372,
13829,
7,
83,
22854,
62,
16684,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10934,
257,
48700,
13,
5372,
13829,
422,
262,
20150,
287,
262,
1813,
11192,
273,
1020,
11,
393,
1441,
281,
4683,
530,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
11192,
273,
62,
16684,
357,
27110,
13,
51,
22854,
22882,
2599,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
48700,
13,
51,
22854,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
308,
796,
48700,
85,
16,
13,
1136,
62,
12286,
62,
34960,
3419,
198,
220,
220,
220,
1438,
796,
11192,
273,
62,
16684,
13,
3672,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
11192,
273,
796,
308,
13,
1136,
62,
83,
22854,
62,
1525,
62,
3672,
7,
3672,
1343,
705,
25,
15,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
366,
27271,
13829,
1,
287,
11192,
273,
13,
404,
13,
4906,
11,
366,
51,
22854,
23884,
7160,
475,
318,
407,
257,
46076,
48220,
18982,
7,
3672,
8,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
11192,
273,
62,
16684,
13,
271,
62,
38532,
62,
4480,
7,
83,
22854,
828,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
51,
22854,
23884,
7160,
475,
318,
407,
11670,
351,
262,
9877,
48220,
18982,
7,
83,
22854,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
11192,
273,
13,
43358,
6624,
11192,
273,
62,
16684,
13,
43358,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
632,
1244,
307,
18763,
284,
779,
257,
46076,
286,
257,
1180,
5485,
287,
617,
10580,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
357,
68,
13,
70,
1539,
257,
1342,
2176,
5485,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11192,
273,
198,
220,
220,
220,
2845,
7383,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
351,
48700,
85,
16,
13,
3672,
62,
29982,
7,
14202,
2599,
220,
220,
1303,
1598,
597,
1438,
8354,
340,
1244,
651,
1444,
287,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
48700,
85,
16,
13,
5372,
13829,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11192,
273,
62,
16684,
13,
67,
4906,
11,
5485,
28,
83,
22854,
62,
16684,
13,
43358,
11,
1438,
28,
83,
22854,
62,
16684,
13,
3672,
8,
198,
220,
220,
220,
1441,
1005,
628,
198,
4871,
23412,
24564,
7,
198,
220,
220,
220,
220,
220,
220,
220,
3706,
83,
29291,
10786,
20560,
24564,
51,
29291,
3256,
37250,
4906,
3256,
705,
43358,
3256,
705,
3672,
6,
12962,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1052,
7548,
286,
4600,
27110,
13,
51,
22854,
22882,
44646,
628,
220,
220,
220,
7443,
25,
428,
3721,
318,
973,
284,
2380,
20150,
546,
262,
17311,
11,
198,
220,
220,
220,
543,
460,
307,
1568,
973,
284,
1382,
1295,
10476,
393,
584,
3858,
286,
5128,
2723,
13,
198,
220,
220,
220,
632,
318,
5495,
881,
881,
2961,
621,
262,
7548,
3721,
4600,
27110,
13,
51,
22854,
22882,
63,
198,
220,
220,
220,
373,
5495,
287,
309,
22854,
37535,
13,
198,
220,
220,
220,
8447,
11,
356,
783,
15293,
284,
779,
4600,
27110,
13,
51,
22854,
22882,
47671,
475,
1394,
428,
994,
329,
17764,
3840,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
3605,
834,
7,
565,
82,
11,
2099,
11,
5485,
11,
1438,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
357,
27110,
13,
35,
6030,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5485,
357,
83,
29291,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
357,
2536,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
16926,
46,
1317,
39224,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
4906,
11,
48700,
13,
35,
6030,
828,
2099,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
48700,
13,
51,
22854,
22882,
7,
43358,
28,
43358,
11,
288,
4906,
28,
4906,
11,
1438,
28,
3672,
8,
628,
198,
4871,
9104,
24564,
14881,
7,
15252,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7308,
1398,
329,
257,
2746,
6764,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
11883,
78,
1143,
62,
24396,
628,
220,
220,
220,
2488,
11883,
78,
1143,
62,
24396,
198,
220,
220,
220,
825,
651,
62,
15414,
62,
12683,
1300,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
317,
1351,
286,
1058,
4871,
25,
63,
27110,
13,
51,
22854,
22882,
47671,
543,
8477,
262,
17311,
286,
428,
2746,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
1255,
318,
39986,
329,
1123,
4554,
286,
1058,
4871,
25,
63,
17633,
24564,
14881,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
351,
48700,
13,
37065,
22446,
292,
62,
12286,
3419,
355,
402,
25,
220,
220,
1303,
2251,
777,
46076,
287,
257,
8584,
4823,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17311,
796,
2116,
13,
15414,
82,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
15414,
82,
11,
357,
4868,
11,
46545,
36911,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17633,
24564,
13,
15414,
82,
3419,
815,
1441,
257,
1351,
286,
48700,
13,
51,
22854,
22882,
5563,
0,
11853,
23884,
2427,
526,
13,
18982,
7,
2536,
7,
15414,
82,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
15414,
82,
58,
15,
4357,
48700,
13,
51,
22854,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
279,
287,
17311,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
366,
27271,
13829,
1,
287,
279,
13,
404,
13,
4906,
11,
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,
366,
15414,
82,
3419,
423,
284,
1441,
309,
22854,
22882,
393,
1295,
10476,
0,
4062,
23884,
2427,
526,
13,
18982,
7,
79,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
279,
13,
34960,
6624,
402,
11,
366,
27271,
10476,
4504,
416,
17311,
3419,
815,
307,
2727,
2641,
17311,
3419,
2474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
51,
22854,
22882,
7,
43358,
28,
79,
13,
43358,
11,
288,
4906,
28,
79,
13,
67,
4906,
11,
1438,
28,
1136,
62,
404,
62,
83,
22854,
62,
3672,
7,
79,
13,
3672,
38381,
15,
12962,
329,
279,
287,
17311,
60,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
5128,
62,
14933,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
2536,
5974,
262,
3891,
286,
477,
262,
17311,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
74,
13,
3672,
329,
479,
287,
2116,
13,
1136,
62,
15414,
62,
12683,
1300,
3419,
60,
628,
220,
220,
220,
825,
17311,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
1351,
286,
1058,
4871,
25,
63,
27110,
13,
51,
22854,
22882,
63,
393,
1295,
10476,
13,
198,
220,
220,
220,
220,
220,
220,
220,
317,
47611,
318,
2938,
284,
3494,
428,
2446,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1002,
8024,
1295,
10476,
11,
198,
220,
220,
220,
220,
220,
220,
220,
262,
1295,
10476,
11593,
14150,
284,
834,
307,
2727,
2641,
428,
2446,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2094,
470,
1441,
1295,
10476,
2727,
287,
584,
4113,
13,
628,
220,
220,
220,
220,
220,
220,
220,
4418,
11,
345,
815,
1239,
869,
428,
2446,
416,
3511,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
58,
27110,
13,
51,
22854,
22882,
393,
48700,
13,
5372,
13829,
4083,
1675,
307,
11513,
284,
1058,
4871,
25,
63,
27110,
13,
51,
22854,
22882,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
3419,
628,
220,
220,
220,
825,
1382,
62,
34960,
7,
944,
11,
1635,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10934,
262,
2187,
18975,
4823,
13,
198,
220,
220,
220,
220,
220,
220,
220,
770,
318,
4385,
284,
307,
636,
286,
262,
366,
36170,
2163,
1,
618,
973,
351,
1058,
4871,
25,
63,
51,
789,
2898,
10613,
44646,
628,
220,
220,
220,
220,
220,
220,
220,
317,
47611,
318,
2938,
284,
3494,
428,
2446,
13,
628,
220,
220,
220,
220,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26498,
29565,
27110,
13,
51,
22854,
60,
2599,
11192,
669,
326,
7466,
262,
1351,
286,
17311,
5447,
416,
7559,
15414,
82,
3419,
15506,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
554,
2276,
340,
5860,
2147,
11,
475,
257,
47611,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
743,
2421,
340,
284,
1441,
3306,
1321,
284,
1382,
262,
21997,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1114,
1672,
11,
4600,
28008,
13729,
2898,
10613,
63,
1607,
428,
2446,
284,
1441,
262,
1575,
11192,
273,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
3419,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
3047,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20512,
25,
1771,
262,
24955,
318,
739,
257,
3047,
4732,
393,
407,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
651,
62,
14421,
62,
36170,
62,
22866,
22446,
271,
62,
34409,
628,
198,
4871,
9104,
24564,
7,
17633,
24564,
14881,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
317,
9104,
24564,
351,
12429,
29762,
1575,
1174,
290,
12429,
29762,
6436,
7509,
1174,
13,
198,
220,
220,
220,
632,
468,
262,
1708,
17778,
287,
3090,
284,
1058,
4871,
25,
63,
17633,
24564,
14881,
63,
25,
628,
220,
220,
220,
352,
13,
1058,
76,
2788,
25,
63,
11249,
62,
34960,
7,
23029,
63,
2446,
815,
1441,
257,
1575,
618,
1444,
739,
257,
3047,
4732,
13,
198,
220,
220,
220,
220,
220,
220,
383,
1575,
481,
307,
262,
2457,
1575,
284,
307,
23392,
416,
262,
6436,
7509,
13,
198,
220,
220,
220,
220,
220,
220,
8447,
340,
815,
2291,
3306,
3218,
1634,
13,
628,
220,
220,
220,
362,
13,
3834,
4871,
318,
2938,
284,
3494,
1058,
76,
2788,
25,
63,
40085,
7509,
3419,
63,
2446,
13,
628,
220,
220,
220,
37227,
628,
220,
220,
220,
2488,
11883,
78,
1143,
62,
24396,
198,
220,
220,
220,
825,
651,
62,
40085,
7509,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
262,
16155,
1143,
6436,
7509,
4504,
416,
4600,
40085,
7509,
3419,
44646,
628,
220,
220,
220,
220,
220,
220,
220,
18987,
286,
1058,
4871,
25,
63,
17633,
24564,
63,
481,
761,
284,
3494,
4600,
40085,
7509,
3419,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
543,
481,
691,
307,
1444,
1752,
583,
1123,
2746,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
257,
1058,
4871,
25,
63,
27110,
13,
27432,
13,
27871,
320,
7509,
63,
4554,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1005,
796,
2116,
13,
40085,
7509,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
6818,
318,
39098,
7,
1186,
11,
48700,
85,
16,
13,
27432,
13,
27871,
320,
7509,
828,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17633,
24564,
13,
40085,
7509,
3419,
1276,
1441,
257,
48700,
13,
27432,
13,
27871,
320,
7509,
0,
11853,
23884,
2427,
526,
13,
18982,
7,
2536,
7,
1186,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1005,
628,
220,
220,
220,
825,
6436,
7509,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
4600,
27110,
13,
27432,
13,
27871,
320,
7509,
63,
4554,
13,
198,
220,
220,
220,
220,
220,
220,
220,
317,
47611,
318,
2938,
284,
3494,
428,
2446,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1892,
3546,
1154,
12061,
12331,
3419,
198
] | 2.524637 | 2,476 |
import numpy as np
import pandas as pd
def check_df_col(df, column, name=None):
"""
Checks for the presence of a column (or columns) in a tidy
DataFrame with an informative error message. Passes silently,
otherwise raises error.
"""
if column is not None:
if type(column) != list:
column = [column]
for col in column:
if name is None:
error_message = f"The value '{col}' is not present in any of the columns of your DataFrame."
else:
error_message = f"Your {name} value '{col}' is not present in any of the columns of your DataFrame."
error_message += "\nYou may be looking for:\n " + str(list(df.columns))
assert col in df.columns, error_message
def check_replicates(df, variable, value, grouping):
"""Checks for the presence of replicates in the values of a dataset,
given some experimental conditions. Returns True if the standard
deviation of the values of each group (if more than one exists) is
greater than, indicating that replicates were performed under the
given criteria.
Parameters
----------
df : Pandas DataFrame in tidy format
The data set to be checked for replicates
variable : immutable object
Name of column of data frame for the independent variable,
indicating a specific experimental condition.
value : immutable object
Name of column of data frame for the dependent variable,
indicating an experimental observation.
group : immutable object of list of immutable objects
Column name or list of column names that indicates how the
data set should be split.
Returns
-------
replicates : boolean
True if replicates are present.
df_out : the DataFrame containing averaged 'variable' values, if
replicates is True. Otherwise returns the original DataFrame.
"""
# Unpack the experimental conditions into a single list of arguments
if type(grouping) != list:
grouping = [grouping]
args = [elem for elem in [variable, *grouping] if elem != None]
# Get stdev of argument groups
grouped = df.groupby(args)[value]
group_stdevs = grouped.std().reset_index()
group_stdev = group_stdevs[value].mean()
# Determine if there are replicates (mean > 0)
replicates = bool(group_stdev > 0)
# Average the values and return
if replicates:
df_mean = grouped.mean().reset_index()
df_mean.columns = list(df_mean.columns[:-1]) + ['Mean of ' + str(value)]
df_return = df.merge(df_mean)
return replicates, df_return | [
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
628,
198,
4299,
2198,
62,
7568,
62,
4033,
7,
7568,
11,
5721,
11,
1438,
28,
14202,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
47719,
329,
262,
4931,
286,
257,
5721,
357,
273,
15180,
8,
287,
257,
43044,
198,
220,
220,
220,
6060,
19778,
351,
281,
30304,
4049,
3275,
13,
6251,
274,
24595,
11,
198,
220,
220,
220,
4306,
12073,
4049,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
611,
5721,
318,
407,
6045,
25,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2099,
7,
28665,
8,
14512,
1351,
25,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5721,
796,
685,
28665,
60,
628,
220,
220,
220,
220,
220,
220,
220,
329,
951,
287,
5721,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1438,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
20500,
796,
277,
1,
464,
1988,
705,
90,
4033,
92,
6,
318,
407,
1944,
287,
597,
286,
262,
15180,
286,
534,
6060,
19778,
526,
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,
4049,
62,
20500,
796,
277,
1,
7120,
1391,
3672,
92,
1988,
705,
90,
4033,
92,
6,
318,
407,
1944,
287,
597,
286,
262,
15180,
286,
534,
6060,
19778,
526,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
20500,
15853,
37082,
77,
1639,
743,
307,
2045,
329,
7479,
77,
220,
366,
1343,
965,
7,
4868,
7,
7568,
13,
28665,
82,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6818,
951,
287,
47764,
13,
28665,
82,
11,
4049,
62,
20500,
628,
198,
4299,
2198,
62,
35666,
16856,
7,
7568,
11,
7885,
11,
1988,
11,
36115,
2599,
198,
220,
220,
220,
37227,
7376,
4657,
329,
262,
4931,
286,
2186,
16856,
287,
262,
3815,
286,
257,
27039,
11,
198,
220,
220,
220,
1813,
617,
11992,
3403,
13,
16409,
6407,
611,
262,
3210,
198,
220,
220,
220,
28833,
286,
262,
3815,
286,
1123,
1448,
357,
361,
517,
621,
530,
7160,
8,
318,
198,
220,
220,
220,
3744,
621,
11,
12739,
326,
2186,
16856,
547,
6157,
739,
262,
198,
220,
220,
220,
1813,
9987,
13,
628,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
47764,
1058,
16492,
292,
6060,
19778,
287,
43044,
5794,
198,
220,
220,
220,
220,
220,
220,
220,
383,
1366,
900,
284,
307,
10667,
329,
2186,
16856,
198,
220,
220,
220,
7885,
1058,
40139,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
6530,
286,
5721,
286,
1366,
5739,
329,
262,
4795,
7885,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12739,
257,
2176,
11992,
4006,
13,
198,
220,
220,
220,
1988,
1058,
40139,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
6530,
286,
5721,
286,
1366,
5739,
329,
262,
10795,
7885,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12739,
281,
11992,
13432,
13,
198,
220,
220,
220,
1448,
1058,
40139,
2134,
286,
1351,
286,
40139,
5563,
198,
220,
220,
220,
220,
220,
220,
220,
29201,
1438,
393,
1351,
286,
5721,
3891,
326,
9217,
703,
262,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
900,
815,
307,
6626,
13,
628,
220,
220,
220,
16409,
198,
220,
220,
220,
35656,
198,
220,
220,
220,
2186,
16856,
1058,
25131,
198,
220,
220,
220,
220,
220,
220,
220,
6407,
611,
2186,
16856,
389,
1944,
13,
198,
220,
220,
220,
47764,
62,
448,
1058,
262,
6060,
19778,
7268,
16449,
705,
45286,
6,
3815,
11,
611,
198,
220,
220,
220,
220,
220,
220,
220,
2186,
16856,
318,
6407,
13,
15323,
5860,
262,
2656,
6060,
19778,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
791,
8002,
262,
11992,
3403,
656,
257,
2060,
1351,
286,
7159,
198,
220,
220,
220,
611,
2099,
7,
8094,
278,
8,
14512,
1351,
25,
198,
220,
220,
220,
220,
220,
220,
220,
36115,
796,
685,
8094,
278,
60,
198,
220,
220,
220,
26498,
796,
685,
68,
10671,
329,
9766,
76,
287,
685,
45286,
11,
1635,
8094,
278,
60,
611,
9766,
76,
14512,
6045,
60,
628,
220,
220,
220,
1303,
3497,
336,
7959,
286,
4578,
2628,
198,
220,
220,
220,
32824,
796,
47764,
13,
8094,
1525,
7,
22046,
38381,
8367,
60,
198,
220,
220,
220,
1448,
62,
301,
7959,
82,
796,
32824,
13,
19282,
22446,
42503,
62,
9630,
3419,
198,
220,
220,
220,
1448,
62,
301,
7959,
796,
1448,
62,
301,
7959,
82,
58,
8367,
4083,
32604,
3419,
628,
220,
220,
220,
1303,
45559,
3810,
611,
612,
389,
2186,
16856,
357,
32604,
1875,
657,
8,
198,
220,
220,
220,
2186,
16856,
796,
20512,
7,
8094,
62,
301,
7959,
1875,
657,
8,
628,
220,
220,
220,
1303,
13475,
262,
3815,
290,
1441,
198,
220,
220,
220,
611,
2186,
16856,
25,
198,
220,
220,
220,
220,
220,
220,
220,
47764,
62,
32604,
796,
32824,
13,
32604,
22446,
42503,
62,
9630,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
47764,
62,
32604,
13,
28665,
82,
796,
1351,
7,
7568,
62,
32604,
13,
28665,
82,
58,
21912,
16,
12962,
1343,
37250,
5308,
272,
286,
705,
1343,
965,
7,
8367,
15437,
198,
220,
220,
220,
220,
220,
220,
220,
47764,
62,
7783,
796,
47764,
13,
647,
469,
7,
7568,
62,
32604,
8,
628,
220,
220,
220,
1441,
2186,
16856,
11,
47764,
62,
7783
] | 2.891775 | 924 |
import sys
import ebf
import numpy as np
import scipy.interpolate
import pdb
import asfgrid
from astropy.io import ascii
from classify_direct import *
dnumodel = asfgrid.Seism()
bcmodel = h5py.File('bcgrid.h5', 'r')
dustmodel = mwdust.Combined15()
x=obsdata()
x.addspec([5065.,-99.0,-0.1],[120.,0.0,0.2])
x.addseismo([231.,16.5],[10.,0.5])
paras=stparas(input=x,dnumodel=dnumodel,bcmodel=bcmodel,dustmodel=dustmodel,\
useav=0,dnucor=0,plot=0)
x.addjhk([6.025,5.578,5.496],[0.019,0.038,0.018])
x.addplx(8.9536/1e3,0.7/1e3)
paras=stparas(input=x,dnumodel=dnumodel,bcmodel=bcmodel,dustmodel=dustmodel,\
useav=0,dnucor=0,plot=0)
| [
11748,
25064,
198,
11748,
304,
19881,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
629,
541,
88,
13,
3849,
16104,
378,
198,
11748,
279,
9945,
198,
11748,
355,
69,
25928,
198,
6738,
6468,
28338,
13,
952,
1330,
355,
979,
72,
198,
6738,
36509,
62,
12942,
1330,
1635,
628,
198,
67,
22510,
375,
417,
796,
355,
69,
25928,
13,
4653,
1042,
3419,
220,
220,
198,
15630,
19849,
796,
289,
20,
9078,
13,
8979,
10786,
15630,
25928,
13,
71,
20,
3256,
705,
81,
11537,
198,
48859,
19849,
796,
285,
16993,
436,
13,
20575,
1389,
1314,
3419,
628,
198,
87,
28,
8158,
7890,
3419,
198,
198,
87,
13,
2860,
16684,
26933,
1120,
2996,
1539,
12,
2079,
13,
15,
12095,
15,
13,
16,
38430,
10232,
1539,
15,
13,
15,
11,
15,
13,
17,
12962,
198,
87,
13,
2860,
325,
44126,
26933,
25667,
1539,
1433,
13,
20,
38430,
940,
1539,
15,
13,
20,
12962,
198,
1845,
292,
28,
301,
1845,
292,
7,
15414,
28,
87,
11,
67,
22510,
375,
417,
28,
67,
22510,
375,
417,
11,
15630,
19849,
28,
15630,
19849,
11,
48859,
19849,
28,
48859,
19849,
11,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
779,
615,
28,
15,
11,
32656,
1229,
273,
28,
15,
11,
29487,
28,
15,
8,
198,
198,
87,
13,
2860,
73,
71,
74,
26933,
21,
13,
36629,
11,
20,
13,
38907,
11,
20,
13,
37747,
38430,
15,
13,
30484,
11,
15,
13,
15,
2548,
11,
15,
13,
29159,
12962,
198,
87,
13,
2860,
489,
87,
7,
23,
13,
3865,
2623,
14,
16,
68,
18,
11,
15,
13,
22,
14,
16,
68,
18,
8,
198,
1845,
292,
28,
301,
1845,
292,
7,
15414,
28,
87,
11,
67,
22510,
375,
417,
28,
67,
22510,
375,
417,
11,
15630,
19849,
28,
15630,
19849,
11,
48859,
19849,
28,
48859,
19849,
11,
59,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
779,
615,
28,
15,
11,
32656,
1229,
273,
28,
15,
11,
29487,
28,
15,
8,
628
] | 1.926136 | 352 |
"""
A mixin to convert kwargs to attributes.
"""
class KwargsToDict(object):
"""This mixin converts kwargs passed to the constructor to attributes.
"""
def __init__(self, **kwargs):
"""When a class is created, automatically convert its kwargs to
attributes.
:param dict kwargs: The keyword arguments passed to the class.
"""
for key, value in kwargs.items():
setattr(self, key, value)
| [
37811,
198,
32,
5022,
259,
284,
10385,
479,
86,
22046,
284,
12608,
13,
198,
37811,
198,
198,
4871,
31767,
22046,
2514,
35,
713,
7,
15252,
2599,
198,
220,
220,
220,
37227,
1212,
5022,
259,
26161,
479,
86,
22046,
3804,
284,
262,
23772,
284,
12608,
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,
37227,
2215,
257,
1398,
318,
2727,
11,
6338,
10385,
663,
479,
86,
22046,
284,
198,
220,
220,
220,
220,
220,
220,
220,
12608,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
8633,
479,
86,
22046,
25,
383,
21179,
7159,
3804,
284,
262,
1398,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1988,
287,
479,
86,
22046,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
900,
35226,
7,
944,
11,
1994,
11,
1988,
8,
198
] | 2.652941 | 170 |
#!/usr/bin/env python3
import os
import logging
import time
from shared import common_utils
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
198,
11748,
28686,
198,
11748,
18931,
198,
11748,
640,
198,
198,
6738,
4888,
1330,
2219,
62,
26791,
628,
628,
628,
628,
198
] | 3.1875 | 32 |
"""438. Find All Anagrams in a String"""
| [
37811,
43704,
13,
9938,
1439,
1052,
6713,
82,
287,
257,
10903,
37811,
198
] | 3.153846 | 13 |
from tkinter import *
from tkinter import ttk
from threading import Thread
import time
import path_finder
import os, subprocess
from tkinter.filedialog import askdirectory
import dependency_manager
import config
from PIL import Image, ImageTk
import webbrowser
import utilities
import functools
import version_checker
gui_update_cycles = 0
update_check_queued = False
shown_update = False
root = Tk()
root.title("NWN Launcher - Prisoners of The Mist")
root.resizable(0,0)
#root.iconify()
#root.attributes('-alpha', 0.0) #For icon
#main_window = Toplevel()
#main_window.overrideredirect(False)
#main_window.geometry("1000x1000") #Whatever size
# Load the images we'll use
background_image=ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), "background.png"))
buttons = {}
for button_name in ["clear", "launch", "update", "website", "gear"]:
buttons[button_name + "_button_active"] = ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), button_name + "_button_active.png"))
buttons[button_name + "_button_disabled"] = ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), button_name + "_button_disabled.png"))
buttons[button_name + "_button_hovered"] = ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), button_name + "_button_hovered.png"))
"""def _load_images():
global background_image
background_image=ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), "background.png"))
global button_active_image
button_active_image=ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), "button_active.png"))
global button_disabled_image
button_disabled_image=ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), "button_disabled.png"))
global button_hovered_image
button_hovered_image=ImageTk.PhotoImage(file=os.path.join(path_finder.get_server_images_path(), "button_hovered.png"))
background_label["image"] = background_image
if update_button.enabled:
_image_to_enabled(update_button)
else:
_image_to_disabled(update_button)
_image_to_enabled(launch_button)"""
ttk.Style().configure("TEntry", padding=6, relief="flat",
background="#595b59")
#mainframe = ttk.Frame(main_window, padding="0 0 0 0")
mainframe = ttk.Frame(root, padding="0 0 0 0")
mainframe.grid(column=0, row=0, sticky=(N, W, E, S))
background_label = Label(mainframe, image=background_image, borderwidth=0, background="#000000")
background_label.grid(row=0,column=0, rowspan=8, columnspan=8)
background_label.bind("<Button-1>", lambda event: print("Pressed BG"))
launch_button = _create_label_button("Launch", "launch")
launch_button.place(in_=mainframe, anchor=config.get_gui_conf("launch_button_anchor"),
relx=config.get_gui_conf("launch_button_pos")[0],
rely=config.get_gui_conf("launch_button_pos")[1])
launch_button.bind("<Button-1>",_trigger_launch)
website_button = _create_label_button("Website", "website")
website_button.place(in_=mainframe, anchor=config.get_gui_conf("website_button_anchor"),
relx=config.get_gui_conf("website_button_pos")[0],
rely=config.get_gui_conf("website_button_pos")[1])
website_button.bind("<Button-1>", lambda event: webbrowser.open(config.get_server_conf("website")))
diagnosis_button = _create_label_button("Gear", "gear")
diagnosis_button.place(in_=mainframe, anchor=config.get_gui_conf("gear_button_anchor"),
relx=config.get_gui_conf("gear_button_pos")[0],
rely=config.get_gui_conf("gear_button_pos")[1])
diagnosis_button.bind("<Button-1>",_open_diagnosis)
player_name_label = Label(mainframe, text = "Player name: ", borderwidth = 0, width=0,
padx=2, pady=2,
font=config.get_gui_conf("player_name_label_font", "label_default_font"),
foreground=config.get_gui_conf("player_name_label_fg_color", "label_default_fg_color"),
background=config.get_gui_conf("player_name_label_bg_color", "label_default_bg_color"))
player_name_label.place(in_=mainframe, anchor=config.get_gui_conf("player_name_label_anchor"),
relx=config.get_gui_conf("player_name_label_pos")[0],
rely=config.get_gui_conf("player_name_label_pos")[1])
player_var = StringVar()
player_combobox = ttk.Combobox(mainframe, textvariable=player_var, width=29)
player_combobox["values"] = config.main_conf_values["player_names"]
player_var.set(config.player_name)
#player_combobox.state(['readonly'])
player_combobox.place(in_=mainframe,
anchor=config.get_gui_conf("player_combobox_anchor"),
relx=config.get_gui_conf("player_combobox_pos")[0],
rely=config.get_gui_conf("player_combobox_pos")[1])
#player_var.trace("w", _change_player_conf)
player_save_button = Label(mainframe, text = "Save Name", borderwidth = 0, width=0,
padx=2, pady=2,
font=config.get_gui_conf("save_button_font", "button_font"),
foreground=config.get_gui_conf("save_button_fg_color", "button_enabled_fg_color"),
background=config.get_gui_conf("save_button_bg_color", "button_bg_color"))
player_save_button.place(in_=mainframe,
anchor=config.get_gui_conf("save_button_anchor"),
relx=config.get_gui_conf("save_button_pos")[0],
rely=config.get_gui_conf("save_button_pos")[1])
player_save_button.bind("<Button-1>",lambda e:_save_player())
nwn_path = StringVar()
nwn_path.set(path_finder.get_executable_path())
nwn_path_label = _create_label(nwn_path)
nwn_path_label.place(in_=mainframe,
anchor=config.get_gui_conf("nwn_path_label_anchor"),
relx=config.get_gui_conf("nwn_path_label_pos")[0],
rely=config.get_gui_conf("nwn_path_label_pos")[1])
nwn_path_name_label = Label(mainframe, text = "NWN Path:", borderwidth = 0, width=0,
padx=2, pady=2,
font=config.get_gui_conf("nwn_path_name_label_font", "label_font"),
foreground=config.get_gui_conf("nwn_path_name_label_fg_color", "label_fg_color"),
background=config.get_gui_conf("nwn_path_name_label_bg_color", "label_bg_color"))
nwn_path_name_label.place(in_=mainframe,
anchor=config.get_gui_conf("nwn_path_name_label_anchor"),
relx=config.get_gui_conf("nwn_path_name_label_pos")[0],
rely=config.get_gui_conf("nwn_path_name_label_pos")[1])
nwn_path_label.bind("<Button-1>",_trigger_path_dialogue)
update_button = _create_label_button("Update", "update")
update_button.place(in_=mainframe,
anchor=config.get_gui_conf("update_button_anchor"),
relx=config.get_gui_conf("update_button_pos")[0],
rely=config.get_gui_conf("update_button_pos")[1])
_image_to_disabled(update_button, "update")
music_var = IntVar()
music_var.set(config.main_conf_values["download_music"])
music_checkbox = Checkbutton(mainframe, text="Music", variable=music_var,
foreground=config.get_gui_conf("music_checkbox_select_color", "checkbox_fg_color"),
background=config.get_gui_conf("music_checkbox_bg_color", "checkbox_bg_color"),
selectcolor=config.get_gui_conf("music_checkbox_fg_color", "checkbox_select_color"),
borderwidth=0, pady=0, command=_do_check_update)
music_checkbox.place(in_=mainframe,
anchor=config.get_gui_conf("music_checkbox_anchor"),
relx=config.get_gui_conf("music_checkbox_pos")[0],
rely=config.get_gui_conf("music_checkbox_pos")[1])
overrides_var = IntVar()
overrides_var.set(config.main_conf_values["download_overrides"])
overrides_checkbox = Checkbutton(mainframe, text="Overrides", variable=overrides_var,
foreground=config.get_gui_conf("overrides_checkbox_select_color", "checkbox_fg_color"),
background=config.get_gui_conf("overrides_checkbox_bg_color", "checkbox_bg_color"),
selectcolor=config.get_gui_conf("overrides_checkbox_fg_color", "checkbox_select_color"),
borderwidth=0, pady=0, command=_do_check_update)
overrides_checkbox.place(in_=mainframe,
anchor=config.get_gui_conf("overrides_checkbox_anchor"),
relx=config.get_gui_conf("overrides_checkbox_pos")[0],
rely=config.get_gui_conf("overrides_checkbox_pos")[1])
portraits_var = IntVar()
portraits_var.set(config.main_conf_values["download_portraits"])
portraits_checkbox = Checkbutton(mainframe, text="Portraits", variable=portraits_var,
foreground=config.get_gui_conf("portraits_checkbox_select_color", "checkbox_fg_color"),
background=config.get_gui_conf("portraits_checkbox_bg_color", "checkbox_bg_color"),
selectcolor=config.get_gui_conf("portraits_checkbox_fg_color", "checkbox_select_color"),
borderwidth=0, pady=0, command=_do_check_update)
portraits_checkbox.place(in_=mainframe,
anchor=config.get_gui_conf("portraits_checkbox_anchor"),
relx=config.get_gui_conf("portraits_checkbox_pos")[0],
rely=config.get_gui_conf("portraits_checkbox_pos")[1])
overwrite_var = IntVar()
overwrite_var.set(config.main_conf_values["allow_overwrite"])
overwrite_checkbox = Checkbutton(mainframe, text="Allow overwriting dependencies", variable=overwrite_var,
foreground=config.get_gui_conf("overwrite_checkbox_select_color", "checkbox_fg_color"),
background=config.get_gui_conf("overwrite_checkbox_bg_color", "checkbox_bg_color"),
selectcolor=config.get_gui_conf("overwrite_checkbox_fg_color", "checkbox_select_color"),
borderwidth=0, pady=0, command=_do_check_update)
overwrite_checkbox.place(in_=mainframe,
anchor=config.get_gui_conf("overwrite_checkbox_anchor"),
relx=config.get_gui_conf("overwrite_checkbox_pos")[0],
rely=config.get_gui_conf("overwrite_checkbox_pos")[1])
# DM Checkbox
dm_var = IntVar()
dm_var.set(config.main_conf_values["login_as_dm"])
dm_checkbox = Checkbutton(mainframe, text="Connect as DM", variable=dm_var,
foreground=config.get_gui_conf("dm_checkbox_select_color", "checkbox_fg_color"),
background=config.get_gui_conf("dm_checkbox_bg_color", "checkbox_bg_color"),
selectcolor=config.get_gui_conf("dm_checkbox_fg_color", "checkbox_select_color"),
borderwidth=0, pady=0, command=_dm_checkbox_clicked)
dm_checkbox.place(in_=mainframe,
anchor=config.get_gui_conf("dm_checkbox_anchor"),
relx=config.get_gui_conf("dm_checkbox_pos")[0],
rely=config.get_gui_conf("dm_checkbox_pos")[1])
dm_pass_label = Label(text = "Pass: ", borderwidth = 3, width=0,
padx=2, pady=2,
font=config.get_gui_conf("dm_pass_label_font", "label_font"),
foreground=config.get_gui_conf("dm_pass_label_fg_color", "label_fg_color"),
background=config.get_gui_conf("dm_pass_label_bg_color", "label_bg_color"))
dm_pass_var = StringVar()
dm_pass_entry = Entry(mainframe, show='*', textvariable=dm_pass_var)
_dm_checkbox_clicked()
server_var = StringVar()
server_combobox = ttk.Combobox(mainframe, textvariable=server_var, width=29)
servers = []
for key, value in config.confs.items():
servers.append(value["name_full"])
server_combobox["values"] = servers
server_var.set(config.current_server_full_name)
server_combobox.state(['readonly'])
server_combobox.place(in_=mainframe,
anchor=config.get_gui_conf("server_combobox_anchor"),
relx=config.get_gui_conf("server_combobox_pos")[0],
rely=config.get_gui_conf("server_combobox_pos")[1])
server_var.trace("w", _change_server_conf)
update_button.bind("<Button-1>", _trigger_update)
#music_checkbox.bind("<Button-1>", _do_check_update)
#overrides_checkbox.bind("<Button-1>", _do_check_update)
#portraits_checkbox.bind("<Button-1>", _do_check_update)
update_status = StringVar()
update_status.set(dependency_manager.status + "\nHi" + "\nHello")
update_status_label = Label(mainframe, textvariable=update_status,
width=40, height=4, anchor="w",
justify=LEFT, borderwidth = 3,
relief = SUNKEN, padx=2, pady=2,
font=config.get_gui_conf("update_status_label_font", "label_font"),
foreground=config.get_gui_conf("update_status_label_fg_color", "label_fg_color"),
background=config.get_gui_conf("update_status_label_bg_color", "label_bg_color"))
update_status_label.place(in_=mainframe,
anchor=config.get_gui_conf("update_status_label_anchor"),
relx=config.get_gui_conf("update_status_label_pos")[0],
rely=config.get_gui_conf("update_status_label_pos")[1])
delete_overrides_button = _create_label_button("Delete overrides..", "clear", font="TkHeadingFont 10")
delete_overrides_button.place(in_=mainframe,
anchor=config.get_gui_conf("delete_overrides_button_anchor"),
relx=config.get_gui_conf("delete_overrides_button_pos")[0],
rely=config.get_gui_conf("delete_overrides_button_pos")[1])
delete_overrides_button.bind("<Button-1>", _trigger_delete_overrides)
_check_update_status()
LARGE_FONT= ("Verdana", 12)
NORM_FONT = ("Helvetica", 10)
SMALL_FONT = ("Helvetica", 8)
URL_FONT = ("Helvetica", 10, "underline")
root.after(50, _check_for_upgrade)
if config.main_conf_values["show_gog_warning"]:
root.after(50, _check_for_gog_cd_key)
if config.main_conf_values["show_hosts_file_popupmsg"] and not utilities._check_authentication_skip():
root.after(50, _hosts_file_popupmsg)
root.wm_protocol("WM_DELETE_WINDOW", on_closing)
root.mainloop()
| [
6738,
256,
74,
3849,
1330,
1635,
198,
6738,
256,
74,
3849,
1330,
256,
30488,
198,
198,
6738,
4704,
278,
1330,
14122,
198,
11748,
640,
198,
198,
11748,
3108,
62,
22805,
198,
198,
11748,
28686,
11,
850,
14681,
198,
198,
6738,
256,
74,
3849,
13,
69,
3902,
498,
519,
1330,
1265,
34945,
198,
198,
11748,
20203,
62,
37153,
198,
198,
11748,
4566,
198,
6738,
350,
4146,
1330,
7412,
11,
7412,
51,
74,
198,
198,
11748,
3992,
40259,
198,
198,
11748,
20081,
198,
11748,
1257,
310,
10141,
198,
198,
11748,
2196,
62,
9122,
263,
198,
198,
48317,
62,
19119,
62,
32503,
796,
657,
198,
19119,
62,
9122,
62,
4188,
1739,
796,
10352,
198,
42579,
62,
19119,
796,
10352,
198,
198,
15763,
796,
309,
74,
3419,
198,
15763,
13,
7839,
7203,
27605,
45,
26385,
532,
16999,
364,
286,
383,
15078,
4943,
198,
15763,
13,
411,
13821,
7,
15,
11,
15,
8,
198,
2,
15763,
13,
4749,
1958,
3419,
198,
2,
15763,
13,
1078,
7657,
10786,
12,
26591,
3256,
657,
13,
15,
8,
1303,
1890,
7196,
198,
2,
12417,
62,
17497,
796,
309,
643,
626,
3419,
198,
2,
12417,
62,
17497,
13,
2502,
81,
3089,
1060,
7,
25101,
8,
198,
2,
12417,
62,
17497,
13,
469,
15748,
7203,
12825,
87,
12825,
4943,
1303,
21875,
2546,
198,
198,
2,
8778,
262,
4263,
356,
1183,
779,
198,
25249,
62,
9060,
28,
5159,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
366,
25249,
13,
11134,
48774,
198,
198,
4360,
27288,
796,
23884,
198,
198,
1640,
4936,
62,
3672,
287,
14631,
20063,
1600,
366,
35681,
1600,
366,
19119,
1600,
366,
732,
12485,
1600,
366,
31763,
1,
5974,
198,
220,
220,
220,
12163,
58,
16539,
62,
3672,
1343,
45434,
16539,
62,
5275,
8973,
796,
7412,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
4936,
62,
3672,
1343,
45434,
16539,
62,
5275,
13,
11134,
48774,
198,
220,
220,
220,
12163,
58,
16539,
62,
3672,
1343,
45434,
16539,
62,
47730,
8973,
796,
7412,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
4936,
62,
3672,
1343,
45434,
16539,
62,
47730,
13,
11134,
48774,
198,
220,
220,
220,
12163,
58,
16539,
62,
3672,
1343,
45434,
16539,
62,
71,
2557,
8973,
796,
7412,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
4936,
62,
3672,
1343,
45434,
16539,
62,
71,
2557,
13,
11134,
48774,
198,
198,
37811,
4299,
4808,
2220,
62,
17566,
33529,
198,
220,
220,
220,
3298,
4469,
62,
9060,
198,
220,
220,
220,
4469,
62,
9060,
28,
5159,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
366,
25249,
13,
11134,
48774,
198,
220,
220,
220,
3298,
4936,
62,
5275,
62,
9060,
198,
220,
220,
220,
4936,
62,
5275,
62,
9060,
28,
5159,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
366,
16539,
62,
5275,
13,
11134,
48774,
198,
220,
220,
220,
3298,
4936,
62,
47730,
62,
9060,
198,
220,
220,
220,
4936,
62,
47730,
62,
9060,
28,
5159,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
366,
16539,
62,
47730,
13,
11134,
48774,
198,
220,
220,
220,
3298,
4936,
62,
71,
2557,
62,
9060,
198,
220,
220,
220,
4936,
62,
71,
2557,
62,
9060,
28,
5159,
51,
74,
13,
6191,
5159,
7,
7753,
28,
418,
13,
6978,
13,
22179,
7,
6978,
62,
22805,
13,
1136,
62,
15388,
62,
17566,
62,
6978,
22784,
366,
16539,
62,
71,
2557,
13,
11134,
48774,
198,
220,
220,
220,
4469,
62,
18242,
14692,
9060,
8973,
796,
4469,
62,
9060,
628,
220,
220,
220,
611,
4296,
62,
16539,
13,
25616,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
9060,
62,
1462,
62,
25616,
7,
19119,
62,
16539,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
9060,
62,
1462,
62,
47730,
7,
19119,
62,
16539,
8,
628,
220,
220,
220,
4808,
9060,
62,
1462,
62,
25616,
7,
35681,
62,
16539,
8,
37811,
198,
198,
926,
74,
13,
21466,
22446,
11250,
495,
7203,
9328,
429,
563,
1600,
24511,
28,
21,
11,
8259,
2625,
38568,
1600,
198,
220,
220,
4469,
25698,
35124,
65,
3270,
4943,
198,
198,
2,
12417,
14535,
796,
256,
30488,
13,
19778,
7,
12417,
62,
17497,
11,
24511,
2625,
15,
657,
657,
657,
4943,
198,
12417,
14535,
796,
256,
30488,
13,
19778,
7,
15763,
11,
24511,
2625,
15,
657,
657,
657,
4943,
198,
12417,
14535,
13,
25928,
7,
28665,
28,
15,
11,
5752,
28,
15,
11,
23408,
16193,
45,
11,
370,
11,
412,
11,
311,
4008,
198,
198,
25249,
62,
18242,
796,
36052,
7,
12417,
14535,
11,
2939,
28,
25249,
62,
9060,
11,
4865,
10394,
28,
15,
11,
4469,
25698,
10535,
4943,
198,
25249,
62,
18242,
13,
25928,
7,
808,
28,
15,
11,
28665,
28,
15,
11,
5752,
12626,
28,
23,
11,
5721,
12626,
28,
23,
8,
198,
25249,
62,
18242,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
37456,
1785,
25,
3601,
7203,
47,
2790,
34839,
48774,
198,
198,
35681,
62,
16539,
796,
4808,
17953,
62,
18242,
62,
16539,
7203,
38296,
1600,
366,
35681,
4943,
198,
35681,
62,
16539,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
35681,
62,
16539,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
35681,
62,
16539,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
35681,
62,
16539,
62,
1930,
4943,
58,
16,
12962,
198,
198,
35681,
62,
16539,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
62,
46284,
62,
35681,
8,
198,
198,
732,
12485,
62,
16539,
796,
4808,
17953,
62,
18242,
62,
16539,
7203,
33420,
1600,
366,
732,
12485,
4943,
198,
732,
12485,
62,
16539,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
732,
12485,
62,
16539,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
732,
12485,
62,
16539,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
732,
12485,
62,
16539,
62,
1930,
4943,
58,
16,
12962,
198,
198,
732,
12485,
62,
16539,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
37456,
1785,
25,
3992,
40259,
13,
9654,
7,
11250,
13,
1136,
62,
15388,
62,
10414,
7203,
732,
12485,
1,
22305,
198,
198,
47356,
5958,
62,
16539,
796,
4808,
17953,
62,
18242,
62,
16539,
7203,
38141,
1600,
366,
31763,
4943,
198,
47356,
5958,
62,
16539,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
31763,
62,
16539,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
31763,
62,
16539,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
31763,
62,
16539,
62,
1930,
4943,
58,
16,
12962,
198,
198,
47356,
5958,
62,
16539,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
62,
9654,
62,
47356,
5958,
8,
628,
198,
198,
7829,
62,
3672,
62,
18242,
796,
36052,
7,
12417,
14535,
11,
2420,
796,
366,
14140,
1438,
25,
33172,
4865,
10394,
796,
657,
11,
9647,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14841,
87,
28,
17,
11,
279,
4597,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10369,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
3672,
62,
18242,
62,
10331,
1600,
366,
18242,
62,
12286,
62,
10331,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
3672,
62,
18242,
62,
40616,
62,
8043,
1600,
366,
18242,
62,
12286,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
3672,
62,
18242,
62,
35904,
62,
8043,
1600,
366,
18242,
62,
12286,
62,
35904,
62,
8043,
48774,
198,
7829,
62,
3672,
62,
18242,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
3672,
62,
18242,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
3672,
62,
18242,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
3672,
62,
18242,
62,
1930,
4943,
58,
16,
12962,
198,
198,
7829,
62,
7785,
796,
10903,
19852,
3419,
198,
7829,
62,
24011,
672,
1140,
796,
256,
30488,
13,
20575,
672,
1140,
7,
12417,
14535,
11,
2420,
45286,
28,
7829,
62,
7785,
11,
9647,
28,
1959,
8,
198,
7829,
62,
24011,
672,
1140,
14692,
27160,
8973,
796,
4566,
13,
12417,
62,
10414,
62,
27160,
14692,
7829,
62,
14933,
8973,
198,
7829,
62,
7785,
13,
2617,
7,
11250,
13,
7829,
62,
3672,
8,
198,
2,
7829,
62,
24011,
672,
1140,
13,
5219,
7,
17816,
961,
8807,
6,
12962,
198,
7829,
62,
24011,
672,
1140,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
24011,
672,
1140,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
24011,
672,
1140,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
7829,
62,
24011,
672,
1140,
62,
1930,
4943,
58,
16,
12962,
198,
2,
7829,
62,
7785,
13,
40546,
7203,
86,
1600,
4808,
3803,
62,
7829,
62,
10414,
8,
198,
198,
7829,
62,
21928,
62,
16539,
796,
36052,
7,
12417,
14535,
11,
2420,
796,
366,
16928,
6530,
1600,
4865,
10394,
796,
657,
11,
9647,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14841,
87,
28,
17,
11,
279,
4597,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10369,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
21928,
62,
16539,
62,
10331,
1600,
366,
16539,
62,
10331,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
21928,
62,
16539,
62,
40616,
62,
8043,
1600,
366,
16539,
62,
25616,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
21928,
62,
16539,
62,
35904,
62,
8043,
1600,
366,
16539,
62,
35904,
62,
8043,
48774,
198,
7829,
62,
21928,
62,
16539,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
21928,
62,
16539,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
21928,
62,
16539,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
21928,
62,
16539,
62,
1930,
4943,
58,
16,
12962,
198,
7829,
62,
21928,
62,
16539,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
50033,
304,
25,
62,
21928,
62,
7829,
28955,
198,
198,
77,
675,
62,
6978,
796,
10903,
19852,
3419,
198,
77,
675,
62,
6978,
13,
2617,
7,
6978,
62,
22805,
13,
1136,
62,
18558,
18187,
62,
6978,
28955,
198,
77,
675,
62,
6978,
62,
18242,
796,
4808,
17953,
62,
18242,
7,
77,
675,
62,
6978,
8,
198,
77,
675,
62,
6978,
62,
18242,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
18242,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
18242,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
18242,
62,
1930,
4943,
58,
16,
12962,
198,
198,
77,
675,
62,
6978,
62,
3672,
62,
18242,
796,
36052,
7,
12417,
14535,
11,
2420,
796,
366,
27605,
45,
10644,
25,
1600,
4865,
10394,
796,
657,
11,
9647,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14841,
87,
28,
17,
11,
279,
4597,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10369,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
3672,
62,
18242,
62,
10331,
1600,
366,
18242,
62,
10331,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
3672,
62,
18242,
62,
40616,
62,
8043,
1600,
366,
18242,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
3672,
62,
18242,
62,
35904,
62,
8043,
1600,
366,
18242,
62,
35904,
62,
8043,
48774,
198,
77,
675,
62,
6978,
62,
3672,
62,
18242,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
3672,
62,
18242,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
3672,
62,
18242,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
77,
675,
62,
6978,
62,
3672,
62,
18242,
62,
1930,
4943,
58,
16,
12962,
198,
198,
77,
675,
62,
6978,
62,
18242,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
62,
46284,
62,
6978,
62,
38969,
5119,
8,
198,
198,
19119,
62,
16539,
796,
4808,
17953,
62,
18242,
62,
16539,
7203,
10260,
1600,
366,
19119,
4943,
198,
19119,
62,
16539,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
16539,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
16539,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
16539,
62,
1930,
4943,
58,
16,
12962,
198,
62,
9060,
62,
1462,
62,
47730,
7,
19119,
62,
16539,
11,
366,
19119,
4943,
198,
198,
28965,
62,
7785,
796,
2558,
19852,
3419,
198,
28965,
62,
7785,
13,
2617,
7,
11250,
13,
12417,
62,
10414,
62,
27160,
14692,
15002,
62,
28965,
8973,
8,
198,
28965,
62,
9122,
3524,
796,
6822,
16539,
7,
12417,
14535,
11,
2420,
2625,
22648,
1600,
7885,
28,
28965,
62,
7785,
11,
198,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
28965,
62,
9122,
3524,
62,
19738,
62,
8043,
1600,
366,
9122,
3524,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
28965,
62,
9122,
3524,
62,
35904,
62,
8043,
1600,
366,
9122,
3524,
62,
35904,
62,
8043,
12340,
198,
220,
220,
220,
2922,
8043,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
28965,
62,
9122,
3524,
62,
40616,
62,
8043,
1600,
366,
9122,
3524,
62,
19738,
62,
8043,
12340,
198,
220,
220,
220,
4865,
10394,
28,
15,
11,
279,
4597,
28,
15,
11,
3141,
28,
62,
4598,
62,
9122,
62,
19119,
8,
198,
28965,
62,
9122,
3524,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
28965,
62,
9122,
3524,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
28965,
62,
9122,
3524,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
28965,
62,
9122,
3524,
62,
1930,
4943,
58,
16,
12962,
198,
198,
2502,
81,
1460,
62,
7785,
796,
2558,
19852,
3419,
198,
2502,
81,
1460,
62,
7785,
13,
2617,
7,
11250,
13,
12417,
62,
10414,
62,
27160,
14692,
15002,
62,
2502,
81,
1460,
8973,
8,
198,
2502,
81,
1460,
62,
9122,
3524,
796,
6822,
16539,
7,
12417,
14535,
11,
2420,
2625,
5886,
81,
1460,
1600,
7885,
28,
2502,
81,
1460,
62,
7785,
11,
198,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
81,
1460,
62,
9122,
3524,
62,
19738,
62,
8043,
1600,
366,
9122,
3524,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
81,
1460,
62,
9122,
3524,
62,
35904,
62,
8043,
1600,
366,
9122,
3524,
62,
35904,
62,
8043,
12340,
198,
220,
220,
220,
2922,
8043,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
81,
1460,
62,
9122,
3524,
62,
40616,
62,
8043,
1600,
366,
9122,
3524,
62,
19738,
62,
8043,
12340,
198,
220,
220,
220,
4865,
10394,
28,
15,
11,
279,
4597,
28,
15,
11,
3141,
28,
62,
4598,
62,
9122,
62,
19119,
8,
198,
2502,
81,
1460,
62,
9122,
3524,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
81,
1460,
62,
9122,
3524,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
81,
1460,
62,
9122,
3524,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
81,
1460,
62,
9122,
3524,
62,
1930,
4943,
58,
16,
12962,
198,
198,
634,
27554,
62,
7785,
796,
2558,
19852,
3419,
198,
634,
27554,
62,
7785,
13,
2617,
7,
11250,
13,
12417,
62,
10414,
62,
27160,
14692,
15002,
62,
634,
27554,
8973,
8,
198,
634,
27554,
62,
9122,
3524,
796,
6822,
16539,
7,
12417,
14535,
11,
2420,
2625,
13924,
27554,
1600,
7885,
28,
634,
27554,
62,
7785,
11,
198,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
634,
27554,
62,
9122,
3524,
62,
19738,
62,
8043,
1600,
366,
9122,
3524,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
634,
27554,
62,
9122,
3524,
62,
35904,
62,
8043,
1600,
366,
9122,
3524,
62,
35904,
62,
8043,
12340,
198,
220,
220,
220,
2922,
8043,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
634,
27554,
62,
9122,
3524,
62,
40616,
62,
8043,
1600,
366,
9122,
3524,
62,
19738,
62,
8043,
12340,
198,
220,
220,
220,
4865,
10394,
28,
15,
11,
279,
4597,
28,
15,
11,
3141,
28,
62,
4598,
62,
9122,
62,
19119,
8,
198,
634,
27554,
62,
9122,
3524,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
634,
27554,
62,
9122,
3524,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
634,
27554,
62,
9122,
3524,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
634,
27554,
62,
9122,
3524,
62,
1930,
4943,
58,
16,
12962,
198,
198,
2502,
13564,
62,
7785,
796,
2558,
19852,
3419,
198,
2502,
13564,
62,
7785,
13,
2617,
7,
11250,
13,
12417,
62,
10414,
62,
27160,
14692,
12154,
62,
2502,
13564,
8973,
8,
198,
2502,
13564,
62,
9122,
3524,
796,
6822,
16539,
7,
12417,
14535,
11,
2420,
2625,
35265,
6993,
799,
278,
20086,
1600,
7885,
28,
2502,
13564,
62,
7785,
11,
198,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
13564,
62,
9122,
3524,
62,
19738,
62,
8043,
1600,
366,
9122,
3524,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
13564,
62,
9122,
3524,
62,
35904,
62,
8043,
1600,
366,
9122,
3524,
62,
35904,
62,
8043,
12340,
198,
220,
220,
220,
2922,
8043,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
13564,
62,
9122,
3524,
62,
40616,
62,
8043,
1600,
366,
9122,
3524,
62,
19738,
62,
8043,
12340,
198,
220,
220,
220,
4865,
10394,
28,
15,
11,
279,
4597,
28,
15,
11,
3141,
28,
62,
4598,
62,
9122,
62,
19119,
8,
198,
2502,
13564,
62,
9122,
3524,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
13564,
62,
9122,
3524,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
13564,
62,
9122,
3524,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
2502,
13564,
62,
9122,
3524,
62,
1930,
4943,
58,
16,
12962,
198,
198,
2,
14848,
6822,
3524,
198,
36020,
62,
7785,
796,
2558,
19852,
3419,
198,
36020,
62,
7785,
13,
2617,
7,
11250,
13,
12417,
62,
10414,
62,
27160,
14692,
38235,
62,
292,
62,
36020,
8973,
8,
198,
36020,
62,
9122,
3524,
796,
6822,
16539,
7,
12417,
14535,
11,
2420,
2625,
13313,
355,
14848,
1600,
7885,
28,
36020,
62,
7785,
11,
198,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
9122,
3524,
62,
19738,
62,
8043,
1600,
366,
9122,
3524,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
9122,
3524,
62,
35904,
62,
8043,
1600,
366,
9122,
3524,
62,
35904,
62,
8043,
12340,
198,
220,
220,
220,
2922,
8043,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
9122,
3524,
62,
40616,
62,
8043,
1600,
366,
9122,
3524,
62,
19738,
62,
8043,
12340,
198,
220,
220,
220,
4865,
10394,
28,
15,
11,
279,
4597,
28,
15,
11,
3141,
28,
62,
36020,
62,
9122,
3524,
62,
565,
9484,
8,
198,
36020,
62,
9122,
3524,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
9122,
3524,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
9122,
3524,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
9122,
3524,
62,
1930,
4943,
58,
16,
12962,
198,
198,
36020,
62,
6603,
62,
18242,
796,
36052,
7,
5239,
796,
366,
14478,
25,
33172,
4865,
10394,
796,
513,
11,
9647,
28,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14841,
87,
28,
17,
11,
279,
4597,
28,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10369,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
6603,
62,
18242,
62,
10331,
1600,
366,
18242,
62,
10331,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
6603,
62,
18242,
62,
40616,
62,
8043,
1600,
366,
18242,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
36020,
62,
6603,
62,
18242,
62,
35904,
62,
8043,
1600,
366,
18242,
62,
35904,
62,
8043,
48774,
198,
198,
36020,
62,
6603,
62,
7785,
796,
10903,
19852,
3419,
198,
36020,
62,
6603,
62,
13000,
796,
21617,
7,
12417,
14535,
11,
905,
11639,
9,
3256,
2420,
45286,
28,
36020,
62,
6603,
62,
7785,
8,
198,
62,
36020,
62,
9122,
3524,
62,
565,
9484,
3419,
198,
198,
15388,
62,
7785,
796,
10903,
19852,
3419,
198,
15388,
62,
24011,
672,
1140,
796,
256,
30488,
13,
20575,
672,
1140,
7,
12417,
14535,
11,
2420,
45286,
28,
15388,
62,
7785,
11,
9647,
28,
1959,
8,
198,
2655,
690,
796,
17635,
198,
1640,
1994,
11,
1988,
287,
4566,
13,
1102,
9501,
13,
23814,
33529,
198,
220,
220,
220,
9597,
13,
33295,
7,
8367,
14692,
3672,
62,
12853,
8973,
8,
198,
15388,
62,
24011,
672,
1140,
14692,
27160,
8973,
796,
9597,
198,
15388,
62,
7785,
13,
2617,
7,
11250,
13,
14421,
62,
15388,
62,
12853,
62,
3672,
8,
198,
15388,
62,
24011,
672,
1140,
13,
5219,
7,
17816,
961,
8807,
6,
12962,
198,
15388,
62,
24011,
672,
1140,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
15388,
62,
24011,
672,
1140,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
15388,
62,
24011,
672,
1140,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
15388,
62,
24011,
672,
1140,
62,
1930,
4943,
58,
16,
12962,
198,
15388,
62,
7785,
13,
40546,
7203,
86,
1600,
4808,
3803,
62,
15388,
62,
10414,
8,
198,
198,
19119,
62,
16539,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
4808,
46284,
62,
19119,
8,
198,
198,
2,
28965,
62,
9122,
3524,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
4808,
4598,
62,
9122,
62,
19119,
8,
198,
2,
2502,
81,
1460,
62,
9122,
3524,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
4808,
4598,
62,
9122,
62,
19119,
8,
198,
2,
634,
27554,
62,
9122,
3524,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
4808,
4598,
62,
9122,
62,
19119,
8,
198,
198,
19119,
62,
13376,
796,
10903,
19852,
3419,
198,
19119,
62,
13376,
13,
2617,
7,
45841,
1387,
62,
37153,
13,
13376,
1343,
37082,
77,
17250,
1,
1343,
37082,
77,
15496,
4943,
198,
19119,
62,
13376,
62,
18242,
796,
36052,
7,
12417,
14535,
11,
2420,
45286,
28,
19119,
62,
13376,
11,
198,
220,
220,
220,
9647,
28,
1821,
11,
6001,
28,
19,
11,
18021,
2625,
86,
1600,
198,
220,
220,
220,
12051,
28,
2538,
9792,
11,
4865,
10394,
796,
513,
11,
198,
220,
220,
220,
8259,
796,
35329,
43959,
11,
14841,
87,
28,
17,
11,
279,
4597,
28,
17,
11,
198,
220,
220,
220,
10369,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
13376,
62,
18242,
62,
10331,
1600,
366,
18242,
62,
10331,
12340,
198,
220,
220,
220,
36282,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
13376,
62,
18242,
62,
40616,
62,
8043,
1600,
366,
18242,
62,
40616,
62,
8043,
12340,
198,
220,
220,
220,
4469,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
13376,
62,
18242,
62,
35904,
62,
8043,
1600,
366,
18242,
62,
35904,
62,
8043,
48774,
198,
19119,
62,
13376,
62,
18242,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
13376,
62,
18242,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
13376,
62,
18242,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
19119,
62,
13376,
62,
18242,
62,
1930,
4943,
58,
16,
12962,
198,
198,
33678,
62,
2502,
81,
1460,
62,
16539,
796,
4808,
17953,
62,
18242,
62,
16539,
7203,
38727,
23170,
1460,
492,
1600,
366,
20063,
1600,
10369,
2625,
51,
74,
13847,
278,
23252,
838,
4943,
198,
33678,
62,
2502,
81,
1460,
62,
16539,
13,
5372,
7,
259,
62,
28,
12417,
14535,
11,
198,
220,
220,
220,
18021,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
33678,
62,
2502,
81,
1460,
62,
16539,
62,
3702,
273,
12340,
198,
220,
220,
220,
823,
87,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
33678,
62,
2502,
81,
1460,
62,
16539,
62,
1930,
4943,
58,
15,
4357,
198,
220,
220,
220,
8814,
28,
11250,
13,
1136,
62,
48317,
62,
10414,
7203,
33678,
62,
2502,
81,
1460,
62,
16539,
62,
1930,
4943,
58,
16,
12962,
198,
33678,
62,
2502,
81,
1460,
62,
16539,
13,
21653,
7203,
27,
21864,
12,
16,
29,
1600,
4808,
46284,
62,
33678,
62,
2502,
81,
1460,
8,
198,
198,
62,
9122,
62,
19119,
62,
13376,
3419,
198,
198,
43,
1503,
8264,
62,
37,
35830,
28,
5855,
13414,
67,
2271,
1600,
1105,
8,
198,
35510,
44,
62,
37,
35830,
796,
5855,
39,
32667,
3970,
1600,
838,
8,
198,
12310,
7036,
62,
37,
35830,
796,
5855,
39,
32667,
3970,
1600,
807,
8,
198,
198,
21886,
62,
37,
35830,
796,
5855,
39,
32667,
3970,
1600,
838,
11,
366,
4625,
1370,
4943,
198,
198,
15763,
13,
8499,
7,
1120,
11,
4808,
9122,
62,
1640,
62,
929,
9526,
8,
198,
198,
361,
4566,
13,
12417,
62,
10414,
62,
27160,
14692,
12860,
62,
70,
519,
62,
43917,
1,
5974,
198,
220,
220,
220,
6808,
13,
8499,
7,
1120,
11,
4808,
9122,
62,
1640,
62,
70,
519,
62,
10210,
62,
2539,
8,
198,
198,
361,
4566,
13,
12417,
62,
10414,
62,
27160,
14692,
12860,
62,
4774,
82,
62,
7753,
62,
12924,
929,
19662,
8973,
290,
407,
20081,
13557,
9122,
62,
41299,
3299,
62,
48267,
33529,
198,
220,
220,
220,
6808,
13,
8499,
7,
1120,
11,
4808,
4774,
82,
62,
7753,
62,
12924,
929,
19662,
8,
198,
198,
15763,
13,
26377,
62,
11235,
4668,
7203,
22117,
62,
7206,
2538,
9328,
62,
28929,
3913,
1600,
319,
62,
565,
2752,
8,
198,
198,
15763,
13,
12417,
26268,
3419,
198
] | 2.604889 | 4,991 |
import unittest
from flask import request
from webargs import flaskparser
from tests import factories
from tests.common import ApiBaseTest
from webservices import args
from webservices import rest
from webservices import sorting
from webservices.common import models
| [
11748,
555,
715,
395,
198,
198,
6738,
42903,
1330,
2581,
198,
6738,
3992,
22046,
1330,
42903,
48610,
198,
198,
6738,
5254,
1330,
17590,
198,
6738,
5254,
13,
11321,
1330,
5949,
72,
14881,
14402,
198,
198,
6738,
2639,
712,
1063,
1330,
26498,
198,
6738,
2639,
712,
1063,
1330,
1334,
198,
6738,
2639,
712,
1063,
1330,
29407,
198,
6738,
2639,
712,
1063,
13,
11321,
1330,
4981,
628,
198
] | 4.121212 | 66 |
import pickle
import math
import numpy as np
import pandas as pd
from tqdm import tqdm
df = pickle.load(open('./data/data_6model_offline712_online704_ensemble.pkl','rb'))
train_df = pd.read_csv('./data/train.csv')
IDS = train_df.id.unique()
dic_off_map = df[['id','offset_mapping']].set_index('id')['offset_mapping'].to_dict()
dic_txt = df[['id','text']].set_index('id')['text'].to_dict()
config = CONFIG()
id2label = {0:'Lead', 1:'Position', 2:'Evidence', 3:'Claim', 4:'Concluding Statement',
5:'Counterclaim', 6:'Rebuttal', 7:'blank'}
label2id = {v:k for k,v in id2label.items()}
preds1_mean = {}
preds2_mean = {}
for irow,row in df.iterrows():
t1, t2 = change_label(row.pred)
preds1_mean[row.id] = t1
preds2_mean[row.id] = t2
all_predictions = []
recall_thre = {
"Lead": 0.06,
"Position": 0.05,
"Evidence": 0.06,
"Claim": 0.05,
"Concluding Statement": 0.06,
"Counterclaim": 0.02,
"Rebuttal": 0.015,
}
# recall sample
for id in tqdm(preds1_mean):
pred1_np = np.array(preds1_mean[id])
pred2_np_all = np.array(preds2_mean[id])
off_map = dic_off_map[id]
off_map_len = len(off_map) if off_map[-1][1] != 0 else len(off_map)-1
max_length = min(config.max_length, off_map_len)
for class_num in range(7):
thre = recall_thre[id2label[class_num]]
pred2_np = pred2_np_all[:, class_num]
i_start = 0
while i_start < max_length:
i = 0
if pred1_np[i_start] > thre and pred2_np[i_start:i_start+10].max() > thre: #ๅผๅคด ไธคไธช้ๅผ
i = i_start + 1
if i>=max_length: break
while pred1_np[i] < (1-thre) and pred2_np[i:i+10].max() > thre: # ๆฏๅฆ็ปๆ ไธคไธช้ๅผ
cond = any([
i+1==max_length,
pred1_np[i] > thre,
i+1<max_length and pred2_np[i] < 0.7 and pred2_np[i] - pred2_np[i+1] > thre
])
if i>i_start+1 and cond:
all_predictions.append((id, id2label[class_num], [i_start, i]))
i += 1
if i>=max_length: break
if i != 0:
if i == max_length:
i -=1
all_predictions.append((id, id2label[class_num], [i_start, i]))
i_start += 1
print(len(all_predictions))
valid_pred = pd.DataFrame(all_predictions, columns=['id', 'class', 'pos'])
predictionstring = []
for cache in tqdm(valid_pred.values):
id = cache[0]
pos = cache[2]
off_map = dic_off_map[id]
txt = dic_txt[id]
txt_max = len(txt.split())
start_word = len(txt[:off_map[pos[0]][0]].split())
L = len(txt[off_map[pos[0]][0]:off_map[pos[1]][1]].split())
end_word = min(txt_max, start_word+L) - 1
predictionstring.append((start_word, end_word))
valid_pred['predictionstring'] = predictionstring
L_k = {
"Evidence": 0.85,
"Rebuttal": 0.6,
}
# select sample with high boundary threshold and choice 65% length with the highest probability of the current class as a new sample
valid_pred = deal_predictionstring(valid_pred)
valid_oof = train_df.copy()
tmp = valid_oof.predictionstring.map(lambda x:x.split())
tmp1 = [(int(x[0]),int(x[-1])) for x in tmp]
valid_oof['predictionstring'] = tmp1
def calc_overlap(row):
"""
Calculates the overlap between prediction and
ground truth and overlap percentages used for determining
true positives.
"""
try:
start_pred, end_pred = row.predictionstring_pred
start_gt, end_gt = row.predictionstring_gt
except:
return [0,0]
# Length of each and intersection
len_gt = end_gt - start_gt + 1
len_pred = end_pred - start_pred + 1
inter = min(end_pred, end_gt) - max(start_pred, start_gt) + 1
overlap_1 = inter / (len_gt+1e-5)
overlap_2 = inter / (len_pred+1e-5)
return [overlap_1, overlap_2]
gt_df = (
valid_oof[["id", "discourse_type", "predictionstring"]]
.reset_index(drop=True)
.copy()
)
pred_df = valid_pred[["id", "class", "predictionstring"]].reset_index(drop=True).copy()
pred_df["pred_id"] = pred_df.index
gt_df["gt_id"] = gt_df.index
# Step 1. all ground truths and predictions for a given class are compared.
joined = pred_df.merge(
gt_df,
left_on=["id", "class"],
right_on=["id", "discourse_type"],
how="outer",
suffixes=("_pred", "_gt"),
)
joined["predictionstring_gt"] = joined["predictionstring_gt"].fillna(" ")
joined["predictionstring_pred"] = joined["predictionstring_pred"].fillna(" ")
joined["overlaps"] = joined.apply(calc_overlap, axis=1)
joined["overlap1"] = joined["overlaps"].apply(lambda x: eval(str(x))[0])
joined["overlap2"] = joined["overlaps"].apply(lambda x: eval(str(x))[1])
joined["potential_TP"] = (joined["overlap1"] >= 0.5) & (joined["overlap2"] >= 0.5)
joined["max_overlap"] = joined[["overlap1", "overlap2"]].max(axis=1)
joined["min_overlap"] = joined[["overlap1", "overlap2"]].min(axis=1)
valid_pred['label'] = 0
valid_true_id = joined[joined.potential_TP==True]['pred_id']
valid_pred.loc[valid_true_id, 'label'] = 1
overlap = joined[['pred_id', 'min_overlap']]
overlap = overlap[~ overlap.pred_id.isna()]
overlap = overlap.groupby('pred_id')['min_overlap'].max().reset_index()
valid_pred = valid_pred.merge(overlap, left_index=True, right_on='pred_id', how='left')
valid_pred = valid_pred.drop('pred_id',axis=1)
pickle.dump(valid_pred, open('./data/recall_data.pkl','wb+')) | [
11748,
2298,
293,
198,
11748,
10688,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
198,
198,
7568,
796,
2298,
293,
13,
2220,
7,
9654,
7,
4458,
14,
7890,
14,
7890,
62,
21,
19849,
62,
2364,
1370,
49517,
62,
25119,
32869,
62,
1072,
11306,
13,
79,
41582,
41707,
26145,
6,
4008,
198,
198,
27432,
62,
7568,
796,
279,
67,
13,
961,
62,
40664,
7,
4458,
14,
7890,
14,
27432,
13,
40664,
11537,
198,
14255,
796,
4512,
62,
7568,
13,
312,
13,
34642,
3419,
198,
198,
67,
291,
62,
2364,
62,
8899,
796,
47764,
58,
17816,
312,
41707,
28968,
62,
76,
5912,
20520,
4083,
2617,
62,
9630,
10786,
312,
11537,
17816,
28968,
62,
76,
5912,
6,
4083,
1462,
62,
11600,
3419,
198,
67,
291,
62,
14116,
796,
47764,
58,
17816,
312,
41707,
5239,
20520,
4083,
2617,
62,
9630,
10786,
312,
11537,
17816,
5239,
6,
4083,
1462,
62,
11600,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
11250,
796,
25626,
3419,
198,
198,
312,
17,
18242,
796,
1391,
15,
32105,
20451,
3256,
352,
32105,
26545,
3256,
362,
32105,
46785,
3256,
513,
32105,
44819,
3256,
604,
32105,
3103,
6360,
21983,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
642,
32105,
31694,
6604,
3256,
718,
32105,
28951,
15318,
282,
3256,
767,
32105,
27190,
6,
92,
198,
18242,
17,
312,
796,
1391,
85,
25,
74,
329,
479,
11,
85,
287,
4686,
17,
18242,
13,
23814,
3419,
92,
198,
198,
28764,
82,
16,
62,
32604,
796,
23884,
198,
28764,
82,
17,
62,
32604,
796,
23884,
198,
1640,
1312,
808,
11,
808,
287,
47764,
13,
2676,
8516,
33529,
198,
220,
220,
220,
256,
16,
11,
256,
17,
796,
1487,
62,
18242,
7,
808,
13,
28764,
8,
198,
220,
220,
220,
2747,
82,
16,
62,
32604,
58,
808,
13,
312,
60,
796,
256,
16,
198,
220,
220,
220,
2747,
82,
17,
62,
32604,
58,
808,
13,
312,
60,
796,
256,
17,
198,
198,
439,
62,
28764,
9278,
796,
17635,
198,
198,
8344,
439,
62,
400,
260,
796,
1391,
220,
198,
220,
220,
220,
366,
20451,
1298,
657,
13,
3312,
11,
198,
220,
220,
220,
366,
26545,
1298,
657,
13,
2713,
11,
198,
220,
220,
220,
366,
46785,
1298,
657,
13,
3312,
11,
198,
220,
220,
220,
366,
44819,
1298,
657,
13,
2713,
11,
198,
220,
220,
220,
366,
3103,
6360,
21983,
1298,
657,
13,
3312,
11,
198,
220,
220,
220,
366,
31694,
6604,
1298,
657,
13,
2999,
11,
198,
220,
220,
220,
366,
28951,
15318,
282,
1298,
657,
13,
25150,
11,
198,
92,
198,
198,
2,
10014,
6291,
198,
1640,
4686,
287,
256,
80,
36020,
7,
28764,
82,
16,
62,
32604,
2599,
628,
220,
220,
220,
2747,
16,
62,
37659,
796,
45941,
13,
18747,
7,
28764,
82,
16,
62,
32604,
58,
312,
12962,
198,
220,
220,
220,
2747,
17,
62,
37659,
62,
439,
796,
45941,
13,
18747,
7,
28764,
82,
17,
62,
32604,
58,
312,
12962,
628,
220,
220,
220,
572,
62,
8899,
796,
288,
291,
62,
2364,
62,
8899,
58,
312,
60,
198,
220,
220,
220,
572,
62,
8899,
62,
11925,
796,
18896,
7,
2364,
62,
8899,
8,
611,
572,
62,
8899,
58,
12,
16,
7131,
16,
60,
14512,
657,
2073,
18896,
7,
2364,
62,
8899,
13219,
16,
198,
220,
220,
220,
3509,
62,
13664,
796,
949,
7,
11250,
13,
9806,
62,
13664,
11,
572,
62,
8899,
62,
11925,
8,
198,
220,
220,
220,
329,
1398,
62,
22510,
287,
2837,
7,
22,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
294,
260,
796,
10014,
62,
400,
260,
58,
312,
17,
18242,
58,
4871,
62,
22510,
11907,
198,
220,
220,
220,
220,
220,
220,
220,
2747,
17,
62,
37659,
796,
2747,
17,
62,
37659,
62,
439,
58,
45299,
1398,
62,
22510,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
9688,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
981,
1312,
62,
9688,
1279,
3509,
62,
13664,
25,
198,
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,
611,
2747,
16,
62,
37659,
58,
72,
62,
9688,
60,
1875,
294,
260,
290,
2747,
17,
62,
37659,
58,
72,
62,
9688,
25,
72,
62,
9688,
10,
940,
4083,
9806,
3419,
1875,
294,
260,
25,
1303,
28156,
222,
13783,
112,
220,
10310,
97,
10310,
103,
165,
246,
230,
161,
222,
120,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
1312,
62,
9688,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
29,
28,
9806,
62,
13664,
25,
2270,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
2747,
16,
62,
37659,
58,
72,
60,
1279,
357,
16,
12,
400,
260,
8,
290,
2747,
17,
62,
37659,
58,
72,
25,
72,
10,
940,
4083,
9806,
3419,
1875,
294,
260,
25,
1303,
10545,
246,
107,
28938,
99,
163,
119,
241,
30266,
253,
220,
10310,
97,
10310,
103,
165,
246,
230,
161,
222,
120,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1779,
796,
597,
26933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
10,
16,
855,
9806,
62,
13664,
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,
2747,
16,
62,
37659,
58,
72,
60,
1875,
294,
260,
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,
1312,
10,
16,
27,
9806,
62,
13664,
290,
2747,
17,
62,
37659,
58,
72,
60,
1279,
657,
13,
22,
290,
2747,
17,
62,
37659,
58,
72,
60,
532,
2747,
17,
62,
37659,
58,
72,
10,
16,
60,
1875,
294,
260,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33761,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
29,
72,
62,
9688,
10,
16,
290,
1779,
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,
477,
62,
28764,
9278,
13,
33295,
19510,
312,
11,
4686,
17,
18242,
58,
4871,
62,
22510,
4357,
685,
72,
62,
9688,
11,
1312,
60,
4008,
198,
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,
611,
1312,
29,
28,
9806,
62,
13664,
25,
2270,
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,
1312,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1312,
6624,
3509,
62,
13664,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
48185,
16,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
28764,
9278,
13,
33295,
19510,
312,
11,
4686,
17,
18242,
58,
4871,
62,
22510,
4357,
685,
72,
62,
9688,
11,
1312,
60,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
9688,
15853,
352,
198,
198,
4798,
7,
11925,
7,
439,
62,
28764,
9278,
4008,
198,
12102,
62,
28764,
796,
279,
67,
13,
6601,
19778,
7,
439,
62,
28764,
9278,
11,
15180,
28,
17816,
312,
3256,
705,
4871,
3256,
705,
1930,
6,
12962,
198,
198,
28764,
2867,
8841,
796,
17635,
198,
1640,
12940,
287,
256,
80,
36020,
7,
12102,
62,
28764,
13,
27160,
2599,
198,
220,
220,
220,
4686,
796,
12940,
58,
15,
60,
198,
220,
220,
220,
1426,
796,
12940,
58,
17,
60,
198,
220,
220,
220,
572,
62,
8899,
796,
288,
291,
62,
2364,
62,
8899,
58,
312,
60,
198,
220,
220,
220,
256,
742,
796,
288,
291,
62,
14116,
58,
312,
60,
198,
220,
220,
220,
256,
742,
62,
9806,
796,
18896,
7,
14116,
13,
35312,
28955,
198,
220,
220,
220,
220,
198,
220,
220,
220,
923,
62,
4775,
796,
18896,
7,
14116,
58,
25,
2364,
62,
8899,
58,
1930,
58,
15,
60,
7131,
15,
60,
4083,
35312,
28955,
198,
220,
220,
220,
220,
198,
220,
220,
220,
406,
796,
18896,
7,
14116,
58,
2364,
62,
8899,
58,
1930,
58,
15,
60,
7131,
15,
5974,
2364,
62,
8899,
58,
1930,
58,
16,
60,
7131,
16,
60,
4083,
35312,
28955,
198,
220,
220,
220,
886,
62,
4775,
796,
949,
7,
14116,
62,
9806,
11,
923,
62,
4775,
10,
43,
8,
532,
352,
198,
220,
220,
220,
220,
198,
220,
220,
220,
17724,
8841,
13,
33295,
19510,
9688,
62,
4775,
11,
886,
62,
4775,
4008,
198,
220,
220,
220,
220,
198,
12102,
62,
28764,
17816,
28764,
2867,
8841,
20520,
796,
17724,
8841,
628,
198,
43,
62,
74,
796,
1391,
198,
220,
220,
220,
366,
46785,
1298,
657,
13,
5332,
11,
198,
220,
220,
220,
366,
28951,
15318,
282,
1298,
657,
13,
21,
11,
198,
92,
198,
198,
2,
2922,
6291,
351,
1029,
18645,
11387,
290,
3572,
6135,
4,
4129,
351,
262,
4511,
12867,
286,
262,
1459,
1398,
355,
257,
649,
6291,
628,
198,
12102,
62,
28764,
796,
1730,
62,
28764,
2867,
8841,
7,
12102,
62,
28764,
8,
198,
12102,
62,
37711,
796,
4512,
62,
7568,
13,
30073,
3419,
198,
22065,
796,
4938,
62,
37711,
13,
28764,
2867,
8841,
13,
8899,
7,
50033,
2124,
25,
87,
13,
35312,
28955,
198,
22065,
16,
796,
47527,
600,
7,
87,
58,
15,
46570,
600,
7,
87,
58,
12,
16,
60,
4008,
329,
2124,
287,
45218,
60,
198,
12102,
62,
37711,
17816,
28764,
2867,
8841,
20520,
796,
45218,
16,
198,
198,
4299,
42302,
62,
2502,
37796,
7,
808,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
27131,
689,
262,
21721,
1022,
17724,
290,
198,
220,
220,
220,
2323,
3872,
290,
21721,
28071,
973,
329,
13213,
198,
220,
220,
220,
2081,
38548,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
923,
62,
28764,
11,
886,
62,
28764,
796,
5752,
13,
28764,
2867,
8841,
62,
28764,
198,
220,
220,
220,
220,
220,
220,
220,
923,
62,
13655,
11,
886,
62,
13655,
796,
5752,
13,
28764,
2867,
8841,
62,
13655,
198,
220,
220,
220,
2845,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
685,
15,
11,
15,
60,
628,
220,
220,
220,
1303,
22313,
286,
1123,
290,
16246,
198,
220,
220,
220,
18896,
62,
13655,
796,
886,
62,
13655,
532,
923,
62,
13655,
1343,
352,
198,
220,
220,
220,
18896,
62,
28764,
796,
886,
62,
28764,
532,
923,
62,
28764,
1343,
352,
198,
220,
220,
220,
987,
796,
949,
7,
437,
62,
28764,
11,
886,
62,
13655,
8,
532,
3509,
7,
9688,
62,
28764,
11,
923,
62,
13655,
8,
1343,
352,
198,
220,
220,
220,
21721,
62,
16,
796,
987,
1220,
357,
11925,
62,
13655,
10,
16,
68,
12,
20,
8,
198,
220,
220,
220,
21721,
62,
17,
796,
987,
1220,
357,
11925,
62,
28764,
10,
16,
68,
12,
20,
8,
198,
220,
220,
220,
1441,
685,
2502,
37796,
62,
16,
11,
21721,
62,
17,
60,
628,
198,
13655,
62,
7568,
796,
357,
198,
220,
220,
220,
4938,
62,
37711,
58,
14692,
312,
1600,
366,
15410,
9047,
62,
4906,
1600,
366,
28764,
2867,
8841,
8973,
60,
198,
220,
220,
220,
764,
42503,
62,
9630,
7,
14781,
28,
17821,
8,
198,
220,
220,
220,
764,
30073,
3419,
198,
8,
198,
28764,
62,
7568,
796,
4938,
62,
28764,
58,
14692,
312,
1600,
366,
4871,
1600,
366,
28764,
2867,
8841,
8973,
4083,
42503,
62,
9630,
7,
14781,
28,
17821,
737,
30073,
3419,
198,
28764,
62,
7568,
14692,
28764,
62,
312,
8973,
796,
2747,
62,
7568,
13,
9630,
198,
13655,
62,
7568,
14692,
13655,
62,
312,
8973,
796,
308,
83,
62,
7568,
13,
9630,
198,
2,
5012,
352,
13,
477,
2323,
24279,
290,
16277,
329,
257,
1813,
1398,
389,
3688,
13,
198,
46416,
796,
2747,
62,
7568,
13,
647,
469,
7,
198,
220,
220,
220,
308,
83,
62,
7568,
11,
198,
220,
220,
220,
1364,
62,
261,
28,
14692,
312,
1600,
366,
4871,
33116,
198,
220,
220,
220,
826,
62,
261,
28,
14692,
312,
1600,
366,
15410,
9047,
62,
4906,
33116,
198,
220,
220,
220,
703,
2625,
39605,
1600,
198,
220,
220,
220,
35488,
274,
28,
7203,
62,
28764,
1600,
45434,
13655,
12340,
198,
8,
198,
46416,
14692,
28764,
2867,
8841,
62,
13655,
8973,
796,
5399,
14692,
28764,
2867,
8841,
62,
13655,
1,
4083,
20797,
2616,
7203,
366,
8,
198,
46416,
14692,
28764,
2867,
8841,
62,
28764,
8973,
796,
5399,
14692,
28764,
2867,
8841,
62,
28764,
1,
4083,
20797,
2616,
7203,
366,
8,
198,
198,
46416,
14692,
2502,
75,
1686,
8973,
796,
5399,
13,
39014,
7,
9948,
66,
62,
2502,
37796,
11,
16488,
28,
16,
8,
198,
46416,
14692,
2502,
37796,
16,
8973,
796,
5399,
14692,
2502,
75,
1686,
1,
4083,
39014,
7,
50033,
2124,
25,
5418,
7,
2536,
7,
87,
4008,
58,
15,
12962,
198,
46416,
14692,
2502,
37796,
17,
8973,
796,
5399,
14692,
2502,
75,
1686,
1,
4083,
39014,
7,
50033,
2124,
25,
5418,
7,
2536,
7,
87,
4008,
58,
16,
12962,
198,
198,
46416,
14692,
13059,
1843,
62,
7250,
8973,
796,
357,
46416,
14692,
2502,
37796,
16,
8973,
18189,
657,
13,
20,
8,
1222,
357,
46416,
14692,
2502,
37796,
17,
8973,
18189,
657,
13,
20,
8,
198,
46416,
14692,
9806,
62,
2502,
37796,
8973,
796,
5399,
58,
14692,
2502,
37796,
16,
1600,
366,
2502,
37796,
17,
8973,
4083,
9806,
7,
22704,
28,
16,
8,
198,
46416,
14692,
1084,
62,
2502,
37796,
8973,
796,
5399,
58,
14692,
2502,
37796,
16,
1600,
366,
2502,
37796,
17,
8973,
4083,
1084,
7,
22704,
28,
16,
8,
198,
198,
12102,
62,
28764,
17816,
18242,
20520,
796,
657,
198,
12102,
62,
7942,
62,
312,
796,
5399,
58,
46416,
13,
13059,
1843,
62,
7250,
855,
17821,
7131,
6,
28764,
62,
312,
20520,
198,
198,
12102,
62,
28764,
13,
17946,
58,
12102,
62,
7942,
62,
312,
11,
705,
18242,
20520,
796,
352,
198,
198,
2502,
37796,
796,
5399,
58,
17816,
28764,
62,
312,
3256,
705,
1084,
62,
2502,
37796,
6,
11907,
198,
2502,
37796,
796,
21721,
58,
93,
21721,
13,
28764,
62,
312,
13,
271,
2616,
3419,
60,
198,
2502,
37796,
796,
21721,
13,
8094,
1525,
10786,
28764,
62,
312,
11537,
17816,
1084,
62,
2502,
37796,
6,
4083,
9806,
22446,
42503,
62,
9630,
3419,
198,
198,
12102,
62,
28764,
796,
4938,
62,
28764,
13,
647,
469,
7,
2502,
37796,
11,
1364,
62,
9630,
28,
17821,
11,
826,
62,
261,
11639,
28764,
62,
312,
3256,
703,
11639,
9464,
11537,
198,
12102,
62,
28764,
796,
4938,
62,
28764,
13,
14781,
10786,
28764,
62,
312,
3256,
22704,
28,
16,
8,
198,
198,
27729,
293,
13,
39455,
7,
12102,
62,
28764,
11,
1280,
7,
4458,
14,
7890,
14,
8344,
439,
62,
7890,
13,
79,
41582,
41707,
39346,
10,
6,
4008
] | 2.13993 | 2,587 |
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida-core #
# For further information on the license, see the LICENSE.txt file #
# For further information please visit http://www.aiida.net #
###########################################################################
# pylint: disable=too-many-arguments,import-error,too-many-locals
"""`verdi export` command."""
import click
import tabulate
from aiida.cmdline.commands.cmd_verdi import verdi
from aiida.cmdline.params import arguments
from aiida.cmdline.params import options
from aiida.cmdline.utils import decorators
from aiida.cmdline.utils import echo
from aiida.common.links import GraphTraversalRules
@verdi.group('export')
def verdi_export():
"""Create and manage export archives."""
@verdi_export.command('inspect')
@click.argument('archive', nargs=1, type=click.Path(exists=True, readable=True))
@click.option('-v', '--version', is_flag=True, help='Print the archive format version and exit.')
@click.option('-d', '--data', is_flag=True, help='Print the data contents and exit.')
@click.option('-m', '--meta-data', is_flag=True, help='Print the meta data contents and exit.')
def inspect(archive, version, data, meta_data):
"""Inspect contents of an exported archive without importing it.
By default a summary of the archive contents will be printed. The various options can be used to change exactly what
information is displayed.
.. deprecated:: 1.5.0
Support for the --data flag
"""
import dataclasses
from aiida.tools.importexport import CorruptArchive, detect_archive_type, get_reader
reader_cls = get_reader(detect_archive_type(archive))
with reader_cls(archive) as reader:
try:
if version:
echo.echo(reader.export_version)
elif data:
# data is an internal implementation detail
echo.echo_deprecated('--data is deprecated and will be removed in v2.0.0')
echo.echo_dictionary(reader._get_data()) # pylint: disable=protected-access
elif meta_data:
echo.echo_dictionary(dataclasses.asdict(reader.metadata))
else:
statistics = {
'Version aiida': reader.metadata.aiida_version,
'Version format': reader.metadata.export_version,
'Computers': reader.entity_count('Computer'),
'Groups': reader.entity_count('Group'),
'Links': reader.link_count,
'Nodes': reader.entity_count('Node'),
'Users': reader.entity_count('User'),
}
if reader.metadata.conversion_info:
statistics['Conversion info'] = '\n'.join(reader.metadata.conversion_info)
echo.echo(tabulate.tabulate(statistics.items()))
except CorruptArchive as exception:
echo.echo_critical(f'corrupt archive: {exception}')
@verdi_export.command('create')
@arguments.OUTPUT_FILE(type=click.Path(exists=False))
@options.CODES()
@options.COMPUTERS()
@options.GROUPS()
@options.NODES()
@options.ARCHIVE_FORMAT()
@options.FORCE(help='overwrite output file if it already exists')
@click.option(
'-v',
'--verbosity',
default='INFO',
type=click.Choice(['DEBUG', 'INFO', 'WARNING', 'CRITICAL']),
help='Control the verbosity of console logging'
)
@options.graph_traversal_rules(GraphTraversalRules.EXPORT.value)
@click.option(
'--include-logs/--exclude-logs',
default=True,
show_default=True,
help='Include or exclude logs for node(s) in export.'
)
@click.option(
'--include-comments/--exclude-comments',
default=True,
show_default=True,
help='Include or exclude comments for node(s) in export. (Will also export extra users who commented).'
)
@decorators.with_dbenv()
def create(
output_file, codes, computers, groups, nodes, archive_format, force, input_calc_forward, input_work_forward,
create_backward, return_backward, call_calc_backward, call_work_backward, include_comments, include_logs, verbosity
):
"""
Export subsets of the provenance graph to file for sharing.
Besides Nodes of the provenance graph, you can export Groups, Codes, Computers, Comments and Logs.
By default, the archive file will include not only the entities explicitly provided via the command line but also
their provenance, according to the rules outlined in the documentation.
You can modify some of those rules using options of this command.
"""
from aiida.common.log import override_log_formatter_context
from aiida.common.progress_reporter import set_progress_bar_tqdm, set_progress_reporter
from aiida.tools.importexport import export, ExportFileFormat, EXPORT_LOGGER
from aiida.tools.importexport.common.exceptions import ArchiveExportError
entities = []
if codes:
entities.extend(codes)
if computers:
entities.extend(computers)
if groups:
entities.extend(groups)
if nodes:
entities.extend(nodes)
kwargs = {
'input_calc_forward': input_calc_forward,
'input_work_forward': input_work_forward,
'create_backward': create_backward,
'return_backward': return_backward,
'call_calc_backward': call_calc_backward,
'call_work_backward': call_work_backward,
'include_comments': include_comments,
'include_logs': include_logs,
'overwrite': force
}
if archive_format == 'zip':
export_format = ExportFileFormat.ZIP
kwargs.update({'use_compression': True})
elif archive_format == 'zip-uncompressed':
export_format = ExportFileFormat.ZIP
kwargs.update({'use_compression': False})
elif archive_format == 'tar.gz':
export_format = ExportFileFormat.TAR_GZIPPED
if verbosity in ['DEBUG', 'INFO']:
set_progress_bar_tqdm(leave=(verbosity == 'DEBUG'))
else:
set_progress_reporter(None)
EXPORT_LOGGER.setLevel(verbosity)
try:
with override_log_formatter_context('%(message)s'):
export(entities, filename=output_file, file_format=export_format, **kwargs)
except ArchiveExportError as exception:
echo.echo_critical(f'failed to write the archive file. Exception: {exception}')
else:
echo.echo_success(f'wrote the export archive file to {output_file}')
@verdi_export.command('migrate')
@arguments.INPUT_FILE()
@arguments.OUTPUT_FILE(required=False)
@options.ARCHIVE_FORMAT()
@options.FORCE(help='overwrite output file if it already exists')
@click.option('-i', '--in-place', is_flag=True, help='Migrate the archive in place, overwriting the original file.')
@options.SILENT()
@click.option(
'-v',
'--version',
type=click.STRING,
required=False,
metavar='VERSION',
# Note: Adding aiida.tools.EXPORT_VERSION as a default value explicitly would result in a slow import of
# aiida.tools and, as a consequence, aiida.orm. As long as this is the case, better determine the latest export
# version inside the function when needed.
help='Archive format version to migrate to (defaults to latest version).',
)
@click.option(
'--verbosity',
default='INFO',
type=click.Choice(['DEBUG', 'INFO', 'WARNING', 'CRITICAL']),
help='Control the verbosity of console logging'
)
def migrate(input_file, output_file, force, silent, in_place, archive_format, version, verbosity):
"""Migrate an export archive to a more recent format version.
.. deprecated:: 1.5.0
Support for the --silent flag, replaced by --verbosity
"""
from aiida.common.log import override_log_formatter_context
from aiida.common.progress_reporter import set_progress_bar_tqdm, set_progress_reporter
from aiida.tools.importexport import detect_archive_type, EXPORT_VERSION
from aiida.tools.importexport.archive.migrators import get_migrator, MIGRATE_LOGGER
if silent is True:
echo.echo_deprecated('the --silent option is deprecated, use --verbosity')
if in_place:
if output_file:
echo.echo_critical('output file specified together with --in-place flag')
output_file = input_file
force = True
elif not output_file:
echo.echo_critical(
'no output file specified. Please add --in-place flag if you would like to migrate in place.'
)
if verbosity in ['DEBUG', 'INFO']:
set_progress_bar_tqdm(leave=(verbosity == 'DEBUG'))
else:
set_progress_reporter(None)
MIGRATE_LOGGER.setLevel(verbosity)
if version is None:
version = EXPORT_VERSION
migrator_cls = get_migrator(detect_archive_type(input_file))
migrator = migrator_cls(input_file)
try:
with override_log_formatter_context('%(message)s'):
migrator.migrate(version, output_file, force=force, out_compression=archive_format)
except Exception as error: # pylint: disable=broad-except
if verbosity == 'DEBUG':
raise
echo.echo_critical(f'failed to migrate the archive file (use `--verbosity DEBUG` to see traceback): {error}')
if verbosity in ['DEBUG', 'INFO']:
echo.echo_success(f'migrated the archive to version {version}')
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
29113,
29113,
7804,
21017,
198,
2,
15069,
357,
66,
828,
383,
317,
4178,
5631,
1074,
13,
1439,
2489,
10395,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
2,
770,
2393,
318,
636,
286,
262,
317,
4178,
5631,
2438,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
2,
383,
2438,
318,
12007,
319,
21722,
379,
3740,
1378,
12567,
13,
785,
14,
1872,
20540,
321,
14,
1872,
3755,
12,
7295,
1303,
198,
2,
1114,
2252,
1321,
319,
262,
5964,
11,
766,
262,
38559,
24290,
13,
14116,
2393,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
2,
1114,
2252,
1321,
3387,
3187,
2638,
1378,
2503,
13,
1872,
3755,
13,
3262,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
198,
29113,
29113,
7804,
21017,
198,
2,
279,
2645,
600,
25,
15560,
28,
18820,
12,
21834,
12,
853,
2886,
11,
11748,
12,
18224,
11,
18820,
12,
21834,
12,
17946,
874,
198,
37811,
63,
332,
10989,
10784,
63,
3141,
526,
15931,
198,
11748,
3904,
198,
11748,
7400,
5039,
198,
198,
6738,
257,
72,
3755,
13,
28758,
1370,
13,
9503,
1746,
13,
28758,
62,
332,
10989,
1330,
3326,
10989,
198,
6738,
257,
72,
3755,
13,
28758,
1370,
13,
37266,
1330,
7159,
198,
6738,
257,
72,
3755,
13,
28758,
1370,
13,
37266,
1330,
3689,
198,
6738,
257,
72,
3755,
13,
28758,
1370,
13,
26791,
1330,
11705,
2024,
198,
6738,
257,
72,
3755,
13,
28758,
1370,
13,
26791,
1330,
9809,
198,
6738,
257,
72,
3755,
13,
11321,
13,
28751,
1330,
29681,
15721,
690,
282,
37766,
628,
198,
31,
332,
10989,
13,
8094,
10786,
39344,
11537,
198,
4299,
3326,
10989,
62,
39344,
33529,
198,
220,
220,
220,
37227,
16447,
290,
6687,
10784,
22415,
526,
15931,
628,
198,
31,
332,
10989,
62,
39344,
13,
21812,
10786,
1040,
806,
11537,
198,
31,
12976,
13,
49140,
10786,
17474,
3256,
299,
22046,
28,
16,
11,
2099,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
17821,
11,
31744,
28,
17821,
4008,
198,
31,
12976,
13,
18076,
10786,
12,
85,
3256,
705,
438,
9641,
3256,
318,
62,
32109,
28,
17821,
11,
1037,
11639,
18557,
262,
15424,
5794,
2196,
290,
8420,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
67,
3256,
705,
438,
7890,
3256,
318,
62,
32109,
28,
17821,
11,
1037,
11639,
18557,
262,
1366,
10154,
290,
8420,
2637,
8,
198,
31,
12976,
13,
18076,
10786,
12,
76,
3256,
705,
438,
28961,
12,
7890,
3256,
318,
62,
32109,
28,
17821,
11,
1037,
11639,
18557,
262,
13634,
1366,
10154,
290,
8420,
2637,
8,
198,
4299,
10104,
7,
17474,
11,
2196,
11,
1366,
11,
13634,
62,
7890,
2599,
198,
220,
220,
220,
37227,
818,
4443,
10154,
286,
281,
29050,
15424,
1231,
33332,
340,
13,
628,
220,
220,
220,
2750,
4277,
257,
10638,
286,
262,
15424,
10154,
481,
307,
10398,
13,
383,
2972,
3689,
460,
307,
973,
284,
1487,
3446,
644,
198,
220,
220,
220,
1321,
318,
9066,
13,
628,
220,
220,
220,
11485,
39224,
3712,
352,
13,
20,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
7929,
329,
262,
1377,
7890,
6056,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
1330,
4818,
330,
28958,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
31391,
13,
11748,
39344,
1330,
2744,
3622,
19895,
425,
11,
4886,
62,
17474,
62,
4906,
11,
651,
62,
46862,
628,
220,
220,
220,
9173,
62,
565,
82,
796,
651,
62,
46862,
7,
15255,
478,
62,
17474,
62,
4906,
7,
17474,
4008,
628,
220,
220,
220,
351,
9173,
62,
565,
82,
7,
17474,
8,
355,
9173,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2196,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
7,
46862,
13,
39344,
62,
9641,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1366,
318,
281,
5387,
7822,
3703,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
10378,
31023,
10786,
438,
7890,
318,
39224,
290,
481,
307,
4615,
287,
410,
17,
13,
15,
13,
15,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
67,
14188,
7,
46862,
13557,
1136,
62,
7890,
28955,
220,
1303,
279,
2645,
600,
25,
15560,
28,
24326,
12,
15526,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
13634,
62,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
67,
14188,
7,
19608,
330,
28958,
13,
292,
11600,
7,
46862,
13,
38993,
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,
7869,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14815,
257,
72,
3755,
10354,
9173,
13,
38993,
13,
1872,
3755,
62,
9641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14815,
5794,
10354,
9173,
13,
38993,
13,
39344,
62,
9641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
5377,
41510,
10354,
9173,
13,
26858,
62,
9127,
10786,
34556,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
38,
14459,
10354,
9173,
13,
26858,
62,
9127,
10786,
13247,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
31815,
10354,
9173,
13,
8726,
62,
9127,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
45,
4147,
10354,
9173,
13,
26858,
62,
9127,
10786,
19667,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14490,
10354,
9173,
13,
26858,
62,
9127,
10786,
12982,
33809,
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,
220,
220,
220,
220,
611,
9173,
13,
38993,
13,
1102,
9641,
62,
10951,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7869,
17816,
3103,
9641,
7508,
20520,
796,
705,
59,
77,
4458,
22179,
7,
46862,
13,
38993,
13,
1102,
9641,
62,
10951,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
7,
8658,
5039,
13,
8658,
5039,
7,
14269,
3969,
13,
23814,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
2744,
3622,
19895,
425,
355,
6631,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
34666,
7,
69,
6,
10215,
3622,
15424,
25,
1391,
1069,
4516,
92,
11537,
628,
198,
31,
332,
10989,
62,
39344,
13,
21812,
10786,
17953,
11537,
198,
31,
853,
2886,
13,
2606,
7250,
3843,
62,
25664,
7,
4906,
28,
12976,
13,
15235,
7,
1069,
1023,
28,
25101,
4008,
198,
31,
25811,
13,
34,
3727,
1546,
3419,
198,
31,
25811,
13,
9858,
47,
14974,
3419,
198,
31,
25811,
13,
10761,
2606,
3705,
3419,
198,
31,
25811,
13,
45,
3727,
1546,
3419,
198,
31,
25811,
13,
31315,
9306,
62,
21389,
1404,
3419,
198,
31,
25811,
13,
13775,
5222,
7,
16794,
11639,
2502,
13564,
5072,
2393,
611,
340,
1541,
7160,
11537,
198,
31,
12976,
13,
18076,
7,
198,
220,
220,
220,
705,
12,
85,
3256,
198,
220,
220,
220,
705,
438,
19011,
16579,
3256,
198,
220,
220,
220,
4277,
11639,
10778,
3256,
198,
220,
220,
220,
2099,
28,
12976,
13,
46770,
7,
17816,
30531,
3256,
705,
10778,
3256,
705,
31502,
3256,
705,
9419,
2043,
20151,
20520,
828,
198,
220,
220,
220,
1037,
11639,
15988,
262,
15942,
16579,
286,
8624,
18931,
6,
198,
8,
198,
31,
25811,
13,
34960,
62,
9535,
690,
282,
62,
38785,
7,
37065,
15721,
690,
282,
37766,
13,
6369,
15490,
13,
8367,
8,
198,
31,
12976,
13,
18076,
7,
198,
220,
220,
220,
705,
438,
17256,
12,
6404,
82,
14,
438,
1069,
9152,
12,
6404,
82,
3256,
198,
220,
220,
220,
4277,
28,
17821,
11,
198,
220,
220,
220,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
1037,
11639,
818,
9152,
393,
19607,
17259,
329,
10139,
7,
82,
8,
287,
10784,
2637,
198,
8,
198,
31,
12976,
13,
18076,
7,
198,
220,
220,
220,
705,
438,
17256,
12,
15944,
14,
438,
1069,
9152,
12,
15944,
3256,
198,
220,
220,
220,
4277,
28,
17821,
11,
198,
220,
220,
220,
905,
62,
12286,
28,
17821,
11,
198,
220,
220,
220,
1037,
11639,
818,
9152,
393,
19607,
3651,
329,
10139,
7,
82,
8,
287,
10784,
13,
357,
8743,
635,
10784,
3131,
2985,
508,
16476,
737,
6,
198,
8,
198,
31,
12501,
273,
2024,
13,
4480,
62,
9945,
24330,
3419,
198,
4299,
2251,
7,
198,
220,
220,
220,
5072,
62,
7753,
11,
12416,
11,
9061,
11,
2628,
11,
13760,
11,
15424,
62,
18982,
11,
2700,
11,
5128,
62,
9948,
66,
62,
11813,
11,
5128,
62,
1818,
62,
11813,
11,
198,
220,
220,
220,
2251,
62,
1891,
904,
11,
1441,
62,
1891,
904,
11,
869,
62,
9948,
66,
62,
1891,
904,
11,
869,
62,
1818,
62,
1891,
904,
11,
2291,
62,
15944,
11,
2291,
62,
6404,
82,
11,
15942,
16579,
198,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
36472,
6352,
1039,
286,
262,
9157,
590,
4823,
284,
2393,
329,
7373,
13,
628,
220,
220,
220,
16238,
399,
4147,
286,
262,
9157,
590,
4823,
11,
345,
460,
10784,
27441,
11,
44380,
11,
22476,
364,
11,
19502,
290,
5972,
82,
13,
628,
220,
220,
220,
2750,
4277,
11,
262,
15424,
2393,
481,
2291,
407,
691,
262,
12066,
11777,
2810,
2884,
262,
3141,
1627,
475,
635,
198,
220,
220,
220,
511,
9157,
590,
11,
1864,
284,
262,
3173,
16493,
287,
262,
10314,
13,
198,
220,
220,
220,
921,
460,
13096,
617,
286,
883,
3173,
1262,
3689,
286,
428,
3141,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
11321,
13,
6404,
1330,
20957,
62,
6404,
62,
687,
1436,
62,
22866,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
11321,
13,
33723,
62,
260,
26634,
1330,
900,
62,
33723,
62,
5657,
62,
83,
80,
36020,
11,
900,
62,
33723,
62,
260,
26634,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
31391,
13,
11748,
39344,
1330,
10784,
11,
36472,
8979,
26227,
11,
7788,
15490,
62,
25294,
30373,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
31391,
13,
11748,
39344,
13,
11321,
13,
1069,
11755,
1330,
20816,
43834,
12331,
628,
220,
220,
220,
12066,
796,
17635,
628,
220,
220,
220,
611,
12416,
25,
198,
220,
220,
220,
220,
220,
220,
220,
12066,
13,
2302,
437,
7,
40148,
8,
628,
220,
220,
220,
611,
9061,
25,
198,
220,
220,
220,
220,
220,
220,
220,
12066,
13,
2302,
437,
7,
785,
41510,
8,
628,
220,
220,
220,
611,
2628,
25,
198,
220,
220,
220,
220,
220,
220,
220,
12066,
13,
2302,
437,
7,
24432,
8,
628,
220,
220,
220,
611,
13760,
25,
198,
220,
220,
220,
220,
220,
220,
220,
12066,
13,
2302,
437,
7,
77,
4147,
8,
628,
220,
220,
220,
479,
86,
22046,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15414,
62,
9948,
66,
62,
11813,
10354,
5128,
62,
9948,
66,
62,
11813,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
15414,
62,
1818,
62,
11813,
10354,
5128,
62,
1818,
62,
11813,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
17953,
62,
1891,
904,
10354,
2251,
62,
1891,
904,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
7783,
62,
1891,
904,
10354,
1441,
62,
1891,
904,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
13345,
62,
9948,
66,
62,
1891,
904,
10354,
869,
62,
9948,
66,
62,
1891,
904,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
13345,
62,
1818,
62,
1891,
904,
10354,
869,
62,
1818,
62,
1891,
904,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
17256,
62,
15944,
10354,
2291,
62,
15944,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
17256,
62,
6404,
82,
10354,
2291,
62,
6404,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
705,
2502,
13564,
10354,
2700,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
611,
15424,
62,
18982,
6624,
705,
13344,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
10784,
62,
18982,
796,
36472,
8979,
26227,
13,
57,
4061,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
13,
19119,
15090,
6,
1904,
62,
5589,
2234,
10354,
6407,
30072,
198,
220,
220,
220,
1288,
361,
15424,
62,
18982,
6624,
705,
13344,
12,
403,
5589,
2790,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
10784,
62,
18982,
796,
36472,
8979,
26227,
13,
57,
4061,
198,
220,
220,
220,
220,
220,
220,
220,
479,
86,
22046,
13,
19119,
15090,
6,
1904,
62,
5589,
2234,
10354,
10352,
30072,
198,
220,
220,
220,
1288,
361,
15424,
62,
18982,
6624,
705,
18870,
13,
34586,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
10784,
62,
18982,
796,
36472,
8979,
26227,
13,
51,
1503,
62,
38,
57,
31444,
1961,
628,
220,
220,
220,
611,
15942,
16579,
287,
37250,
30531,
3256,
705,
10778,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
900,
62,
33723,
62,
5657,
62,
83,
80,
36020,
7,
47408,
16193,
19011,
16579,
6624,
705,
30531,
6,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
900,
62,
33723,
62,
260,
26634,
7,
14202,
8,
198,
220,
220,
220,
7788,
15490,
62,
25294,
30373,
13,
2617,
4971,
7,
19011,
16579,
8,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
351,
20957,
62,
6404,
62,
687,
1436,
62,
22866,
10786,
4,
7,
20500,
8,
82,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10784,
7,
298,
871,
11,
29472,
28,
22915,
62,
7753,
11,
2393,
62,
18982,
28,
39344,
62,
18982,
11,
12429,
46265,
22046,
8,
198,
220,
220,
220,
2845,
20816,
43834,
12331,
355,
6631,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
34666,
7,
69,
6,
47904,
284,
3551,
262,
15424,
2393,
13,
35528,
25,
1391,
1069,
4516,
92,
11537,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
13138,
7,
69,
6,
42910,
262,
10784,
15424,
2393,
284,
1391,
22915,
62,
7753,
92,
11537,
628,
198,
31,
332,
10989,
62,
39344,
13,
21812,
10786,
76,
42175,
11537,
198,
31,
853,
2886,
13,
1268,
30076,
62,
25664,
3419,
198,
31,
853,
2886,
13,
2606,
7250,
3843,
62,
25664,
7,
35827,
28,
25101,
8,
198,
31,
25811,
13,
31315,
9306,
62,
21389,
1404,
3419,
198,
31,
25811,
13,
13775,
5222,
7,
16794,
11639,
2502,
13564,
5072,
2393,
611,
340,
1541,
7160,
11537,
198,
31,
12976,
13,
18076,
10786,
12,
72,
3256,
705,
438,
259,
12,
5372,
3256,
318,
62,
32109,
28,
17821,
11,
1037,
11639,
44,
42175,
262,
15424,
287,
1295,
11,
6993,
799,
278,
262,
2656,
2393,
2637,
8,
198,
31,
25811,
13,
50,
4146,
3525,
3419,
198,
31,
12976,
13,
18076,
7,
198,
220,
220,
220,
705,
12,
85,
3256,
198,
220,
220,
220,
705,
438,
9641,
3256,
198,
220,
220,
220,
2099,
28,
12976,
13,
18601,
2751,
11,
198,
220,
220,
220,
2672,
28,
25101,
11,
198,
220,
220,
220,
1138,
615,
283,
11639,
43717,
3256,
198,
220,
220,
220,
1303,
5740,
25,
18247,
257,
72,
3755,
13,
31391,
13,
6369,
15490,
62,
43717,
355,
257,
4277,
1988,
11777,
561,
1255,
287,
257,
3105,
1330,
286,
198,
220,
220,
220,
1303,
257,
72,
3755,
13,
31391,
290,
11,
355,
257,
12921,
11,
257,
72,
3755,
13,
579,
13,
1081,
890,
355,
428,
318,
262,
1339,
11,
1365,
5004,
262,
3452,
10784,
198,
220,
220,
220,
1303,
2196,
2641,
262,
2163,
618,
2622,
13,
198,
220,
220,
220,
1037,
11639,
19895,
425,
5794,
2196,
284,
32492,
284,
357,
12286,
82,
284,
3452,
2196,
737,
3256,
198,
8,
198,
31,
12976,
13,
18076,
7,
198,
220,
220,
220,
705,
438,
19011,
16579,
3256,
198,
220,
220,
220,
4277,
11639,
10778,
3256,
198,
220,
220,
220,
2099,
28,
12976,
13,
46770,
7,
17816,
30531,
3256,
705,
10778,
3256,
705,
31502,
3256,
705,
9419,
2043,
20151,
20520,
828,
198,
220,
220,
220,
1037,
11639,
15988,
262,
15942,
16579,
286,
8624,
18931,
6,
198,
8,
198,
4299,
32492,
7,
15414,
62,
7753,
11,
5072,
62,
7753,
11,
2700,
11,
10574,
11,
287,
62,
5372,
11,
15424,
62,
18982,
11,
2196,
11,
15942,
16579,
2599,
198,
220,
220,
220,
37227,
44,
42175,
281,
10784,
15424,
284,
257,
517,
2274,
5794,
2196,
13,
628,
220,
220,
220,
11485,
39224,
3712,
352,
13,
20,
13,
15,
198,
220,
220,
220,
220,
220,
220,
220,
7929,
329,
262,
1377,
18217,
298,
6056,
11,
6928,
416,
1377,
19011,
16579,
628,
220,
220,
220,
37227,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
11321,
13,
6404,
1330,
20957,
62,
6404,
62,
687,
1436,
62,
22866,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
11321,
13,
33723,
62,
260,
26634,
1330,
900,
62,
33723,
62,
5657,
62,
83,
80,
36020,
11,
900,
62,
33723,
62,
260,
26634,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
31391,
13,
11748,
39344,
1330,
4886,
62,
17474,
62,
4906,
11,
7788,
15490,
62,
43717,
198,
220,
220,
220,
422,
257,
72,
3755,
13,
31391,
13,
11748,
39344,
13,
17474,
13,
76,
3692,
2024,
1330,
651,
62,
76,
3692,
1352,
11,
337,
3528,
49,
6158,
62,
25294,
30373,
628,
220,
220,
220,
611,
10574,
318,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
10378,
31023,
10786,
1169,
1377,
18217,
298,
3038,
318,
39224,
11,
779,
1377,
19011,
16579,
11537,
628,
220,
220,
220,
611,
287,
62,
5372,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5072,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
34666,
10786,
22915,
2393,
7368,
1978,
351,
1377,
259,
12,
5372,
6056,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
7753,
796,
5128,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
2700,
796,
6407,
198,
220,
220,
220,
1288,
361,
407,
5072,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
34666,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3919,
5072,
2393,
7368,
13,
4222,
751,
1377,
259,
12,
5372,
6056,
611,
345,
561,
588,
284,
32492,
287,
1295,
2637,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
611,
15942,
16579,
287,
37250,
30531,
3256,
705,
10778,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
900,
62,
33723,
62,
5657,
62,
83,
80,
36020,
7,
47408,
16193,
19011,
16579,
6624,
705,
30531,
6,
4008,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
900,
62,
33723,
62,
260,
26634,
7,
14202,
8,
198,
220,
220,
220,
337,
3528,
49,
6158,
62,
25294,
30373,
13,
2617,
4971,
7,
19011,
16579,
8,
628,
220,
220,
220,
611,
2196,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2196,
796,
7788,
15490,
62,
43717,
628,
220,
220,
220,
15720,
1352,
62,
565,
82,
796,
651,
62,
76,
3692,
1352,
7,
15255,
478,
62,
17474,
62,
4906,
7,
15414,
62,
7753,
4008,
198,
220,
220,
220,
15720,
1352,
796,
15720,
1352,
62,
565,
82,
7,
15414,
62,
7753,
8,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
351,
20957,
62,
6404,
62,
687,
1436,
62,
22866,
10786,
4,
7,
20500,
8,
82,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15720,
1352,
13,
76,
42175,
7,
9641,
11,
5072,
62,
7753,
11,
2700,
28,
3174,
11,
503,
62,
5589,
2234,
28,
17474,
62,
18982,
8,
198,
220,
220,
220,
2845,
35528,
355,
4049,
25,
220,
1303,
279,
2645,
600,
25,
15560,
28,
36654,
12,
16341,
198,
220,
220,
220,
220,
220,
220,
220,
611,
15942,
16579,
6624,
705,
30531,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
198,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
34666,
7,
69,
6,
47904,
284,
32492,
262,
15424,
2393,
357,
1904,
4600,
438,
19011,
16579,
16959,
63,
284,
766,
12854,
1891,
2599,
1391,
18224,
92,
11537,
628,
220,
220,
220,
611,
15942,
16579,
287,
37250,
30531,
3256,
705,
10778,
6,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
9809,
13,
30328,
62,
13138,
7,
69,
1101,
38769,
262,
15424,
284,
2196,
1391,
9641,
92,
11537,
198
] | 2.614301 | 3,692 |
from datetime import datetime
import unittest
from emma.model import SERIALIZED_DATETIME_ALT_FORMAT
from emma import exceptions as ex
from emma.model.account import Account
from emma.model.automation import Workflow
from tests.model import MockAdapter
class WorkflowTest(unittest.TestCase):
"""
Tests for the Workflow model
"""
def setUp(self):
"""
Set up tasks for our tests
"""
Account.default_adapter = MockAdapter
self.workflow = Workflow(
Account(account_id="100", public_key="xxx", private_key="yyy"),
{
'workflow_id': '22048a49-9533-4014-ae03-2af3598ed9a7',
'status': 'active',
'name': 'Test',
'created_at': datetime.now().strftime(SERIALIZED_DATETIME_ALT_FORMAT),
'updated_at': datetime.now().strftime(SERIALIZED_DATETIME_ALT_FORMAT),
}
)
| [
6738,
4818,
8079,
1330,
4818,
8079,
198,
11748,
555,
715,
395,
198,
198,
6738,
795,
2611,
13,
19849,
1330,
18871,
12576,
14887,
1961,
62,
35,
1404,
2767,
12789,
62,
31429,
62,
21389,
1404,
198,
6738,
795,
2611,
1330,
13269,
355,
409,
198,
6738,
795,
2611,
13,
19849,
13,
23317,
1330,
10781,
198,
6738,
795,
2611,
13,
19849,
13,
2306,
296,
341,
1330,
5521,
11125,
198,
198,
6738,
5254,
13,
19849,
1330,
44123,
47307,
628,
198,
4871,
5521,
11125,
14402,
7,
403,
715,
395,
13,
14402,
20448,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
30307,
329,
262,
5521,
11125,
2746,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
900,
4933,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5345,
510,
8861,
329,
674,
5254,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10781,
13,
12286,
62,
324,
3429,
796,
44123,
47307,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1818,
11125,
796,
5521,
11125,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10781,
7,
23317,
62,
312,
2625,
3064,
1600,
1171,
62,
2539,
2625,
31811,
1600,
2839,
62,
2539,
2625,
22556,
88,
12340,
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,
1818,
11125,
62,
312,
10354,
705,
17572,
2780,
64,
2920,
12,
3865,
2091,
12,
21844,
19,
12,
3609,
3070,
12,
17,
1878,
2327,
4089,
276,
24,
64,
22,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
13376,
10354,
705,
5275,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3672,
10354,
705,
14402,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
25598,
62,
265,
10354,
4818,
8079,
13,
2197,
22446,
2536,
31387,
7,
35009,
12576,
14887,
1961,
62,
35,
1404,
2767,
12789,
62,
31429,
62,
21389,
1404,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
43162,
62,
265,
10354,
4818,
8079,
13,
2197,
22446,
2536,
31387,
7,
35009,
12576,
14887,
1961,
62,
35,
1404,
2767,
12789,
62,
31429,
62,
21389,
1404,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198
] | 2.172494 | 429 |
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from configparser import ConfigParser
config = ConfigParser()
config.read('config.ini')
mysql_username = config.get('DATABASE', 'MYSQL_USER')
mysql_pwd = config.get('DATABASE', 'MYSQL_PWD')
mysql_host = config.get('DATABASE', 'MYSQL_HOST')
mysql_port = config.get('DATABASE', 'MYSQL_PORT')
mysql_database_name = config.get('DATABASE', 'MYSQL_DATABASE_NAME')
DATABASE = "mysql://{}:{}@{}:{}/{}?charset=utf8".format(
mysql_username,
mysql_pwd,
mysql_host,
mysql_port,
mysql_database_name
)
engine = create_engine(
DATABASE,
encoding="utf-8",
echo=True,
pool_size=50
)
Session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine))
| [
6738,
44161,
282,
26599,
1330,
2251,
62,
18392,
198,
6738,
44161,
282,
26599,
13,
579,
1330,
629,
19458,
62,
29891,
198,
6738,
44161,
282,
26599,
13,
579,
1330,
6246,
10297,
198,
198,
6738,
4566,
48610,
1330,
17056,
46677,
198,
198,
11250,
796,
17056,
46677,
3419,
198,
11250,
13,
961,
10786,
11250,
13,
5362,
11537,
198,
198,
28744,
13976,
62,
29460,
796,
4566,
13,
1136,
10786,
35,
1404,
6242,
11159,
3256,
705,
44,
16309,
9711,
62,
29904,
11537,
198,
28744,
13976,
62,
79,
16993,
796,
4566,
13,
1136,
10786,
35,
1404,
6242,
11159,
3256,
705,
44,
16309,
9711,
62,
47,
22332,
11537,
198,
28744,
13976,
62,
4774,
796,
4566,
13,
1136,
10786,
35,
1404,
6242,
11159,
3256,
705,
44,
16309,
9711,
62,
39,
10892,
11537,
198,
28744,
13976,
62,
634,
796,
4566,
13,
1136,
10786,
35,
1404,
6242,
11159,
3256,
705,
44,
16309,
9711,
62,
15490,
11537,
198,
28744,
13976,
62,
48806,
62,
3672,
796,
4566,
13,
1136,
10786,
35,
1404,
6242,
11159,
3256,
705,
44,
16309,
9711,
62,
35,
1404,
6242,
11159,
62,
20608,
11537,
198,
198,
35,
1404,
6242,
11159,
796,
366,
28744,
13976,
1378,
90,
92,
29164,
92,
31,
90,
92,
29164,
92,
14,
90,
92,
30,
354,
945,
316,
28,
40477,
23,
1911,
18982,
7,
198,
220,
220,
220,
48761,
62,
29460,
11,
198,
220,
220,
220,
48761,
62,
79,
16993,
11,
198,
220,
220,
220,
48761,
62,
4774,
11,
198,
220,
220,
220,
48761,
62,
634,
11,
198,
220,
220,
220,
48761,
62,
48806,
62,
3672,
198,
8,
198,
198,
18392,
796,
2251,
62,
18392,
7,
198,
220,
220,
220,
360,
1404,
6242,
11159,
11,
198,
220,
220,
220,
21004,
2625,
40477,
12,
23,
1600,
198,
220,
220,
220,
9809,
28,
17821,
11,
198,
220,
220,
220,
5933,
62,
7857,
28,
1120,
198,
8,
198,
198,
36044,
796,
629,
19458,
62,
29891,
7,
29891,
10297,
7,
2306,
420,
2002,
270,
28,
25101,
11,
1960,
1659,
75,
1530,
28,
25101,
11,
11007,
28,
18392,
4008,
198
] | 2.474164 | 329 |
import numpy as np
import os
pattern = ['Frequent_Pattern_init.txt', 'Frequent_Pattern_sd.txt']
path_list = ['../../data/Geolife Trajectories 1.3/Trajectories7000/', '../../data/Geolife Trajectories '
'1.3/sd/sd_final_MDL1100_ep0.1/',
'../../data/Geolife '
'Trajectories '
'1.3/sd/sd_final_MDL1100_ep0.5/',
'../../data/Geolife Trajectories 1.3/sd/sd_final_MDL1100_ep1.0/', '../../data/Geolife Trajectories '
'1.3/sd/sd_final_MDL1100_ep2.0/']
path_test = ['../../data/Geolife Trajectories 1.3/Trajectories7000/', '../../data/Geolife Trajectories '
'1.3/test/0/', '../../data/Geolife '
'Trajectories '
'1.3/test/1/',
'../../data/Geolife Trajectories 1.3/test/2/', '../../data/Geolife Trajectories '
'1.3/test/3/']
def get_Frequent_Pattern(init_path='../../data/Geolife Trajectories 1.3/Trajectories/',
min_latitude=39.6,
min_longitude=115.8,
len_latitude=1.2,
len_longitude=1.6, para="init"):
"""
ๅญๅจๆฐๆฎ็้ข็นๆจกๅผ
:param init_path:ๆฐๆฎ่ทฏๅพ
:param min_latitude:ๆๅฐ็บฌๅบฆ
:param min_longitude:ๆๅฐ็ปๅบฆ
:param len_latitude:็บฌๅบฆๅทฎๅผ
:param len_longitude:็ปๅบฆๅทฎๅผ
:param para:่ฎก็ฎ้ข็นๆจกๅผ,้ๆฉๆฐๆฎ้
:return:ๆๅบๅฅฝ็้ข็นๆจกๅผ้
"""
lat_accu = len_latitude / 6 # ็ปดๅบฆ่พน็่ทจๅบฆ
lon_accu = len_longitude / 6 # ็ปๅบฆ่พน็่ทจๅบฆ
# ๅญ้ข็นๆจกๅผ
Frequent_Pattern = {}
base_path_list = os.listdir(init_path)
for path in base_path_list:
file_object = open(init_path + path, 'r') # ่ฏปๅ่ฝจ่ฟนๆฐๆฎๆไปถ
T0 = []
for line in file_object.readlines():
w = float(line.strip().split(',')[0].strip())
w = int((w - min_latitude) / lat_accu) # ็ปดๅบฆๅฏนๅบ็ฝๆ ผ็ไฝ็ฝฎ
j = float(line.strip().split(',')[1].strip())
j = int((j - min_longitude) / lon_accu) # ็ปๅบฆๅฏนๅบ็ฝๆ ผ็ไฝ็ฝฎ
if len(T0) > 0 and w * 6 + j == T0[-1]: # ๆ้ค่ฟ็ปญๅบ็ฐๅจไธไธชๆ ผๅญ้้ข็ๆ
ๅต
continue
T0.append(w * 6 + j) # ๆ ผๅญ็็ผๅท
# # ๅญๆจกๅผๆๅ
# for i in range(len(T0) - 2):
# for j in range(i + 2, len(T0)):
# P = tuple(T0[i: j + 1].copy()) # ๆพ้ข็นๆจกๅผ(่ณๅฐๅคงไบ็ญไบไธไธชๅๅ
็ฝๆ ผ)
# if P in Frequent_Pattern.keys():
# Frequent_Pattern[P] += 1
# else:
# Frequent_Pattern[P] = 1
P = tuple(T0.copy())
if len(P) >= 3:
# print(P)
if P in Frequent_Pattern.keys():
Frequent_Pattern[P] += 1
else:
Frequent_Pattern[P] = 1
if para == "init":
f = open(pattern[0], 'w')
else:
f = open(pattern[1], 'w')
for record in Frequent_Pattern.keys():
f.writelines(str(record) + ':' + str(Frequent_Pattern[record]) + '\n')
f.close()
return sorted(Frequent_Pattern.items(), key=lambda x: x[1], reverse=True)
def get_Fredata(para="init"):
"""
่ทๅ้ข็นๆจกๅผๆฐๆฎ
:param para:่ฎก็ฎ้ข็นๆจกๅผ,้ๆฉๆฐๆฎ้
:return:
"""
if para == "init":
f = open(pattern[0], 'r')
else:
f = open(pattern[1], 'r')
Fre_dict = {}
for line in f.readlines():
Fre_dict[tuple((line.split(':')[0].strip()[1:-1]).split(','))] = int(line.split(':')[1].strip())
dict_ = {}
for item in sorted(Fre_dict.items(), key=lambda x: x[1], reverse=True):
dict_[item[0]] = item[1]
return dict_
def get_FP(init_dict, sd_dict):
"""
่ฎก็ฎFPๆๆ
:param init_dict:ๅๅงๆฐๆฎ็้ข็นๆจกๅผๅญๅ
ธ
:param sd_dict:็ๆๆฐๆฎ็้ข็นๆจกๅผๅญๅ
ธ
:return:FPๆๆ
"""
# sum_D = sum(list(init_dict.values()))
# sum_SD = sum(list(sd_dict.values()))
FP = 0
# for index, key in init_dict.items():
# init_dict[index] = key / sum_D
#
# for index, key in sd_dict.items():
# sd_dict[index] = key / sum_SD
for p in list(init_dict.keys())[:50]:
if p in sd_dict.keys():
re = abs(init_dict[p] - sd_dict[p]) / init_dict[p]
# print(re)
FP += re
# print(init_dict[p], sd_dict[p])
return FP / 50
def get_KT(init_dict, sd_dict):
"""
่ฎก็ฎKTๆๆ
:param init_dict:ๅๅงๆฐๆฎ็้ข็นๆจกๅผๅญๅ
ธ
:param sd_dict:็ๆๆฐๆฎ็้ข็นๆจกๅผๅญๅ
ธ
:return:KTๆๆ
"""
concor_count = 0
discor_count = 0
k = 0
# ๅๅ50ๅ็ๆนๆณ
for i in range(len(list(init_dict.keys()))):
if k >= 50:
break
if list(init_dict.keys())[i] in sd_dict.keys():
k += 1
for i in range(len(list(init_dict.keys())[:k])):
if list(init_dict.keys())[i] in sd_dict.keys():
for j in range(i + 1, len(list(init_dict.keys())[:k])):
if list(init_dict.keys())[j] in sd_dict.keys():
if (init_dict[list(init_dict.keys())[i]] >= init_dict[list(init_dict.keys())[j]] and sd_dict[
list(init_dict.keys())[i]] > sd_dict[list(init_dict.keys())[j]]) or \
(init_dict[list(init_dict.keys())[i]] < init_dict[list(init_dict.keys())[j]] and sd_dict[
list(init_dict.keys())[i]] < sd_dict[list(init_dict.keys())[j]]):
concor_count += 1
else:
discor_count += 1
# ๅฏนไบๆๆๆฐๆฎ้
union_ = extra_same_elem(list(init_dict.keys()), list(sd_dict.keys()))
for key in range(len(union_)):
for key2 in range(key+1, len(union_)):
if (init_dict[union_[key]] >= init_dict[union_[key2]] and sd_dict[
union_[key]] > sd_dict[union_[key2]]) or \
(init_dict[union_[key]] < init_dict[union_[key2]] and sd_dict[
union_[key]] < sd_dict[union_[key2]]):
concor_count += 1
else:
discor_count += 1
# print("KTๅทฎๅผ๏ผ", (concor_count - discor_count))
KT = (concor_count - discor_count) / (len(union_)*len(union_)-1 / 2)
return KT
if __name__ == '__main__':
# get_Frequent_Pattern(path_list[0],
# min_latitude=39.6,
# min_longitude=115.8,
# len_latitude=1.2,
# len_longitude=1.6,
# para="init")
dict_init = get_Fredata(para="init")
for i in range(1, len(path_test)):
get_Frequent_Pattern(path_test[i],
min_latitude=39.6,
min_longitude=115.8,
len_latitude=1.2,
len_longitude=1.6,
para="sd")
dict_sd = get_Fredata(para="sd")
FP = get_FP(dict_init, dict_sd)
KT = get_KT(dict_init, dict_sd)
print(path_test[i], FP, KT)
# input()
| [
11748,
299,
32152,
355,
45941,
201,
198,
11748,
28686,
201,
198,
201,
198,
33279,
796,
37250,
37,
46018,
62,
47546,
62,
15003,
13,
14116,
3256,
705,
37,
46018,
62,
47546,
62,
21282,
13,
14116,
20520,
201,
198,
6978,
62,
4868,
796,
37250,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
352,
13,
18,
14,
15721,
752,
1749,
22,
830,
14,
3256,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
16,
13,
18,
14,
21282,
14,
21282,
62,
20311,
62,
12740,
43,
42060,
62,
538,
15,
13,
16,
14,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
705,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
15721,
752,
1749,
705,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
16,
13,
18,
14,
21282,
14,
21282,
62,
20311,
62,
12740,
43,
42060,
62,
538,
15,
13,
20,
14,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
352,
13,
18,
14,
21282,
14,
21282,
62,
20311,
62,
12740,
43,
42060,
62,
538,
16,
13,
15,
14,
3256,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
16,
13,
18,
14,
21282,
14,
21282,
62,
20311,
62,
12740,
43,
42060,
62,
538,
17,
13,
15,
14,
20520,
201,
198,
6978,
62,
9288,
796,
37250,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
352,
13,
18,
14,
15721,
752,
1749,
22,
830,
14,
3256,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
16,
13,
18,
14,
9288,
14,
15,
14,
3256,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
15721,
752,
1749,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
16,
13,
18,
14,
9288,
14,
16,
14,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
352,
13,
18,
14,
9288,
14,
17,
14,
3256,
705,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
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,
220,
220,
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,
16,
13,
18,
14,
9288,
14,
18,
14,
20520,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
37,
46018,
62,
47546,
7,
15003,
62,
6978,
11639,
40720,
40720,
7890,
14,
10082,
349,
901,
4759,
752,
1749,
352,
13,
18,
14,
15721,
752,
1749,
14,
3256,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
62,
15460,
3984,
28,
2670,
13,
21,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
62,
6511,
3984,
28,
15363,
13,
23,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18896,
62,
15460,
3984,
28,
16,
13,
17,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18896,
62,
6511,
3984,
28,
16,
13,
21,
11,
31215,
2625,
15003,
1,
2599,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
10263,
255,
246,
43636,
101,
46763,
108,
162,
235,
106,
21410,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
201,
198,
220,
220,
220,
1058,
17143,
2315,
62,
6978,
25,
46763,
108,
162,
235,
106,
164,
115,
107,
36181,
226,
201,
198,
220,
220,
220,
1058,
17143,
949,
62,
15460,
3984,
25,
17312,
222,
22887,
237,
163,
118,
105,
41753,
99,
201,
198,
220,
220,
220,
1058,
17143,
949,
62,
6511,
3984,
25,
17312,
222,
22887,
237,
163,
119,
237,
41753,
99,
201,
198,
220,
220,
220,
1058,
17143,
18896,
62,
15460,
3984,
25,
163,
118,
105,
41753,
99,
32432,
106,
161,
222,
120,
201,
198,
220,
220,
220,
1058,
17143,
18896,
62,
6511,
3984,
25,
163,
119,
237,
41753,
99,
32432,
106,
161,
222,
120,
201,
198,
220,
220,
220,
1058,
17143,
31215,
25,
164,
106,
94,
163,
106,
245,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
11,
34460,
231,
162,
233,
102,
46763,
108,
162,
235,
106,
37239,
228,
201,
198,
220,
220,
220,
1058,
7783,
25,
162,
236,
240,
41753,
237,
25001,
121,
21410,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
37239,
228,
201,
198,
220,
220,
220,
37227,
201,
198,
201,
198,
220,
220,
220,
3042,
62,
4134,
84,
796,
18896,
62,
15460,
3984,
1220,
718,
220,
1303,
13328,
119,
112,
41753,
99,
164,
122,
117,
21410,
164,
115,
101,
41753,
99,
201,
198,
220,
220,
220,
300,
261,
62,
4134,
84,
796,
18896,
62,
6511,
3984,
1220,
718,
220,
1303,
13328,
119,
237,
41753,
99,
164,
122,
117,
21410,
164,
115,
101,
41753,
99,
201,
198,
201,
198,
220,
220,
220,
1303,
10263,
255,
246,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
201,
198,
220,
220,
220,
22192,
298,
62,
47546,
796,
23884,
201,
198,
201,
198,
220,
220,
220,
2779,
62,
6978,
62,
4868,
796,
28686,
13,
4868,
15908,
7,
15003,
62,
6978,
8,
201,
198,
220,
220,
220,
329,
3108,
287,
2779,
62,
6978,
62,
4868,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
62,
15252,
796,
1280,
7,
15003,
62,
6978,
1343,
3108,
11,
705,
81,
11537,
220,
1303,
5525,
107,
119,
20998,
244,
164,
121,
101,
32573,
117,
46763,
108,
162,
235,
106,
23877,
229,
20015,
114,
201,
198,
220,
220,
220,
220,
220,
220,
220,
309,
15,
796,
17635,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1627,
287,
2393,
62,
15252,
13,
961,
6615,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
266,
796,
12178,
7,
1370,
13,
36311,
22446,
35312,
7,
3256,
11537,
58,
15,
4083,
36311,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
266,
796,
493,
19510,
86,
532,
949,
62,
15460,
3984,
8,
1220,
3042,
62,
4134,
84,
8,
220,
1303,
13328,
119,
112,
41753,
99,
43380,
117,
41753,
242,
163,
121,
239,
43718,
120,
21410,
19526,
235,
163,
121,
106,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
796,
12178,
7,
1370,
13,
36311,
22446,
35312,
7,
3256,
11537,
58,
16,
4083,
36311,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
796,
493,
19510,
73,
532,
949,
62,
6511,
3984,
8,
1220,
300,
261,
62,
4134,
84,
8,
220,
1303,
13328,
119,
237,
41753,
99,
43380,
117,
41753,
242,
163,
121,
239,
43718,
120,
21410,
19526,
235,
163,
121,
106,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
51,
15,
8,
1875,
657,
290,
266,
1635,
718,
1343,
474,
6624,
309,
15,
58,
12,
16,
5974,
220,
1303,
10545,
236,
240,
165,
247,
97,
32573,
252,
163,
119,
255,
49035,
118,
163,
236,
108,
28839,
101,
31660,
10310,
103,
43718,
120,
36310,
34932,
234,
165,
251,
95,
21410,
46349,
227,
37863,
113,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
309,
15,
13,
33295,
7,
86,
1635,
718,
1343,
474,
8,
220,
1303,
10545,
254,
120,
36310,
21410,
163,
120,
244,
20998,
115,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1303,
10263,
255,
238,
162,
101,
94,
28156,
237,
162,
237,
238,
20998,
244,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
329,
1312,
287,
2837,
7,
11925,
7,
51,
15,
8,
532,
362,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
329,
474,
287,
2837,
7,
72,
1343,
362,
11,
18896,
7,
51,
15,
8,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
350,
796,
46545,
7,
51,
15,
58,
72,
25,
474,
1343,
352,
4083,
30073,
28955,
220,
1303,
10545,
231,
122,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
7,
164,
229,
111,
22887,
239,
32014,
12859,
236,
163,
255,
231,
12859,
236,
49011,
10310,
103,
39355,
243,
17739,
225,
163,
121,
239,
43718,
120,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
611,
350,
287,
22192,
298,
62,
47546,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22192,
298,
62,
47546,
58,
47,
60,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22192,
298,
62,
47546,
58,
47,
60,
796,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
350,
796,
46545,
7,
51,
15,
13,
30073,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
47,
8,
18189,
513,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
47,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
350,
287,
22192,
298,
62,
47546,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22192,
298,
62,
47546,
58,
47,
60,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22192,
298,
62,
47546,
58,
47,
60,
796,
352,
201,
198,
220,
220,
220,
611,
31215,
6624,
366,
15003,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
1280,
7,
33279,
58,
15,
4357,
705,
86,
11537,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
1280,
7,
33279,
58,
16,
4357,
705,
86,
11537,
201,
198,
201,
198,
220,
220,
220,
329,
1700,
287,
22192,
298,
62,
47546,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
13,
8933,
20655,
7,
2536,
7,
22105,
8,
1343,
705,
32105,
1343,
965,
7,
37,
46018,
62,
47546,
58,
22105,
12962,
1343,
705,
59,
77,
11537,
201,
198,
220,
220,
220,
277,
13,
19836,
3419,
201,
198,
220,
220,
220,
1441,
23243,
7,
37,
46018,
62,
47546,
13,
23814,
22784,
1994,
28,
50033,
2124,
25,
2124,
58,
16,
4357,
9575,
28,
17821,
8,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
30847,
1045,
7,
1845,
64,
2625,
15003,
1,
2599,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
5525,
236,
115,
20998,
244,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
46763,
108,
162,
235,
106,
201,
198,
220,
220,
220,
1058,
17143,
31215,
25,
164,
106,
94,
163,
106,
245,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
11,
34460,
231,
162,
233,
102,
46763,
108,
162,
235,
106,
37239,
228,
201,
198,
220,
220,
220,
1058,
7783,
25,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
611,
31215,
6624,
366,
15003,
1298,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
1280,
7,
33279,
58,
15,
4357,
705,
81,
11537,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
277,
796,
1280,
7,
33279,
58,
16,
4357,
705,
81,
11537,
201,
198,
201,
198,
220,
220,
220,
4848,
62,
11600,
796,
23884,
201,
198,
220,
220,
220,
329,
1627,
287,
277,
13,
961,
6615,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4848,
62,
11600,
58,
83,
29291,
19510,
1370,
13,
35312,
7,
10354,
11537,
58,
15,
4083,
36311,
3419,
58,
16,
21912,
16,
35944,
35312,
7,
41707,
4008,
60,
796,
493,
7,
1370,
13,
35312,
7,
10354,
11537,
58,
16,
4083,
36311,
28955,
201,
198,
220,
220,
220,
8633,
62,
796,
23884,
201,
198,
220,
220,
220,
329,
2378,
287,
23243,
7,
20366,
62,
11600,
13,
23814,
22784,
1994,
28,
50033,
2124,
25,
2124,
58,
16,
4357,
9575,
28,
17821,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
8633,
62,
58,
9186,
58,
15,
11907,
796,
2378,
58,
16,
60,
201,
198,
220,
220,
220,
1441,
8633,
62,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
5837,
7,
15003,
62,
11600,
11,
45647,
62,
11600,
2599,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
5525,
106,
94,
163,
106,
245,
5837,
162,
234,
229,
43718,
229,
201,
198,
220,
220,
220,
1058,
17143,
2315,
62,
11600,
25,
43889,
253,
34650,
233,
46763,
108,
162,
235,
106,
21410,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
27764,
245,
17739,
116,
201,
198,
220,
220,
220,
1058,
17143,
45647,
62,
11600,
25,
37955,
22755,
238,
46763,
108,
162,
235,
106,
21410,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
27764,
245,
17739,
116,
201,
198,
220,
220,
220,
1058,
7783,
25,
5837,
162,
234,
229,
43718,
229,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
1303,
2160,
62,
35,
796,
2160,
7,
4868,
7,
15003,
62,
11600,
13,
27160,
3419,
4008,
201,
198,
220,
220,
220,
1303,
2160,
62,
10305,
796,
2160,
7,
4868,
7,
21282,
62,
11600,
13,
27160,
3419,
4008,
201,
198,
220,
220,
220,
31459,
796,
657,
201,
198,
220,
220,
220,
1303,
329,
6376,
11,
1994,
287,
2315,
62,
11600,
13,
23814,
33529,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
2315,
62,
11600,
58,
9630,
60,
796,
1994,
1220,
2160,
62,
35,
201,
198,
220,
220,
220,
1303,
201,
198,
220,
220,
220,
1303,
329,
6376,
11,
1994,
287,
45647,
62,
11600,
13,
23814,
33529,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
45647,
62,
11600,
58,
9630,
60,
796,
1994,
1220,
2160,
62,
10305,
201,
198,
201,
198,
220,
220,
220,
329,
279,
287,
1351,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
25,
1120,
5974,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
279,
287,
45647,
62,
11600,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
302,
796,
2352,
7,
15003,
62,
11600,
58,
79,
60,
532,
45647,
62,
11600,
58,
79,
12962,
1220,
2315,
62,
11600,
58,
79,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
260,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31459,
15853,
302,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
3601,
7,
15003,
62,
11600,
58,
79,
4357,
45647,
62,
11600,
58,
79,
12962,
201,
198,
220,
220,
220,
1441,
31459,
1220,
2026,
201,
198,
201,
198,
201,
198,
201,
198,
4299,
651,
62,
42176,
7,
15003,
62,
11600,
11,
45647,
62,
11600,
2599,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
5525,
106,
94,
163,
106,
245,
42176,
162,
234,
229,
43718,
229,
201,
198,
220,
220,
220,
1058,
17143,
2315,
62,
11600,
25,
43889,
253,
34650,
233,
46763,
108,
162,
235,
106,
21410,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
27764,
245,
17739,
116,
201,
198,
220,
220,
220,
1058,
17143,
45647,
62,
11600,
25,
37955,
22755,
238,
46763,
108,
162,
235,
106,
21410,
165,
95,
239,
163,
117,
223,
162,
101,
94,
28156,
237,
27764,
245,
17739,
116,
201,
198,
220,
220,
220,
1058,
7783,
25,
42176,
162,
234,
229,
43718,
229,
201,
198,
220,
220,
220,
37227,
201,
198,
220,
220,
220,
1673,
273,
62,
9127,
796,
657,
201,
198,
220,
220,
220,
1221,
273,
62,
9127,
796,
657,
201,
198,
220,
220,
220,
479,
796,
657,
201,
198,
201,
198,
220,
220,
220,
1303,
10263,
237,
244,
30298,
235,
1120,
28938,
226,
21410,
43095,
37345,
243,
201,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
4868,
7,
15003,
62,
11600,
13,
13083,
3419,
4008,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
479,
18189,
2026,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1351,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
72,
60,
287,
45647,
62,
11600,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
479,
15853,
352,
201,
198,
201,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
25,
74,
12962,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1351,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
72,
60,
287,
45647,
62,
11600,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
474,
287,
2837,
7,
72,
1343,
352,
11,
18896,
7,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
25,
74,
12962,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
1351,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
73,
60,
287,
45647,
62,
11600,
13,
13083,
33529,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
15003,
62,
11600,
58,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
72,
11907,
18189,
2315,
62,
11600,
58,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
73,
11907,
290,
45647,
62,
11600,
58,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
72,
11907,
1875,
45647,
62,
11600,
58,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
73,
11907,
8,
393,
3467,
201,
198,
220,
220,
220,
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,
15003,
62,
11600,
58,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
72,
11907,
1279,
2315,
62,
11600,
58,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
73,
11907,
290,
45647,
62,
11600,
58,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1351,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
72,
11907,
1279,
45647,
62,
11600,
58,
4868,
7,
15003,
62,
11600,
13,
13083,
28955,
58,
73,
11907,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1673,
273,
62,
9127,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1221,
273,
62,
9127,
15853,
352,
201,
198,
201,
198,
220,
220,
220,
1303,
10263,
107,
117,
12859,
236,
33699,
222,
17312,
231,
46763,
108,
162,
235,
106,
37239,
228,
201,
198,
220,
220,
220,
6441,
62,
796,
3131,
62,
31642,
62,
68,
10671,
7,
4868,
7,
15003,
62,
11600,
13,
13083,
3419,
828,
1351,
7,
21282,
62,
11600,
13,
13083,
3419,
4008,
201,
198,
220,
220,
220,
329,
1994,
287,
2837,
7,
11925,
7,
24592,
62,
8,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
17,
287,
2837,
7,
2539,
10,
16,
11,
18896,
7,
24592,
62,
8,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
357,
15003,
62,
11600,
58,
24592,
62,
58,
2539,
11907,
18189,
2315,
62,
11600,
58,
24592,
62,
58,
2539,
17,
11907,
290,
45647,
62,
11600,
58,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6441,
62,
58,
2539,
11907,
1875,
45647,
62,
11600,
58,
24592,
62,
58,
2539,
17,
11907,
8,
393,
3467,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
15003,
62,
11600,
58,
24592,
62,
58,
2539,
11907,
1279,
2315,
62,
11600,
58,
24592,
62,
58,
2539,
17,
11907,
290,
45647,
62,
11600,
58,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6441,
62,
58,
2539,
11907,
1279,
45647,
62,
11600,
58,
24592,
62,
58,
2539,
17,
11907,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1673,
273,
62,
9127,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1221,
273,
62,
9127,
15853,
352,
201,
198,
220,
220,
220,
1303,
3601,
7203,
42176,
32432,
106,
161,
222,
120,
171,
120,
248,
1600,
357,
1102,
10215,
62,
9127,
532,
1221,
273,
62,
9127,
4008,
201,
198,
220,
220,
220,
42293,
796,
357,
1102,
10215,
62,
9127,
532,
1221,
273,
62,
9127,
8,
1220,
357,
11925,
7,
24592,
62,
27493,
11925,
7,
24592,
62,
13219,
16,
1220,
362,
8,
201,
198,
220,
220,
220,
1441,
42293,
201,
198,
201,
198,
201,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
201,
198,
220,
220,
220,
1303,
651,
62,
37,
46018,
62,
47546,
7,
6978,
62,
4868,
58,
15,
4357,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
62,
15460,
3984,
28,
2670,
13,
21,
11,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
62,
6511,
3984,
28,
15363,
13,
23,
11,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18896,
62,
15460,
3984,
28,
16,
13,
17,
11,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18896,
62,
6511,
3984,
28,
16,
13,
21,
11,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31215,
2625,
15003,
4943,
201,
198,
220,
220,
220,
8633,
62,
15003,
796,
651,
62,
30847,
1045,
7,
1845,
64,
2625,
15003,
4943,
201,
198,
201,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
16,
11,
18896,
7,
6978,
62,
9288,
8,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
651,
62,
37,
46018,
62,
47546,
7,
6978,
62,
9288,
58,
72,
4357,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
62,
15460,
3984,
28,
2670,
13,
21,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
62,
6511,
3984,
28,
15363,
13,
23,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18896,
62,
15460,
3984,
28,
16,
13,
17,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18896,
62,
6511,
3984,
28,
16,
13,
21,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31215,
2625,
21282,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
8633,
62,
21282,
796,
651,
62,
30847,
1045,
7,
1845,
64,
2625,
21282,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
31459,
796,
651,
62,
5837,
7,
11600,
62,
15003,
11,
8633,
62,
21282,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
42293,
796,
651,
62,
42176,
7,
11600,
62,
15003,
11,
8633,
62,
21282,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
6978,
62,
9288,
58,
72,
4357,
31459,
11,
42293,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
5128,
3419,
201,
198
] | 1.559005 | 4,703 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from day_012_gold_mining_back_of_envelope import share_price_calc
@pytest.fixture
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
11748,
12972,
9288,
198,
198,
6738,
1110,
62,
30206,
62,
24267,
62,
45374,
62,
1891,
62,
1659,
62,
268,
1091,
68,
1330,
2648,
62,
20888,
62,
9948,
66,
628,
198,
198,
31,
9078,
9288,
13,
69,
9602,
628,
198
] | 2.365079 | 63 |
#!/usr/bin/python
__author__ = 'smetta'
# Import the module
import sys
import os
import socket
import json
import httplib
import sys
import base64
import ssl
import sys
import xml.etree.ElementTree as ET
import xml.dom.minidom as minidom
DOCUMENTATION = '''
---
module: vra_configure.py
Short_description: Module for configuring vra post gres database,messaging and clustering
description:
- Provides an interface for configuring post gres database, messaging and clustering
versoin_added: "0.1"
options:
vra_instance:
description:
- DNS or Ip address of the instance.
required: True
default: Null
vra_port:
description:
- port where the VRA listens default 5480
required: True
default: Null
vra_user:
description:
- user for the vra
required: True
default: Null
vra_root_password:
description:
- password to be used with user root
required: True
default: Null
vra_postgres_db
description:
- post gres db information such as user, password, database etc. please look below
required: false
default: Nulll
vra_messaging
description:
- messaging information such as host, port, user, password
required: false
default: Nulll
vra_clustering
description:
- clustering information such as leading node, admin user, password
required: false
default: Nulll
'''
EXAMPLES = '''
- name: vra_configure
ignore_errors: no
vra_postgresdb_setup:
vra_instance: "{{vra_instance}}"
vra_port: "{{vra_port}}"
vra_user: "{{vra_user}}"
vra_root_password: "{{vra_root_password}}"
vra_postgres_db:
host: "{{vra_postgres_host}}"
port: "{{vra_postgres_port}}"
database: "{{vra_postgres_database}}"
user: "{{vra_postgres_user}}"
password: "{{vra_postgres_password}}"
vra_messaging:
host: "{{vra_messaging_host}}"
port: "{{vra_messaging_port}}"
user: "{{vra_messaging_user}}"
password: "{{vra_messaging_password}}"
vra_cluster:
host: "{{vra_cluster_host}}"
user: "{{vra_cluster_user}}"
password: "{{vra_cluster_password}}"
'''
from ansible.module_utils.basic import *
from ansible.module_utils.facts import *
main()
| [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
834,
9800,
834,
796,
705,
5796,
15253,
6,
198,
2,
17267,
262,
8265,
198,
11748,
25064,
198,
11748,
28686,
198,
11748,
17802,
198,
11748,
33918,
198,
11748,
1841,
489,
571,
198,
11748,
25064,
198,
11748,
2779,
2414,
198,
11748,
264,
6649,
198,
11748,
25064,
198,
11748,
35555,
13,
316,
631,
13,
20180,
27660,
355,
12152,
198,
11748,
35555,
13,
3438,
13,
1084,
312,
296,
355,
949,
312,
296,
198,
198,
38715,
5883,
3525,
6234,
796,
705,
7061,
198,
6329,
198,
21412,
25,
410,
430,
62,
11250,
495,
13,
9078,
198,
16438,
62,
11213,
25,
19937,
329,
4566,
870,
410,
430,
1281,
308,
411,
6831,
11,
37348,
3039,
290,
32966,
1586,
198,
11213,
25,
198,
220,
220,
220,
532,
47081,
281,
7071,
329,
4566,
870,
1281,
308,
411,
6831,
11,
19925,
290,
32966,
1586,
198,
332,
568,
259,
62,
29373,
25,
366,
15,
13,
16,
1,
198,
25811,
25,
198,
220,
220,
220,
410,
430,
62,
39098,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
18538,
393,
314,
79,
2209,
220,
286,
262,
4554,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
198,
220,
220,
220,
410,
430,
62,
634,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
2493,
810,
262,
569,
3861,
35019,
4277,
7175,
1795,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
198,
220,
220,
220,
410,
430,
62,
7220,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
2836,
329,
262,
410,
430,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
198,
220,
220,
220,
410,
430,
62,
15763,
62,
28712,
25,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
9206,
284,
307,
973,
351,
2836,
6808,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
198,
220,
220,
410,
430,
62,
7353,
34239,
62,
9945,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
1281,
308,
411,
20613,
1321,
884,
355,
2836,
11,
9206,
11,
6831,
3503,
13,
3387,
804,
2174,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
75,
198,
220,
220,
410,
430,
62,
37348,
3039,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
19925,
1321,
884,
355,
2583,
11,
2493,
11,
2836,
11,
9206,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
75,
198,
220,
220,
410,
430,
62,
565,
436,
1586,
198,
220,
220,
220,
220,
220,
220,
220,
6764,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
532,
32966,
1586,
1321,
884,
355,
3756,
10139,
11,
13169,
2836,
11,
9206,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
25,
3991,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
25,
35886,
75,
198,
7061,
6,
198,
6369,
2390,
6489,
1546,
796,
705,
7061,
198,
198,
12,
1438,
25,
410,
430,
62,
11250,
495,
198,
220,
8856,
62,
48277,
25,
645,
198,
220,
410,
430,
62,
7353,
34239,
9945,
62,
40406,
25,
198,
220,
220,
220,
410,
430,
62,
39098,
25,
366,
27007,
85,
430,
62,
39098,
11709,
1,
198,
220,
220,
220,
410,
430,
62,
634,
25,
366,
27007,
85,
430,
62,
634,
11709,
1,
198,
220,
220,
220,
410,
430,
62,
7220,
25,
366,
27007,
85,
430,
62,
7220,
11709,
1,
198,
220,
220,
220,
410,
430,
62,
15763,
62,
28712,
25,
366,
27007,
85,
430,
62,
15763,
62,
28712,
11709,
1,
198,
220,
220,
220,
410,
430,
62,
7353,
34239,
62,
9945,
25,
198,
220,
220,
220,
220,
220,
2583,
25,
366,
27007,
85,
430,
62,
7353,
34239,
62,
4774,
11709,
1,
198,
220,
220,
220,
220,
220,
2493,
25,
366,
27007,
85,
430,
62,
7353,
34239,
62,
634,
11709,
1,
198,
220,
220,
220,
220,
220,
6831,
25,
366,
27007,
85,
430,
62,
7353,
34239,
62,
48806,
11709,
1,
198,
220,
220,
220,
220,
220,
2836,
25,
366,
27007,
85,
430,
62,
7353,
34239,
62,
7220,
11709,
1,
198,
220,
220,
220,
220,
220,
9206,
25,
366,
27007,
85,
430,
62,
7353,
34239,
62,
28712,
11709,
1,
198,
220,
220,
220,
410,
430,
62,
37348,
3039,
25,
198,
220,
220,
220,
220,
220,
2583,
25,
366,
27007,
85,
430,
62,
37348,
3039,
62,
4774,
11709,
1,
198,
220,
220,
220,
220,
220,
2493,
25,
366,
27007,
85,
430,
62,
37348,
3039,
62,
634,
11709,
1,
198,
220,
220,
220,
220,
220,
2836,
25,
366,
27007,
85,
430,
62,
37348,
3039,
62,
7220,
11709,
1,
198,
220,
220,
220,
220,
220,
9206,
25,
366,
27007,
85,
430,
62,
37348,
3039,
62,
28712,
11709,
1,
198,
220,
220,
220,
410,
430,
62,
565,
5819,
25,
198,
220,
220,
220,
220,
220,
2583,
25,
366,
27007,
85,
430,
62,
565,
5819,
62,
4774,
11709,
1,
198,
220,
220,
220,
220,
220,
2836,
25,
366,
27007,
85,
430,
62,
565,
5819,
62,
7220,
11709,
1,
198,
220,
220,
220,
220,
220,
9206,
25,
366,
27007,
85,
430,
62,
565,
5819,
62,
28712,
11709,
1,
198,
198,
7061,
6,
198,
198,
6738,
9093,
856,
13,
21412,
62,
26791,
13,
35487,
1330,
1635,
198,
6738,
9093,
856,
13,
21412,
62,
26791,
13,
37473,
1330,
1635,
198,
12417,
3419,
198
] | 2.343195 | 1,014 |
from django.contrib.auth.base_user import AbstractBaseUser
from django.db import models
from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.models import PermissionsMixin
| [
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
8692,
62,
7220,
1330,
27741,
14881,
12982,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
8692,
62,
7220,
1330,
7308,
12982,
13511,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
27530,
1330,
2448,
8481,
35608,
259,
628,
628
] | 3.474576 | 59 |
# Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Facebook platform, your use
# of this software is subject to the Facebook Developer Principles and
# Policies [http://developers.facebook.com/policy/]. This copyright notice
# shall be included in all copies or substantial portions of the software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
from facebook_business.adobjects.abstractobject import AbstractObject
from facebook_business.adobjects.abstractcrudobject import AbstractCrudObject
from facebook_business.adobjects.objectparser import ObjectParser
from facebook_business.api import FacebookRequest
from facebook_business.typechecker import TypeChecker
"""
This class is auto-generated.
For any issues or feature requests related to this class, please let us know on
github and we'll fix in our codegen framework. We'll not be able to accept
pull request for this class.
"""
| [
2,
15069,
1946,
3203,
11,
3457,
13,
198,
198,
2,
921,
389,
29376,
7520,
257,
1729,
12,
41195,
11,
8688,
11,
29359,
12,
5787,
5964,
284,
198,
2,
779,
11,
4866,
11,
13096,
11,
290,
14983,
428,
3788,
287,
2723,
2438,
393,
13934,
198,
2,
1296,
329,
779,
287,
4637,
351,
262,
3992,
2594,
290,
23113,
2810,
416,
198,
2,
3203,
13,
198,
198,
2,
1081,
351,
597,
3788,
326,
48105,
351,
262,
3203,
3859,
11,
534,
779,
198,
2,
286,
428,
3788,
318,
2426,
284,
262,
3203,
23836,
34200,
290,
198,
2,
42283,
685,
4023,
1378,
16244,
364,
13,
19024,
13,
785,
14,
30586,
14,
4083,
770,
6634,
4003,
198,
2,
2236,
307,
3017,
287,
477,
9088,
393,
8904,
16690,
286,
262,
3788,
13,
198,
198,
2,
3336,
47466,
3180,
36592,
2389,
1961,
366,
1921,
3180,
1600,
42881,
34764,
56,
3963,
15529,
509,
12115,
11,
7788,
32761,
6375,
198,
2,
8959,
49094,
11,
47783,
2751,
21728,
5626,
40880,
5390,
3336,
34764,
11015,
3963,
34482,
3398,
1565,
5603,
25382,
11,
198,
2,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
5357,
44521,
1268,
10913,
2751,
12529,
13,
3268,
8005,
49261,
50163,
198,
2,
3336,
37195,
20673,
6375,
27975,
38162,
9947,
367,
15173,
4877,
9348,
43031,
19146,
7473,
15529,
47666,
3955,
11,
29506,
25552,
6375,
25401,
198,
2,
43031,
25382,
11,
7655,
2767,
16879,
3268,
3537,
40282,
3963,
27342,
10659,
11,
309,
9863,
6375,
25401,
54,
24352,
11,
5923,
1797,
2751,
198,
2,
16034,
11,
16289,
3963,
6375,
3268,
7102,
45,
24565,
13315,
3336,
47466,
6375,
3336,
23210,
6375,
25401,
198,
2,
5550,
1847,
20754,
3268,
3336,
47466,
13,
198,
198,
6738,
23960,
62,
22680,
13,
324,
48205,
13,
397,
8709,
15252,
1330,
27741,
10267,
198,
6738,
23960,
62,
22680,
13,
324,
48205,
13,
397,
8709,
6098,
463,
15252,
1330,
27741,
13916,
463,
10267,
198,
6738,
23960,
62,
22680,
13,
324,
48205,
13,
15252,
48610,
1330,
9515,
46677,
198,
6738,
23960,
62,
22680,
13,
15042,
1330,
3203,
18453,
198,
6738,
23960,
62,
22680,
13,
4906,
9122,
263,
1330,
5994,
9787,
263,
198,
198,
37811,
198,
1212,
1398,
318,
8295,
12,
27568,
13,
198,
198,
1890,
597,
2428,
393,
3895,
7007,
3519,
284,
428,
1398,
11,
3387,
1309,
514,
760,
319,
198,
12567,
290,
356,
1183,
4259,
287,
674,
2438,
5235,
9355,
13,
775,
1183,
407,
307,
1498,
284,
2453,
198,
31216,
2581,
329,
428,
1398,
13,
198,
37811,
628,
198
] | 3.97 | 400 |
# Copyright (C) 2021 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import dataclasses
from typing import Any, Dict, List, Optional
from core.data import codenet_paths
from core.data import error_kinds
DEFAULT_DATASET_PATH = codenet_paths.DEFAULT_DATASET_PATH
@dataclasses.dataclass
| [
2,
15069,
357,
34,
8,
33448,
3012,
3457,
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,
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,
4818,
330,
28958,
198,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
7343,
11,
32233,
198,
198,
6738,
4755,
13,
7890,
1330,
14873,
268,
316,
62,
6978,
82,
198,
6738,
4755,
13,
7890,
1330,
4049,
62,
11031,
82,
198,
198,
7206,
38865,
62,
35,
1404,
1921,
2767,
62,
34219,
796,
14873,
268,
316,
62,
6978,
82,
13,
7206,
38865,
62,
35,
1404,
1921,
2767,
62,
34219,
628,
198,
31,
19608,
330,
28958,
13,
19608,
330,
31172,
628,
198
] | 3.484716 | 229 |
import collections
import json
import re
import urllib
from bs4 import BeautifulSoup
import HTMLParser
def get_properties (message):
"""
Processes a given chat message to identify particular properties: mentions,
emoticons and links. See the README.md file for more detailed documentation.
Args:
message (str): the chat message to process
Returns:
str: json data describing the properties of the message
Raises:
TypeError: if message parameter is not a string
Considerations:
Two approaches involving a tradeoff between performance and readability:
1. Scan message *for each* property's regular expression (more readable code)
2. Scan message *once* using a more complex regular expression (better performance)
I choose to implement #2 so that the solution scales better
"""
# validate message input data
if type(message) != str:
raise TypeError("message parameter must be a string")
# data structure that we're going to return (JSON)
properties = collections.defaultdict(list)
# regular expressions used to extract properties from message
REG_EXP = {
"mentions" : r"@\w+",
"emoticons" : r"\(\w+?\)",
"links" : r"https?://[^\s]+"
}
"""
For simplicity, assume that 'links' use the http(s) URL scheme.
The format of a URL can be very involved. A more correct, general approach
would be to include multiple schemes, follow the RFC for URL formats (RFC 3986, 1808), etc.
This would yield a complex regular expression outside the scope of this exercise.
"""
# regular expression pattern used for search
pattern = r"%s|%s|%s" % (REG_EXP["mentions"], REG_EXP["emoticons"], REG_EXP["links"])
for match in re.findall(pattern, message):
# setup key/value variables for properties dictionary
key, value = None, None
if re.match(REG_EXP["mentions"], match):
key = "mentions"
value = match[1:] # "@eric"
elif re.match(REG_EXP["emoticons"], match):
key = "emoticons"
value = match[1:-1] # "(smiley)"
elif re.match(REG_EXP["links"], match):
url = match # "http://twitter.com/"
# get title of URL
title = None
try:
f = urllib.urlopen(url)
html = f.read()
title = BeautifulSoup(html).title.string
except IOError as e:
sys.stderr.write("I/O error({0}): {1}\n".format(e.errno, e.strerror))
continue
except HTMLParser.HTMLParseError as e:
sys.stderr.write("HTMLParseError error({0}): {1}\n".format(e.errno, e.strerror))
continue
finally:
f.close()
key = "links"
value = {
"url" : url,
"title" : title
}
else:
sys.stderr.write("warning: the following match wasn't processed: {0}\n".format(match))
continue
# store processed key/value variables in properties *defaultdict*
properties[key].append(value)
return json.dumps(properties)
| [
11748,
17268,
198,
11748,
33918,
198,
11748,
302,
198,
11748,
2956,
297,
571,
198,
6738,
275,
82,
19,
1330,
23762,
50,
10486,
198,
11748,
11532,
46677,
198,
198,
4299,
651,
62,
48310,
357,
20500,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10854,
274,
257,
1813,
8537,
3275,
284,
5911,
1948,
6608,
25,
15802,
11,
198,
220,
220,
220,
4085,
34280,
290,
6117,
13,
4091,
262,
20832,
11682,
13,
9132,
2393,
329,
517,
6496,
10314,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
357,
2536,
2599,
262,
8537,
3275,
284,
1429,
198,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
965,
25,
33918,
1366,
12059,
262,
6608,
286,
262,
3275,
198,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5994,
12331,
25,
611,
3275,
11507,
318,
407,
257,
4731,
198,
220,
220,
220,
12642,
602,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4930,
10581,
7411,
257,
3292,
2364,
1022,
2854,
290,
1100,
1799,
25,
628,
220,
220,
220,
220,
220,
220,
220,
352,
13,
20937,
3275,
1635,
1640,
1123,
9,
3119,
338,
3218,
5408,
357,
3549,
31744,
2438,
8,
198,
220,
220,
220,
220,
220,
220,
220,
362,
13,
20937,
3275,
1635,
27078,
9,
1262,
257,
517,
3716,
3218,
5408,
357,
27903,
2854,
8,
628,
220,
220,
220,
220,
220,
220,
220,
314,
3853,
284,
3494,
1303,
17,
523,
326,
262,
4610,
16252,
1365,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
26571,
3275,
5128,
1366,
198,
220,
220,
220,
611,
2099,
7,
20500,
8,
14512,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
5994,
12331,
7203,
20500,
11507,
1276,
307,
257,
4731,
4943,
628,
220,
220,
220,
1303,
1366,
4645,
326,
356,
821,
1016,
284,
1441,
357,
40386,
8,
198,
220,
220,
220,
6608,
796,
17268,
13,
12286,
11600,
7,
4868,
8,
628,
220,
220,
220,
1303,
3218,
14700,
973,
284,
7925,
6608,
422,
3275,
198,
220,
220,
220,
23337,
62,
49864,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
434,
507,
1,
220,
1058,
374,
1,
31,
59,
86,
10,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
368,
6210,
684,
1,
1058,
374,
1,
59,
38016,
86,
10,
30,
22725,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
28751,
1,
220,
220,
220,
220,
1058,
374,
1,
5450,
30,
1378,
58,
61,
59,
82,
48688,
1,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1114,
21654,
11,
7048,
326,
705,
28751,
6,
779,
262,
2638,
7,
82,
8,
10289,
7791,
13,
198,
220,
220,
220,
383,
5794,
286,
257,
10289,
460,
307,
845,
2950,
13,
317,
517,
3376,
11,
2276,
3164,
198,
220,
220,
220,
561,
307,
284,
2291,
3294,
16546,
11,
1061,
262,
30978,
329,
10289,
17519,
357,
41150,
39260,
21,
11,
1248,
2919,
828,
3503,
13,
198,
220,
220,
220,
770,
561,
7800,
257,
3716,
3218,
5408,
2354,
262,
8354,
286,
428,
5517,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
3218,
5408,
3912,
973,
329,
2989,
198,
220,
220,
220,
3912,
796,
374,
1,
4,
82,
91,
4,
82,
91,
4,
82,
1,
4064,
357,
31553,
62,
49864,
14692,
434,
507,
33116,
23337,
62,
49864,
14692,
368,
6210,
684,
33116,
23337,
62,
49864,
14692,
28751,
8973,
8,
628,
220,
220,
220,
329,
2872,
287,
302,
13,
19796,
439,
7,
33279,
11,
3275,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9058,
1994,
14,
8367,
9633,
329,
6608,
22155,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
11,
1988,
796,
6045,
11,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
611,
302,
13,
15699,
7,
31553,
62,
49864,
14692,
434,
507,
33116,
2872,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
796,
366,
434,
507,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2872,
58,
16,
47715,
1303,
44212,
35626,
1,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
302,
13,
15699,
7,
31553,
62,
49864,
14692,
368,
6210,
684,
33116,
2872,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
796,
366,
368,
6210,
684,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
2872,
58,
16,
21912,
16,
60,
1303,
30629,
5796,
9618,
16725,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
302,
13,
15699,
7,
31553,
62,
49864,
14692,
28751,
33116,
2872,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
220,
796,
2872,
1303,
366,
4023,
1378,
6956,
13,
785,
30487,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
651,
3670,
286,
10289,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3670,
796,
6045,
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,
277,
220,
220,
220,
220,
796,
2956,
297,
571,
13,
6371,
9654,
7,
6371,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27711,
220,
796,
277,
13,
961,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3670,
796,
23762,
50,
10486,
7,
6494,
737,
7839,
13,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
24418,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
7203,
40,
14,
46,
4049,
15090,
15,
92,
2599,
1391,
16,
32239,
77,
1911,
18982,
7,
68,
13,
8056,
3919,
11,
304,
13,
301,
11751,
1472,
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,
2845,
11532,
46677,
13,
28656,
10044,
325,
12331,
355,
304,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
7203,
28656,
10044,
325,
12331,
4049,
15090,
15,
92,
2599,
1391,
16,
32239,
77,
1911,
18982,
7,
68,
13,
8056,
3919,
11,
304,
13,
301,
11751,
1472,
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,
3443,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
13,
19836,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
796,
366,
28751,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
6371,
1,
220,
220,
1058,
19016,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
7839,
1,
1058,
3670,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
301,
1082,
81,
13,
13564,
7203,
43917,
25,
262,
1708,
2872,
2492,
470,
13686,
25,
1391,
15,
32239,
77,
1911,
18982,
7,
15699,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2555,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3650,
13686,
1994,
14,
8367,
9633,
287,
6608,
1635,
12286,
11600,
9,
198,
220,
220,
220,
220,
220,
220,
220,
6608,
58,
2539,
4083,
33295,
7,
8367,
8,
628,
220,
220,
220,
1441,
33918,
13,
67,
8142,
7,
48310,
8,
198
] | 2.43221 | 1,335 |
#!usr/bin/env python
__author__ = "Xiaoguang Zhang"
__email__ = "[email protected]"
__copyright__ = "Copyright 2020 Westwood Robotics"
__date__ = "Jan 8, 2021"
__version__ = "0.1.2"
__status__ = "Production"
# Ping and search for available BEARs
from pybear import Manager
# Define port and baud rate
bear_port = "COM7"
bear_baudrate = 8000000
# Define ID search range
id_range = range(0, 9)
bear = Manager.BEAR(port=bear_port, baudrate=bear_baudrate)
bear_list = []
found = False
for i in id_range:
m_id = i
print("Pinging BEAR with ID %d" % m_id)
data = bear.ping(m_id)
if data:
print("Found BEAR with ID %d." % m_id)
found = True
bear_list.append(m_id)
if found:
print("Search done. Total of %d BEARs found. And their IDs are:\n" % len(bear_list))
print(bear_list)
else:
print("Search done. No BEAR found.")
| [
2,
0,
14629,
14,
8800,
14,
24330,
21015,
198,
834,
9800,
834,
796,
366,
55,
544,
519,
84,
648,
19439,
1,
198,
834,
12888,
834,
796,
366,
87,
23548,
648,
31,
7038,
3822,
305,
13645,
873,
13,
952,
1,
198,
834,
22163,
4766,
834,
796,
366,
15269,
12131,
2688,
3822,
47061,
1,
198,
834,
4475,
834,
796,
366,
12128,
807,
11,
33448,
1,
198,
834,
9641,
834,
796,
366,
15,
13,
16,
13,
17,
1,
198,
834,
13376,
834,
796,
366,
35027,
1,
198,
198,
2,
34263,
290,
2989,
329,
1695,
9348,
1503,
82,
198,
6738,
12972,
33227,
1330,
9142,
198,
198,
2,
2896,
500,
2493,
290,
275,
3885,
2494,
198,
33227,
62,
634,
796,
366,
9858,
22,
1,
198,
33227,
62,
65,
3885,
4873,
796,
807,
10535,
198,
2,
2896,
500,
4522,
2989,
2837,
198,
312,
62,
9521,
796,
2837,
7,
15,
11,
860,
8,
198,
198,
33227,
796,
9142,
13,
12473,
1503,
7,
634,
28,
33227,
62,
634,
11,
275,
3885,
4873,
28,
33227,
62,
65,
3885,
4873,
8,
198,
33227,
62,
4868,
796,
17635,
198,
9275,
796,
10352,
198,
1640,
1312,
287,
4686,
62,
9521,
25,
198,
220,
220,
220,
285,
62,
312,
796,
1312,
198,
220,
220,
220,
3601,
7203,
47,
14146,
9348,
1503,
351,
4522,
4064,
67,
1,
4064,
285,
62,
312,
8,
198,
220,
220,
220,
1366,
796,
6842,
13,
13886,
7,
76,
62,
312,
8,
198,
220,
220,
220,
611,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7203,
21077,
9348,
1503,
351,
4522,
4064,
67,
526,
4064,
285,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1043,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
6842,
62,
4868,
13,
33295,
7,
76,
62,
312,
8,
198,
361,
1043,
25,
198,
220,
220,
220,
3601,
7203,
18243,
1760,
13,
7472,
286,
4064,
67,
9348,
1503,
82,
1043,
13,
843,
511,
32373,
389,
7479,
77,
1,
4064,
18896,
7,
33227,
62,
4868,
4008,
198,
220,
220,
220,
3601,
7,
33227,
62,
4868,
8,
198,
17772,
25,
198,
220,
220,
220,
3601,
7203,
18243,
1760,
13,
1400,
9348,
1503,
1043,
19570,
198
] | 2.464789 | 355 |
from django.test import TestCase
import seaborn
import pandas
from matplotlib import pyplot as plt
from belleflopt import benefit, models, load
| [
6738,
42625,
14208,
13,
9288,
1330,
6208,
20448,
198,
198,
11748,
384,
397,
1211,
198,
11748,
19798,
292,
198,
6738,
2603,
29487,
8019,
1330,
12972,
29487,
355,
458,
83,
198,
198,
6738,
894,
293,
2704,
8738,
1330,
4414,
11,
4981,
11,
3440,
628
] | 3.418605 | 43 |
import torch
import torchaudio
import torch.utils.data
import torch.nn.functional as F
from librosa.core import load, resample
from librosa.util import normalize
from pathlib import Path
import numpy as np
import random
from modules.helper_functions import files_to_list
from dataset.audio_augs import AudioAugs
class AudioDataset(torch.utils.data.Dataset):
"""
This is the main class that calculates the spectrogram and returns the
spectrogram, audio pair.
"""
def load_wav_to_torch(self, full_path):
"""
Loads wavdata into torch array
"""
data, sampling_rate = load(full_path, sr=self.sampling_rate)
data = 0.95 * normalize(data)
data = torch.from_numpy(data).float()
if self.augment:
data = self.augment(data)
return data, sampling_rate | [
11748,
28034,
198,
11748,
28034,
24051,
198,
11748,
28034,
13,
26791,
13,
7890,
198,
11748,
28034,
13,
20471,
13,
45124,
355,
376,
198,
6738,
9195,
4951,
64,
13,
7295,
1330,
3440,
11,
581,
1403,
198,
6738,
9195,
4951,
64,
13,
22602,
1330,
3487,
1096,
198,
6738,
3108,
8019,
1330,
10644,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
4738,
198,
6738,
13103,
13,
2978,
525,
62,
12543,
2733,
1330,
3696,
62,
1462,
62,
4868,
198,
6738,
27039,
13,
24051,
62,
7493,
82,
1330,
13491,
32,
10339,
628,
198,
4871,
13491,
27354,
292,
316,
7,
13165,
354,
13,
26791,
13,
7890,
13,
27354,
292,
316,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
770,
318,
262,
1388,
1398,
326,
43707,
262,
5444,
39529,
290,
5860,
262,
198,
220,
220,
220,
5444,
39529,
11,
6597,
5166,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
3440,
62,
45137,
62,
1462,
62,
13165,
354,
7,
944,
11,
1336,
62,
6978,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8778,
82,
266,
615,
7890,
656,
28034,
7177,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
11,
19232,
62,
4873,
796,
3440,
7,
12853,
62,
6978,
11,
19677,
28,
944,
13,
37687,
11347,
62,
4873,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
657,
13,
3865,
1635,
3487,
1096,
7,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
220,
28034,
13,
6738,
62,
77,
32152,
7,
7890,
737,
22468,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
559,
5154,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
2116,
13,
559,
5154,
7,
7890,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1366,
11,
19232,
62,
4873
] | 2.545723 | 339 |
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
#
# 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.
# This code is refer from: https://github.com/viig99/LS-ACELoss
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import paddle
import paddle.nn as nn
| [
2,
6634,
357,
66,
8,
33448,
350,
37382,
47,
37382,
46665,
13,
1439,
6923,
12224,
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,
2,
770,
2438,
318,
3522,
422,
25,
3740,
1378,
12567,
13,
785,
14,
8903,
328,
2079,
14,
6561,
12,
2246,
3698,
793,
198,
198,
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
6738,
11593,
37443,
834,
1330,
7297,
198,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
198,
198,
11748,
39517,
198,
11748,
39517,
13,
20471,
355,
299,
77,
628
] | 3.736364 | 220 |
import lightbulb
from hikari.permissions import Permissions
from lightbulb import checks, context
from sqlalchemy import select
from remi.db.engine import async_config_session
from remi.db.schema.config import StaffRole
@lightbulb.Check
@lightbulb.Check
| [
11748,
1657,
15065,
65,
198,
6738,
289,
1134,
2743,
13,
525,
8481,
1330,
2448,
8481,
198,
6738,
1657,
15065,
65,
1330,
8794,
11,
4732,
198,
6738,
44161,
282,
26599,
1330,
2922,
198,
198,
6738,
816,
72,
13,
9945,
13,
18392,
1330,
30351,
62,
11250,
62,
29891,
198,
6738,
816,
72,
13,
9945,
13,
15952,
2611,
13,
11250,
1330,
9983,
47445,
628,
198,
31,
2971,
15065,
65,
13,
9787,
628,
198,
31,
2971,
15065,
65,
13,
9787,
198
] | 3.363636 | 77 |
# -*- coding: utf-8 -*-
from mahjong.constants import EAST, SOUTH, WEST, NORTH
from mahjong.hand_calculating.yaku import Yaku
from mahjong.utils import is_pon, is_pair
class Shousuushii(Yaku):
"""
The hand contains three sets of winds and a pair of the remaining wind
"""
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
42768,
32428,
13,
9979,
1187,
1330,
412,
11262,
11,
30065,
4221,
11,
370,
6465,
11,
25273,
4221,
198,
6738,
42768,
32428,
13,
4993,
62,
9948,
3129,
803,
13,
88,
8719,
1330,
575,
8719,
198,
6738,
42768,
32428,
13,
26791,
1330,
318,
62,
79,
261,
11,
318,
62,
24874,
628,
198,
4871,
911,
516,
84,
1530,
4178,
7,
56,
8719,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
383,
1021,
4909,
1115,
5621,
286,
13520,
290,
257,
5166,
286,
262,
5637,
2344,
198,
220,
220,
220,
37227,
198
] | 2.75 | 104 |
from collections import deque
from typing import List
from functools import reduce
if __name__ == '__main__':
input = get_input()
print(part_one(input))
print(part_one_alt(input))
print(part_two(input))
print(part_two_alt(input))
print(part_two_ext(input))
| [
6738,
17268,
1330,
390,
4188,
198,
6738,
19720,
1330,
7343,
198,
6738,
1257,
310,
10141,
1330,
4646,
628,
628,
628,
628,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
5128,
796,
651,
62,
15414,
3419,
198,
220,
220,
220,
3601,
7,
3911,
62,
505,
7,
15414,
4008,
198,
220,
220,
220,
3601,
7,
3911,
62,
505,
62,
2501,
7,
15414,
4008,
198,
220,
220,
220,
3601,
7,
3911,
62,
11545,
7,
15414,
4008,
198,
220,
220,
220,
3601,
7,
3911,
62,
11545,
62,
2501,
7,
15414,
4008,
198,
220,
220,
220,
3601,
7,
3911,
62,
11545,
62,
2302,
7,
15414,
4008,
198
] | 2.651376 | 109 |
"""Support for Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier."""
import asyncio
from enum import Enum
from functools import partial
import logging
from miio import ( # pylint: disable=import-error
AirFresh,
AirHumidifier,
AirPurifier,
Device,
DeviceException,
)
from miio.airfresh import ( # pylint: disable=import-error, import-error
LedBrightness as AirfreshLedBrightness,
OperationMode as AirfreshOperationMode,
)
from miio.airhumidifier import ( # pylint: disable=import-error, import-error
LedBrightness as AirhumidifierLedBrightness,
OperationMode as AirhumidifierOperationMode,
)
from miio.airpurifier import ( # pylint: disable=import-error, import-error
LedBrightness as AirpurifierLedBrightness,
OperationMode as AirpurifierOperationMode,
)
import voluptuous as vol
from homeassistant.components.fan import PLATFORM_SCHEMA, SUPPORT_SET_SPEED, FanEntity
from homeassistant.const import (
ATTR_ENTITY_ID,
ATTR_MODE,
CONF_HOST,
CONF_NAME,
CONF_TOKEN,
)
from homeassistant.exceptions import PlatformNotReady
import homeassistant.helpers.config_validation as cv
from .const import (
DOMAIN,
SERVICE_RESET_FILTER,
SERVICE_SET_AUTO_DETECT_OFF,
SERVICE_SET_AUTO_DETECT_ON,
SERVICE_SET_BUZZER_OFF,
SERVICE_SET_BUZZER_ON,
SERVICE_SET_CHILD_LOCK_OFF,
SERVICE_SET_CHILD_LOCK_ON,
SERVICE_SET_DRY_OFF,
SERVICE_SET_DRY_ON,
SERVICE_SET_EXTRA_FEATURES,
SERVICE_SET_FAVORITE_LEVEL,
SERVICE_SET_LEARN_MODE_OFF,
SERVICE_SET_LEARN_MODE_ON,
SERVICE_SET_LED_BRIGHTNESS,
SERVICE_SET_LED_OFF,
SERVICE_SET_LED_ON,
SERVICE_SET_TARGET_HUMIDITY,
SERVICE_SET_VOLUME,
)
_LOGGER = logging.getLogger(__name__)
DEFAULT_NAME = "Xiaomi Miio Device"
DATA_KEY = "fan.xiaomi_miio"
CONF_MODEL = "model"
MODEL_AIRPURIFIER_V1 = "zhimi.airpurifier.v1"
MODEL_AIRPURIFIER_V2 = "zhimi.airpurifier.v2"
MODEL_AIRPURIFIER_V3 = "zhimi.airpurifier.v3"
MODEL_AIRPURIFIER_V5 = "zhimi.airpurifier.v5"
MODEL_AIRPURIFIER_PRO = "zhimi.airpurifier.v6"
MODEL_AIRPURIFIER_PRO_V7 = "zhimi.airpurifier.v7"
MODEL_AIRPURIFIER_M1 = "zhimi.airpurifier.m1"
MODEL_AIRPURIFIER_M2 = "zhimi.airpurifier.m2"
MODEL_AIRPURIFIER_MA1 = "zhimi.airpurifier.ma1"
MODEL_AIRPURIFIER_MA2 = "zhimi.airpurifier.ma2"
MODEL_AIRPURIFIER_SA1 = "zhimi.airpurifier.sa1"
MODEL_AIRPURIFIER_SA2 = "zhimi.airpurifier.sa2"
MODEL_AIRPURIFIER_2S = "zhimi.airpurifier.mc1"
MODEL_AIRHUMIDIFIER_V1 = "zhimi.humidifier.v1"
MODEL_AIRHUMIDIFIER_CA1 = "zhimi.humidifier.ca1"
MODEL_AIRHUMIDIFIER_CB1 = "zhimi.humidifier.cb1"
MODEL_AIRFRESH_VA2 = "zhimi.airfresh.va2"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_HOST): cv.string,
vol.Required(CONF_TOKEN): vol.All(cv.string, vol.Length(min=32, max=32)),
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_MODEL): vol.In(
[
MODEL_AIRPURIFIER_V1,
MODEL_AIRPURIFIER_V2,
MODEL_AIRPURIFIER_V3,
MODEL_AIRPURIFIER_V5,
MODEL_AIRPURIFIER_PRO,
MODEL_AIRPURIFIER_PRO_V7,
MODEL_AIRPURIFIER_M1,
MODEL_AIRPURIFIER_M2,
MODEL_AIRPURIFIER_MA1,
MODEL_AIRPURIFIER_MA2,
MODEL_AIRPURIFIER_SA1,
MODEL_AIRPURIFIER_SA2,
MODEL_AIRPURIFIER_2S,
MODEL_AIRHUMIDIFIER_V1,
MODEL_AIRHUMIDIFIER_CA1,
MODEL_AIRHUMIDIFIER_CB1,
MODEL_AIRFRESH_VA2,
]
),
}
)
ATTR_MODEL = "model"
# Air Purifier
ATTR_TEMPERATURE = "temperature"
ATTR_HUMIDITY = "humidity"
ATTR_AIR_QUALITY_INDEX = "aqi"
ATTR_FILTER_HOURS_USED = "filter_hours_used"
ATTR_FILTER_LIFE = "filter_life_remaining"
ATTR_FAVORITE_LEVEL = "favorite_level"
ATTR_BUZZER = "buzzer"
ATTR_CHILD_LOCK = "child_lock"
ATTR_LED = "led"
ATTR_LED_BRIGHTNESS = "led_brightness"
ATTR_MOTOR_SPEED = "motor_speed"
ATTR_AVERAGE_AIR_QUALITY_INDEX = "average_aqi"
ATTR_PURIFY_VOLUME = "purify_volume"
ATTR_BRIGHTNESS = "brightness"
ATTR_LEVEL = "level"
ATTR_MOTOR2_SPEED = "motor2_speed"
ATTR_ILLUMINANCE = "illuminance"
ATTR_FILTER_RFID_PRODUCT_ID = "filter_rfid_product_id"
ATTR_FILTER_RFID_TAG = "filter_rfid_tag"
ATTR_FILTER_TYPE = "filter_type"
ATTR_LEARN_MODE = "learn_mode"
ATTR_SLEEP_TIME = "sleep_time"
ATTR_SLEEP_LEARN_COUNT = "sleep_mode_learn_count"
ATTR_EXTRA_FEATURES = "extra_features"
ATTR_FEATURES = "features"
ATTR_TURBO_MODE_SUPPORTED = "turbo_mode_supported"
ATTR_AUTO_DETECT = "auto_detect"
ATTR_SLEEP_MODE = "sleep_mode"
ATTR_VOLUME = "volume"
ATTR_USE_TIME = "use_time"
ATTR_BUTTON_PRESSED = "button_pressed"
# Air Humidifier
ATTR_TARGET_HUMIDITY = "target_humidity"
ATTR_TRANS_LEVEL = "trans_level"
ATTR_HARDWARE_VERSION = "hardware_version"
# Air Humidifier CA
ATTR_MOTOR_SPEED = "motor_speed"
ATTR_DEPTH = "depth"
ATTR_DRY = "dry"
# Air Fresh
ATTR_CO2 = "co2"
# Map attributes to properties of the state object
AVAILABLE_ATTRIBUTES_AIRPURIFIER_COMMON = {
ATTR_TEMPERATURE: "temperature",
ATTR_HUMIDITY: "humidity",
ATTR_AIR_QUALITY_INDEX: "aqi",
ATTR_MODE: "mode",
ATTR_FILTER_HOURS_USED: "filter_hours_used",
ATTR_FILTER_LIFE: "filter_life_remaining",
ATTR_FAVORITE_LEVEL: "favorite_level",
ATTR_CHILD_LOCK: "child_lock",
ATTR_LED: "led",
ATTR_MOTOR_SPEED: "motor_speed",
ATTR_AVERAGE_AIR_QUALITY_INDEX: "average_aqi",
ATTR_LEARN_MODE: "learn_mode",
ATTR_EXTRA_FEATURES: "extra_features",
ATTR_TURBO_MODE_SUPPORTED: "turbo_mode_supported",
ATTR_BUTTON_PRESSED: "button_pressed",
}
AVAILABLE_ATTRIBUTES_AIRPURIFIER = {
**AVAILABLE_ATTRIBUTES_AIRPURIFIER_COMMON,
ATTR_PURIFY_VOLUME: "purify_volume",
ATTR_SLEEP_TIME: "sleep_time",
ATTR_SLEEP_LEARN_COUNT: "sleep_mode_learn_count",
ATTR_AUTO_DETECT: "auto_detect",
ATTR_USE_TIME: "use_time",
ATTR_BUZZER: "buzzer",
ATTR_LED_BRIGHTNESS: "led_brightness",
ATTR_SLEEP_MODE: "sleep_mode",
}
AVAILABLE_ATTRIBUTES_AIRPURIFIER_PRO = {
**AVAILABLE_ATTRIBUTES_AIRPURIFIER_COMMON,
ATTR_PURIFY_VOLUME: "purify_volume",
ATTR_USE_TIME: "use_time",
ATTR_FILTER_RFID_PRODUCT_ID: "filter_rfid_product_id",
ATTR_FILTER_RFID_TAG: "filter_rfid_tag",
ATTR_FILTER_TYPE: "filter_type",
ATTR_ILLUMINANCE: "illuminance",
ATTR_MOTOR2_SPEED: "motor2_speed",
ATTR_VOLUME: "volume",
# perhaps supported but unconfirmed
ATTR_AUTO_DETECT: "auto_detect",
ATTR_SLEEP_TIME: "sleep_time",
ATTR_SLEEP_LEARN_COUNT: "sleep_mode_learn_count",
}
AVAILABLE_ATTRIBUTES_AIRPURIFIER_PRO_V7 = {
**AVAILABLE_ATTRIBUTES_AIRPURIFIER_COMMON,
ATTR_FILTER_RFID_PRODUCT_ID: "filter_rfid_product_id",
ATTR_FILTER_RFID_TAG: "filter_rfid_tag",
ATTR_FILTER_TYPE: "filter_type",
ATTR_ILLUMINANCE: "illuminance",
ATTR_MOTOR2_SPEED: "motor2_speed",
ATTR_VOLUME: "volume",
}
AVAILABLE_ATTRIBUTES_AIRPURIFIER_2S = {
**AVAILABLE_ATTRIBUTES_AIRPURIFIER_COMMON,
ATTR_BUZZER: "buzzer",
ATTR_FILTER_RFID_PRODUCT_ID: "filter_rfid_product_id",
ATTR_FILTER_RFID_TAG: "filter_rfid_tag",
ATTR_FILTER_TYPE: "filter_type",
ATTR_ILLUMINANCE: "illuminance",
}
AVAILABLE_ATTRIBUTES_AIRPURIFIER_V3 = {
# Common set isn't used here. It's a very basic version of the device.
ATTR_AIR_QUALITY_INDEX: "aqi",
ATTR_MODE: "mode",
ATTR_LED: "led",
ATTR_BUZZER: "buzzer",
ATTR_CHILD_LOCK: "child_lock",
ATTR_ILLUMINANCE: "illuminance",
ATTR_FILTER_HOURS_USED: "filter_hours_used",
ATTR_FILTER_LIFE: "filter_life_remaining",
ATTR_MOTOR_SPEED: "motor_speed",
# perhaps supported but unconfirmed
ATTR_AVERAGE_AIR_QUALITY_INDEX: "average_aqi",
ATTR_VOLUME: "volume",
ATTR_MOTOR2_SPEED: "motor2_speed",
ATTR_FILTER_RFID_PRODUCT_ID: "filter_rfid_product_id",
ATTR_FILTER_RFID_TAG: "filter_rfid_tag",
ATTR_FILTER_TYPE: "filter_type",
ATTR_PURIFY_VOLUME: "purify_volume",
ATTR_LEARN_MODE: "learn_mode",
ATTR_SLEEP_TIME: "sleep_time",
ATTR_SLEEP_LEARN_COUNT: "sleep_mode_learn_count",
ATTR_EXTRA_FEATURES: "extra_features",
ATTR_AUTO_DETECT: "auto_detect",
ATTR_USE_TIME: "use_time",
ATTR_BUTTON_PRESSED: "button_pressed",
}
AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_COMMON = {
ATTR_TEMPERATURE: "temperature",
ATTR_HUMIDITY: "humidity",
ATTR_MODE: "mode",
ATTR_BUZZER: "buzzer",
ATTR_CHILD_LOCK: "child_lock",
ATTR_TARGET_HUMIDITY: "target_humidity",
ATTR_LED_BRIGHTNESS: "led_brightness",
ATTR_USE_TIME: "use_time",
ATTR_HARDWARE_VERSION: "hardware_version",
}
AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER = {
**AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_COMMON,
ATTR_TRANS_LEVEL: "trans_level",
ATTR_BUTTON_PRESSED: "button_pressed",
}
AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA_AND_CB = {
**AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_COMMON,
ATTR_MOTOR_SPEED: "motor_speed",
ATTR_DEPTH: "depth",
ATTR_DRY: "dry",
}
AVAILABLE_ATTRIBUTES_AIRFRESH = {
ATTR_TEMPERATURE: "temperature",
ATTR_AIR_QUALITY_INDEX: "aqi",
ATTR_AVERAGE_AIR_QUALITY_INDEX: "average_aqi",
ATTR_CO2: "co2",
ATTR_HUMIDITY: "humidity",
ATTR_MODE: "mode",
ATTR_LED: "led",
ATTR_LED_BRIGHTNESS: "led_brightness",
ATTR_BUZZER: "buzzer",
ATTR_CHILD_LOCK: "child_lock",
ATTR_FILTER_LIFE: "filter_life_remaining",
ATTR_FILTER_HOURS_USED: "filter_hours_used",
ATTR_USE_TIME: "use_time",
ATTR_MOTOR_SPEED: "motor_speed",
ATTR_EXTRA_FEATURES: "extra_features",
}
OPERATION_MODES_AIRPURIFIER = ["Auto", "Silent", "Favorite", "Idle"]
OPERATION_MODES_AIRPURIFIER_PRO = ["Auto", "Silent", "Favorite"]
OPERATION_MODES_AIRPURIFIER_PRO_V7 = OPERATION_MODES_AIRPURIFIER_PRO
OPERATION_MODES_AIRPURIFIER_2S = ["Auto", "Silent", "Favorite"]
OPERATION_MODES_AIRPURIFIER_V3 = [
"Auto",
"Silent",
"Favorite",
"Idle",
"Medium",
"High",
"Strong",
]
OPERATION_MODES_AIRFRESH = ["Auto", "Silent", "Interval", "Low", "Middle", "Strong"]
SUCCESS = ["ok"]
FEATURE_SET_BUZZER = 1
FEATURE_SET_LED = 2
FEATURE_SET_CHILD_LOCK = 4
FEATURE_SET_LED_BRIGHTNESS = 8
FEATURE_SET_FAVORITE_LEVEL = 16
FEATURE_SET_AUTO_DETECT = 32
FEATURE_SET_LEARN_MODE = 64
FEATURE_SET_VOLUME = 128
FEATURE_RESET_FILTER = 256
FEATURE_SET_EXTRA_FEATURES = 512
FEATURE_SET_TARGET_HUMIDITY = 1024
FEATURE_SET_DRY = 2048
FEATURE_FLAGS_AIRPURIFIER = (
FEATURE_SET_BUZZER
| FEATURE_SET_CHILD_LOCK
| FEATURE_SET_LED
| FEATURE_SET_LED_BRIGHTNESS
| FEATURE_SET_FAVORITE_LEVEL
| FEATURE_SET_LEARN_MODE
| FEATURE_RESET_FILTER
| FEATURE_SET_EXTRA_FEATURES
)
FEATURE_FLAGS_AIRPURIFIER_PRO = (
FEATURE_SET_CHILD_LOCK
| FEATURE_SET_LED
| FEATURE_SET_FAVORITE_LEVEL
| FEATURE_SET_AUTO_DETECT
| FEATURE_SET_VOLUME
)
FEATURE_FLAGS_AIRPURIFIER_PRO_V7 = (
FEATURE_SET_CHILD_LOCK
| FEATURE_SET_LED
| FEATURE_SET_FAVORITE_LEVEL
| FEATURE_SET_VOLUME
)
FEATURE_FLAGS_AIRPURIFIER_2S = (
FEATURE_SET_BUZZER
| FEATURE_SET_CHILD_LOCK
| FEATURE_SET_LED
| FEATURE_SET_FAVORITE_LEVEL
)
FEATURE_FLAGS_AIRPURIFIER_V3 = (
FEATURE_SET_BUZZER | FEATURE_SET_CHILD_LOCK | FEATURE_SET_LED
)
FEATURE_FLAGS_AIRHUMIDIFIER = (
FEATURE_SET_BUZZER
| FEATURE_SET_CHILD_LOCK
| FEATURE_SET_LED
| FEATURE_SET_LED_BRIGHTNESS
| FEATURE_SET_TARGET_HUMIDITY
)
FEATURE_FLAGS_AIRHUMIDIFIER_CA_AND_CB = FEATURE_FLAGS_AIRHUMIDIFIER | FEATURE_SET_DRY
FEATURE_FLAGS_AIRFRESH = (
FEATURE_SET_BUZZER
| FEATURE_SET_CHILD_LOCK
| FEATURE_SET_LED
| FEATURE_SET_LED_BRIGHTNESS
| FEATURE_RESET_FILTER
| FEATURE_SET_EXTRA_FEATURES
)
AIRPURIFIER_SERVICE_SCHEMA = vol.Schema({vol.Optional(ATTR_ENTITY_ID): cv.entity_ids})
SERVICE_SCHEMA_LED_BRIGHTNESS = AIRPURIFIER_SERVICE_SCHEMA.extend(
{vol.Required(ATTR_BRIGHTNESS): vol.All(vol.Coerce(int), vol.Clamp(min=0, max=2))}
)
SERVICE_SCHEMA_FAVORITE_LEVEL = AIRPURIFIER_SERVICE_SCHEMA.extend(
{vol.Required(ATTR_LEVEL): vol.All(vol.Coerce(int), vol.Clamp(min=0, max=17))}
)
SERVICE_SCHEMA_VOLUME = AIRPURIFIER_SERVICE_SCHEMA.extend(
{vol.Required(ATTR_VOLUME): vol.All(vol.Coerce(int), vol.Clamp(min=0, max=100))}
)
SERVICE_SCHEMA_EXTRA_FEATURES = AIRPURIFIER_SERVICE_SCHEMA.extend(
{vol.Required(ATTR_FEATURES): vol.All(vol.Coerce(int), vol.Range(min=0))}
)
SERVICE_SCHEMA_TARGET_HUMIDITY = AIRPURIFIER_SERVICE_SCHEMA.extend(
{
vol.Required(ATTR_HUMIDITY): vol.All(
vol.Coerce(int), vol.In([30, 40, 50, 60, 70, 80])
)
}
)
SERVICE_TO_METHOD = {
SERVICE_SET_BUZZER_ON: {"method": "async_set_buzzer_on"},
SERVICE_SET_BUZZER_OFF: {"method": "async_set_buzzer_off"},
SERVICE_SET_LED_ON: {"method": "async_set_led_on"},
SERVICE_SET_LED_OFF: {"method": "async_set_led_off"},
SERVICE_SET_CHILD_LOCK_ON: {"method": "async_set_child_lock_on"},
SERVICE_SET_CHILD_LOCK_OFF: {"method": "async_set_child_lock_off"},
SERVICE_SET_AUTO_DETECT_ON: {"method": "async_set_auto_detect_on"},
SERVICE_SET_AUTO_DETECT_OFF: {"method": "async_set_auto_detect_off"},
SERVICE_SET_LEARN_MODE_ON: {"method": "async_set_learn_mode_on"},
SERVICE_SET_LEARN_MODE_OFF: {"method": "async_set_learn_mode_off"},
SERVICE_RESET_FILTER: {"method": "async_reset_filter"},
SERVICE_SET_LED_BRIGHTNESS: {
"method": "async_set_led_brightness",
"schema": SERVICE_SCHEMA_LED_BRIGHTNESS,
},
SERVICE_SET_FAVORITE_LEVEL: {
"method": "async_set_favorite_level",
"schema": SERVICE_SCHEMA_FAVORITE_LEVEL,
},
SERVICE_SET_VOLUME: {"method": "async_set_volume", "schema": SERVICE_SCHEMA_VOLUME},
SERVICE_SET_EXTRA_FEATURES: {
"method": "async_set_extra_features",
"schema": SERVICE_SCHEMA_EXTRA_FEATURES,
},
SERVICE_SET_TARGET_HUMIDITY: {
"method": "async_set_target_humidity",
"schema": SERVICE_SCHEMA_TARGET_HUMIDITY,
},
SERVICE_SET_DRY_ON: {"method": "async_set_dry_on"},
SERVICE_SET_DRY_OFF: {"method": "async_set_dry_off"},
}
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the miio fan device from config."""
if DATA_KEY not in hass.data:
hass.data[DATA_KEY] = {}
host = config[CONF_HOST]
token = config[CONF_TOKEN]
name = config[CONF_NAME]
model = config.get(CONF_MODEL)
_LOGGER.info("Initializing with host %s (token %s...)", host, token[:5])
unique_id = None
if model is None:
try:
miio_device = Device(host, token)
device_info = await hass.async_add_executor_job(miio_device.info)
model = device_info.model
unique_id = f"{model}-{device_info.mac_address}"
_LOGGER.info(
"%s %s %s detected",
model,
device_info.firmware_version,
device_info.hardware_version,
)
except DeviceException:
raise PlatformNotReady
if model.startswith("zhimi.airpurifier."):
air_purifier = AirPurifier(host, token)
device = XiaomiAirPurifier(name, air_purifier, model, unique_id)
elif model.startswith("zhimi.humidifier."):
air_humidifier = AirHumidifier(host, token, model=model)
device = XiaomiAirHumidifier(name, air_humidifier, model, unique_id)
elif model.startswith("zhimi.airfresh."):
air_fresh = AirFresh(host, token)
device = XiaomiAirFresh(name, air_fresh, model, unique_id)
else:
_LOGGER.error(
"Unsupported device found! Please create an issue at "
"https://github.com/syssi/xiaomi_airpurifier/issues "
"and provide the following data: %s",
model,
)
return False
hass.data[DATA_KEY][host] = device
async_add_entities([device], update_before_add=True)
async def async_service_handler(service):
"""Map services to methods on XiaomiAirPurifier."""
method = SERVICE_TO_METHOD.get(service.service)
params = {
key: value for key, value in service.data.items() if key != ATTR_ENTITY_ID
}
entity_ids = service.data.get(ATTR_ENTITY_ID)
if entity_ids:
devices = [
device
for device in hass.data[DATA_KEY].values()
if device.entity_id in entity_ids
]
else:
devices = hass.data[DATA_KEY].values()
update_tasks = []
for device in devices:
if not hasattr(device, method["method"]):
continue
await getattr(device, method["method"])(**params)
update_tasks.append(device.async_update_ha_state(True))
if update_tasks:
await asyncio.wait(update_tasks)
for air_purifier_service in SERVICE_TO_METHOD:
schema = SERVICE_TO_METHOD[air_purifier_service].get(
"schema", AIRPURIFIER_SERVICE_SCHEMA
)
hass.services.async_register(
DOMAIN, air_purifier_service, async_service_handler, schema=schema
)
class XiaomiGenericDevice(FanEntity):
"""Representation of a generic Xiaomi device."""
def __init__(self, name, device, model, unique_id):
"""Initialize the generic Xiaomi device."""
self._name = name
self._device = device
self._model = model
self._unique_id = unique_id
self._available = False
self._state = None
self._state_attrs = {ATTR_MODEL: self._model}
self._device_features = FEATURE_SET_CHILD_LOCK
self._skip_update = False
@property
def supported_features(self):
"""Flag supported features."""
return SUPPORT_SET_SPEED
@property
def should_poll(self):
"""Poll the device."""
return True
@property
def unique_id(self):
"""Return an unique ID."""
return self._unique_id
@property
def name(self):
"""Return the name of the device if any."""
return self._name
@property
def available(self):
"""Return true when state is known."""
return self._available
@property
def device_state_attributes(self):
"""Return the state attributes of the device."""
return self._state_attrs
@property
def is_on(self):
"""Return true if device is on."""
return self._state
@staticmethod
async def _try_command(self, mask_error, func, *args, **kwargs):
"""Call a miio device command handling error messages."""
try:
result = await self.hass.async_add_executor_job(
partial(func, *args, **kwargs)
)
_LOGGER.debug("Response received from miio device: %s", result)
return result == SUCCESS
except DeviceException as exc:
_LOGGER.error(mask_error, exc)
self._available = False
return False
async def async_turn_on(self, speed: str = None, **kwargs) -> None:
"""Turn the device on."""
if speed:
# If operation mode was set the device must not be turned on.
result = await self.async_set_speed(speed)
else:
result = await self._try_command(
"Turning the miio device on failed.", self._device.on
)
if result:
self._state = True
self._skip_update = True
async def async_turn_off(self, **kwargs) -> None:
"""Turn the device off."""
result = await self._try_command(
"Turning the miio device off failed.", self._device.off
)
if result:
self._state = False
self._skip_update = True
async def async_set_buzzer_on(self):
"""Turn the buzzer on."""
if self._device_features & FEATURE_SET_BUZZER == 0:
return
await self._try_command(
"Turning the buzzer of the miio device on failed.",
self._device.set_buzzer,
True,
)
async def async_set_buzzer_off(self):
"""Turn the buzzer off."""
if self._device_features & FEATURE_SET_BUZZER == 0:
return
await self._try_command(
"Turning the buzzer of the miio device off failed.",
self._device.set_buzzer,
False,
)
async def async_set_child_lock_on(self):
"""Turn the child lock on."""
if self._device_features & FEATURE_SET_CHILD_LOCK == 0:
return
await self._try_command(
"Turning the child lock of the miio device on failed.",
self._device.set_child_lock,
True,
)
async def async_set_child_lock_off(self):
"""Turn the child lock off."""
if self._device_features & FEATURE_SET_CHILD_LOCK == 0:
return
await self._try_command(
"Turning the child lock of the miio device off failed.",
self._device.set_child_lock,
False,
)
class XiaomiAirPurifier(XiaomiGenericDevice):
"""Representation of a Xiaomi Air Purifier."""
def __init__(self, name, device, model, unique_id):
"""Initialize the plug switch."""
super().__init__(name, device, model, unique_id)
if self._model == MODEL_AIRPURIFIER_PRO:
self._device_features = FEATURE_FLAGS_AIRPURIFIER_PRO
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRPURIFIER_PRO
self._speed_list = OPERATION_MODES_AIRPURIFIER_PRO
elif self._model == MODEL_AIRPURIFIER_PRO_V7:
self._device_features = FEATURE_FLAGS_AIRPURIFIER_PRO_V7
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRPURIFIER_PRO_V7
self._speed_list = OPERATION_MODES_AIRPURIFIER_PRO_V7
elif self._model == MODEL_AIRPURIFIER_2S:
self._device_features = FEATURE_FLAGS_AIRPURIFIER_2S
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRPURIFIER_2S
self._speed_list = OPERATION_MODES_AIRPURIFIER_2S
elif self._model == MODEL_AIRPURIFIER_V3:
self._device_features = FEATURE_FLAGS_AIRPURIFIER_V3
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRPURIFIER_V3
self._speed_list = OPERATION_MODES_AIRPURIFIER_V3
else:
self._device_features = FEATURE_FLAGS_AIRPURIFIER
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRPURIFIER
self._speed_list = OPERATION_MODES_AIRPURIFIER
self._state_attrs.update(
{attribute: None for attribute in self._available_attributes}
)
async def async_update(self):
"""Fetch state from the device."""
# On state change the device doesn't provide the new state immediately.
if self._skip_update:
self._skip_update = False
return
try:
state = await self.hass.async_add_executor_job(self._device.status)
_LOGGER.debug("Got new state: %s", state)
self._available = True
self._state = state.is_on
self._state_attrs.update(
{
key: self._extract_value_from_attribute(state, value)
for key, value in self._available_attributes.items()
}
)
except DeviceException as ex:
self._available = False
_LOGGER.error("Got exception while fetching the state: %s", ex)
@property
def speed_list(self) -> list:
"""Get the list of available speeds."""
return self._speed_list
@property
def speed(self):
"""Return the current speed."""
if self._state:
return AirpurifierOperationMode(self._state_attrs[ATTR_MODE]).name
return None
async def async_set_speed(self, speed: str) -> None:
"""Set the speed of the fan."""
if self.supported_features & SUPPORT_SET_SPEED == 0:
return
_LOGGER.debug("Setting the operation mode to: %s", speed)
await self._try_command(
"Setting operation mode of the miio device failed.",
self._device.set_mode,
AirpurifierOperationMode[speed.title()],
)
async def async_set_led_on(self):
"""Turn the led on."""
if self._device_features & FEATURE_SET_LED == 0:
return
await self._try_command(
"Turning the led of the miio device off failed.", self._device.set_led, True
)
async def async_set_led_off(self):
"""Turn the led off."""
if self._device_features & FEATURE_SET_LED == 0:
return
await self._try_command(
"Turning the led of the miio device off failed.",
self._device.set_led,
False,
)
async def async_set_led_brightness(self, brightness: int = 2):
"""Set the led brightness."""
if self._device_features & FEATURE_SET_LED_BRIGHTNESS == 0:
return
await self._try_command(
"Setting the led brightness of the miio device failed.",
self._device.set_led_brightness,
AirpurifierLedBrightness(brightness),
)
async def async_set_favorite_level(self, level: int = 1):
"""Set the favorite level."""
if self._device_features & FEATURE_SET_FAVORITE_LEVEL == 0:
return
await self._try_command(
"Setting the favorite level of the miio device failed.",
self._device.set_favorite_level,
level,
)
async def async_set_auto_detect_on(self):
"""Turn the auto detect on."""
if self._device_features & FEATURE_SET_AUTO_DETECT == 0:
return
await self._try_command(
"Turning the auto detect of the miio device on failed.",
self._device.set_auto_detect,
True,
)
async def async_set_auto_detect_off(self):
"""Turn the auto detect off."""
if self._device_features & FEATURE_SET_AUTO_DETECT == 0:
return
await self._try_command(
"Turning the auto detect of the miio device off failed.",
self._device.set_auto_detect,
False,
)
async def async_set_learn_mode_on(self):
"""Turn the learn mode on."""
if self._device_features & FEATURE_SET_LEARN_MODE == 0:
return
await self._try_command(
"Turning the learn mode of the miio device on failed.",
self._device.set_learn_mode,
True,
)
async def async_set_learn_mode_off(self):
"""Turn the learn mode off."""
if self._device_features & FEATURE_SET_LEARN_MODE == 0:
return
await self._try_command(
"Turning the learn mode of the miio device off failed.",
self._device.set_learn_mode,
False,
)
async def async_set_volume(self, volume: int = 50):
"""Set the sound volume."""
if self._device_features & FEATURE_SET_VOLUME == 0:
return
await self._try_command(
"Setting the sound volume of the miio device failed.",
self._device.set_volume,
volume,
)
async def async_set_extra_features(self, features: int = 1):
"""Set the extra features."""
if self._device_features & FEATURE_SET_EXTRA_FEATURES == 0:
return
await self._try_command(
"Setting the extra features of the miio device failed.",
self._device.set_extra_features,
features,
)
async def async_reset_filter(self):
"""Reset the filter lifetime and usage."""
if self._device_features & FEATURE_RESET_FILTER == 0:
return
await self._try_command(
"Resetting the filter lifetime of the miio device failed.",
self._device.reset_filter,
)
class XiaomiAirHumidifier(XiaomiGenericDevice):
"""Representation of a Xiaomi Air Humidifier."""
def __init__(self, name, device, model, unique_id):
"""Initialize the plug switch."""
super().__init__(name, device, model, unique_id)
if self._model in [MODEL_AIRHUMIDIFIER_CA1, MODEL_AIRHUMIDIFIER_CB1]:
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER_CA_AND_CB
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA_AND_CB
self._speed_list = [
mode.name
for mode in AirhumidifierOperationMode
if mode is not AirhumidifierOperationMode.Strong
]
else:
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER
self._speed_list = [
mode.name
for mode in AirhumidifierOperationMode
if mode is not AirhumidifierOperationMode.Auto
]
self._state_attrs.update(
{attribute: None for attribute in self._available_attributes}
)
async def async_update(self):
"""Fetch state from the device."""
# On state change the device doesn't provide the new state immediately.
if self._skip_update:
self._skip_update = False
return
try:
state = await self.hass.async_add_executor_job(self._device.status)
_LOGGER.debug("Got new state: %s", state)
self._available = True
self._state = state.is_on
self._state_attrs.update(
{
key: self._extract_value_from_attribute(state, value)
for key, value in self._available_attributes.items()
}
)
except DeviceException as ex:
self._available = False
_LOGGER.error("Got exception while fetching the state: %s", ex)
@property
def speed_list(self) -> list:
"""Get the list of available speeds."""
return self._speed_list
@property
def speed(self):
"""Return the current speed."""
if self._state:
return AirhumidifierOperationMode(self._state_attrs[ATTR_MODE]).name
return None
async def async_set_speed(self, speed: str) -> None:
"""Set the speed of the fan."""
if self.supported_features & SUPPORT_SET_SPEED == 0:
return
_LOGGER.debug("Setting the operation mode to: %s", speed)
await self._try_command(
"Setting operation mode of the miio device failed.",
self._device.set_mode,
AirhumidifierOperationMode[speed.title()],
)
async def async_set_led_brightness(self, brightness: int = 2):
"""Set the led brightness."""
if self._device_features & FEATURE_SET_LED_BRIGHTNESS == 0:
return
await self._try_command(
"Setting the led brightness of the miio device failed.",
self._device.set_led_brightness,
AirhumidifierLedBrightness(brightness),
)
async def async_set_target_humidity(self, humidity: int = 40):
"""Set the target humidity."""
if self._device_features & FEATURE_SET_TARGET_HUMIDITY == 0:
return
await self._try_command(
"Setting the target humidity of the miio device failed.",
self._device.set_target_humidity,
humidity,
)
async def async_set_dry_on(self):
"""Turn the dry mode on."""
if self._device_features & FEATURE_SET_DRY == 0:
return
await self._try_command(
"Turning the dry mode of the miio device off failed.",
self._device.set_dry,
True,
)
async def async_set_dry_off(self):
"""Turn the dry mode off."""
if self._device_features & FEATURE_SET_DRY == 0:
return
await self._try_command(
"Turning the dry mode of the miio device off failed.",
self._device.set_dry,
False,
)
class XiaomiAirFresh(XiaomiGenericDevice):
"""Representation of a Xiaomi Air Fresh."""
def __init__(self, name, device, model, unique_id):
"""Initialize the miio device."""
super().__init__(name, device, model, unique_id)
self._device_features = FEATURE_FLAGS_AIRFRESH
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRFRESH
self._speed_list = OPERATION_MODES_AIRFRESH
self._state_attrs.update(
{attribute: None for attribute in self._available_attributes}
)
async def async_update(self):
"""Fetch state from the device."""
# On state change the device doesn't provide the new state immediately.
if self._skip_update:
self._skip_update = False
return
try:
state = await self.hass.async_add_executor_job(self._device.status)
_LOGGER.debug("Got new state: %s", state)
self._available = True
self._state = state.is_on
self._state_attrs.update(
{
key: self._extract_value_from_attribute(state, value)
for key, value in self._available_attributes.items()
}
)
except DeviceException as ex:
self._available = False
_LOGGER.error("Got exception while fetching the state: %s", ex)
@property
def speed_list(self) -> list:
"""Get the list of available speeds."""
return self._speed_list
@property
def speed(self):
"""Return the current speed."""
if self._state:
return AirfreshOperationMode(self._state_attrs[ATTR_MODE]).name
return None
async def async_set_speed(self, speed: str) -> None:
"""Set the speed of the fan."""
if self.supported_features & SUPPORT_SET_SPEED == 0:
return
_LOGGER.debug("Setting the operation mode to: %s", speed)
await self._try_command(
"Setting operation mode of the miio device failed.",
self._device.set_mode,
AirfreshOperationMode[speed.title()],
)
async def async_set_led_on(self):
"""Turn the led on."""
if self._device_features & FEATURE_SET_LED == 0:
return
await self._try_command(
"Turning the led of the miio device off failed.", self._device.set_led, True
)
async def async_set_led_off(self):
"""Turn the led off."""
if self._device_features & FEATURE_SET_LED == 0:
return
await self._try_command(
"Turning the led of the miio device off failed.",
self._device.set_led,
False,
)
async def async_set_led_brightness(self, brightness: int = 2):
"""Set the led brightness."""
if self._device_features & FEATURE_SET_LED_BRIGHTNESS == 0:
return
await self._try_command(
"Setting the led brightness of the miio device failed.",
self._device.set_led_brightness,
AirfreshLedBrightness(brightness),
)
async def async_set_extra_features(self, features: int = 1):
"""Set the extra features."""
if self._device_features & FEATURE_SET_EXTRA_FEATURES == 0:
return
await self._try_command(
"Setting the extra features of the miio device failed.",
self._device.set_extra_features,
features,
)
async def async_reset_filter(self):
"""Reset the filter lifetime and usage."""
if self._device_features & FEATURE_RESET_FILTER == 0:
return
await self._try_command(
"Resetting the filter lifetime of the miio device failed.",
self._device.reset_filter,
)
| [
37811,
15514,
329,
46726,
13756,
3701,
9330,
7483,
290,
46726,
13756,
3701,
11054,
312,
7483,
526,
15931,
198,
11748,
30351,
952,
198,
6738,
33829,
1330,
2039,
388,
198,
6738,
1257,
310,
10141,
1330,
13027,
198,
11748,
18931,
198,
198,
6738,
21504,
952,
1330,
357,
220,
1303,
279,
2645,
600,
25,
15560,
28,
11748,
12,
18224,
198,
220,
220,
220,
3701,
35857,
11,
198,
220,
220,
220,
3701,
32661,
312,
7483,
11,
198,
220,
220,
220,
3701,
30026,
7483,
11,
198,
220,
220,
220,
16232,
11,
198,
220,
220,
220,
16232,
16922,
11,
198,
8,
198,
6738,
21504,
952,
13,
958,
48797,
1330,
357,
220,
1303,
279,
2645,
600,
25,
15560,
28,
11748,
12,
18224,
11,
1330,
12,
18224,
198,
220,
220,
220,
22964,
41267,
1108,
355,
3701,
48797,
42416,
41267,
1108,
11,
198,
220,
220,
220,
14680,
19076,
355,
3701,
48797,
32180,
19076,
11,
198,
8,
198,
6738,
21504,
952,
13,
958,
17047,
312,
7483,
1330,
357,
220,
1303,
279,
2645,
600,
25,
15560,
28,
11748,
12,
18224,
11,
1330,
12,
18224,
198,
220,
220,
220,
22964,
41267,
1108,
355,
3701,
17047,
312,
7483,
42416,
41267,
1108,
11,
198,
220,
220,
220,
14680,
19076,
355,
3701,
17047,
312,
7483,
32180,
19076,
11,
198,
8,
198,
6738,
21504,
952,
13,
958,
14225,
7483,
1330,
357,
220,
1303,
279,
2645,
600,
25,
15560,
28,
11748,
12,
18224,
11,
1330,
12,
18224,
198,
220,
220,
220,
22964,
41267,
1108,
355,
3701,
14225,
7483,
42416,
41267,
1108,
11,
198,
220,
220,
220,
14680,
19076,
355,
3701,
14225,
7483,
32180,
19076,
11,
198,
8,
198,
11748,
2322,
37623,
5623,
355,
2322,
198,
198,
6738,
1363,
562,
10167,
13,
5589,
3906,
13,
24408,
1330,
9297,
1404,
21389,
62,
50,
3398,
27630,
11,
43333,
62,
28480,
62,
4303,
41841,
11,
13836,
32398,
198,
6738,
1363,
562,
10167,
13,
9979,
1330,
357,
198,
220,
220,
220,
5161,
5446,
62,
3525,
9050,
62,
2389,
11,
198,
220,
220,
220,
5161,
5446,
62,
49058,
11,
198,
220,
220,
220,
7102,
37,
62,
39,
10892,
11,
198,
220,
220,
220,
7102,
37,
62,
20608,
11,
198,
220,
220,
220,
7102,
37,
62,
10468,
43959,
11,
198,
8,
198,
6738,
1363,
562,
10167,
13,
1069,
11755,
1330,
19193,
3673,
35474,
198,
11748,
1363,
562,
10167,
13,
16794,
364,
13,
11250,
62,
12102,
341,
355,
269,
85,
198,
198,
6738,
764,
9979,
1330,
357,
198,
220,
220,
220,
24121,
29833,
11,
198,
220,
220,
220,
47453,
62,
19535,
2767,
62,
46700,
5781,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
62,
27977,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
62,
1340,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
19499,
30148,
1137,
62,
27977,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
19499,
30148,
1137,
62,
1340,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
3398,
26761,
62,
36840,
62,
27977,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
3398,
26761,
62,
36840,
62,
1340,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
7707,
56,
62,
27977,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
7707,
56,
62,
1340,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
62,
27977,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
62,
1340,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
30465,
62,
27977,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
30465,
62,
1340,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
11,
198,
220,
220,
220,
47453,
62,
28480,
62,
44558,
38340,
11,
198,
8,
198,
198,
62,
25294,
30373,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
198,
198,
7206,
38865,
62,
20608,
796,
366,
55,
544,
12753,
13756,
952,
16232,
1,
198,
26947,
62,
20373,
796,
366,
24408,
13,
36072,
12753,
62,
11632,
952,
1,
198,
198,
10943,
37,
62,
33365,
3698,
796,
366,
19849,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
16,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
85,
16,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
17,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
85,
17,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
85,
18,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
20,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
85,
20,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
85,
21,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
85,
22,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
44,
16,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
76,
16,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
44,
17,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
76,
17,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
5673,
16,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
2611,
16,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
5673,
17,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
2611,
17,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
4090,
16,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
11400,
16,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
4090,
17,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
11400,
17,
1,
198,
33365,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
796,
366,
23548,
25236,
13,
958,
14225,
7483,
13,
23209,
16,
1,
198,
198,
33365,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
53,
16,
796,
366,
23548,
25236,
13,
17047,
312,
7483,
13,
85,
16,
1,
198,
33365,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
16,
796,
366,
23548,
25236,
13,
17047,
312,
7483,
13,
6888,
16,
1,
198,
33365,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
23199,
16,
796,
366,
23548,
25236,
13,
17047,
312,
7483,
13,
21101,
16,
1,
198,
198,
33365,
3698,
62,
42149,
10913,
44011,
62,
11731,
17,
796,
366,
23548,
25236,
13,
958,
48797,
13,
6862,
17,
1,
198,
198,
6489,
1404,
21389,
62,
50,
3398,
27630,
796,
9297,
1404,
21389,
62,
50,
3398,
27630,
13,
2302,
437,
7,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
2322,
13,
37374,
7,
10943,
37,
62,
39,
10892,
2599,
269,
85,
13,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2322,
13,
37374,
7,
10943,
37,
62,
10468,
43959,
2599,
2322,
13,
3237,
7,
33967,
13,
8841,
11,
2322,
13,
24539,
7,
1084,
28,
2624,
11,
3509,
28,
2624,
36911,
198,
220,
220,
220,
220,
220,
220,
220,
2322,
13,
30719,
7,
10943,
37,
62,
20608,
11,
4277,
28,
7206,
38865,
62,
20608,
2599,
269,
85,
13,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2322,
13,
30719,
7,
10943,
37,
62,
33365,
3698,
2599,
2322,
13,
818,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
44,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
44,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
5673,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
5673,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
4090,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
4090,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
53,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
23199,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19164,
3698,
62,
42149,
10913,
44011,
62,
11731,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
10612,
198,
220,
220,
220,
1782,
198,
8,
198,
198,
1404,
5446,
62,
33365,
3698,
796,
366,
19849,
1,
198,
198,
2,
3701,
9330,
7483,
198,
1404,
5446,
62,
51,
3620,
18973,
40086,
796,
366,
11498,
21069,
1,
198,
1404,
5446,
62,
39,
5883,
2389,
9050,
796,
366,
17047,
17995,
1,
198,
1404,
5446,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
796,
366,
30188,
72,
1,
198,
1404,
5446,
62,
46700,
5781,
62,
46685,
6998,
62,
2937,
1961,
796,
366,
24455,
62,
24425,
62,
1484,
1,
198,
1404,
5446,
62,
46700,
5781,
62,
43,
29150,
796,
366,
24455,
62,
6042,
62,
2787,
1397,
1,
198,
1404,
5446,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
796,
366,
35200,
62,
5715,
1,
198,
1404,
5446,
62,
19499,
30148,
1137,
796,
366,
65,
4715,
263,
1,
198,
1404,
5446,
62,
3398,
26761,
62,
36840,
796,
366,
9410,
62,
5354,
1,
198,
1404,
5446,
62,
30465,
796,
366,
992,
1,
198,
1404,
5446,
62,
30465,
62,
11473,
9947,
31097,
796,
366,
992,
62,
29199,
1108,
1,
198,
1404,
5446,
62,
44,
2394,
1581,
62,
4303,
41841,
796,
366,
76,
20965,
62,
12287,
1,
198,
1404,
5446,
62,
32,
5959,
11879,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
796,
366,
23913,
62,
30188,
72,
1,
198,
1404,
5446,
62,
47,
4261,
5064,
56,
62,
44558,
38340,
796,
366,
14225,
1958,
62,
29048,
1,
198,
1404,
5446,
62,
11473,
9947,
31097,
796,
366,
29199,
1108,
1,
198,
1404,
5446,
62,
2538,
18697,
796,
366,
5715,
1,
198,
1404,
5446,
62,
44,
2394,
1581,
17,
62,
4303,
41841,
796,
366,
76,
20965,
17,
62,
12287,
1,
198,
1404,
5446,
62,
8267,
5883,
1268,
19240,
796,
366,
359,
7230,
590,
1,
198,
1404,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
4805,
28644,
62,
2389,
796,
366,
24455,
62,
41871,
312,
62,
11167,
62,
312,
1,
198,
1404,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
42197,
796,
366,
24455,
62,
41871,
312,
62,
12985,
1,
198,
1404,
5446,
62,
46700,
5781,
62,
25216,
796,
366,
24455,
62,
4906,
1,
198,
1404,
5446,
62,
2538,
1503,
45,
62,
49058,
796,
366,
35720,
62,
14171,
1,
198,
1404,
5446,
62,
50,
2538,
8905,
62,
34694,
796,
366,
42832,
62,
2435,
1,
198,
1404,
5446,
62,
50,
2538,
8905,
62,
2538,
1503,
45,
62,
34,
28270,
796,
366,
42832,
62,
14171,
62,
35720,
62,
9127,
1,
198,
1404,
5446,
62,
13918,
3861,
62,
15112,
47471,
796,
366,
26086,
62,
40890,
1,
198,
1404,
5446,
62,
15112,
47471,
796,
366,
40890,
1,
198,
1404,
5446,
62,
51,
4261,
8202,
62,
49058,
62,
40331,
15490,
1961,
796,
366,
36590,
2127,
62,
14171,
62,
15999,
1,
198,
1404,
5446,
62,
39371,
46,
62,
35,
2767,
9782,
796,
366,
23736,
62,
15255,
478,
1,
198,
1404,
5446,
62,
50,
2538,
8905,
62,
49058,
796,
366,
42832,
62,
14171,
1,
198,
1404,
5446,
62,
44558,
38340,
796,
366,
29048,
1,
198,
1404,
5446,
62,
19108,
62,
34694,
796,
366,
1904,
62,
2435,
1,
198,
1404,
5446,
62,
47526,
11357,
62,
32761,
1961,
796,
366,
16539,
62,
45477,
1,
198,
198,
2,
3701,
11054,
312,
7483,
198,
1404,
5446,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
796,
366,
16793,
62,
17047,
17995,
1,
198,
1404,
5446,
62,
5446,
15037,
62,
2538,
18697,
796,
366,
7645,
62,
5715,
1,
198,
1404,
5446,
62,
39,
9795,
33746,
62,
43717,
796,
366,
10424,
1574,
62,
9641,
1,
198,
198,
2,
3701,
11054,
312,
7483,
7257,
198,
1404,
5446,
62,
44,
2394,
1581,
62,
4303,
41841,
796,
366,
76,
20965,
62,
12287,
1,
198,
1404,
5446,
62,
46162,
4221,
796,
366,
18053,
1,
198,
1404,
5446,
62,
7707,
56,
796,
366,
39140,
1,
198,
198,
2,
3701,
20138,
198,
1404,
5446,
62,
8220,
17,
796,
366,
1073,
17,
1,
198,
198,
2,
9347,
12608,
284,
6608,
286,
262,
1181,
2134,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
9858,
27857,
796,
1391,
198,
220,
220,
220,
5161,
5446,
62,
51,
3620,
18973,
40086,
25,
366,
11498,
21069,
1600,
198,
220,
220,
220,
5161,
5446,
62,
39,
5883,
2389,
9050,
25,
366,
17047,
17995,
1600,
198,
220,
220,
220,
5161,
5446,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
25,
366,
30188,
72,
1600,
198,
220,
220,
220,
5161,
5446,
62,
49058,
25,
366,
14171,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
46685,
6998,
62,
2937,
1961,
25,
366,
24455,
62,
24425,
62,
1484,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
43,
29150,
25,
366,
24455,
62,
6042,
62,
2787,
1397,
1600,
198,
220,
220,
220,
5161,
5446,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
25,
366,
35200,
62,
5715,
1600,
198,
220,
220,
220,
5161,
5446,
62,
3398,
26761,
62,
36840,
25,
366,
9410,
62,
5354,
1600,
198,
220,
220,
220,
5161,
5446,
62,
30465,
25,
366,
992,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
62,
4303,
41841,
25,
366,
76,
20965,
62,
12287,
1600,
198,
220,
220,
220,
5161,
5446,
62,
32,
5959,
11879,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
25,
366,
23913,
62,
30188,
72,
1600,
198,
220,
220,
220,
5161,
5446,
62,
2538,
1503,
45,
62,
49058,
25,
366,
35720,
62,
14171,
1600,
198,
220,
220,
220,
5161,
5446,
62,
13918,
3861,
62,
15112,
47471,
25,
366,
26086,
62,
40890,
1600,
198,
220,
220,
220,
5161,
5446,
62,
51,
4261,
8202,
62,
49058,
62,
40331,
15490,
1961,
25,
366,
36590,
2127,
62,
14171,
62,
15999,
1600,
198,
220,
220,
220,
5161,
5446,
62,
47526,
11357,
62,
32761,
1961,
25,
366,
16539,
62,
45477,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
796,
1391,
198,
220,
220,
220,
12429,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
9858,
27857,
11,
198,
220,
220,
220,
5161,
5446,
62,
47,
4261,
5064,
56,
62,
44558,
38340,
25,
366,
14225,
1958,
62,
29048,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
34694,
25,
366,
42832,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
2538,
1503,
45,
62,
34,
28270,
25,
366,
42832,
62,
14171,
62,
35720,
62,
9127,
1600,
198,
220,
220,
220,
5161,
5446,
62,
39371,
46,
62,
35,
2767,
9782,
25,
366,
23736,
62,
15255,
478,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19108,
62,
34694,
25,
366,
1904,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19499,
30148,
1137,
25,
366,
65,
4715,
263,
1600,
198,
220,
220,
220,
5161,
5446,
62,
30465,
62,
11473,
9947,
31097,
25,
366,
992,
62,
29199,
1108,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
49058,
25,
366,
42832,
62,
14171,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
796,
1391,
198,
220,
220,
220,
12429,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
9858,
27857,
11,
198,
220,
220,
220,
5161,
5446,
62,
47,
4261,
5064,
56,
62,
44558,
38340,
25,
366,
14225,
1958,
62,
29048,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19108,
62,
34694,
25,
366,
1904,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
4805,
28644,
62,
2389,
25,
366,
24455,
62,
41871,
312,
62,
11167,
62,
312,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
42197,
25,
366,
24455,
62,
41871,
312,
62,
12985,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
25216,
25,
366,
24455,
62,
4906,
1600,
198,
220,
220,
220,
5161,
5446,
62,
8267,
5883,
1268,
19240,
25,
366,
359,
7230,
590,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
17,
62,
4303,
41841,
25,
366,
76,
20965,
17,
62,
12287,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44558,
38340,
25,
366,
29048,
1600,
198,
220,
220,
220,
1303,
3737,
4855,
475,
555,
36349,
198,
220,
220,
220,
5161,
5446,
62,
39371,
46,
62,
35,
2767,
9782,
25,
366,
23736,
62,
15255,
478,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
34694,
25,
366,
42832,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
2538,
1503,
45,
62,
34,
28270,
25,
366,
42832,
62,
14171,
62,
35720,
62,
9127,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
796,
1391,
198,
220,
220,
220,
12429,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
9858,
27857,
11,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
4805,
28644,
62,
2389,
25,
366,
24455,
62,
41871,
312,
62,
11167,
62,
312,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
42197,
25,
366,
24455,
62,
41871,
312,
62,
12985,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
25216,
25,
366,
24455,
62,
4906,
1600,
198,
220,
220,
220,
5161,
5446,
62,
8267,
5883,
1268,
19240,
25,
366,
359,
7230,
590,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
17,
62,
4303,
41841,
25,
366,
76,
20965,
17,
62,
12287,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44558,
38340,
25,
366,
29048,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
796,
1391,
198,
220,
220,
220,
12429,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
9858,
27857,
11,
198,
220,
220,
220,
5161,
5446,
62,
19499,
30148,
1137,
25,
366,
65,
4715,
263,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
4805,
28644,
62,
2389,
25,
366,
24455,
62,
41871,
312,
62,
11167,
62,
312,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
42197,
25,
366,
24455,
62,
41871,
312,
62,
12985,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
25216,
25,
366,
24455,
62,
4906,
1600,
198,
220,
220,
220,
5161,
5446,
62,
8267,
5883,
1268,
19240,
25,
366,
359,
7230,
590,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
796,
1391,
198,
220,
220,
220,
1303,
8070,
900,
2125,
470,
973,
994,
13,
632,
338,
257,
845,
4096,
2196,
286,
262,
3335,
13,
198,
220,
220,
220,
5161,
5446,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
25,
366,
30188,
72,
1600,
198,
220,
220,
220,
5161,
5446,
62,
49058,
25,
366,
14171,
1600,
198,
220,
220,
220,
5161,
5446,
62,
30465,
25,
366,
992,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19499,
30148,
1137,
25,
366,
65,
4715,
263,
1600,
198,
220,
220,
220,
5161,
5446,
62,
3398,
26761,
62,
36840,
25,
366,
9410,
62,
5354,
1600,
198,
220,
220,
220,
5161,
5446,
62,
8267,
5883,
1268,
19240,
25,
366,
359,
7230,
590,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
46685,
6998,
62,
2937,
1961,
25,
366,
24455,
62,
24425,
62,
1484,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
43,
29150,
25,
366,
24455,
62,
6042,
62,
2787,
1397,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
62,
4303,
41841,
25,
366,
76,
20965,
62,
12287,
1600,
198,
220,
220,
220,
1303,
3737,
4855,
475,
555,
36349,
198,
220,
220,
220,
5161,
5446,
62,
32,
5959,
11879,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
25,
366,
23913,
62,
30188,
72,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44558,
38340,
25,
366,
29048,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
17,
62,
4303,
41841,
25,
366,
76,
20965,
17,
62,
12287,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
4805,
28644,
62,
2389,
25,
366,
24455,
62,
41871,
312,
62,
11167,
62,
312,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
32754,
2389,
62,
42197,
25,
366,
24455,
62,
41871,
312,
62,
12985,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
25216,
25,
366,
24455,
62,
4906,
1600,
198,
220,
220,
220,
5161,
5446,
62,
47,
4261,
5064,
56,
62,
44558,
38340,
25,
366,
14225,
1958,
62,
29048,
1600,
198,
220,
220,
220,
5161,
5446,
62,
2538,
1503,
45,
62,
49058,
25,
366,
35720,
62,
14171,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
34694,
25,
366,
42832,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
50,
2538,
8905,
62,
2538,
1503,
45,
62,
34,
28270,
25,
366,
42832,
62,
14171,
62,
35720,
62,
9127,
1600,
198,
220,
220,
220,
5161,
5446,
62,
13918,
3861,
62,
15112,
47471,
25,
366,
26086,
62,
40890,
1600,
198,
220,
220,
220,
5161,
5446,
62,
39371,
46,
62,
35,
2767,
9782,
25,
366,
23736,
62,
15255,
478,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19108,
62,
34694,
25,
366,
1904,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
47526,
11357,
62,
32761,
1961,
25,
366,
16539,
62,
45477,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
9858,
27857,
796,
1391,
198,
220,
220,
220,
5161,
5446,
62,
51,
3620,
18973,
40086,
25,
366,
11498,
21069,
1600,
198,
220,
220,
220,
5161,
5446,
62,
39,
5883,
2389,
9050,
25,
366,
17047,
17995,
1600,
198,
220,
220,
220,
5161,
5446,
62,
49058,
25,
366,
14171,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19499,
30148,
1137,
25,
366,
65,
4715,
263,
1600,
198,
220,
220,
220,
5161,
5446,
62,
3398,
26761,
62,
36840,
25,
366,
9410,
62,
5354,
1600,
198,
220,
220,
220,
5161,
5446,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
25,
366,
16793,
62,
17047,
17995,
1600,
198,
220,
220,
220,
5161,
5446,
62,
30465,
62,
11473,
9947,
31097,
25,
366,
992,
62,
29199,
1108,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19108,
62,
34694,
25,
366,
1904,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
39,
9795,
33746,
62,
43717,
25,
366,
10424,
1574,
62,
9641,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
796,
1391,
198,
220,
220,
220,
12429,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
9858,
27857,
11,
198,
220,
220,
220,
5161,
5446,
62,
5446,
15037,
62,
2538,
18697,
25,
366,
7645,
62,
5715,
1600,
198,
220,
220,
220,
5161,
5446,
62,
47526,
11357,
62,
32761,
1961,
25,
366,
16539,
62,
45477,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
62,
6981,
62,
23199,
796,
1391,
198,
220,
220,
220,
12429,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
9858,
27857,
11,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
62,
4303,
41841,
25,
366,
76,
20965,
62,
12287,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46162,
4221,
25,
366,
18053,
1600,
198,
220,
220,
220,
5161,
5446,
62,
7707,
56,
25,
366,
39140,
1600,
198,
92,
198,
198,
10116,
32,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
10913,
44011,
796,
1391,
198,
220,
220,
220,
5161,
5446,
62,
51,
3620,
18973,
40086,
25,
366,
11498,
21069,
1600,
198,
220,
220,
220,
5161,
5446,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
25,
366,
30188,
72,
1600,
198,
220,
220,
220,
5161,
5446,
62,
32,
5959,
11879,
62,
42149,
62,
10917,
1847,
9050,
62,
12115,
6369,
25,
366,
23913,
62,
30188,
72,
1600,
198,
220,
220,
220,
5161,
5446,
62,
8220,
17,
25,
366,
1073,
17,
1600,
198,
220,
220,
220,
5161,
5446,
62,
39,
5883,
2389,
9050,
25,
366,
17047,
17995,
1600,
198,
220,
220,
220,
5161,
5446,
62,
49058,
25,
366,
14171,
1600,
198,
220,
220,
220,
5161,
5446,
62,
30465,
25,
366,
992,
1600,
198,
220,
220,
220,
5161,
5446,
62,
30465,
62,
11473,
9947,
31097,
25,
366,
992,
62,
29199,
1108,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19499,
30148,
1137,
25,
366,
65,
4715,
263,
1600,
198,
220,
220,
220,
5161,
5446,
62,
3398,
26761,
62,
36840,
25,
366,
9410,
62,
5354,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
43,
29150,
25,
366,
24455,
62,
6042,
62,
2787,
1397,
1600,
198,
220,
220,
220,
5161,
5446,
62,
46700,
5781,
62,
46685,
6998,
62,
2937,
1961,
25,
366,
24455,
62,
24425,
62,
1484,
1600,
198,
220,
220,
220,
5161,
5446,
62,
19108,
62,
34694,
25,
366,
1904,
62,
2435,
1600,
198,
220,
220,
220,
5161,
5446,
62,
44,
2394,
1581,
62,
4303,
41841,
25,
366,
76,
20965,
62,
12287,
1600,
198,
220,
220,
220,
5161,
5446,
62,
13918,
3861,
62,
15112,
47471,
25,
366,
26086,
62,
40890,
1600,
198,
92,
198,
198,
31054,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
796,
14631,
27722,
1600,
366,
15086,
298,
1600,
366,
49434,
1600,
366,
7390,
293,
8973,
198,
31054,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
796,
14631,
27722,
1600,
366,
15086,
298,
1600,
366,
49434,
8973,
198,
31054,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
198,
31054,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
796,
14631,
27722,
1600,
366,
15086,
298,
1600,
366,
49434,
8973,
198,
31054,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
796,
685,
198,
220,
220,
220,
366,
27722,
1600,
198,
220,
220,
220,
366,
15086,
298,
1600,
198,
220,
220,
220,
366,
49434,
1600,
198,
220,
220,
220,
366,
7390,
293,
1600,
198,
220,
220,
220,
366,
31205,
1600,
198,
220,
220,
220,
366,
11922,
1600,
198,
220,
220,
220,
366,
33004,
1600,
198,
60,
198,
31054,
6234,
62,
33365,
1546,
62,
42149,
10913,
44011,
796,
14631,
27722,
1600,
366,
15086,
298,
1600,
366,
9492,
2100,
1600,
366,
20535,
1600,
366,
34621,
1600,
366,
33004,
8973,
198,
198,
12564,
4093,
7597,
796,
14631,
482,
8973,
198,
198,
15112,
40086,
62,
28480,
62,
19499,
30148,
1137,
796,
352,
198,
15112,
40086,
62,
28480,
62,
30465,
796,
362,
198,
15112,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
796,
604,
198,
15112,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
796,
807,
198,
15112,
40086,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
796,
1467,
198,
15112,
40086,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
796,
3933,
198,
15112,
40086,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
796,
5598,
198,
15112,
40086,
62,
28480,
62,
44558,
38340,
796,
13108,
198,
15112,
40086,
62,
19535,
2767,
62,
46700,
5781,
796,
17759,
198,
15112,
40086,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
796,
22243,
198,
15112,
40086,
62,
28480,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
796,
28119,
198,
15112,
40086,
62,
28480,
62,
7707,
56,
796,
36117,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
198,
220,
220,
220,
930,
18630,
40086,
62,
19535,
2767,
62,
46700,
5781,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
198,
8,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
44558,
38340,
198,
8,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
44558,
38340,
198,
8,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
198,
8,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
930,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
8,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
39,
5883,
2389,
5064,
38311,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
198,
8,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
62,
6981,
62,
23199,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
39,
5883,
2389,
5064,
38311,
930,
18630,
40086,
62,
28480,
62,
7707,
56,
198,
198,
15112,
40086,
62,
38948,
50,
62,
42149,
10913,
44011,
796,
357,
198,
220,
220,
220,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
198,
220,
220,
220,
930,
18630,
40086,
62,
19535,
2767,
62,
46700,
5781,
198,
220,
220,
220,
930,
18630,
40086,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
198,
8,
198,
198,
42149,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
796,
2322,
13,
27054,
2611,
15090,
10396,
13,
30719,
7,
1404,
5446,
62,
3525,
9050,
62,
2389,
2599,
269,
85,
13,
26858,
62,
2340,
30072,
198,
198,
35009,
27389,
62,
50,
3398,
27630,
62,
30465,
62,
11473,
9947,
31097,
796,
31600,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
13,
2302,
437,
7,
198,
220,
220,
220,
1391,
10396,
13,
37374,
7,
1404,
5446,
62,
11473,
9947,
31097,
2599,
2322,
13,
3237,
7,
10396,
13,
7222,
263,
344,
7,
600,
828,
2322,
13,
2601,
696,
7,
1084,
28,
15,
11,
3509,
28,
17,
4008,
92,
198,
8,
198,
198,
35009,
27389,
62,
50,
3398,
27630,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
796,
31600,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
13,
2302,
437,
7,
198,
220,
220,
220,
1391,
10396,
13,
37374,
7,
1404,
5446,
62,
2538,
18697,
2599,
2322,
13,
3237,
7,
10396,
13,
7222,
263,
344,
7,
600,
828,
2322,
13,
2601,
696,
7,
1084,
28,
15,
11,
3509,
28,
1558,
4008,
92,
198,
8,
198,
198,
35009,
27389,
62,
50,
3398,
27630,
62,
44558,
38340,
796,
31600,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
13,
2302,
437,
7,
198,
220,
220,
220,
1391,
10396,
13,
37374,
7,
1404,
5446,
62,
44558,
38340,
2599,
2322,
13,
3237,
7,
10396,
13,
7222,
263,
344,
7,
600,
828,
2322,
13,
2601,
696,
7,
1084,
28,
15,
11,
3509,
28,
3064,
4008,
92,
198,
8,
198,
198,
35009,
27389,
62,
50,
3398,
27630,
62,
13918,
3861,
62,
15112,
47471,
796,
31600,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
13,
2302,
437,
7,
198,
220,
220,
220,
1391,
10396,
13,
37374,
7,
1404,
5446,
62,
15112,
47471,
2599,
2322,
13,
3237,
7,
10396,
13,
7222,
263,
344,
7,
600,
828,
2322,
13,
17257,
7,
1084,
28,
15,
4008,
92,
198,
8,
198,
198,
35009,
27389,
62,
50,
3398,
27630,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
796,
31600,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
13,
2302,
437,
7,
198,
220,
220,
220,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
2322,
13,
37374,
7,
1404,
5446,
62,
39,
5883,
2389,
9050,
2599,
2322,
13,
3237,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2322,
13,
7222,
263,
344,
7,
600,
828,
2322,
13,
818,
26933,
1270,
11,
2319,
11,
2026,
11,
3126,
11,
4317,
11,
4019,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
1782,
198,
8,
198,
198,
35009,
27389,
62,
10468,
62,
49273,
796,
1391,
198,
220,
220,
220,
47453,
62,
28480,
62,
19499,
30148,
1137,
62,
1340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
65,
4715,
263,
62,
261,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
19499,
30148,
1137,
62,
27977,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
65,
4715,
263,
62,
2364,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
30465,
62,
1340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
992,
62,
261,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
30465,
62,
27977,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
992,
62,
2364,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
3398,
26761,
62,
36840,
62,
1340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
9410,
62,
5354,
62,
261,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
3398,
26761,
62,
36840,
62,
27977,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
9410,
62,
5354,
62,
2364,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
62,
1340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
23736,
62,
15255,
478,
62,
261,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
62,
27977,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
23736,
62,
15255,
478,
62,
2364,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
62,
1340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
35720,
62,
14171,
62,
261,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
62,
27977,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
35720,
62,
14171,
62,
2364,
25719,
198,
220,
220,
220,
47453,
62,
19535,
2767,
62,
46700,
5781,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
42503,
62,
24455,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
25,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
992,
62,
29199,
1108,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15952,
2611,
1298,
47453,
62,
50,
3398,
27630,
62,
30465,
62,
11473,
9947,
31097,
11,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
47453,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
25,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
35200,
62,
5715,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15952,
2611,
1298,
47453,
62,
50,
3398,
27630,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
11,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
47453,
62,
28480,
62,
44558,
38340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
29048,
1600,
366,
15952,
2611,
1298,
47453,
62,
50,
3398,
27630,
62,
44558,
38340,
5512,
198,
220,
220,
220,
47453,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
25,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
26086,
62,
40890,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15952,
2611,
1298,
47453,
62,
50,
3398,
27630,
62,
13918,
3861,
62,
15112,
47471,
11,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
47453,
62,
28480,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
25,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
16793,
62,
17047,
17995,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15952,
2611,
1298,
47453,
62,
50,
3398,
27630,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
11,
198,
220,
220,
220,
8964,
198,
220,
220,
220,
47453,
62,
28480,
62,
7707,
56,
62,
1340,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
39140,
62,
261,
25719,
198,
220,
220,
220,
47453,
62,
28480,
62,
7707,
56,
62,
27977,
25,
19779,
24396,
1298,
366,
292,
13361,
62,
2617,
62,
39140,
62,
2364,
25719,
198,
92,
628,
198,
292,
13361,
825,
30351,
62,
40406,
62,
24254,
7,
71,
562,
11,
4566,
11,
30351,
62,
2860,
62,
298,
871,
11,
9412,
62,
10951,
28,
14202,
2599,
198,
220,
220,
220,
37227,
7248,
510,
262,
21504,
952,
4336,
3335,
422,
4566,
526,
15931,
198,
220,
220,
220,
611,
42865,
62,
20373,
407,
287,
468,
82,
13,
7890,
25,
198,
220,
220,
220,
220,
220,
220,
220,
468,
82,
13,
7890,
58,
26947,
62,
20373,
60,
796,
23884,
628,
220,
220,
220,
2583,
796,
4566,
58,
10943,
37,
62,
39,
10892,
60,
198,
220,
220,
220,
11241,
796,
4566,
58,
10943,
37,
62,
10468,
43959,
60,
198,
220,
220,
220,
1438,
796,
4566,
58,
10943,
37,
62,
20608,
60,
198,
220,
220,
220,
2746,
796,
4566,
13,
1136,
7,
10943,
37,
62,
33365,
3698,
8,
628,
220,
220,
220,
4808,
25294,
30373,
13,
10951,
7203,
24243,
2890,
351,
2583,
4064,
82,
357,
30001,
4064,
82,
23029,
1600,
2583,
11,
11241,
58,
25,
20,
12962,
198,
220,
220,
220,
3748,
62,
312,
796,
6045,
628,
220,
220,
220,
611,
2746,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21504,
952,
62,
25202,
796,
16232,
7,
4774,
11,
11241,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3335,
62,
10951,
796,
25507,
468,
82,
13,
292,
13361,
62,
2860,
62,
18558,
38409,
62,
21858,
7,
11632,
952,
62,
25202,
13,
10951,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
796,
3335,
62,
10951,
13,
19849,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3748,
62,
312,
796,
277,
1,
90,
19849,
92,
12,
90,
25202,
62,
10951,
13,
20285,
62,
21975,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
10951,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
36521,
82,
4064,
82,
4064,
82,
12326,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3335,
62,
10951,
13,
69,
2533,
1574,
62,
9641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3335,
62,
10951,
13,
10424,
1574,
62,
9641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
16232,
16922,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
19193,
3673,
35474,
628,
220,
220,
220,
611,
2746,
13,
9688,
2032,
342,
7203,
23548,
25236,
13,
958,
14225,
7483,
526,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1633,
62,
14225,
7483,
796,
3701,
30026,
7483,
7,
4774,
11,
11241,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3335,
796,
46726,
16170,
30026,
7483,
7,
3672,
11,
1633,
62,
14225,
7483,
11,
2746,
11,
3748,
62,
312,
8,
198,
220,
220,
220,
1288,
361,
2746,
13,
9688,
2032,
342,
7203,
23548,
25236,
13,
17047,
312,
7483,
526,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1633,
62,
17047,
312,
7483,
796,
3701,
32661,
312,
7483,
7,
4774,
11,
11241,
11,
2746,
28,
19849,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3335,
796,
46726,
16170,
32661,
312,
7483,
7,
3672,
11,
1633,
62,
17047,
312,
7483,
11,
2746,
11,
3748,
62,
312,
8,
198,
220,
220,
220,
1288,
361,
2746,
13,
9688,
2032,
342,
7203,
23548,
25236,
13,
958,
48797,
526,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
1633,
62,
48797,
796,
3701,
35857,
7,
4774,
11,
11241,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3335,
796,
46726,
16170,
35857,
7,
3672,
11,
1633,
62,
48797,
11,
2746,
11,
3748,
62,
312,
8,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
18224,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3118,
15999,
3335,
1043,
0,
4222,
2251,
281,
2071,
379,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
5450,
1378,
12567,
13,
785,
14,
1837,
824,
72,
14,
36072,
12753,
62,
958,
14225,
7483,
14,
37165,
366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
392,
2148,
262,
1708,
1366,
25,
4064,
82,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2746,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
628,
220,
220,
220,
468,
82,
13,
7890,
58,
26947,
62,
20373,
7131,
4774,
60,
796,
3335,
198,
220,
220,
220,
30351,
62,
2860,
62,
298,
871,
26933,
25202,
4357,
4296,
62,
19052,
62,
2860,
28,
17821,
8,
628,
220,
220,
220,
30351,
825,
30351,
62,
15271,
62,
30281,
7,
15271,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13912,
2594,
284,
5050,
319,
46726,
16170,
30026,
7483,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2446,
796,
47453,
62,
10468,
62,
49273,
13,
1136,
7,
15271,
13,
15271,
8,
198,
220,
220,
220,
220,
220,
220,
220,
42287,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
25,
1988,
329,
1994,
11,
1988,
287,
2139,
13,
7890,
13,
23814,
3419,
611,
1994,
14512,
5161,
5446,
62,
3525,
9050,
62,
2389,
198,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
9312,
62,
2340,
796,
2139,
13,
7890,
13,
1136,
7,
1404,
5446,
62,
3525,
9050,
62,
2389,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
9312,
62,
2340,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4410,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3335,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
3335,
287,
468,
82,
13,
7890,
58,
26947,
62,
20373,
4083,
27160,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
3335,
13,
26858,
62,
312,
287,
9312,
62,
2340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4410,
796,
468,
82,
13,
7890,
58,
26947,
62,
20373,
4083,
27160,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
4296,
62,
83,
6791,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
3335,
287,
4410,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
468,
35226,
7,
25202,
11,
2446,
14692,
24396,
8973,
2599,
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,
25507,
651,
35226,
7,
25202,
11,
2446,
14692,
24396,
8973,
5769,
1174,
37266,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4296,
62,
83,
6791,
13,
33295,
7,
25202,
13,
292,
13361,
62,
19119,
62,
3099,
62,
5219,
7,
17821,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
611,
4296,
62,
83,
6791,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25507,
30351,
952,
13,
17077,
7,
19119,
62,
83,
6791,
8,
628,
220,
220,
220,
329,
1633,
62,
14225,
7483,
62,
15271,
287,
47453,
62,
10468,
62,
49273,
25,
198,
220,
220,
220,
220,
220,
220,
220,
32815,
796,
47453,
62,
10468,
62,
49273,
58,
958,
62,
14225,
7483,
62,
15271,
4083,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15952,
2611,
1600,
31600,
47,
4261,
5064,
38311,
62,
35009,
27389,
62,
50,
3398,
27630,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
468,
82,
13,
30416,
13,
292,
13361,
62,
30238,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24121,
29833,
11,
1633,
62,
14225,
7483,
62,
15271,
11,
30351,
62,
15271,
62,
30281,
11,
32815,
28,
15952,
2611,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
198,
4871,
46726,
46189,
24728,
7,
22480,
32398,
2599,
198,
220,
220,
220,
37227,
40171,
341,
286,
257,
14276,
46726,
3335,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
11,
3335,
11,
2746,
11,
3748,
62,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
14276,
46726,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
3672,
796,
1438,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
796,
3335,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
19849,
796,
2746,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
34642,
62,
312,
796,
3748,
62,
312,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
796,
1391,
1404,
5446,
62,
33365,
3698,
25,
2116,
13557,
19849,
92,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48267,
62,
19119,
796,
10352,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
4855,
62,
40890,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
34227,
4855,
3033,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
43333,
62,
28480,
62,
4303,
41841,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
815,
62,
30393,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
39176,
262,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
6407,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
3748,
62,
312,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
281,
3748,
4522,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
34642,
62,
312,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
1438,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
262,
1438,
286,
262,
3335,
611,
597,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
3672,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
1695,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
2081,
618,
1181,
318,
1900,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
15182,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
3335,
62,
5219,
62,
1078,
7657,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
262,
1181,
12608,
286,
262,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
5219,
62,
1078,
3808,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
318,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
2081,
611,
3335,
318,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
5219,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
30351,
825,
4808,
28311,
62,
21812,
7,
944,
11,
9335,
62,
18224,
11,
25439,
11,
1635,
22046,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
14134,
257,
21504,
952,
3335,
3141,
9041,
4049,
6218,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
25507,
2116,
13,
71,
562,
13,
292,
13361,
62,
2860,
62,
18558,
38409,
62,
21858,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13027,
7,
20786,
11,
1635,
22046,
11,
12429,
46265,
22046,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
31077,
2722,
422,
21504,
952,
3335,
25,
4064,
82,
1600,
1255,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1255,
6624,
13558,
4093,
7597,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
16232,
16922,
355,
2859,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
18224,
7,
27932,
62,
18224,
11,
2859,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
628,
220,
220,
220,
30351,
825,
30351,
62,
15344,
62,
261,
7,
944,
11,
2866,
25,
965,
796,
6045,
11,
12429,
46265,
22046,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
3335,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2866,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
4905,
4235,
373,
900,
262,
3335,
1276,
407,
307,
2900,
319,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
25507,
2116,
13,
292,
13361,
62,
2617,
62,
12287,
7,
12287,
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,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
21504,
952,
3335,
319,
4054,
33283,
2116,
13557,
25202,
13,
261,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48267,
62,
19119,
796,
6407,
628,
220,
220,
220,
30351,
825,
30351,
62,
15344,
62,
2364,
7,
944,
11,
12429,
46265,
22046,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
3335,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
21504,
952,
3335,
572,
4054,
33283,
2116,
13557,
25202,
13,
2364,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
611,
1255,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48267,
62,
19119,
796,
6407,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
65,
4715,
263,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
14713,
263,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
14713,
263,
286,
262,
21504,
952,
3335,
319,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
65,
4715,
263,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
65,
4715,
263,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
14713,
263,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
19499,
30148,
1137,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
14713,
263,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
65,
4715,
263,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
9410,
62,
5354,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
1200,
5793,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
1200,
5793,
286,
262,
21504,
952,
3335,
319,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
9410,
62,
5354,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
9410,
62,
5354,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
1200,
5793,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
3398,
26761,
62,
36840,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
1200,
5793,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
9410,
62,
5354,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
198,
4871,
46726,
16170,
30026,
7483,
7,
55,
544,
12753,
46189,
24728,
2599,
198,
220,
220,
220,
37227,
40171,
341,
286,
257,
46726,
3701,
9330,
7483,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
11,
3335,
11,
2746,
11,
3748,
62,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
6107,
5078,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
3672,
11,
3335,
11,
2746,
11,
3748,
62,
312,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
19849,
6624,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13557,
19849,
6624,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
31190,
62,
53,
22,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13557,
19849,
6624,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
17,
50,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13557,
19849,
6624,
19164,
3698,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
62,
53,
18,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
47,
4261,
5064,
38311,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
47,
4261,
5064,
38311,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
47,
4261,
5064,
38311,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
13,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
42348,
25,
6045,
329,
11688,
287,
2116,
13557,
15182,
62,
1078,
7657,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
19119,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
37,
7569,
1181,
422,
262,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1550,
1181,
1487,
262,
3335,
1595,
470,
2148,
262,
649,
1181,
3393,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
48267,
62,
19119,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48267,
62,
19119,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
796,
25507,
2116,
13,
71,
562,
13,
292,
13361,
62,
2860,
62,
18558,
38409,
62,
21858,
7,
944,
13557,
25202,
13,
13376,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
30074,
649,
1181,
25,
4064,
82,
1600,
1181,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
796,
1181,
13,
271,
62,
261,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
13,
19119,
7,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
1994,
25,
2116,
13557,
2302,
974,
62,
8367,
62,
6738,
62,
42348,
7,
5219,
11,
1988,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1988,
287,
2116,
13557,
15182,
62,
1078,
7657,
13,
23814,
3419,
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,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
2845,
16232,
16922,
355,
409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
18224,
7203,
30074,
6631,
981,
21207,
278,
262,
1181,
25,
4064,
82,
1600,
409,
8,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
2866,
62,
4868,
7,
944,
8,
4613,
1351,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
262,
1351,
286,
1695,
12055,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
12287,
62,
4868,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
2866,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
262,
1459,
2866,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
5219,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3701,
14225,
7483,
32180,
19076,
7,
944,
13557,
5219,
62,
1078,
3808,
58,
1404,
5446,
62,
49058,
35944,
3672,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
12287,
7,
944,
11,
2866,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2866,
286,
262,
4336,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15999,
62,
40890,
1222,
43333,
62,
28480,
62,
4303,
41841,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
34149,
262,
4905,
4235,
284,
25,
4064,
82,
1600,
2866,
8,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
4905,
4235,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3701,
14225,
7483,
32180,
19076,
58,
12287,
13,
7839,
3419,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
2957,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
2957,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
2116,
13557,
25202,
13,
2617,
62,
992,
11,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
2957,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
2957,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
992,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
29199,
1108,
7,
944,
11,
22204,
25,
493,
796,
362,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2957,
22204,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
2957,
22204,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
992,
62,
29199,
1108,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3701,
14225,
7483,
42416,
41267,
1108,
7,
29199,
1108,
828,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
35200,
62,
5715,
7,
944,
11,
1241,
25,
493,
796,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
4004,
1241,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
7708,
53,
1581,
12709,
62,
2538,
18697,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
4004,
1241,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
35200,
62,
5715,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1241,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
23736,
62,
15255,
478,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
8295,
4886,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
8295,
4886,
286,
262,
21504,
952,
3335,
319,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
23736,
62,
15255,
478,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
23736,
62,
15255,
478,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
8295,
4886,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
39371,
46,
62,
35,
2767,
9782,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
8295,
4886,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
23736,
62,
15255,
478,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
35720,
62,
14171,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
2193,
4235,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
2193,
4235,
286,
262,
21504,
952,
3335,
319,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
35720,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
35720,
62,
14171,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
2193,
4235,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
2538,
1503,
45,
62,
49058,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
2193,
4235,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
35720,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
29048,
7,
944,
11,
6115,
25,
493,
796,
2026,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2128,
6115,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
44558,
38340,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
2128,
6115,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
29048,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6115,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
26086,
62,
40890,
7,
944,
11,
3033,
25,
493,
796,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
3131,
3033,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
3131,
3033,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
26086,
62,
40890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3033,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
42503,
62,
24455,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4965,
316,
262,
8106,
10869,
290,
8748,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
19535,
2767,
62,
46700,
5781,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4965,
35463,
262,
8106,
10869,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
42503,
62,
24455,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
198,
4871,
46726,
16170,
32661,
312,
7483,
7,
55,
544,
12753,
46189,
24728,
2599,
198,
220,
220,
220,
37227,
40171,
341,
286,
257,
46726,
3701,
11054,
312,
7483,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
11,
3335,
11,
2746,
11,
3748,
62,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
6107,
5078,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
3672,
11,
3335,
11,
2746,
11,
3748,
62,
312,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
19849,
287,
685,
33365,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
16,
11,
19164,
3698,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
23199,
16,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
62,
6981,
62,
23199,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
62,
8141,
62,
6981,
62,
23199,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4235,
13,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4235,
287,
3701,
17047,
312,
7483,
32180,
19076,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4235,
318,
407,
3701,
17047,
312,
7483,
32180,
19076,
13,
33004,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
39,
5883,
2389,
5064,
38311,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
39,
5883,
2389,
5064,
38311,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4235,
13,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4235,
287,
3701,
17047,
312,
7483,
32180,
19076,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
4235,
318,
407,
3701,
17047,
312,
7483,
32180,
19076,
13,
27722,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2361,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
13,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
42348,
25,
6045,
329,
11688,
287,
2116,
13557,
15182,
62,
1078,
7657,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
19119,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
37,
7569,
1181,
422,
262,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1550,
1181,
1487,
262,
3335,
1595,
470,
2148,
262,
649,
1181,
3393,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
48267,
62,
19119,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48267,
62,
19119,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
796,
25507,
2116,
13,
71,
562,
13,
292,
13361,
62,
2860,
62,
18558,
38409,
62,
21858,
7,
944,
13557,
25202,
13,
13376,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
30074,
649,
1181,
25,
4064,
82,
1600,
1181,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
796,
1181,
13,
271,
62,
261,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
13,
19119,
7,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
1994,
25,
2116,
13557,
2302,
974,
62,
8367,
62,
6738,
62,
42348,
7,
5219,
11,
1988,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1988,
287,
2116,
13557,
15182,
62,
1078,
7657,
13,
23814,
3419,
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,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
2845,
16232,
16922,
355,
409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
18224,
7203,
30074,
6631,
981,
21207,
278,
262,
1181,
25,
4064,
82,
1600,
409,
8,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
2866,
62,
4868,
7,
944,
8,
4613,
1351,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
262,
1351,
286,
1695,
12055,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
12287,
62,
4868,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
2866,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
262,
1459,
2866,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
5219,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3701,
17047,
312,
7483,
32180,
19076,
7,
944,
13557,
5219,
62,
1078,
3808,
58,
1404,
5446,
62,
49058,
35944,
3672,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
12287,
7,
944,
11,
2866,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2866,
286,
262,
4336,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15999,
62,
40890,
1222,
43333,
62,
28480,
62,
4303,
41841,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
34149,
262,
4905,
4235,
284,
25,
4064,
82,
1600,
2866,
8,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
4905,
4235,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3701,
17047,
312,
7483,
32180,
19076,
58,
12287,
13,
7839,
3419,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
29199,
1108,
7,
944,
11,
22204,
25,
493,
796,
362,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2957,
22204,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
2957,
22204,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
992,
62,
29199,
1108,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3701,
17047,
312,
7483,
42416,
41267,
1108,
7,
29199,
1108,
828,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
16793,
62,
17047,
17995,
7,
944,
11,
27716,
25,
493,
796,
2319,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2496,
27716,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
51,
46095,
62,
39,
5883,
2389,
9050,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
2496,
27716,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
16793,
62,
17047,
17995,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27716,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
39140,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
5894,
4235,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
7707,
56,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
5894,
4235,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
39140,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
39140,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
5894,
4235,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
7707,
56,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
5894,
4235,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
39140,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
198,
4871,
46726,
16170,
35857,
7,
55,
544,
12753,
46189,
24728,
2599,
198,
220,
220,
220,
37227,
40171,
341,
286,
257,
46726,
3701,
20138,
526,
15931,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
1438,
11,
3335,
11,
2746,
11,
3748,
62,
312,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
21504,
952,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
3672,
11,
3335,
11,
2746,
11,
3748,
62,
312,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
62,
40890,
796,
18630,
40086,
62,
38948,
50,
62,
42149,
10913,
44011,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
62,
1078,
7657,
796,
317,
11731,
4146,
17534,
62,
1404,
5446,
9865,
3843,
1546,
62,
42149,
10913,
44011,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
12287,
62,
4868,
796,
43521,
6234,
62,
33365,
1546,
62,
42149,
10913,
44011,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
13,
19119,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
42348,
25,
6045,
329,
11688,
287,
2116,
13557,
15182,
62,
1078,
7657,
92,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
19119,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
37,
7569,
1181,
422,
262,
3335,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1550,
1181,
1487,
262,
3335,
1595,
470,
2148,
262,
649,
1181,
3393,
13,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
48267,
62,
19119,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
48267,
62,
19119,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
796,
25507,
2116,
13,
71,
562,
13,
292,
13361,
62,
2860,
62,
18558,
38409,
62,
21858,
7,
944,
13557,
25202,
13,
13376,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
30074,
649,
1181,
25,
4064,
82,
1600,
1181,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
796,
1181,
13,
271,
62,
261,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
5219,
62,
1078,
3808,
13,
19119,
7,
198,
220,
220,
220,
220,
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,
220,
220,
220,
220,
1994,
25,
2116,
13557,
2302,
974,
62,
8367,
62,
6738,
62,
42348,
7,
5219,
11,
1988,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1994,
11,
1988,
287,
2116,
13557,
15182,
62,
1078,
7657,
13,
23814,
3419,
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,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
2845,
16232,
16922,
355,
409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
15182,
796,
10352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
18224,
7203,
30074,
6631,
981,
21207,
278,
262,
1181,
25,
4064,
82,
1600,
409,
8,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
2866,
62,
4868,
7,
944,
8,
4613,
1351,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
262,
1351,
286,
1695,
12055,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
12287,
62,
4868,
628,
220,
220,
220,
2488,
26745,
198,
220,
220,
220,
825,
2866,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
13615,
262,
1459,
2866,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
5219,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
3701,
48797,
32180,
19076,
7,
944,
13557,
5219,
62,
1078,
3808,
58,
1404,
5446,
62,
49058,
35944,
3672,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
12287,
7,
944,
11,
2866,
25,
965,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2866,
286,
262,
4336,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15999,
62,
40890,
1222,
43333,
62,
28480,
62,
4303,
41841,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
4808,
25294,
30373,
13,
24442,
7203,
34149,
262,
4905,
4235,
284,
25,
4064,
82,
1600,
2866,
8,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
4905,
4235,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3701,
48797,
32180,
19076,
58,
12287,
13,
7839,
3419,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
261,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
2957,
319,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
2957,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
2116,
13557,
25202,
13,
2617,
62,
992,
11,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
2364,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
17278,
262,
2957,
572,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17278,
278,
262,
2957,
286,
262,
21504,
952,
3335,
572,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
992,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
992,
62,
29199,
1108,
7,
944,
11,
22204,
25,
493,
796,
362,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
2957,
22204,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
30465,
62,
11473,
9947,
31097,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
2957,
22204,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
992,
62,
29199,
1108,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3701,
48797,
42416,
41267,
1108,
7,
29199,
1108,
828,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
2617,
62,
26086,
62,
40890,
7,
944,
11,
3033,
25,
493,
796,
352,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7248,
262,
3131,
3033,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
28480,
62,
13918,
3861,
62,
15112,
47471,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
34149,
262,
3131,
3033,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
2617,
62,
26086,
62,
40890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3033,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
30351,
825,
30351,
62,
42503,
62,
24455,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
4965,
316,
262,
8106,
10869,
290,
8748,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
25202,
62,
40890,
1222,
18630,
40086,
62,
19535,
2767,
62,
46700,
5781,
6624,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
628,
220,
220,
220,
220,
220,
220,
220,
25507,
2116,
13557,
28311,
62,
21812,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4965,
35463,
262,
8106,
10869,
286,
262,
21504,
952,
3335,
4054,
33283,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
25202,
13,
42503,
62,
24455,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
198
] | 2.146058 | 16,870 |
import os
from pyfiglet import Figlet
from flask import Flask, send_file, jsonify
from subprocess import call
from sys import platform as _platform
if _platform == 'win32' or _platform == 'win64':
call('cls', shell=True)
elif _platform == 'linux' or _platform == 'linux2':
call('clear', shell=True)
f = Figlet(font='stop')
print(f.renderText('Avatar-Server'))
app = Flask(__name__)
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1
avatar_dir = "a" # no slash
# create avatars directory if it does not exist
if not os.path.exists(avatar_dir):
os.makedirs(avatar_dir)
@app.route("/status")
@app.route("/<int:uid>")
@app.errorhandler(404)
# Run the server
app.run(host="0.0.0.0", port=5000)
| [
11748,
28686,
198,
6738,
12972,
5647,
1616,
1330,
12138,
1616,
198,
6738,
42903,
1330,
46947,
11,
3758,
62,
7753,
11,
33918,
1958,
198,
6738,
850,
14681,
1330,
869,
198,
6738,
25064,
1330,
3859,
355,
4808,
24254,
198,
198,
361,
4808,
24254,
6624,
705,
5404,
2624,
6,
393,
4808,
24254,
6624,
705,
5404,
2414,
10354,
198,
220,
220,
220,
869,
10786,
565,
82,
3256,
7582,
28,
17821,
8,
198,
417,
361,
4808,
24254,
6624,
705,
23289,
6,
393,
4808,
24254,
6624,
705,
23289,
17,
10354,
198,
220,
220,
220,
869,
10786,
20063,
3256,
7582,
28,
17821,
8,
198,
198,
69,
796,
12138,
1616,
7,
10331,
11639,
11338,
11537,
198,
4798,
7,
69,
13,
13287,
8206,
10786,
7355,
9459,
12,
10697,
6,
4008,
198,
198,
1324,
796,
46947,
7,
834,
3672,
834,
8,
198,
1324,
13,
11250,
17816,
50,
10619,
62,
25664,
62,
22921,
62,
11879,
62,
7206,
38865,
20520,
796,
352,
198,
198,
615,
9459,
62,
15908,
796,
366,
64,
1,
220,
1303,
645,
24632,
198,
198,
2,
2251,
1196,
40193,
8619,
611,
340,
857,
407,
2152,
198,
361,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
615,
9459,
62,
15908,
2599,
198,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
615,
9459,
62,
15908,
8,
198,
198,
31,
1324,
13,
38629,
7203,
14,
13376,
4943,
198,
198,
31,
1324,
13,
38629,
7203,
14,
27,
600,
25,
27112,
29,
4943,
198,
198,
31,
1324,
13,
18224,
30281,
7,
26429,
8,
198,
198,
2,
5660,
262,
4382,
198,
1324,
13,
5143,
7,
4774,
2625,
15,
13,
15,
13,
15,
13,
15,
1600,
2493,
28,
27641,
8,
198
] | 2.650376 | 266 |
#!/usr/bin/env python3
import csv
import enum
import os
import pprint
import re
import sqlite3
import sys
from functools import partialmethod
if __name__ == '__main__':
sys.exit(app())
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
201,
198,
201,
198,
11748,
269,
21370,
201,
198,
11748,
33829,
201,
198,
11748,
28686,
201,
198,
11748,
279,
4798,
201,
198,
11748,
302,
201,
198,
11748,
44161,
578,
18,
201,
198,
11748,
25064,
201,
198,
6738,
1257,
310,
10141,
1330,
13027,
24396,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
201,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
201,
198,
220,
220,
220,
25064,
13,
37023,
7,
1324,
28955,
201,
198
] | 2.373626 | 91 |
# Generated by Django 3.0.5 on 2020-04-11 00:33
from django.db import migrations, models
| [
2,
2980,
515,
416,
37770,
513,
13,
15,
13,
20,
319,
12131,
12,
3023,
12,
1157,
3571,
25,
2091,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.84375 | 32 |
from collections import OrderedDict
from django.contrib.auth.models import User
from django.http import JsonResponse
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer
| [
6738,
17268,
1330,
14230,
1068,
35,
713,
198,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
27530,
1330,
11787,
198,
6738,
42625,
14208,
13,
4023,
1330,
449,
1559,
31077,
198,
6738,
1334,
62,
30604,
62,
36439,
73,
46569,
13,
46911,
11341,
1330,
29130,
5944,
3153,
47,
958,
32634,
7509,
628
] | 3.730769 | 52 |
from render_engine.img_manager import img_manager
| [
6738,
8543,
62,
18392,
13,
9600,
62,
37153,
1330,
33705,
62,
37153,
198
] | 3.846154 | 13 |
import requests
import threading
import sys
"""Usage: python aniwatch_proxy_checker.py proxy_file max_timeout"""
if __name__ == "__main__":
good_proxies = []
threads = []
with open(sys.argv[1], "r", encoding="utf-8") as f:
lol = [x.replace("\n", "") for x in f.readlines()]
lol = list(dict.fromkeys(lol))
print(f"Removed duplicates - {len(lol)} left")
for proxy in lol:
threads.append(threading.Thread(target=check_proxy, args=(proxy, float(sys.argv[2]),)))
for thread in threads:
thread.start()
for thread in threads:
thread.join()
with open("aniwatch.proxies.txt", "w+") as f:
f.write("".join(f"{x}\n" for x in good_proxies))
print("".join(f"{x}\n" for x in good_proxies))
| [
11748,
7007,
198,
11748,
4704,
278,
198,
11748,
25064,
198,
198,
37811,
28350,
25,
21015,
281,
72,
8340,
62,
36436,
62,
9122,
263,
13,
9078,
15741,
62,
7753,
3509,
62,
48678,
37811,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
922,
62,
1676,
87,
444,
796,
17635,
198,
220,
220,
220,
14390,
796,
17635,
198,
220,
220,
220,
351,
1280,
7,
17597,
13,
853,
85,
58,
16,
4357,
366,
81,
1600,
21004,
2625,
40477,
12,
23,
4943,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
19462,
796,
685,
87,
13,
33491,
7203,
59,
77,
1600,
366,
4943,
329,
2124,
287,
277,
13,
961,
6615,
3419,
60,
198,
220,
220,
220,
19462,
796,
1351,
7,
11600,
13,
6738,
13083,
7,
47288,
4008,
198,
220,
220,
220,
3601,
7,
69,
1,
45975,
14184,
16856,
532,
1391,
11925,
7,
47288,
38165,
1364,
4943,
198,
220,
220,
220,
329,
15741,
287,
19462,
25,
198,
220,
220,
220,
220,
220,
220,
220,
14390,
13,
33295,
7,
16663,
278,
13,
16818,
7,
16793,
28,
9122,
62,
36436,
11,
26498,
16193,
36436,
11,
12178,
7,
17597,
13,
853,
85,
58,
17,
46570,
22305,
198,
220,
220,
220,
329,
4704,
287,
14390,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4704,
13,
9688,
3419,
198,
220,
220,
220,
329,
4704,
287,
14390,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4704,
13,
22179,
3419,
628,
220,
220,
220,
351,
1280,
7203,
3216,
8340,
13,
1676,
87,
444,
13,
14116,
1600,
366,
86,
10,
4943,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
277,
13,
13564,
7203,
1911,
22179,
7,
69,
1,
90,
87,
32239,
77,
1,
329,
2124,
287,
922,
62,
1676,
87,
444,
4008,
628,
220,
220,
220,
3601,
7203,
1911,
22179,
7,
69,
1,
90,
87,
32239,
77,
1,
329,
2124,
287,
922,
62,
1676,
87,
444,
4008,
198
] | 2.378125 | 320 |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from functools import partial
import pytest
from hypothesis import given, strategies as st
from linehaul.protocol.line_receiver import (
LineReceiver,
BufferTooLargeError,
TruncatedLineError,
)
from ...strategies import line_delimited_data as _line_delimited_data, chunked
_max_line_size = st.integers(min_value=1, max_value=32768)
max_line_size = st.shared(_max_line_size, key="max-line-size")
line_delimited_data = partial(
_line_delimited_data, max_line_size=st.shared(_max_line_size, key="max-line-size")
)
@given(max_line_size, chunked(line_delimited_data()))
@given(max_line_size | st.none(), st.integers(min_value=1, max_value=20))
@given(st.binary(min_size=1, max_size=512).filter(lambda i: i[-1:] != b"\n"))
_lines_of_line_delimited_data = line_delimited_data(
max_line_size=st.just(512), min_lines=2
).map(lambda d: d.split(b"\n")[:-1])
lines_of_line_delimited_data = st.shared(
_lines_of_line_delimited_data, key="lines-of-line-delimited-data"
).map(lambda lst: b"\n".join(lst) + b"\n")
@given(
chunked(lines_of_line_delimited_data),
st.shared(
_lines_of_line_delimited_data, key="lines-of-line-delimited-data"
).flatmap(lambda lst: st.sampled_from(lst)),
)
| [
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,
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,
6738,
1257,
310,
10141,
1330,
13027,
198,
198,
11748,
12972,
9288,
198,
198,
6738,
14078,
1330,
1813,
11,
10064,
355,
336,
198,
198,
6738,
1627,
15194,
13,
11235,
4668,
13,
1370,
62,
260,
39729,
1330,
357,
198,
220,
220,
220,
6910,
3041,
39729,
11,
198,
220,
220,
220,
47017,
23307,
21968,
12331,
11,
198,
220,
220,
220,
833,
19524,
515,
13949,
12331,
11,
198,
8,
198,
198,
6738,
2644,
2536,
2397,
444,
1330,
1627,
62,
12381,
320,
863,
62,
7890,
355,
4808,
1370,
62,
12381,
320,
863,
62,
7890,
11,
16058,
276,
628,
198,
62,
9806,
62,
1370,
62,
7857,
796,
336,
13,
18908,
364,
7,
1084,
62,
8367,
28,
16,
11,
3509,
62,
8367,
28,
34159,
3104,
8,
198,
9806,
62,
1370,
62,
7857,
796,
336,
13,
28710,
28264,
9806,
62,
1370,
62,
7857,
11,
1994,
2625,
9806,
12,
1370,
12,
7857,
4943,
198,
198,
1370,
62,
12381,
320,
863,
62,
7890,
796,
13027,
7,
198,
220,
220,
220,
4808,
1370,
62,
12381,
320,
863,
62,
7890,
11,
3509,
62,
1370,
62,
7857,
28,
301,
13,
28710,
28264,
9806,
62,
1370,
62,
7857,
11,
1994,
2625,
9806,
12,
1370,
12,
7857,
4943,
198,
8,
628,
198,
31,
35569,
7,
9806,
62,
1370,
62,
7857,
11,
16058,
276,
7,
1370,
62,
12381,
320,
863,
62,
7890,
3419,
4008,
628,
198,
31,
35569,
7,
9806,
62,
1370,
62,
7857,
930,
336,
13,
23108,
22784,
336,
13,
18908,
364,
7,
1084,
62,
8367,
28,
16,
11,
3509,
62,
8367,
28,
1238,
4008,
628,
198,
31,
35569,
7,
301,
13,
39491,
7,
1084,
62,
7857,
28,
16,
11,
3509,
62,
7857,
28,
25836,
737,
24455,
7,
50033,
1312,
25,
1312,
58,
12,
16,
47715,
14512,
275,
1,
59,
77,
48774,
628,
198,
62,
6615,
62,
1659,
62,
1370,
62,
12381,
320,
863,
62,
7890,
796,
1627,
62,
12381,
320,
863,
62,
7890,
7,
198,
220,
220,
220,
3509,
62,
1370,
62,
7857,
28,
301,
13,
3137,
7,
25836,
828,
949,
62,
6615,
28,
17,
198,
737,
8899,
7,
50033,
288,
25,
288,
13,
35312,
7,
65,
1,
59,
77,
4943,
58,
21912,
16,
12962,
198,
6615,
62,
1659,
62,
1370,
62,
12381,
320,
863,
62,
7890,
796,
336,
13,
28710,
7,
198,
220,
220,
220,
4808,
6615,
62,
1659,
62,
1370,
62,
12381,
320,
863,
62,
7890,
11,
1994,
2625,
6615,
12,
1659,
12,
1370,
12,
12381,
320,
863,
12,
7890,
1,
198,
737,
8899,
7,
50033,
300,
301,
25,
275,
1,
59,
77,
1911,
22179,
7,
75,
301,
8,
1343,
275,
1,
59,
77,
4943,
628,
198,
31,
35569,
7,
198,
220,
220,
220,
16058,
276,
7,
6615,
62,
1659,
62,
1370,
62,
12381,
320,
863,
62,
7890,
828,
198,
220,
220,
220,
336,
13,
28710,
7,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
6615,
62,
1659,
62,
1370,
62,
12381,
320,
863,
62,
7890,
11,
1994,
2625,
6615,
12,
1659,
12,
1370,
12,
12381,
320,
863,
12,
7890,
1,
198,
220,
220,
220,
6739,
38568,
8899,
7,
50033,
300,
301,
25,
336,
13,
37687,
10137,
62,
6738,
7,
75,
301,
36911,
198,
8,
198
] | 2.716258 | 652 |
import numpy as np
import healpy as hp
import pyfits
from time import time
import matplotlib.pyplot as plt
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
import numpy.random
import os, errno
import subprocess
import astropy.wcs
import astropy.io.fits as pyfits
from astropy.coordinates import SkyCoord
import astropy.units as u
# ---------------------------------------------------------------------------------------- #
# Make directory
# Some unit definitions
arcsec_to_radians = 0.0000048481368111
degree_to_arcsec = 3600.0
# ---------------------------------------------------------------------------------------- #
# Write partial Healpix map to file
# indices are the indices of the pixels to be written
# values are the values to be written
# ---------------------------------------------------------------------------------------- #
# Find healpix ring number from z
# ---------------------------------------------------------------------------------------- #
# returns the z coordinate of ring ir for Nside
# ---------------------------------------------------------------------------------------- #
# gives the list of Healpix pixels contained in [phi_low, phi_hi]
# ---------------------------------------------------------------------------------------- #
# Linear interpolation
# ---------------------------------------------------------------------------------------- #
# Test if val beints to interval [b1, b2]
# ---------------------------------------------------------------------------------------- #
# Test if a list of (theta,phi) values below to a region defined by its corners (theta,phi) for Left, Right, Bottom, Upper
# ---------------------------------------------------------------------------------------- #
# Computes healpix pixels of propertyArray.
# pixoffset is the number of pixels to truncate on the edges of each ccd image.
# ratiores is the super-resolution factor, i.e. the edges of each ccd image are processed
# at resultion 4*nside and then averaged at resolution nside.
# ---------------------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------------------- #
# Crucial routine: read properties of a ccd image and returns its corners in ra dec.
# pixoffset is the number of pixels to truncate on the edges of each ccd image.
# ---------------------------------------------------------------------------------------- #
# Performs WCS inverse projection to obtain ra dec from ccd image information.
# ---------------------------------------------------------------------------------------- #
# Deproject into ra dec values
# ---------------------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------------------- #
# Class for a pixel of the map, containing trees of images and values
# Project NDpix into a single number
# for a given property and operation applied to its array of images
# ---------------------------------------------------------------------------------------- #
# Project NDpix into a value
# Create a "healtree", i.e. a set of pixels with trees of images in them.
# Create a "healtree", i.e. a set of pixels with trees of images in them.
# Create a "healtree", i.e. a set of pixels with trees of images in them.
# ---------------------------------------------------------------------------------------- #
# Class for multi-dimensional healpix map that can be
# created and processed in parallel.
# Initialise and create array of pixels
# Process image and absorb its properties
# Process image and absorb its properties
# Process image and absorb its properties
# Process image and absorb its properties
# Process image and absorb its properties
# Project HealTree into partial Healpix map
# for a given property and operation applied to its array of images
# Project HealTree into regular Healpix map
# for a given property and operation applied to its array of images
# ---------------------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------------------- #
# Process image and absorb its properties
# ---------------------------------------------------------------------------------------- #
# Read and project a Healtree into Healpix maps, and write them.
# ---------------------------------------------------------------------------------------- #
if False:
fname = '/Users/bl/Downloads/OPS/finalcut/Y2A1-2mass/Y2-2368/20140828/D00352819/p01/red/immask/D00352819_g_c45_r2368p01_immasked.fits.fz'
hdulist = pyfits.open(fname)
#imgdata1 = hdulist[1].data
#imgdata2 = hdulist[2].data
#imgdata3 = hdulist[3].data
#hdulist.close()
header = hdulist['SCI'].header
flatmask = hdulist['MSK'].data.T.ravel()
hdulist.close()
binmask = np.zeros(flatmask.size, dtype=bool)
binmask[(flatmask & 2047) == 0] = True
ind = np.where((flatmask & 2047) != 0)[0]
print(binmask, binmask.sum(), binmask.size, np.sum((flatmask & 2047) != 0))
np.save('D00469620_Y_c01_r2371p01_mask.npy', binmask)
np.save('D00469620_Y_c01_r2371p01_mask2.npy', ~binmask)
np.save('D00469620_Y_c01_r2371p01_mask3.npy', ind)
np.save('D00469620_Y_c01_r2371p01_mask4.npy', np.packbits(binmask))
np.save('D00469620_Y_c01_r2371p01_mask5.npy', np.packbits(~binmask))
np.savez_compressed('D00469620_Y_c01_r2371p01_maskb.npy', binmask)
np.savez_compressed('D00469620_Y_c01_r2371p01_maskb2.npy', ~binmask)
np.savez_compressed('D00469620_Y_c01_r2371p01_maskb3.npy', ind)
np.savez_compressed('D00469620_Y_c01_r2371p01_maskb4.npy', np.packbits(binmask))
np.savez_compressed('D00469620_Y_c01_r2371p01_maskb5.npy', np.packbits(~binmask))
hdu = pyfits.BinTableHDU.from_columns([pyfits.Column(name='mask', array=binmask, format='L')])
hdu.writeto('D00469620_Y_c01_r2371p01_mask.fits')
hdu = pyfits.BinTableHDU.from_columns([pyfits.Column(name='ind', array=ind, format='I')])
hdu.writeto('D00469620_Y_c01_r2371p01_mask2.fits')
hdu = pyfits.BinTableHDU.from_columns([pyfits.Column(name='mask', array=np.packbits(binmask), format='B')])
hdu.writeto('D00469620_Y_c01_r2371p01_mask3.fits')
stop
#hdulist = pyfits.open('/Users/bl/Dropbox/Projects/quicksip/data/Y1A1_SPT_IMAGEINFO_and_COADDINFO.fits')
hdulist = pyfits.open('/Users/bl/Dropbox/repos/QuickSip/y3a2_quicksip_info_000004.fits')
tbdata = hdulist[1].data
hdulist.close()
iccd = 10
propertyArray = tbdata[iccd]
#coadd_ras = [propertyArray[v] for v in ['URAUL', 'URALL', 'URALR', 'URAUR']]
#coadd_decs = [propertyArray[v] for v in ['UDECUL', 'UDECLL', 'UDECLR', 'UDECUR']]
coadd_ras = [float(propertyArray[v]) for v in ['RAC3', 'RAC2', 'RAC1', 'RAC4']]
coadd_decs = [float(propertyArray[v]) for v in ['DECC3', 'DECC2', 'DECC1', 'DECC4']]
text = [str(i+1) for i in range(4)]
print(coadd_ras)
print(coadd_decs)
plt.plot(coadd_ras, coadd_decs)
for i in range(4):
plt.text(coadd_ras[i], coadd_decs[i], text[i])
plt.show()
stop
#pix_thetas, pix_phis = hp.pix2ang(nside, ipixs_ring, nest=False)
local_dir = '.'
#local_dir = '/archive_data/desarchive/'
fname_remote = tbdata[iccd]['basepath'] + '/' + tbdata[iccd]['path'] + '/' + tbdata[iccd]['filename']
fname_local = local_dir + '/' + tbdata[iccd]['path'] + '/' + tbdata[iccd]['filename']
password_manager = urllib2.HTTPPasswordMgrWithPriorAuth()
password_manager.add_password(None, fname_remote, user, password, is_authenticated=True)
auth_manager = urllib2.HTTPBasicAuthHandler(password_manager)
opener = urllib2.build_opener(auth_manager)
#os.makedirs(local_dir + tbdata[iccd]['path'])
if not os.path.isdir(local_dir + '/' + tbdata[iccd]['path']):
os.makedirs(local_dir + '/' + tbdata[iccd]['path'])
if not os.path.exists(fname_local):
with open(fname_local, 'wb') as fd:
with opener.open(fname_remote) as f:
fd.write(f.read())
undersample = 2
hdulist = pyfits.open(fname_local)
flatmask = hdulist[2].data.T[::undersample, ::undersample].ravel()
hdulist.close()
nside = 1024
ratiores = 2
out = computeHPXpix_CCDpixels(nside, tbdata[iccd], pixoffset=0, ratiores=ratiores, coadd_cut=False, ipixel_low=None, nside_low=None, undersample=undersample)
ipixs_ring, sweights, img_thetas, img_phis, resubweights, ccdmask = out
fig, axs = plt.subplots(4, 4)
axs = axs.ravel()
cols = ['red', 'green', 'yellow', 'blue', 'orange', 'purple']
for i1, ipix_ring in enumerate(ipixs_ring[:16]):
axs[i1].scatter(img_thetas, img_phis, marker='.', s=1, color='k', alpha=0.4)
for i2 in range(ccdmask.shape[1]):
mask = ccdmask[i1, i2, :]
axs[i1].scatter(img_thetas[mask], img_phis[mask], marker='.', s=3, color=cols[i2])
axs[i1].set_xlim([0.9999*np.min(img_thetas), 1.0001*np.max(img_thetas)])
axs[i1].set_ylim([0.9999*np.min(img_phis), 1.0001*np.max(img_phis)])
fig.tight_layout()
plt.show()
#TODO: USE https://github.com/kadrlica/healpixify/blob/master/bin/healpixify
#if __name__ == "__main__":
# test()
| [
198,
11748,
299,
32152,
355,
45941,
198,
11748,
12035,
9078,
355,
27673,
198,
11748,
12972,
21013,
198,
6738,
640,
1330,
640,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
6738,
18540,
305,
919,
278,
1330,
19850,
198,
6738,
18540,
305,
919,
278,
13,
67,
13513,
1330,
19850,
355,
14122,
27201,
198,
11748,
299,
32152,
13,
25120,
198,
11748,
28686,
11,
11454,
3919,
198,
11748,
850,
14681,
198,
198,
11748,
6468,
28338,
13,
12712,
198,
11748,
6468,
28338,
13,
952,
13,
21013,
355,
12972,
21013,
198,
6738,
6468,
28338,
13,
37652,
17540,
1330,
5274,
7222,
585,
198,
11748,
6468,
28338,
13,
41667,
355,
334,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
6889,
8619,
198,
198,
2,
2773,
4326,
17336,
198,
5605,
2363,
62,
1462,
62,
6335,
1547,
796,
657,
13,
20483,
2780,
2780,
1485,
3104,
16243,
198,
16863,
62,
1462,
62,
5605,
2363,
796,
4570,
405,
13,
15,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
19430,
13027,
24923,
79,
844,
3975,
284,
2393,
198,
2,
36525,
389,
262,
36525,
286,
262,
17848,
284,
307,
3194,
198,
2,
3815,
389,
262,
3815,
284,
307,
3194,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
9938,
12035,
79,
844,
5858,
1271,
422,
1976,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
5860,
262,
1976,
20435,
286,
5858,
4173,
329,
399,
1589,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
3607,
262,
1351,
286,
24923,
79,
844,
17848,
7763,
287,
685,
34846,
62,
9319,
11,
872,
72,
62,
5303,
60,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
44800,
39555,
341,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
6208,
611,
1188,
307,
29503,
284,
16654,
685,
65,
16,
11,
275,
17,
60,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
6208,
611,
257,
1351,
286,
357,
1169,
8326,
11,
34846,
8,
3815,
2174,
284,
257,
3814,
5447,
416,
663,
14371,
357,
1169,
8326,
11,
34846,
8,
329,
9578,
11,
6498,
11,
24530,
11,
20390,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
3082,
1769,
12035,
79,
844,
17848,
286,
3119,
19182,
13,
198,
2,
279,
844,
28968,
318,
262,
1271,
286,
17848,
284,
40122,
378,
319,
262,
13015,
286,
1123,
269,
10210,
2939,
13,
198,
2,
4227,
72,
2850,
318,
262,
2208,
12,
29268,
5766,
11,
1312,
13,
68,
13,
262,
13015,
286,
1123,
269,
10210,
2939,
389,
13686,
198,
2,
220,
220,
379,
1255,
295,
604,
9,
77,
1589,
290,
788,
16449,
379,
6323,
299,
1589,
13,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
6472,
2413,
8027,
25,
1100,
6608,
286,
257,
269,
10210,
2939,
290,
5860,
663,
14371,
287,
2179,
875,
13,
198,
2,
279,
844,
28968,
318,
262,
1271,
286,
17848,
284,
40122,
378,
319,
262,
13015,
286,
1123,
269,
10210,
2939,
13,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
2448,
23914,
45410,
34062,
20128,
284,
7330,
2179,
875,
422,
269,
10210,
2939,
1321,
13,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
2129,
305,
752,
656,
2179,
875,
3815,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
5016,
329,
257,
17465,
286,
262,
3975,
11,
7268,
7150,
286,
4263,
290,
3815,
628,
198,
220,
220,
220,
1303,
4935,
25524,
79,
844,
656,
257,
2060,
1271,
198,
220,
220,
220,
1303,
329,
257,
1813,
3119,
290,
4905,
5625,
284,
663,
7177,
286,
4263,
628,
198,
2,
16529,
22369,
1303,
198,
198,
2,
4935,
25524,
79,
844,
656,
257,
1988,
628,
198,
198,
2,
13610,
257,
366,
258,
2501,
631,
1600,
1312,
13,
68,
13,
257,
900,
286,
17848,
351,
7150,
286,
4263,
287,
606,
13,
628,
198,
2,
13610,
257,
366,
258,
2501,
631,
1600,
1312,
13,
68,
13,
257,
900,
286,
17848,
351,
7150,
286,
4263,
287,
606,
13,
628,
198,
2,
13610,
257,
366,
258,
2501,
631,
1600,
1312,
13,
68,
13,
257,
900,
286,
17848,
351,
7150,
286,
4263,
287,
606,
13,
628,
198,
2,
16529,
22369,
1303,
198,
198,
2,
5016,
329,
5021,
12,
19577,
12035,
79,
844,
3975,
326,
460,
307,
198,
2,
2727,
290,
13686,
287,
10730,
13,
628,
220,
220,
220,
1303,
20768,
786,
290,
2251,
7177,
286,
17848,
628,
220,
220,
220,
1303,
10854,
2939,
290,
17565,
663,
6608,
628,
220,
220,
220,
1303,
10854,
2939,
290,
17565,
663,
6608,
628,
220,
220,
220,
1303,
10854,
2939,
290,
17565,
663,
6608,
628,
220,
220,
220,
1303,
10854,
2939,
290,
17565,
663,
6608,
628,
220,
220,
220,
1303,
10854,
2939,
290,
17565,
663,
6608,
628,
220,
220,
220,
220,
1303,
4935,
24923,
27660,
656,
13027,
24923,
79,
844,
3975,
198,
220,
220,
220,
220,
1303,
329,
257,
1813,
3119,
290,
4905,
5625,
284,
663,
7177,
286,
4263,
628,
220,
220,
220,
220,
1303,
4935,
24923,
27660,
656,
3218,
24923,
79,
844,
3975,
198,
220,
220,
220,
220,
1303,
329,
257,
1813,
3119,
290,
4905,
5625,
284,
663,
7177,
286,
4263,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
10854,
2939,
290,
17565,
663,
6608,
198,
198,
2,
16529,
22369,
1303,
198,
198,
2,
4149,
290,
1628,
257,
679,
2501,
631,
656,
24923,
79,
844,
8739,
11,
290,
3551,
606,
13,
198,
2,
16529,
22369,
1303,
628,
198,
361,
10352,
25,
198,
220,
220,
220,
277,
3672,
796,
31051,
14490,
14,
2436,
14,
10002,
82,
14,
30737,
14,
20311,
8968,
14,
56,
17,
32,
16,
12,
17,
22208,
14,
56,
17,
12,
1954,
3104,
14,
1264,
26200,
2078,
14,
35,
405,
2327,
2078,
1129,
14,
79,
486,
14,
445,
14,
8608,
2093,
14,
35,
405,
2327,
2078,
1129,
62,
70,
62,
66,
2231,
62,
81,
1954,
3104,
79,
486,
62,
8608,
2093,
276,
13,
21013,
13,
69,
89,
6,
198,
220,
220,
220,
289,
67,
377,
396,
796,
12972,
21013,
13,
9654,
7,
69,
3672,
8,
198,
220,
220,
220,
1303,
9600,
7890,
16,
796,
289,
67,
377,
396,
58,
16,
4083,
7890,
198,
220,
220,
220,
1303,
9600,
7890,
17,
796,
289,
67,
377,
396,
58,
17,
4083,
7890,
198,
220,
220,
220,
1303,
9600,
7890,
18,
796,
289,
67,
377,
396,
58,
18,
4083,
7890,
198,
220,
220,
220,
1303,
31298,
377,
396,
13,
19836,
3419,
198,
220,
220,
220,
13639,
796,
289,
67,
377,
396,
17816,
6173,
40,
6,
4083,
25677,
198,
220,
220,
220,
6228,
27932,
796,
289,
67,
377,
396,
17816,
5653,
42,
6,
4083,
7890,
13,
51,
13,
25843,
3419,
198,
220,
220,
220,
289,
67,
377,
396,
13,
19836,
3419,
198,
220,
220,
220,
9874,
27932,
796,
45941,
13,
9107,
418,
7,
38568,
27932,
13,
7857,
11,
288,
4906,
28,
30388,
8,
198,
220,
220,
220,
9874,
27932,
58,
7,
38568,
27932,
1222,
1160,
2857,
8,
6624,
657,
60,
796,
6407,
198,
220,
220,
220,
773,
796,
45941,
13,
3003,
19510,
38568,
27932,
1222,
1160,
2857,
8,
14512,
657,
38381,
15,
60,
198,
220,
220,
220,
3601,
7,
8800,
27932,
11,
9874,
27932,
13,
16345,
22784,
9874,
27932,
13,
7857,
11,
45941,
13,
16345,
19510,
38568,
27932,
1222,
1160,
2857,
8,
14512,
657,
4008,
628,
220,
220,
220,
45941,
13,
21928,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
13,
77,
9078,
3256,
9874,
27932,
8,
198,
220,
220,
220,
45941,
13,
21928,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
17,
13,
77,
9078,
3256,
5299,
8800,
27932,
8,
198,
220,
220,
220,
45941,
13,
21928,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
18,
13,
77,
9078,
3256,
773,
8,
198,
220,
220,
220,
45941,
13,
21928,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
19,
13,
77,
9078,
3256,
45941,
13,
8002,
9895,
7,
8800,
27932,
4008,
198,
220,
220,
220,
45941,
13,
21928,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
20,
13,
77,
9078,
3256,
45941,
13,
8002,
9895,
7,
93,
8800,
27932,
4008,
198,
220,
220,
220,
45941,
13,
21928,
89,
62,
5589,
2790,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
65,
13,
77,
9078,
3256,
9874,
27932,
8,
198,
220,
220,
220,
45941,
13,
21928,
89,
62,
5589,
2790,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
65,
17,
13,
77,
9078,
3256,
5299,
8800,
27932,
8,
198,
220,
220,
220,
45941,
13,
21928,
89,
62,
5589,
2790,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
65,
18,
13,
77,
9078,
3256,
773,
8,
198,
220,
220,
220,
45941,
13,
21928,
89,
62,
5589,
2790,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
65,
19,
13,
77,
9078,
3256,
45941,
13,
8002,
9895,
7,
8800,
27932,
4008,
198,
220,
220,
220,
45941,
13,
21928,
89,
62,
5589,
2790,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
65,
20,
13,
77,
9078,
3256,
45941,
13,
8002,
9895,
7,
93,
8800,
27932,
4008,
198,
220,
220,
220,
289,
646,
796,
12972,
21013,
13,
33,
259,
10962,
10227,
52,
13,
6738,
62,
28665,
82,
26933,
9078,
21013,
13,
39470,
7,
3672,
11639,
27932,
3256,
7177,
28,
8800,
27932,
11,
5794,
11639,
43,
11537,
12962,
198,
220,
220,
220,
289,
646,
13,
8933,
27206,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
13,
21013,
11537,
198,
220,
220,
220,
289,
646,
796,
12972,
21013,
13,
33,
259,
10962,
10227,
52,
13,
6738,
62,
28665,
82,
26933,
9078,
21013,
13,
39470,
7,
3672,
11639,
521,
3256,
7177,
28,
521,
11,
5794,
11639,
40,
11537,
12962,
198,
220,
220,
220,
289,
646,
13,
8933,
27206,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
17,
13,
21013,
11537,
198,
220,
220,
220,
289,
646,
796,
12972,
21013,
13,
33,
259,
10962,
10227,
52,
13,
6738,
62,
28665,
82,
26933,
9078,
21013,
13,
39470,
7,
3672,
11639,
27932,
3256,
7177,
28,
37659,
13,
8002,
9895,
7,
8800,
27932,
828,
5794,
11639,
33,
11537,
12962,
198,
220,
220,
220,
289,
646,
13,
8933,
27206,
10786,
35,
22914,
38205,
1238,
62,
56,
62,
66,
486,
62,
81,
1954,
4869,
79,
486,
62,
27932,
18,
13,
21013,
11537,
628,
220,
220,
220,
2245,
198,
220,
220,
220,
1303,
31298,
377,
396,
796,
12972,
21013,
13,
9654,
10786,
14,
14490,
14,
2436,
14,
26932,
3524,
14,
16775,
82,
14,
421,
3378,
541,
14,
7890,
14,
56,
16,
32,
16,
62,
4303,
51,
62,
3955,
11879,
10778,
62,
392,
62,
8220,
29266,
10778,
13,
21013,
11537,
628,
220,
220,
220,
289,
67,
377,
396,
796,
12972,
21013,
13,
9654,
10786,
14,
14490,
14,
2436,
14,
26932,
3524,
14,
260,
1930,
14,
21063,
50,
541,
14,
88,
18,
64,
17,
62,
421,
3378,
541,
62,
10951,
62,
20483,
19,
13,
21013,
11537,
198,
220,
220,
220,
256,
65,
7890,
796,
289,
67,
377,
396,
58,
16,
4083,
7890,
198,
220,
220,
220,
289,
67,
377,
396,
13,
19836,
3419,
628,
220,
220,
220,
14158,
10210,
796,
838,
628,
220,
220,
220,
3119,
19182,
796,
256,
65,
7890,
58,
291,
10210,
60,
198,
220,
220,
220,
1303,
1073,
2860,
62,
8847,
796,
685,
26745,
19182,
58,
85,
60,
329,
410,
287,
37250,
45570,
6239,
3256,
705,
4261,
7036,
3256,
705,
4261,
1847,
49,
3256,
705,
45570,
4261,
6,
11907,
198,
220,
220,
220,
1303,
1073,
2860,
62,
12501,
82,
796,
685,
26745,
19182,
58,
85,
60,
329,
410,
287,
37250,
8322,
2943,
6239,
3256,
705,
8322,
2943,
3069,
3256,
705,
8322,
2943,
35972,
3256,
705,
8322,
2943,
4261,
6,
11907,
198,
220,
220,
220,
763,
2860,
62,
8847,
796,
685,
22468,
7,
26745,
19182,
58,
85,
12962,
329,
410,
287,
37250,
49,
2246,
18,
3256,
705,
49,
2246,
17,
3256,
705,
49,
2246,
16,
3256,
705,
49,
2246,
19,
6,
11907,
198,
220,
220,
220,
763,
2860,
62,
12501,
82,
796,
685,
22468,
7,
26745,
19182,
58,
85,
12962,
329,
410,
287,
37250,
41374,
34,
18,
3256,
705,
41374,
34,
17,
3256,
705,
41374,
34,
16,
3256,
705,
41374,
34,
19,
6,
11907,
198,
220,
220,
220,
2420,
796,
685,
2536,
7,
72,
10,
16,
8,
329,
1312,
287,
2837,
7,
19,
15437,
628,
220,
220,
220,
3601,
7,
1073,
2860,
62,
8847,
8,
198,
220,
220,
220,
3601,
7,
1073,
2860,
62,
12501,
82,
8,
198,
220,
220,
220,
458,
83,
13,
29487,
7,
1073,
2860,
62,
8847,
11,
763,
2860,
62,
12501,
82,
8,
198,
220,
220,
220,
329,
1312,
287,
2837,
7,
19,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
458,
83,
13,
5239,
7,
1073,
2860,
62,
8847,
58,
72,
4357,
763,
2860,
62,
12501,
82,
58,
72,
4357,
2420,
58,
72,
12962,
198,
220,
220,
220,
458,
83,
13,
12860,
3419,
628,
220,
220,
220,
2245,
628,
220,
220,
220,
1303,
79,
844,
62,
1169,
83,
292,
11,
279,
844,
62,
18691,
796,
27673,
13,
79,
844,
17,
648,
7,
77,
1589,
11,
20966,
844,
82,
62,
1806,
11,
16343,
28,
25101,
8,
628,
220,
220,
220,
1957,
62,
15908,
796,
705,
2637,
198,
220,
220,
220,
1303,
12001,
62,
15908,
796,
31051,
17474,
62,
7890,
14,
8906,
17474,
14,
6,
628,
220,
220,
220,
277,
3672,
62,
47960,
796,
256,
65,
7890,
58,
291,
10210,
7131,
6,
12093,
538,
776,
20520,
1343,
31051,
6,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
6978,
20520,
1343,
31051,
6,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
34345,
20520,
198,
220,
220,
220,
277,
3672,
62,
12001,
796,
1957,
62,
15908,
1343,
31051,
6,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
6978,
20520,
1343,
31051,
6,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
34345,
20520,
628,
220,
220,
220,
9206,
62,
37153,
796,
2956,
297,
571,
17,
13,
40717,
35215,
44,
2164,
3152,
22442,
30515,
3419,
198,
220,
220,
220,
9206,
62,
37153,
13,
2860,
62,
28712,
7,
14202,
11,
277,
3672,
62,
47960,
11,
2836,
11,
9206,
11,
318,
62,
41299,
3474,
28,
17821,
8,
198,
220,
220,
220,
6284,
62,
37153,
796,
2956,
297,
571,
17,
13,
40717,
26416,
30515,
25060,
7,
28712,
62,
37153,
8,
198,
220,
220,
220,
21996,
796,
2956,
297,
571,
17,
13,
11249,
62,
404,
877,
7,
18439,
62,
37153,
8,
628,
198,
220,
220,
220,
1303,
418,
13,
76,
4335,
17062,
7,
12001,
62,
15908,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
6978,
6,
12962,
628,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
9409,
343,
7,
12001,
62,
15908,
1343,
31051,
6,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
6978,
20520,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
76,
4335,
17062,
7,
12001,
62,
15908,
1343,
31051,
6,
1343,
256,
65,
7890,
58,
291,
10210,
7131,
6,
6978,
6,
12962,
628,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
69,
3672,
62,
12001,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
69,
3672,
62,
12001,
11,
705,
39346,
11537,
355,
277,
67,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
21996,
13,
9654,
7,
69,
3672,
62,
47960,
8,
355,
277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
67,
13,
13564,
7,
69,
13,
961,
28955,
628,
220,
220,
220,
14584,
1403,
796,
362,
628,
220,
220,
220,
289,
67,
377,
396,
796,
12972,
21013,
13,
9654,
7,
69,
3672,
62,
12001,
8,
198,
220,
220,
220,
6228,
27932,
796,
289,
67,
377,
396,
58,
17,
4083,
7890,
13,
51,
58,
3712,
41116,
1403,
11,
7904,
41116,
1403,
4083,
25843,
3419,
198,
220,
220,
220,
289,
67,
377,
396,
13,
19836,
3419,
628,
198,
220,
220,
220,
299,
1589,
796,
28119,
198,
220,
220,
220,
4227,
72,
2850,
796,
362,
198,
220,
220,
220,
503,
796,
24061,
14082,
55,
79,
844,
62,
4093,
35,
79,
14810,
7,
77,
1589,
11,
256,
65,
7890,
58,
291,
10210,
4357,
279,
844,
28968,
28,
15,
11,
4227,
72,
2850,
28,
81,
7246,
2850,
11,
763,
2860,
62,
8968,
28,
25101,
11,
20966,
7168,
62,
9319,
28,
14202,
11,
299,
1589,
62,
9319,
28,
14202,
11,
14584,
1403,
28,
41116,
1403,
8,
198,
220,
220,
220,
20966,
844,
82,
62,
1806,
11,
3490,
2337,
11,
33705,
62,
1169,
83,
292,
11,
33705,
62,
18691,
11,
581,
549,
43775,
11,
269,
10210,
27932,
796,
503,
628,
198,
220,
220,
220,
2336,
11,
7877,
82,
796,
458,
83,
13,
7266,
489,
1747,
7,
19,
11,
604,
8,
198,
220,
220,
220,
7877,
82,
796,
7877,
82,
13,
25843,
3419,
198,
220,
220,
220,
951,
82,
796,
37250,
445,
3256,
705,
14809,
3256,
705,
36022,
3256,
705,
17585,
3256,
705,
43745,
3256,
705,
14225,
1154,
20520,
198,
220,
220,
220,
329,
1312,
16,
11,
20966,
844,
62,
1806,
287,
27056,
378,
7,
541,
844,
82,
62,
1806,
58,
25,
1433,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
82,
58,
72,
16,
4083,
1416,
1436,
7,
9600,
62,
1169,
83,
292,
11,
33705,
62,
18691,
11,
18364,
11639,
2637,
11,
264,
28,
16,
11,
3124,
11639,
74,
3256,
17130,
28,
15,
13,
19,
8,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
17,
287,
2837,
7,
535,
67,
27932,
13,
43358,
58,
16,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9335,
796,
269,
10210,
27932,
58,
72,
16,
11,
1312,
17,
11,
1058,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7877,
82,
58,
72,
16,
4083,
1416,
1436,
7,
9600,
62,
1169,
83,
292,
58,
27932,
4357,
33705,
62,
18691,
58,
27932,
4357,
18364,
11639,
2637,
11,
264,
28,
18,
11,
3124,
28,
4033,
82,
58,
72,
17,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
82,
58,
72,
16,
4083,
2617,
62,
87,
2475,
26933,
15,
13,
24214,
9,
37659,
13,
1084,
7,
9600,
62,
1169,
83,
292,
828,
352,
13,
18005,
9,
37659,
13,
9806,
7,
9600,
62,
1169,
83,
292,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
7877,
82,
58,
72,
16,
4083,
2617,
62,
88,
2475,
26933,
15,
13,
24214,
9,
37659,
13,
1084,
7,
9600,
62,
18691,
828,
352,
13,
18005,
9,
37659,
13,
9806,
7,
9600,
62,
18691,
8,
12962,
198,
220,
220,
220,
2336,
13,
33464,
62,
39786,
3419,
198,
220,
220,
220,
458,
83,
13,
12860,
3419,
628,
220,
220,
220,
1303,
51,
3727,
46,
25,
23210,
3740,
1378,
12567,
13,
785,
14,
74,
41909,
677,
64,
14,
258,
282,
79,
844,
1958,
14,
2436,
672,
14,
9866,
14,
8800,
14,
258,
282,
79,
844,
1958,
198,
198,
2,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
2,
220,
220,
220,
1332,
3419,
198
] | 2.983607 | 3,233 |
# -*- coding: utf-8 -*-
"""Factories to help in tests."""
from factory import PostGenerationMethodCall, Sequence
from factory.alchemy import SQLAlchemyModelFactory
from my_flask_app.database import db
from my_flask_app.user.models import User
from my_flask_app.quiz.models import Quiz
import json
class BaseFactory(SQLAlchemyModelFactory):
"""Base factory."""
class Meta:
"""Factory configuration."""
abstract = True
sqlalchemy_session = db.session
class UserFactory(BaseFactory):
"""User factory."""
username = Sequence(lambda n: f"user{n}")
email = Sequence(lambda n: f"user{n}@example.com")
password = PostGenerationMethodCall("set_password", "example")
active = True
class Meta:
"""Factory configuration."""
model = User
class QuizFactory(BaseFactory):
""" Qiuz factory. """
questions = {
"response_code":0,
"results":[
{
"category":"Category 1",
"type":"multiple",
"difficulty":"medium",
"question": f"question {n}",
"correct_answer":"answer 1",
"incorrect_answers":[
"answer 2",
"answer 3",
"answer 4"
],
"answers": [
"answer 1",
"answer 2",
"answer 3",
"answer 4"
],
"answer": "answer_4",
} for n in range(5)
]
}
class Meta:
"""Factory configuration."""
model = Quiz | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
29054,
1749,
284,
1037,
287,
5254,
526,
15931,
198,
6738,
8860,
1330,
2947,
8645,
341,
17410,
14134,
11,
45835,
198,
6738,
8860,
13,
282,
26599,
1330,
16363,
2348,
26599,
17633,
22810,
198,
198,
6738,
616,
62,
2704,
2093,
62,
1324,
13,
48806,
1330,
20613,
198,
6738,
616,
62,
2704,
2093,
62,
1324,
13,
7220,
13,
27530,
1330,
11787,
198,
6738,
616,
62,
2704,
2093,
62,
1324,
13,
421,
528,
13,
27530,
1330,
2264,
528,
198,
198,
11748,
33918,
628,
198,
4871,
7308,
22810,
7,
17861,
2348,
26599,
17633,
22810,
2599,
198,
220,
220,
220,
37227,
14881,
8860,
526,
15931,
628,
220,
220,
220,
1398,
30277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
22810,
8398,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
12531,
796,
6407,
198,
220,
220,
220,
220,
220,
220,
220,
44161,
282,
26599,
62,
29891,
796,
20613,
13,
29891,
628,
198,
4871,
11787,
22810,
7,
14881,
22810,
2599,
198,
220,
220,
220,
37227,
12982,
8860,
526,
15931,
628,
220,
220,
220,
20579,
796,
45835,
7,
50033,
299,
25,
277,
1,
7220,
90,
77,
92,
4943,
198,
220,
220,
220,
3053,
796,
45835,
7,
50033,
299,
25,
277,
1,
7220,
90,
77,
92,
31,
20688,
13,
785,
4943,
198,
220,
220,
220,
9206,
796,
2947,
8645,
341,
17410,
14134,
7203,
2617,
62,
28712,
1600,
366,
20688,
4943,
198,
220,
220,
220,
4075,
796,
6407,
628,
220,
220,
220,
1398,
30277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
22810,
8398,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2746,
796,
11787,
198,
198,
4871,
2264,
528,
22810,
7,
14881,
22810,
2599,
198,
220,
220,
220,
37227,
21924,
10277,
8860,
13,
37227,
628,
220,
220,
220,
2683,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
366,
26209,
62,
8189,
1298,
15,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
43420,
20598,
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,
22872,
2404,
27313,
352,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
4906,
2404,
48101,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
26069,
22402,
2404,
24132,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
25652,
1298,
277,
1,
25652,
1391,
77,
92,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
30283,
62,
41484,
2404,
41484,
352,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1939,
47315,
62,
504,
86,
364,
20598,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
362,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
513,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
604,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
504,
86,
364,
1298,
685,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
352,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
362,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
513,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
604,
1,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16589,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41484,
1298,
366,
41484,
62,
19,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
329,
299,
287,
2837,
7,
20,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2361,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
1398,
30277,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
22810,
8398,
526,
15931,
628,
220,
220,
220,
220,
220,
220,
220,
2746,
796,
2264,
528
] | 2.060302 | 796 |
#!/usr/bin/env python
from .Core import Core
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
198,
6738,
764,
14055,
1330,
7231,
628
] | 2.9375 | 16 |
# Port of the tssrp6a library used for authentification
# Kudos to Schmitty#5079 for doing a rough translation from Javascript to Python
# of the important functions
import hashlib
import secrets
from typing import Tuple
N = 21766174458617435773191008891802753781907668374255538511144643224689886235383840957210909013086056401571399717235807266581649606472148410291413364152197364477180887395655483738115072677402235101762521901569820740293149529620419333266262073471054548368736039519702486226506248861060256971802984953561121442680157668000761429988222457090413873973970171927093992114751765168063614761119615476233422096442783117971236371647333871414335895773474667308967050807005509320424799678417036867928316761272274230314067548291133582479583061439577559347101961771406173684378522703483495337037655006751328447510550299250924469288819
SALT_LEN = 128
PRIVATE_VALUE_LEN = 256
NG = 2048
NG_BYTES = (NG + 7) // 8
def create_verifier_and_salt(password: bytes) -> Tuple[int, int]:
"""
Create a verifier and a salt for a given password. Used for user registration.
:param password: Password of the user
:return: Salt and Verifier derived from the password
"""
s = random_bytes(SALT_LEN)
v = create_verifier(s, password)
return (s, v)
def process_challenge(password: bytes, salt: bytes, challenge: int) -> Tuple[int, int, int, int, int, int, int]:
"""
Process the challenge and returns (x, a, A, k, u, S, M1). Used for user authentification.
:param password: Password of the user
:param salt: Salt associated with the user's verifier
:param challenge: Challenge created by the server
:return: Values generated by the challenge
"""
x = compute_x(salt, password)
a = generate_private_value()
A = pow(2, a, N)
k = btoi(hash_padded(itob(N), b'\x02'))
u = btoi(hash_padded(itob(A), itob(challenge)))
S = compute_client_session_key(k, x, u, a, challenge)
M1 = compute_client_evidence(A, challenge, S)
return (x, a, A, k, u, S, M1) | [
2,
4347,
286,
262,
256,
824,
81,
79,
21,
64,
5888,
973,
329,
8323,
2649,
198,
2,
509,
42418,
284,
3059,
76,
9760,
2,
1120,
3720,
329,
1804,
257,
5210,
11059,
422,
24711,
284,
11361,
198,
2,
286,
262,
1593,
5499,
198,
198,
11748,
12234,
8019,
198,
11748,
13141,
198,
198,
6738,
19720,
1330,
309,
29291,
198,
198,
45,
796,
24894,
2791,
22985,
2231,
4521,
22985,
2327,
3324,
35175,
3064,
39121,
15259,
23195,
30695,
1129,
2998,
35809,
31020,
1495,
2816,
27203,
1157,
18444,
2414,
2624,
1731,
40523,
44980,
22370,
2548,
2548,
29416,
48724,
14454,
2931,
486,
21495,
32417,
2414,
486,
3553,
1485,
39647,
1558,
22370,
36928,
2075,
38431,
1433,
2920,
1899,
2414,
4761,
1415,
5705,
940,
1959,
1415,
16945,
2414,
17827,
40220,
2414,
32883,
1507,
2919,
5774,
2670,
3980,
2816,
2780,
2718,
2548,
1157,
35378,
2075,
3324,
1821,
1828,
2327,
8784,
4304,
22800,
1129,
25150,
39357,
22745,
1821,
31675,
1415,
3865,
27137,
18638,
1129,
20370,
25540,
2075,
22745,
30995,
13348,
2231,
2780,
27412,
4790,
1899,
31010,
30986,
1731,
4521,
1828,
17544,
21,
1731,
3459,
39132,
1899,
1495,
40035,
15259,
27728,
33781,
2327,
5333,
1065,
18444,
25022,
486,
3553,
2791,
33942,
4304,
1415,
22579,
3459,
1828,
22995,
31495,
3023,
1485,
5774,
33372,
33372,
29326,
1129,
1983,
2931,
28771,
17,
16562,
2425,
1558,
2996,
1433,
37988,
2623,
1415,
4304,
1157,
25272,
1314,
35435,
1954,
2682,
17572,
24,
29173,
1983,
5999,
1157,
44673,
1065,
2623,
2718,
1433,
2857,
2091,
32220,
1415,
1415,
2091,
3365,
3865,
3324,
2682,
4524,
28933,
1270,
4531,
43798,
1120,
1795,
9879,
22730,
6052,
18638,
23753,
2079,
3134,
5705,
17279,
27412,
37601,
30290,
1433,
4304,
16799,
24403,
3682,
22572,
1415,
3312,
2425,
2780,
1959,
1157,
2091,
3365,
1731,
3720,
3365,
20548,
1415,
2670,
3553,
2425,
3270,
2682,
4869,
486,
4846,
22413,
1415,
3312,
1558,
2623,
5705,
2718,
5332,
1828,
2154,
28978,
2682,
3865,
2091,
2154,
32128,
2816,
28041,
2425,
1485,
2078,
2598,
2425,
13348,
1120,
1959,
5892,
29022,
25707,
3388,
2078,
3459,
1129,
198,
198,
50,
31429,
62,
43,
1677,
796,
13108,
198,
4805,
3824,
6158,
62,
39488,
62,
43,
1677,
796,
17759,
198,
198,
10503,
796,
36117,
198,
10503,
62,
17513,
51,
1546,
796,
357,
10503,
1343,
767,
8,
3373,
807,
198,
198,
4299,
2251,
62,
332,
7483,
62,
392,
62,
82,
2501,
7,
28712,
25,
9881,
8,
4613,
309,
29291,
58,
600,
11,
493,
5974,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
13610,
257,
3326,
7483,
290,
257,
8268,
329,
257,
1813,
9206,
13,
16718,
329,
2836,
9352,
13,
628,
220,
220,
220,
1058,
17143,
9206,
25,
30275,
286,
262,
2836,
628,
220,
220,
220,
1058,
7783,
25,
13754,
290,
4643,
7483,
10944,
422,
262,
9206,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
264,
796,
4738,
62,
33661,
7,
50,
31429,
62,
43,
1677,
8,
198,
220,
220,
220,
410,
796,
2251,
62,
332,
7483,
7,
82,
11,
9206,
8,
628,
220,
220,
220,
1441,
357,
82,
11,
410,
8,
198,
198,
4299,
1429,
62,
36747,
3540,
7,
28712,
25,
9881,
11,
8268,
25,
9881,
11,
4427,
25,
493,
8,
4613,
309,
29291,
58,
600,
11,
493,
11,
493,
11,
493,
11,
493,
11,
493,
11,
493,
5974,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
10854,
262,
4427,
290,
5860,
357,
87,
11,
257,
11,
317,
11,
479,
11,
334,
11,
311,
11,
337,
16,
737,
16718,
329,
2836,
8323,
2649,
13,
628,
220,
220,
220,
1058,
17143,
9206,
25,
30275,
286,
262,
2836,
198,
220,
220,
220,
1058,
17143,
8268,
25,
13754,
3917,
351,
262,
2836,
338,
3326,
7483,
198,
220,
220,
220,
1058,
17143,
4427,
25,
13879,
2727,
416,
262,
4382,
628,
220,
220,
220,
1058,
7783,
25,
27068,
7560,
416,
262,
4427,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
2124,
796,
24061,
62,
87,
7,
82,
2501,
11,
9206,
8,
198,
220,
220,
220,
257,
796,
7716,
62,
19734,
62,
8367,
3419,
198,
220,
220,
220,
317,
796,
7182,
7,
17,
11,
257,
11,
399,
8,
198,
220,
220,
220,
479,
796,
275,
1462,
72,
7,
17831,
62,
79,
29373,
7,
270,
672,
7,
45,
828,
275,
6,
59,
87,
2999,
6,
4008,
198,
220,
220,
220,
334,
796,
275,
1462,
72,
7,
17831,
62,
79,
29373,
7,
270,
672,
7,
32,
828,
340,
672,
7,
36747,
3540,
22305,
198,
220,
220,
220,
311,
796,
24061,
62,
16366,
62,
29891,
62,
2539,
7,
74,
11,
2124,
11,
334,
11,
257,
11,
4427,
8,
198,
220,
220,
220,
337,
16,
796,
24061,
62,
16366,
62,
46817,
7,
32,
11,
4427,
11,
311,
8,
628,
220,
220,
220,
1441,
357,
87,
11,
257,
11,
317,
11,
479,
11,
334,
11,
311,
11,
337,
16,
8
] | 2.617268 | 776 |
"""
mymemory translator API
"""
from typing import List, Optional, Union
import requests
from deep_translator.base import BaseTranslator
from deep_translator.constants import BASE_URLS
from deep_translator.exceptions import (
RequestError,
TooManyRequests,
TranslationNotFound,
)
from deep_translator.validate import is_empty, is_input_valid
class MyMemoryTranslator(BaseTranslator):
"""
class that uses the mymemory translator to translate texts
"""
def __init__(
self,
source: str = "auto",
target: str = "en",
proxies: Optional[dict] = None,
**kwargs,
):
"""
@param source: source language to translate from
@param target: target language to translate to
"""
self.proxies = proxies
self.email = kwargs.get("email", None)
super().__init__(
base_url=BASE_URLS.get("MYMEMORY"),
source=source,
target=target,
payload_key="q",
)
def translate(
self, text: str, return_all: bool = False, **kwargs
) -> Union[str, List[str]]:
"""
function that uses the mymemory translator to translate a text
@param text: desired text to translate
@type text: str
@param return_all: set to True to return all synonym/similars of the translated text
@return: str or list
"""
if is_input_valid(text, max_chars=500):
text = text.strip()
if self._same_source_target() or is_empty(text):
return text
self._url_params["langpair"] = f"{self._source}|{self._target}"
if self.payload_key:
self._url_params[self.payload_key] = text
if self.email:
self._url_params["de"] = self.email
response = requests.get(
self._base_url, params=self._url_params, proxies=self.proxies
)
if response.status_code == 429:
raise TooManyRequests()
if response.status_code != 200:
raise RequestError()
data = response.json()
if not data:
TranslationNotFound(text)
translation = data.get("responseData").get("translatedText")
if translation:
return translation
elif not translation:
all_matches = data.get("matches")
matches = (match["translation"] for match in all_matches)
next_match = next(matches)
return next_match if not return_all else list(all_matches)
def translate_file(self, path: str, **kwargs) -> str:
"""
translate directly from file
@param path: path to the target file
@type path: str
@param kwargs: additional args
@return: str
"""
return self._translate_file(path, **kwargs)
def translate_batch(self, batch: List[str], **kwargs) -> List[str]:
"""
translate a list of texts
@param batch: list of texts you want to translate
@return: list of translations
"""
return self._translate_batch(batch, **kwargs)
| [
37811,
198,
1820,
31673,
33417,
7824,
198,
37811,
198,
6738,
19720,
1330,
7343,
11,
32233,
11,
4479,
198,
198,
11748,
7007,
198,
198,
6738,
2769,
62,
7645,
41880,
13,
8692,
1330,
7308,
8291,
41880,
198,
6738,
2769,
62,
7645,
41880,
13,
9979,
1187,
1330,
49688,
62,
4261,
6561,
198,
6738,
2769,
62,
7645,
41880,
13,
1069,
11755,
1330,
357,
198,
220,
220,
220,
19390,
12331,
11,
198,
220,
220,
220,
14190,
7085,
16844,
3558,
11,
198,
220,
220,
220,
33322,
3673,
21077,
11,
198,
8,
198,
6738,
2769,
62,
7645,
41880,
13,
12102,
378,
1330,
318,
62,
28920,
11,
318,
62,
15414,
62,
12102,
628,
198,
4871,
2011,
30871,
8291,
41880,
7,
14881,
8291,
41880,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1398,
326,
3544,
262,
616,
31673,
33417,
284,
15772,
13399,
198,
220,
220,
220,
37227,
628,
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,
2723,
25,
965,
796,
366,
23736,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
2496,
25,
965,
796,
366,
268,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
41775,
25,
32233,
58,
11600,
60,
796,
6045,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12429,
46265,
22046,
11,
198,
220,
220,
220,
15179,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
2723,
25,
2723,
3303,
284,
15772,
422,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
2496,
25,
2496,
3303,
284,
15772,
284,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1676,
87,
444,
796,
41775,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
12888,
796,
479,
86,
22046,
13,
1136,
7203,
12888,
1600,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2779,
62,
6371,
28,
33,
11159,
62,
4261,
6561,
13,
1136,
7203,
26708,
44,
3620,
15513,
12340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
28,
10459,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
28,
16793,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21437,
62,
2539,
2625,
80,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
825,
15772,
7,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
11,
2420,
25,
965,
11,
1441,
62,
439,
25,
20512,
796,
10352,
11,
12429,
46265,
22046,
198,
220,
220,
220,
1267,
4613,
4479,
58,
2536,
11,
7343,
58,
2536,
60,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2163,
326,
3544,
262,
616,
31673,
33417,
284,
15772,
257,
2420,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
2420,
25,
10348,
2420,
284,
15772,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
4906,
2420,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
1441,
62,
439,
25,
900,
284,
6407,
284,
1441,
477,
6171,
5177,
14,
14323,
346,
945,
286,
262,
14251,
2420,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
7783,
25,
965,
393,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
62,
15414,
62,
12102,
7,
5239,
11,
3509,
62,
354,
945,
28,
4059,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
796,
2420,
13,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
31642,
62,
10459,
62,
16793,
3419,
393,
318,
62,
28920,
7,
5239,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2420,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6371,
62,
37266,
14692,
17204,
24874,
8973,
796,
277,
1,
90,
944,
13557,
10459,
92,
91,
90,
944,
13557,
16793,
36786,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
15577,
2220,
62,
2539,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6371,
62,
37266,
58,
944,
13,
15577,
2220,
62,
2539,
60,
796,
2420,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
12888,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
6371,
62,
37266,
14692,
2934,
8973,
796,
2116,
13,
12888,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2882,
796,
7007,
13,
1136,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
8692,
62,
6371,
11,
42287,
28,
944,
13557,
6371,
62,
37266,
11,
41775,
28,
944,
13,
1676,
87,
444,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2882,
13,
13376,
62,
8189,
6624,
42313,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
14190,
7085,
16844,
3558,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2882,
13,
13376,
62,
8189,
14512,
939,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
19390,
12331,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
796,
2882,
13,
17752,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33322,
3673,
21077,
7,
5239,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11059,
796,
1366,
13,
1136,
7203,
26209,
6601,
11074,
1136,
7203,
7645,
17249,
8206,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
11059,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
11059,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
407,
11059,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
477,
62,
6759,
2052,
796,
1366,
13,
1136,
7203,
6759,
2052,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7466,
796,
357,
15699,
14692,
41519,
8973,
329,
2872,
287,
477,
62,
6759,
2052,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1306,
62,
15699,
796,
1306,
7,
6759,
2052,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
1306,
62,
15699,
611,
407,
1441,
62,
439,
2073,
1351,
7,
439,
62,
6759,
2052,
8,
628,
220,
220,
220,
825,
15772,
62,
7753,
7,
944,
11,
3108,
25,
965,
11,
12429,
46265,
22046,
8,
4613,
965,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
15772,
3264,
422,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
3108,
25,
3108,
284,
262,
2496,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
4906,
3108,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
479,
86,
22046,
25,
3224,
26498,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
7783,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
7645,
17660,
62,
7753,
7,
6978,
11,
12429,
46265,
22046,
8,
628,
220,
220,
220,
825,
15772,
62,
43501,
7,
944,
11,
15458,
25,
7343,
58,
2536,
4357,
12429,
46265,
22046,
8,
4613,
7343,
58,
2536,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
15772,
257,
1351,
286,
13399,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
17143,
15458,
25,
1351,
286,
13399,
345,
765,
284,
15772,
198,
220,
220,
220,
220,
220,
220,
220,
2488,
7783,
25,
1351,
286,
25231,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
7645,
17660,
62,
43501,
7,
43501,
11,
12429,
46265,
22046,
8,
198
] | 2.245651 | 1,437 |
from typing import Tuple
import torch
from torch import nn as nn, Tensor
from torch.nn.functional import softmax
from .. import utils
class Encoder(nn.Module):
"""Encoder module.
The encoder represents its inputs using fixed, pre-trained GloVe embeddings, which are passed through a
bidirectional GRU.
Attributes
----------
units: int
Number of hidden units in the GRU.
embed_dim: int
Embedding dimensionality.
embedding: Module
Embedding module.
gru: Module
Bidirectional GRU module.
fc: Module
Fully-connected layer. Used to perform dimensionality reduction on final (bidirectional) hidden state, which
will be used to initialize the (unidirectional) hidden state of the decoder.
dropout: Module
Dropout module for the fully-connected layer.
"""
def __init__(self, embed_weights: Tensor, units: int, dropout: float) -> None:
"""Initialize the encoder.
Constructs encoder sub-modules and initializes their weights using `utils.init_weights`.
:param embed_weights: Tensor
Embedding weights of shape (src_vocab_size, embed_dim).
:param units: int
Number of GRU hidden units.
:param dropout: float
Dropout probability.
"""
super().__init__()
self.units = units
self.embed_dim = embed_weights.shape[1]
self.embedding = nn.Embedding.from_pretrained(embed_weights)
self.gru = nn.GRU(self.embed_dim, units, bidirectional=True)
self.fc = nn.Linear(2 * units, units)
self.dropout = nn.Dropout(dropout)
utils.init_weights_(self.gru)
utils.init_weights_(self.fc)
def forward(self, source: Tensor) -> Tuple[Tensor, Tensor]:
"""Encoder a source sequence by forward propagation.
:param source: Tensor
Source sequence of shape (seq_len, batch_size)
:return: Tuple[Tensor, Tensor]
Outputs of shape (seq_len, batch_size, 2 * units) and state of shape (batch_size, units)
"""
embedded = self.embedding(source)
embedded = self.dropout(embedded)
outputs, state = self.gru(embedded)
outputs = self.dropout(outputs)
# combine and reshape bidirectional states for compatibility with (unidirectional) decoder
combined = torch.cat((state[-2, :, :], state[-1, :, :]), dim=1)
state = torch.tanh(self.fc(combined))
return outputs, state
class Attention(nn.Module):
"""Attention module.
Used to compute Bahdanau attention weights over encoder outputs.
Attributes
----------
attn_in: int
Dimensionality of attention input.
fc: Module
First fully-connected layer
fc2: Module
Second fully-connected layer.
dropout: Module
Dropout module
"""
def __init__(self, enc_units: int, dec_units: int, units: int) -> None:
"""Initializes the attention module.
:param enc_units: int
Encoder output dimensionality.
:param dec_units: int
Decoder state dimensionality.
:param units: int
Attention dimensionality.
"""
super().__init__()
self.attn_in = 2 * enc_units + dec_units
self.fc = nn.Linear(self.attn_in, units)
self.fc2 = nn.Linear(units, 1)
utils.init_weights_(self.fc)
utils.init_weights_(self.fc2)
def forward(self, dec_state: Tensor, enc_outputs: Tensor) -> Tensor:
"""Computes (Bahdanau) attention weights.
:param dec_state: Tensor
Previous or initial decoder state of shape (batch_size, dec_units).
:param enc_outputs: Tensor
Encoder outputs of shape (source_len, batch_size, 2 * enc_units).
:return:
Attention weights of shape (batch_size, source_len).
"""
source_len = enc_outputs.shape[0]
# vectorize computation of Bahdanau attention scores for all encoder outputs
dec_state = dec_state.unsqueeze(1).repeat(1, source_len, 1)
enc_outputs = enc_outputs.permute(1, 0, 2)
combined = torch.cat((dec_state, enc_outputs), dim=2)
scores = torch.tanh(self.fc(combined)) # (len, batch, units)
scores = self.fc2(scores).squeeze(-1)
weights = softmax(scores, dim=1)
return weights
class Decoder(nn.Module):
"""Decoder module.
Predicts next token probabilities using previous token and state and context vector.
Attributes
----------
vocab_size: int
Target vocabulary size.
embed_dim: int
Embedding dimension.
embedding: Module
Embedding layer.
rnn: Module
GRU.
fc: Module
Fully-connected layer that outputs scores over target vocabulary.
dropout: Module
Dropout module.
"""
def __init__(self, embed_weights: Tensor, units: int, dropout: float, enc_units: int) -> None:
"""Initializes the decoder module.
:param embed_weights: Tensor
Embedding weights of shape (trg_vocab_size, embed_dim).
:param units: int
Number of hidden units in the GRU.
:param dropout: float
Dropout probability.
"""
super().__init__()
self.vocab_size, embed_dim = embed_weights.shape
self.embedding = nn.Embedding.from_pretrained(embed_weights)
self.rnn = nn.GRU((units * 2) + embed_dim, units)
self.fc = nn.Linear(units + 2 * enc_units + embed_dim, self.vocab_size)
self.dropout = nn.Dropout(dropout)
self.ln = nn.LayerNorm(units)
utils.init_weights_(self.rnn)
utils.init_weights_(self.fc)
def forward(self, token: Tensor, dec_state: Tensor, context: Tensor) -> Tuple[Tensor, Tensor]:
"""Decodes the next token.
:param token: Tensor
Token of shape (batch_size,).
:param dec_state:
Decoder state of shape (batch_size, dec_units).
:param context:
Context vector of shape (1, batch_size, 2 * enc_units).
:return: Tuple[Tensor, Tensor]
Vocabulary scores of shape (batch_size, vocab_size) and decoder state of shape (batch_size, dec_units).
"""
token = token.unsqueeze(0)
embedded = self.embedding(token)
embedded = self.dropout(embedded)
rnn_input = torch.cat((embedded, context), dim=2)
output, dec_state = self.rnn(rnn_input, dec_state.unsqueeze(0))
embedded = embedded.squeeze(0)
output = output.squeeze(0)
context = context.squeeze(0)
# dropout already applied to embedded
output = self.dropout(output)
context = self.dropout(context)
# compute output using gru output, context vector, and embedding of previous output
combined = torch.cat((output, context, embedded), dim=1)
output = self.fc(combined)
output = self.dropout(output)
# return logits (rather than softmax activations) for compatibility with cross-entropy loss
dec_state = dec_state.squeeze(0)
dec_state = self.ln(dec_state)
return output, dec_state
| [
6738,
19720,
1330,
309,
29291,
198,
198,
11748,
28034,
198,
6738,
28034,
1330,
299,
77,
355,
299,
77,
11,
309,
22854,
198,
6738,
28034,
13,
20471,
13,
45124,
1330,
2705,
9806,
198,
198,
6738,
11485,
1330,
3384,
4487,
628,
198,
4871,
14711,
12342,
7,
20471,
13,
26796,
2599,
198,
220,
220,
220,
37227,
27195,
12342,
8265,
13,
628,
220,
220,
220,
383,
2207,
12342,
6870,
663,
17311,
1262,
5969,
11,
662,
12,
35311,
2671,
78,
26979,
11525,
67,
654,
11,
543,
389,
3804,
832,
257,
198,
220,
220,
220,
8406,
4154,
282,
10863,
52,
13,
628,
220,
220,
220,
49213,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
4991,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
7913,
286,
7104,
4991,
287,
262,
10863,
52,
13,
198,
220,
220,
220,
11525,
62,
27740,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
13302,
6048,
278,
15793,
1483,
13,
198,
220,
220,
220,
11525,
12083,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
13302,
6048,
278,
8265,
13,
198,
220,
220,
220,
22848,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
43484,
4154,
282,
10863,
52,
8265,
13,
198,
220,
220,
220,
277,
66,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
40234,
12,
15236,
7679,
13,
16718,
284,
1620,
15793,
1483,
7741,
319,
2457,
357,
14065,
4154,
282,
8,
7104,
1181,
11,
543,
198,
220,
220,
220,
220,
220,
220,
220,
481,
307,
973,
284,
41216,
262,
357,
403,
312,
4154,
282,
8,
7104,
1181,
286,
262,
875,
12342,
13,
198,
220,
220,
220,
4268,
448,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
14258,
448,
8265,
329,
262,
3938,
12,
15236,
7679,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
11525,
62,
43775,
25,
309,
22854,
11,
4991,
25,
493,
11,
4268,
448,
25,
12178,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
1096,
262,
2207,
12342,
13,
628,
220,
220,
220,
220,
220,
220,
220,
28407,
82,
2207,
12342,
850,
12,
18170,
290,
4238,
4340,
511,
19590,
1262,
4600,
26791,
13,
15003,
62,
43775,
44646,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
11525,
62,
43775,
25,
309,
22854,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13302,
6048,
278,
19590,
286,
5485,
357,
10677,
62,
18893,
397,
62,
7857,
11,
11525,
62,
27740,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4991,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7913,
286,
10863,
52,
7104,
4991,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4268,
448,
25,
12178,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14258,
448,
12867,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
41667,
796,
4991,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20521,
62,
27740,
796,
11525,
62,
43775,
13,
43358,
58,
16,
60,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20521,
12083,
796,
299,
77,
13,
31567,
6048,
278,
13,
6738,
62,
5310,
13363,
7,
20521,
62,
43775,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
48929,
796,
299,
77,
13,
10761,
52,
7,
944,
13,
20521,
62,
27740,
11,
4991,
11,
8406,
4154,
282,
28,
17821,
8,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16072,
796,
299,
77,
13,
14993,
451,
7,
17,
1635,
4991,
11,
4991,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14781,
448,
796,
299,
77,
13,
26932,
448,
7,
14781,
448,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
15003,
62,
43775,
41052,
944,
13,
48929,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
15003,
62,
43775,
41052,
944,
13,
16072,
8,
628,
220,
220,
220,
825,
2651,
7,
944,
11,
2723,
25,
309,
22854,
8,
4613,
309,
29291,
58,
51,
22854,
11,
309,
22854,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
27195,
12342,
257,
2723,
8379,
416,
2651,
43594,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2723,
25,
309,
22854,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8090,
8379,
286,
5485,
357,
41068,
62,
11925,
11,
15458,
62,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
309,
29291,
58,
51,
22854,
11,
309,
22854,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25235,
82,
286,
5485,
357,
41068,
62,
11925,
11,
15458,
62,
7857,
11,
362,
1635,
4991,
8,
290,
1181,
286,
5485,
357,
43501,
62,
7857,
11,
4991,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
14553,
796,
2116,
13,
20521,
12083,
7,
10459,
8,
198,
220,
220,
220,
220,
220,
220,
220,
14553,
796,
2116,
13,
14781,
448,
7,
20521,
9395,
8,
628,
220,
220,
220,
220,
220,
220,
220,
23862,
11,
1181,
796,
2116,
13,
48929,
7,
20521,
9395,
8,
198,
220,
220,
220,
220,
220,
220,
220,
23862,
796,
2116,
13,
14781,
448,
7,
22915,
82,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
12082,
290,
27179,
1758,
8406,
4154,
282,
2585,
329,
17764,
351,
357,
403,
312,
4154,
282,
8,
875,
12342,
198,
220,
220,
220,
220,
220,
220,
220,
5929,
796,
28034,
13,
9246,
19510,
5219,
58,
12,
17,
11,
1058,
11,
1058,
4357,
1181,
58,
12,
16,
11,
1058,
11,
1058,
46570,
5391,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1181,
796,
28034,
13,
38006,
71,
7,
944,
13,
16072,
7,
24011,
1389,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
23862,
11,
1181,
628,
198,
4871,
47406,
7,
20471,
13,
26796,
2599,
198,
220,
220,
220,
37227,
8086,
1463,
8265,
13,
628,
220,
220,
220,
16718,
284,
24061,
13081,
25604,
559,
3241,
19590,
625,
2207,
12342,
23862,
13,
628,
220,
220,
220,
49213,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
708,
77,
62,
259,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
34024,
1483,
286,
3241,
5128,
13,
198,
220,
220,
220,
277,
66,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
3274,
3938,
12,
15236,
7679,
198,
220,
220,
220,
277,
66,
17,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
5498,
3938,
12,
15236,
7679,
13,
198,
220,
220,
220,
4268,
448,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
14258,
448,
8265,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
2207,
62,
41667,
25,
493,
11,
875,
62,
41667,
25,
493,
11,
4991,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
4340,
262,
3241,
8265,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2207,
62,
41667,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14711,
12342,
5072,
15793,
1483,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
875,
62,
41667,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
34580,
1181,
15793,
1483,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4991,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
47406,
15793,
1483,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1078,
77,
62,
259,
796,
362,
1635,
2207,
62,
41667,
1343,
875,
62,
41667,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16072,
796,
299,
77,
13,
14993,
451,
7,
944,
13,
1078,
77,
62,
259,
11,
4991,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16072,
17,
796,
299,
77,
13,
14993,
451,
7,
41667,
11,
352,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
15003,
62,
43775,
41052,
944,
13,
16072,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
15003,
62,
43775,
41052,
944,
13,
16072,
17,
8,
628,
220,
220,
220,
825,
2651,
7,
944,
11,
875,
62,
5219,
25,
309,
22854,
11,
2207,
62,
22915,
82,
25,
309,
22854,
8,
4613,
309,
22854,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
7293,
1769,
357,
47514,
25604,
559,
8,
3241,
19590,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
875,
62,
5219,
25,
309,
22854,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21801,
393,
4238,
875,
12342,
1181,
286,
5485,
357,
43501,
62,
7857,
11,
875,
62,
41667,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2207,
62,
22915,
82,
25,
309,
22854,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14711,
12342,
23862,
286,
5485,
357,
10459,
62,
11925,
11,
15458,
62,
7857,
11,
362,
1635,
2207,
62,
41667,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
47406,
19590,
286,
5485,
357,
43501,
62,
7857,
11,
2723,
62,
11925,
737,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2723,
62,
11925,
796,
2207,
62,
22915,
82,
13,
43358,
58,
15,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
15879,
1096,
29964,
286,
13081,
25604,
559,
3241,
8198,
329,
477,
2207,
12342,
23862,
198,
220,
220,
220,
220,
220,
220,
220,
875,
62,
5219,
796,
875,
62,
5219,
13,
13271,
421,
1453,
2736,
7,
16,
737,
44754,
7,
16,
11,
2723,
62,
11925,
11,
352,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2207,
62,
22915,
82,
796,
2207,
62,
22915,
82,
13,
16321,
1133,
7,
16,
11,
657,
11,
362,
8,
628,
220,
220,
220,
220,
220,
220,
220,
5929,
796,
28034,
13,
9246,
19510,
12501,
62,
5219,
11,
2207,
62,
22915,
82,
828,
5391,
28,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8198,
796,
28034,
13,
38006,
71,
7,
944,
13,
16072,
7,
24011,
1389,
4008,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
357,
11925,
11,
15458,
11,
4991,
8,
198,
220,
220,
220,
220,
220,
220,
220,
8198,
796,
2116,
13,
16072,
17,
7,
1416,
2850,
737,
16485,
1453,
2736,
32590,
16,
8,
628,
220,
220,
220,
220,
220,
220,
220,
19590,
796,
2705,
9806,
7,
1416,
2850,
11,
5391,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
19590,
628,
198,
4871,
34580,
7,
20471,
13,
26796,
2599,
198,
220,
220,
220,
37227,
10707,
12342,
8265,
13,
628,
220,
220,
220,
14322,
14137,
1306,
11241,
39522,
1262,
2180,
11241,
290,
1181,
290,
4732,
15879,
13,
628,
220,
220,
220,
49213,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
12776,
397,
62,
7857,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
12744,
25818,
2546,
13,
198,
220,
220,
220,
11525,
62,
27740,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
13302,
6048,
278,
15793,
13,
198,
220,
220,
220,
11525,
12083,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
13302,
6048,
278,
7679,
13,
198,
220,
220,
220,
374,
20471,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
10863,
52,
13,
198,
220,
220,
220,
277,
66,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
40234,
12,
15236,
7679,
326,
23862,
8198,
625,
2496,
25818,
13,
198,
220,
220,
220,
4268,
448,
25,
19937,
198,
220,
220,
220,
220,
220,
220,
220,
14258,
448,
8265,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
11525,
62,
43775,
25,
309,
22854,
11,
4991,
25,
493,
11,
4268,
448,
25,
12178,
11,
2207,
62,
41667,
25,
493,
8,
4613,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
24243,
4340,
262,
875,
12342,
8265,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
11525,
62,
43775,
25,
309,
22854,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13302,
6048,
278,
19590,
286,
5485,
357,
2213,
70,
62,
18893,
397,
62,
7857,
11,
11525,
62,
27740,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4991,
25,
493,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7913,
286,
7104,
4991,
287,
262,
10863,
52,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4268,
448,
25,
12178,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14258,
448,
12867,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2208,
22446,
834,
15003,
834,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18893,
397,
62,
7857,
11,
11525,
62,
27740,
796,
11525,
62,
43775,
13,
43358,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
20521,
12083,
796,
299,
77,
13,
31567,
6048,
278,
13,
6738,
62,
5310,
13363,
7,
20521,
62,
43775,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
81,
20471,
796,
299,
77,
13,
10761,
52,
19510,
41667,
1635,
362,
8,
1343,
11525,
62,
27740,
11,
4991,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
16072,
796,
299,
77,
13,
14993,
451,
7,
41667,
1343,
362,
1635,
2207,
62,
41667,
1343,
11525,
62,
27740,
11,
2116,
13,
18893,
397,
62,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
14781,
448,
796,
299,
77,
13,
26932,
448,
7,
14781,
448,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
18755,
796,
299,
77,
13,
49925,
35393,
7,
41667,
8,
628,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
15003,
62,
43775,
41052,
944,
13,
81,
20471,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3384,
4487,
13,
15003,
62,
43775,
41052,
944,
13,
16072,
8,
628,
220,
220,
220,
825,
2651,
7,
944,
11,
11241,
25,
309,
22854,
11,
875,
62,
5219,
25,
309,
22854,
11,
4732,
25,
309,
22854,
8,
4613,
309,
29291,
58,
51,
22854,
11,
309,
22854,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
10707,
4147,
262,
1306,
11241,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
11241,
25,
309,
22854,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29130,
286,
5485,
357,
43501,
62,
7857,
11,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
875,
62,
5219,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
34580,
1181,
286,
5485,
357,
43501,
62,
7857,
11,
875,
62,
41667,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4732,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30532,
15879,
286,
5485,
357,
16,
11,
15458,
62,
7857,
11,
362,
1635,
2207,
62,
41667,
737,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
309,
29291,
58,
51,
22854,
11,
309,
22854,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
47208,
22528,
8198,
286,
5485,
357,
43501,
62,
7857,
11,
12776,
397,
62,
7857,
8,
290,
875,
12342,
1181,
286,
5485,
357,
43501,
62,
7857,
11,
875,
62,
41667,
737,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11241,
796,
11241,
13,
13271,
421,
1453,
2736,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
14553,
796,
2116,
13,
20521,
12083,
7,
30001,
8,
198,
220,
220,
220,
220,
220,
220,
220,
14553,
796,
2116,
13,
14781,
448,
7,
20521,
9395,
8,
628,
220,
220,
220,
220,
220,
220,
220,
374,
20471,
62,
15414,
796,
28034,
13,
9246,
19510,
20521,
9395,
11,
4732,
828,
5391,
28,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
11,
875,
62,
5219,
796,
2116,
13,
81,
20471,
7,
81,
20471,
62,
15414,
11,
875,
62,
5219,
13,
13271,
421,
1453,
2736,
7,
15,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
14553,
796,
14553,
13,
16485,
1453,
2736,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
5072,
13,
16485,
1453,
2736,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4732,
796,
4732,
13,
16485,
1453,
2736,
7,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
4268,
448,
1541,
5625,
284,
14553,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
2116,
13,
14781,
448,
7,
22915,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4732,
796,
2116,
13,
14781,
448,
7,
22866,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
24061,
5072,
1262,
22848,
5072,
11,
4732,
15879,
11,
290,
11525,
12083,
286,
2180,
5072,
198,
220,
220,
220,
220,
220,
220,
220,
5929,
796,
28034,
13,
9246,
19510,
22915,
11,
4732,
11,
14553,
828,
5391,
28,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
2116,
13,
16072,
7,
24011,
1389,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
796,
2116,
13,
14781,
448,
7,
22915,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
1441,
2604,
896,
357,
34330,
621,
2705,
9806,
1753,
602,
8,
329,
17764,
351,
3272,
12,
298,
28338,
2994,
198,
220,
220,
220,
220,
220,
220,
220,
875,
62,
5219,
796,
875,
62,
5219,
13,
16485,
1453,
2736,
7,
15,
8,
198,
220,
220,
220,
220,
220,
220,
220,
875,
62,
5219,
796,
2116,
13,
18755,
7,
12501,
62,
5219,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
5072,
11,
875,
62,
5219,
198
] | 2.387118 | 3,043 |
"""
constant
"""
class Addrs:
"""
Server address
"""
WS_ADDR = 'wss://www.streamr.com/api/v1/ws'
REST_ADDR = 'https://www.streamr.com/api/v1'
class RestfullConstant:
"""
Restful constants
"""
GET_SESSION_ADDR = Addrs.REST_ADDR + '/login/apikey'
GET_SESSION_PARAS = {"Content-Type": "application/json"}
GET_SESSION_BODY = '{"apiKey": "%s"}'
CREATE_ADDR = Addrs.REST_ADDR + '/streams'
CREATE_BODY = '{"name": %s, "description": %s, "config": {"fields":[]}}'
GET_BY_ID_ADDR = CREATE_ADDR + '/'
GET_BY_NAME_ADDR = CREATE_ADDR + '?name='
PARAS_KEY = "Authorization"
PARAS_VALUE = "Bearer %s"
SESSION_TOKEN = 'token'
class StreamMessageConstant:
"""
store the key of dict of StreamMessage
"""
STREAM_ID = 'streamId'
STREAM_PARTITION = 'streamPartition'
TIMESTAMP = 'timestamp'
TTL = 'ttl'
OFFSET = 'offset'
PREVIOUS_OFFSET = 'previousOffset'
CONTENT_TYPE = 'contentType'
CONTENT = 'content'
SIGNATURE_TYPE = 'signatureType'
PUBLISHER_ADDRESS = 'publisherAddress'
SIGNATURE = 'signature'
BYE = '_bye'
class StreamAndPartitionConstant:
"""
store the key of dict of StreamAndPartitionConstant
"""
STREAM_ID = 'stream'
STREAM_PARTITION = 'partition'
class ResendResponsePayloadConstant:
"""
store the key of dict of ResendResponsePayloadConstant
"""
STREAM_ID = 'stream'
STREAM_PARTITION = 'partition'
SUB_ID = 'sub'
class ErrorPayloadConstant:
"""
store the key of dict of ErrorPayloadConstant
"""
ERROR = 'error'
class RequestConstant:
"""
store the key of dict of RequestConstant
"""
TYPE = 'type'
STREAM_ID = 'stream'
API_KEY = 'authKey'
SESSION_TOKEN = 'sessionToken'
SERIALIZED_CONTENT = 'msg'
TIMESTAMP = 'ts'
PARTITION_KEY = 'pkey'
PUBLISHER_ADDRESS = 'addr'
SIGNATURE_TYPE = 'sigtype'
SIGNATURE = 'sig'
STREAM_PARTITION = 'partition'
SUB_ID = 'sub'
class AuthConstant:
"""
store the key of dict of Auth
"""
API_KEY = 'apiKey'
PRIVATE_KEY = 'privateKey'
PROVIDER = 'provider'
USER_NAME = 'username'
PASSWORD = 'password'
SESSION_TOKEN = 'sessionToken'
class OptionConstant:
"""
store the key of dict of Options
"""
API_KEY = 'apiKey'
URL = 'url'
REST_URL = 'restUrl'
AUTO_CONNECT = 'autoConnect'
AUTO_DISCONNECT = 'autoDisconnect'
SESSION_REFRESH_INTERVAL = 'interval'
AUTH = 'auth'
AUTH_KEY = 'authKey'
STREAM_ID = 'stream'
STREAM_PARTITION = 'partition'
SUB_ID = 'sub'
RESEND_LABEL = 'resend_'
RESEND_LAST = 'resend_last'
RESEND_FROM = 'resend_from'
RESEND_TO = 'resend_to'
RESEND_FROM_TIME = 'resend_from_time'
RESEND_ALL = 'resend_all'
class EventConstant:
"""
store the event name for client, connection and subscription
"""
CONNECTING = 'CONNECTING'
CONNECTED = 'CONNECTED'
DISCONNECTING = 'DISCONNECTING'
DISCONNECTED = 'DISCONNECTED'
SUBSCRIBING = 'SUBSCRIBING'
SUBSCRIBED = 'SUBSCRIBED'
UNSUBSCRIBING = 'UNSUBSCRIBING'
UNSUBSCRIBED = 'UNSUBSCRIBED'
ERROR = 'ERROR'
RESENDING = 'RESENDING'
RESENT = 'RESENT'
NO_RESEND = 'NO_RESEND'
GAP = 'GAP'
DONE = 'DONE'
| [
37811,
198,
9979,
415,
198,
37811,
628,
198,
4871,
3060,
3808,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
9652,
2209,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
25290,
62,
2885,
7707,
796,
705,
86,
824,
1378,
2503,
13,
5532,
81,
13,
785,
14,
15042,
14,
85,
16,
14,
18504,
6,
198,
220,
220,
220,
30617,
62,
2885,
7707,
796,
705,
5450,
1378,
2503,
13,
5532,
81,
13,
785,
14,
15042,
14,
85,
16,
6,
628,
198,
4871,
8324,
12853,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8324,
913,
38491,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
17151,
62,
50,
47621,
62,
2885,
7707,
796,
3060,
3808,
13,
49,
6465,
62,
2885,
7707,
1343,
31051,
38235,
14,
499,
522,
88,
6,
198,
220,
220,
220,
17151,
62,
50,
47621,
62,
27082,
1921,
796,
19779,
19746,
12,
6030,
1298,
366,
31438,
14,
17752,
20662,
198,
220,
220,
220,
17151,
62,
50,
47621,
62,
33,
33076,
796,
705,
4895,
15042,
9218,
1298,
36521,
82,
20662,
6,
628,
220,
220,
220,
29244,
6158,
62,
2885,
7707,
796,
3060,
3808,
13,
49,
6465,
62,
2885,
7707,
1343,
31051,
5532,
82,
6,
198,
220,
220,
220,
29244,
6158,
62,
33,
33076,
796,
705,
4895,
3672,
1298,
4064,
82,
11,
366,
11213,
1298,
4064,
82,
11,
366,
11250,
1298,
19779,
25747,
20598,
60,
11709,
6,
198,
220,
220,
220,
17151,
62,
17513,
62,
2389,
62,
2885,
7707,
796,
29244,
6158,
62,
2885,
7707,
1343,
31051,
6,
198,
220,
220,
220,
17151,
62,
17513,
62,
20608,
62,
2885,
7707,
796,
29244,
6158,
62,
2885,
7707,
1343,
705,
30,
3672,
11639,
628,
220,
220,
220,
29463,
1921,
62,
20373,
796,
366,
13838,
1634,
1,
198,
220,
220,
220,
29463,
1921,
62,
39488,
796,
366,
3856,
11258,
4064,
82,
1,
628,
220,
220,
220,
311,
47621,
62,
10468,
43959,
796,
705,
30001,
6,
628,
198,
4871,
13860,
12837,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
13860,
12837,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
3563,
32235,
62,
2389,
796,
705,
5532,
7390,
6,
198,
220,
220,
220,
3563,
32235,
62,
30709,
17941,
796,
705,
5532,
7841,
653,
6,
198,
220,
220,
220,
31742,
6465,
23518,
796,
705,
16514,
27823,
6,
198,
220,
220,
220,
42654,
796,
705,
926,
75,
6,
198,
220,
220,
220,
3963,
10652,
2767,
796,
705,
28968,
6,
198,
220,
220,
220,
22814,
12861,
20958,
62,
27977,
28480,
796,
705,
3866,
1442,
34519,
6,
198,
220,
220,
220,
22904,
3525,
62,
25216,
796,
705,
11299,
6030,
6,
198,
220,
220,
220,
22904,
3525,
796,
705,
11299,
6,
198,
220,
220,
220,
36771,
40086,
62,
25216,
796,
705,
12683,
1300,
6030,
6,
198,
220,
220,
220,
24676,
9148,
1797,
16879,
62,
2885,
7707,
7597,
796,
705,
12984,
8191,
20231,
6,
198,
220,
220,
220,
36771,
40086,
796,
705,
12683,
1300,
6,
198,
220,
220,
220,
11050,
36,
796,
705,
62,
16390,
6,
628,
198,
4871,
13860,
1870,
7841,
653,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
13860,
1870,
7841,
653,
3103,
18797,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
3563,
32235,
62,
2389,
796,
705,
5532,
6,
198,
220,
220,
220,
3563,
32235,
62,
30709,
17941,
796,
705,
3911,
653,
6,
628,
198,
4871,
1874,
437,
31077,
19197,
2220,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
1874,
437,
31077,
19197,
2220,
3103,
18797,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3563,
32235,
62,
2389,
796,
705,
5532,
6,
198,
220,
220,
220,
3563,
32235,
62,
30709,
17941,
796,
705,
3911,
653,
6,
198,
220,
220,
220,
28932,
62,
2389,
796,
705,
7266,
6,
628,
198,
4871,
13047,
19197,
2220,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
13047,
19197,
2220,
3103,
18797,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
33854,
796,
705,
18224,
6,
628,
198,
4871,
19390,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
19390,
3103,
18797,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
41876,
796,
705,
4906,
6,
198,
220,
220,
220,
3563,
32235,
62,
2389,
796,
705,
5532,
6,
198,
220,
220,
220,
7824,
62,
20373,
796,
705,
18439,
9218,
6,
198,
220,
220,
220,
311,
47621,
62,
10468,
43959,
796,
705,
29891,
30642,
6,
198,
220,
220,
220,
18871,
12576,
14887,
1961,
62,
37815,
3525,
796,
705,
19662,
6,
198,
220,
220,
220,
31742,
6465,
23518,
796,
705,
912,
6,
198,
220,
220,
220,
16652,
17941,
62,
20373,
796,
705,
79,
2539,
6,
198,
220,
220,
220,
24676,
9148,
1797,
16879,
62,
2885,
7707,
7597,
796,
705,
29851,
6,
198,
220,
220,
220,
36771,
40086,
62,
25216,
796,
705,
82,
328,
4906,
6,
198,
220,
220,
220,
36771,
40086,
796,
705,
82,
328,
6,
198,
220,
220,
220,
3563,
32235,
62,
30709,
17941,
796,
705,
3911,
653,
6,
198,
220,
220,
220,
28932,
62,
2389,
796,
705,
7266,
6,
628,
198,
4871,
26828,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
26828,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7824,
62,
20373,
796,
705,
15042,
9218,
6,
198,
220,
220,
220,
4810,
3824,
6158,
62,
20373,
796,
705,
19734,
9218,
6,
198,
220,
220,
220,
36592,
41237,
796,
705,
15234,
1304,
6,
198,
220,
220,
220,
1294,
1137,
62,
20608,
796,
705,
29460,
6,
198,
220,
220,
220,
41752,
54,
12532,
796,
705,
28712,
6,
198,
220,
220,
220,
311,
47621,
62,
10468,
43959,
796,
705,
29891,
30642,
6,
628,
198,
4871,
16018,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1994,
286,
8633,
286,
18634,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
7824,
62,
20373,
796,
705,
15042,
9218,
6,
198,
220,
220,
220,
10289,
796,
705,
6371,
6,
198,
220,
220,
220,
30617,
62,
21886,
796,
705,
2118,
28165,
6,
198,
220,
220,
220,
47044,
46,
62,
10943,
48842,
796,
705,
23736,
13313,
6,
198,
220,
220,
220,
47044,
46,
62,
26288,
10943,
48842,
796,
705,
23736,
7279,
8443,
6,
198,
220,
220,
220,
311,
47621,
62,
2200,
10913,
44011,
62,
41358,
23428,
796,
705,
3849,
2100,
6,
198,
220,
220,
220,
37195,
796,
705,
18439,
6,
198,
220,
220,
220,
37195,
62,
20373,
796,
705,
18439,
9218,
6,
628,
220,
220,
220,
3563,
32235,
62,
2389,
796,
705,
5532,
6,
198,
220,
220,
220,
3563,
32235,
62,
30709,
17941,
796,
705,
3911,
653,
6,
198,
220,
220,
220,
28932,
62,
2389,
796,
705,
7266,
6,
198,
220,
220,
220,
15731,
10619,
62,
48780,
3698,
796,
705,
411,
437,
62,
6,
198,
220,
220,
220,
15731,
10619,
62,
43,
11262,
796,
705,
411,
437,
62,
12957,
6,
198,
220,
220,
220,
15731,
10619,
62,
10913,
2662,
796,
705,
411,
437,
62,
6738,
6,
198,
220,
220,
220,
15731,
10619,
62,
10468,
796,
705,
411,
437,
62,
1462,
6,
198,
220,
220,
220,
15731,
10619,
62,
10913,
2662,
62,
34694,
796,
705,
411,
437,
62,
6738,
62,
2435,
6,
198,
220,
220,
220,
15731,
10619,
62,
7036,
796,
705,
411,
437,
62,
439,
6,
628,
198,
4871,
8558,
3103,
18797,
25,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
3650,
262,
1785,
1438,
329,
5456,
11,
4637,
290,
14569,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
7102,
48842,
2751,
796,
705,
10943,
48842,
2751,
6,
198,
220,
220,
220,
7102,
48842,
1961,
796,
705,
10943,
48842,
1961,
6,
198,
220,
220,
220,
13954,
10943,
48842,
2751,
796,
705,
26288,
10943,
48842,
2751,
6,
198,
220,
220,
220,
13954,
10943,
48842,
1961,
796,
705,
26288,
10943,
48842,
1961,
6,
198,
220,
220,
220,
13558,
4462,
34,
7112,
33,
2751,
796,
705,
12564,
4462,
34,
7112,
33,
2751,
6,
198,
220,
220,
220,
13558,
4462,
34,
7112,
33,
1961,
796,
705,
12564,
4462,
34,
7112,
33,
1961,
6,
198,
220,
220,
220,
4725,
12564,
4462,
34,
7112,
33,
2751,
796,
705,
4944,
12564,
4462,
34,
7112,
33,
2751,
6,
198,
220,
220,
220,
4725,
12564,
4462,
34,
7112,
33,
1961,
796,
705,
4944,
12564,
4462,
34,
7112,
33,
1961,
6,
198,
220,
220,
220,
33854,
796,
705,
24908,
6,
198,
220,
220,
220,
15731,
10619,
2751,
796,
705,
19535,
10619,
2751,
6,
198,
220,
220,
220,
15731,
3525,
796,
705,
19535,
3525,
6,
198,
220,
220,
220,
8005,
62,
19535,
10619,
796,
705,
15285,
62,
19535,
10619,
6,
198,
220,
220,
220,
402,
2969,
796,
705,
38,
2969,
6,
198,
220,
220,
220,
360,
11651,
796,
705,
35,
11651,
6,
628
] | 2.272355 | 1,465 |
import numpy as np
import matplotlib.pyplot as plt
Ri = np.linspace(0, 0.25, 26)
f_long = 1 / (1 + 10 * Ri)
f_sharp = (1 - 5 * Ri)**2
f_sharp[11:] = (1 / (20 * Ri[11:]))**2
print(Ri[11])
plt.plot(Ri, f_long, '-g', label='Land')
plt.plot(Ri, f_sharp, '-b', label='Sea')
plt.xlabel('Ri')
plt.ylabel(r'$f(\mathrm{Ri})$')
plt.legend(loc='best')
plt.show()
| [
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
198,
49,
72,
796,
45941,
13,
21602,
10223,
7,
15,
11,
657,
13,
1495,
11,
2608,
8,
198,
198,
69,
62,
6511,
796,
352,
1220,
357,
16,
1343,
838,
1635,
30385,
8,
198,
198,
69,
62,
48554,
796,
357,
16,
532,
642,
1635,
30385,
8,
1174,
17,
198,
69,
62,
48554,
58,
1157,
47715,
796,
357,
16,
1220,
357,
1238,
1635,
30385,
58,
1157,
47715,
4008,
1174,
17,
198,
198,
4798,
7,
49,
72,
58,
1157,
12962,
198,
198,
489,
83,
13,
29487,
7,
49,
72,
11,
277,
62,
6511,
11,
705,
12,
70,
3256,
6167,
11639,
22342,
11537,
198,
489,
83,
13,
29487,
7,
49,
72,
11,
277,
62,
48554,
11,
705,
12,
65,
3256,
6167,
11639,
37567,
11537,
198,
489,
83,
13,
87,
18242,
10786,
49,
72,
11537,
198,
489,
83,
13,
2645,
9608,
7,
81,
6,
3,
69,
38016,
11018,
26224,
90,
49,
72,
30072,
3,
11537,
198,
489,
83,
13,
1455,
437,
7,
17946,
11639,
13466,
11537,
198,
198,
489,
83,
13,
12860,
3419,
198
] | 1.924731 | 186 |
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from django.views.generic import TemplateView, CreateView, UpdateView, ListView, DeleteView
from .forms import ProjectForm, TicketForm
from .models import Project, Ticket
my_tickets_view = MyTicketsView.as_view()
project_list_view = ProjectListView.as_view()
create_project_view = login_required(CreateProjectView.as_view())
update_project_view = login_required(UpdateProjectView.as_view())
project_view = ProjectView.as_view()
create_ticket_view = login_required(CreateTicketView.as_view())
update_ticket_view = login_required(UpdateTicketView.as_view())
# Added Delete View, together with new delete-ticket template and URL
delete_ticket_view = login_required(DeleteTicketView.as_view()) | [
6738,
42625,
14208,
13,
7295,
13,
6371,
411,
349,
690,
1330,
9575,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
12501,
273,
2024,
1330,
17594,
62,
35827,
198,
6738,
42625,
14208,
13,
19509,
23779,
1330,
651,
62,
15252,
62,
273,
62,
26429,
198,
6738,
42625,
14208,
13,
33571,
13,
41357,
1330,
37350,
7680,
11,
13610,
7680,
11,
10133,
7680,
11,
7343,
7680,
11,
23520,
7680,
198,
198,
6738,
764,
23914,
1330,
4935,
8479,
11,
24014,
8479,
198,
6738,
764,
27530,
1330,
4935,
11,
24014,
628,
628,
198,
1820,
62,
83,
15970,
62,
1177,
796,
2011,
43254,
7680,
13,
292,
62,
1177,
3419,
198,
198,
16302,
62,
4868,
62,
1177,
796,
4935,
8053,
7680,
13,
292,
62,
1177,
3419,
628,
198,
198,
17953,
62,
16302,
62,
1177,
796,
17594,
62,
35827,
7,
16447,
16775,
7680,
13,
292,
62,
1177,
28955,
628,
198,
198,
19119,
62,
16302,
62,
1177,
796,
17594,
62,
35827,
7,
10260,
16775,
7680,
13,
292,
62,
1177,
28955,
628,
198,
198,
16302,
62,
1177,
796,
4935,
7680,
13,
292,
62,
1177,
3419,
628,
198,
198,
17953,
62,
43350,
62,
1177,
796,
17594,
62,
35827,
7,
16447,
51,
9715,
7680,
13,
292,
62,
1177,
28955,
628,
198,
198,
19119,
62,
43350,
62,
1177,
796,
17594,
62,
35827,
7,
10260,
51,
9715,
7680,
13,
292,
62,
1177,
28955,
198,
198,
2,
10687,
23520,
3582,
11,
1978,
351,
649,
12233,
12,
43350,
11055,
290,
10289,
628,
198,
33678,
62,
43350,
62,
1177,
796,
17594,
62,
35827,
7,
38727,
51,
9715,
7680,
13,
292,
62,
1177,
28955
] | 3.357977 | 257 |
from typing import Dict
string = input()
print('YES' if is_valid(string) else 'NO')
| [
6738,
19720,
1330,
360,
713,
628,
628,
198,
8841,
796,
5128,
3419,
198,
4798,
10786,
43335,
6,
611,
318,
62,
12102,
7,
8841,
8,
2073,
705,
15285,
11537,
198
] | 3.034483 | 29 |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import unittest
from telemetry import test
from telemetry.core.platform import factory
from telemetry.core.platform import mac_platform_backend
| [
2,
15069,
1946,
383,
18255,
1505,
46665,
13,
1439,
2489,
10395,
13,
198,
2,
5765,
286,
428,
2723,
2438,
318,
21825,
416,
257,
347,
10305,
12,
7635,
5964,
326,
460,
307,
198,
2,
1043,
287,
262,
38559,
24290,
2393,
13,
198,
198,
11748,
28686,
198,
11748,
555,
715,
395,
198,
198,
6738,
5735,
41935,
1330,
1332,
198,
6738,
5735,
41935,
13,
7295,
13,
24254,
1330,
8860,
198,
6738,
5735,
41935,
13,
7295,
13,
24254,
1330,
8352,
62,
24254,
62,
1891,
437,
628
] | 3.890244 | 82 |
from purity_fb import PurityFb, VersionResponse, rest
# Get Pure API version
fb = PurityFb("10.70.100.10") # assume the array IP is 10.255.9.28
fb.disable_verify_ssl()
try:
# no need to login to get API versions
res = fb.api_version.list_versions()
assert isinstance(res, VersionResponse)
print (res.versions) # ex: ["1.0", "1.1", "1.2"]
except rest.ApiException as e:
print("Exception when logging in to the array: %s\n" % e)
| [
6738,
25590,
62,
21855,
1330,
350,
1684,
37,
65,
11,
10628,
31077,
11,
1334,
198,
198,
2,
3497,
17129,
7824,
2196,
198,
198,
21855,
796,
350,
1684,
37,
65,
7203,
940,
13,
2154,
13,
3064,
13,
940,
4943,
1303,
7048,
262,
7177,
6101,
318,
838,
13,
13381,
13,
24,
13,
2078,
198,
21855,
13,
40223,
62,
332,
1958,
62,
45163,
3419,
198,
28311,
25,
198,
220,
220,
220,
1303,
645,
761,
284,
17594,
284,
651,
7824,
6300,
198,
220,
220,
220,
581,
796,
277,
65,
13,
15042,
62,
9641,
13,
4868,
62,
47178,
3419,
198,
220,
220,
220,
6818,
318,
39098,
7,
411,
11,
10628,
31077,
8,
198,
220,
220,
220,
3601,
357,
411,
13,
47178,
8,
220,
1303,
409,
25,
14631,
16,
13,
15,
1600,
366,
16,
13,
16,
1600,
366,
16,
13,
17,
8973,
198,
16341,
1334,
13,
32,
14415,
16922,
355,
304,
25,
198,
220,
220,
220,
3601,
7203,
16922,
618,
18931,
287,
284,
262,
7177,
25,
4064,
82,
59,
77,
1,
4064,
304,
8,
198,
220,
220,
220,
220
] | 2.624277 | 173 |
# -*- coding: utf-8 -*-
import getopt
import sys
from torcms.model.post_model import MPost
from torcms.script.script_init_tabels import create_table
from torcms_maplet.model.map_tab import MabGson, MabPost2Gson, MabLayout
def run_update_lon():
'''
:return:
'''
map_recs = MPost.query_all(limit_num=5000, kind='2')
for map_rec in map_recs:
lon = float(map_rec.extinfo['ext_lon'])
if lon > -180 and lon < 180:
pass
else:
print('=' * 20)
print(map_rec.uid)
print(lon)
out_dic = {'ext_lon': fix_lon(lon)}
print(out_dic)
MPost.update_jsonb(map_rec.uid, out_dic)
if __name__ == '__main__':
if len(sys.argv) == 1:
print('run:')
print(' python helper_extor.py -h ')
print('for help')
else:
entry(sys.argv[1:])
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
11748,
651,
8738,
198,
11748,
25064,
198,
198,
6738,
7332,
46406,
13,
19849,
13,
7353,
62,
19849,
1330,
4904,
455,
198,
6738,
7332,
46406,
13,
12048,
13,
12048,
62,
15003,
62,
8658,
1424,
1330,
2251,
62,
11487,
198,
198,
6738,
7332,
46406,
62,
8899,
1616,
13,
19849,
13,
8899,
62,
8658,
1330,
337,
397,
38,
1559,
11,
337,
397,
6307,
17,
38,
1559,
11,
337,
397,
32517,
628,
198,
4299,
1057,
62,
19119,
62,
14995,
33529,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1058,
7783,
25,
198,
220,
220,
220,
705,
7061,
628,
220,
220,
220,
3975,
62,
260,
6359,
796,
4904,
455,
13,
22766,
62,
439,
7,
32374,
62,
22510,
28,
27641,
11,
1611,
11639,
17,
11537,
198,
220,
220,
220,
329,
3975,
62,
8344,
287,
3975,
62,
260,
6359,
25,
198,
220,
220,
220,
220,
220,
220,
220,
300,
261,
796,
12178,
7,
8899,
62,
8344,
13,
2302,
10951,
17816,
2302,
62,
14995,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
611,
300,
261,
1875,
532,
15259,
290,
300,
261,
1279,
11546,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1208,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
11639,
1635,
1160,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
8899,
62,
8344,
13,
27112,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
14995,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
503,
62,
67,
291,
796,
1391,
6,
2302,
62,
14995,
10354,
4259,
62,
14995,
7,
14995,
38165,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
448,
62,
67,
291,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4904,
455,
13,
19119,
62,
17752,
65,
7,
8899,
62,
8344,
13,
27112,
11,
503,
62,
67,
291,
8,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
611,
18896,
7,
17597,
13,
853,
85,
8,
6624,
352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
5143,
25,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
220,
220,
220,
21015,
31904,
62,
2302,
273,
13,
9078,
532,
71,
705,
8,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
10786,
1640,
1037,
11537,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5726,
7,
17597,
13,
853,
85,
58,
16,
25,
12962,
198
] | 1.944812 | 453 |
from django.contrib.auth import get_user_model
from django.contrib.auth.password_validation import validate_password
from rest_framework import serializers
from api.models import UserModel, TuitModel
class TuitSerializer(serializers.ModelSerializer):
'''
Tuit serializer.
'''
class UserSerializer(serializers.ModelSerializer):
'''
User serializer.
'''
tuits = TuitSerializer(many=True, read_only=True)
| [
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
1330,
651,
62,
7220,
62,
19849,
198,
6738,
42625,
14208,
13,
3642,
822,
13,
18439,
13,
28712,
62,
12102,
341,
1330,
26571,
62,
28712,
198,
6738,
1334,
62,
30604,
1330,
11389,
11341,
198,
6738,
40391,
13,
27530,
1330,
11787,
17633,
11,
309,
5013,
17633,
628,
198,
4871,
309,
5013,
32634,
7509,
7,
46911,
11341,
13,
17633,
32634,
7509,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
309,
5013,
11389,
7509,
13,
198,
220,
220,
220,
705,
7061,
628,
198,
4871,
11787,
32634,
7509,
7,
46911,
11341,
13,
17633,
32634,
7509,
2599,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
11787,
11389,
7509,
13,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
12777,
896,
796,
309,
5013,
32634,
7509,
7,
21834,
28,
17821,
11,
1100,
62,
8807,
28,
17821,
8,
198
] | 2.993103 | 145 |
# -*- coding: utf-8 -*-
# Copyright 2017, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
"""Utilities for File Input/Output."""
import copy
import datetime
import json
import os
import numpy
from sympy import Basic
import qiskit
from qiskit._qiskiterror import QISKitError
from qiskit.backends import BaseBackend
def convert_qobj_to_json(in_item):
"""
Combs recursively through a list/dictionary and finds any non-json
compatible elements and converts them. E.g. complex ndarray's are
converted to lists of strings. Assume that all such elements are
stored in dictionaries!
Arg:
in_item (dict or list): the input dict/list
"""
key_list = []
for (item_index, item_iter) in enumerate(in_item):
if isinstance(in_item, list):
curkey = item_index
else:
curkey = item_iter
if isinstance(in_item[curkey], (list, dict)):
# go recursively through nested list/dictionaries
convert_qobj_to_json(in_item[curkey])
elif isinstance(in_item[curkey], numpy.ndarray):
# ndarray's are not json compatible. Save the key.
key_list.append(curkey)
# convert ndarray's to lists
# split complex arrays into two lists because complex values are not
# json compatible
for curkey in key_list:
if in_item[curkey].dtype == 'complex':
in_item[curkey + '_ndarray_imag'] = numpy.imag(
in_item[curkey]).tolist()
in_item[curkey + '_ndarray_real'] = numpy.real(
in_item[curkey]).tolist()
in_item.pop(curkey)
else:
in_item[curkey] = in_item[curkey].tolist()
def convert_json_to_qobj(in_item):
"""Combs recursively through a list/dictionary that was loaded from json
and finds any lists that were converted from ndarray and converts them back
Arg:
in_item (dict or list): the input dict/list
"""
key_list = []
for (item_index, item_iter) in enumerate(in_item):
if isinstance(in_item, list):
curkey = item_index
else:
curkey = item_iter
# flat these lists so that we can recombine back into a complex
# number
if '_ndarray_real' in curkey:
key_list.append(curkey)
continue
if isinstance(in_item[curkey], (list, dict)):
convert_json_to_qobj(in_item[curkey])
for curkey in key_list:
curkey_root = curkey[0:-13]
in_item[curkey_root] = numpy.array(in_item[curkey])
in_item.pop(curkey)
if curkey_root + '_ndarray_imag' in in_item:
in_item[curkey_root] = in_item[curkey_root] + 1j * numpy.array(
in_item[curkey_root + '_ndarray_imag'])
in_item.pop(curkey_root + '_ndarray_imag')
def file_datestr(folder, fileroot):
"""Constructs a filename using the current date-time
Args:
folder (str): path to the save folder
fileroot (str): root string for the file
Returns:
String: full file path of the form
'folder/YYYY_MM_DD_HH_MM_fileroot.json'
"""
# if the fileroot has .json appended strip it off
if len(fileroot) > 4 and fileroot[-5:].lower() == '.json':
fileroot = fileroot[0:-5]
return os.path.join(
folder, ('{:%Y_%m_%d_%H_%M_}'.format(datetime.datetime.now()) +
fileroot + '.json'))
def load_result_from_file(filename):
"""Load a results dictionary file (.json) to a Result object.
Note: The json file may not load properly if it was saved with a previous
version of the SDK.
Args:
filename (str): filename of the dictionary
Returns:
tuple(Result, dict):
The new Results object
if the metadata exists it will get returned
Raises:
QISKitError: if the file does not exist or does not have the proper
dictionary structure.
"""
if not os.path.exists(filename):
raise QISKitError('File %s does not exist' % filename)
with open(filename, 'r') as load_file:
master_dict = json.load(load_file)
try:
qresult_dict = master_dict['result']
convert_json_to_qobj(qresult_dict)
metadata = master_dict['metadata']
except KeyError:
raise QISKitError('File %s does not have the proper dictionary '
'structure')
qresult = qiskit.Result(qresult_dict)
return qresult, metadata
class ResultEncoder(json.JSONEncoder):
"""
Custom JSON encoder for sympy types.
"""
def save_result_to_file(resultobj, filename, metadata=None):
"""Save a result and optional metatdata to a single dictionary file.
Args:
resultobj (Result): Result to save
filename (str): save path (with or without the json extension). If the
file already exists then numbers will be appended to the root to
generate a unique filename.
E.g. if filename=test.json and that file exists then the file will
be changed to test_1.json
metadata (dict): Add another dictionary with custom data for the
result (eg fit results)
Return:
String: full file path
"""
master_dict = {
'result': copy.deepcopy(resultobj._result)
}
if metadata is None:
master_dict['metadata'] = {}
else:
master_dict['metadata'] = copy.deepcopy(metadata)
# need to convert any ndarray variables to lists so that they can be
# exported to the json file
convert_qobj_to_json(master_dict['result'])
# if the filename has .json appended strip it off
if filename[-5:].lower() == '.json':
filename = filename[0:-5]
append_str = ''
append_num = 0
while os.path.exists(filename + append_str + '.json'):
append_num += 1
append_str = '_%d' % append_num
with open(filename + append_str + '.json', 'w') as save_file:
json.dump(master_dict, save_file, indent=1, cls=ResultEncoder)
return filename + append_str + '.json'
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
15069,
2177,
11,
19764,
13,
198,
2,
198,
2,
770,
2723,
2438,
318,
11971,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
1043,
287,
198,
2,
262,
38559,
24290,
13,
14116,
2393,
287,
262,
6808,
8619,
286,
428,
2723,
5509,
13,
198,
198,
37811,
18274,
2410,
329,
9220,
23412,
14,
26410,
526,
15931,
198,
198,
11748,
4866,
198,
11748,
4818,
8079,
198,
11748,
33918,
198,
11748,
28686,
198,
198,
11748,
299,
32152,
198,
6738,
10558,
88,
1330,
14392,
198,
198,
11748,
10662,
1984,
270,
198,
6738,
10662,
1984,
270,
13557,
80,
1984,
2676,
1472,
1330,
1195,
1797,
20827,
12331,
198,
6738,
10662,
1984,
270,
13,
1891,
2412,
1330,
7308,
7282,
437,
628,
198,
4299,
10385,
62,
80,
26801,
62,
1462,
62,
17752,
7,
259,
62,
9186,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
955,
1443,
664,
1834,
2280,
832,
257,
1351,
14,
67,
14188,
290,
7228,
597,
1729,
12,
17752,
198,
220,
220,
220,
11670,
4847,
290,
26161,
606,
13,
412,
13,
70,
13,
3716,
299,
67,
18747,
338,
389,
198,
220,
220,
220,
11513,
284,
8341,
286,
13042,
13,
2195,
2454,
326,
477,
884,
4847,
389,
198,
220,
220,
220,
8574,
287,
48589,
3166,
0,
628,
220,
220,
220,
20559,
25,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
357,
11600,
393,
1351,
2599,
262,
5128,
8633,
14,
4868,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1994,
62,
4868,
796,
17635,
198,
220,
220,
220,
329,
357,
9186,
62,
9630,
11,
2378,
62,
2676,
8,
287,
27056,
378,
7,
259,
62,
9186,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
259,
62,
9186,
11,
1351,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
2539,
796,
2378,
62,
9630,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
2539,
796,
2378,
62,
2676,
628,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
259,
62,
9186,
58,
22019,
2539,
4357,
357,
4868,
11,
8633,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
467,
664,
1834,
2280,
832,
28376,
1351,
14,
67,
2867,
3166,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10385,
62,
80,
26801,
62,
1462,
62,
17752,
7,
259,
62,
9186,
58,
22019,
2539,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
318,
39098,
7,
259,
62,
9186,
58,
22019,
2539,
4357,
299,
32152,
13,
358,
18747,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
299,
67,
18747,
338,
389,
407,
33918,
11670,
13,
12793,
262,
1994,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
4868,
13,
33295,
7,
22019,
2539,
8,
628,
220,
220,
220,
1303,
10385,
299,
67,
18747,
338,
284,
8341,
198,
220,
220,
220,
1303,
6626,
3716,
26515,
656,
734,
8341,
780,
3716,
3815,
389,
407,
198,
220,
220,
220,
1303,
33918,
11670,
198,
220,
220,
220,
329,
1090,
2539,
287,
1994,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
611,
287,
62,
9186,
58,
22019,
2539,
4083,
67,
4906,
6624,
705,
41887,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
1343,
705,
62,
358,
18747,
62,
48466,
20520,
796,
299,
32152,
13,
48466,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
35944,
83,
349,
396,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
1343,
705,
62,
358,
18747,
62,
5305,
20520,
796,
299,
32152,
13,
5305,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
35944,
83,
349,
396,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
13,
12924,
7,
22019,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
60,
796,
287,
62,
9186,
58,
22019,
2539,
4083,
83,
349,
396,
3419,
628,
198,
4299,
10385,
62,
17752,
62,
1462,
62,
80,
26801,
7,
259,
62,
9186,
2599,
198,
220,
220,
220,
37227,
5377,
1443,
664,
1834,
2280,
832,
257,
1351,
14,
67,
14188,
326,
373,
9639,
422,
33918,
198,
220,
220,
220,
290,
7228,
597,
8341,
326,
547,
11513,
422,
299,
67,
18747,
290,
26161,
606,
736,
628,
220,
220,
220,
20559,
25,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
357,
11600,
393,
1351,
2599,
262,
5128,
8633,
14,
4868,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1994,
62,
4868,
796,
17635,
198,
220,
220,
220,
329,
357,
9186,
62,
9630,
11,
2378,
62,
2676,
8,
287,
27056,
378,
7,
259,
62,
9186,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
259,
62,
9186,
11,
1351,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
2539,
796,
2378,
62,
9630,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1090,
2539,
796,
2378,
62,
2676,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6228,
777,
8341,
523,
326,
356,
460,
44759,
500,
736,
656,
257,
3716,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1271,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
705,
62,
358,
18747,
62,
5305,
6,
287,
1090,
2539,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
4868,
13,
33295,
7,
22019,
2539,
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,
611,
318,
39098,
7,
259,
62,
9186,
58,
22019,
2539,
4357,
357,
4868,
11,
8633,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10385,
62,
17752,
62,
1462,
62,
80,
26801,
7,
259,
62,
9186,
58,
22019,
2539,
12962,
628,
220,
220,
220,
329,
1090,
2539,
287,
1994,
62,
4868,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1090,
2539,
62,
15763,
796,
1090,
2539,
58,
15,
21912,
1485,
60,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
62,
15763,
60,
796,
299,
32152,
13,
18747,
7,
259,
62,
9186,
58,
22019,
2539,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
13,
12924,
7,
22019,
2539,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1090,
2539,
62,
15763,
1343,
705,
62,
358,
18747,
62,
48466,
6,
287,
287,
62,
9186,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
62,
15763,
60,
796,
287,
62,
9186,
58,
22019,
2539,
62,
15763,
60,
1343,
352,
73,
1635,
299,
32152,
13,
18747,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
58,
22019,
2539,
62,
15763,
1343,
705,
62,
358,
18747,
62,
48466,
6,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
287,
62,
9186,
13,
12924,
7,
22019,
2539,
62,
15763,
1343,
705,
62,
358,
18747,
62,
48466,
11537,
628,
198,
4299,
2393,
62,
19608,
395,
81,
7,
43551,
11,
1226,
263,
1025,
2599,
198,
220,
220,
220,
37227,
42316,
82,
257,
29472,
1262,
262,
1459,
3128,
12,
2435,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
9483,
357,
2536,
2599,
3108,
284,
262,
3613,
9483,
198,
220,
220,
220,
220,
220,
220,
220,
1226,
263,
1025,
357,
2536,
2599,
6808,
4731,
329,
262,
2393,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
10903,
25,
1336,
2393,
3108,
286,
262,
1296,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
43551,
14,
26314,
26314,
62,
12038,
62,
16458,
62,
16768,
62,
12038,
62,
69,
5329,
1025,
13,
17752,
6,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
1303,
611,
262,
1226,
263,
1025,
468,
764,
17752,
598,
1631,
10283,
340,
572,
198,
220,
220,
220,
611,
18896,
7,
69,
5329,
1025,
8,
1875,
604,
290,
1226,
263,
1025,
58,
12,
20,
25,
4083,
21037,
3419,
6624,
45302,
17752,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
1226,
263,
1025,
796,
1226,
263,
1025,
58,
15,
21912,
20,
60,
628,
220,
220,
220,
1441,
28686,
13,
6978,
13,
22179,
7,
198,
220,
220,
220,
220,
220,
220,
220,
9483,
11,
19203,
90,
25,
4,
56,
62,
4,
76,
62,
4,
67,
62,
4,
39,
62,
4,
44,
62,
92,
4458,
18982,
7,
19608,
8079,
13,
19608,
8079,
13,
2197,
28955,
1343,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1226,
263,
1025,
1343,
45302,
17752,
6,
4008,
628,
198,
4299,
3440,
62,
20274,
62,
6738,
62,
7753,
7,
34345,
2599,
198,
220,
220,
220,
37227,
8912,
257,
2482,
22155,
2393,
20262,
17752,
8,
284,
257,
25414,
2134,
13,
198,
220,
220,
220,
5740,
25,
383,
33918,
2393,
743,
407,
3440,
6105,
611,
340,
373,
7448,
351,
257,
2180,
198,
220,
220,
220,
2196,
286,
262,
26144,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
357,
2536,
2599,
29472,
286,
262,
22155,
628,
220,
220,
220,
16409,
25,
198,
220,
220,
220,
220,
220,
220,
220,
46545,
7,
23004,
11,
8633,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
383,
649,
15691,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
262,
20150,
7160,
340,
481,
651,
4504,
198,
220,
220,
220,
7567,
2696,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1195,
1797,
20827,
12331,
25,
611,
262,
2393,
857,
407,
2152,
393,
857,
407,
423,
262,
1774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
22155,
4645,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
611,
407,
28686,
13,
6978,
13,
1069,
1023,
7,
34345,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1195,
1797,
20827,
12331,
10786,
8979,
4064,
82,
857,
407,
2152,
6,
4064,
29472,
8,
628,
220,
220,
220,
351,
1280,
7,
34345,
11,
705,
81,
11537,
355,
3440,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4958,
62,
11600,
796,
33918,
13,
2220,
7,
2220,
62,
7753,
8,
628,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
10662,
20274,
62,
11600,
796,
4958,
62,
11600,
17816,
20274,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
10385,
62,
17752,
62,
1462,
62,
80,
26801,
7,
80,
20274,
62,
11600,
8,
198,
220,
220,
220,
220,
220,
220,
220,
20150,
796,
4958,
62,
11600,
17816,
38993,
20520,
198,
220,
220,
220,
2845,
7383,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
1195,
1797,
20827,
12331,
10786,
8979,
4064,
82,
857,
407,
423,
262,
1774,
22155,
705,
198,
220,
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,
301,
5620,
11537,
628,
220,
220,
220,
10662,
20274,
796,
10662,
1984,
270,
13,
23004,
7,
80,
20274,
62,
11600,
8,
628,
220,
220,
220,
1441,
10662,
20274,
11,
20150,
628,
198,
4871,
25414,
27195,
12342,
7,
17752,
13,
40386,
27195,
12342,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
8562,
19449,
2207,
12342,
329,
10558,
88,
3858,
13,
198,
220,
220,
220,
37227,
628,
198,
4299,
3613,
62,
20274,
62,
1462,
62,
7753,
7,
20274,
26801,
11,
29472,
11,
20150,
28,
14202,
2599,
198,
220,
220,
220,
37227,
16928,
257,
1255,
290,
11902,
1138,
265,
7890,
284,
257,
2060,
22155,
2393,
13,
628,
220,
220,
220,
943,
14542,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
26801,
357,
23004,
2599,
25414,
284,
3613,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
357,
2536,
2599,
3613,
3108,
357,
4480,
393,
1231,
262,
33918,
7552,
737,
1002,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
1541,
7160,
788,
3146,
481,
307,
598,
1631,
284,
262,
6808,
284,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7716,
257,
3748,
220,
29472,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
412,
13,
70,
13,
611,
29472,
28,
9288,
13,
17752,
290,
326,
2393,
7160,
788,
262,
2393,
481,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
307,
3421,
284,
1332,
62,
16,
13,
17752,
198,
220,
220,
220,
220,
220,
220,
220,
20150,
357,
11600,
2599,
3060,
1194,
22155,
351,
2183,
1366,
329,
262,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
357,
1533,
4197,
2482,
8,
628,
220,
220,
220,
8229,
25,
198,
220,
220,
220,
220,
220,
220,
220,
10903,
25,
1336,
2393,
3108,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
4958,
62,
11600,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
705,
20274,
10354,
4866,
13,
22089,
30073,
7,
20274,
26801,
13557,
20274,
8,
198,
220,
220,
220,
1782,
198,
220,
220,
220,
611,
20150,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4958,
62,
11600,
17816,
38993,
20520,
796,
23884,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
4958,
62,
11600,
17816,
38993,
20520,
796,
4866,
13,
22089,
30073,
7,
38993,
8,
628,
220,
220,
220,
1303,
761,
284,
10385,
597,
299,
67,
18747,
9633,
284,
8341,
523,
326,
484,
460,
307,
198,
220,
220,
220,
1303,
29050,
284,
262,
33918,
2393,
198,
220,
220,
220,
10385,
62,
80,
26801,
62,
1462,
62,
17752,
7,
9866,
62,
11600,
17816,
20274,
6,
12962,
628,
220,
220,
220,
1303,
611,
262,
29472,
468,
764,
17752,
598,
1631,
10283,
340,
572,
198,
220,
220,
220,
611,
29472,
58,
12,
20,
25,
4083,
21037,
3419,
6624,
45302,
17752,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
796,
29472,
58,
15,
21912,
20,
60,
628,
220,
220,
220,
24443,
62,
2536,
796,
10148,
198,
220,
220,
220,
24443,
62,
22510,
796,
657,
628,
220,
220,
220,
981,
28686,
13,
6978,
13,
1069,
1023,
7,
34345,
1343,
24443,
62,
2536,
1343,
45302,
17752,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
24443,
62,
22510,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
24443,
62,
2536,
796,
705,
62,
4,
67,
6,
4064,
24443,
62,
22510,
628,
220,
220,
220,
351,
1280,
7,
34345,
1343,
24443,
62,
2536,
1343,
45302,
17752,
3256,
705,
86,
11537,
355,
3613,
62,
7753,
25,
198,
220,
220,
220,
220,
220,
220,
220,
33918,
13,
39455,
7,
9866,
62,
11600,
11,
3613,
62,
7753,
11,
33793,
28,
16,
11,
537,
82,
28,
23004,
27195,
12342,
8,
628,
220,
220,
220,
1441,
29472,
1343,
24443,
62,
2536,
1343,
45302,
17752,
6,
198
] | 2.400154 | 2,594 |
import datetime
import time
import discord
import pytz
from discord.ext import commands
from Modules import CONSTANT
from Modules.CONSTANT import SHOWROOM_ALERT_ROLES
from Modules.Checks import check_if_bot_spam
JP_TZ: pytz.UTC = pytz.timezone('Asia/Tokyo')
UNIVERSAL_TZ: pytz.UTC = pytz.timezone('UTC')
PACIFIC_TZ: pytz.UTC = pytz.timezone('America/Los_Angeles')
CENTRAL_TZ: pytz.UTC = pytz.timezone('America/Chicago')
EASTERN_TZ: pytz.UTC = pytz.timezone('America/New_York')
TIMEZONES = [
("Japan Time", JP_TZ),
("Universal Time", UNIVERSAL_TZ),
("Pacific Time", PACIFIC_TZ),
("Central Time", CENTRAL_TZ),
("Eastern Time", EASTERN_TZ)]
TIME_FORMAT_STRING: str = "%Y-%m-%d %I:%M%p"
| [
11748,
4818,
8079,
198,
11748,
640,
198,
198,
11748,
36446,
198,
11748,
12972,
22877,
198,
6738,
36446,
13,
2302,
1330,
9729,
198,
198,
6738,
3401,
5028,
1330,
7102,
2257,
8643,
198,
6738,
3401,
5028,
13,
10943,
2257,
8643,
1330,
37041,
13252,
2662,
62,
1847,
17395,
62,
49,
3535,
1546,
198,
6738,
3401,
5028,
13,
7376,
4657,
1330,
2198,
62,
361,
62,
13645,
62,
2777,
321,
198,
198,
12889,
62,
51,
57,
25,
12972,
22877,
13,
17429,
796,
12972,
22877,
13,
2435,
11340,
10786,
38555,
14,
19042,
8226,
11537,
198,
4944,
30194,
1847,
62,
51,
57,
25,
12972,
22877,
13,
17429,
796,
12972,
22877,
13,
2435,
11340,
10786,
17429,
11537,
198,
44938,
30643,
62,
51,
57,
25,
12972,
22877,
13,
17429,
796,
12972,
22877,
13,
2435,
11340,
10786,
18165,
14,
28903,
62,
33246,
274,
11537,
198,
43960,
35296,
62,
51,
57,
25,
12972,
22877,
13,
17429,
796,
12972,
22877,
13,
2435,
11340,
10786,
18165,
14,
25705,
11537,
198,
36,
1921,
31800,
62,
51,
57,
25,
12972,
22877,
13,
17429,
796,
12972,
22877,
13,
2435,
11340,
10786,
18165,
14,
3791,
62,
49278,
11537,
198,
198,
34694,
57,
39677,
796,
685,
198,
220,
220,
220,
5855,
16504,
3862,
1600,
21331,
62,
51,
57,
828,
198,
220,
220,
220,
5855,
38747,
3862,
1600,
49677,
1847,
62,
51,
57,
828,
198,
220,
220,
220,
5855,
22933,
3862,
1600,
16741,
30643,
62,
51,
57,
828,
198,
220,
220,
220,
5855,
30645,
3862,
1600,
33269,
35296,
62,
51,
57,
828,
198,
220,
220,
220,
5855,
46109,
3862,
1600,
412,
1921,
31800,
62,
51,
57,
15437,
198,
198,
34694,
62,
21389,
1404,
62,
18601,
2751,
25,
965,
796,
36521,
56,
12,
4,
76,
12,
4,
67,
4064,
40,
25,
4,
44,
4,
79,
1,
628
] | 2.470383 | 287 |
import requests
from flask import Blueprint, Flask, redirect, render_template, request, url_for
from itertools import tee
from markupsafe import Markup, escape
hist = Blueprint('history', __name__, template_folder='templates', static_folder='static')
app = Flask(__name__)
API_URL = 'https://api.openstreetmap.org/api/0.6'
@app.template_filter('truncate')
@hist.errorhandler(ElementDoesntExistException)
@hist.route('/')
@hist.route('/node.php')
@hist.route('/way.php')
@hist.route('/relation.php')
@hist.route('/node/<int:id>')
@hist.route('/way/<int:id>')
@hist.route('/relation/<int:id>')
app.register_blueprint(hist, url_prefix='/history')
| [
11748,
7007,
198,
6738,
42903,
1330,
39932,
11,
46947,
11,
18941,
11,
8543,
62,
28243,
11,
2581,
11,
19016,
62,
1640,
198,
6738,
340,
861,
10141,
1330,
30479,
198,
6738,
1317,
4739,
8635,
1330,
2940,
929,
11,
6654,
198,
198,
10034,
796,
39932,
10786,
23569,
3256,
11593,
3672,
834,
11,
11055,
62,
43551,
11639,
11498,
17041,
3256,
9037,
62,
43551,
11639,
12708,
11537,
198,
1324,
796,
46947,
7,
834,
3672,
834,
8,
198,
17614,
62,
21886,
796,
705,
5450,
1378,
15042,
13,
9654,
25662,
8899,
13,
2398,
14,
15042,
14,
15,
13,
21,
6,
628,
198,
198,
31,
1324,
13,
28243,
62,
24455,
10786,
2213,
19524,
378,
11537,
628,
198,
31,
10034,
13,
18224,
30281,
7,
20180,
13921,
429,
3109,
396,
16922,
8,
628,
628,
628,
628,
198,
198,
31,
10034,
13,
38629,
10786,
14,
11537,
628,
198,
31,
10034,
13,
38629,
10786,
14,
17440,
13,
10121,
11537,
628,
198,
31,
10034,
13,
38629,
10786,
14,
1014,
13,
10121,
11537,
628,
198,
31,
10034,
13,
38629,
10786,
14,
49501,
13,
10121,
11537,
628,
198,
31,
10034,
13,
38629,
10786,
14,
17440,
14,
27,
600,
25,
312,
29,
11537,
628,
198,
31,
10034,
13,
38629,
10786,
14,
1014,
14,
27,
600,
25,
312,
29,
11537,
628,
198,
31,
10034,
13,
38629,
10786,
14,
49501,
14,
27,
600,
25,
312,
29,
11537,
628,
198,
1324,
13,
30238,
62,
17585,
4798,
7,
10034,
11,
19016,
62,
40290,
11639,
14,
23569,
11537,
198
] | 2.8159 | 239 |
"""
Run load tests:
locust -f load_test/locustfile.py --host http://127.0.0.1:3000
"""
from locust import HttpUser, task
import pandas as pd
import random
feature_columns = {
"fixed acidity": "fixed_acidity",
"volatile acidity": "volatile_acidity",
"citric acid": "citric_acid",
"residual sugar": "residual_sugar",
"chlorides": "chlorides",
"free sulfur dioxide": "free_sulfur_dioxide",
"total sulfur dioxide": "total_sulfur_dioxide",
"density": "density",
"pH": "ph",
"sulphates": "sulphates",
"alcohol": "alcohol_pct_vol",
}
dataset = (
pd.read_csv(
"https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-red.csv",
delimiter=";",
)
.rename(columns=feature_columns)
.drop("quality", axis=1)
.to_dict(orient="records")
)
| [
37811,
198,
10987,
3440,
5254,
25,
198,
198,
17946,
436,
532,
69,
3440,
62,
9288,
14,
17946,
436,
7753,
13,
9078,
1377,
4774,
2638,
1378,
16799,
13,
15,
13,
15,
13,
16,
25,
23924,
198,
37811,
198,
198,
6738,
1179,
436,
1330,
367,
29281,
12982,
11,
4876,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
4738,
198,
198,
30053,
62,
28665,
82,
796,
1391,
198,
220,
220,
220,
366,
34021,
7408,
414,
1298,
366,
34021,
62,
330,
17995,
1600,
198,
220,
220,
220,
366,
10396,
12610,
7408,
414,
1298,
366,
10396,
12610,
62,
330,
17995,
1600,
198,
220,
220,
220,
366,
47992,
1173,
7408,
1298,
366,
47992,
1173,
62,
46309,
1600,
198,
220,
220,
220,
366,
411,
312,
723,
7543,
1298,
366,
411,
312,
723,
62,
82,
35652,
1600,
198,
220,
220,
220,
366,
36813,
1460,
1298,
366,
36813,
1460,
1600,
198,
220,
220,
220,
366,
5787,
37402,
17556,
1298,
366,
5787,
62,
82,
4754,
333,
62,
67,
16671,
1600,
198,
220,
220,
220,
366,
23350,
37402,
17556,
1298,
366,
23350,
62,
82,
4754,
333,
62,
67,
16671,
1600,
198,
220,
220,
220,
366,
43337,
1298,
366,
43337,
1600,
198,
220,
220,
220,
366,
79,
39,
1298,
366,
746,
1600,
198,
220,
220,
220,
366,
82,
377,
746,
689,
1298,
366,
82,
377,
746,
689,
1600,
198,
220,
220,
220,
366,
42142,
1298,
366,
42142,
62,
79,
310,
62,
10396,
1600,
198,
92,
198,
19608,
292,
316,
796,
357,
198,
220,
220,
220,
279,
67,
13,
961,
62,
40664,
7,
198,
220,
220,
220,
220,
220,
220,
220,
366,
5450,
1378,
17474,
13,
873,
13,
42008,
13,
15532,
14,
4029,
14,
30243,
12,
40684,
12,
19608,
18826,
14,
39002,
12,
13237,
14,
39002,
13237,
12,
445,
13,
40664,
1600,
198,
220,
220,
220,
220,
220,
220,
220,
46728,
2676,
2625,
26,
1600,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
764,
918,
480,
7,
28665,
82,
28,
30053,
62,
28665,
82,
8,
198,
220,
220,
220,
764,
14781,
7203,
13237,
1600,
16488,
28,
16,
8,
198,
220,
220,
220,
764,
1462,
62,
11600,
7,
13989,
2625,
8344,
3669,
4943,
198,
8,
628
] | 2.355932 | 354 |
# Import spezieller Python-Funktionalitรคten, damit Abstrakte Methoden
# definiert werden kรถnnen
from abc import ABCMeta, abstractmethod
# Konstanten, mit denen wir die Wetterlage beschreiben
SONNE = 0,
BEWOELKT = 1
REGEN = 2
# Abstrakte Klasse zur Reprรคsentation einer Stadt.
# Von dieser Klasse kann keine Instanz (= Objekt) erzeugt werden.
# รffentliche Klasse fรผr die Groรstadt leitet
# von der Klasse Stadt ab.
# Konstruktor erwartet ebenfalls einen Stรคdtenamen und das
# Wetter, aber zusรคtzlich noch Stadtteile
# Getter-Methode zur Rรผckgabe des Webseiten-Inhalts
# fรผr den Webseiten-Generator
# Getter-Methode zur Rรผckgabe der URL zur Wetterseite
# รffentliche Klasse fรผr die Groรstadt leitet
# von der Klasse Stadt ab.
# Konstruktor erwartet ebenfalls einen Stรคdtenamen und das
# Wetter
# Getter-Methode zur Rรผckgabe des Webseiten-Inhalts
# fรผr den Webseiten-Generator
# Getter-Methode zur Rรผckgabe der URL zur Wetterseite
# รffentliche Klasse fรผr den Webseitengenerator
# Startpunkt des Hauptprogramms
# Hier werden die implementierten Klassen zu Demonstrations- und
# Testzwecken instanziiert und verwendet.
| [
2,
17267,
693,
49746,
6051,
11361,
12,
37,
2954,
83,
1538,
270,
11033,
1452,
11,
1801,
270,
2275,
12044,
74,
660,
11789,
268,
198,
2,
2730,
72,
861,
266,
263,
6559,
479,
9101,
20471,
268,
198,
6738,
450,
66,
1330,
9738,
48526,
11,
12531,
24396,
198,
198,
2,
17431,
18797,
268,
11,
10255,
2853,
268,
266,
343,
4656,
32930,
353,
75,
496,
7284,
354,
260,
571,
268,
198,
11782,
12161,
796,
657,
11,
198,
33,
6217,
46,
3698,
42176,
796,
352,
198,
31553,
1677,
796,
362,
198,
198,
2,
2275,
12044,
74,
660,
14770,
21612,
1976,
333,
1432,
81,
11033,
34086,
341,
304,
7274,
520,
324,
83,
13,
198,
2,
26985,
10564,
263,
14770,
21612,
479,
1236,
885,
500,
2262,
35410,
46121,
38764,
988,
83,
8,
1931,
2736,
1018,
83,
266,
263,
6559,
13,
628,
198,
198,
2,
43307,
487,
298,
677,
258,
14770,
21612,
277,
25151,
4656,
10299,
39683,
38863,
443,
270,
316,
198,
2,
18042,
4587,
14770,
21612,
520,
324,
83,
450,
13,
198,
220,
220,
220,
1303,
17431,
19554,
74,
13165,
1931,
24657,
316,
304,
11722,
23348,
304,
42326,
520,
11033,
67,
1452,
41763,
3318,
288,
292,
198,
220,
220,
220,
1303,
32930,
353,
11,
42499,
1976,
385,
11033,
22877,
33467,
645,
354,
520,
324,
83,
660,
576,
628,
220,
220,
220,
1303,
3497,
353,
12,
44,
2788,
1098,
1976,
333,
371,
9116,
694,
70,
11231,
748,
5313,
325,
270,
268,
12,
818,
14201,
912,
198,
220,
220,
220,
1303,
277,
25151,
2853,
5313,
325,
270,
268,
12,
8645,
1352,
628,
220,
220,
220,
1303,
3497,
353,
12,
44,
2788,
1098,
1976,
333,
371,
9116,
694,
70,
11231,
4587,
10289,
1976,
333,
32930,
353,
325,
578,
628,
198,
2,
43307,
487,
298,
677,
258,
14770,
21612,
277,
25151,
4656,
10299,
39683,
38863,
443,
270,
316,
198,
2,
18042,
4587,
14770,
21612,
520,
324,
83,
450,
13,
198,
220,
220,
220,
1303,
17431,
19554,
74,
13165,
1931,
24657,
316,
304,
11722,
23348,
304,
42326,
520,
11033,
67,
1452,
41763,
3318,
288,
292,
198,
220,
220,
220,
1303,
32930,
353,
628,
220,
220,
220,
1303,
3497,
353,
12,
44,
2788,
1098,
1976,
333,
371,
9116,
694,
70,
11231,
748,
5313,
325,
270,
268,
12,
818,
14201,
912,
198,
220,
220,
220,
1303,
277,
25151,
2853,
5313,
325,
270,
268,
12,
8645,
1352,
628,
220,
220,
220,
1303,
3497,
353,
12,
44,
2788,
1098,
1976,
333,
371,
9116,
694,
70,
11231,
4587,
10289,
1976,
333,
32930,
353,
325,
578,
628,
198,
2,
43307,
487,
298,
677,
258,
14770,
21612,
277,
25151,
2853,
5313,
325,
270,
1516,
877,
1352,
628,
198,
2,
7253,
30354,
83,
748,
49696,
457,
23065,
907,
198,
2,
36496,
266,
263,
6559,
4656,
3494,
72,
861,
268,
14770,
562,
268,
1976,
84,
7814,
2536,
602,
12,
3318,
198,
2,
6208,
89,
732,
694,
268,
916,
35410,
4178,
861,
3318,
3326,
86,
437,
316,
13,
198
] | 2.449791 | 478 |
__author__ = 'jdeu'
| [
834,
9800,
834,
796,
705,
73,
2934,
84,
6,
198
] | 2 | 10 |
"""Signals for content syncing"""
from django.db.models.signals import post_save
from django.dispatch import receiver
from content_sync import api
from websites.models import WebsiteContent
@receiver(
post_save,
sender=WebsiteContent,
dispatch_uid="sync_state_website_content_upsert",
)
def upsert_content_sync_state(
sender, instance, created, **kwargs
): # pylint: disable=unused-argument
""" Create/update the sync state """
api.upsert_content_sync_state(instance)
| [
37811,
11712,
874,
329,
2695,
6171,
2259,
37811,
198,
6738,
42625,
14208,
13,
9945,
13,
27530,
13,
12683,
874,
1330,
1281,
62,
21928,
198,
6738,
42625,
14208,
13,
6381,
17147,
1330,
9733,
198,
198,
6738,
2695,
62,
27261,
1330,
40391,
198,
6738,
9293,
13,
27530,
1330,
15887,
19746,
628,
198,
31,
260,
39729,
7,
198,
220,
220,
220,
1281,
62,
21928,
11,
198,
220,
220,
220,
29788,
28,
33420,
19746,
11,
198,
220,
220,
220,
27965,
62,
27112,
2625,
27261,
62,
5219,
62,
732,
12485,
62,
11299,
62,
4739,
861,
1600,
198,
8,
198,
4299,
19649,
861,
62,
11299,
62,
27261,
62,
5219,
7,
198,
220,
220,
220,
29788,
11,
4554,
11,
2727,
11,
12429,
46265,
22046,
198,
2599,
220,
1303,
279,
2645,
600,
25,
15560,
28,
403,
1484,
12,
49140,
198,
220,
220,
220,
37227,
13610,
14,
19119,
262,
17510,
1181,
37227,
198,
220,
220,
220,
40391,
13,
4739,
861,
62,
11299,
62,
27261,
62,
5219,
7,
39098,
8,
198
] | 3.080745 | 161 |
# -*- coding: utf-8 -*-
"""Module providing an image scaling factory."""
import os
import json
import six
from plone import api
from plone.scale.interfaces import IScaledImageQuality
from zope.component import getMultiAdapter, queryUtility
from zope.globalrequest import getRequest
from ade25.base.utils import get_filesystem_template
IMG = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs='
class ResponsiveImagesTool(object):
""" Factory providing rescaling of project images """
@staticmethod
@staticmethod
def get_quality():
"""Get plone.app.imaging's quality setting"""
default_scaled_image_quality = queryUtility(IScaledImageQuality)
if default_scaled_image_quality is None:
return None
return default_scaled_image_quality()
@staticmethod
@staticmethod
def generate_image(self,
item,
image_field,
scale_settings,
generate_lqip=False):
""" function used for generating (and potentially storing)
image scales on demand
"""
image_scales = getMultiAdapter((item, getRequest()),
name='images')
settings = scale_settings
if settings['quality'] == 'auto':
settings['quality'] = self.get_quality()
if isinstance(scale_settings['width'], tuple):
settings['width'] = scale_settings['width'][0]
if isinstance(scale_settings['height'], tuple):
settings['height'] = scale_settings['height'][0]
if hasattr(item, image_field):
stored_image = getattr(item, image_field)
if generate_lqip:
settings['width'] = stored_image.getImageSize()[0]
settings['height'] = stored_image.getImageSize()[1]
settings['direction'] = 'keep'
settings['quality'] = 10
# Generate scale
image_scale = image_scales.scale(
image_field,
width=int(settings['width']),
height=int(settings['height']),
direction=settings['direction'],
quality=int(settings['quality'])
)
image_data = {
'url': image_scale.url,
'width': image_scale.width,
'height': image_scale.height
}
else:
image_data = self.fallback_image_data()
return image_data
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
26796,
4955,
281,
2939,
20796,
8860,
526,
15931,
198,
11748,
28686,
198,
11748,
33918,
198,
11748,
2237,
198,
198,
6738,
458,
505,
1330,
40391,
198,
6738,
458,
505,
13,
9888,
13,
3849,
32186,
1330,
3180,
66,
3021,
5159,
35013,
198,
6738,
1976,
3008,
13,
42895,
1330,
651,
29800,
47307,
11,
12405,
18274,
879,
198,
6738,
1976,
3008,
13,
20541,
25927,
1330,
651,
18453,
198,
198,
6738,
512,
68,
1495,
13,
8692,
13,
26791,
1330,
651,
62,
16624,
6781,
62,
28243,
198,
198,
3955,
38,
796,
705,
7890,
25,
9060,
14,
27908,
26,
8692,
2414,
11,
49,
15,
75,
38,
3727,
75,
71,
32,
48,
32,
4339,
3539,
32,
2969,
20379,
86,
3838,
2246,
86,
17922,
3838,
48,
6242,
3838,
26576,
74,
40291,
2885,
82,
11639,
628,
198,
4871,
20549,
425,
29398,
25391,
7,
15252,
2599,
198,
220,
220,
220,
37227,
19239,
4955,
6811,
4272,
286,
1628,
4263,
37227,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
2488,
12708,
24396,
198,
220,
220,
220,
825,
651,
62,
13237,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
3855,
458,
505,
13,
1324,
13,
320,
3039,
338,
3081,
4634,
37811,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
1416,
3021,
62,
9060,
62,
13237,
796,
12405,
18274,
879,
7,
1797,
66,
3021,
5159,
35013,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
4277,
62,
1416,
3021,
62,
9060,
62,
13237,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4277,
62,
1416,
3021,
62,
9060,
62,
13237,
3419,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
2488,
12708,
24396,
628,
220,
220,
220,
825,
7716,
62,
9060,
7,
944,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2378,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
3245,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5046,
62,
33692,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7716,
62,
75,
80,
541,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
2163,
973,
329,
15453,
357,
392,
6196,
23069,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
16252,
319,
3512,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
1416,
2040,
796,
651,
29800,
47307,
19510,
9186,
11,
651,
18453,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
11639,
17566,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
6460,
796,
5046,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
611,
6460,
17816,
13237,
20520,
6624,
705,
23736,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
13237,
20520,
796,
2116,
13,
1136,
62,
13237,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
9888,
62,
33692,
17816,
10394,
6,
4357,
46545,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
10394,
20520,
796,
5046,
62,
33692,
17816,
10394,
6,
7131,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
9888,
62,
33692,
17816,
17015,
6,
4357,
46545,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
17015,
20520,
796,
5046,
62,
33692,
17816,
17015,
6,
7131,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
9186,
11,
2939,
62,
3245,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8574,
62,
9060,
796,
651,
35226,
7,
9186,
11,
2939,
62,
3245,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
7716,
62,
75,
80,
541,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
10394,
20520,
796,
8574,
62,
9060,
13,
1136,
5159,
10699,
3419,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
17015,
20520,
796,
8574,
62,
9060,
13,
1136,
5159,
10699,
3419,
58,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
37295,
20520,
796,
705,
14894,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6460,
17816,
13237,
20520,
796,
838,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2980,
378,
5046,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
9888,
796,
2939,
62,
1416,
2040,
13,
9888,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
3245,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9647,
28,
600,
7,
33692,
17816,
10394,
20520,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6001,
28,
600,
7,
33692,
17816,
17015,
20520,
828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4571,
28,
33692,
17816,
37295,
6,
4357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3081,
28,
600,
7,
33692,
17816,
13237,
6,
12962,
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,
2939,
62,
7890,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6371,
10354,
2939,
62,
9888,
13,
6371,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10394,
10354,
2939,
62,
9888,
13,
10394,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
17015,
10354,
2939,
62,
9888,
13,
17015,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2939,
62,
7890,
796,
2116,
13,
7207,
1891,
62,
9060,
62,
7890,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2939,
62,
7890,
198
] | 2.172502 | 1,171 |
__author__ = 'yinjun'
# initialize your data structure here.
# @param x, an integer
# @return nothing
# @return nothing
# @return an integer
# @return an boolean | [
834,
9800,
834,
796,
705,
88,
259,
29741,
6,
198,
220,
220,
220,
1303,
41216,
534,
1366,
4645,
994,
13,
628,
220,
220,
220,
1303,
2488,
17143,
2124,
11,
281,
18253,
198,
220,
220,
220,
1303,
2488,
7783,
2147,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
1303,
2488,
7783,
2147,
628,
198,
220,
220,
220,
1303,
2488,
7783,
281,
18253,
628,
220,
220,
220,
220,
198,
220,
220,
220,
1303,
2488,
7783,
281,
25131
] | 2.278351 | 97 |
import discord
from discord.ext import commands
from discord.ext import vbu
from subprocess import check_output
import goslate
class Translator(vbu.Cog):
"""Translate text using google translate."""
@vbu.group(pass_context=True, invoke_without_command=True, aliases=["tr"])
async def translate(self, ctx, to_lang, *, text):
"""Translate text using google translate."""
if to_lang in self.gs.get_languages():
try:
lang_id = self.gs.detect(text)
lang = self.gs.get_languages()[lang_id]
await ctx.send(
"{} (detected as {} ({}))".format(
self.gs.translate(text, to_lang), lang, lang_id
)
)
except Exception as e:
await ctx.send("An error occured while translating. ({})".format(e))
else:
await ctx.send(
"That language could not be found in the list, for a list of supported languages do {}translate langlist".format(
ctx.prefix
)
)
@translate.command()
async def langlist(self, ctx):
"""Shows you a list of supported languages."""
msg = "```fix\nCurrent available languages are:\n"
for lang in self.gs.get_languages():
msg += "\t{}: {}\n".format(self.gs.get_languages()[lang], lang)
if len(msg) > 1750:
await ctx.send(msg + "```")
msg = "```fix\n"
await ctx.send(msg + "```")
| [
11748,
36446,
198,
198,
6738,
36446,
13,
2302,
1330,
9729,
198,
6738,
36446,
13,
2302,
1330,
410,
11110,
198,
6738,
850,
14681,
1330,
2198,
62,
22915,
198,
198,
11748,
308,
418,
17660,
628,
198,
4871,
3602,
41880,
7,
85,
11110,
13,
34,
519,
2599,
198,
220,
220,
220,
37227,
8291,
17660,
2420,
1262,
23645,
15772,
526,
15931,
628,
220,
220,
220,
2488,
85,
11110,
13,
8094,
7,
6603,
62,
22866,
28,
17821,
11,
26342,
62,
19419,
62,
21812,
28,
17821,
11,
47217,
28,
14692,
2213,
8973,
8,
198,
220,
220,
220,
30351,
825,
15772,
7,
944,
11,
269,
17602,
11,
284,
62,
17204,
11,
1635,
11,
2420,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
8291,
17660,
2420,
1262,
23645,
15772,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
611,
284,
62,
17204,
287,
2116,
13,
14542,
13,
1136,
62,
75,
33213,
33529,
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,
42392,
62,
312,
796,
2116,
13,
14542,
13,
15255,
478,
7,
5239,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42392,
796,
2116,
13,
14542,
13,
1136,
62,
75,
33213,
3419,
58,
17204,
62,
312,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25507,
269,
17602,
13,
21280,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45144,
92,
357,
15255,
11197,
355,
23884,
37913,
92,
4008,
1911,
18982,
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,
2116,
13,
14542,
13,
7645,
17660,
7,
5239,
11,
284,
62,
17204,
828,
42392,
11,
42392,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
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,
25507,
269,
17602,
13,
21280,
7203,
2025,
4049,
1609,
1522,
981,
34665,
13,
37913,
30072,
1911,
18982,
7,
68,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25507,
269,
17602,
13,
21280,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
2504,
3303,
714,
407,
307,
1043,
287,
262,
1351,
11,
329,
257,
1351,
286,
4855,
8950,
466,
23884,
7645,
17660,
42392,
4868,
1911,
18982,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
17602,
13,
40290,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
628,
220,
220,
220,
2488,
7645,
17660,
13,
21812,
3419,
198,
220,
220,
220,
30351,
825,
42392,
4868,
7,
944,
11,
269,
17602,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
2484,
1666,
345,
257,
1351,
286,
4855,
8950,
526,
15931,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
366,
15506,
63,
13049,
59,
77,
11297,
1695,
8950,
389,
7479,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
329,
42392,
287,
2116,
13,
14542,
13,
1136,
62,
75,
33213,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
15853,
37082,
83,
90,
38362,
23884,
59,
77,
1911,
18982,
7,
944,
13,
14542,
13,
1136,
62,
75,
33213,
3419,
58,
17204,
4357,
42392,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
19662,
8,
1875,
1596,
1120,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25507,
269,
17602,
13,
21280,
7,
19662,
1343,
366,
15506,
63,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
366,
15506,
63,
13049,
59,
77,
1,
198,
220,
220,
220,
220,
220,
220,
220,
25507,
269,
17602,
13,
21280,
7,
19662,
1343,
366,
15506,
63,
4943,
628
] | 2.067729 | 753 |
import os
DATA_DIR = os.path.dirname(os.path.abspath(__file__))
CARDS_DATABASE_FILE = os.path.join(DATA_DIR, 'database_cards.csv')
NOBLES_DATABASE_FILE = os.path.join(DATA_DIR, 'database_nobles.csv') | [
11748,
28686,
198,
198,
26947,
62,
34720,
796,
28686,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
397,
2777,
776,
7,
834,
7753,
834,
4008,
198,
20034,
5258,
62,
35,
1404,
6242,
11159,
62,
25664,
796,
28686,
13,
6978,
13,
22179,
7,
26947,
62,
34720,
11,
705,
48806,
62,
27761,
13,
40664,
11537,
198,
15285,
9148,
1546,
62,
35,
1404,
6242,
11159,
62,
25664,
796,
28686,
13,
6978,
13,
22179,
7,
26947,
62,
34720,
11,
705,
48806,
62,
34952,
829,
13,
40664,
11537
] | 2.352941 | 85 |
from django.http import HttpResponse
from rest_framework import status
from rest_framework.renderers import JSONRenderer
from collectionjson.renderers import CollectionJsonRenderer
class RenderedResponse(HttpResponse):
"""
An HttpResponse that renders its content into Collection+JSON or JSON.
"""
| [
198,
6738,
42625,
14208,
13,
4023,
1330,
367,
29281,
31077,
198,
6738,
1334,
62,
30604,
1330,
3722,
198,
6738,
1334,
62,
30604,
13,
10920,
19288,
1330,
19449,
49,
437,
11882,
198,
198,
6738,
4947,
17752,
13,
10920,
19288,
1330,
12251,
41,
1559,
49,
437,
11882,
628,
198,
4871,
28703,
1068,
31077,
7,
43481,
31077,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
1052,
367,
29281,
31077,
326,
30111,
663,
2695,
656,
12251,
10,
40386,
393,
19449,
13,
198,
220,
220,
220,
37227,
628,
198
] | 3.674419 | 86 |
import os
import argparse
import requests
apiHost = "https://api.github.com"
token = os.getenv("GITHUB_TOKEN")
if token == None:
print("ERROR: Specify GITHUB_TOKEN environment variable")
exit(1)
authHeader = { "Authorization": f"token {token}"}
parser = argparse.ArgumentParser()
parser.add_argument('--owner')
parser.add_argument('--repo')
parser.add_argument('--tag')
parser.add_argument('--release-name')
parser.add_argument('--body')
parser.add_argument('--prerelease')
parser.add_argument('action')
parser.add_argument('artifact', nargs='+')
if __name__ == "__main__":
main() | [
11748,
28686,
198,
11748,
1822,
29572,
198,
11748,
7007,
198,
198,
15042,
17932,
796,
366,
5450,
1378,
15042,
13,
12567,
13,
785,
1,
198,
30001,
796,
28686,
13,
1136,
24330,
7203,
38,
10554,
10526,
62,
10468,
43959,
4943,
198,
198,
361,
11241,
6624,
6045,
25,
198,
220,
220,
220,
3601,
7203,
24908,
25,
18291,
1958,
402,
10554,
10526,
62,
10468,
43959,
2858,
7885,
4943,
198,
220,
220,
220,
8420,
7,
16,
8,
198,
198,
18439,
39681,
796,
1391,
366,
13838,
1634,
1298,
277,
1,
30001,
1391,
30001,
92,
20662,
198,
198,
48610,
796,
1822,
29572,
13,
28100,
1713,
46677,
3419,
198,
48610,
13,
2860,
62,
49140,
10786,
438,
18403,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
438,
260,
7501,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
438,
12985,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
438,
20979,
12,
3672,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
438,
2618,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
438,
3866,
20979,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
2673,
11537,
198,
48610,
13,
2860,
62,
49140,
10786,
433,
29660,
3256,
299,
22046,
11639,
10,
11537,
628,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419
] | 2.902913 | 206 |
from unittest import TestCase, mock
import layers
import numpy as np
import pytest
| [
6738,
555,
715,
395,
1330,
6208,
20448,
11,
15290,
198,
198,
11748,
11685,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
12972,
9288,
628
] | 3.44 | 25 |
"""Views for the D3M configuration module"""
import os
import json
import mimetypes
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render
from django.http import FileResponse
from django.http import JsonResponse, HttpResponse, Http404
from tworaven_apps.configurations.models_d3m import D3MConfiguration,\
KEY_DATASET_SCHEMA, KEY_PROBLEM_SCHEMA, D3M_FILE_ATTRIBUTES
from tworaven_apps.configurations.utils import \
(get_latest_d3m_config,
get_d3m_filepath,
get_train_data_info)
from tworaven_apps.user_workspaces.utils import get_latest_user_workspace
from tworaven_apps.utils.json_helper import json_loads, json_dumps
from tworaven_apps.utils.view_helper import \
(get_json_error,
get_json_success)
# Create your views here.
@csrf_exempt
def view_d3m_list(request):
"""List the D3m configurations in the db"""
configs = D3MConfiguration.objects.all().order_by('-is_default', 'name')
tinfo = dict(title='D3M configurations',
configs=configs)
return render(request,
'd3m_config_list.html',
tinfo)
@csrf_exempt
def view_d3m_details_page(request, d3m_config_id):
"""Show the D3m configuration on a web page"""
return HttpResponse('view_d3m_details_page: %d (to do)' % d3m_config_id)
@csrf_exempt
def view_d3m_details_json(request, d3m_config_id):
"""Return the D3m configuration as JSON"""
is_pretty = request.GET.get('pretty', False)
# Is there a default config?
d3m_config = D3MConfiguration.objects.filter(id=d3m_config_id).first()
if not d3m_config:
raise Http404('no config with id: %s' % d3m_config_id)
if is_pretty is not False: # return this as a formatted string?
config_str = '<pre>%s<pre>' % \
(json.dumps(d3m_config.to_dict(),
indent=4))
return HttpResponse(config_str)
# return as JSON!
return JsonResponse(d3m_config.to_dict())
@csrf_exempt
def view_d3m_details_json_eval_latest(request):
"""For EVAL: Return the "latest" D3m configuration as JSON.
"latest" may be most recently added or a "default"
of some kind"""
return view_d3m_details_json_latest(request,
as_eval_dict=True)
@csrf_exempt
def view_d3m_details_json_latest(request, as_eval_dict=False):
"""Return the "latest" D3m configuration as JSON.
"latest" may be most recently added or a "default"
of some kind"""
is_pretty = request.GET.get('pretty', False)
# Is there a default config?
d3m_config = get_latest_d3m_config()
if not d3m_config:
raise Http404('no configs available')
if is_pretty is not False: # return this as a formatted string?
config_str = '<pre>%s<pre>' % \
(json.dumps(d3m_config.to_dict(as_eval_dict),
indent=4))
return HttpResponse(config_str)
# return as JSON!
return JsonResponse(d3m_config.to_dict(as_eval_dict))
@csrf_exempt
def view_get_problem_schema(request, d3m_config_id=None):
"""Return the problem_schema file"""
return view_get_config_file(request, KEY_PROBLEM_SCHEMA, d3m_config_id)
@csrf_exempt
def view_get_dataset_schema(request, d3m_config_id=None):
"""Return the dataset_schema file"""
return view_get_config_file(request, KEY_DATASET_SCHEMA, d3m_config_id)
# return view_get_config_file(request, 'KEY_D', d3m_config_id)
@csrf_exempt
def view_get_config_file(request, config_key, d3m_config_id=None):
"""Get contents of a file specified in the config"""
if not config_key in D3M_FILE_ATTRIBUTES:
user_msg = (f'Config key "{config_key}" not found!'
f' (view_get_config_file)')
return JsonResponse(get_json_error(user_msg))
if d3m_config_id is None:
d3m_config = get_latest_d3m_config()
else:
d3m_config = D3MConfiguration.objects.filter(id=d3m_config_id).first()
if d3m_config is None:
user_msg = 'Config not found!'
return JsonResponse(get_json_error(user_msg))
# Make sure the config has a value.
# For example the D3MPROBLEMPATH may be blank
#
if not getattr(d3m_config, config_key):
user_msg = f'Sorry! The config does not have a "{config_key}" value!'
return JsonResponse(get_json_error(user_msg))
filepath_info = get_d3m_filepath(d3m_config, config_key)
if not filepath_info.success:
user_msg = f'{filepath_info.err_msg} (view_get_config_file)'
return JsonResponse(get_json_error(user_msg))
# Relatively small files...
# response = FileResponse(open(filepath_info.result_obj, 'rb'))
# return response
fcontent = open(filepath_info.result_obj, 'r').read()
json_info = json_loads(fcontent)
if not json_info.success:
user_msg = f'{json_info.err_msg} (view_get_config_file)'
return JsonResponse(get_json_error(user_msg))
return JsonResponse(get_json_success(\
'Success!',
data=json_info.result_obj))
@csrf_exempt
def view_get_problem_data_info(request, d3m_config_id=None):
"""Get info on train data and target files, if they exist"""
if d3m_config_id is None:
d3m_config = get_latest_d3m_config()
else:
d3m_config = D3MConfiguration.objects.filter(id=d3m_config_id).first()
if d3m_config is None:
user_msg = 'Config not found! (view_get_problem_data_info)'
return JsonResponse(get_json_error(user_msg))
is_pretty = request.GET.get('pretty', False)
train_data_info = get_train_data_info(d3m_config)
if not train_data_info.success:
resp_dict = get_json_error(train_data_info.err_msg)
else:
resp_dict = get_json_success('It worked',
data=train_data_info.result_obj)
if is_pretty is not False: # return this as a formatted string?
config_str = '<pre>%s<pre>' % \
(json.dumps(resp_dict,
indent=4))
return HttpResponse(config_str)
return JsonResponse(resp_dict)
| [
37811,
7680,
82,
329,
262,
360,
18,
44,
8398,
8265,
37811,
198,
11748,
28686,
198,
11748,
33918,
198,
11748,
17007,
2963,
12272,
198,
6738,
42625,
14208,
13,
33571,
13,
12501,
273,
2024,
13,
6359,
41871,
1330,
269,
27891,
69,
62,
42679,
198,
6738,
42625,
14208,
13,
19509,
23779,
1330,
8543,
198,
6738,
42625,
14208,
13,
4023,
1330,
9220,
31077,
198,
6738,
42625,
14208,
13,
4023,
1330,
449,
1559,
31077,
11,
367,
29281,
31077,
11,
367,
29281,
26429,
198,
6738,
665,
273,
4005,
62,
18211,
13,
11250,
20074,
13,
27530,
62,
67,
18,
76,
1330,
360,
18,
44,
38149,
11,
59,
198,
220,
220,
220,
35374,
62,
35,
1404,
1921,
2767,
62,
50,
3398,
27630,
11,
35374,
62,
4805,
9864,
2538,
44,
62,
50,
3398,
27630,
11,
360,
18,
44,
62,
25664,
62,
1404,
5446,
9865,
3843,
1546,
198,
6738,
665,
273,
4005,
62,
18211,
13,
11250,
20074,
13,
26791,
1330,
3467,
198,
220,
220,
220,
357,
1136,
62,
42861,
62,
67,
18,
76,
62,
11250,
11,
198,
220,
220,
220,
220,
651,
62,
67,
18,
76,
62,
7753,
6978,
11,
198,
220,
220,
220,
220,
651,
62,
27432,
62,
7890,
62,
10951,
8,
198,
6738,
665,
273,
4005,
62,
18211,
13,
7220,
62,
5225,
43076,
13,
26791,
1330,
651,
62,
42861,
62,
7220,
62,
5225,
10223,
198,
6738,
665,
273,
4005,
62,
18211,
13,
26791,
13,
17752,
62,
2978,
525,
1330,
33918,
62,
46030,
11,
33918,
62,
67,
8142,
198,
198,
6738,
665,
273,
4005,
62,
18211,
13,
26791,
13,
1177,
62,
2978,
525,
1330,
3467,
198,
220,
220,
220,
357,
1136,
62,
17752,
62,
18224,
11,
198,
220,
220,
220,
220,
651,
62,
17752,
62,
13138,
8,
198,
198,
2,
13610,
534,
5009,
994,
13,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
67,
18,
76,
62,
4868,
7,
25927,
2599,
198,
220,
220,
220,
37227,
8053,
262,
360,
18,
76,
25412,
287,
262,
20613,
37811,
628,
220,
220,
220,
4566,
82,
796,
360,
18,
44,
38149,
13,
48205,
13,
439,
22446,
2875,
62,
1525,
10786,
12,
271,
62,
12286,
3256,
705,
3672,
11537,
628,
220,
220,
220,
256,
10951,
796,
8633,
7,
7839,
11639,
35,
18,
44,
25412,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4566,
82,
28,
11250,
82,
8,
628,
220,
220,
220,
1441,
8543,
7,
25927,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
67,
18,
76,
62,
11250,
62,
4868,
13,
6494,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
10951,
8,
628,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
67,
18,
76,
62,
36604,
62,
7700,
7,
25927,
11,
288,
18,
76,
62,
11250,
62,
312,
2599,
198,
220,
220,
220,
37227,
15307,
262,
360,
18,
76,
8398,
319,
257,
3992,
2443,
37811,
628,
220,
220,
220,
1441,
367,
29281,
31077,
10786,
1177,
62,
67,
18,
76,
62,
36604,
62,
7700,
25,
4064,
67,
357,
1462,
466,
33047,
4064,
288,
18,
76,
62,
11250,
62,
312,
8,
198,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
67,
18,
76,
62,
36604,
62,
17752,
7,
25927,
11,
288,
18,
76,
62,
11250,
62,
312,
2599,
198,
220,
220,
220,
37227,
13615,
262,
360,
18,
76,
8398,
355,
19449,
37811,
198,
220,
220,
220,
318,
62,
37784,
796,
2581,
13,
18851,
13,
1136,
10786,
37784,
3256,
10352,
8,
628,
220,
220,
220,
1303,
1148,
612,
257,
4277,
4566,
30,
198,
220,
220,
220,
288,
18,
76,
62,
11250,
796,
360,
18,
44,
38149,
13,
48205,
13,
24455,
7,
312,
28,
67,
18,
76,
62,
11250,
62,
312,
737,
11085,
3419,
198,
220,
220,
220,
611,
407,
288,
18,
76,
62,
11250,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
367,
29281,
26429,
10786,
3919,
4566,
351,
4686,
25,
4064,
82,
6,
4064,
288,
18,
76,
62,
11250,
62,
312,
8,
628,
220,
220,
220,
611,
318,
62,
37784,
318,
407,
10352,
25,
220,
220,
1303,
1441,
428,
355,
257,
39559,
4731,
30,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
62,
2536,
796,
705,
27,
3866,
29,
4,
82,
27,
3866,
29,
6,
4064,
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,
357,
17752,
13,
67,
8142,
7,
67,
18,
76,
62,
11250,
13,
1462,
62,
11600,
22784,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33793,
28,
19,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
367,
29281,
31077,
7,
11250,
62,
2536,
8,
628,
220,
220,
220,
1303,
1441,
355,
19449,
0,
198,
220,
220,
220,
1441,
449,
1559,
31077,
7,
67,
18,
76,
62,
11250,
13,
1462,
62,
11600,
28955,
628,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
67,
18,
76,
62,
36604,
62,
17752,
62,
18206,
62,
42861,
7,
25927,
2599,
198,
220,
220,
220,
37227,
1890,
8696,
1847,
25,
8229,
262,
366,
42861,
1,
360,
18,
76,
8398,
355,
19449,
13,
198,
220,
220,
220,
366,
42861,
1,
743,
307,
749,
2904,
2087,
393,
257,
366,
12286,
1,
198,
220,
220,
220,
286,
617,
1611,
37811,
198,
220,
220,
220,
1441,
1570,
62,
67,
18,
76,
62,
36604,
62,
17752,
62,
42861,
7,
25927,
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,
355,
62,
18206,
62,
11600,
28,
17821,
8,
628,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
67,
18,
76,
62,
36604,
62,
17752,
62,
42861,
7,
25927,
11,
355,
62,
18206,
62,
11600,
28,
25101,
2599,
198,
220,
220,
220,
37227,
13615,
262,
366,
42861,
1,
360,
18,
76,
8398,
355,
19449,
13,
198,
220,
220,
220,
366,
42861,
1,
743,
307,
749,
2904,
2087,
393,
257,
366,
12286,
1,
198,
220,
220,
220,
286,
617,
1611,
37811,
198,
220,
220,
220,
318,
62,
37784,
796,
2581,
13,
18851,
13,
1136,
10786,
37784,
3256,
10352,
8,
628,
220,
220,
220,
1303,
1148,
612,
257,
4277,
4566,
30,
198,
220,
220,
220,
288,
18,
76,
62,
11250,
796,
651,
62,
42861,
62,
67,
18,
76,
62,
11250,
3419,
198,
220,
220,
220,
611,
407,
288,
18,
76,
62,
11250,
25,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
367,
29281,
26429,
10786,
3919,
4566,
82,
1695,
11537,
628,
220,
220,
220,
611,
318,
62,
37784,
318,
407,
10352,
25,
220,
220,
1303,
1441,
428,
355,
257,
39559,
4731,
30,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
62,
2536,
796,
705,
27,
3866,
29,
4,
82,
27,
3866,
29,
6,
4064,
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,
357,
17752,
13,
67,
8142,
7,
67,
18,
76,
62,
11250,
13,
1462,
62,
11600,
7,
292,
62,
18206,
62,
11600,
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,
33793,
28,
19,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
367,
29281,
31077,
7,
11250,
62,
2536,
8,
628,
220,
220,
220,
1303,
1441,
355,
19449,
0,
198,
220,
220,
220,
1441,
449,
1559,
31077,
7,
67,
18,
76,
62,
11250,
13,
1462,
62,
11600,
7,
292,
62,
18206,
62,
11600,
4008,
198,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
1136,
62,
45573,
62,
15952,
2611,
7,
25927,
11,
288,
18,
76,
62,
11250,
62,
312,
28,
14202,
2599,
198,
220,
220,
220,
37227,
13615,
262,
1917,
62,
15952,
2611,
2393,
37811,
198,
220,
220,
220,
1441,
1570,
62,
1136,
62,
11250,
62,
7753,
7,
25927,
11,
35374,
62,
4805,
9864,
2538,
44,
62,
50,
3398,
27630,
11,
288,
18,
76,
62,
11250,
62,
312,
8,
198,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
1136,
62,
19608,
292,
316,
62,
15952,
2611,
7,
25927,
11,
288,
18,
76,
62,
11250,
62,
312,
28,
14202,
2599,
198,
220,
220,
220,
37227,
13615,
262,
27039,
62,
15952,
2611,
2393,
37811,
198,
220,
220,
220,
1441,
1570,
62,
1136,
62,
11250,
62,
7753,
7,
25927,
11,
35374,
62,
35,
1404,
1921,
2767,
62,
50,
3398,
27630,
11,
288,
18,
76,
62,
11250,
62,
312,
8,
628,
220,
220,
220,
1303,
1441,
1570,
62,
1136,
62,
11250,
62,
7753,
7,
25927,
11,
705,
20373,
62,
35,
3256,
288,
18,
76,
62,
11250,
62,
312,
8,
198,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
1136,
62,
11250,
62,
7753,
7,
25927,
11,
4566,
62,
2539,
11,
288,
18,
76,
62,
11250,
62,
312,
28,
14202,
2599,
198,
220,
220,
220,
37227,
3855,
10154,
286,
257,
2393,
7368,
287,
262,
4566,
37811,
198,
220,
220,
220,
611,
407,
4566,
62,
2539,
287,
360,
18,
44,
62,
25664,
62,
1404,
5446,
9865,
3843,
1546,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
19662,
796,
357,
69,
6,
16934,
1994,
45144,
11250,
62,
2539,
36786,
407,
1043,
13679,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
6,
357,
1177,
62,
1136,
62,
11250,
62,
7753,
8,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
18224,
7,
7220,
62,
19662,
4008,
628,
220,
220,
220,
611,
288,
18,
76,
62,
11250,
62,
312,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
18,
76,
62,
11250,
796,
651,
62,
42861,
62,
67,
18,
76,
62,
11250,
3419,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
18,
76,
62,
11250,
796,
360,
18,
44,
38149,
13,
48205,
13,
24455,
7,
312,
28,
67,
18,
76,
62,
11250,
62,
312,
737,
11085,
3419,
628,
220,
220,
220,
611,
288,
18,
76,
62,
11250,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
19662,
796,
705,
16934,
407,
1043,
13679,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
18224,
7,
7220,
62,
19662,
4008,
628,
220,
220,
220,
1303,
6889,
1654,
262,
4566,
468,
257,
1988,
13,
198,
220,
220,
220,
1303,
1114,
1672,
262,
360,
18,
44,
4805,
9864,
2538,
7378,
12599,
743,
307,
9178,
198,
220,
220,
220,
1303,
198,
220,
220,
220,
611,
407,
651,
35226,
7,
67,
18,
76,
62,
11250,
11,
4566,
62,
2539,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
19662,
796,
277,
6,
14385,
0,
383,
4566,
857,
407,
423,
257,
45144,
11250,
62,
2539,
36786,
1988,
13679,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
18224,
7,
7220,
62,
19662,
4008,
628,
220,
220,
220,
2393,
6978,
62,
10951,
796,
651,
62,
67,
18,
76,
62,
7753,
6978,
7,
67,
18,
76,
62,
11250,
11,
4566,
62,
2539,
8,
198,
220,
220,
220,
611,
407,
2393,
6978,
62,
10951,
13,
13138,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
19662,
796,
277,
6,
90,
7753,
6978,
62,
10951,
13,
8056,
62,
19662,
92,
357,
1177,
62,
1136,
62,
11250,
62,
7753,
33047,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
18224,
7,
7220,
62,
19662,
4008,
628,
220,
220,
220,
1303,
4718,
9404,
1402,
3696,
986,
198,
220,
220,
220,
1303,
2882,
796,
9220,
31077,
7,
9654,
7,
7753,
6978,
62,
10951,
13,
20274,
62,
26801,
11,
705,
26145,
6,
4008,
198,
220,
220,
220,
1303,
1441,
2882,
628,
220,
220,
220,
277,
11299,
796,
1280,
7,
7753,
6978,
62,
10951,
13,
20274,
62,
26801,
11,
705,
81,
27691,
961,
3419,
628,
220,
220,
220,
33918,
62,
10951,
796,
33918,
62,
46030,
7,
69,
11299,
8,
198,
220,
220,
220,
611,
407,
33918,
62,
10951,
13,
13138,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
19662,
796,
277,
6,
90,
17752,
62,
10951,
13,
8056,
62,
19662,
92,
357,
1177,
62,
1136,
62,
11250,
62,
7753,
33047,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
18224,
7,
7220,
62,
19662,
4008,
628,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
13138,
38016,
198,
220,
220,
220,
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,
33244,
0,
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,
1366,
28,
17752,
62,
10951,
13,
20274,
62,
26801,
4008,
628,
198,
31,
6359,
41871,
62,
42679,
198,
4299,
1570,
62,
1136,
62,
45573,
62,
7890,
62,
10951,
7,
25927,
11,
288,
18,
76,
62,
11250,
62,
312,
28,
14202,
2599,
198,
220,
220,
220,
37227,
3855,
7508,
319,
4512,
1366,
290,
2496,
3696,
11,
611,
484,
2152,
37811,
198,
220,
220,
220,
611,
288,
18,
76,
62,
11250,
62,
312,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
18,
76,
62,
11250,
796,
651,
62,
42861,
62,
67,
18,
76,
62,
11250,
3419,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
288,
18,
76,
62,
11250,
796,
360,
18,
44,
38149,
13,
48205,
13,
24455,
7,
312,
28,
67,
18,
76,
62,
11250,
62,
312,
737,
11085,
3419,
628,
220,
220,
220,
611,
288,
18,
76,
62,
11250,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
19662,
796,
705,
16934,
407,
1043,
0,
357,
1177,
62,
1136,
62,
45573,
62,
7890,
62,
10951,
33047,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
449,
1559,
31077,
7,
1136,
62,
17752,
62,
18224,
7,
7220,
62,
19662,
4008,
628,
220,
220,
220,
318,
62,
37784,
796,
2581,
13,
18851,
13,
1136,
10786,
37784,
3256,
10352,
8,
628,
220,
220,
220,
4512,
62,
7890,
62,
10951,
796,
651,
62,
27432,
62,
7890,
62,
10951,
7,
67,
18,
76,
62,
11250,
8,
628,
220,
220,
220,
611,
407,
4512,
62,
7890,
62,
10951,
13,
13138,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1217,
62,
11600,
796,
651,
62,
17752,
62,
18224,
7,
27432,
62,
7890,
62,
10951,
13,
8056,
62,
19662,
8,
628,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1217,
62,
11600,
796,
651,
62,
17752,
62,
13138,
10786,
1026,
3111,
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,
220,
220,
220,
220,
220,
1366,
28,
27432,
62,
7890,
62,
10951,
13,
20274,
62,
26801,
8,
628,
220,
220,
220,
611,
318,
62,
37784,
318,
407,
10352,
25,
220,
220,
1303,
1441,
428,
355,
257,
39559,
4731,
30,
198,
220,
220,
220,
220,
220,
220,
220,
4566,
62,
2536,
796,
705,
27,
3866,
29,
4,
82,
27,
3866,
29,
6,
4064,
3467,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
17752,
13,
67,
8142,
7,
4363,
62,
11600,
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,
33793,
28,
19,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
367,
29281,
31077,
7,
11250,
62,
2536,
8,
628,
220,
220,
220,
1441,
449,
1559,
31077,
7,
4363,
62,
11600,
8,
198
] | 2.28703 | 2,714 |
# -*- coding: utf-8 -*-
#
# michael a.g. aรฏvรกzis
# orthologue
# (c) 1998-2018 all rights reserved
#
from math import pi as ฯ
from .SI import radian
degree = ฯ/180 * radian
arcminute = degree / 60
arcsecond = arcminute / 60
deg = degree
rad = radian
# end of file
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
198,
2,
285,
40302,
257,
13,
70,
13,
257,
26884,
85,
6557,
89,
271,
198,
2,
29617,
39795,
198,
2,
357,
66,
8,
7795,
12,
7908,
477,
2489,
10395,
198,
2,
628,
198,
6738,
10688,
1330,
31028,
355,
18074,
222,
198,
6738,
764,
11584,
1330,
2511,
666,
198,
198,
16863,
796,
18074,
222,
14,
15259,
1635,
2511,
666,
198,
5605,
11374,
796,
4922,
1220,
3126,
198,
5605,
12227,
796,
10389,
11374,
1220,
3126,
198,
198,
13500,
796,
4922,
198,
6335,
796,
2511,
666,
628,
198,
2,
886,
286,
2393,
198
] | 2.561905 | 105 |
test_cases = int(input())
for test in range(1,test_cases+1):
if test%2==1:
green, purple = input().split()
green = int(green)
purple = int(purple)
participants = int(input())
cost = 0
for participant in range(0,participants):
m, n = map(int,input().split())
if m==1 and n==1 :
cost = cost + green + purple
elif n==1 and m==0 :
cost = cost + purple
elif m==1 and n==0:
cost = cost + green
else:
cost = cost + 0
print(cost)
else:
green, purple = input().split()
green = int(green)
purple = int(purple)
participants = int(input())
cost = 0
for participant in range(0,participants):
m, n = map(int,input().split())
if m==1 and n==1 :
cost = cost + green + purple
elif n==1 and m==0 :
cost = cost + green
elif m==1 and n==0:
cost = cost + purple
else:
cost = cost + 0
print(cost)
#ideal code
# Write your code here
'''for i in range(int(input())):
cost_of_green,cost_of_blue = sorted(list(map(int,input().strip().split())))
m = 0
n = 0
for p in range(int(input())):
a,b = list(map(int,input().strip().split()))
if (a==1 and b==1) :
m += 1
n += 1
elif a==1 and b==0:
m += 1
elif b == 1 and a==0:
n +=1
if m > n or m == n:
print(m*cost_of_green + n*cost_of_blue)
elif m < n :
print(n*cost_of_green + m*cost_of_blue)''' | [
9288,
62,
33964,
796,
493,
7,
15414,
28955,
201,
198,
1640,
1332,
287,
2837,
7,
16,
11,
9288,
62,
33964,
10,
16,
2599,
201,
198,
220,
220,
220,
611,
1332,
4,
17,
855,
16,
25,
220,
220,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4077,
11,
14032,
796,
5128,
22446,
35312,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4077,
796,
493,
7,
14809,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14032,
796,
493,
7,
14225,
1154,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6809,
796,
493,
7,
15414,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
657,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
18399,
287,
2837,
7,
15,
11,
48013,
1187,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
11,
299,
796,
3975,
7,
600,
11,
15414,
22446,
35312,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
285,
855,
16,
290,
299,
855,
16,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
4077,
1343,
14032,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
299,
855,
16,
290,
285,
855,
15,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
14032,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
285,
855,
16,
290,
299,
855,
15,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
4077,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
657,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
15805,
8,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4077,
11,
14032,
796,
5128,
22446,
35312,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4077,
796,
493,
7,
14809,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14032,
796,
493,
7,
14225,
1154,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
6809,
796,
493,
7,
15414,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
657,
201,
198,
220,
220,
220,
220,
220,
220,
220,
329,
18399,
287,
2837,
7,
15,
11,
48013,
1187,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
11,
299,
796,
3975,
7,
600,
11,
15414,
22446,
35312,
28955,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
285,
855,
16,
290,
299,
855,
16,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
4077,
1343,
14032,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
299,
855,
16,
290,
285,
855,
15,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
4077,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
285,
855,
16,
290,
299,
855,
15,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
14032,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1575,
796,
1575,
1343,
657,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
15805,
8,
201,
198,
201,
198,
2,
485,
282,
2438,
201,
198,
2,
19430,
534,
2438,
994,
201,
198,
7061,
6,
1640,
1312,
287,
2837,
7,
600,
7,
15414,
28955,
2599,
201,
198,
220,
220,
220,
1575,
62,
1659,
62,
14809,
11,
15805,
62,
1659,
62,
17585,
796,
23243,
7,
4868,
7,
8899,
7,
600,
11,
15414,
22446,
36311,
22446,
35312,
3419,
22305,
201,
198,
220,
220,
220,
285,
796,
657,
201,
198,
220,
220,
220,
299,
796,
657,
201,
198,
220,
220,
220,
329,
279,
287,
2837,
7,
600,
7,
15414,
28955,
2599,
201,
198,
220,
201,
198,
220,
220,
220,
220,
220,
220,
220,
257,
11,
65,
796,
1351,
7,
8899,
7,
600,
11,
15414,
22446,
36311,
22446,
35312,
3419,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
357,
64,
855,
16,
290,
275,
855,
16,
8,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
257,
855,
16,
290,
275,
855,
15,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
275,
6624,
352,
290,
257,
855,
15,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
15853,
16,
201,
198,
220,
220,
220,
611,
285,
1875,
299,
393,
285,
6624,
299,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
76,
9,
15805,
62,
1659,
62,
14809,
1343,
299,
9,
15805,
62,
1659,
62,
17585,
8,
201,
198,
220,
220,
220,
1288,
361,
285,
1279,
299,
1058,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
77,
9,
15805,
62,
1659,
62,
14809,
1343,
285,
9,
15805,
62,
1659,
62,
17585,
8,
7061,
6
] | 1.798774 | 979 |
import numpy as np
_loss_functions = {}
@_register_name("relu")
@_register_name("relu_margin")
@_register_name("margin")
@_register_name("margin_sq")
| [
11748,
299,
32152,
355,
45941,
198,
198,
62,
22462,
62,
12543,
2733,
796,
23884,
628,
198,
31,
62,
30238,
62,
3672,
7203,
260,
2290,
4943,
198,
198,
31,
62,
30238,
62,
3672,
7203,
260,
2290,
62,
36153,
4943,
198,
198,
31,
62,
30238,
62,
3672,
7203,
36153,
4943,
198,
198,
31,
62,
30238,
62,
3672,
7203,
36153,
62,
31166,
4943,
628
] | 2.57377 | 61 |
import tomviz.operators
import time
| [
11748,
16667,
85,
528,
13,
3575,
2024,
198,
11748,
640,
628
] | 3.363636 | 11 |
from __future__ import absolute_import
from __future__ import unicode_literals
import doctest
from collections import namedtuple
from testil import eq
from corehq.util import itertools
from corehq.util.itertools import zip_with_gaps
def test_zip_with_gaps_key_funcs():
"""
Specifying a keyfunc should use it to match items
"""
WithFirstName = namedtuple('WithFirstName', 'username first_name')
WithLastName = namedtuple('WithLastName', 'username last_name')
devs = [
('Biyeun', 'Buczyk', 'biyeun'),
('Cory', 'Zue', 'czue'),
('Danny', 'Roberts', 'dannyroberts'),
('Jenny', 'Schweers', 'orangejenny'),
('Nick', 'Pellegrino', 'nickpell'),
('Simon', 'Kelly', 'snopoke'),
]
some_first_names = [WithFirstName(u, f) for i, (f, l, u) in enumerate(devs) if i < 4]
all_last_names = [WithLastName(u, l) for f, l, u in devs]
zipped = zip_with_gaps(
sorted(all_last_names, key=get_username),
sorted(some_first_names, key=get_username),
all_items_key=get_username,
some_items_key=get_username
)
names = [(f.first_name, l.last_name) for l, f in zipped]
eq(names, [
('Biyeun', 'Buczyk'),
('Cory', 'Zue'),
('Danny', 'Roberts'),
('Jenny', 'Schweers'),
])
def test_zip_with_gaps_missing_from_all():
"""
Items missing from `all_items` will be missing from the result
"""
all_items = [1, 2, 2, 3, 3, 3, 5, 5, 5, 5, 5]
some_items = [3, 3, 3, 3, 3]
zipped = zip_with_gaps(all_items, some_items)
eq(list(zipped), [(3, 3), (3, 3), (3, 3)])
def test_zip_with_gaps_not_in_all():
"""
Items not found in `all_items` will skip all remaining items.
"""
all_items = [1, 2, 4]
some_items = [1, 3, 4]
zipped = zip_with_gaps(all_items, some_items)
eq(list(zipped), [(1, 1)])
def test_zip_with_gaps_unsorted():
"""
Unsorted `some_items` will return the first item from `all_items`
that matches and drop the skipped items.
"""
all_items = [1, 2, 3, 4, 5, 6, 7]
some_items = [6, 7, 3, 4]
zipped = zip_with_gaps(all_items, some_items)
eq(list(zipped), [(6, 6), (7, 7)])
| [
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
198,
6738,
11593,
37443,
834,
1330,
28000,
1098,
62,
17201,
874,
198,
198,
11748,
10412,
395,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
198,
6738,
1332,
346,
1330,
37430,
198,
198,
6738,
4755,
71,
80,
13,
22602,
1330,
340,
861,
10141,
198,
6738,
4755,
71,
80,
13,
22602,
13,
270,
861,
10141,
1330,
19974,
62,
4480,
62,
70,
1686,
628,
198,
198,
4299,
1332,
62,
13344,
62,
4480,
62,
70,
1686,
62,
2539,
62,
12543,
6359,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
18291,
4035,
257,
1994,
20786,
815,
779,
340,
284,
2872,
3709,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
2080,
5962,
5376,
796,
3706,
83,
29291,
10786,
3152,
5962,
5376,
3256,
705,
29460,
717,
62,
3672,
11537,
198,
220,
220,
220,
2080,
5956,
5376,
796,
3706,
83,
29291,
10786,
3152,
5956,
5376,
3256,
705,
29460,
938,
62,
3672,
11537,
628,
220,
220,
220,
41470,
796,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
23286,
5948,
403,
3256,
705,
33,
1229,
46355,
3256,
705,
8482,
5948,
403,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
34,
652,
3256,
705,
57,
518,
3256,
705,
26691,
518,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
45478,
3256,
705,
45487,
3256,
705,
67,
7737,
305,
527,
912,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
41,
11870,
3256,
705,
14874,
732,
364,
3256,
705,
43745,
73,
11870,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
23609,
3256,
705,
47,
417,
1455,
81,
2879,
3256,
705,
17172,
23506,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
35475,
3256,
705,
34831,
3256,
705,
16184,
404,
2088,
33809,
198,
220,
220,
220,
2361,
198,
220,
220,
220,
617,
62,
11085,
62,
14933,
796,
685,
3152,
5962,
5376,
7,
84,
11,
277,
8,
329,
1312,
11,
357,
69,
11,
300,
11,
334,
8,
287,
27056,
378,
7,
7959,
82,
8,
611,
1312,
1279,
604,
60,
198,
220,
220,
220,
477,
62,
12957,
62,
14933,
796,
685,
3152,
5956,
5376,
7,
84,
11,
300,
8,
329,
277,
11,
300,
11,
334,
287,
41470,
60,
628,
220,
220,
220,
1976,
3949,
796,
19974,
62,
4480,
62,
70,
1686,
7,
198,
220,
220,
220,
220,
220,
220,
220,
23243,
7,
439,
62,
12957,
62,
14933,
11,
1994,
28,
1136,
62,
29460,
828,
198,
220,
220,
220,
220,
220,
220,
220,
23243,
7,
11246,
62,
11085,
62,
14933,
11,
1994,
28,
1136,
62,
29460,
828,
198,
220,
220,
220,
220,
220,
220,
220,
477,
62,
23814,
62,
2539,
28,
1136,
62,
29460,
11,
198,
220,
220,
220,
220,
220,
220,
220,
617,
62,
23814,
62,
2539,
28,
1136,
62,
29460,
198,
220,
220,
220,
1267,
198,
220,
220,
220,
3891,
796,
47527,
69,
13,
11085,
62,
3672,
11,
300,
13,
12957,
62,
3672,
8,
329,
300,
11,
277,
287,
1976,
3949,
60,
198,
220,
220,
220,
37430,
7,
14933,
11,
685,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
23286,
5948,
403,
3256,
705,
33,
1229,
46355,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
34,
652,
3256,
705,
57,
518,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
45478,
3256,
705,
45487,
33809,
198,
220,
220,
220,
220,
220,
220,
220,
19203,
41,
11870,
3256,
705,
14874,
732,
364,
33809,
198,
220,
220,
220,
33761,
628,
198,
4299,
1332,
62,
13344,
62,
4480,
62,
70,
1686,
62,
45688,
62,
6738,
62,
439,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
17230,
4814,
422,
4600,
439,
62,
23814,
63,
481,
307,
4814,
422,
262,
1255,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
477,
62,
23814,
796,
685,
16,
11,
362,
11,
362,
11,
513,
11,
513,
11,
513,
11,
642,
11,
642,
11,
642,
11,
642,
11,
642,
60,
198,
220,
220,
220,
617,
62,
23814,
796,
685,
18,
11,
513,
11,
513,
11,
513,
11,
513,
60,
198,
220,
220,
220,
1976,
3949,
796,
19974,
62,
4480,
62,
70,
1686,
7,
439,
62,
23814,
11,
617,
62,
23814,
8,
198,
220,
220,
220,
37430,
7,
4868,
7,
89,
3949,
828,
47527,
18,
11,
513,
828,
357,
18,
11,
513,
828,
357,
18,
11,
513,
8,
12962,
628,
198,
4299,
1332,
62,
13344,
62,
4480,
62,
70,
1686,
62,
1662,
62,
259,
62,
439,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
17230,
407,
1043,
287,
4600,
439,
62,
23814,
63,
481,
14267,
477,
5637,
3709,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
477,
62,
23814,
796,
685,
16,
11,
362,
11,
604,
60,
198,
220,
220,
220,
617,
62,
23814,
796,
685,
16,
11,
513,
11,
604,
60,
198,
220,
220,
220,
1976,
3949,
796,
19974,
62,
4480,
62,
70,
1686,
7,
439,
62,
23814,
11,
617,
62,
23814,
8,
198,
220,
220,
220,
37430,
7,
4868,
7,
89,
3949,
828,
47527,
16,
11,
352,
8,
12962,
628,
198,
4299,
1332,
62,
13344,
62,
4480,
62,
70,
1686,
62,
13271,
9741,
33529,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
791,
82,
9741,
4600,
11246,
62,
23814,
63,
481,
1441,
262,
717,
2378,
422,
4600,
439,
62,
23814,
63,
198,
220,
220,
220,
326,
7466,
290,
4268,
262,
26684,
3709,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
477,
62,
23814,
796,
685,
16,
11,
362,
11,
513,
11,
604,
11,
642,
11,
718,
11,
767,
60,
198,
220,
220,
220,
617,
62,
23814,
796,
685,
21,
11,
767,
11,
513,
11,
604,
60,
198,
220,
220,
220,
1976,
3949,
796,
19974,
62,
4480,
62,
70,
1686,
7,
439,
62,
23814,
11,
617,
62,
23814,
8,
198,
220,
220,
220,
37430,
7,
4868,
7,
89,
3949,
828,
47527,
21,
11,
718,
828,
357,
22,
11,
767,
8,
12962,
198
] | 2.262076 | 973 |
#!/usr/bin/env python
# Usage: python ingestion.py input_dir output_dir ingestion_program_dir submission_program_dir
# data result ingestion code of participants
# AS A PARTICIPANT, DO NOT MODIFY THIS CODE.
#
# This is the "ingestion program" written by the organizers.
# This program also runs on the challenge platform to test your code.
#
# The input directory input_dir (e.g. AutoDL_sample_data/) contains one dataset
# folder (e.g. adult.data/) with the training set (train/) and test set (test/),
# each containing an some tfrecords data with a `metadata.textproto` file of
# metadata on the dataset. So one AutoDL dataset will look like
#
# adult.data
# โโโ test
# โย ย โโโ metadata.textproto
# โย ย โโโ sample-adult-test.tfrecord
# โโโ train
# โโโ metadata.textproto
# โโโ sample-adult-train.tfrecord
#
# The output directory output_dir (e.g. AutoDL_sample_result_submission/)
# will receive all predictions made during the whole train/predict process
# (thus this directory is updated when a new prediction is made):
# adult.predict_0
# adult.predict_1
# adult.predict_2
# ...
#
# The code directory submission_program_dir (e.g. AutoDL_sample_code_submission/)
# should contain your code submission model.py (and possibly other functions
# it depends upon).
#
# We implemented several classes:
# 1) DATA LOADING:
# ------------
# dataset.py
# dataset.AutoDLMetadata: Read metadata in metadata.textproto
# dataset.AutoDLDataset: Read data and give tf.data.Dataset
# 2) LEARNING MACHINE:
# ----------------
# model.py
# model.Model.train
# model.Model.test
#
# ALL INFORMATION, SOFTWARE, DOCUMENTATION, AND DATA ARE PROVIDED "AS-IS".
# UNIVERSITE PARIS SUD, CHALEARN, AND/OR OTHER ORGANIZERS OR CODE AUTHORS DISCLAIM
# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR PURPOSE, AND THE
# WARRANTY OF NON-INFRIGEMENT OF ANY THIRD PARTY'S INTELLECTUAL PROPERTY RIGHTS.
# IN NO EVENT SHALL UNIVERSITE PARIS SUD AND/OR OTHER ORGANIZERS BE LIABLE FOR ANY SPECIAL,
# INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF SOFTWARE, DOCUMENTS, MATERIALS,
# PUBLICATIONS, OR INFORMATION MADE AVAILABLE FOR THE CHALLENGE.
#
# Main contributors: Isabelle Guyon and Zhengying Liu
# =========================== BEGIN OPTIONS ==============================
# Verbose mode:
##############
# Recommended to keep verbose = True: shows various progression messages
verbose = True # outputs messages to stdout and stderr for debug purposes
# Debug level:
##############
# 0: run the code normally, using the time budget of the tasks
# 1: run the code normally, but limits the time to max_time
# 2: run everything, but do not train, generate random outputs in max_time
# 3: stop before the loop on datasets
# 4: just list the directories and program version
debug_mode = 0
# Time budget
#############
# Maximum time of training in seconds PER DATASET (there may be several datasets).
# The code should keep track of time spent and NOT exceed the time limit
# in the dataset "info" file, stored in D.info['time_budget'], see code below.
# If debug >=1, you can decrease the maximum time (in sec) with this variable:
max_time = 300
# Maximum number of cycles, number of samples, and estimators
#############################################################
# Your training algorithm may be fast, so you may want to limit anyways the
# number of points on your learning curve (this is on a log scale, so each
# point uses twice as many time than the previous one.)
# The original code was modified to do only a small "time probing" followed
# by one single cycle. We can now also give a maximum number of estimators
# (base learners).
max_cycle = 1
max_estimators = 1000
max_samples = float('Inf')
# Redirect stardant output to live results page (detailed_results.html)
# to have live output for debugging
REDIRECT_STDOUT = False
# I/O defaults
##############
# If true, the previous output directory is not overwritten, it changes name
save_previous_results = False
# Use default location for the input and output data:
# If no arguments to run.py are provided, this is where the data will be found
# and the results written to. Change the root_dir to your local directory.
import os
from os import getcwd as pwd
from os.path import join
import shutil # for deleting a whole directory
from functools import partial
import glob
# Default I/O directories:
# root_dir is the parent directory of the folder "AutoDL_ingestion_program"
root_dir = os.path.abspath(os.path.join(_HERE(), os.pardir))
default_input_dir = join(root_dir, "AutoDL_sample_data")
default_output_dir = join(root_dir, "AutoDL_sample_result_submission")
default_program_dir = join(root_dir, "AutoDL_ingestion_program")
default_submission_dir = join(root_dir, "AutoDL_sample_code_submission")
# =============================================================================
# =========================== END USER OPTIONS ================================
# =============================================================================
# Version of the sample code
version = 1
# General purpose functions
import time
import numpy as np
overall_start = time.time() # <== Mark starting time
import os
import sys
from sys import argv, path
import datetime
the_date = datetime.datetime.now().strftime("%y-%m-%d %H:%M:%S")
def print_log(*content):
"""Logging function. (could've also used `import logging`.)"""
if verbose:
now = datetime.datetime.now().strftime("%y-%m-%d %H:%M:%S")
print("INGESTION INFO: " + str(now)+ " ", end='')
print(*content)
def clean_last_output(output_dir):
"""Clean existing output_dir of possible last execution.
This includes directories such as:
AutoDL_sample_result_submission/
AutoDL_scoring_output/
checkpoints_adult/
/tmp/checkpoints_adult/
...
Using this function, the user doesn't need to worry about the generated
folders of last execution.
"""
if os.path.isdir(output_dir):
if verbose:
print_log("Cleaning existing output_dir: {}".format(output_dir))
shutil.rmtree(output_dir)
model_dir = os.path.join(os.path.dirname(os.path.realpath(model.__file__)),
os.pardir)
for parent_dir in ['/tmp/', os.path.join(output_dir, os.pardir), model_dir]:
# Clean existing checkpoints
checkpoints_glob =\
os.path.abspath(os.path.join(parent_dir, 'checkpoints*'))
checkpoints_dirs = glob.glob(checkpoints_glob)
for checkpoints_dir in checkpoints_dirs:
if verbose:
print_log("Cleaning existing checkpoints_dir: {}"\
.format(checkpoints_dir))
shutil.rmtree(checkpoints_dir)
def get_time_budget(autodl_dataset):
"""Time budget for a given AutoDLDataset."""
# TODO: decision to make on time budget.
# Now it's 2 hours for any dataset (to be discussed).
return 7200
# =========================== BEGIN PROGRAM ================================
if __name__=="__main__" and debug_mode<4:
#### Check whether everything went well (no time exceeded)
execution_success = True
#### INPUT/OUTPUT: Get input and output directory names
if len(argv)==1: # Use the default input and output directories if no arguments are provided
input_dir = default_input_dir
output_dir = default_output_dir
program_dir= default_program_dir
submission_dir= default_submission_dir
score_dir = join(root_dir, "AutoDL_scoring_output")
elif len(argv)==2: # the case for indicating special input_dir
input_dir = argv[1]
output_dir = default_output_dir
program_dir= default_program_dir
submission_dir= default_submission_dir
score_dir = join(root_dir, "AutoDL_scoring_output")
elif len(argv)==3: # the case for indicating special input_dir and submission_dir. The case for run_local_test.py
input_dir = argv[1]
output_dir = default_output_dir
program_dir= default_program_dir
submission_dir= argv[2]
score_dir = join(root_dir, "AutoDL_scoring_output")
else: # the case on CodaLab platform
input_dir = os.path.abspath(os.path.join(argv[1], '../input_data'))
output_dir = os.path.abspath(os.path.join(argv[1], 'res'))
program_dir = os.path.abspath(argv[3])
submission_dir = os.path.abspath(os.path.join(argv[4], '../submission'))
score_dir = os.path.abspath(os.path.join(argv[4], '../output'))
# if verbose: # For debugging
# print_log("sys.argv = ", sys.argv)
# print_log("Using input_dir: " + input_dir)
# print_log("Using output_dir: " + output_dir)
# print_log("Using program_dir: " + program_dir)
# print_log("Using submission_dir: " + submission_dir)
# Redirect standard output to have live debugging info (esp. on CodaLab)
if REDIRECT_STDOUT:
sys.stdout = open(os.path.join(score_dir, 'detailed_results.html'), 'a')
print = partial(print, flush=True)
# Our libraries
path.append(program_dir)
path.append(submission_dir)
#IG: to allow submitting the starting kit as sample submission
path.append(submission_dir + '/AutoDL_sample_code_submission')
import data_io
from data_io import vprint
import model # participants' model.py
from model import Model
from dataset import AutoDLDataset # THE class of AutoDL datasets
# Clear potentiablly results of previous execution (for local run)
clean_last_output(output_dir)
if debug_mode >= 4: # Show library version and directory structure
data_io.show_dir(".")
# Move old results and create a new output directory (useful if you run locally)
if save_previous_results:
data_io.mvdir(output_dir, output_dir+'_'+the_date)
data_io.mkdir(output_dir)
# Create start file to tell scoring program that submission has begin
start_filename = 'start.txt'
start_filepath = os.path.join(output_dir, start_filename)
with open(start_filepath, 'w') as f:
f.write('Started!')
#### INVENTORY DATA (and sort dataset names alphabetically)
datanames = data_io.inventory_data(input_dir)
#### Delete zip files and metadata file
datanames = [x for x in datanames if x.endswith('.data')]
#### DEBUG MODE: Show dataset list and STOP
if debug_mode>=3:
data_io.show_version()
data_io.show_io(input_dir, output_dir)
print_log('****** Ingestion program version ' + str(version) + ' ******\n\n' + '========== DATASETS ==========\n')
data_io.write_list(datanames)
datanames = [] # Do not proceed with learning and testing
#### MAIN LOOP OVER DATASETS:
overall_time_budget = 0
time_left_over = 0
# Loop over datasets (if several)
# For AutoDL challenge, there is only 1 dataset for each track, so this loop
# can actually be ignored. Here basename is e.g. 'adult.data'
for i, basename in enumerate(datanames):
print_log("========== Ingestion program version " + str(version) + " ==========")
print_log("************************************************")
print_log("******** Processing dataset " + basename[:-5].capitalize() + " ********")
print_log("************************************************")
# ======== Learning on a time budget:
# Keep track of time not to exceed your time budget. Time spent to inventory data neglected.
start = time.time()
# ======== Creating a data object with data, informations about it
print_log("Reading training set and test set...")
##### Begin creating training set and test set #####
D_train = AutoDLDataset(os.path.join(input_dir, basename, "train"))
D_test = AutoDLDataset(os.path.join(input_dir, basename, "test"))
##### End creating training set and test set #####
# ======== Keep track of time
if debug_mode<1:
time_budget = get_time_budget(D_train) # <== HERE IS THE TIME BUDGET!
else:
time_budget = max_time
# ========= Creating a model
print_log("Creating model...")
##### Begin creating model #####
M = Model(D_train.get_metadata()) # The metadata of D_train and D_test only differ in sample_count
###### End creating model ######
# Keeping track of how many predictions are made
prediction_order_number = 0
# Start the CORE PART: train/predict process
start = time.time()
while(True):
remaining_time_budget = start + time_budget - time.time()
print_log("Training the model...")
# Train the model
M.train(D_train.get_dataset(),
remaining_time_budget=remaining_time_budget)
remaining_time_budget = start + time_budget - time.time()
# Make predictions using the trained model
Y_test = M.test(D_test.get_dataset(),
remaining_time_budget=remaining_time_budget)
if Y_test is None: # Stop train/predict process if Y_test is None
break
# Prediction files: adult.predict_0, adult.predict_1, ...
filename_test = basename[:-5] + '.predict_' +\
str(prediction_order_number)
# Write predictions to output_dir
data_io.write(os.path.join(output_dir,filename_test), Y_test)
prediction_order_number += 1
print_log("[+] Prediction success, time spent so far %5.2f sec" % (time.time() - start))
remaining_time_budget = start + time_budget - time.time()
print_log( "[+] Time left %5.2f sec" % remaining_time_budget)
if remaining_time_budget<=0:
break
# Finishing ingestion program
overall_time_spent = time.time() - overall_start
# Delete start file to clean folder
if os.path.exists(start_filepath):
os.remove(start_filepath)
# Write overall_time_spent to a duration.txt file
duration_filename = 'duration.txt'
with open(os.path.join(output_dir, duration_filename), 'w') as f:
f.write(str(overall_time_spent))
if verbose:
print_log("Successfully write duration to {}.".format(duration_filename))
if execution_success:
print_log("[+] Done")
print_log("[+] Overall time spent %5.2f sec " % overall_time_spent)
else:
print_log("[-] Done, but some tasks aborted because time limit exceeded")
print_log("[-] Overall time spent %5.2f sec " % overall_time_spent)
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
201,
198,
201,
198,
2,
29566,
25,
21015,
38382,
13,
9078,
5128,
62,
15908,
5072,
62,
15908,
38382,
62,
23065,
62,
15908,
14498,
62,
23065,
62,
15908,
201,
198,
2,
220,
220,
220,
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,
220,
220,
220,
220,
220,
1255,
220,
220,
220,
220,
38382,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2438,
286,
6809,
201,
198,
201,
198,
2,
7054,
317,
16652,
2149,
4061,
8643,
11,
8410,
5626,
19164,
5064,
56,
12680,
42714,
13,
201,
198,
2,
201,
198,
2,
770,
318,
262,
366,
278,
395,
295,
1430,
1,
3194,
416,
262,
19043,
13,
201,
198,
2,
770,
1430,
635,
4539,
319,
262,
4427,
3859,
284,
1332,
534,
2438,
13,
201,
198,
2,
201,
198,
2,
383,
5128,
8619,
5128,
62,
15908,
357,
68,
13,
70,
13,
11160,
19260,
62,
39873,
62,
7890,
34729,
4909,
530,
27039,
201,
198,
2,
9483,
357,
68,
13,
70,
13,
4044,
13,
7890,
34729,
351,
262,
3047,
900,
357,
27432,
34729,
220,
290,
1332,
900,
357,
9288,
14,
828,
201,
198,
2,
1123,
7268,
281,
617,
48700,
8344,
3669,
1366,
351,
257,
4600,
38993,
13,
5239,
1676,
1462,
63,
2393,
286,
201,
198,
2,
20150,
319,
262,
27039,
13,
1406,
530,
11160,
19260,
27039,
481,
804,
588,
201,
198,
2,
201,
198,
2,
220,
220,
4044,
13,
7890,
201,
198,
2,
220,
220,
35306,
1332,
201,
198,
2,
220,
220,
19421,
4603,
35306,
20150,
13,
5239,
1676,
1462,
201,
198,
2,
220,
220,
19421,
4603,
13305,
242,
8418,
6291,
12,
49922,
12,
9288,
13,
27110,
22105,
201,
198,
2,
220,
220,
13305,
242,
8418,
4512,
201,
198,
2,
220,
220,
220,
220,
220,
220,
35306,
20150,
13,
5239,
1676,
1462,
201,
198,
2,
220,
220,
220,
220,
220,
220,
13305,
242,
8418,
6291,
12,
49922,
12,
27432,
13,
27110,
22105,
201,
198,
2,
201,
198,
2,
383,
5072,
8619,
5072,
62,
15908,
357,
68,
13,
70,
13,
11160,
19260,
62,
39873,
62,
20274,
62,
7266,
3411,
34729,
201,
198,
2,
481,
3328,
477,
16277,
925,
1141,
262,
2187,
4512,
14,
79,
17407,
1429,
201,
198,
2,
357,
26239,
428,
8619,
318,
6153,
618,
257,
649,
17724,
318,
925,
2599,
201,
198,
2,
220,
197,
49922,
13,
79,
17407,
62,
15,
201,
198,
2,
220,
197,
49922,
13,
79,
17407,
62,
16,
201,
198,
2,
220,
197,
49922,
13,
79,
17407,
62,
17,
201,
198,
2,
220,
220,
220,
220,
220,
220,
220,
2644,
201,
198,
2,
201,
198,
2,
383,
2438,
8619,
14498,
62,
23065,
62,
15908,
357,
68,
13,
70,
13,
11160,
19260,
62,
39873,
62,
8189,
62,
7266,
3411,
34729,
201,
198,
2,
815,
3994,
534,
2438,
14498,
2746,
13,
9078,
357,
392,
5457,
584,
5499,
201,
198,
2,
340,
8338,
2402,
737,
201,
198,
2,
201,
198,
2,
775,
9177,
1811,
6097,
25,
201,
198,
2,
352,
8,
42865,
17579,
2885,
2751,
25,
201,
198,
2,
220,
220,
220,
220,
10541,
201,
198,
2,
27039,
13,
9078,
201,
198,
2,
27039,
13,
27722,
19260,
9171,
14706,
25,
4149,
20150,
287,
20150,
13,
5239,
1676,
1462,
201,
198,
2,
27039,
13,
27722,
35,
11163,
265,
292,
316,
25,
4149,
1366,
290,
1577,
48700,
13,
7890,
13,
27354,
292,
316,
201,
198,
2,
362,
8,
12509,
1503,
15871,
337,
16219,
8881,
25,
201,
198,
2,
220,
220,
220,
34400,
201,
198,
2,
2746,
13,
9078,
201,
198,
2,
2746,
13,
17633,
13,
27432,
201,
198,
2,
2746,
13,
17633,
13,
9288,
201,
198,
2,
201,
198,
2,
11096,
38044,
11,
47466,
11,
37760,
5883,
3525,
6234,
11,
5357,
42865,
15986,
36592,
2389,
1961,
366,
1921,
12,
1797,
1911,
201,
198,
2,
49677,
12709,
29463,
1797,
311,
8322,
11,
5870,
1847,
17133,
45,
11,
5357,
14,
1581,
25401,
6375,
45028,
14887,
4877,
6375,
42714,
37195,
20673,
13954,
48778,
201,
198,
2,
15529,
7788,
32761,
1961,
6375,
8959,
49094,
34764,
11015,
11,
47783,
2751,
11,
21728,
5626,
40880,
5390,
11,
3336,
8959,
49094,
201,
198,
2,
34764,
11015,
3963,
34482,
3398,
1565,
5603,
25382,
5357,
376,
46144,
7473,
15529,
16652,
2149,
37232,
33079,
48933,
11,
5357,
3336,
201,
198,
2,
34764,
56,
3963,
44521,
12,
1268,
10913,
3528,
12529,
3963,
15529,
2320,
46833,
16652,
56,
6,
50,
17828,
3698,
16779,
25620,
4810,
31054,
9936,
371,
34874,
13,
201,
198,
2,
3268,
8005,
49261,
50163,
49677,
12709,
29463,
1797,
311,
8322,
5357,
14,
1581,
25401,
6375,
45028,
14887,
4877,
9348,
43031,
19146,
7473,
15529,
38846,
11,
201,
198,
2,
3268,
17931,
23988,
6375,
7102,
5188,
10917,
3525,
12576,
29506,
25552,
6375,
15529,
29506,
25552,
25003,
15821,
36,
5959,
5923,
1797,
2751,
16289,
3963,
6375,
3268,
201,
198,
2,
7102,
45,
24565,
13315,
3336,
23210,
6375,
19878,
13775,
10725,
5222,
3963,
47466,
11,
37760,
5883,
15365,
11,
337,
23261,
12576,
50,
11,
201,
198,
2,
44731,
18421,
11,
6375,
38044,
337,
19266,
317,
11731,
4146,
17534,
7473,
3336,
5870,
7036,
1677,
8264,
13,
201,
198,
2,
201,
198,
2,
8774,
20420,
25,
41838,
293,
13145,
261,
290,
44583,
1112,
18258,
201,
198,
201,
198,
2,
36658,
2559,
855,
347,
43312,
39852,
11053,
36658,
25609,
28,
201,
198,
2,
49973,
577,
4235,
25,
201,
198,
7804,
4242,
2235,
201,
198,
2,
31117,
284,
1394,
15942,
577,
796,
6407,
25,
2523,
2972,
17085,
6218,
201,
198,
19011,
577,
796,
6407,
1303,
23862,
6218,
284,
14367,
448,
290,
336,
1082,
81,
329,
14257,
4959,
201,
198,
201,
198,
2,
31687,
1241,
25,
201,
198,
7804,
4242,
2235,
201,
198,
2,
657,
25,
1057,
262,
2438,
7685,
11,
1262,
262,
640,
4466,
286,
262,
8861,
201,
198,
2,
352,
25,
1057,
262,
2438,
7685,
11,
475,
7095,
262,
640,
284,
3509,
62,
2435,
201,
198,
2,
362,
25,
1057,
2279,
11,
475,
466,
407,
4512,
11,
7716,
4738,
23862,
287,
3509,
62,
2435,
201,
198,
2,
513,
25,
2245,
878,
262,
9052,
319,
40522,
201,
198,
2,
604,
25,
655,
1351,
262,
29196,
290,
1430,
2196,
201,
198,
24442,
62,
14171,
796,
657,
201,
198,
201,
198,
2,
3862,
4466,
201,
198,
7804,
4242,
2,
201,
198,
2,
22246,
640,
286,
3047,
287,
4201,
19878,
360,
1404,
1921,
2767,
357,
8117,
743,
307,
1811,
40522,
737,
201,
198,
2,
383,
2438,
815,
1394,
2610,
286,
640,
3377,
290,
5626,
7074,
262,
640,
4179,
201,
198,
2,
287,
262,
27039,
366,
10951,
1,
2393,
11,
8574,
287,
360,
13,
10951,
17816,
2435,
62,
37315,
6,
4357,
766,
2438,
2174,
13,
201,
198,
2,
1002,
14257,
18189,
16,
11,
345,
460,
10070,
262,
5415,
640,
357,
259,
792,
8,
351,
428,
7885,
25,
201,
198,
9806,
62,
2435,
796,
5867,
201,
198,
201,
198,
2,
22246,
1271,
286,
16006,
11,
1271,
286,
8405,
11,
290,
3959,
2024,
201,
198,
29113,
14468,
7804,
4242,
2,
201,
198,
2,
3406,
3047,
11862,
743,
307,
3049,
11,
523,
345,
743,
765,
284,
4179,
32845,
262,
201,
198,
2,
1271,
286,
2173,
319,
534,
4673,
12133,
357,
5661,
318,
319,
257,
2604,
5046,
11,
523,
1123,
201,
198,
2,
966,
3544,
5403,
355,
867,
640,
621,
262,
2180,
530,
2014,
201,
198,
2,
383,
2656,
2438,
373,
9518,
284,
466,
691,
257,
1402,
366,
2435,
41034,
1,
3940,
201,
198,
2,
416,
530,
2060,
6772,
13,
775,
460,
783,
635,
1577,
257,
5415,
1271,
286,
3959,
2024,
201,
198,
2,
357,
8692,
46184,
737,
201,
198,
9806,
62,
13696,
796,
352,
201,
198,
9806,
62,
395,
320,
2024,
796,
8576,
201,
198,
9806,
62,
82,
12629,
796,
12178,
10786,
18943,
11537,
201,
198,
201,
198,
2,
2297,
1060,
336,
446,
415,
5072,
284,
2107,
2482,
2443,
357,
15255,
6255,
62,
43420,
13,
6494,
8,
201,
198,
2,
284,
423,
2107,
5072,
329,
28769,
201,
198,
22083,
40,
23988,
62,
36886,
796,
10352,
201,
198,
201,
198,
2,
314,
14,
46,
26235,
201,
198,
7804,
4242,
2235,
201,
198,
2,
1002,
2081,
11,
262,
2180,
5072,
8619,
318,
407,
6993,
9108,
11,
340,
2458,
1438,
201,
198,
21928,
62,
3866,
1442,
62,
43420,
796,
10352,
201,
198,
201,
198,
2,
5765,
4277,
4067,
329,
262,
5128,
290,
5072,
1366,
25,
201,
198,
2,
1002,
645,
7159,
284,
1057,
13,
9078,
389,
2810,
11,
428,
318,
810,
262,
1366,
481,
307,
1043,
201,
198,
2,
290,
262,
2482,
3194,
284,
13,
9794,
262,
6808,
62,
15908,
284,
534,
1957,
8619,
13,
201,
198,
11748,
28686,
201,
198,
6738,
28686,
1330,
651,
66,
16993,
355,
279,
16993,
201,
198,
6738,
28686,
13,
6978,
1330,
4654,
201,
198,
11748,
4423,
346,
1303,
329,
34817,
257,
2187,
8619,
201,
198,
6738,
1257,
310,
10141,
1330,
13027,
201,
198,
11748,
15095,
201,
198,
201,
198,
2,
15161,
314,
14,
46,
29196,
25,
201,
198,
2,
6808,
62,
15908,
318,
262,
2560,
8619,
286,
262,
9483,
366,
27722,
19260,
62,
278,
395,
295,
62,
23065,
1,
201,
198,
15763,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
28264,
39,
9338,
22784,
28686,
13,
26037,
343,
4008,
201,
198,
12286,
62,
15414,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
39873,
62,
7890,
4943,
201,
198,
12286,
62,
22915,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
39873,
62,
20274,
62,
7266,
3411,
4943,
201,
198,
12286,
62,
23065,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
278,
395,
295,
62,
23065,
4943,
201,
198,
12286,
62,
7266,
3411,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
39873,
62,
8189,
62,
7266,
3411,
4943,
201,
198,
201,
198,
201,
198,
2,
38093,
25609,
201,
198,
2,
36658,
2559,
855,
23578,
1294,
1137,
39852,
11053,
36658,
25609,
18604,
201,
198,
2,
38093,
25609,
201,
198,
201,
198,
2,
10628,
286,
262,
6291,
2438,
201,
198,
9641,
796,
352,
201,
198,
201,
198,
2,
3611,
4007,
5499,
201,
198,
11748,
640,
201,
198,
11748,
299,
32152,
355,
45941,
201,
198,
2502,
439,
62,
9688,
796,
640,
13,
2435,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1279,
855,
2940,
3599,
640,
201,
198,
11748,
28686,
201,
198,
11748,
25064,
201,
198,
6738,
25064,
1330,
1822,
85,
11,
3108,
201,
198,
11748,
4818,
8079,
201,
198,
1169,
62,
4475,
796,
4818,
8079,
13,
19608,
8079,
13,
2197,
22446,
2536,
31387,
7203,
4,
88,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
4943,
201,
198,
201,
198,
4299,
3601,
62,
6404,
46491,
11299,
2599,
201,
198,
220,
37227,
11187,
2667,
2163,
13,
357,
24089,
1053,
635,
973,
4600,
11748,
18931,
63,
2014,
37811,
201,
198,
220,
611,
15942,
577,
25,
201,
198,
220,
220,
220,
783,
796,
4818,
8079,
13,
19608,
8079,
13,
2197,
22446,
2536,
31387,
7203,
4,
88,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
4943,
201,
198,
220,
220,
220,
3601,
7203,
2751,
6465,
2849,
24890,
25,
366,
1343,
965,
7,
2197,
47762,
366,
33172,
886,
28,
7061,
8,
201,
198,
220,
220,
220,
3601,
46491,
11299,
8,
201,
198,
201,
198,
4299,
3424,
62,
12957,
62,
22915,
7,
22915,
62,
15908,
2599,
201,
198,
220,
37227,
32657,
4683,
5072,
62,
15908,
286,
1744,
938,
9706,
13,
201,
198,
201,
198,
220,
770,
3407,
29196,
884,
355,
25,
201,
198,
220,
220,
220,
11160,
19260,
62,
39873,
62,
20274,
62,
7266,
3411,
14,
201,
198,
220,
220,
220,
11160,
19260,
62,
46536,
62,
22915,
14,
201,
198,
220,
220,
220,
36628,
62,
49922,
14,
201,
198,
220,
220,
220,
1220,
22065,
14,
9122,
13033,
62,
49922,
14,
201,
198,
220,
220,
220,
2644,
201,
198,
201,
198,
220,
8554,
428,
2163,
11,
262,
2836,
1595,
470,
761,
284,
5490,
546,
262,
7560,
201,
198,
220,
24512,
286,
938,
9706,
13,
201,
198,
220,
37227,
201,
198,
220,
611,
28686,
13,
6978,
13,
9409,
343,
7,
22915,
62,
15908,
2599,
201,
198,
220,
220,
220,
611,
15942,
577,
25,
201,
198,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
34,
25909,
4683,
5072,
62,
15908,
25,
23884,
1911,
18982,
7,
22915,
62,
15908,
4008,
201,
198,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
22915,
62,
15908,
8,
201,
198,
220,
2746,
62,
15908,
796,
28686,
13,
6978,
13,
22179,
7,
418,
13,
6978,
13,
15908,
3672,
7,
418,
13,
6978,
13,
5305,
6978,
7,
19849,
13,
834,
7753,
834,
36911,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
28686,
13,
26037,
343,
8,
201,
198,
220,
329,
2560,
62,
15908,
287,
685,
26488,
22065,
14,
3256,
28686,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
28686,
13,
26037,
343,
828,
2746,
62,
15908,
5974,
201,
198,
220,
220,
220,
1303,
5985,
4683,
36628,
201,
198,
220,
220,
220,
36628,
62,
4743,
672,
796,
59,
201,
198,
220,
220,
220,
220,
220,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
8000,
62,
15908,
11,
705,
9122,
13033,
9,
6,
4008,
201,
198,
220,
220,
220,
36628,
62,
15908,
82,
796,
15095,
13,
4743,
672,
7,
9122,
13033,
62,
4743,
672,
8,
201,
198,
220,
220,
220,
329,
36628,
62,
15908,
287,
36628,
62,
15908,
82,
25,
201,
198,
220,
220,
220,
220,
220,
611,
15942,
577,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
34,
25909,
4683,
36628,
62,
15908,
25,
23884,
1,
59,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
18982,
7,
9122,
13033,
62,
15908,
4008,
201,
198,
220,
220,
220,
220,
220,
4423,
346,
13,
81,
16762,
631,
7,
9122,
13033,
62,
15908,
8,
201,
198,
201,
198,
4299,
651,
62,
2435,
62,
37315,
7,
2306,
375,
75,
62,
19608,
292,
316,
2599,
201,
198,
220,
37227,
7575,
4466,
329,
257,
1813,
11160,
35,
11163,
265,
292,
316,
526,
15931,
201,
198,
220,
1303,
16926,
46,
25,
2551,
284,
787,
319,
640,
4466,
13,
201,
198,
220,
1303,
2735,
340,
338,
362,
2250,
329,
597,
27039,
357,
1462,
307,
6693,
737,
201,
198,
220,
1441,
767,
2167,
201,
198,
201,
198,
2,
36658,
2559,
855,
347,
43312,
46805,
36658,
25609,
18604,
201,
198,
201,
198,
361,
11593,
3672,
834,
855,
1,
834,
12417,
834,
1,
290,
14257,
62,
14171,
27,
19,
25,
201,
198,
220,
220,
220,
1303,
21017,
6822,
1771,
2279,
1816,
880,
357,
3919,
640,
20672,
8,
201,
198,
220,
220,
220,
9706,
62,
13138,
796,
6407,
201,
198,
201,
198,
220,
220,
220,
1303,
21017,
3268,
30076,
14,
2606,
7250,
3843,
25,
3497,
5128,
290,
5072,
8619,
3891,
201,
198,
220,
220,
220,
611,
18896,
7,
853,
85,
8,
855,
16,
25,
1303,
5765,
262,
4277,
5128,
290,
5072,
29196,
611,
645,
7159,
389,
2810,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
15908,
796,
4277,
62,
15414,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
15908,
796,
4277,
62,
22915,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
62,
15908,
28,
4277,
62,
23065,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14498,
62,
15908,
28,
4277,
62,
7266,
3411,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4776,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
46536,
62,
22915,
4943,
201,
198,
220,
220,
220,
1288,
361,
18896,
7,
853,
85,
8,
855,
17,
25,
1303,
262,
1339,
329,
12739,
2041,
5128,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
15908,
796,
1822,
85,
58,
16,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
15908,
796,
4277,
62,
22915,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
62,
15908,
28,
4277,
62,
23065,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14498,
62,
15908,
28,
4277,
62,
7266,
3411,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4776,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
46536,
62,
22915,
4943,
201,
198,
220,
220,
220,
1288,
361,
18896,
7,
853,
85,
8,
855,
18,
25,
1303,
262,
1339,
329,
12739,
2041,
5128,
62,
15908,
290,
14498,
62,
15908,
13,
383,
1339,
329,
1057,
62,
12001,
62,
9288,
13,
9078,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
15908,
796,
1822,
85,
58,
16,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
15908,
796,
4277,
62,
22915,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
62,
15908,
28,
4277,
62,
23065,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14498,
62,
15908,
28,
1822,
85,
58,
17,
60,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4776,
62,
15908,
796,
4654,
7,
15763,
62,
15908,
11,
366,
27722,
19260,
62,
46536,
62,
22915,
4943,
201,
198,
220,
220,
220,
2073,
25,
1303,
262,
1339,
319,
327,
11329,
17822,
3859,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
853,
85,
58,
16,
4357,
705,
40720,
15414,
62,
7890,
6,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
853,
85,
58,
16,
4357,
705,
411,
6,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
853,
85,
58,
18,
12962,
201,
198,
220,
220,
220,
220,
220,
220,
220,
14498,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
853,
85,
58,
19,
4357,
705,
40720,
7266,
3411,
6,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4776,
62,
15908,
796,
28686,
13,
6978,
13,
397,
2777,
776,
7,
418,
13,
6978,
13,
22179,
7,
853,
85,
58,
19,
4357,
705,
40720,
22915,
6,
4008,
201,
198,
201,
198,
220,
220,
220,
1303,
611,
15942,
577,
25,
1303,
1114,
28769,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
3601,
62,
6404,
7203,
17597,
13,
853,
85,
796,
33172,
25064,
13,
853,
85,
8,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
3601,
62,
6404,
7203,
12814,
5128,
62,
15908,
25,
366,
1343,
5128,
62,
15908,
8,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
3601,
62,
6404,
7203,
12814,
5072,
62,
15908,
25,
366,
1343,
5072,
62,
15908,
8,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
3601,
62,
6404,
7203,
12814,
1430,
62,
15908,
25,
366,
1343,
1430,
62,
15908,
8,
201,
198,
220,
220,
220,
1303,
220,
220,
220,
220,
3601,
62,
6404,
7203,
12814,
14498,
62,
15908,
25,
366,
1343,
14498,
62,
15908,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
2297,
1060,
3210,
5072,
284,
423,
2107,
28769,
7508,
357,
9774,
13,
319,
327,
11329,
17822,
8,
201,
198,
220,
220,
220,
611,
23848,
40,
23988,
62,
36886,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
25064,
13,
19282,
448,
796,
1280,
7,
418,
13,
6978,
13,
22179,
7,
26675,
62,
15908,
11,
705,
15255,
6255,
62,
43420,
13,
6494,
33809,
705,
64,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
796,
13027,
7,
4798,
11,
24773,
28,
17821,
8,
201,
198,
201,
198,
197,
2,
3954,
12782,
201,
198,
220,
220,
220,
3108,
13,
33295,
7,
23065,
62,
15908,
8,
201,
198,
220,
220,
220,
3108,
13,
33295,
7,
7266,
3411,
62,
15908,
8,
201,
198,
220,
220,
220,
1303,
3528,
25,
284,
1249,
24353,
262,
3599,
6220,
355,
6291,
14498,
201,
198,
220,
220,
220,
3108,
13,
33295,
7,
7266,
3411,
62,
15908,
1343,
31051,
27722,
19260,
62,
39873,
62,
8189,
62,
7266,
3411,
11537,
201,
198,
220,
220,
220,
1330,
1366,
62,
952,
201,
198,
220,
220,
220,
422,
1366,
62,
952,
1330,
410,
4798,
201,
198,
220,
220,
220,
1330,
2746,
1303,
6809,
6,
2746,
13,
9078,
201,
198,
220,
220,
220,
422,
2746,
1330,
9104,
201,
198,
220,
220,
220,
422,
27039,
1330,
11160,
35,
11163,
265,
292,
316,
1303,
3336,
1398,
286,
11160,
19260,
40522,
201,
198,
201,
198,
220,
220,
220,
1303,
11459,
16739,
72,
397,
12810,
2482,
286,
2180,
9706,
357,
1640,
1957,
1057,
8,
201,
198,
220,
220,
220,
3424,
62,
12957,
62,
22915,
7,
22915,
62,
15908,
8,
201,
198,
201,
198,
220,
220,
220,
611,
14257,
62,
14171,
18189,
604,
25,
1303,
5438,
5888,
2196,
290,
8619,
4645,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
952,
13,
12860,
62,
15908,
7203,
19570,
201,
198,
201,
198,
220,
220,
220,
1303,
10028,
1468,
2482,
290,
2251,
257,
649,
5072,
8619,
357,
1904,
913,
611,
345,
1057,
15726,
8,
201,
198,
220,
220,
220,
611,
3613,
62,
3866,
1442,
62,
43420,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
952,
13,
76,
85,
15908,
7,
22915,
62,
15908,
11,
5072,
62,
15908,
10,
6,
62,
6,
10,
1169,
62,
4475,
8,
201,
198,
220,
220,
220,
1366,
62,
952,
13,
28015,
15908,
7,
22915,
62,
15908,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
13610,
923,
2393,
284,
1560,
9689,
1430,
326,
14498,
468,
2221,
201,
198,
220,
220,
220,
923,
62,
34345,
796,
220,
705,
9688,
13,
14116,
6,
201,
198,
220,
220,
220,
923,
62,
7753,
6978,
796,
28686,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
923,
62,
34345,
8,
201,
198,
220,
220,
220,
351,
1280,
7,
9688,
62,
7753,
6978,
11,
705,
86,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
277,
13,
13564,
10786,
10434,
276,
0,
11537,
201,
198,
201,
198,
220,
220,
220,
1303,
21017,
34899,
3525,
15513,
42865,
357,
392,
3297,
27039,
3891,
24830,
1146,
8,
201,
198,
220,
220,
220,
4818,
272,
1047,
796,
1366,
62,
952,
13,
24807,
62,
7890,
7,
15414,
62,
15908,
8,
201,
198,
220,
220,
220,
1303,
21017,
23520,
19974,
3696,
290,
20150,
2393,
201,
198,
220,
220,
220,
4818,
272,
1047,
796,
685,
87,
329,
2124,
287,
4818,
272,
1047,
611,
2124,
13,
437,
2032,
342,
7,
4458,
7890,
11537,
60,
201,
198,
201,
198,
220,
220,
220,
1303,
21017,
16959,
337,
16820,
25,
5438,
27039,
1351,
290,
44934,
201,
198,
220,
220,
220,
611,
14257,
62,
14171,
29,
28,
18,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
952,
13,
12860,
62,
9641,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
952,
13,
12860,
62,
952,
7,
15414,
62,
15908,
11,
5072,
62,
15908,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
10786,
2466,
1174,
554,
3495,
295,
1430,
2196,
705,
1343,
965,
7,
9641,
8,
1343,
705,
25998,
1174,
59,
77,
59,
77,
6,
1343,
705,
2559,
855,
360,
1404,
1921,
32716,
796,
2559,
28,
59,
77,
11537,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
952,
13,
13564,
62,
4868,
7,
19608,
272,
1047,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
4818,
272,
1047,
796,
17635,
1303,
2141,
407,
5120,
351,
4673,
290,
4856,
201,
198,
201,
198,
220,
220,
220,
1303,
21017,
8779,
1268,
17579,
3185,
28729,
360,
1404,
1921,
32716,
25,
201,
198,
220,
220,
220,
4045,
62,
2435,
62,
37315,
796,
657,
201,
198,
220,
220,
220,
640,
62,
9464,
62,
2502,
796,
657,
201,
198,
201,
198,
220,
220,
220,
1303,
26304,
625,
40522,
357,
361,
1811,
8,
201,
198,
220,
220,
220,
1303,
1114,
11160,
19260,
4427,
11,
612,
318,
691,
352,
27039,
329,
1123,
2610,
11,
523,
428,
9052,
201,
198,
220,
220,
220,
1303,
460,
1682,
307,
9514,
13,
3423,
1615,
12453,
318,
304,
13,
70,
13,
705,
49922,
13,
7890,
6,
201,
198,
220,
220,
220,
329,
1312,
11,
1615,
12453,
287,
27056,
378,
7,
19608,
272,
1047,
2599,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
2559,
855,
554,
3495,
295,
1430,
2196,
366,
1343,
965,
7,
9641,
8,
1343,
366,
796,
2559,
2625,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
17174,
8412,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
4557,
28403,
27039,
366,
1343,
1615,
12453,
58,
21912,
20,
4083,
27544,
1096,
3419,
1343,
366,
220,
4557,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
17174,
8412,
4943,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
29335,
18604,
18252,
319,
257,
640,
4466,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9175,
2610,
286,
640,
407,
284,
7074,
534,
640,
4466,
13,
3862,
3377,
284,
13184,
1366,
24007,
13,
201,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
640,
13,
2435,
3419,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
29335,
18604,
30481,
257,
1366,
2134,
351,
1366,
11,
4175,
602,
546,
340,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
36120,
3047,
900,
290,
1332,
900,
9313,
8,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
46424,
16623,
4441,
3047,
900,
290,
1332,
900,
46424,
201,
198,
220,
220,
220,
220,
220,
220,
220,
360,
62,
27432,
796,
11160,
35,
11163,
265,
292,
316,
7,
418,
13,
6978,
13,
22179,
7,
15414,
62,
15908,
11,
1615,
12453,
11,
366,
27432,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
360,
62,
9288,
796,
11160,
35,
11163,
265,
292,
316,
7,
418,
13,
6978,
13,
22179,
7,
15414,
62,
15908,
11,
1615,
12453,
11,
366,
9288,
48774,
201,
198,
220,
220,
220,
220,
220,
220,
220,
46424,
5268,
4441,
3047,
900,
290,
1332,
900,
46424,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
29335,
18604,
9175,
2610,
286,
640,
201,
198,
220,
220,
220,
220,
220,
220,
220,
611,
14257,
62,
14171,
27,
16,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
62,
37315,
796,
651,
62,
2435,
62,
37315,
7,
35,
62,
27432,
8,
220,
220,
220,
220,
220,
220,
220,
1303,
1279,
855,
15698,
3180,
3336,
20460,
347,
8322,
18851,
0,
201,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
62,
37315,
796,
3509,
62,
2435,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
796,
2559,
30481,
257,
2746,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
32071,
2746,
9313,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
46424,
16623,
4441,
2746,
46424,
201,
198,
220,
220,
220,
220,
220,
220,
220,
337,
796,
9104,
7,
35,
62,
27432,
13,
1136,
62,
38993,
28955,
1303,
383,
20150,
286,
360,
62,
27432,
290,
360,
62,
9288,
691,
13238,
287,
6291,
62,
9127,
201,
198,
220,
220,
220,
220,
220,
220,
220,
46424,
2,
5268,
4441,
2746,
46424,
2,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
33311,
2610,
286,
703,
867,
16277,
389,
925,
201,
198,
220,
220,
220,
220,
220,
220,
220,
17724,
62,
2875,
62,
17618,
796,
657,
201,
198,
201,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
7253,
262,
327,
6965,
16652,
25,
4512,
14,
79,
17407,
1429,
201,
198,
220,
220,
220,
220,
220,
220,
220,
923,
796,
640,
13,
2435,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
981,
7,
17821,
2599,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
62,
2435,
62,
37315,
796,
923,
1343,
640,
62,
37315,
532,
640,
13,
2435,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
44357,
262,
2746,
9313,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
16835,
262,
2746,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
337,
13,
27432,
7,
35,
62,
27432,
13,
1136,
62,
19608,
292,
316,
22784,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
62,
2435,
62,
37315,
28,
2787,
1397,
62,
2435,
62,
37315,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
62,
2435,
62,
37315,
796,
923,
1343,
640,
62,
37315,
532,
640,
13,
2435,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
6889,
16277,
1262,
262,
8776,
2746,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
575,
62,
9288,
796,
337,
13,
9288,
7,
35,
62,
9288,
13,
1136,
62,
19608,
292,
316,
22784,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
62,
2435,
62,
37315,
28,
2787,
1397,
62,
2435,
62,
37315,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
575,
62,
9288,
318,
6045,
25,
1303,
13707,
4512,
14,
79,
17407,
1429,
611,
575,
62,
9288,
318,
6045,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
46690,
3696,
25,
4044,
13,
79,
17407,
62,
15,
11,
4044,
13,
79,
17407,
62,
16,
11,
2644,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29472,
62,
9288,
796,
1615,
12453,
58,
21912,
20,
60,
1343,
45302,
79,
17407,
62,
6,
1343,
59,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
965,
7,
28764,
2867,
62,
2875,
62,
17618,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
19430,
16277,
284,
5072,
62,
15908,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
952,
13,
13564,
7,
418,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
34345,
62,
9288,
828,
575,
62,
9288,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17724,
62,
2875,
62,
17618,
15853,
352,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
58,
10,
60,
46690,
1943,
11,
640,
3377,
523,
1290,
4064,
20,
13,
17,
69,
792,
1,
4064,
357,
2435,
13,
2435,
3419,
532,
923,
4008,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5637,
62,
2435,
62,
37315,
796,
923,
1343,
640,
62,
37315,
532,
640,
13,
2435,
3419,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7,
12878,
10,
60,
3862,
1364,
4064,
20,
13,
17,
69,
792,
1,
4064,
5637,
62,
2435,
62,
37315,
8,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5637,
62,
2435,
62,
37315,
27,
28,
15,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
201,
198,
201,
198,
220,
220,
220,
1303,
4463,
3929,
38382,
1430,
201,
198,
220,
220,
220,
4045,
62,
2435,
62,
2777,
298,
796,
640,
13,
2435,
3419,
532,
4045,
62,
9688,
201,
198,
201,
198,
220,
220,
220,
1303,
23520,
923,
2393,
284,
3424,
9483,
201,
198,
220,
220,
220,
611,
28686,
13,
6978,
13,
1069,
1023,
7,
9688,
62,
7753,
6978,
2599,
201,
198,
220,
220,
220,
220,
220,
28686,
13,
28956,
7,
9688,
62,
7753,
6978,
8,
201,
198,
201,
198,
220,
220,
220,
1303,
19430,
4045,
62,
2435,
62,
2777,
298,
284,
257,
9478,
13,
14116,
2393,
201,
198,
220,
220,
220,
9478,
62,
34345,
796,
220,
705,
32257,
13,
14116,
6,
201,
198,
220,
220,
220,
351,
1280,
7,
418,
13,
6978,
13,
22179,
7,
22915,
62,
15908,
11,
9478,
62,
34345,
828,
705,
86,
11537,
355,
277,
25,
201,
198,
220,
220,
220,
220,
220,
277,
13,
13564,
7,
2536,
7,
2502,
439,
62,
2435,
62,
2777,
298,
4008,
201,
198,
220,
220,
220,
220,
220,
611,
15942,
577,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
33244,
2759,
3551,
9478,
284,
23884,
526,
13,
18982,
7,
32257,
62,
34345,
4008,
201,
198,
220,
220,
220,
611,
9706,
62,
13138,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
58,
10,
60,
24429,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
58,
10,
60,
14674,
640,
3377,
4064,
20,
13,
17,
69,
792,
366,
4064,
4045,
62,
2435,
62,
2777,
298,
8,
201,
198,
220,
220,
220,
2073,
25,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
58,
12,
60,
24429,
11,
475,
617,
8861,
46847,
780,
640,
4179,
20672,
4943,
201,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
6404,
7203,
58,
12,
60,
14674,
640,
3377,
4064,
20,
13,
17,
69,
792,
366,
4064,
4045,
62,
2435,
62,
2777,
298,
8,
201,
198
] | 2.70199 | 5,577 |
import datetime
from dateutil.parser import parse as date_parser
from mongoengine import Document, StringField, ListField
from django.conf import settings
from crits.core.crits_mongoengine import CritsBaseAttributes, CritsSourceDocument
from crits.core.crits_mongoengine import CritsActionsDocument
from crits.core.fields import CritsDateTimeField
from crits.emails.migrate import migrate_email
from crits.core.data_tools import convert_datetimes_to_string
class RawHeadersField(StringField):
"""
Raw Header class.
"""
def transform(self, value):
"""
If we receive a list instead of a string, convert it.
:param value: The raw headers.
:type value: str or list
:returns: str
"""
if isinstance(value, list):
tmp = ''
for v in value:
tmp = ' '.join([tmp, self.transform(v)])
return tmp
return value
class Email(CritsBaseAttributes, CritsSourceDocument, CritsActionsDocument,
Document):
"""
Email Class.
"""
meta = {
# mongoengine adds fields _cls and _types and uses them to filter database
# responses unless you disallow inheritance. In other words, we
# can't see any of our old data unless we add _cls and _types
# attributes to them or turn off inheritance.
#So we'll turn inheritance off.
# (See http://mongoengine-odm.readthedocs.org/en/latest/guide/defining-documents.html#working-with-existing-data)
"collection": settings.COL_EMAIL,
"crits_type": 'Email',
"latest_schema_version": 2,
"schema_doc": {
'boundary': 'Email boundary',
'campaign': 'List [] of campaigns attributed to this email',
'cc': 'List [] of CC recipients',
'date': 'String of date header field',
'from': 'From header field',
'helo': 'HELO',
'isodate': 'ISODate conversion of date header field',
'message_id': 'Message-ID header field',
'modified': 'When this object was last modified',
'objects': 'List of objects in this email',
'originating_ip': 'Originating-IP header field',
'raw_body': 'Email raw body',
'raw_header': 'Email raw headers',
'relationships': 'List of relationships with this email',
'reply_to': 'Reply-To header field',
'sender': 'Sender header field',
'shared_with': 'Dictionary of sources that this email may be shared with and whether it has been shared already',
'source': 'List [] of sources that provided information on this email',
'subject': 'Email subject',
'to': 'To header field',
'x_originating_ip': 'X-Originating-IP header field',
'x_mailer': 'X-Mailer header field',
},
"jtable_opts": {
'details_url': 'crits.emails.views.email_detail',
'details_url_key': 'id',
'default_sort': "isodate DESC",
'searchurl': 'crits.emails.views.emails_listing',
'fields': [ "from_address", "subject", "isodate",
"source", "campaign", "id", "to",
"status", "cc" ],
'jtopts_fields': [ "details",
"from",
"recip",
"subject",
"isodate",
"source",
"campaign",
"status",
"favorite",
"id"],
'hidden_fields': [],
'linked_fields': [ "source", "campaign",
"from", "subject" ],
'details_link': 'details',
'no_sort': ['recip', 'details']
}
}
boundary = StringField()
cc = ListField(StringField())
date = StringField(required=True)
from_address = StringField(db_field="from")
helo = StringField()
# isodate is an interally-set attribute and on save will be overwritten
# with the isodate version of the email's date attribute.
isodate = CritsDateTimeField()
message_id = StringField()
originating_ip = StringField()
raw_body = StringField()
raw_header = RawHeadersField(db_field="raw_headers")
reply_to = StringField()
sender = StringField()
subject = StringField()
to = ListField(StringField())
x_originating_ip = StringField()
x_mailer = StringField()
def migrate(self):
"""
Migrate to latest schema version.
"""
migrate_email(self)
def _custom_save(self, force_insert=False, validate=True, clean=False,
write_concern=None, cascade=None, cascade_kwargs=None,
_refs=None, username=None, **kwargs):
"""
Override our core custom save. This will ensure if there is a "date"
string available for the email that we generate a corresponding
"isodate" field which is more useful for database sorting/searching.
"""
if hasattr(self, 'date'):
if self.date:
if isinstance(self.date, datetime.datetime):
self.isodate = self.date
self.date = convert_datetimes_to_string(self.date)
else:
self.isodate = date_parser(self.date, fuzzy=True)
else:
if self.isodate:
if isinstance(self.isodate, datetime.datetime):
self.date = convert_datetimes_to_string(self.isodate)
else:
self.isodate = None
return super(self.__class__, self)._custom_save(force_insert, validate,
clean, write_concern, cascade, cascade_kwargs, _refs, username)
| [
11748,
4818,
8079,
198,
198,
6738,
3128,
22602,
13,
48610,
1330,
21136,
355,
3128,
62,
48610,
198,
6738,
285,
25162,
18392,
1330,
16854,
11,
10903,
15878,
11,
7343,
15878,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
198,
6738,
1955,
82,
13,
7295,
13,
22213,
82,
62,
76,
25162,
18392,
1330,
10056,
82,
14881,
29021,
11,
10056,
82,
7416,
24941,
198,
6738,
1955,
82,
13,
7295,
13,
22213,
82,
62,
76,
25162,
18392,
1330,
10056,
82,
32,
2733,
24941,
198,
6738,
1955,
82,
13,
7295,
13,
25747,
1330,
10056,
82,
10430,
7575,
15878,
198,
6738,
1955,
82,
13,
368,
1768,
13,
76,
42175,
1330,
32492,
62,
12888,
198,
198,
6738,
1955,
82,
13,
7295,
13,
7890,
62,
31391,
1330,
10385,
62,
19608,
46874,
62,
1462,
62,
8841,
198,
198,
4871,
16089,
13847,
364,
15878,
7,
10100,
15878,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
16089,
48900,
1398,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
825,
6121,
7,
944,
11,
1988,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1002,
356,
3328,
257,
1351,
2427,
286,
257,
4731,
11,
10385,
340,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1988,
25,
383,
8246,
24697,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1988,
25,
965,
393,
1351,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
8367,
11,
1351,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
1988,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45218,
796,
705,
45302,
22179,
26933,
22065,
11,
2116,
13,
35636,
7,
85,
8,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
45218,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1988,
628,
198,
4871,
9570,
7,
18559,
82,
14881,
29021,
11,
10056,
82,
7416,
24941,
11,
10056,
82,
32,
2733,
24941,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16854,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
9570,
5016,
13,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
13634,
796,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
285,
25162,
18392,
6673,
7032,
4808,
565,
82,
290,
4808,
19199,
290,
3544,
606,
284,
8106,
6831,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
9109,
4556,
345,
595,
12154,
24155,
13,
554,
584,
2456,
11,
356,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
460,
470,
766,
597,
286,
674,
1468,
1366,
4556,
356,
751,
4808,
565,
82,
290,
4808,
19199,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
12608,
284,
606,
393,
1210,
572,
24155,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
2396,
356,
1183,
1210,
24155,
572,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
357,
6214,
2638,
1378,
76,
25162,
18392,
12,
375,
76,
13,
961,
83,
704,
420,
82,
13,
2398,
14,
268,
14,
42861,
14,
41311,
14,
4299,
3191,
12,
15390,
2886,
13,
6494,
2,
16090,
12,
4480,
12,
25687,
12,
7890,
8,
198,
220,
220,
220,
220,
220,
220,
220,
366,
43681,
1298,
6460,
13,
25154,
62,
27630,
4146,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
22213,
82,
62,
4906,
1298,
705,
15333,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
366,
42861,
62,
15952,
2611,
62,
9641,
1298,
362,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
15952,
2611,
62,
15390,
1298,
1391,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7784,
560,
10354,
705,
15333,
18645,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
35012,
10354,
705,
8053,
17635,
286,
9964,
14183,
284,
428,
3053,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
535,
10354,
705,
8053,
17635,
286,
12624,
20352,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
4475,
10354,
705,
10100,
286,
3128,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
6738,
10354,
705,
4863,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
2978,
78,
10354,
705,
39,
3698,
46,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
271,
375,
378,
10354,
705,
1797,
3727,
378,
11315,
286,
3128,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20500,
62,
312,
10354,
705,
12837,
12,
2389,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
41771,
10354,
705,
2215,
428,
2134,
373,
938,
9518,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
48205,
10354,
705,
8053,
286,
5563,
287,
428,
3053,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
11612,
6010,
62,
541,
10354,
705,
11610,
6010,
12,
4061,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1831,
62,
2618,
10354,
705,
15333,
8246,
1767,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1831,
62,
25677,
10354,
705,
15333,
8246,
24697,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
39468,
5748,
10354,
705,
8053,
286,
6958,
351,
428,
3053,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
47768,
62,
1462,
10354,
705,
36875,
12,
2514,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
82,
2194,
10354,
705,
50,
2194,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
28710,
62,
4480,
10354,
705,
35,
14188,
286,
4237,
326,
428,
3053,
743,
307,
4888,
351,
290,
1771,
340,
468,
587,
4888,
1541,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10459,
10354,
705,
8053,
17635,
286,
4237,
326,
2810,
1321,
319,
428,
3053,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
32796,
10354,
705,
15333,
2426,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
1462,
10354,
705,
2514,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
87,
62,
11612,
6010,
62,
541,
10354,
705,
55,
12,
11610,
6010,
12,
4061,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
87,
62,
4529,
263,
10354,
705,
55,
12,
25804,
263,
13639,
2214,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
8964,
198,
220,
220,
220,
220,
220,
220,
220,
366,
73,
11487,
62,
404,
912,
1298,
1391,
198,
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,
36604,
62,
6371,
10354,
705,
22213,
82,
13,
368,
1768,
13,
33571,
13,
12888,
62,
49170,
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,
705,
36604,
62,
6371,
62,
2539,
10354,
705,
312,
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,
705,
12286,
62,
30619,
10354,
366,
271,
375,
378,
22196,
34,
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,
705,
12947,
6371,
10354,
705,
22213,
82,
13,
368,
1768,
13,
33571,
13,
368,
1768,
62,
4868,
278,
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,
705,
25747,
10354,
685,
366,
6738,
62,
21975,
1600,
366,
32796,
1600,
366,
271,
375,
378,
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,
366,
10459,
1600,
366,
35012,
1600,
366,
312,
1600,
366,
1462,
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,
366,
13376,
1600,
366,
535,
1,
16589,
198,
220,
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,
73,
4852,
912,
62,
25747,
10354,
685,
366,
36604,
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,
366,
6738,
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,
366,
8344,
541,
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,
366,
32796,
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,
366,
271,
375,
378,
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,
366,
10459,
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,
366,
35012,
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,
366,
13376,
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,
366,
35200,
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,
366,
312,
33116,
198,
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,
30342,
62,
25747,
10354,
685,
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,
705,
25614,
62,
25747,
10354,
685,
366,
10459,
1600,
366,
35012,
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,
366,
6738,
1600,
366,
32796,
1,
16589,
198,
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,
36604,
62,
8726,
10354,
705,
36604,
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,
705,
3919,
62,
30619,
10354,
37250,
8344,
541,
3256,
705,
36604,
20520,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1782,
198,
220,
220,
220,
1782,
628,
220,
220,
220,
18645,
796,
10903,
15878,
3419,
198,
220,
220,
220,
36624,
796,
7343,
15878,
7,
10100,
15878,
28955,
198,
220,
220,
220,
3128,
796,
10903,
15878,
7,
35827,
28,
17821,
8,
198,
220,
220,
220,
422,
62,
21975,
796,
10903,
15878,
7,
9945,
62,
3245,
2625,
6738,
4943,
198,
220,
220,
220,
932,
78,
796,
10903,
15878,
3419,
198,
220,
220,
220,
1303,
318,
375,
378,
318,
281,
987,
453,
12,
2617,
11688,
290,
319,
3613,
481,
307,
6993,
9108,
198,
220,
220,
220,
1303,
351,
262,
318,
375,
378,
2196,
286,
262,
3053,
338,
3128,
11688,
13,
198,
220,
220,
220,
318,
375,
378,
796,
10056,
82,
10430,
7575,
15878,
3419,
198,
220,
220,
220,
3275,
62,
312,
796,
10903,
15878,
3419,
198,
220,
220,
220,
37962,
62,
541,
796,
10903,
15878,
3419,
198,
220,
220,
220,
8246,
62,
2618,
796,
10903,
15878,
3419,
198,
220,
220,
220,
8246,
62,
25677,
796,
16089,
13847,
364,
15878,
7,
9945,
62,
3245,
2625,
1831,
62,
50145,
4943,
198,
220,
220,
220,
10971,
62,
1462,
796,
10903,
15878,
3419,
198,
220,
220,
220,
29788,
796,
10903,
15878,
3419,
198,
220,
220,
220,
2426,
796,
10903,
15878,
3419,
198,
220,
220,
220,
284,
796,
7343,
15878,
7,
10100,
15878,
28955,
198,
220,
220,
220,
2124,
62,
11612,
6010,
62,
541,
796,
10903,
15878,
3419,
198,
220,
220,
220,
2124,
62,
4529,
263,
796,
10903,
15878,
3419,
628,
220,
220,
220,
825,
32492,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
337,
42175,
284,
3452,
32815,
2196,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
32492,
62,
12888,
7,
944,
8,
628,
220,
220,
220,
825,
4808,
23144,
62,
21928,
7,
944,
11,
2700,
62,
28463,
28,
25101,
11,
26571,
28,
17821,
11,
3424,
28,
25101,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
1102,
30903,
28,
14202,
11,
220,
44847,
28,
14202,
11,
44847,
62,
46265,
22046,
28,
14202,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
5420,
82,
28,
14202,
11,
20579,
28,
14202,
11,
12429,
46265,
22046,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3827,
13154,
674,
4755,
2183,
3613,
13,
770,
481,
4155,
611,
612,
318,
257,
366,
4475,
1,
198,
220,
220,
220,
220,
220,
220,
220,
4731,
1695,
329,
262,
3053,
326,
356,
7716,
257,
11188,
198,
220,
220,
220,
220,
220,
220,
220,
366,
271,
375,
378,
1,
2214,
543,
318,
517,
4465,
329,
6831,
29407,
14,
12947,
278,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
611,
468,
35226,
7,
944,
11,
705,
4475,
6,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
4475,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
944,
13,
4475,
11,
4818,
8079,
13,
19608,
8079,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
271,
375,
378,
796,
2116,
13,
4475,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
4475,
796,
10385,
62,
19608,
46874,
62,
1462,
62,
8841,
7,
944,
13,
4475,
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,
271,
375,
378,
796,
3128,
62,
48610,
7,
944,
13,
4475,
11,
34669,
28,
17821,
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,
611,
2116,
13,
271,
375,
378,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
318,
39098,
7,
944,
13,
271,
375,
378,
11,
4818,
8079,
13,
19608,
8079,
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,
2116,
13,
4475,
796,
10385,
62,
19608,
46874,
62,
1462,
62,
8841,
7,
944,
13,
271,
375,
378,
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,
271,
375,
378,
796,
6045,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
2208,
7,
944,
13,
834,
4871,
834,
11,
2116,
737,
62,
23144,
62,
21928,
7,
3174,
62,
28463,
11,
26571,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3424,
11,
3551,
62,
1102,
30903,
11,
44847,
11,
44847,
62,
46265,
22046,
11,
4808,
5420,
82,
11,
20579,
8,
198
] | 2.059583 | 3,021 |
#-*- coding: utf-8 -*-
""" StaSh input history
"""
import json
from stash.lib.libslog import slog
_pyfile_ = __file__.split("/")[-1]
slog(f'pyfile: {_pyfile_}')
from stash.system.shcommon import ShEventNotFound
class ShHistory(object):
"""
This class is responsible for input history.
:param stash: the StaSh core
:type stash: StaSh
"""
ENCODING = "utf-8"
DEFAULT = "_default"
@classmethod
def load(cls, path, stash):
"""
Load the history from a path.
:param path: path to load from.
:type path: str
:param config: the StaSh core
:type config: StaSh
:return: the history loaded from the file
:rtype: ShHistory
"""
shh = cls(stash)
try:
with open(path, "r", encoding=cls.ENCODING) as fin:
h = json.loads(u"" + fin.read())
except ValueError:
h = {"StaSh.runtime": cls.load_old_format(path)}
shh._histories = h
return shh
@classmethod
def load_old_format(cls, path):
"""
Load the content of an old-style history.
:param path: path to load from
:type path: str
:return: the lines loaded from the file
:rtype: list of str
"""
with open(path, "r", encoding=cls.ENCODING) as fin:
lines = [line.strip() for line in fin.readlines()]
return lines
def save(self, path):
"""
Save the history to a path.
:param path: path to save to.
:type path: str
"""
with open(path, "w", encoding=self.ENCODING) as fout:
s = json.dumps(self._histories)
fout.write(u"" + s) # ensure unicode
def clear(self, target=None):
"""
Clear the history
:param target: history to clear or None for current
:type history: str or None
"""
if target is None:
target = self._current
if target in self._histories:
del self._histories[target]
def clear_all(self):
"""
Clear all histories.
"""
self._histories = {}
def swap(self, target):
"""
Swap the history
:param target: identifier to get the history for
:type target: str or None
"""
self._current = target
def add(self, line, always=False):
"""
Add a line to the history.
:param line: line to add to history
:type line: str
:param always: always add this line, regardless of config
:type always: bool
"""
if self._current not in self._histories:
self._histories[self._current] = []
stripped = line.strip()
last_line = (self._histories[self._current][-1]
if len(self._histories[self._current]) > 0 else None)
if not always:
# check if this line should be added
if stripped == last_line and not self.allow_double:
# prevent double lines
return
if line.startswith(" ") and self.hide_whitespace:
# hide lines starting with a whitespace
return
self._histories[self._current].append(stripped)
# ensure maxsize
while len(self._histories[self._current]) > max(0, self.maxsize):
self._histories[self._current].pop(0)
# reset index
self.reset_idx()
def getlist(self):
"""
Return a list of the current history.
:return: list of current history entries
:rtype: list of str
"""
if self._current not in self._histories:
self._histories[self._current] = []
return self._histories[self._current][::-1]
def search(self, tok):
"""
Search the history.
:param tok:
:type tok:
:return: last entry in history matching the search
:rtype: str
"""
history = self.getlist()
search_string = tok[1:]
if search_string == '':
return ''
if search_string == '!':
return history[0]
try:
idx = int(search_string)
try:
return history[::-1][idx]
except IndexError:
raise ShEventNotFound(tok)
except ValueError:
for entry in history:
if entry.startswith(search_string):
return entry
raise ShEventNotFound(tok)
def reset_idx(self):
"""
Reset the index of the current position in the history
"""
self.idx = -1
def up(self):
"""
Move upwards in the history.
"""
# Save the unfinished line user is typing before showing entries from history
history = self.getlist()
if self.idx == -1:
self.templine = self.stash.mini_buffer.modifiable_string.rstrip()
self.idx += 1
if self.idx >= len(history):
self.idx = len(history) - 1
else:
entry = history[self.idx]
# If move up away from an unfinished input line, try search history for
# a line starts with the unfinished line
if self.idx == 0 and self.ipython_style_history_search:
for idx, hs in enumerate(history):
if hs.startswith(self.templine):
entry = hs
self.idx = idx
break
self.stash.mini_buffer.feed(None, entry)
def down(self):
"""
Move downwards in the history
"""
history = self.getlist()
self.idx -= 1
if self.idx < -1:
self.idx = -1
else:
if self.idx == -1:
entry = self.templine
else:
entry = history[self.idx]
self.stash.mini_buffer.feed(None, entry)
| [
2,
12,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
44919,
2484,
5128,
2106,
198,
37811,
198,
11748,
33918,
198,
198,
6738,
38305,
13,
8019,
13,
8019,
82,
6404,
1330,
25801,
198,
62,
9078,
7753,
62,
796,
11593,
7753,
834,
13,
35312,
7203,
14,
4943,
58,
12,
16,
60,
198,
82,
6404,
7,
69,
6,
9078,
7753,
25,
1391,
62,
9078,
7753,
62,
92,
11537,
198,
198,
6738,
38305,
13,
10057,
13,
1477,
11321,
1330,
911,
9237,
3673,
21077,
628,
198,
4871,
911,
18122,
7,
15252,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
770,
1398,
318,
4497,
329,
5128,
2106,
13,
198,
220,
220,
220,
1058,
17143,
38305,
25,
262,
44919,
2484,
4755,
198,
220,
220,
220,
1058,
4906,
38305,
25,
44919,
2484,
198,
220,
220,
220,
37227,
628,
220,
220,
220,
412,
7792,
3727,
2751,
796,
366,
40477,
12,
23,
1,
198,
220,
220,
220,
5550,
38865,
796,
45434,
12286,
1,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
3440,
7,
565,
82,
11,
3108,
11,
38305,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8778,
262,
2106,
422,
257,
3108,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3108,
25,
3108,
284,
3440,
422,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3108,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
4566,
25,
262,
44919,
2484,
4755,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
4566,
25,
44919,
2484,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
262,
2106,
9639,
422,
262,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
911,
18122,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
427,
71,
796,
537,
82,
7,
301,
1077,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
6978,
11,
366,
81,
1600,
21004,
28,
565,
82,
13,
24181,
3727,
2751,
8,
355,
957,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
289,
796,
33918,
13,
46030,
7,
84,
15931,
1343,
957,
13,
961,
28955,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
289,
796,
19779,
1273,
64,
2484,
13,
43282,
1298,
537,
82,
13,
2220,
62,
727,
62,
18982,
7,
6978,
38165,
198,
220,
220,
220,
220,
220,
220,
220,
427,
71,
13557,
10034,
1749,
796,
289,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
427,
71,
628,
220,
220,
220,
2488,
4871,
24396,
198,
220,
220,
220,
825,
3440,
62,
727,
62,
18982,
7,
565,
82,
11,
3108,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8778,
262,
2695,
286,
281,
1468,
12,
7635,
2106,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3108,
25,
3108,
284,
3440,
422,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3108,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
262,
3951,
9639,
422,
262,
2393,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
1351,
286,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
6978,
11,
366,
81,
1600,
21004,
28,
565,
82,
13,
24181,
3727,
2751,
8,
355,
957,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3951,
796,
685,
1370,
13,
36311,
3419,
329,
1627,
287,
957,
13,
961,
6615,
3419,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
3951,
628,
220,
220,
220,
825,
3613,
7,
944,
11,
3108,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
12793,
262,
2106,
284,
257,
3108,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3108,
25,
3108,
284,
3613,
284,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3108,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
351,
1280,
7,
6978,
11,
366,
86,
1600,
21004,
28,
944,
13,
24181,
3727,
2751,
8,
355,
277,
448,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
796,
33918,
13,
67,
8142,
7,
944,
13557,
10034,
1749,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
448,
13,
13564,
7,
84,
15931,
1343,
264,
8,
220,
1303,
4155,
28000,
1098,
628,
220,
220,
220,
825,
1598,
7,
944,
11,
2496,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11459,
262,
2106,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2496,
25,
2106,
284,
1598,
393,
6045,
329,
1459,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2106,
25,
965,
393,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2496,
318,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
796,
2116,
13557,
14421,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2496,
287,
2116,
13557,
10034,
1749,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13557,
10034,
1749,
58,
16793,
60,
628,
220,
220,
220,
825,
1598,
62,
439,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11459,
477,
25985,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
10034,
1749,
796,
23884,
628,
220,
220,
220,
825,
16075,
7,
944,
11,
2496,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
48408,
262,
2106,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
2496,
25,
27421,
284,
651,
262,
2106,
329,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
2496,
25,
965,
393,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
14421,
796,
2496,
628,
220,
220,
220,
825,
751,
7,
944,
11,
1627,
11,
1464,
28,
25101,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3060,
257,
1627,
284,
262,
2106,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1627,
25,
1627,
284,
751,
284,
2106,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1627,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1464,
25,
1464,
751,
428,
1627,
11,
7692,
286,
4566,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
1464,
25,
20512,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
14421,
407,
287,
2116,
13557,
10034,
1749,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
10034,
1749,
58,
944,
13557,
14421,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
18818,
796,
1627,
13,
36311,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
938,
62,
1370,
796,
357,
944,
13557,
10034,
1749,
58,
944,
13557,
14421,
7131,
12,
16,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
944,
13557,
10034,
1749,
58,
944,
13557,
14421,
12962,
1875,
657,
2073,
6045,
8,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
1464,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2198,
611,
428,
1627,
815,
307,
2087,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18818,
6624,
938,
62,
1370,
290,
407,
2116,
13,
12154,
62,
23352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
2948,
4274,
3951,
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,
220,
220,
220,
220,
611,
1627,
13,
9688,
2032,
342,
7203,
366,
8,
290,
2116,
13,
24717,
62,
1929,
2737,
10223,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
7808,
3951,
3599,
351,
257,
13216,
10223,
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,
2116,
13557,
10034,
1749,
58,
944,
13557,
14421,
4083,
33295,
7,
33565,
1496,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
4155,
3509,
7857,
198,
220,
220,
220,
220,
220,
220,
220,
981,
18896,
7,
944,
13557,
10034,
1749,
58,
944,
13557,
14421,
12962,
1875,
3509,
7,
15,
11,
2116,
13,
9806,
7857,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
10034,
1749,
58,
944,
13557,
14421,
4083,
12924,
7,
15,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
13259,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
42503,
62,
312,
87,
3419,
628,
220,
220,
220,
825,
651,
4868,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
257,
1351,
286,
262,
1459,
2106,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
1351,
286,
1459,
2106,
12784,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
1351,
286,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13557,
14421,
407,
287,
2116,
13557,
10034,
1749,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13557,
10034,
1749,
58,
944,
13557,
14421,
60,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13557,
10034,
1749,
58,
944,
13557,
14421,
7131,
3712,
12,
16,
60,
628,
220,
220,
220,
825,
2989,
7,
944,
11,
284,
74,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
11140,
262,
2106,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
284,
74,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
284,
74,
25,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
25,
938,
5726,
287,
2106,
12336,
262,
2989,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
81,
4906,
25,
965,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2106,
796,
2116,
13,
1136,
4868,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2989,
62,
8841,
796,
284,
74,
58,
16,
47715,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2989,
62,
8841,
6624,
10148,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2989,
62,
8841,
6624,
705,
0,
10354,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2106,
58,
15,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
87,
796,
493,
7,
12947,
62,
8841,
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,
1441,
2106,
58,
3712,
12,
16,
7131,
312,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
12901,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
911,
9237,
3673,
21077,
7,
83,
482,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
11052,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
5726,
287,
2106,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5726,
13,
9688,
2032,
342,
7,
12947,
62,
8841,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
5726,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
911,
9237,
3673,
21077,
7,
83,
482,
8,
628,
220,
220,
220,
825,
13259,
62,
312,
87,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
30027,
262,
6376,
286,
262,
1459,
2292,
287,
262,
2106,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
87,
796,
532,
16,
628,
220,
220,
220,
825,
510,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10028,
21032,
287,
262,
2106,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
12793,
262,
34419,
1627,
2836,
318,
19720,
878,
4478,
12784,
422,
2106,
198,
220,
220,
220,
220,
220,
220,
220,
2106,
796,
2116,
13,
1136,
4868,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
312,
87,
6624,
532,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11498,
489,
500,
796,
2116,
13,
301,
1077,
13,
45313,
62,
22252,
13,
4666,
16823,
62,
8841,
13,
81,
36311,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
87,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
312,
87,
18189,
18896,
7,
23569,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
87,
796,
18896,
7,
23569,
8,
532,
352,
628,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
796,
2106,
58,
944,
13,
312,
87,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
1002,
1445,
510,
1497,
422,
281,
34419,
5128,
1627,
11,
1949,
2989,
2106,
329,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
257,
1627,
4940,
351,
262,
34419,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
312,
87,
6624,
657,
290,
2116,
13,
541,
7535,
62,
7635,
62,
23569,
62,
12947,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
4686,
87,
11,
289,
82,
287,
27056,
378,
7,
23569,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
289,
82,
13,
9688,
2032,
342,
7,
944,
13,
11498,
489,
500,
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,
5726,
796,
289,
82,
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,
312,
87,
796,
4686,
87,
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,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
301,
1077,
13,
45313,
62,
22252,
13,
12363,
7,
14202,
11,
5726,
8,
628,
220,
220,
220,
825,
866,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
10028,
44890,
287,
262,
2106,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2106,
796,
2116,
13,
1136,
4868,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
87,
48185,
352,
198,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
312,
87,
1279,
532,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
312,
87,
796,
532,
16,
628,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
312,
87,
6624,
532,
16,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
796,
2116,
13,
11498,
489,
500,
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,
5726,
796,
2106,
58,
944,
13,
312,
87,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
301,
1077,
13,
45313,
62,
22252,
13,
12363,
7,
14202,
11,
5726,
8,
198
] | 2.067726 | 2,894 |
from .gae import GAE, VGAE
| [
6738,
764,
25002,
1330,
402,
14242,
11,
569,
9273,
36,
201,
198
] | 2.333333 | 12 |
import re
from random import randrange
from model.contact import Contact
| [
11748,
302,
198,
6738,
4738,
1330,
43720,
9521,
198,
6738,
2746,
13,
32057,
1330,
14039,
628,
628,
198
] | 4.277778 | 18 |
import numpy
import heapq
import scipy.sparse
from apgl.graph.AbstractSingleGraph import AbstractSingleGraph
class DictGraph(AbstractSingleGraph):
"""
A graph with nodes stored in a dictionary. In particular the graph data structure is a
dict of dicts. Edges and vertices can be labeled with anything.
"""
def __init__(self, undirected=True):
"""
Create a new DictGraph.
:param undirected: Specify whether the graph has directed or undirected edges
:type undirected: `bool`
"""
self.undirected = undirected
self.adjacencies = {}
self.vertices = {}
def addEdge(self, vertex1, vertex2, value=1.0):
"""
Add an edge between two vertices.
:param vertex1: The name of the first vertex.
:param vertex2: The name of the second vertex.
:param value: The value of the edge.
"""
if value == None:
raise ValueError("Cannot have None as edge value")
self.__touchVertex(vertex1)
self.__touchVertex(vertex2)
self.adjacencies[vertex1][vertex2] = value
if self.undirected:
self.adjacencies[vertex2][vertex1] = value
def addEdges(self, edgeList, edgeValues=None):
"""
Add a set of edges to this graph given by a list of tuples of vertex ids.
The value of each edge is simply set to 1 if edgeValues=None otherwise
it is set to the corresponding entry of edgeValues.
:param edgeList: A list of pairs of verted ids
:param edgeValues: A corresponding list of vertex values.
"""
i = 0
for edge in edgeList:
(vertex1, vertex2) = edge
if edgeValues == None:
value = 1
else:
value = edgeValues[i]
self.__touchVertex(vertex1)
self.__touchVertex(vertex2)
self.adjacencies[vertex1][vertex2] = value
if self.undirected:
self.adjacencies[vertex2][vertex1] = value
i += 1
def __touchVertex(self, vertexId):
"""
If the vertex exists, do nothing. Otherwise add it to vertices and
adjacencies.
"""
if vertexId not in self.vertices:
self.vertices[vertexId] = None
if vertexId not in self.adjacencies:
self.adjacencies[vertexId] = {}
def removeEdge(self, vertex1, vertex2):
"""
Remove an edge. Does not remove the vertices.
:param vertex1: The name of the first vertex.
:param vertex2: The name of the second vertex.
"""
self.__removeDirectedEdge(vertex1, vertex2)
if self.undirected:
self.__removeDirectedEdge(vertex2, vertex1)
def isUndirected(self):
"""
Returns true if the current graph is undirected, otherwise false.
"""
return self.undirected
def getNumEdges(self):
"""
Returns the total number of edges in graph.
"""
numEdges = 0
for vertex1 in self.adjacencies.keys():
numEdges += len(self.adjacencies[vertex1])
if not self.undirected:
return numEdges
else:
#Count self edges again
for vertex1 in self.adjacencies.keys():
if vertex1 in self.adjacencies[vertex1]:
numEdges += 1
return numEdges/2
def getNumVertices(self):
"""
Returns the number of vertices in the graph.
"""
return len(self.adjacencies)
def getEdge(self, vertex1, vertex2):
"""
Returns the value of the edge between two vertices. If there is no edge
between the vertices None is returned.
:param vertex1: The name of the first vertex.
:param vertex2: The name of the second vertex.
"""
if vertex1 not in self.adjacencies:
raise ValueError("Vertex is not present in graph: " + str(vertex1))
if vertex2 not in self.adjacencies:
raise ValueError("Vertex is not present in graph: " + str(vertex2))
if vertex2 not in self.adjacencies[vertex1]:
return None
else:
return self.adjacencies[vertex1][vertex2]
def neighbours(self, vertexId):
"""
Find a list of neighbours of the current vertex. In a directed graph, it
is the list of all vertices with an edge from the current vertex.
:param vertexId: The id of the vertex.
"""
if vertexId not in self.adjacencies:
raise ValueError("Vertex is not present in graph: " + str(vertexId))
return list(self.adjacencies[vertexId].keys())
def getVertex(self, vertexId):
"""
Returns the label of the given vertex, or None if no label.
:param vertex: The name of the first vertex.
"""
if vertexId not in self.vertices:
raise ValueError("Vertex is not present in graph: " + str(vertexId))
return self.vertices[vertexId]
def setVertex(self, vertexId, vertex):
"""
Sets the vertexId with the value. Overwrites value if already present.
"""
self.__touchVertex(vertexId)
self.vertices[vertexId] = vertex
def getAllVertexIds(self):
"""
Returns a list of the vertex ids (or names) in this graph.
"""
return list(self.vertices.keys())
def getAllEdges(self):
"""
Returns a list of tuples of all the edges of this graph.
"""
edges = []
for vertex1 in list(self.vertices.keys()):
for vertex2 in self.neighbours(vertex1):
if self.undirected == True and (vertex2, vertex1) not in edges:
edges.append((vertex1, vertex2))
elif self.undirected == False:
edges.append((vertex1, vertex2))
return edges
def getWeightMatrix(self):
"""
Returns a weight matrix representation of the graph as a numpy array. The
indices in the matrix correspond to the keys returned by getAllVertexIds,
and edge labels are assigned to 1 for edges with non-numeric values.
"""
W = numpy.zeros((self.getNumVertices(), self.getNumVertices()))
return self.__populateWeightMatrix(W)
def getSparseWeightMatrix(self, format="lil"):
"""
Returns a weight matrix representation of the graph as a scipy sparse
lil_matrix by default. The indices in the matrix correspond to the keys
returned by getAllVertexIds. Edge labels are assigned to 1 for edges with
non-numeric values. Available formats are: lil for scipy.sparse.lil_matrix,
csr for scipy.sparse.csr_matrix, csc for scipy.sparse.csc_matrix, and
pysparse for pysparse's ll_mat.
:param format: The format of the sparse matrix.
"""
if format=="lil":
W = scipy.sparse.lil_matrix((self.size, self.size))
W = self.__populateWeightMatrix(W)
elif format=="csr":
W = scipy.sparse.lil_matrix((self.size, self.size))
W = self.__populateWeightMatrix(W)
W = W.tocsr()
elif format=="csc":
W = scipy.sparse.lil_matrix((self.size, self.size))
W = self.__populateWeightMatrix(W)
W = W.tocsc()
elif format=="pysparse":
from pysparse import spmatrix
W = spmatrix.ll_mat(self.size, self.size)
W = self.__populateWeightMatrix(W)
else:
raise ValueError("Invalid format: " + format)
return W
def __populateWeightMatrix(self, W):
"""
Fill the weight matrix W with edge weights according to this graph.
"""
keys = self.vertices.keys()
keyInds = {}
i = 0
for k in keys:
keyInds[k] = i
i += 1
for vertex1 in keys:
for vertex2 in self.neighbours(vertex1):
if self.undirected == True:
try:
edgeVal = self.adjacencies[vertex1][vertex2]
W[keyInds[vertex1], keyInds[vertex2]] = edgeVal
W[keyInds[vertex2], keyInds[vertex1]] = edgeVal
except:
W[keyInds[vertex1], keyInds[vertex2]] = 1
W[keyInds[vertex2], keyInds[vertex1]] = 1
elif self.undirected == False:
try:
W[keyInds[vertex1], keyInds[vertex2]] = self.adjacencies[vertex1][vertex2]
except:
W[keyInds[vertex1], keyInds[vertex2]] = 1
return W
def getAllEdgeIndices(self):
"""
Returns a numpy array of size (numEdges x 2) of edge index pairs V. The ith
row of V, V[i, :], corresponds to an edge from V[i, 0] to V[i, 1]. The corresponding
vertex names are found using getAllVertexIds().
"""
edges = numpy.zeros((self.getNumEdges(), 2), numpy.int)
keyInds = {}
i = 0
for k in self.vertices.keys():
keyInds[k] = i
i += 1
i = 0
for vertex1 in self.vertices.keys():
for vertex2 in self.neighbours(vertex1):
if self.undirected and keyInds[vertex2] >= keyInds[vertex1] or not self.undirected:
edges[i, :] = numpy.array([keyInds[vertex1], keyInds[vertex2]])
i += 1
return edges
def subgraph(self, vertexIds):
"""
Compute the subgraph containing only the corresponding vertexIds and
the edges between them.
"""
subgraph = DictGraph(self.undirected)
"""
edgeList = self.getAllEdges()
subgraphEdgeList = []
for edge in edgeList:
(vertex1, vertex2) = edge
if vertex1 in vertexIds and vertex2 in vertexIds:
subgraphEdgeList.append(edge)
subgraph.addEdges(subgraphEdgeList)
"""
vertexIds = set(vertexIds)
for vertexId in vertexIds:
if vertexId in self.adjacencies.keys():
subgraph.__touchVertex(vertexId)
subgraph.adjacencies[vertexId] = self.adjacencies[vertexId].copy()
subgraph.vertices[vertexId] = self.vertices[vertexId]
deleteIdList = []
#Now remove the elements in the adjacencies:
for vertex1 in subgraph.adjacencies.keys():
for vertex2 in subgraph.adjacencies[vertex1].keys():
if vertex2 not in vertexIds:
deleteIdList.append((vertex1, vertex2))
for vertex1, vertex2 in deleteIdList:
del subgraph.adjacencies[vertex1][vertex2]
return subgraph
def neighbourOf(self, vertex):
"""
Returns the list of neighbours of the current neighbour.
"""
lst = []
for (v1, adj) in self.adjacencies.items():
if vertex in adj.keys():
lst.append(v1)
return lst
def outDegreeSequence(self):
"""
Find the out degree sequence. Return the sequence as a vector along with
the corresponding vertices in a list.
"""
vertexList = []
degSeq = numpy.zeros(self.getNumVertices(), numpy.int)
vertexIds = self.getAllVertexIds()
for i in range(len(vertexIds)):
vertex = vertexIds[i]
degSeq[i] = len(self.adjacencies[vertex])
vertexList.append(vertex)
return degSeq, vertexList
def inDegreeSequence(self):
"""
Find the in degree sequence. Return the sequence as a vector along with
the corresponding vertices in a list.
"""
vertexList = []
degSeq = numpy.zeros(self.getNumVertices(), numpy.int)
vertexIds = self.getAllVertexIds()
for i in range(len(vertexIds)):
vertex = vertexIds[i]
for vertex2 in self.adjacencies[vertex].items():
degSeq[vertexIds.index(vertex2[0])] += 1
vertexList.append(vertex)
return degSeq, vertexList
def vertexExists(self, vertexId):
"""
Returns true if the vertex with the given name exists, otherwise false.
"""
return vertexId in self.vertices
def edgeExists(self, vertexId1, vertexId2):
"""
Return true if the edge exists between two vertices
"""
if not self.vertexExists(vertexId1):
return False
return vertexId2 in self.adjacencies[vertexId1]
def removeVertex(self, vertexId):
"""
Remove a vertex and all its edges.
:param vertexId: The id of the vertex to remove.
"""
neighbours = self.neighbours(vertexId)
del self.adjacencies[vertexId]
del self.vertices[vertexId]
if self.undirected:
for vertexId2 in neighbours:
del self.adjacencies[vertexId2][vertexId]
else:
for vertexId2 in self.getAllVertexIds():
if vertexId in self.adjacencies[vertexId2]:
del self.adjacencies[vertexId2][vertexId]
def toSparseGraph(self):
"""
Convert the current graph to a SparseGraph. Currently, vertex labels
are not converted.
"""
from apgl.graph import SparseGraph
W = self.getSparseWeightMatrix(format="csr")
graph = SparseGraph(W.shape[0], W=W, undirected=self.undirected)
return graph
def toPySparseGraph(self):
"""
Convert the current graph to a PySparseGraph. Currently, vertex labels
are not converted.
"""
from apgl.graph import PySparseGraph
W = self.getSparseWeightMatrix(format="pysparse")
graph = PySparseGraph(W.shape[0], W=W, undirected=self.undirected)
return graph
def degreeSequence(self):
"""
:returns: a vector of the degrees (including self edges) for each vertex for an undirected graph.
"""
if not self.isUndirected():
raise ValueError("degreeSequence is only for undirected graphs")
degSequence = self.outDegreeSequence()[0]
#A very slow method of adding diagonal entries
for j, i in enumerate(self.getAllVertexIds()):
if self.getEdge(i, i) != None:
degSequence[j] += 1
return degSequence
def getNumDirEdges(self):
"""
:returns: the number of edges, taking this graph as a directed graph.
"""
i = 0
for v in self.adjacencies.keys():
i += len(self.adjacencies[v])
return i
def dijkstrasAlgorithm(self, vertexId, neighbourLists=None):
"""
Run Dijkstras Algorithm on the graph for a given source vertex. Returns
an array with the distance to all vertices (including itself).
:param vertexId: the index of the source vertex.
:returns: An array whose ith element is the distance to vertex i.
"""
if neighbourLists!=None:
neighbourIndices, neighbourWeights = neighbourLists
if len(neighbourIndices) != self.getNumVertices() or len(neighbourWeights) != self.getNumVertices():
raise ValueError("Adjacency lists must be of same size as graph")
else:
neighbourIndices, neighbourWeights = self.adjacencyList()
vertexIds = self.getAllVertexIds()
previous = numpy.zeros(self.size)
#This is an array of distances so far with first col as distance, and 2nd cols
distance = numpy.ones((self.size, 2))*numpy.inf
distance[vertexIds.index(vertexId), 0] = 0
distance[:, 1] = numpy.arange(self.size)
distance = distance.tolist()
heapq.heapify(distance)
#Dictionary of the tuples indexed by the vertex index returned at the end
distanceDict = {}
for i in distance:
distanceDict[i[1]] = i
INVALID = -1
#distanceArray is distance for each vertex
distanceArray = numpy.ones(self.size)*numpy.inf
notVisited = numpy.ones(self.size, numpy.bool)
while len(distanceDict) != 0:
minVertexIndex = INVALID
while minVertexIndex == INVALID:
(minVertexDistance, minVertexIndex) = heapq.heappop(distance)
distanceArray[minVertexIndex] = minVertexDistance
del(distanceDict[minVertexIndex])
notVisited[minVertexIndex] = False
if minVertexDistance == numpy.inf:
break
minVertexIndex = int(minVertexIndex)
cols = numpy.array(neighbourIndices[minVertexIndex])
weights = numpy.array(neighbourWeights[minVertexIndex])
#updateDistances(cols, weights, minVertexDistance, distanceDict, previous, distanceArray)
#If no neighbours then move onto next vertex
if cols.size == 0:
break
newDistances = weights + minVertexDistance
isBetter = numpy.logical_and(newDistances < distanceArray[cols], notVisited[cols])
for i in range(cols[isBetter].shape[0]):
j = cols[isBetter][i]
distanceDict[j][1] = INVALID
distanceDict[j] = [newDistances[isBetter][i], j]
heapq.heappush(distance, distanceDict[j])
distanceArray[j] = newDistances[isBetter][i]
return distanceArray
def adjacencyList(self):
"""
Returns an adjacency list representation L of the graph, in which L[i]
is the list of all neighbour *indices* of vertex index i. Furthermore, the method
returns W in which W[i] which is the corresponding set of weights. In essence,
this method is a way to map vertex ids to indices.
:returns L: A list whose ith element is a list of neighbours for vertex i.
:returns W: A list whose ith element is a list of neighbour weights for vertex i.
"""
neighbourIndices = []
neighbourWeights = []
vertexIds = self.getAllVertexIds()
for i in vertexIds:
neighbours = list(map(vertexIds.index, self.adjacencies[i].keys()))
neighbourIndices.append(neighbours)
neighbourWeights.append(list(self.adjacencies[i].values()))
return neighbourIndices, neighbourWeights
def findAllDistances(self, useWeights=True):
"""
Use the repeated calls to Dijkstra' algorithm to find the shortest path
between all pairs of vertices. Note that the shortest path of a vertex
to itself is always zero. Returns a matrix whose ij th entry is the
shortest path between vertices i and j.
:returns: A matrix of shortest paths between all vertices.
"""
neighbourLists = self.adjacencyList()
P = numpy.zeros((self.size, self.size))
for i, vertexId in enumerate(self.getAllVertexIds()):
P[i, :] = self.dijkstrasAlgorithm(vertexId, neighbourLists)
return P
def toIGraph(self):
"""
Convert this graph into a igraph Graph object, which requires igraph to be
installed. Edge values are stored under the "value" index. Vertices
are stored as indices with a "label" value being the corresponding vertex value.
:returns: An igraph Graph object.
"""
try:
import igraph
except ImportError:
raise ImportError("toIGraph() requires igraph")
newGraph = igraph.Graph(self.getNumVertices(), directed= not self.isUndirected())
#Add all vertices
newGraph.vs["label"] = self.getVertices(self.getAllVertexIds())
vertices = self.getAllVertexIds()
allEdges = self.getAllEdges()
for i in range(len(allEdges)):
vertexId1 = vertices.index(allEdges[i][0])
vertexId2 = vertices.index(allEdges[i][1])
newGraph.add_edge(vertexId1, vertexId2)
newGraph.es[i]["value"] = self.getEdge(allEdges[i][0], allEdges[i][1])
return newGraph
vertices = None
adjacencies = None
undirected = None
size = property(getNumVertices, doc="The number of vertices in the graph") | [
198,
11748,
299,
32152,
198,
11748,
24575,
80,
198,
11748,
629,
541,
88,
13,
82,
29572,
220,
198,
6738,
2471,
4743,
13,
34960,
13,
23839,
28008,
37065,
1330,
27741,
28008,
37065,
628,
198,
4871,
360,
713,
37065,
7,
23839,
28008,
37065,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
317,
4823,
351,
13760,
8574,
287,
257,
22155,
13,
554,
1948,
262,
4823,
1366,
4645,
318,
257,
198,
220,
220,
220,
8633,
286,
8633,
82,
13,
1717,
3212,
290,
9421,
1063,
460,
307,
15494,
351,
1997,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
825,
11593,
15003,
834,
7,
944,
11,
3318,
1060,
276,
28,
17821,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
13610,
257,
649,
360,
713,
37065,
13,
220,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
3318,
1060,
276,
25,
18291,
1958,
1771,
262,
4823,
468,
7924,
393,
3318,
1060,
276,
13015,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
4906,
3318,
1060,
276,
25,
4600,
30388,
63,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
917,
1060,
276,
796,
3318,
1060,
276,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
324,
30482,
3976,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1851,
1063,
796,
23884,
628,
220,
220,
220,
825,
751,
37021,
7,
944,
11,
37423,
16,
11,
37423,
17,
11,
1988,
28,
16,
13,
15,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3060,
281,
5743,
1022,
734,
9421,
1063,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
16,
25,
383,
1438,
286,
262,
717,
37423,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
17,
25,
383,
1438,
286,
262,
1218,
37423,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
1988,
25,
383,
1988,
286,
262,
5743,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
1988,
6624,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
34,
34574,
423,
6045,
355,
5743,
1988,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
29332,
13414,
16886,
7,
332,
16886,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
29332,
13414,
16886,
7,
332,
16886,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
7131,
332,
16886,
17,
60,
796,
1988,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
17,
7131,
332,
16886,
16,
60,
796,
1988,
628,
220,
220,
220,
825,
751,
7407,
3212,
7,
944,
11,
5743,
8053,
11,
5743,
40161,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3060,
257,
900,
286,
13015,
284,
428,
4823,
1813,
416,
257,
1351,
286,
12777,
2374,
286,
37423,
220,
2340,
13,
198,
220,
220,
220,
220,
220,
220,
220,
383,
1988,
286,
1123,
5743,
318,
2391,
900,
284,
352,
611,
5743,
40161,
28,
14202,
4306,
198,
220,
220,
220,
220,
220,
220,
220,
340,
318,
900,
284,
262,
11188,
5726,
286,
5743,
40161,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
5743,
8053,
25,
317,
1351,
286,
14729,
286,
3326,
1513,
220,
2340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
5743,
40161,
25,
317,
11188,
1351,
286,
37423,
3815,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
5743,
287,
5743,
8053,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
332,
16886,
16,
11,
37423,
17,
8,
796,
5743,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
5743,
40161,
6624,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
796,
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,
1988,
796,
5743,
40161,
58,
72,
60,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
29332,
13414,
16886,
7,
332,
16886,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
29332,
13414,
16886,
7,
332,
16886,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
7131,
332,
16886,
17,
60,
796,
1988,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
17,
7131,
332,
16886,
16,
60,
796,
1988,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
220,
628,
220,
220,
220,
825,
11593,
29332,
13414,
16886,
7,
944,
11,
37423,
7390,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1002,
262,
37423,
7160,
11,
466,
2147,
13,
15323,
751,
340,
284,
9421,
1063,
290,
198,
220,
220,
220,
220,
220,
220,
220,
9224,
330,
3976,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
7390,
407,
287,
2116,
13,
1851,
1063,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1851,
1063,
58,
332,
16886,
7390,
60,
796,
6045,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
7390,
407,
287,
2116,
13,
324,
30482,
3976,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
60,
796,
23884,
628,
220,
220,
220,
825,
4781,
37021,
7,
944,
11,
37423,
16,
11,
37423,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
17220,
281,
5743,
13,
8314,
407,
4781,
262,
9421,
1063,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
16,
25,
383,
1438,
286,
262,
717,
37423,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
17,
25,
383,
1438,
286,
262,
1218,
37423,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
28956,
13470,
276,
37021,
7,
332,
16886,
16,
11,
37423,
17,
8,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
28956,
13470,
276,
37021,
7,
332,
16886,
17,
11,
37423,
16,
8,
628,
220,
220,
220,
825,
318,
31319,
1060,
276,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
2081,
611,
262,
1459,
4823,
318,
3318,
1060,
276,
11,
4306,
3991,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
917,
1060,
276,
628,
220,
220,
220,
825,
651,
33111,
7407,
3212,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
262,
2472,
1271,
286,
13015,
287,
4823,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
997,
7407,
3212,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
287,
2116,
13,
324,
30482,
3976,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
7407,
3212,
15853,
18896,
7,
944,
13,
324,
30482,
3976,
58,
332,
16886,
16,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
917,
1060,
276,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
997,
7407,
3212,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
12332,
2116,
13015,
757,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
287,
2116,
13,
324,
30482,
3976,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
16,
287,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
997,
7407,
3212,
15853,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
997,
7407,
3212,
14,
17,
628,
220,
220,
220,
825,
651,
33111,
42369,
1063,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
262,
1271,
286,
9421,
1063,
287,
262,
4823,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
18896,
7,
944,
13,
324,
30482,
3976,
8,
628,
220,
220,
220,
825,
651,
37021,
7,
944,
11,
37423,
16,
11,
37423,
17,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
262,
1988,
286,
262,
5743,
1022,
734,
9421,
1063,
13,
1002,
612,
318,
645,
5743,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1022,
262,
9421,
1063,
6045,
318,
4504,
13,
220,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
16,
25,
383,
1438,
286,
262,
717,
37423,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
17,
25,
383,
1438,
286,
262,
1218,
37423,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
16,
407,
287,
2116,
13,
324,
30482,
3976,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
13414,
16886,
318,
407,
1944,
287,
4823,
25,
366,
1343,
965,
7,
332,
16886,
16,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
17,
407,
287,
2116,
13,
324,
30482,
3976,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
13414,
16886,
318,
407,
1944,
287,
4823,
25,
366,
1343,
965,
7,
332,
16886,
17,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
17,
407,
287,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
5974,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
6045,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
7131,
332,
16886,
17,
60,
628,
220,
220,
220,
825,
23788,
7,
944,
11,
37423,
7390,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
9938,
257,
1351,
286,
23788,
286,
262,
1459,
37423,
13,
554,
257,
7924,
4823,
11,
340,
198,
220,
220,
220,
220,
220,
220,
220,
318,
262,
1351,
286,
477,
9421,
1063,
351,
281,
5743,
422,
262,
1459,
37423,
13,
220,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
7390,
25,
383,
4686,
286,
262,
37423,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
7390,
407,
287,
2116,
13,
324,
30482,
3976,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
13414,
16886,
318,
407,
1944,
287,
4823,
25,
366,
1343,
965,
7,
332,
16886,
7390,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
1351,
7,
944,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
4083,
13083,
28955,
628,
220,
220,
220,
825,
651,
13414,
16886,
7,
944,
11,
37423,
7390,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
262,
6167,
286,
262,
1813,
37423,
11,
393,
6045,
611,
645,
6167,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
25,
383,
1438,
286,
262,
717,
37423,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
7390,
407,
287,
2116,
13,
1851,
1063,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
13414,
16886,
318,
407,
1944,
287,
4823,
25,
366,
1343,
965,
7,
332,
16886,
7390,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
1851,
1063,
58,
332,
16886,
7390,
60,
628,
220,
220,
220,
825,
900,
13414,
16886,
7,
944,
11,
37423,
7390,
11,
37423,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
21394,
262,
37423,
7390,
351,
262,
1988,
13,
3827,
8933,
274,
1988,
611,
1541,
1944,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
834,
29332,
13414,
16886,
7,
332,
16886,
7390,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
1851,
1063,
58,
332,
16886,
7390,
60,
796,
37423,
628,
220,
220,
220,
825,
651,
3237,
13414,
16886,
7390,
82,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
1351,
286,
262,
37423,
220,
2340,
357,
273,
3891,
8,
287,
428,
4823,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1351,
7,
944,
13,
1851,
1063,
13,
13083,
28955,
628,
220,
220,
220,
825,
651,
3237,
7407,
3212,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
1351,
286,
12777,
2374,
286,
477,
262,
13015,
286,
428,
4823,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
13015,
796,
17635,
628,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
287,
1351,
7,
944,
13,
1851,
1063,
13,
13083,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
17,
287,
2116,
13,
710,
394,
65,
4662,
7,
332,
16886,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
6624,
6407,
290,
357,
332,
16886,
17,
11,
37423,
16,
8,
407,
287,
13015,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13015,
13,
33295,
19510,
332,
16886,
16,
11,
37423,
17,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13,
917,
1060,
276,
6624,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13015,
13,
33295,
19510,
332,
16886,
16,
11,
37423,
17,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
13015,
628,
220,
220,
220,
825,
651,
25844,
46912,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
3463,
17593,
10552,
286,
262,
4823,
355,
257,
299,
32152,
7177,
13,
383,
198,
220,
220,
220,
220,
220,
220,
220,
36525,
287,
262,
17593,
6053,
284,
262,
8251,
4504,
416,
651,
3237,
13414,
16886,
7390,
82,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
290,
5743,
14722,
389,
8686,
284,
352,
329,
13015,
351,
1729,
12,
77,
39223,
3815,
13,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
370,
796,
299,
32152,
13,
9107,
418,
19510,
944,
13,
1136,
33111,
42369,
1063,
22784,
2116,
13,
1136,
33111,
42369,
1063,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
2116,
13,
834,
12924,
5039,
25844,
46912,
7,
54,
8,
628,
198,
220,
220,
220,
825,
651,
50,
29572,
25844,
46912,
7,
944,
11,
5794,
2625,
75,
346,
1,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
3463,
17593,
10552,
286,
262,
4823,
355,
257,
629,
541,
88,
29877,
220,
198,
220,
220,
220,
220,
220,
220,
220,
42280,
62,
6759,
8609,
416,
4277,
13,
383,
36525,
287,
262,
17593,
6053,
284,
262,
8251,
220,
198,
220,
220,
220,
220,
220,
220,
220,
4504,
416,
651,
3237,
13414,
16886,
7390,
82,
13,
13113,
14722,
389,
8686,
284,
352,
329,
13015,
351,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1729,
12,
77,
39223,
3815,
13,
14898,
17519,
389,
25,
42280,
329,
629,
541,
88,
13,
82,
29572,
13,
75,
346,
62,
6759,
8609,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
269,
27891,
329,
629,
541,
88,
13,
82,
29572,
13,
6359,
81,
62,
6759,
8609,
11,
269,
1416,
329,
629,
541,
88,
13,
82,
29572,
13,
66,
1416,
62,
6759,
8609,
11,
290,
220,
198,
220,
220,
220,
220,
220,
220,
220,
279,
893,
29572,
329,
279,
893,
29572,
338,
32660,
62,
6759,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
5794,
25,
383,
5794,
286,
262,
29877,
17593,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
5794,
855,
1,
75,
346,
1298,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
629,
541,
88,
13,
82,
29572,
13,
75,
346,
62,
6759,
8609,
19510,
944,
13,
7857,
11,
2116,
13,
7857,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
2116,
13,
834,
12924,
5039,
25844,
46912,
7,
54,
8,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
5794,
855,
1,
6359,
81,
1298,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
629,
541,
88,
13,
82,
29572,
13,
75,
346,
62,
6759,
8609,
19510,
944,
13,
7857,
11,
2116,
13,
7857,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
2116,
13,
834,
12924,
5039,
25844,
46912,
7,
54,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
370,
13,
40301,
27891,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
5794,
855,
1,
66,
1416,
1298,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
629,
541,
88,
13,
82,
29572,
13,
75,
346,
62,
6759,
8609,
19510,
944,
13,
7857,
11,
2116,
13,
7857,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
2116,
13,
834,
12924,
5039,
25844,
46912,
7,
54,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
370,
13,
40301,
1416,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
5794,
855,
1,
79,
893,
29572,
1298,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
422,
279,
893,
29572,
1330,
599,
6759,
8609,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
599,
6759,
8609,
13,
297,
62,
6759,
7,
944,
13,
7857,
11,
2116,
13,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
796,
2116,
13,
834,
12924,
5039,
25844,
46912,
7,
54,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
44651,
5794,
25,
366,
1343,
5794,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
370,
220,
628,
220,
220,
220,
825,
11593,
12924,
5039,
25844,
46912,
7,
944,
11,
370,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
27845,
262,
3463,
17593,
370,
351,
5743,
19590,
1864,
284,
428,
4823,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8251,
796,
2116,
13,
1851,
1063,
13,
13083,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
5497,
82,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
8251,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
5497,
82,
58,
74,
60,
796,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
287,
8251,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
17,
287,
2116,
13,
710,
394,
65,
4662,
7,
332,
16886,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
6624,
6407,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5743,
7762,
796,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
7131,
332,
16886,
17,
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,
370,
58,
2539,
5497,
82,
58,
332,
16886,
16,
4357,
1994,
5497,
82,
58,
332,
16886,
17,
11907,
796,
5743,
7762,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
58,
2539,
5497,
82,
58,
332,
16886,
17,
4357,
1994,
5497,
82,
58,
332,
16886,
16,
11907,
796,
5743,
7762,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
58,
2539,
5497,
82,
58,
332,
16886,
16,
4357,
1994,
5497,
82,
58,
332,
16886,
17,
11907,
796,
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,
370,
58,
2539,
5497,
82,
58,
332,
16886,
17,
4357,
1994,
5497,
82,
58,
332,
16886,
16,
11907,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1288,
361,
2116,
13,
917,
1060,
276,
6624,
10352,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
58,
2539,
5497,
82,
58,
332,
16886,
16,
4357,
1994,
5497,
82,
58,
332,
16886,
17,
11907,
796,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
16,
7131,
332,
16886,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2845,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
370,
58,
2539,
5497,
82,
58,
332,
16886,
16,
4357,
1994,
5497,
82,
58,
332,
16886,
17,
11907,
796,
352,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
370,
628,
220,
220,
220,
825,
651,
3237,
37021,
5497,
1063,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
257,
299,
32152,
7177,
286,
2546,
357,
22510,
7407,
3212,
2124,
362,
8,
286,
5743,
6376,
14729,
569,
13,
383,
340,
71,
198,
220,
220,
220,
220,
220,
220,
220,
5752,
286,
569,
11,
569,
58,
72,
11,
1058,
4357,
24866,
284,
281,
5743,
422,
569,
58,
72,
11,
657,
60,
284,
569,
58,
72,
11,
352,
4083,
383,
11188,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
3891,
389,
1043,
1262,
651,
3237,
13414,
16886,
7390,
82,
22446,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
13015,
796,
299,
32152,
13,
9107,
418,
19510,
944,
13,
1136,
33111,
7407,
3212,
22784,
362,
828,
299,
32152,
13,
600,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
5497,
82,
796,
23884,
628,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
479,
287,
2116,
13,
1851,
1063,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
5497,
82,
58,
74,
60,
796,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
287,
2116,
13,
1851,
1063,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
17,
287,
2116,
13,
710,
394,
65,
4662,
7,
332,
16886,
16,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
290,
1994,
5497,
82,
58,
332,
16886,
17,
60,
18189,
1994,
5497,
82,
58,
332,
16886,
16,
60,
393,
407,
2116,
13,
917,
1060,
276,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13015,
58,
72,
11,
1058,
60,
796,
299,
32152,
13,
18747,
26933,
2539,
5497,
82,
58,
332,
16886,
16,
4357,
1994,
5497,
82,
58,
332,
16886,
17,
11907,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
352,
220,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
13015,
628,
198,
220,
220,
220,
825,
850,
34960,
7,
944,
11,
37423,
7390,
82,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
3082,
1133,
262,
850,
34960,
7268,
691,
262,
11188,
37423,
7390,
82,
290,
198,
220,
220,
220,
220,
220,
220,
220,
262,
13015,
1022,
606,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
796,
360,
713,
37065,
7,
944,
13,
917,
1060,
276,
8,
628,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5743,
8053,
796,
2116,
13,
1136,
3237,
7407,
3212,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
37021,
8053,
796,
17635,
628,
220,
220,
220,
220,
220,
220,
220,
329,
5743,
287,
5743,
8053,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
332,
16886,
16,
11,
37423,
17,
8,
796,
5743,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
16,
287,
37423,
7390,
82,
290,
37423,
17,
287,
37423,
7390,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
37021,
8053,
13,
33295,
7,
14907,
8,
628,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
13,
2860,
7407,
3212,
7,
7266,
34960,
37021,
8053,
8,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
82,
796,
900,
7,
332,
16886,
7390,
82,
8,
628,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
7390,
287,
37423,
7390,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
7390,
287,
2116,
13,
324,
30482,
3976,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
13,
834,
29332,
13414,
16886,
7,
332,
16886,
7390,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
60,
796,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
4083,
30073,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
34960,
13,
1851,
1063,
58,
332,
16886,
7390,
60,
796,
2116,
13,
1851,
1063,
58,
332,
16886,
7390,
60,
628,
220,
220,
220,
220,
220,
220,
220,
12233,
7390,
8053,
796,
17635,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
3844,
4781,
262,
4847,
287,
262,
9224,
330,
3976,
25,
198,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
287,
850,
34960,
13,
324,
30482,
3976,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
17,
287,
850,
34960,
13,
324,
30482,
3976,
58,
332,
16886,
16,
4083,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
17,
407,
287,
37423,
7390,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12233,
7390,
8053,
13,
33295,
19510,
332,
16886,
16,
11,
37423,
17,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
16,
11,
37423,
17,
287,
12233,
7390,
8053,
25,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
850,
34960,
13,
324,
30482,
3976,
58,
332,
16886,
16,
7131,
332,
16886,
17,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
850,
34960,
220,
628,
220,
220,
220,
825,
12250,
5189,
7,
944,
11,
37423,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
262,
1351,
286,
23788,
286,
262,
1459,
12250,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
628,
220,
220,
220,
220,
220,
220,
220,
300,
301,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
329,
357,
85,
16,
11,
9224,
8,
287,
2116,
13,
324,
30482,
3976,
13,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
287,
9224,
13,
13083,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
301,
13,
33295,
7,
85,
16,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
300,
301,
628,
220,
220,
220,
825,
503,
35,
1533,
631,
44015,
594,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
9938,
262,
503,
4922,
8379,
13,
8229,
262,
8379,
355,
257,
15879,
1863,
351,
198,
220,
220,
220,
220,
220,
220,
220,
262,
11188,
9421,
1063,
287,
257,
1351,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
8053,
796,
17635,
220,
198,
220,
220,
220,
220,
220,
220,
220,
3396,
4653,
80,
796,
299,
32152,
13,
9107,
418,
7,
944,
13,
1136,
33111,
42369,
1063,
22784,
299,
32152,
13,
600,
8,
628,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
82,
796,
2116,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
332,
16886,
7390,
82,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37423,
796,
37423,
7390,
82,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3396,
4653,
80,
58,
72,
60,
796,
18896,
7,
944,
13,
324,
30482,
3976,
58,
332,
16886,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37423,
8053,
13,
33295,
7,
332,
16886,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3396,
4653,
80,
11,
37423,
8053,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
825,
287,
35,
1533,
631,
44015,
594,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
9938,
262,
287,
4922,
8379,
13,
8229,
262,
8379,
355,
257,
15879,
1863,
351,
198,
220,
220,
220,
220,
220,
220,
220,
262,
11188,
9421,
1063,
287,
257,
1351,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
8053,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
3396,
4653,
80,
796,
299,
32152,
13,
9107,
418,
7,
944,
13,
1136,
33111,
42369,
1063,
22784,
299,
32152,
13,
600,
8,
628,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
82,
796,
2116,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
332,
16886,
7390,
82,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37423,
796,
37423,
7390,
82,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
17,
287,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
4083,
23814,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3396,
4653,
80,
58,
332,
16886,
7390,
82,
13,
9630,
7,
332,
16886,
17,
58,
15,
12962,
60,
15853,
352,
198,
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,
37423,
8053,
13,
33295,
7,
332,
16886,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3396,
4653,
80,
11,
37423,
8053,
628,
220,
220,
220,
825,
37423,
3109,
1023,
7,
944,
11,
37423,
7390,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
2081,
611,
262,
37423,
351,
262,
1813,
1438,
7160,
11,
4306,
3991,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
37423,
7390,
287,
2116,
13,
1851,
1063,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
825,
5743,
3109,
1023,
7,
944,
11,
37423,
7390,
16,
11,
37423,
7390,
17,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
8229,
2081,
611,
262,
5743,
7160,
1022,
734,
9421,
1063,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
332,
16886,
3109,
1023,
7,
332,
16886,
7390,
16,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1441,
10352,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
37423,
7390,
17,
287,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
16,
60,
628,
220,
220,
220,
825,
4781,
13414,
16886,
7,
944,
11,
37423,
7390,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
17220,
257,
37423,
290,
477,
663,
13015,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
7390,
25,
383,
4686,
286,
262,
37423,
284,
4781,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
23788,
796,
2116,
13,
710,
394,
65,
4662,
7,
332,
16886,
7390,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
60,
198,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13,
1851,
1063,
58,
332,
16886,
7390,
60,
628,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
917,
1060,
276,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
7390,
17,
287,
23788,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
17,
7131,
332,
16886,
7390,
60,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
37423,
7390,
17,
287,
2116,
13,
1136,
3237,
13414,
16886,
7390,
82,
33529,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
37423,
7390,
287,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
17,
5974,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
2116,
13,
324,
30482,
3976,
58,
332,
16886,
7390,
17,
7131,
332,
16886,
7390,
60,
628,
220,
220,
220,
825,
284,
50,
29572,
37065,
7,
944,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
38240,
262,
1459,
4823,
284,
257,
1338,
17208,
37065,
13,
16888,
11,
37423,
14722,
220,
198,
220,
220,
220,
220,
220,
220,
220,
389,
407,
11513,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
422,
2471,
4743,
13,
34960,
1330,
1338,
17208,
37065,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
370,
796,
2116,
13,
1136,
50,
29572,
25844,
46912,
7,
18982,
2625,
6359,
81,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
4823,
796,
1338,
17208,
37065,
7,
54,
13,
43358,
58,
15,
4357,
370,
28,
54,
11,
3318,
1060,
276,
28,
944,
13,
917,
1060,
276,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4823,
220,
628,
220,
220,
220,
825,
284,
20519,
50,
29572,
37065,
7,
944,
2599,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
38240,
262,
1459,
4823,
284,
257,
9485,
50,
29572,
37065,
13,
16888,
11,
37423,
14722,
220,
198,
220,
220,
220,
220,
220,
220,
220,
389,
407,
11513,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
422,
2471,
4743,
13,
34960,
1330,
9485,
50,
29572,
37065,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
370,
796,
2116,
13,
1136,
50,
29572,
25844,
46912,
7,
18982,
2625,
79,
893,
29572,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
4823,
796,
9485,
50,
29572,
37065,
7,
54,
13,
43358,
58,
15,
4357,
370,
28,
54,
11,
3318,
1060,
276,
28,
944,
13,
917,
1060,
276,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
4823,
220,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
825,
4922,
44015,
594,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
25,
257,
15879,
286,
262,
7370,
357,
8201,
2116,
13015,
8,
329,
1123,
37423,
329,
281,
3318,
1060,
276,
4823,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
407,
2116,
13,
271,
31319,
1060,
276,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
16863,
44015,
594,
318,
691,
329,
3318,
1060,
276,
28770,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
3396,
44015,
594,
796,
2116,
13,
448,
35,
1533,
631,
44015,
594,
3419,
58,
15,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
32,
845,
3105,
2446,
286,
4375,
40039,
12784,
198,
220,
220,
220,
220,
220,
220,
220,
329,
474,
11,
1312,
287,
27056,
378,
7,
944,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
2116,
13,
1136,
37021,
7,
72,
11,
1312,
8,
14512,
6045,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3396,
44015,
594,
58,
73,
60,
15853,
352,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
3396,
44015,
594,
220,
628,
220,
220,
220,
825,
651,
33111,
35277,
7407,
3212,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
25,
262,
1271,
286,
13015,
11,
2263,
428,
4823,
355,
257,
7924,
4823,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
796,
657,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
410,
287,
2116,
13,
324,
30482,
3976,
13,
13083,
33529,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
15853,
18896,
7,
944,
13,
324,
30482,
3976,
58,
85,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
1312,
628,
220,
220,
220,
825,
2566,
73,
74,
2536,
292,
2348,
42289,
7,
944,
11,
37423,
7390,
11,
12250,
43,
1023,
28,
14202,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5660,
360,
45961,
2536,
292,
978,
42289,
319,
262,
4823,
329,
257,
1813,
2723,
37423,
13,
16409,
198,
220,
220,
220,
220,
220,
220,
220,
281,
7177,
351,
262,
5253,
284,
477,
9421,
1063,
357,
8201,
2346,
737,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
17143,
37423,
7390,
25,
262,
6376,
286,
262,
2723,
37423,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
25,
1052,
7177,
3025,
340,
71,
5002,
318,
262,
5253,
284,
37423,
1312,
13,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
611,
12250,
43,
1023,
0,
28,
14202,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12250,
5497,
1063,
11,
12250,
1135,
2337,
796,
12250,
43,
1023,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
18896,
7,
710,
394,
6084,
5497,
1063,
8,
14512,
2116,
13,
1136,
33111,
42369,
1063,
3419,
393,
18896,
7,
710,
394,
6084,
1135,
2337,
8,
14512,
2116,
13,
1136,
33111,
42369,
1063,
33529,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
11052,
12331,
7203,
2782,
30482,
1387,
8341,
1276,
307,
286,
976,
2546,
355,
4823,
4943,
198,
220,
220,
220,
220,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12250,
5497,
1063,
11,
12250,
1135,
2337,
796,
2116,
13,
324,
30482,
1387,
8053,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
82,
796,
2116,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
2180,
796,
299,
32152,
13,
9107,
418,
7,
944,
13,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
1212,
318,
281,
7177,
286,
18868,
523,
1290,
351,
717,
951,
355,
5253,
11,
290,
362,
358,
951,
82,
220,
198,
220,
220,
220,
220,
220,
220,
220,
5253,
796,
299,
32152,
13,
1952,
19510,
944,
13,
7857,
11,
362,
4008,
9,
77,
32152,
13,
10745,
198,
220,
220,
220,
220,
220,
220,
220,
5253,
58,
332,
16886,
7390,
82,
13,
9630,
7,
332,
16886,
7390,
828,
657,
60,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
5253,
58,
45299,
352,
60,
796,
299,
32152,
13,
283,
858,
7,
944,
13,
7857,
8,
198,
220,
220,
220,
220,
220,
220,
220,
5253,
796,
5253,
13,
83,
349,
396,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
24575,
80,
13,
258,
499,
1958,
7,
30246,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
35,
14188,
286,
262,
12777,
2374,
41497,
416,
262,
37423,
6376,
4504,
379,
262,
886,
220,
198,
220,
220,
220,
220,
220,
220,
220,
5253,
35,
713,
796,
23884,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
5253,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
35,
713,
58,
72,
58,
16,
11907,
796,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
3268,
23428,
2389,
796,
532,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1303,
30246,
19182,
318,
5253,
329,
1123,
37423,
220,
198,
220,
220,
220,
220,
220,
220,
220,
5253,
19182,
796,
299,
32152,
13,
1952,
7,
944,
13,
7857,
27493,
77,
32152,
13,
10745,
198,
220,
220,
220,
220,
220,
220,
220,
407,
15854,
863,
796,
299,
32152,
13,
1952,
7,
944,
13,
7857,
11,
299,
32152,
13,
30388,
8,
628,
220,
220,
220,
220,
220,
220,
220,
981,
18896,
7,
30246,
35,
713,
8,
14512,
657,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
13414,
16886,
15732,
796,
3268,
23428,
2389,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
981,
949,
13414,
16886,
15732,
6624,
3268,
23428,
2389,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
1084,
13414,
16886,
45767,
11,
949,
13414,
16886,
15732,
8,
796,
24575,
80,
13,
258,
1324,
404,
7,
30246,
8,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
19182,
58,
1084,
13414,
16886,
15732,
60,
796,
949,
13414,
16886,
45767,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1619,
7,
30246,
35,
713,
58,
1084,
13414,
16886,
15732,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
407,
15854,
863,
58,
1084,
13414,
16886,
15732,
60,
796,
10352,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
220,
949,
13414,
16886,
45767,
6624,
299,
32152,
13,
10745,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
13414,
16886,
15732,
796,
493,
7,
1084,
13414,
16886,
15732,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
951,
82,
796,
299,
32152,
13,
18747,
7,
710,
394,
6084,
5497,
1063,
58,
1084,
13414,
16886,
15732,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19590,
796,
299,
32152,
13,
18747,
7,
710,
394,
6084,
1135,
2337,
58,
1084,
13414,
16886,
15732,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1303,
19119,
20344,
1817,
7,
4033,
82,
11,
19590,
11,
949,
13414,
16886,
45767,
11,
5253,
35,
713,
11,
2180,
11,
5253,
19182,
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,
1303,
1532,
645,
23788,
788,
1445,
4291,
1306,
37423,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
611,
951,
82,
13,
7857,
6624,
657,
25,
220,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2270,
220,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
20344,
1817,
796,
19590,
1343,
949,
13414,
16886,
45767,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
28971,
796,
299,
32152,
13,
6404,
605,
62,
392,
7,
3605,
20344,
1817,
1279,
5253,
19182,
58,
4033,
82,
4357,
407,
15854,
863,
58,
4033,
82,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
4033,
82,
58,
271,
28971,
4083,
43358,
58,
15,
60,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
474,
796,
951,
82,
58,
271,
28971,
7131,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
35,
713,
58,
73,
7131,
16,
60,
796,
3268,
23428,
2389,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
35,
713,
58,
73,
60,
796,
685,
3605,
20344,
1817,
58,
271,
28971,
7131,
72,
4357,
474,
60,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24575,
80,
13,
258,
1324,
1530,
7,
30246,
11,
5253,
35,
713,
58,
73,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
19182,
58,
73,
60,
796,
649,
20344,
1817,
58,
271,
28971,
7131,
72,
60,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
5253,
19182,
628,
220,
220,
220,
825,
9224,
330,
1387,
8053,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
16409,
281,
9224,
330,
1387,
1351,
10552,
406,
286,
262,
4823,
11,
287,
543,
406,
58,
72,
60,
198,
220,
220,
220,
220,
220,
220,
220,
318,
262,
1351,
286,
477,
12250,
1635,
521,
1063,
9,
286,
37423,
6376,
1312,
13,
11399,
11,
262,
2446,
220,
198,
220,
220,
220,
220,
220,
220,
220,
5860,
370,
287,
543,
370,
58,
72,
60,
543,
318,
262,
11188,
900,
286,
19590,
13,
554,
12799,
11,
220,
198,
220,
220,
220,
220,
220,
220,
220,
428,
2446,
318,
257,
835,
284,
3975,
37423,
220,
2340,
284,
36525,
13,
220,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
406,
25,
317,
1351,
3025,
340,
71,
5002,
318,
257,
1351,
286,
23788,
329,
37423,
1312,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
370,
25,
317,
1351,
3025,
340,
71,
5002,
318,
257,
1351,
286,
12250,
19590,
329,
37423,
1312,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
12250,
5497,
1063,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
12250,
1135,
2337,
796,
17635,
198,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
82,
796,
2116,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
37423,
7390,
82,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23788,
796,
1351,
7,
8899,
7,
332,
16886,
7390,
82,
13,
9630,
11,
2116,
13,
324,
30482,
3976,
58,
72,
4083,
13083,
3419,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12250,
5497,
1063,
13,
33295,
7,
710,
394,
65,
4662,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12250,
1135,
2337,
13,
33295,
7,
4868,
7,
944,
13,
324,
30482,
3976,
58,
72,
4083,
27160,
3419,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
12250,
5497,
1063,
11,
12250,
1135,
2337,
628,
220,
220,
220,
825,
1064,
3237,
20344,
1817,
7,
944,
11,
779,
1135,
2337,
28,
17821,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
5765,
262,
5100,
3848,
284,
360,
45961,
12044,
6,
220,
11862,
284,
1064,
262,
35581,
3108,
220,
198,
220,
220,
220,
220,
220,
220,
220,
1022,
477,
14729,
286,
9421,
1063,
13,
5740,
326,
262,
35581,
3108,
286,
257,
37423,
220,
198,
220,
220,
220,
220,
220,
220,
220,
284,
2346,
318,
1464,
6632,
13,
16409,
257,
17593,
3025,
1312,
73,
294,
5726,
318,
262,
198,
220,
220,
220,
220,
220,
220,
220,
35581,
3108,
1022,
9421,
1063,
1312,
290,
474,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
25,
220,
317,
17593,
286,
35581,
13532,
1022,
477,
9421,
1063,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
12250,
43,
1023,
796,
2116,
13,
324,
30482,
1387,
8053,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
350,
796,
299,
32152,
13,
9107,
418,
19510,
944,
13,
7857,
11,
2116,
13,
7857,
4008,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
11,
37423,
7390,
287,
27056,
378,
7,
944,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
350,
58,
72,
11,
1058,
60,
796,
2116,
13,
67,
45961,
2536,
292,
2348,
42289,
7,
332,
16886,
7390,
11,
12250,
43,
1023,
8,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
350,
220,
628,
220,
220,
220,
825,
284,
3528,
1470,
7,
944,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
38240,
428,
4823,
656,
257,
45329,
1470,
29681,
2134,
11,
543,
4433,
45329,
1470,
284,
307,
198,
220,
220,
220,
220,
220,
220,
220,
6589,
13,
13113,
3815,
389,
8574,
739,
262,
366,
8367,
1,
6376,
13,
24417,
1063,
198,
220,
220,
220,
220,
220,
220,
220,
389,
8574,
355,
36525,
351,
257,
366,
18242,
1,
1988,
852,
262,
11188,
37423,
1988,
13,
628,
220,
220,
220,
220,
220,
220,
220,
1058,
7783,
82,
25,
220,
1052,
45329,
1470,
29681,
2134,
13,
198,
220,
220,
220,
220,
220,
220,
220,
37227,
198,
220,
220,
220,
220,
220,
220,
220,
1949,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1330,
45329,
1470,
198,
220,
220,
220,
220,
220,
220,
220,
2845,
17267,
12331,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5298,
17267,
12331,
7203,
1462,
3528,
1470,
3419,
4433,
45329,
1470,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
649,
37065,
796,
45329,
1470,
13,
37065,
7,
944,
13,
1136,
33111,
42369,
1063,
22784,
7924,
28,
407,
2116,
13,
271,
31319,
1060,
276,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
1303,
4550,
477,
9421,
1063,
220,
198,
220,
220,
220,
220,
220,
220,
220,
649,
37065,
13,
14259,
14692,
18242,
8973,
796,
2116,
13,
1136,
42369,
1063,
7,
944,
13,
1136,
3237,
13414,
16886,
7390,
82,
28955,
628,
220,
220,
220,
220,
220,
220,
220,
9421,
1063,
796,
2116,
13,
1136,
3237,
13414,
16886,
7390,
82,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
477,
7407,
3212,
796,
2116,
13,
1136,
3237,
7407,
3212,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
220,
628,
220,
220,
220,
220,
220,
220,
220,
329,
1312,
287,
2837,
7,
11925,
7,
439,
7407,
3212,
8,
2599,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
16,
796,
9421,
1063,
13,
9630,
7,
439,
7407,
3212,
58,
72,
7131,
15,
12962,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
37423,
7390,
17,
796,
9421,
1063,
13,
9630,
7,
439,
7407,
3212,
58,
72,
7131,
16,
12962,
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,
220,
220,
220,
220,
649,
37065,
13,
2860,
62,
14907,
7,
332,
16886,
7390,
16,
11,
37423,
7390,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
649,
37065,
13,
274,
58,
72,
7131,
1,
8367,
8973,
796,
2116,
13,
1136,
37021,
7,
439,
7407,
3212,
58,
72,
7131,
15,
4357,
477,
7407,
3212,
58,
72,
7131,
16,
12962,
628,
220,
220,
220,
220,
220,
220,
220,
1441,
649,
37065,
628,
220,
220,
220,
9421,
1063,
796,
6045,
220,
198,
220,
220,
220,
9224,
330,
3976,
796,
6045,
220,
198,
220,
220,
220,
3318,
1060,
276,
796,
6045,
198,
220,
220,
220,
2546,
796,
3119,
7,
1136,
33111,
42369,
1063,
11,
2205,
2625,
464,
1271,
286,
9421,
1063,
287,
262,
4823,
4943
] | 2.166823 | 9,597 |
#!/usr/bin/env python3
#
# Copyright 2014 Simone Campagna
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__author__ = "Simone Campagna"
from .py23 import BASE_STRING
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
198,
2,
15069,
1946,
47592,
5425,
48669,
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,
2,
198,
198,
834,
9800,
834,
796,
366,
8890,
505,
5425,
48669,
1,
198,
198,
6738,
764,
9078,
1954,
1330,
49688,
62,
18601,
2751,
198
] | 3.596774 | 186 |
from math import *
from decimal import *
getcontext().prec = 30
log_infinity = 9999
global_log2_eps = 0
## The root hermite factor delta of BKZ-b
## log_2 of best plausible Quantum Cost of SVP in dimension b
## log_2 of best plausible Quantum Cost of SVP in dimension b
## log_2 of best known Quantum Cost of SVP in dimension b
## Return the cost of the primal attack using m samples and blocksize b (infinity = fail)
## Return the cost of the dual attack using m samples and blocksize b (infinity = fail)
## Find optimal parameters for a given attack
## Create a report on the best primal and dual BKZ attacks
#print "### BCNS ###"
#summarize_params(2**32,1024,3.192, 2**32 /8)
#print
q = 12289
k = 24.0
print "### NewHope-512k24 ###"
summarize_params(q,512,sqrt(k/2), 3.*q/(4 * sqrt(2)), False)
print
q = 12289
k = 16.0
print "### NewHope-512k16 ###"
summarize_params(q,512,sqrt(k/2), 3.*q/(4 * sqrt(2)), False)
print
q = 12289
k = 8.0
error_tolerance = 3.*q/(4 * sqrt(2))
print "### NewHope-512k8 ###"
summarize_params(q,512,sqrt(k/2), error_tolerance, False)
print
print "### NewHope-1024k16 ###"
k = 16.0
#error_tolerance = 3.*q/4
error_tolerance = 4*(q/4)-3076.25
summarize_params(q,1024,sqrt(k/2), error_tolerance, False)
print
print "### NewHope-1024k8 ###"
k = 8.0
summarize_params(q,1024,sqrt(k/2), 3.*q/4, False)
print
| [
6738,
10688,
1330,
1635,
198,
6738,
32465,
1330,
1635,
198,
1136,
22866,
22446,
3866,
66,
796,
1542,
198,
198,
6404,
62,
10745,
6269,
796,
860,
17032,
198,
198,
20541,
62,
6404,
17,
62,
25386,
796,
657,
198,
198,
2235,
383,
6808,
607,
32937,
5766,
25979,
286,
347,
42,
57,
12,
65,
628,
198,
198,
2235,
2604,
62,
17,
286,
1266,
19756,
29082,
6446,
286,
311,
8859,
287,
15793,
275,
198,
198,
2235,
2604,
62,
17,
286,
1266,
19756,
29082,
6446,
286,
311,
8859,
287,
15793,
275,
198,
198,
2235,
2604,
62,
17,
286,
1266,
1900,
29082,
6446,
286,
311,
8859,
287,
15793,
275,
628,
198,
2235,
8229,
262,
1575,
286,
262,
43750,
1368,
1262,
285,
8405,
290,
7021,
1096,
275,
357,
10745,
6269,
796,
2038,
8,
628,
198,
2235,
8229,
262,
1575,
286,
262,
10668,
1368,
1262,
285,
8405,
290,
7021,
1096,
275,
357,
10745,
6269,
796,
2038,
8,
628,
198,
2235,
9938,
16586,
10007,
329,
257,
1813,
1368,
628,
628,
198,
2235,
13610,
257,
989,
319,
262,
1266,
43750,
290,
10668,
347,
42,
57,
3434,
628,
628,
198,
2,
4798,
366,
21017,
11843,
8035,
44386,
1,
198,
2,
16345,
3876,
1096,
62,
37266,
7,
17,
1174,
2624,
11,
35500,
11,
18,
13,
17477,
11,
362,
1174,
2624,
1220,
23,
8,
198,
2,
4798,
198,
198,
80,
796,
1105,
27693,
198,
74,
796,
1987,
13,
15,
198,
4798,
366,
21017,
968,
34456,
12,
25836,
74,
1731,
44386,
1,
198,
16345,
3876,
1096,
62,
37266,
7,
80,
11,
25836,
11,
31166,
17034,
7,
74,
14,
17,
828,
513,
15885,
80,
29006,
19,
1635,
19862,
17034,
7,
17,
36911,
10352,
8,
198,
4798,
198,
198,
80,
796,
1105,
27693,
198,
74,
796,
1467,
13,
15,
198,
4798,
366,
21017,
968,
34456,
12,
25836,
74,
1433,
44386,
1,
198,
16345,
3876,
1096,
62,
37266,
7,
80,
11,
25836,
11,
31166,
17034,
7,
74,
14,
17,
828,
513,
15885,
80,
29006,
19,
1635,
19862,
17034,
7,
17,
36911,
10352,
8,
198,
4798,
198,
198,
80,
796,
1105,
27693,
198,
74,
796,
807,
13,
15,
198,
18224,
62,
83,
37668,
796,
513,
15885,
80,
29006,
19,
1635,
19862,
17034,
7,
17,
4008,
198,
4798,
366,
21017,
968,
34456,
12,
25836,
74,
23,
44386,
1,
198,
16345,
3876,
1096,
62,
37266,
7,
80,
11,
25836,
11,
31166,
17034,
7,
74,
14,
17,
828,
4049,
62,
83,
37668,
11,
10352,
8,
198,
4798,
198,
198,
4798,
366,
21017,
968,
34456,
12,
35500,
74,
1433,
44386,
1,
198,
74,
796,
1467,
13,
15,
198,
2,
18224,
62,
83,
37668,
796,
513,
15885,
80,
14,
19,
198,
18224,
62,
83,
37668,
796,
604,
9,
7,
80,
14,
19,
13219,
1270,
4304,
13,
1495,
198,
16345,
3876,
1096,
62,
37266,
7,
80,
11,
35500,
11,
31166,
17034,
7,
74,
14,
17,
828,
4049,
62,
83,
37668,
11,
10352,
8,
198,
4798,
198,
198,
4798,
366,
21017,
968,
34456,
12,
35500,
74,
23,
44386,
1,
198,
74,
796,
807,
13,
15,
198,
16345,
3876,
1096,
62,
37266,
7,
80,
11,
35500,
11,
31166,
17034,
7,
74,
14,
17,
828,
513,
15885,
80,
14,
19,
11,
10352,
8,
198,
4798,
628,
628
] | 2.615385 | 520 |
#!/usr/bin/env python3
import nibabel as nib
import nilearn
#from nilearn import masking
#from nilearn.plotting import plot_stat_map, plot_anat, plot_img, plot_epi
#from nilearn.image import concat_imgs, mean_img
#from nilearn.input_data import NiftiMasker
import numpy as np
import os
from typing import Union
import pandas as pd
from pandas import DataFrame as df
from os.path import basename as bname
from os.path import expanduser as xpu
from os.path import join as pjoin
from tqdm import tqdm
import loadutils as lu
from cimaqprep.fetch_events_behav import fetch_events_behav
from cimaqprep.fetch_scans_infos import fetch_scans_infos
from cimaqprep.fetch_participant import fetch_participant
from cimaqprep.get_tr_nscans_frametimes import get_tr_nscans_frametimes
#from cimaqprep.get_epi_mask_fromdata import get_epi_mask_fromdata
#from cimaqprep.resample_fmri_to_events import resample_fmri_to_events
class participant_data:
'''
Description
-----------
Fetch and load a single participant's data (scans, infos,
events and behavioural) in an object similar
to a sklearn.utils.Bunch object (the way nilearn datasets are fetched)
Parameters
----------
cimaq_nov_dir: Path to CIMA-Q november 2019 dataset
cimaq_mar_dir: Path to CIMA-Q march 2019 dataset
events_dir: Path to events (in-scan trials) directory
behav_dir: Path to behavioural (out-scan trials) directory
participants_path: Path to directory containing participant's
BIDS information and list of participant's for which
quality assessment was successful
Returns
-------
participant_data: object similar to a sklearn.utils.Bunch
object containing a single participant's data
(scans, infos, events and behavioural)
'''
# self.resample_fmri_to_events = resample_fmri_to_events
# self.common_masker_params = lu.read_json(self.masker_params_dir)
# self.nifti_masker_params = dict(mask_img=self.mar_epi_mask,
# runs=None,
# target_affine=self.mar_epi_mask.affine,
# target_shape=self.mar_epi_mask.shape,
# mask_strategy='epi',
# mask_args=None,
# sample_mask=None,
# reports=True,
# **self.common_masker_params)
# self.nifti_masker = \
# nilearn.input_data.NiftiMasker(**self.nifti_masker_params)
if __name__ == "__main__":
main()
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
198,
11748,
33272,
9608,
355,
33272,
198,
11748,
299,
576,
1501,
198,
2,
6738,
299,
576,
1501,
1330,
9335,
278,
198,
2,
6738,
299,
576,
1501,
13,
29487,
889,
1330,
7110,
62,
14269,
62,
8899,
11,
7110,
62,
272,
265,
11,
7110,
62,
9600,
11,
7110,
62,
538,
72,
198,
2,
6738,
299,
576,
1501,
13,
9060,
1330,
1673,
265,
62,
9600,
82,
11,
1612,
62,
9600,
198,
2,
6738,
299,
576,
1501,
13,
15414,
62,
7890,
1330,
399,
2135,
72,
45195,
263,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
28686,
198,
6738,
19720,
1330,
4479,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
19798,
292,
1330,
6060,
19778,
355,
47764,
198,
6738,
28686,
13,
6978,
1330,
1615,
12453,
355,
275,
3672,
198,
6738,
28686,
13,
6978,
1330,
4292,
7220,
355,
2124,
19944,
198,
6738,
28686,
13,
6978,
1330,
4654,
355,
279,
22179,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
198,
11748,
3440,
26791,
355,
300,
84,
198,
6738,
269,
8083,
80,
46012,
13,
69,
7569,
62,
31534,
62,
20709,
615,
1330,
21207,
62,
31534,
62,
20709,
615,
198,
6738,
269,
8083,
80,
46012,
13,
69,
7569,
62,
1416,
504,
62,
10745,
418,
1330,
21207,
62,
1416,
504,
62,
10745,
418,
198,
6738,
269,
8083,
80,
46012,
13,
69,
7569,
62,
48013,
415,
1330,
21207,
62,
48013,
415,
198,
6738,
269,
8083,
80,
46012,
13,
1136,
62,
2213,
62,
77,
1416,
504,
62,
19298,
46874,
1330,
651,
62,
2213,
62,
77,
1416,
504,
62,
19298,
46874,
220,
198,
2,
6738,
269,
8083,
80,
46012,
13,
1136,
62,
538,
72,
62,
27932,
62,
6738,
7890,
1330,
651,
62,
538,
72,
62,
27932,
62,
6738,
7890,
220,
198,
2,
6738,
269,
8083,
80,
46012,
13,
411,
1403,
62,
38353,
380,
62,
1462,
62,
31534,
1330,
581,
1403,
62,
38353,
380,
62,
1462,
62,
31534,
220,
198,
198,
4871,
18399,
62,
7890,
25,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
12489,
198,
220,
220,
220,
24200,
6329,
198,
220,
220,
220,
376,
7569,
290,
3440,
257,
2060,
18399,
338,
1366,
357,
1416,
504,
11,
1167,
418,
11,
198,
220,
220,
220,
2995,
290,
41672,
8,
287,
281,
2134,
2092,
198,
220,
220,
220,
284,
257,
1341,
35720,
13,
26791,
13,
33,
3316,
2134,
357,
1169,
835,
299,
576,
1501,
40522,
389,
11351,
1740,
8,
198,
220,
220,
220,
220,
198,
220,
220,
220,
40117,
198,
220,
220,
220,
24200,
438,
198,
220,
220,
220,
269,
8083,
80,
62,
37302,
62,
15908,
25,
10644,
284,
327,
3955,
32,
12,
48,
645,
303,
1916,
13130,
27039,
198,
220,
220,
220,
269,
8083,
80,
62,
3876,
62,
15908,
25,
10644,
284,
327,
3955,
32,
12,
48,
9960,
13130,
27039,
198,
220,
220,
220,
2995,
62,
15908,
25,
10644,
284,
2995,
357,
259,
12,
35836,
9867,
8,
8619,
198,
220,
220,
220,
2955,
62,
15908,
25,
10644,
284,
41672,
357,
448,
12,
35836,
9867,
8,
8619,
198,
220,
220,
220,
6809,
62,
6978,
25,
10644,
284,
8619,
7268,
18399,
338,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
14255,
1321,
290,
1351,
286,
18399,
338,
329,
543,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3081,
8922,
373,
4388,
198,
220,
220,
220,
220,
198,
220,
220,
220,
16409,
198,
220,
220,
220,
35656,
198,
220,
220,
220,
18399,
62,
7890,
25,
2134,
2092,
284,
257,
1341,
35720,
13,
26791,
13,
33,
3316,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2134,
7268,
257,
2060,
18399,
338,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
1416,
504,
11,
1167,
418,
11,
2995,
290,
41672,
8,
198,
220,
220,
220,
705,
7061,
198,
2,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
411,
1403,
62,
38353,
380,
62,
1462,
62,
31534,
796,
581,
1403,
62,
38353,
380,
62,
1462,
62,
31534,
198,
2,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
11321,
62,
27932,
263,
62,
37266,
796,
300,
84,
13,
961,
62,
17752,
7,
944,
13,
27932,
263,
62,
37266,
62,
15908,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
77,
2135,
72,
62,
27932,
263,
62,
37266,
796,
8633,
7,
27932,
62,
9600,
28,
944,
13,
3876,
62,
538,
72,
62,
27932,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4539,
28,
14202,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
62,
2001,
500,
28,
944,
13,
3876,
62,
538,
72,
62,
27932,
13,
2001,
500,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
62,
43358,
28,
944,
13,
3876,
62,
538,
72,
62,
27932,
13,
43358,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9335,
62,
2536,
4338,
11639,
538,
72,
3256,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9335,
62,
22046,
28,
14202,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6291,
62,
27932,
28,
14202,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3136,
28,
17821,
11,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
944,
13,
11321,
62,
27932,
263,
62,
37266,
8,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
2116,
13,
77,
2135,
72,
62,
27932,
263,
796,
3467,
198,
2,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
576,
1501,
13,
15414,
62,
7890,
13,
45,
2135,
72,
45195,
263,
7,
1174,
944,
13,
77,
2135,
72,
62,
27932,
263,
62,
37266,
8,
198,
220,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1388,
3419,
198
] | 2.170111 | 1,258 |
import pickle
from numpy.lib.function_base import append
import pandas as pd
import argparse
from torch.utils import data
from torch.utils.data import dataset
from src.tensorflow.model import TfModel
from config.tensorflow.text_config import Config
from src.pytorch.label_encoding import get_encoding
from src.tensorflow.dataloader import DatasetGeneratorTF
import numpy as np
from sklearn.metrics import classification_report
from sklearn.metrics import f1_score
if __name__=="__main__":
target, path=argp()
if target != "all":
column_list = [target]
else:
column_list = ["action", "object", "location"]
for column_name in column_list:
valid_data = pd.read_csv(path)
valid_data = get_encoding(valid_data, column_name)
vocab_list = vocab()
n_classes=len(list(set(valid_data[column_name])))
model = TfModel(input=vocab_list.__len__(), n_classes=n_classes).get_model()
model.load_weights(f"{Config.globals_['model_save_dir']}/{target}_{Config.globals_['version']}.ckpt")
pred_0, true_0 = perform_for_fold_test(valid_data, target, vocab_list, model)
print(f1_score(true_0, pred_0, average='micro'))
print(classification_report(true_0, pred_0)) | [
11748,
2298,
293,
198,
6738,
299,
32152,
13,
8019,
13,
8818,
62,
8692,
1330,
24443,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
1822,
29572,
198,
198,
6738,
28034,
13,
26791,
1330,
1366,
198,
6738,
28034,
13,
26791,
13,
7890,
1330,
27039,
198,
6738,
12351,
13,
83,
22854,
11125,
13,
19849,
1330,
309,
69,
17633,
198,
198,
6738,
4566,
13,
83,
22854,
11125,
13,
5239,
62,
11250,
1330,
17056,
198,
6738,
12351,
13,
9078,
13165,
354,
13,
18242,
62,
12685,
7656,
1330,
651,
62,
12685,
7656,
198,
198,
6738,
12351,
13,
83,
22854,
11125,
13,
67,
10254,
1170,
263,
1330,
16092,
292,
316,
8645,
1352,
10234,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6738,
1341,
35720,
13,
4164,
10466,
1330,
17923,
62,
13116,
198,
6738,
1341,
35720,
13,
4164,
10466,
1330,
277,
16,
62,
26675,
198,
198,
361,
11593,
3672,
834,
855,
1,
834,
12417,
834,
1298,
628,
220,
220,
220,
2496,
11,
3108,
28,
853,
79,
3419,
198,
220,
220,
220,
611,
2496,
14512,
366,
439,
1298,
198,
220,
220,
220,
220,
220,
5721,
62,
4868,
796,
685,
16793,
60,
198,
220,
220,
220,
2073,
25,
198,
220,
220,
220,
220,
220,
5721,
62,
4868,
796,
14631,
2673,
1600,
366,
15252,
1600,
366,
24886,
8973,
198,
220,
220,
220,
220,
198,
220,
220,
220,
329,
5721,
62,
3672,
287,
5721,
62,
4868,
25,
628,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
7890,
796,
279,
67,
13,
961,
62,
40664,
7,
6978,
8,
198,
220,
220,
220,
220,
220,
220,
220,
4938,
62,
7890,
796,
651,
62,
12685,
7656,
7,
12102,
62,
7890,
11,
5721,
62,
3672,
8,
628,
220,
220,
220,
220,
220,
220,
220,
12776,
397,
62,
4868,
796,
12776,
397,
3419,
628,
220,
220,
220,
220,
220,
220,
220,
299,
62,
37724,
28,
11925,
7,
4868,
7,
2617,
7,
12102,
62,
7890,
58,
28665,
62,
3672,
60,
22305,
628,
220,
220,
220,
220,
220,
220,
220,
2746,
796,
309,
69,
17633,
7,
15414,
28,
18893,
397,
62,
4868,
13,
834,
11925,
834,
22784,
299,
62,
37724,
28,
77,
62,
37724,
737,
1136,
62,
19849,
3419,
198,
220,
220,
220,
220,
220,
220,
220,
2746,
13,
2220,
62,
43775,
7,
69,
1,
90,
16934,
13,
4743,
672,
874,
62,
17816,
19849,
62,
21928,
62,
15908,
20520,
92,
14,
90,
16793,
92,
23330,
16934,
13,
4743,
672,
874,
62,
17816,
9641,
20520,
27422,
694,
457,
4943,
628,
220,
220,
220,
220,
220,
220,
220,
2747,
62,
15,
11,
2081,
62,
15,
796,
1620,
62,
1640,
62,
11379,
62,
9288,
7,
12102,
62,
7890,
11,
2496,
11,
12776,
397,
62,
4868,
11,
2746,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
69,
16,
62,
26675,
7,
7942,
62,
15,
11,
2747,
62,
15,
11,
2811,
11639,
24055,
6,
4008,
198,
220,
220,
220,
220,
220,
220,
220,
3601,
7,
4871,
2649,
62,
13116,
7,
7942,
62,
15,
11,
2747,
62,
15,
4008
] | 2.540161 | 498 |
from rest_framework.exceptions import ValidationError
from rest_framework.fields import UUIDField
from open.core.betterself.models.food import Food
from open.core.betterself.models.food_logs import FoodLog
from open.core.betterself.serializers.mixins import (
BaseCreateUpdateSerializer,
BaseModelReadSerializer,
)
from open.core.betterself.serializers.simple_generic_serializer import (
create_name_uuid_serializer,
)
from open.core.betterself.serializers.validators import ModelValidatorsMixin
| [
6738,
1334,
62,
30604,
13,
1069,
11755,
1330,
3254,
24765,
12331,
198,
6738,
1334,
62,
30604,
13,
25747,
1330,
471,
27586,
15878,
198,
198,
6738,
1280,
13,
7295,
13,
27903,
944,
13,
27530,
13,
19425,
1330,
7318,
198,
6738,
1280,
13,
7295,
13,
27903,
944,
13,
27530,
13,
19425,
62,
6404,
82,
1330,
7318,
11187,
198,
6738,
1280,
13,
7295,
13,
27903,
944,
13,
46911,
11341,
13,
19816,
1040,
1330,
357,
198,
220,
220,
220,
7308,
16447,
10260,
32634,
7509,
11,
198,
220,
220,
220,
7308,
17633,
5569,
32634,
7509,
11,
198,
8,
198,
6738,
1280,
13,
7295,
13,
27903,
944,
13,
46911,
11341,
13,
36439,
62,
41357,
62,
46911,
7509,
1330,
357,
198,
220,
220,
220,
2251,
62,
3672,
62,
12303,
312,
62,
46911,
7509,
11,
198,
8,
198,
6738,
1280,
13,
7295,
13,
27903,
944,
13,
46911,
11341,
13,
12102,
2024,
1330,
9104,
47139,
2024,
35608,
259,
628,
198
] | 3.384106 | 151 |
""" packet.py
"""
import abc
import binascii
import calendar
import copy
import hashlib
import os
import re
from datetime import datetime
import six
from cryptography.hazmat.primitives import constant_time
from cryptography.hazmat.primitives.asymmetric import padding
from .fields import DSAPriv, DSAPub, DSASignature
from .fields import ECDSAPub, ECDSAPriv, ECDSASignature
from .fields import ECDHPub, ECDHPriv, ECDHCipherText
from .fields import ElGCipherText, ElGPriv, ElGPub
from .fields import OpaquePubKey
from .fields import OpaquePrivKey
from .fields import RSACipherText, RSAPriv, RSAPub, RSASignature
from .fields import String2Key
from .fields import SubPackets
from .fields import UserAttributeSubPackets
from .types import Packet
from .types import Primary
from .types import Private
from .types import Public
from .types import Sub
from .types import VersionedPacket
from ..constants import CompressionAlgorithm
from ..constants import HashAlgorithm
from ..constants import PubKeyAlgorithm
from ..constants import SignatureType
from ..constants import SymmetricKeyAlgorithm
from ..constants import TrustFlags
from ..constants import TrustLevel
from ..decorators import sdproperty
from ..errors import PGPDecryptionError
from ..symenc import _decrypt
from ..symenc import _encrypt
from ..types import Fingerprint
__all__ = ['PKESessionKey',
'PKESessionKeyV3',
'Signature',
'SignatureV4',
'SKESessionKey',
'SKESessionKeyV4',
'OnePassSignature',
'OnePassSignatureV3',
'PrivKey',
'PubKey',
'PubKeyV4',
'PrivKeyV4',
'PrivSubKey',
'PrivSubKeyV4',
'CompressedData',
'SKEData',
'Marker',
'LiteralData',
'Trust',
'UserID',
'PubSubKey',
'PubSubKeyV4',
'UserAttribute',
'IntegrityProtectedSKEData',
'IntegrityProtectedSKEDataV1',
'MDC']
class PKESessionKeyV3(PKESessionKey):
"""
5.1. Public-Key Encrypted Session Key Packets (Tag 1)
A Public-Key Encrypted Session Key packet holds the session key used
to encrypt a message. Zero or more Public-Key Encrypted Session Key
packets and/or Symmetric-Key Encrypted Session Key packets may
precede a Symmetrically Encrypted Data Packet, which holds an
encrypted message. The message is encrypted with the session key,
and the session key is itself encrypted and stored in the Encrypted
Session Key packet(s). The Symmetrically Encrypted Data Packet is
preceded by one Public-Key Encrypted Session Key packet for each
OpenPGP key to which the message is encrypted. The recipient of the
message finds a session key that is encrypted to their public key,
decrypts the session key, and then uses the session key to decrypt
the message.
The body of this packet consists of:
- A one-octet number giving the version number of the packet type.
The currently defined value for packet version is 3.
- An eight-octet number that gives the Key ID of the public key to
which the session key is encrypted. If the session key is
encrypted to a subkey, then the Key ID of this subkey is used
here instead of the Key ID of the primary key.
- A one-octet number giving the public-key algorithm used.
- A string of octets that is the encrypted session key. This
string takes up the remainder of the packet, and its contents are
dependent on the public-key algorithm used.
Algorithm Specific Fields for RSA encryption
- multiprecision integer (MPI) of RSA encrypted value m**e mod n.
Algorithm Specific Fields for Elgamal encryption:
- MPI of Elgamal (Diffie-Hellman) value g**k mod p.
- MPI of Elgamal (Diffie-Hellman) value m * y**k mod p.
The value "m" in the above formulas is derived from the session key
as follows. First, the session key is prefixed with a one-octet
algorithm identifier that specifies the symmetric encryption
algorithm used to encrypt the following Symmetrically Encrypted Data
Packet. Then a two-octet checksum is appended, which is equal to the
sum of the preceding session key octets, not including the algorithm
identifier, modulo 65536. This value is then encoded as described in
PKCS#1 block encoding EME-PKCS1-v1_5 in Section 7.2.1 of [RFC3447] to
form the "m" value used in the formulas above. See Section 13.1 of
this document for notes on OpenPGP's use of PKCS#1.
Note that when an implementation forms several PKESKs with one
session key, forming a message that can be decrypted by several keys,
the implementation MUST make a new PKCS#1 encoding for each key.
An implementation MAY accept or use a Key ID of zero as a "wild card"
or "speculative" Key ID. In this case, the receiving implementation
would try all available private keys, checking for a valid decrypted
session key. This format helps reduce traffic analysis of messages.
"""
__ver__ = 3
@sdproperty
@encrypter.register(bytearray)
@sdproperty
@pkalg.register(int)
@pkalg.register(PubKeyAlgorithm)
class SignatureV4(Signature):
"""
5.2.3. Version 4 Signature Packet Format
The body of a version 4 Signature packet contains:
- One-octet version number (4).
- One-octet signature type.
- One-octet public-key algorithm.
- One-octet hash algorithm.
- Two-octet scalar octet count for following hashed subpacket data.
Note that this is the length in octets of all of the hashed
subpackets; a pointer incremented by this number will skip over
the hashed subpackets.
- Hashed subpacket data set (zero or more subpackets).
- Two-octet scalar octet count for the following unhashed subpacket
data. Note that this is the length in octets of all of the
unhashed subpackets; a pointer incremented by this number will
skip over the unhashed subpackets.
- Unhashed subpacket data set (zero or more subpackets).
- Two-octet field holding the left 16 bits of the signed hash
value.
- One or more multiprecision integers comprising the signature.
This portion is algorithm specific, as described above.
The concatenation of the data being signed and the signature data
from the version number through the hashed subpacket data (inclusive)
is hashed. The resulting hash value is what is signed. The left 16
bits of the hash are included in the Signature packet to provide a
quick test to reject some invalid signatures.
There are two fields consisting of Signature subpackets. The first
field is hashed with the rest of the signature data, while the second
is unhashed. The second set of subpackets is not cryptographically
protected by the signature and should include only advisory
information.
The algorithms for converting the hash function result to a signature
are described in a section below.
"""
__ver__ = 4
@sdproperty
@sigtype.register(int)
@sigtype.register(SignatureType)
@sdproperty
@pubalg.register(int)
@pubalg.register(PubKeyAlgorithm)
@sdproperty
@halg.register(int)
@halg.register(HashAlgorithm)
@property
@signature.setter
@property
class SKESessionKeyV4(SKESessionKey):
"""
5.3. Symmetric-Key Encrypted Session Key Packets (Tag 3)
The Symmetric-Key Encrypted Session Key packet holds the
symmetric-key encryption of a session key used to encrypt a message.
Zero or more Public-Key Encrypted Session Key packets and/or
Symmetric-Key Encrypted Session Key packets may precede a
Symmetrically Encrypted Data packet that holds an encrypted message.
The message is encrypted with a session key, and the session key is
itself encrypted and stored in the Encrypted Session Key packet or
the Symmetric-Key Encrypted Session Key packet.
If the Symmetrically Encrypted Data packet is preceded by one or
more Symmetric-Key Encrypted Session Key packets, each specifies a
passphrase that may be used to decrypt the message. This allows a
message to be encrypted to a number of public keys, and also to one
or more passphrases. This packet type is new and is not generated
by PGP 2.x or PGP 5.0.
The body of this packet consists of:
- A one-octet version number. The only currently defined version
is 4.
- A one-octet number describing the symmetric algorithm used.
- A string-to-key (S2K) specifier, length as defined above.
- Optionally, the encrypted session key itself, which is decrypted
with the string-to-key object.
If the encrypted session key is not present (which can be detected
on the basis of packet length and S2K specifier size), then the S2K
algorithm applied to the passphrase produces the session key for
decrypting the file, using the symmetric cipher algorithm from the
Symmetric-Key Encrypted Session Key packet.
If the encrypted session key is present, the result of applying the
S2K algorithm to the passphrase is used to decrypt just that
encrypted session key field, using CFB mode with an IV of all zeros.
The decryption result consists of a one-octet algorithm identifier
that specifies the symmetric-key encryption algorithm used to
encrypt the following Symmetrically Encrypted Data packet, followed
by the session key octets themselves.
Note: because an all-zero IV is used for this decryption, the S2K
specifier MUST use a salt value, either a Salted S2K or an
Iterated-Salted S2K. The salt value will ensure that the decryption
key is not repeated even if the passphrase is reused.
"""
__ver__ = 4
@property
class OnePassSignatureV3(OnePassSignature):
"""
5.4. One-Pass Signature Packets (Tag 4)
The One-Pass Signature packet precedes the signed data and contains
enough information to allow the receiver to begin calculating any
hashes needed to verify the signature. It allows the Signature
packet to be placed at the end of the message, so that the signer
can compute the entire signed message in one pass.
A One-Pass Signature does not interoperate with PGP 2.6.x or
earlier.
The body of this packet consists of:
- A one-octet version number. The current version is 3.
- A one-octet signature type. Signature types are described in
Section 5.2.1.
- A one-octet number describing the hash algorithm used.
- A one-octet number describing the public-key algorithm used.
- An eight-octet number holding the Key ID of the signing key.
- A one-octet number holding a flag showing whether the signature
is nested. A zero value indicates that the next packet is
another One-Pass Signature packet that describes another
signature to be applied to the same message data.
Note that if a message contains more than one one-pass signature,
then the Signature packets bracket the message; that is, the first
Signature packet after the message corresponds to the last one-pass
packet and the final Signature packet corresponds to the first
one-pass packet.
"""
__ver__ = 3
@sdproperty
@sigtype.register(int)
@sigtype.register(SignatureType)
@sdproperty
@pubalg.register(int)
@pubalg.register(PubKeyAlgorithm)
@sdproperty
@halg.register(int)
@halg.register(HashAlgorithm)
@sdproperty
@signer.register(str)
@signer.register(six.text_type)
@signer.register(bytearray)
class CompressedData(Packet):
"""
5.6. Compressed Data Packet (Tag 8)
The Compressed Data packet contains compressed data. Typically, this
packet is found as the contents of an encrypted packet, or following
a Signature or One-Pass Signature packet, and contains a literal data
packet.
The body of this packet consists of:
- One octet that gives the algorithm used to compress the packet.
- Compressed data, which makes up the remainder of the packet.
A Compressed Data Packet's body contains an block that compresses
some set of packets. See section "Packet Composition" for details on
how messages are formed.
ZIP-compressed packets are compressed with raw RFC 1951 [RFC1951]
DEFLATE blocks. Note that PGP V2.6 uses 13 bits of compression. If
an implementation uses more bits of compression, PGP V2.6 cannot
decompress it.
ZLIB-compressed packets are compressed with RFC 1950 [RFC1950] ZLIB-
style blocks.
BZip2-compressed packets are compressed using the BZip2 [BZ2]
algorithm.
"""
__typeid__ = 0x08
@sdproperty
@calg.register(int)
@calg.register(CompressionAlgorithm)
class SKEData(Packet):
"""
5.7. Symmetrically Encrypted Data Packet (Tag 9)
The Symmetrically Encrypted Data packet contains data encrypted with
a symmetric-key algorithm. When it has been decrypted, it contains
other packets (usually a literal data packet or compressed data
packet, but in theory other Symmetrically Encrypted Data packets or
sequences of packets that form whole OpenPGP messages).
The body of this packet consists of:
- Encrypted data, the output of the selected symmetric-key cipher
operating in OpenPGP's variant of Cipher Feedback (CFB) mode.
The symmetric cipher used may be specified in a Public-Key or
Symmetric-Key Encrypted Session Key packet that precedes the
Symmetrically Encrypted Data packet. In that case, the cipher
algorithm octet is prefixed to the session key before it is
encrypted. If no packets of these types precede the encrypted data,
the IDEA algorithm is used with the session key calculated as the MD5
hash of the passphrase, though this use is deprecated.
The data is encrypted in CFB mode, with a CFB shift size equal to the
cipher's block size. The Initial Vector (IV) is specified as all
zeros. Instead of using an IV, OpenPGP prefixes a string of length
equal to the block size of the cipher plus two to the data before it
is encrypted. The first block-size octets (for example, 8 octets for
a 64-bit block length) are random, and the following two octets are
copies of the last two octets of the IV. For example, in an 8-octet
block, octet 9 is a repeat of octet 7, and octet 10 is a repeat of
octet 8. In a cipher of length 16, octet 17 is a repeat of octet 15
and octet 18 is a repeat of octet 16. As a pedantic clarification,
in both these examples, we consider the first octet to be numbered 1.
After encrypting the first block-size-plus-two octets, the CFB state
is resynchronized. The last block-size octets of ciphertext are
passed through the cipher and the block boundary is reset.
The repetition of 16 bits in the random data prefixed to the message
allows the receiver to immediately check whether the session key is
incorrect. See the "Security Considerations" section for hints on
the proper use of this "quick check".
"""
__typeid__ = 0x09
class LiteralData(Packet):
"""
5.9. Literal Data Packet (Tag 11)
A Literal Data packet contains the body of a message; data that is
not to be further interpreted.
The body of this packet consists of:
- A one-octet field that describes how the data is formatted.
If it is a 'b' (0x62), then the Literal packet contains binary data.
If it is a 't' (0x74), then it contains text data, and thus may need
line ends converted to local form, or other text-mode changes. The
tag 'u' (0x75) means the same as 't', but also indicates that
implementation believes that the literal data contains UTF-8 text.
Early versions of PGP also defined a value of 'l' as a 'local' mode
for machine-local conversions. RFC 1991 [RFC1991] incorrectly stated
this local mode flag as '1' (ASCII numeral one). Both of these local
modes are deprecated.
- File name as a string (one-octet length, followed by a file
name). This may be a zero-length string. Commonly, if the
source of the encrypted data is a file, this will be the name of
the encrypted file. An implementation MAY consider the file name
in the Literal packet to be a more authoritative name than the
actual file name.
If the special name "_CONSOLE" is used, the message is considered to
be "for your eyes only". This advises that the message data is
unusually sensitive, and the receiving program should process it more
carefully, perhaps avoiding storing the received data to disk, for
example.
- A four-octet number that indicates a date associated with the
literal data. Commonly, the date might be the modification date
of a file, or the time the packet was created, or a zero that
indicates no specific time.
- The remainder of the packet is literal data.
Text data is stored with <CR><LF> text endings (i.e., network-
normal line endings). These should be converted to native line
endings by the receiving software.
"""
__typeid__ = 0x0B
@sdproperty
@mtime.register(datetime)
@mtime.register(int)
@mtime.register(bytes)
@mtime.register(bytearray)
@property
class Trust(Packet):
"""
5.10. Trust Packet (Tag 12)
The Trust packet is used only within keyrings and is not normally
exported. Trust packets contain data that record the user's
specifications of which key holders are trustworthy introducers,
along with other information that implementing software uses for
trust information. The format of Trust packets is defined by a given
implementation.
Trust packets SHOULD NOT be emitted to output streams that are
transferred to other users, and they SHOULD be ignored on any input
other than local keyring files.
"""
__typeid__ = 0x0C
@sdproperty
@trustlevel.register(int)
@trustlevel.register(TrustLevel)
@sdproperty
@trustflags.register(list)
@trustflags.register(int)
class UserID(Packet):
"""
5.11. User ID Packet (Tag 13)
A User ID packet consists of UTF-8 text that is intended to represent
the name and email address of the key holder. By convention, it
includes an RFC 2822 [RFC2822] mail name-addr, but there are no
restrictions on its content. The packet length in the header
specifies the length of the User ID.
"""
__typeid__ = 0x0D
class UserAttribute(Packet):
"""
5.12. User Attribute Packet (Tag 17)
The User Attribute packet is a variation of the User ID packet. It
is capable of storing more types of data than the User ID packet,
which is limited to text. Like the User ID packet, a User Attribute
packet may be certified by the key owner ("self-signed") or any other
key owner who cares to certify it. Except as noted, a User Attribute
packet may be used anywhere that a User ID packet may be used.
While User Attribute packets are not a required part of the OpenPGP
standard, implementations SHOULD provide at least enough
compatibility to properly handle a certification signature on the
User Attribute packet. A simple way to do this is by treating the
User Attribute packet as a User ID packet with opaque contents, but
an implementation may use any method desired.
The User Attribute packet is made up of one or more attribute
subpackets. Each subpacket consists of a subpacket header and a
body. The header consists of:
- the subpacket length (1, 2, or 5 octets)
- the subpacket type (1 octet)
and is followed by the subpacket specific data.
The only currently defined subpacket type is 1, signifying an image.
An implementation SHOULD ignore any subpacket of a type that it does
not recognize. Subpacket types 100 through 110 are reserved for
private or experimental use.
"""
__typeid__ = 0x11
@property
class IntegrityProtectedSKEDataV1(IntegrityProtectedSKEData):
"""
5.13. Sym. Encrypted Integrity Protected Data Packet (Tag 18)
The Symmetrically Encrypted Integrity Protected Data packet is a
variant of the Symmetrically Encrypted Data packet. It is a new
feature created for OpenPGP that addresses the problem of detecting a
modification to encrypted data. It is used in combination with a
Modification Detection Code packet.
There is a corresponding feature in the features Signature subpacket
that denotes that an implementation can properly use this packet
type. An implementation MUST support decrypting these packets and
SHOULD prefer generating them to the older Symmetrically Encrypted
Data packet when possible. Since this data packet protects against
modification attacks, this standard encourages its proliferation.
While blanket adoption of this data packet would create
interoperability problems, rapid adoption is nevertheless important.
An implementation SHOULD specifically denote support for this packet,
but it MAY infer it from other mechanisms.
For example, an implementation might infer from the use of a cipher
such as Advanced Encryption Standard (AES) or Twofish that a user
supports this feature. It might place in the unhashed portion of
another user's key signature a Features subpacket. It might also
present a user with an opportunity to regenerate their own self-
signature with a Features subpacket.
This packet contains data encrypted with a symmetric-key algorithm
and protected against modification by the SHA-1 hash algorithm. When
it has been decrypted, it will typically contain other packets (often
a Literal Data packet or Compressed Data packet). The last decrypted
packet in this packet's payload MUST be a Modification Detection Code
packet.
The body of this packet consists of:
- A one-octet version number. The only currently defined value is
1.
- Encrypted data, the output of the selected symmetric-key cipher
operating in Cipher Feedback mode with shift amount equal to the
block size of the cipher (CFB-n where n is the block size).
The symmetric cipher used MUST be specified in a Public-Key or
Symmetric-Key Encrypted Session Key packet that precedes the
Symmetrically Encrypted Data packet. In either case, the cipher
algorithm octet is prefixed to the session key before it is
encrypted.
The data is encrypted in CFB mode, with a CFB shift size equal to the
cipher's block size. The Initial Vector (IV) is specified as all
zeros. Instead of using an IV, OpenPGP prefixes an octet string to
the data before it is encrypted. The length of the octet string
equals the block size of the cipher in octets, plus two. The first
octets in the group, of length equal to the block size of the cipher,
are random; the last two octets are each copies of their 2nd
preceding octet. For example, with a cipher whose block size is 128
bits or 16 octets, the prefix data will contain 16 random octets,
then two more octets, which are copies of the 15th and 16th octets,
respectively. Unlike the Symmetrically Encrypted Data Packet, no
special CFB resynchronization is done after encrypting this prefix
data. See "OpenPGP CFB Mode" below for more details.
The repetition of 16 bits in the random data prefixed to the message
allows the receiver to immediately check whether the session key is
incorrect.
The plaintext of the data to be encrypted is passed through the SHA-1
hash function, and the result of the hash is appended to the
plaintext in a Modification Detection Code packet. The input to the
hash function includes the prefix data described above; it includes
all of the plaintext, and then also includes two octets of values
0xD3, 0x14. These represent the encoding of a Modification Detection
Code packet tag and length field of 20 octets.
The resulting hash value is stored in a Modification Detection Code
(MDC) packet, which MUST use the two octet encoding just given to
represent its tag and length field. The body of the MDC packet is
the 20-octet output of the SHA-1 hash.
The Modification Detection Code packet is appended to the plaintext
and encrypted along with the plaintext using the same CFB context.
During decryption, the plaintext data should be hashed with SHA-1,
including the prefix data as well as the packet tag and length field
of the Modification Detection Code packet. The body of the MDC
packet, upon decryption, is compared with the result of the SHA-1
hash.
Any failure of the MDC indicates that the message has been modified
and MUST be treated as a security problem. Failures include a
difference in the hash values, but also the absence of an MDC packet,
or an MDC packet in any position other than the end of the plaintext.
Any failure SHOULD be reported to the user.
Note: future designs of new versions of this packet should consider
rollback attacks since it will be possible for an attacker to change
the version back to 1.
"""
__ver__ = 1
class MDC(Packet):
"""
5.14. Modification Detection Code Packet (Tag 19)
The Modification Detection Code packet contains a SHA-1 hash of
plaintext data, which is used to detect message modification. It is
only used with a Symmetrically Encrypted Integrity Protected Data
packet. The Modification Detection Code packet MUST be the last
packet in the plaintext data that is encrypted in the Symmetrically
Encrypted Integrity Protected Data packet, and MUST appear in no
other place.
A Modification Detection Code packet MUST have a length of 20 octets.
The body of this packet consists of:
- A 20-octet SHA-1 hash of the preceding plaintext data of the
Symmetrically Encrypted Integrity Protected Data packet,
including prefix data, the tag octet, and length octet of the
Modification Detection Code packet.
Note that the Modification Detection Code packet MUST always use a
new format encoding of the packet tag, and a one-octet encoding of
the packet length. The reason for this is that the hashing rules for
modification detection include a one-octet tag and one-octet length
in the data hash. While this is a bit restrictive, it reduces
complexity.
"""
__typeid__ = 0x13
| [
37811,
19638,
13,
9078,
198,
37811,
198,
11748,
450,
66,
198,
11748,
9874,
292,
979,
72,
198,
11748,
11845,
198,
11748,
4866,
198,
11748,
12234,
8019,
198,
11748,
28686,
198,
11748,
302,
198,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
198,
11748,
2237,
198,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
19795,
20288,
1330,
6937,
62,
2435,
198,
6738,
45898,
13,
71,
1031,
6759,
13,
19795,
20288,
13,
4107,
3020,
19482,
1330,
24511,
198,
198,
6738,
764,
25747,
1330,
17400,
2969,
15104,
11,
17400,
2969,
549,
11,
17400,
1921,
570,
1300,
198,
6738,
764,
25747,
1330,
13182,
5258,
2969,
549,
11,
13182,
5258,
2969,
15104,
11,
13182,
5258,
1921,
570,
1300,
198,
6738,
764,
25747,
1330,
412,
8610,
14082,
549,
11,
412,
8610,
14082,
15104,
11,
412,
8610,
16045,
10803,
8206,
198,
6738,
764,
25747,
1330,
2574,
15916,
10803,
8206,
11,
2574,
16960,
15104,
11,
2574,
38,
14876,
198,
6738,
764,
25747,
1330,
8670,
18251,
14876,
9218,
198,
6738,
764,
25747,
1330,
8670,
18251,
20184,
9218,
198,
6738,
764,
25747,
1330,
19340,
2246,
10803,
8206,
11,
19340,
2969,
15104,
11,
19340,
2969,
549,
11,
19340,
1921,
570,
1300,
198,
6738,
764,
25747,
1330,
10903,
17,
9218,
198,
6738,
764,
25747,
1330,
3834,
11869,
1039,
198,
6738,
764,
25747,
1330,
11787,
33682,
7004,
11869,
1039,
198,
198,
6738,
764,
19199,
1330,
6400,
316,
198,
6738,
764,
19199,
1330,
21087,
198,
6738,
764,
19199,
1330,
15348,
198,
6738,
764,
19199,
1330,
5094,
198,
6738,
764,
19199,
1330,
3834,
198,
6738,
764,
19199,
1330,
10628,
276,
47,
8317,
198,
198,
6738,
11485,
9979,
1187,
1330,
3082,
2234,
2348,
42289,
198,
6738,
11485,
9979,
1187,
1330,
21059,
2348,
42289,
198,
6738,
11485,
9979,
1187,
1330,
8525,
9218,
2348,
42289,
198,
6738,
11485,
9979,
1187,
1330,
34894,
6030,
198,
6738,
11485,
9979,
1187,
1330,
1632,
3020,
19482,
9218,
2348,
42289,
198,
6738,
11485,
9979,
1187,
1330,
9870,
40053,
198,
6738,
11485,
9979,
1187,
1330,
9870,
4971,
198,
198,
6738,
11485,
12501,
273,
2024,
1330,
45647,
26745,
198,
198,
6738,
11485,
48277,
1330,
23842,
5760,
721,
13168,
12331,
198,
198,
6738,
11485,
1837,
3653,
66,
1330,
4808,
12501,
6012,
198,
6738,
11485,
1837,
3653,
66,
1330,
4808,
12685,
6012,
198,
198,
6738,
11485,
19199,
1330,
39454,
4798,
198,
198,
834,
439,
834,
796,
37250,
40492,
1546,
2521,
9218,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
40492,
1546,
2521,
9218,
53,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
11712,
1300,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
11712,
1300,
53,
19,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18831,
1546,
2521,
9218,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18831,
1546,
2521,
9218,
53,
19,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3198,
14478,
11712,
1300,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
3198,
14478,
11712,
1300,
53,
18,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20184,
9218,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14876,
9218,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14876,
9218,
53,
19,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20184,
9218,
53,
19,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20184,
7004,
9218,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
20184,
7004,
9218,
53,
19,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
7293,
2790,
6601,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
18831,
1961,
1045,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
9704,
263,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
43,
270,
1691,
6601,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
33814,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12982,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14876,
7004,
9218,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
14876,
7004,
9218,
53,
19,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
12982,
33682,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
34500,
10138,
19703,
11197,
18831,
1961,
1045,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
34500,
10138,
19703,
11197,
18831,
1961,
1045,
53,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
44,
9697,
20520,
628,
198,
198,
4871,
29673,
1546,
2521,
9218,
53,
18,
7,
40492,
1546,
2521,
9218,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
16,
13,
220,
5094,
12,
9218,
14711,
15109,
23575,
7383,
6400,
1039,
357,
24835,
352,
8,
628,
220,
220,
220,
317,
5094,
12,
9218,
14711,
15109,
23575,
7383,
19638,
6622,
262,
6246,
1994,
973,
198,
220,
220,
220,
284,
34117,
257,
3275,
13,
220,
12169,
393,
517,
5094,
12,
9218,
14711,
15109,
23575,
7383,
198,
220,
220,
220,
24624,
290,
14,
273,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
24624,
743,
198,
220,
220,
220,
8555,
68,
257,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
6400,
316,
11,
543,
6622,
281,
198,
220,
220,
220,
19365,
3275,
13,
220,
383,
3275,
318,
19365,
351,
262,
6246,
1994,
11,
198,
220,
220,
220,
290,
262,
6246,
1994,
318,
2346,
19365,
290,
8574,
287,
262,
14711,
15109,
198,
220,
220,
220,
23575,
7383,
19638,
7,
82,
737,
220,
383,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
6400,
316,
318,
198,
220,
220,
220,
27165,
416,
530,
5094,
12,
9218,
14711,
15109,
23575,
7383,
19638,
329,
1123,
198,
220,
220,
220,
4946,
6968,
47,
1994,
284,
543,
262,
3275,
318,
19365,
13,
220,
383,
17800,
286,
262,
198,
220,
220,
220,
3275,
7228,
257,
6246,
1994,
326,
318,
19365,
284,
511,
1171,
1994,
11,
198,
220,
220,
220,
42797,
82,
262,
6246,
1994,
11,
290,
788,
3544,
262,
6246,
1994,
284,
42797,
198,
220,
220,
220,
262,
3275,
13,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
1271,
3501,
262,
2196,
1271,
286,
262,
19638,
2099,
13,
198,
220,
220,
220,
220,
220,
220,
383,
3058,
5447,
1988,
329,
19638,
2196,
318,
513,
13,
628,
220,
220,
220,
220,
532,
1052,
3624,
12,
38441,
316,
1271,
326,
3607,
262,
7383,
4522,
286,
262,
1171,
1994,
284,
198,
220,
220,
220,
220,
220,
220,
543,
262,
6246,
1994,
318,
19365,
13,
220,
1002,
262,
6246,
1994,
318,
198,
220,
220,
220,
220,
220,
220,
19365,
284,
257,
850,
2539,
11,
788,
262,
7383,
4522,
286,
428,
850,
2539,
318,
973,
198,
220,
220,
220,
220,
220,
220,
994,
2427,
286,
262,
7383,
4522,
286,
262,
4165,
1994,
13,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
1271,
3501,
262,
1171,
12,
2539,
11862,
973,
13,
628,
220,
220,
220,
220,
532,
317,
4731,
286,
19318,
1039,
326,
318,
262,
19365,
6246,
1994,
13,
220,
770,
198,
220,
220,
220,
220,
220,
220,
4731,
2753,
510,
262,
17675,
286,
262,
19638,
11,
290,
663,
10154,
389,
198,
220,
220,
220,
220,
220,
220,
10795,
319,
262,
1171,
12,
2539,
11862,
973,
13,
628,
220,
220,
220,
978,
42289,
17377,
23948,
329,
42319,
15835,
628,
220,
220,
220,
220,
532,
18540,
8344,
1166,
18253,
357,
7378,
40,
8,
286,
42319,
19365,
1988,
285,
1174,
68,
953,
299,
13,
628,
220,
220,
220,
978,
42289,
17377,
23948,
329,
2574,
28483,
282,
15835,
25,
628,
220,
220,
220,
220,
532,
4904,
40,
286,
2574,
28483,
282,
357,
28813,
494,
12,
28254,
805,
8,
1988,
308,
1174,
74,
953,
279,
13,
628,
220,
220,
220,
220,
532,
4904,
40,
286,
2574,
28483,
282,
357,
28813,
494,
12,
28254,
805,
8,
1988,
285,
1635,
331,
1174,
74,
953,
279,
13,
628,
220,
220,
220,
383,
1988,
366,
76,
1,
287,
262,
2029,
32126,
318,
10944,
422,
262,
6246,
1994,
198,
220,
220,
220,
355,
5679,
13,
220,
3274,
11,
262,
6246,
1994,
318,
7694,
2966,
351,
257,
530,
12,
38441,
316,
198,
220,
220,
220,
11862,
27421,
326,
26052,
262,
23606,
19482,
15835,
198,
220,
220,
220,
11862,
973,
284,
34117,
262,
1708,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
198,
220,
220,
220,
6400,
316,
13,
220,
3244,
257,
734,
12,
38441,
316,
8794,
388,
318,
598,
1631,
11,
543,
318,
4961,
284,
262,
198,
220,
220,
220,
2160,
286,
262,
18148,
6246,
1994,
19318,
1039,
11,
407,
1390,
262,
11862,
198,
220,
220,
220,
27421,
11,
953,
43348,
45021,
2623,
13,
220,
770,
1988,
318,
788,
30240,
355,
3417,
287,
198,
220,
220,
220,
29673,
7902,
2,
16,
2512,
21004,
412,
11682,
12,
40492,
7902,
16,
12,
85,
16,
62,
20,
287,
7275,
767,
13,
17,
13,
16,
286,
685,
41150,
33535,
22,
60,
284,
198,
220,
220,
220,
1296,
262,
366,
76,
1,
1988,
973,
287,
262,
32126,
2029,
13,
220,
4091,
7275,
1511,
13,
16,
286,
198,
220,
220,
220,
428,
3188,
329,
4710,
319,
4946,
6968,
47,
338,
779,
286,
29673,
7902,
2,
16,
13,
628,
220,
220,
220,
5740,
326,
618,
281,
7822,
5107,
1811,
29673,
1546,
42,
82,
351,
530,
198,
220,
220,
220,
6246,
1994,
11,
14583,
257,
3275,
326,
460,
307,
875,
15109,
416,
1811,
8251,
11,
198,
220,
220,
220,
262,
7822,
17191,
787,
257,
649,
29673,
7902,
2,
16,
21004,
329,
1123,
1994,
13,
628,
220,
220,
220,
1052,
7822,
26720,
2453,
393,
779,
257,
7383,
4522,
286,
6632,
355,
257,
366,
21992,
2657,
1,
198,
220,
220,
220,
393,
366,
4125,
3129,
876,
1,
7383,
4522,
13,
220,
554,
428,
1339,
11,
262,
6464,
7822,
198,
220,
220,
220,
561,
1949,
477,
1695,
2839,
8251,
11,
10627,
329,
257,
4938,
875,
15109,
198,
220,
220,
220,
6246,
1994,
13,
220,
770,
5794,
5419,
4646,
4979,
3781,
286,
6218,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
332,
834,
796,
513,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
12685,
563,
42104,
13,
30238,
7,
1525,
83,
451,
2433,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
79,
74,
14016,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
79,
74,
14016,
13,
30238,
7,
14876,
9218,
2348,
42289,
8,
628,
198,
198,
4871,
34894,
53,
19,
7,
11712,
1300,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
17,
13,
18,
13,
220,
10628,
604,
34894,
6400,
316,
18980,
628,
220,
220,
220,
383,
1767,
286,
257,
2196,
604,
34894,
19638,
4909,
25,
628,
220,
220,
220,
220,
532,
1881,
12,
38441,
316,
2196,
1271,
357,
19,
737,
628,
220,
220,
220,
220,
532,
1881,
12,
38441,
316,
9877,
2099,
13,
628,
220,
220,
220,
220,
532,
1881,
12,
38441,
316,
1171,
12,
2539,
11862,
13,
628,
220,
220,
220,
220,
532,
1881,
12,
38441,
316,
12234,
11862,
13,
628,
220,
220,
220,
220,
532,
4930,
12,
38441,
316,
16578,
283,
19318,
316,
954,
329,
1708,
468,
704,
850,
8002,
316,
1366,
13,
198,
220,
220,
220,
220,
220,
220,
5740,
326,
428,
318,
262,
4129,
287,
19318,
1039,
286,
477,
286,
262,
468,
704,
198,
220,
220,
220,
220,
220,
220,
850,
8002,
1039,
26,
257,
17562,
1253,
12061,
416,
428,
1271,
481,
14267,
625,
198,
220,
220,
220,
220,
220,
220,
262,
468,
704,
850,
8002,
1039,
13,
628,
220,
220,
220,
220,
532,
367,
5263,
850,
8002,
316,
1366,
900,
357,
22570,
393,
517,
850,
8002,
1039,
737,
628,
220,
220,
220,
220,
532,
4930,
12,
38441,
316,
16578,
283,
19318,
316,
954,
329,
262,
1708,
14274,
5263,
850,
8002,
316,
198,
220,
220,
220,
220,
220,
220,
1366,
13,
220,
5740,
326,
428,
318,
262,
4129,
287,
19318,
1039,
286,
477,
286,
262,
198,
220,
220,
220,
220,
220,
220,
14274,
5263,
850,
8002,
1039,
26,
257,
17562,
1253,
12061,
416,
428,
1271,
481,
198,
220,
220,
220,
220,
220,
220,
14267,
625,
262,
14274,
5263,
850,
8002,
1039,
13,
628,
220,
220,
220,
220,
532,
791,
71,
5263,
850,
8002,
316,
1366,
900,
357,
22570,
393,
517,
850,
8002,
1039,
737,
628,
220,
220,
220,
220,
532,
4930,
12,
38441,
316,
2214,
4769,
262,
1364,
1467,
10340,
286,
262,
4488,
12234,
198,
220,
220,
220,
220,
220,
220,
1988,
13,
628,
220,
220,
220,
220,
532,
1881,
393,
517,
18540,
8344,
1166,
37014,
27918,
262,
9877,
13,
198,
220,
220,
220,
220,
220,
220,
770,
6903,
318,
11862,
2176,
11,
355,
3417,
2029,
13,
628,
220,
220,
220,
383,
1673,
36686,
341,
286,
262,
1366,
852,
4488,
290,
262,
9877,
1366,
198,
220,
220,
220,
422,
262,
2196,
1271,
832,
262,
468,
704,
850,
8002,
316,
1366,
357,
259,
5731,
8,
198,
220,
220,
220,
318,
468,
704,
13,
220,
383,
7186,
12234,
1988,
318,
644,
318,
4488,
13,
220,
383,
1364,
1467,
198,
220,
220,
220,
10340,
286,
262,
12234,
389,
3017,
287,
262,
34894,
19638,
284,
2148,
257,
198,
220,
220,
220,
2068,
1332,
284,
4968,
617,
12515,
17239,
13,
628,
220,
220,
220,
1318,
389,
734,
7032,
17747,
286,
34894,
850,
8002,
1039,
13,
220,
383,
717,
198,
220,
220,
220,
2214,
318,
468,
704,
351,
262,
1334,
286,
262,
9877,
1366,
11,
981,
262,
1218,
198,
220,
220,
220,
318,
14274,
5263,
13,
220,
383,
1218,
900,
286,
850,
8002,
1039,
318,
407,
8194,
33145,
198,
220,
220,
220,
6861,
416,
262,
9877,
290,
815,
2291,
691,
20852,
198,
220,
220,
220,
1321,
13,
628,
220,
220,
220,
383,
16113,
329,
23202,
262,
12234,
2163,
1255,
284,
257,
9877,
198,
220,
220,
220,
389,
3417,
287,
257,
2665,
2174,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
332,
834,
796,
604,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
82,
328,
4906,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
82,
328,
4906,
13,
30238,
7,
11712,
1300,
6030,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
12984,
14016,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
12984,
14016,
13,
30238,
7,
14876,
9218,
2348,
42289,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
71,
14016,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
71,
14016,
13,
30238,
7,
26257,
2348,
42289,
8,
628,
220,
220,
220,
2488,
26745,
628,
220,
220,
220,
2488,
12683,
1300,
13,
2617,
353,
628,
220,
220,
220,
2488,
26745,
628,
198,
198,
4871,
14277,
1546,
2521,
9218,
53,
19,
7,
18831,
1546,
2521,
9218,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
18,
13,
220,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
6400,
1039,
357,
24835,
513,
8,
628,
220,
220,
220,
383,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
19638,
6622,
262,
198,
220,
220,
220,
23606,
19482,
12,
2539,
15835,
286,
257,
6246,
1994,
973,
284,
34117,
257,
3275,
13,
198,
220,
220,
220,
12169,
393,
517,
5094,
12,
9218,
14711,
15109,
23575,
7383,
24624,
290,
14,
273,
198,
220,
220,
220,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
24624,
743,
8555,
68,
257,
198,
220,
220,
220,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
326,
6622,
281,
19365,
3275,
13,
198,
220,
220,
220,
383,
3275,
318,
19365,
351,
257,
6246,
1994,
11,
290,
262,
6246,
1994,
318,
198,
220,
220,
220,
2346,
19365,
290,
8574,
287,
262,
14711,
15109,
23575,
7383,
19638,
393,
198,
220,
220,
220,
262,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
19638,
13,
628,
220,
220,
220,
1002,
262,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
318,
27165,
416,
530,
393,
198,
220,
220,
220,
517,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
24624,
11,
1123,
26052,
257,
198,
220,
220,
220,
1208,
34675,
326,
743,
307,
973,
284,
42797,
262,
3275,
13,
220,
770,
3578,
257,
198,
220,
220,
220,
3275,
284,
307,
19365,
284,
257,
1271,
286,
1171,
8251,
11,
290,
635,
284,
530,
198,
220,
220,
220,
393,
517,
1208,
746,
81,
1386,
13,
220,
770,
19638,
2099,
318,
649,
290,
318,
407,
7560,
198,
220,
220,
220,
416,
350,
16960,
362,
13,
87,
393,
350,
16960,
642,
13,
15,
13,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
2196,
1271,
13,
220,
383,
691,
3058,
5447,
2196,
198,
220,
220,
220,
220,
220,
220,
318,
604,
13,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
1271,
12059,
262,
23606,
19482,
11862,
973,
13,
628,
220,
220,
220,
220,
532,
317,
4731,
12,
1462,
12,
2539,
357,
50,
17,
42,
8,
1020,
7483,
11,
4129,
355,
5447,
2029,
13,
628,
220,
220,
220,
220,
532,
16018,
453,
11,
262,
19365,
6246,
1994,
2346,
11,
543,
318,
875,
15109,
198,
220,
220,
220,
220,
220,
220,
351,
262,
4731,
12,
1462,
12,
2539,
2134,
13,
628,
220,
220,
220,
1002,
262,
19365,
6246,
1994,
318,
407,
1944,
357,
4758,
460,
307,
12326,
198,
220,
220,
220,
319,
262,
4308,
286,
19638,
4129,
290,
311,
17,
42,
1020,
7483,
2546,
828,
788,
262,
311,
17,
42,
198,
220,
220,
220,
11862,
5625,
284,
262,
1208,
34675,
11073,
262,
6246,
1994,
329,
198,
220,
220,
220,
42797,
278,
262,
2393,
11,
1262,
262,
23606,
19482,
38012,
11862,
422,
262,
198,
220,
220,
220,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
19638,
13,
628,
220,
220,
220,
1002,
262,
19365,
6246,
1994,
318,
1944,
11,
262,
1255,
286,
11524,
262,
198,
220,
220,
220,
311,
17,
42,
11862,
284,
262,
1208,
34675,
318,
973,
284,
42797,
655,
326,
198,
220,
220,
220,
19365,
6246,
1994,
2214,
11,
1262,
18551,
33,
4235,
351,
281,
8363,
286,
477,
1976,
27498,
13,
198,
220,
220,
220,
383,
875,
13168,
1255,
10874,
286,
257,
530,
12,
38441,
316,
11862,
27421,
198,
220,
220,
220,
326,
26052,
262,
23606,
19482,
12,
2539,
15835,
11862,
973,
284,
198,
220,
220,
220,
34117,
262,
1708,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
11,
3940,
198,
220,
220,
220,
416,
262,
6246,
1994,
19318,
1039,
2405,
13,
628,
220,
220,
220,
5740,
25,
780,
281,
477,
12,
22570,
8363,
318,
973,
329,
428,
875,
13168,
11,
262,
311,
17,
42,
198,
220,
220,
220,
1020,
7483,
17191,
779,
257,
8268,
1988,
11,
2035,
257,
4849,
1513,
311,
17,
42,
393,
281,
198,
220,
220,
220,
40806,
515,
12,
19221,
1513,
311,
17,
42,
13,
220,
383,
8268,
1988,
481,
4155,
326,
262,
875,
13168,
198,
220,
220,
220,
1994,
318,
407,
5100,
772,
611,
262,
1208,
34675,
318,
46823,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
332,
834,
796,
604,
628,
220,
220,
220,
2488,
26745,
628,
198,
198,
4871,
1881,
14478,
11712,
1300,
53,
18,
7,
3198,
14478,
11712,
1300,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
19,
13,
220,
1881,
12,
14478,
34894,
6400,
1039,
357,
24835,
604,
8,
628,
220,
220,
220,
383,
1881,
12,
14478,
34894,
19638,
8555,
274,
262,
4488,
1366,
290,
4909,
198,
220,
220,
220,
1576,
1321,
284,
1249,
262,
9733,
284,
2221,
26019,
597,
198,
220,
220,
220,
46621,
2622,
284,
11767,
262,
9877,
13,
220,
632,
3578,
262,
34894,
198,
220,
220,
220,
19638,
284,
307,
4624,
379,
262,
886,
286,
262,
3275,
11,
523,
326,
262,
1051,
263,
198,
220,
220,
220,
460,
24061,
262,
2104,
4488,
3275,
287,
530,
1208,
13,
628,
220,
220,
220,
317,
1881,
12,
14478,
34894,
857,
407,
48817,
378,
351,
350,
16960,
362,
13,
21,
13,
87,
393,
198,
220,
220,
220,
2961,
13,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
2196,
1271,
13,
220,
383,
1459,
2196,
318,
513,
13,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
9877,
2099,
13,
220,
34894,
3858,
389,
3417,
287,
198,
220,
220,
220,
220,
220,
220,
7275,
642,
13,
17,
13,
16,
13,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
1271,
12059,
262,
12234,
11862,
973,
13,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
1271,
12059,
262,
1171,
12,
2539,
11862,
973,
13,
628,
220,
220,
220,
220,
532,
1052,
3624,
12,
38441,
316,
1271,
4769,
262,
7383,
4522,
286,
262,
8415,
1994,
13,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
1271,
4769,
257,
6056,
4478,
1771,
262,
9877,
198,
220,
220,
220,
220,
220,
220,
318,
28376,
13,
220,
317,
6632,
1988,
9217,
326,
262,
1306,
19638,
318,
198,
220,
220,
220,
220,
220,
220,
1194,
1881,
12,
14478,
34894,
19638,
326,
8477,
1194,
198,
220,
220,
220,
220,
220,
220,
9877,
284,
307,
5625,
284,
262,
976,
3275,
1366,
13,
628,
220,
220,
220,
5740,
326,
611,
257,
3275,
4909,
517,
621,
530,
530,
12,
6603,
9877,
11,
198,
220,
220,
220,
788,
262,
34894,
24624,
19096,
262,
3275,
26,
326,
318,
11,
262,
717,
198,
220,
220,
220,
34894,
19638,
706,
262,
3275,
24866,
284,
262,
938,
530,
12,
6603,
198,
220,
220,
220,
19638,
290,
262,
2457,
34894,
19638,
24866,
284,
262,
717,
198,
220,
220,
220,
530,
12,
6603,
19638,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
332,
834,
796,
513,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
82,
328,
4906,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
82,
328,
4906,
13,
30238,
7,
11712,
1300,
6030,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
12984,
14016,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
12984,
14016,
13,
30238,
7,
14876,
9218,
2348,
42289,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
71,
14016,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
71,
14016,
13,
30238,
7,
26257,
2348,
42289,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
12683,
263,
13,
30238,
7,
2536,
8,
198,
220,
220,
220,
2488,
12683,
263,
13,
30238,
7,
19412,
13,
5239,
62,
4906,
8,
628,
220,
220,
220,
2488,
12683,
263,
13,
30238,
7,
1525,
83,
451,
2433,
8,
628,
628,
628,
628,
198,
4871,
3082,
2790,
6601,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
21,
13,
220,
3082,
2790,
6060,
6400,
316,
357,
24835,
807,
8,
628,
220,
220,
220,
383,
3082,
2790,
6060,
19638,
4909,
25388,
1366,
13,
220,
27095,
11,
428,
198,
220,
220,
220,
19638,
318,
1043,
355,
262,
10154,
286,
281,
19365,
19638,
11,
393,
1708,
198,
220,
220,
220,
257,
34894,
393,
1881,
12,
14478,
34894,
19638,
11,
290,
4909,
257,
18875,
1366,
198,
220,
220,
220,
19638,
13,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
1881,
19318,
316,
326,
3607,
262,
11862,
973,
284,
27413,
262,
19638,
13,
628,
220,
220,
220,
220,
532,
3082,
2790,
1366,
11,
543,
1838,
510,
262,
17675,
286,
262,
19638,
13,
628,
220,
220,
220,
317,
3082,
2790,
6060,
6400,
316,
338,
1767,
4909,
281,
2512,
326,
552,
16746,
198,
220,
220,
220,
617,
900,
286,
24624,
13,
220,
4091,
2665,
366,
47,
8317,
955,
9150,
1,
329,
3307,
319,
198,
220,
220,
220,
703,
6218,
389,
7042,
13,
628,
220,
220,
220,
42977,
12,
5589,
2790,
24624,
389,
25388,
351,
8246,
30978,
27937,
685,
41150,
1129,
4349,
60,
198,
220,
220,
220,
5550,
3697,
6158,
7021,
13,
220,
5740,
326,
350,
16960,
569,
17,
13,
21,
3544,
1511,
10340,
286,
19794,
13,
220,
1002,
198,
220,
220,
220,
281,
7822,
3544,
517,
10340,
286,
19794,
11,
350,
16960,
569,
17,
13,
21,
2314,
198,
220,
220,
220,
38237,
601,
340,
13,
628,
220,
220,
220,
1168,
40347,
12,
5589,
2790,
24624,
389,
25388,
351,
30978,
11445,
685,
41150,
42751,
60,
1168,
40347,
12,
198,
220,
220,
220,
3918,
7021,
13,
628,
220,
220,
220,
347,
41729,
17,
12,
5589,
2790,
24624,
389,
25388,
1262,
262,
347,
41729,
17,
685,
33,
57,
17,
60,
198,
220,
220,
220,
11862,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
2919,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
9948,
70,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
9948,
70,
13,
30238,
7,
7293,
2234,
2348,
42289,
8,
628,
198,
4871,
14277,
1961,
1045,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
22,
13,
220,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
6400,
316,
357,
24835,
860,
8,
628,
220,
220,
220,
383,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
4909,
1366,
19365,
351,
198,
220,
220,
220,
257,
23606,
19482,
12,
2539,
11862,
13,
220,
1649,
340,
468,
587,
875,
15109,
11,
340,
4909,
198,
220,
220,
220,
584,
24624,
357,
23073,
257,
18875,
1366,
19638,
393,
25388,
1366,
198,
220,
220,
220,
19638,
11,
475,
287,
4583,
584,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
24624,
393,
198,
220,
220,
220,
16311,
286,
24624,
326,
1296,
2187,
4946,
6968,
47,
6218,
737,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
14711,
15109,
1366,
11,
262,
5072,
286,
262,
6163,
23606,
19482,
12,
2539,
38012,
198,
220,
220,
220,
220,
220,
220,
5361,
287,
4946,
6968,
47,
338,
15304,
286,
44334,
37774,
357,
22495,
33,
8,
4235,
13,
628,
220,
220,
220,
383,
23606,
19482,
38012,
973,
743,
307,
7368,
287,
257,
5094,
12,
9218,
393,
198,
220,
220,
220,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
19638,
326,
8555,
274,
262,
198,
220,
220,
220,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
13,
220,
554,
326,
1339,
11,
262,
38012,
198,
220,
220,
220,
11862,
19318,
316,
318,
7694,
2966,
284,
262,
6246,
1994,
878,
340,
318,
198,
220,
220,
220,
19365,
13,
220,
1002,
645,
24624,
286,
777,
3858,
8555,
68,
262,
19365,
1366,
11,
198,
220,
220,
220,
262,
4522,
16412,
11862,
318,
973,
351,
262,
6246,
1994,
10488,
355,
262,
10670,
20,
198,
220,
220,
220,
12234,
286,
262,
1208,
34675,
11,
996,
428,
779,
318,
39224,
13,
628,
220,
220,
220,
383,
1366,
318,
19365,
287,
18551,
33,
4235,
11,
351,
257,
18551,
33,
6482,
2546,
4961,
284,
262,
198,
220,
220,
220,
38012,
338,
2512,
2546,
13,
220,
383,
20768,
20650,
357,
3824,
8,
318,
7368,
355,
477,
198,
220,
220,
220,
1976,
27498,
13,
220,
5455,
286,
1262,
281,
8363,
11,
4946,
6968,
47,
21231,
274,
257,
4731,
286,
4129,
198,
220,
220,
220,
4961,
284,
262,
2512,
2546,
286,
262,
38012,
5556,
734,
284,
262,
1366,
878,
340,
198,
220,
220,
220,
318,
19365,
13,
220,
383,
717,
2512,
12,
7857,
19318,
1039,
357,
1640,
1672,
11,
807,
19318,
1039,
329,
198,
220,
220,
220,
257,
5598,
12,
2545,
2512,
4129,
8,
389,
4738,
11,
290,
262,
1708,
734,
19318,
1039,
389,
198,
220,
220,
220,
9088,
286,
262,
938,
734,
19318,
1039,
286,
262,
8363,
13,
220,
1114,
1672,
11,
287,
281,
807,
12,
38441,
316,
198,
220,
220,
220,
2512,
11,
19318,
316,
860,
318,
257,
9585,
286,
19318,
316,
767,
11,
290,
19318,
316,
838,
318,
257,
9585,
286,
198,
220,
220,
220,
19318,
316,
807,
13,
220,
554,
257,
38012,
286,
4129,
1467,
11,
19318,
316,
1596,
318,
257,
9585,
286,
19318,
316,
1315,
198,
220,
220,
220,
290,
19318,
316,
1248,
318,
257,
9585,
286,
19318,
316,
1467,
13,
220,
1081,
257,
7190,
5109,
31321,
11,
198,
220,
220,
220,
287,
1111,
777,
6096,
11,
356,
2074,
262,
717,
19318,
316,
284,
307,
25840,
352,
13,
628,
220,
220,
220,
2293,
34117,
278,
262,
717,
2512,
12,
7857,
12,
9541,
12,
11545,
19318,
1039,
11,
262,
18551,
33,
1181,
198,
220,
220,
220,
318,
581,
24871,
1143,
13,
220,
383,
938,
2512,
12,
7857,
19318,
1039,
286,
38012,
5239,
389,
198,
220,
220,
220,
3804,
832,
262,
38012,
290,
262,
2512,
18645,
318,
13259,
13,
628,
220,
220,
220,
383,
29693,
286,
1467,
10340,
287,
262,
4738,
1366,
7694,
2966,
284,
262,
3275,
198,
220,
220,
220,
3578,
262,
9733,
284,
3393,
2198,
1771,
262,
6246,
1994,
318,
198,
220,
220,
220,
11491,
13,
220,
4091,
262,
366,
24074,
12642,
602,
1,
2665,
329,
20269,
319,
198,
220,
220,
220,
262,
1774,
779,
286,
428,
366,
24209,
2198,
1911,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
2931,
628,
198,
198,
4871,
25659,
1691,
6601,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
24,
13,
220,
25659,
1691,
6060,
6400,
316,
357,
24835,
1367,
8,
628,
220,
220,
220,
317,
25659,
1691,
6060,
19638,
4909,
262,
1767,
286,
257,
3275,
26,
1366,
326,
318,
198,
220,
220,
220,
407,
284,
307,
2252,
16173,
13,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
2214,
326,
8477,
703,
262,
1366,
318,
39559,
13,
628,
220,
220,
220,
1002,
340,
318,
257,
705,
65,
6,
357,
15,
87,
5237,
828,
788,
262,
25659,
1691,
19638,
4909,
13934,
1366,
13,
198,
220,
220,
220,
1002,
340,
318,
257,
705,
83,
6,
357,
15,
87,
4524,
828,
788,
340,
4909,
2420,
1366,
11,
290,
4145,
743,
761,
198,
220,
220,
220,
1627,
5645,
11513,
284,
1957,
1296,
11,
393,
584,
2420,
12,
14171,
2458,
13,
220,
383,
198,
220,
220,
220,
7621,
705,
84,
6,
357,
15,
87,
2425,
8,
1724,
262,
976,
355,
705,
83,
3256,
475,
635,
9217,
326,
198,
220,
220,
220,
7822,
5804,
326,
262,
18875,
1366,
4909,
41002,
12,
23,
2420,
13,
628,
220,
220,
220,
12556,
6300,
286,
350,
16960,
635,
5447,
257,
1988,
286,
705,
75,
6,
355,
257,
705,
12001,
6,
4235,
198,
220,
220,
220,
329,
4572,
12,
12001,
32626,
13,
220,
30978,
10249,
685,
41150,
24529,
60,
23175,
5081,
198,
220,
220,
220,
428,
1957,
4235,
6056,
355,
705,
16,
6,
357,
42643,
3978,
997,
1691,
530,
737,
220,
5747,
286,
777,
1957,
198,
220,
220,
220,
12881,
389,
39224,
13,
628,
220,
220,
220,
220,
532,
9220,
1438,
355,
257,
4731,
357,
505,
12,
38441,
316,
4129,
11,
3940,
416,
257,
2393,
198,
220,
220,
220,
220,
220,
220,
1438,
737,
220,
770,
743,
307,
257,
6632,
12,
13664,
4731,
13,
220,
8070,
306,
11,
611,
262,
198,
220,
220,
220,
220,
220,
220,
2723,
286,
262,
19365,
1366,
318,
257,
2393,
11,
428,
481,
307,
262,
1438,
286,
198,
220,
220,
220,
220,
220,
220,
262,
19365,
2393,
13,
220,
1052,
7822,
26720,
2074,
262,
2393,
1438,
198,
220,
220,
220,
220,
220,
220,
287,
262,
25659,
1691,
19638,
284,
307,
257,
517,
32042,
1438,
621,
262,
198,
220,
220,
220,
220,
220,
220,
4036,
2393,
1438,
13,
628,
220,
220,
220,
1002,
262,
2041,
1438,
45434,
10943,
15821,
2538,
1,
318,
973,
11,
262,
3275,
318,
3177,
284,
198,
220,
220,
220,
307,
366,
1640,
534,
2951,
691,
1911,
220,
770,
34138,
326,
262,
3275,
1366,
318,
198,
220,
220,
220,
23708,
8564,
11,
290,
262,
6464,
1430,
815,
1429,
340,
517,
198,
220,
220,
220,
7773,
11,
3737,
14928,
23069,
262,
2722,
1366,
284,
11898,
11,
329,
198,
220,
220,
220,
1672,
13,
628,
220,
220,
220,
220,
532,
317,
1440,
12,
38441,
316,
1271,
326,
9217,
257,
3128,
3917,
351,
262,
198,
220,
220,
220,
220,
220,
220,
18875,
1366,
13,
220,
8070,
306,
11,
262,
3128,
1244,
307,
262,
17613,
3128,
198,
220,
220,
220,
220,
220,
220,
286,
257,
2393,
11,
393,
262,
640,
262,
19638,
373,
2727,
11,
393,
257,
6632,
326,
198,
220,
220,
220,
220,
220,
220,
9217,
645,
2176,
640,
13,
628,
220,
220,
220,
220,
532,
383,
17675,
286,
262,
19638,
318,
18875,
1366,
13,
628,
220,
220,
220,
220,
220,
220,
8255,
1366,
318,
8574,
351,
1279,
9419,
6927,
43,
37,
29,
2420,
38168,
357,
72,
13,
68,
1539,
3127,
12,
198,
220,
220,
220,
220,
220,
220,
3487,
1627,
38168,
737,
220,
2312,
815,
307,
11513,
284,
6868,
1627,
198,
220,
220,
220,
220,
220,
220,
38168,
416,
262,
6464,
3788,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
15,
33,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
76,
2435,
13,
30238,
7,
19608,
8079,
8,
628,
220,
220,
220,
2488,
76,
2435,
13,
30238,
7,
600,
8,
628,
220,
220,
220,
2488,
76,
2435,
13,
30238,
7,
33661,
8,
198,
220,
220,
220,
2488,
76,
2435,
13,
30238,
7,
1525,
83,
451,
2433,
8,
628,
220,
220,
220,
2488,
26745,
628,
198,
4871,
9870,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
940,
13,
220,
9870,
6400,
316,
357,
24835,
1105,
8,
628,
220,
220,
220,
383,
9870,
19638,
318,
973,
691,
1626,
1994,
33173,
290,
318,
407,
7685,
198,
220,
220,
220,
29050,
13,
220,
9870,
24624,
3994,
1366,
326,
1700,
262,
2836,
338,
198,
220,
220,
220,
20640,
286,
543,
1994,
16392,
389,
34412,
3120,
7999,
11,
198,
220,
220,
220,
1863,
351,
584,
1321,
326,
15427,
3788,
3544,
329,
198,
220,
220,
220,
3774,
1321,
13,
220,
383,
5794,
286,
9870,
24624,
318,
5447,
416,
257,
1813,
198,
220,
220,
220,
7822,
13,
628,
220,
220,
220,
9870,
24624,
40312,
5626,
307,
31234,
284,
5072,
15190,
326,
389,
198,
220,
220,
220,
11172,
284,
584,
2985,
11,
290,
484,
40312,
307,
9514,
319,
597,
5128,
198,
220,
220,
220,
584,
621,
1957,
1994,
1806,
3696,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
15,
34,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
38087,
5715,
13,
30238,
7,
600,
8,
198,
220,
220,
220,
2488,
38087,
5715,
13,
30238,
7,
33814,
4971,
8,
628,
220,
220,
220,
2488,
21282,
26745,
628,
220,
220,
220,
2488,
38087,
33152,
13,
30238,
7,
4868,
8,
628,
220,
220,
220,
2488,
38087,
33152,
13,
30238,
7,
600,
8,
628,
198,
4871,
11787,
2389,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
1157,
13,
220,
11787,
4522,
6400,
316,
357,
24835,
1511,
8,
628,
220,
220,
220,
317,
11787,
4522,
19638,
10874,
286,
41002,
12,
23,
2420,
326,
318,
5292,
284,
2380,
198,
220,
220,
220,
262,
1438,
290,
3053,
2209,
286,
262,
1994,
15762,
13,
220,
2750,
9831,
11,
340,
198,
220,
220,
220,
3407,
281,
30978,
2579,
1828,
685,
41150,
2078,
1828,
60,
6920,
1438,
12,
29851,
11,
475,
612,
389,
645,
198,
220,
220,
220,
8733,
319,
663,
2695,
13,
220,
383,
19638,
4129,
287,
262,
13639,
198,
220,
220,
220,
26052,
262,
4129,
286,
262,
11787,
4522,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
15,
35,
628,
628,
198,
4871,
11787,
33682,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
1065,
13,
220,
11787,
3460,
4163,
6400,
316,
357,
24835,
1596,
8,
628,
220,
220,
220,
383,
11787,
3460,
4163,
19638,
318,
257,
12291,
286,
262,
11787,
4522,
19638,
13,
220,
632,
198,
220,
220,
220,
318,
6007,
286,
23069,
517,
3858,
286,
1366,
621,
262,
11787,
4522,
19638,
11,
198,
220,
220,
220,
543,
318,
3614,
284,
2420,
13,
220,
4525,
262,
11787,
4522,
19638,
11,
257,
11787,
3460,
4163,
198,
220,
220,
220,
19638,
743,
307,
15704,
416,
262,
1994,
4870,
5855,
944,
12,
32696,
4943,
393,
597,
584,
198,
220,
220,
220,
1994,
4870,
508,
16609,
284,
46125,
340,
13,
220,
18181,
355,
4367,
11,
257,
11787,
3460,
4163,
198,
220,
220,
220,
19638,
743,
307,
973,
6609,
326,
257,
11787,
4522,
19638,
743,
307,
973,
13,
628,
220,
220,
220,
2893,
11787,
3460,
4163,
24624,
389,
407,
257,
2672,
636,
286,
262,
4946,
6968,
47,
198,
220,
220,
220,
3210,
11,
25504,
40312,
2148,
379,
1551,
1576,
198,
220,
220,
220,
17764,
284,
6105,
5412,
257,
18094,
9877,
319,
262,
198,
220,
220,
220,
11787,
3460,
4163,
19638,
13,
220,
317,
2829,
835,
284,
466,
428,
318,
416,
13622,
262,
198,
220,
220,
220,
11787,
3460,
4163,
19638,
355,
257,
11787,
4522,
19638,
351,
32191,
10154,
11,
475,
198,
220,
220,
220,
281,
7822,
743,
779,
597,
2446,
10348,
13,
628,
220,
220,
220,
383,
11787,
3460,
4163,
19638,
318,
925,
510,
286,
530,
393,
517,
11688,
198,
220,
220,
220,
850,
8002,
1039,
13,
220,
5501,
850,
8002,
316,
10874,
286,
257,
850,
8002,
316,
13639,
290,
257,
198,
220,
220,
220,
1767,
13,
220,
383,
13639,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
262,
850,
8002,
316,
4129,
357,
16,
11,
362,
11,
393,
642,
19318,
1039,
8,
628,
220,
220,
220,
220,
532,
262,
850,
8002,
316,
2099,
357,
16,
19318,
316,
8,
628,
220,
220,
220,
290,
318,
3940,
416,
262,
850,
8002,
316,
2176,
1366,
13,
628,
220,
220,
220,
383,
691,
3058,
5447,
850,
8002,
316,
2099,
318,
352,
11,
1051,
4035,
281,
2939,
13,
198,
220,
220,
220,
1052,
7822,
40312,
8856,
597,
850,
8002,
316,
286,
257,
2099,
326,
340,
857,
198,
220,
220,
220,
407,
7564,
13,
220,
3834,
8002,
316,
3858,
1802,
832,
9796,
389,
10395,
329,
198,
220,
220,
220,
2839,
393,
11992,
779,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
1157,
628,
220,
220,
220,
2488,
26745,
628,
198,
198,
4871,
39348,
19703,
11197,
18831,
1961,
1045,
53,
16,
7,
34500,
10138,
19703,
11197,
18831,
1961,
1045,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
1485,
13,
220,
15845,
13,
14711,
15109,
39348,
5038,
11197,
6060,
6400,
316,
357,
24835,
1248,
8,
628,
220,
220,
220,
383,
1632,
3020,
21879,
1146,
14711,
15109,
39348,
5038,
11197,
6060,
19638,
318,
257,
198,
220,
220,
220,
15304,
286,
262,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
13,
220,
632,
318,
257,
649,
198,
220,
220,
220,
3895,
2727,
329,
4946,
6968,
47,
326,
9405,
262,
1917,
286,
31521,
257,
198,
220,
220,
220,
17613,
284,
19365,
1366,
13,
220,
632,
318,
973,
287,
6087,
351,
257,
198,
220,
220,
220,
3401,
2649,
46254,
6127,
19638,
13,
628,
220,
220,
220,
1318,
318,
257,
11188,
3895,
287,
262,
3033,
34894,
850,
8002,
316,
198,
220,
220,
220,
326,
43397,
326,
281,
7822,
460,
6105,
779,
428,
19638,
198,
220,
220,
220,
2099,
13,
220,
1052,
7822,
17191,
1104,
42797,
278,
777,
24624,
290,
198,
220,
220,
220,
40312,
4702,
15453,
606,
284,
262,
4697,
1632,
3020,
21879,
1146,
14711,
15109,
198,
220,
220,
220,
6060,
19638,
618,
1744,
13,
220,
4619,
428,
1366,
19638,
17289,
1028,
198,
220,
220,
220,
17613,
3434,
11,
428,
3210,
18656,
663,
25068,
13,
198,
220,
220,
220,
2893,
18447,
12695,
286,
428,
1366,
19638,
561,
2251,
198,
220,
220,
220,
48817,
1799,
2761,
11,
5801,
12695,
318,
19032,
1593,
13,
198,
220,
220,
220,
1052,
7822,
40312,
5734,
42685,
1104,
329,
428,
19638,
11,
198,
220,
220,
220,
475,
340,
26720,
13249,
340,
422,
584,
11701,
13,
628,
220,
220,
220,
1114,
1672,
11,
281,
7822,
1244,
13249,
422,
262,
779,
286,
257,
38012,
198,
220,
220,
220,
884,
355,
13435,
14711,
13168,
8997,
357,
32,
1546,
8,
393,
1815,
1659,
680,
326,
257,
2836,
198,
220,
220,
220,
6971,
428,
3895,
13,
220,
632,
1244,
1295,
287,
262,
14274,
5263,
6903,
286,
198,
220,
220,
220,
1194,
2836,
338,
1994,
9877,
257,
17571,
850,
8002,
316,
13,
220,
632,
1244,
635,
198,
220,
220,
220,
1944,
257,
2836,
351,
281,
3663,
284,
43519,
511,
898,
2116,
12,
198,
220,
220,
220,
9877,
351,
257,
17571,
850,
8002,
316,
13,
628,
220,
220,
220,
770,
19638,
4909,
1366,
19365,
351,
257,
23606,
19482,
12,
2539,
11862,
198,
220,
220,
220,
290,
6861,
1028,
17613,
416,
262,
25630,
12,
16,
12234,
11862,
13,
220,
1649,
198,
220,
220,
220,
340,
468,
587,
875,
15109,
11,
340,
481,
6032,
3994,
584,
24624,
357,
28950,
198,
220,
220,
220,
257,
25659,
1691,
6060,
19638,
393,
3082,
2790,
6060,
19638,
737,
220,
383,
938,
875,
15109,
198,
220,
220,
220,
19638,
287,
428,
19638,
338,
21437,
17191,
307,
257,
3401,
2649,
46254,
6127,
198,
220,
220,
220,
19638,
13,
628,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
317,
530,
12,
38441,
316,
2196,
1271,
13,
220,
383,
691,
3058,
5447,
1988,
318,
198,
220,
220,
220,
220,
220,
220,
352,
13,
628,
220,
220,
220,
220,
532,
14711,
15109,
1366,
11,
262,
5072,
286,
262,
6163,
23606,
19482,
12,
2539,
38012,
198,
220,
220,
220,
220,
220,
220,
5361,
287,
44334,
37774,
4235,
351,
6482,
2033,
4961,
284,
262,
198,
220,
220,
220,
220,
220,
220,
2512,
2546,
286,
262,
38012,
357,
22495,
33,
12,
77,
810,
299,
318,
262,
2512,
2546,
737,
628,
220,
220,
220,
383,
23606,
19482,
38012,
973,
17191,
307,
7368,
287,
257,
5094,
12,
9218,
393,
198,
220,
220,
220,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
19638,
326,
8555,
274,
262,
198,
220,
220,
220,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
19638,
13,
220,
554,
2035,
1339,
11,
262,
38012,
198,
220,
220,
220,
11862,
19318,
316,
318,
7694,
2966,
284,
262,
6246,
1994,
878,
340,
318,
198,
220,
220,
220,
19365,
13,
628,
220,
220,
220,
383,
1366,
318,
19365,
287,
18551,
33,
4235,
11,
351,
257,
18551,
33,
6482,
2546,
4961,
284,
262,
198,
220,
220,
220,
38012,
338,
2512,
2546,
13,
220,
383,
20768,
20650,
357,
3824,
8,
318,
7368,
355,
477,
198,
220,
220,
220,
1976,
27498,
13,
220,
5455,
286,
1262,
281,
8363,
11,
4946,
6968,
47,
21231,
274,
281,
19318,
316,
4731,
284,
198,
220,
220,
220,
262,
1366,
878,
340,
318,
19365,
13,
220,
383,
4129,
286,
262,
19318,
316,
4731,
198,
220,
220,
220,
21767,
262,
2512,
2546,
286,
262,
38012,
287,
19318,
1039,
11,
5556,
734,
13,
220,
383,
717,
198,
220,
220,
220,
19318,
1039,
287,
262,
1448,
11,
286,
4129,
4961,
284,
262,
2512,
2546,
286,
262,
38012,
11,
198,
220,
220,
220,
389,
4738,
26,
262,
938,
734,
19318,
1039,
389,
1123,
9088,
286,
511,
362,
358,
198,
220,
220,
220,
18148,
19318,
316,
13,
220,
1114,
1672,
11,
351,
257,
38012,
3025,
2512,
2546,
318,
13108,
198,
220,
220,
220,
10340,
393,
1467,
19318,
1039,
11,
262,
21231,
1366,
481,
3994,
1467,
4738,
19318,
1039,
11,
198,
220,
220,
220,
788,
734,
517,
19318,
1039,
11,
543,
389,
9088,
286,
262,
1315,
400,
290,
1467,
400,
19318,
1039,
11,
198,
220,
220,
220,
8148,
13,
220,
12101,
262,
1632,
3020,
21879,
1146,
14711,
15109,
6060,
6400,
316,
11,
645,
198,
220,
220,
220,
2041,
18551,
33,
581,
24871,
1634,
318,
1760,
706,
34117,
278,
428,
21231,
198,
220,
220,
220,
1366,
13,
220,
4091,
366,
11505,
6968,
47,
18551,
33,
10363,
1,
2174,
329,
517,
3307,
13,
628,
220,
220,
220,
383,
29693,
286,
1467,
10340,
287,
262,
4738,
1366,
7694,
2966,
284,
262,
3275,
198,
220,
220,
220,
3578,
262,
9733,
284,
3393,
2198,
1771,
262,
6246,
1994,
318,
198,
220,
220,
220,
11491,
13,
628,
220,
220,
220,
383,
8631,
5239,
286,
262,
1366,
284,
307,
19365,
318,
3804,
832,
262,
25630,
12,
16,
198,
220,
220,
220,
12234,
2163,
11,
290,
262,
1255,
286,
262,
12234,
318,
598,
1631,
284,
262,
198,
220,
220,
220,
8631,
5239,
287,
257,
3401,
2649,
46254,
6127,
19638,
13,
220,
383,
5128,
284,
262,
198,
220,
220,
220,
12234,
2163,
3407,
262,
21231,
1366,
3417,
2029,
26,
340,
3407,
198,
220,
220,
220,
477,
286,
262,
8631,
5239,
11,
290,
788,
635,
3407,
734,
19318,
1039,
286,
3815,
198,
220,
220,
220,
657,
87,
35,
18,
11,
657,
87,
1415,
13,
220,
2312,
2380,
262,
21004,
286,
257,
3401,
2649,
46254,
198,
220,
220,
220,
6127,
19638,
7621,
290,
4129,
2214,
286,
1160,
19318,
1039,
13,
628,
220,
220,
220,
383,
7186,
12234,
1988,
318,
8574,
287,
257,
3401,
2649,
46254,
6127,
198,
220,
220,
220,
357,
44,
9697,
8,
19638,
11,
543,
17191,
779,
262,
734,
19318,
316,
21004,
655,
1813,
284,
198,
220,
220,
220,
2380,
663,
7621,
290,
4129,
2214,
13,
220,
383,
1767,
286,
262,
337,
9697,
19638,
318,
198,
220,
220,
220,
262,
1160,
12,
38441,
316,
5072,
286,
262,
25630,
12,
16,
12234,
13,
628,
220,
220,
220,
383,
3401,
2649,
46254,
6127,
19638,
318,
598,
1631,
284,
262,
8631,
5239,
198,
220,
220,
220,
290,
19365,
1863,
351,
262,
8631,
5239,
1262,
262,
976,
18551,
33,
4732,
13,
628,
220,
220,
220,
5856,
875,
13168,
11,
262,
8631,
5239,
1366,
815,
307,
468,
704,
351,
25630,
12,
16,
11,
198,
220,
220,
220,
1390,
262,
21231,
1366,
355,
880,
355,
262,
19638,
7621,
290,
4129,
2214,
198,
220,
220,
220,
286,
262,
3401,
2649,
46254,
6127,
19638,
13,
220,
383,
1767,
286,
262,
337,
9697,
198,
220,
220,
220,
19638,
11,
2402,
875,
13168,
11,
318,
3688,
351,
262,
1255,
286,
262,
25630,
12,
16,
198,
220,
220,
220,
12234,
13,
628,
220,
220,
220,
4377,
5287,
286,
262,
337,
9697,
9217,
326,
262,
3275,
468,
587,
9518,
198,
220,
220,
220,
290,
17191,
307,
5716,
355,
257,
2324,
1917,
13,
220,
18448,
942,
2291,
257,
198,
220,
220,
220,
3580,
287,
262,
12234,
3815,
11,
475,
635,
262,
8889,
286,
281,
337,
9697,
19638,
11,
198,
220,
220,
220,
393,
281,
337,
9697,
19638,
287,
597,
2292,
584,
621,
262,
886,
286,
262,
8631,
5239,
13,
198,
220,
220,
220,
4377,
5287,
40312,
307,
2098,
284,
262,
2836,
13,
628,
220,
220,
220,
5740,
25,
2003,
9824,
286,
649,
6300,
286,
428,
19638,
815,
2074,
198,
220,
220,
220,
4836,
1891,
3434,
1201,
340,
481,
307,
1744,
329,
281,
15250,
284,
1487,
198,
220,
220,
220,
262,
2196,
736,
284,
352,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
332,
834,
796,
352,
628,
198,
4871,
337,
9697,
7,
47,
8317,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
642,
13,
1415,
13,
220,
3401,
2649,
46254,
6127,
6400,
316,
357,
24835,
678,
8,
628,
220,
220,
220,
383,
3401,
2649,
46254,
6127,
19638,
4909,
257,
25630,
12,
16,
12234,
286,
198,
220,
220,
220,
8631,
5239,
1366,
11,
543,
318,
973,
284,
4886,
3275,
17613,
13,
220,
632,
318,
198,
220,
220,
220,
691,
973,
351,
257,
1632,
3020,
21879,
1146,
14711,
15109,
39348,
5038,
11197,
6060,
198,
220,
220,
220,
19638,
13,
220,
383,
3401,
2649,
46254,
6127,
19638,
17191,
307,
262,
938,
198,
220,
220,
220,
19638,
287,
262,
8631,
5239,
1366,
326,
318,
19365,
287,
262,
1632,
3020,
21879,
1146,
198,
220,
220,
220,
14711,
15109,
39348,
5038,
11197,
6060,
19638,
11,
290,
17191,
1656,
287,
645,
198,
220,
220,
220,
584,
1295,
13,
628,
220,
220,
220,
317,
3401,
2649,
46254,
6127,
19638,
17191,
423,
257,
4129,
286,
1160,
19318,
1039,
13,
198,
220,
220,
220,
383,
1767,
286,
428,
19638,
10874,
286,
25,
628,
220,
220,
220,
220,
532,
317,
1160,
12,
38441,
316,
25630,
12,
16,
12234,
286,
262,
18148,
8631,
5239,
1366,
286,
262,
198,
220,
220,
220,
220,
220,
220,
1632,
3020,
21879,
1146,
14711,
15109,
39348,
5038,
11197,
6060,
19638,
11,
198,
220,
220,
220,
220,
220,
220,
1390,
21231,
1366,
11,
262,
7621,
19318,
316,
11,
290,
4129,
19318,
316,
286,
262,
198,
220,
220,
220,
220,
220,
220,
3401,
2649,
46254,
6127,
19638,
13,
628,
220,
220,
220,
5740,
326,
262,
3401,
2649,
46254,
6127,
19638,
17191,
1464,
779,
257,
198,
220,
220,
220,
649,
5794,
21004,
286,
262,
19638,
7621,
11,
290,
257,
530,
12,
38441,
316,
21004,
286,
198,
220,
220,
220,
262,
19638,
4129,
13,
220,
383,
1738,
329,
428,
318,
326,
262,
49544,
3173,
329,
198,
220,
220,
220,
17613,
13326,
2291,
257,
530,
12,
38441,
316,
7621,
290,
530,
12,
38441,
316,
4129,
198,
220,
220,
220,
287,
262,
1366,
12234,
13,
220,
2893,
428,
318,
257,
1643,
26258,
11,
340,
12850,
198,
220,
220,
220,
13357,
13,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
11593,
4906,
312,
834,
796,
657,
87,
1485,
198
] | 3.291784 | 8,191 |
from datasets import ptb
from rnnlm_gen import RNNLMGen
corpus, word_to_id, id_to_word = ptb.load_data('train')
vocab_size = len(word_to_id)
corpus_size = len(corpus)
model = RNNLMGen()
# model.load_params('./chapter06/RNNLM.pkl')
# set start and skip word
start_word = 'you'
start_id = word_to_id[start_word]
skip_words = ['N', '<unk>', '$']
skip_ids = [word_to_id[w] for w in skip_words]
# generate sentence
word_ids = model.generate(start_id, skip_ids)
txt = ' '.join([id_to_word[i] for i in word_ids])
txt = txt.replace(' <eos>', '.\n')
print(txt)
| [
6738,
40522,
1330,
42975,
65,
198,
6738,
374,
20471,
75,
76,
62,
5235,
1330,
371,
6144,
31288,
13746,
198,
198,
10215,
79,
385,
11,
1573,
62,
1462,
62,
312,
11,
4686,
62,
1462,
62,
4775,
796,
42975,
65,
13,
2220,
62,
7890,
10786,
27432,
11537,
198,
18893,
397,
62,
7857,
796,
18896,
7,
4775,
62,
1462,
62,
312,
8,
198,
10215,
79,
385,
62,
7857,
796,
18896,
7,
10215,
79,
385,
8,
198,
198,
19849,
796,
371,
6144,
31288,
13746,
3419,
198,
2,
2746,
13,
2220,
62,
37266,
7,
4458,
14,
43582,
3312,
14,
49,
6144,
31288,
13,
79,
41582,
11537,
198,
198,
2,
900,
923,
290,
14267,
1573,
198,
9688,
62,
4775,
796,
705,
5832,
6,
198,
9688,
62,
312,
796,
1573,
62,
1462,
62,
312,
58,
9688,
62,
4775,
60,
198,
48267,
62,
10879,
796,
37250,
45,
3256,
705,
27,
2954,
29,
3256,
705,
3,
20520,
198,
48267,
62,
2340,
796,
685,
4775,
62,
1462,
62,
312,
58,
86,
60,
329,
266,
287,
14267,
62,
10879,
60,
198,
198,
2,
7716,
6827,
198,
4775,
62,
2340,
796,
2746,
13,
8612,
378,
7,
9688,
62,
312,
11,
14267,
62,
2340,
8,
198,
14116,
796,
705,
45302,
22179,
26933,
312,
62,
1462,
62,
4775,
58,
72,
60,
329,
1312,
287,
1573,
62,
2340,
12962,
198,
14116,
796,
256,
742,
13,
33491,
10786,
1279,
68,
418,
29,
3256,
45302,
59,
77,
11537,
198,
4798,
7,
14116,
8,
198
] | 2.345992 | 237 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.