max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
sequencelengths
7
549k
Project3/Demo_use_q2_point.py
yunchen-yang/CV_classes
0
163994
<filename>Project3/Demo_use_q2_point.py import cv2 import numpy as np import copy import sys path=sys.path[0]+'/' img_input=cv2.imread(path+"original_imgs/point.jpg",0) filter_kernel=np.array([[-1,-1,-1],[-1,8,-1],[-1,-1,-1]]) size_img_input=img_input.shape kernel_size=filter_kernel.shape decenter=int((kernel_size[1]-1)/2) new_img=np.zeros(img_input.shape) for i in range(0,size_img_input[0]): for j in range(0,size_img_input[1]): H=np.zeros((kernel_size[0],kernel_size[1])).astype('int') G=np.zeros((kernel_size[0],kernel_size[1])).astype('int') for n in range(-decenter,decenter+1): for m in range(-decenter,decenter+1): if i+n in range(0,size_img_input[0]) and j+m in range(0,size_img_input[1]): H[decenter+n,decenter+m]=img_input[i+n,j+m] else: H[decenter+n,decenter+m]=0 for x in range(-decenter,decenter+1): for y in range(-decenter,decenter+1): G[decenter+x,decenter+y]=H[decenter+x,decenter+y]*filter_kernel[decenter+x,decenter+y] new_img[i,j]=sum(sum(G)) #img_new_adjusted=new_img.clip(0, 255) #img_new=np.rint(img_new_adjusted).astype('uint8') #cv2.imshow('img_mask',img_new)
[ 1, 529, 9507, 29958, 7653, 29941, 29914, 23444, 29918, 1509, 29918, 29939, 29906, 29918, 3149, 29889, 2272, 13, 5215, 13850, 29906, 13, 5215, 12655, 408, 7442, 13, 5215, 3509, 13, 5215, 10876, 13, 13, 2084, 29922, 9675, 29889, 2084, 29961, 29900, 10062, 29915, 22208, 29871, 13, 2492, 29918, 2080, 29922, 11023, 29906, 29889, 326, 949, 29898, 2084, 13578, 13492, 29918, 2492, 29879, 29914, 3149, 29889, 6173, 613, 29900, 29897, 13, 4572, 29918, 17460, 29922, 9302, 29889, 2378, 4197, 14352, 29896, 6653, 29896, 6653, 29896, 1402, 14352, 29896, 29892, 29947, 6653, 29896, 1402, 14352, 29896, 6653, 29896, 6653, 29896, 24960, 13, 2311, 29918, 2492, 29918, 2080, 29922, 2492, 29918, 2080, 29889, 12181, 13, 17460, 29918, 2311, 29922, 4572, 29918, 17460, 29889, 12181, 13, 311, 5064, 29922, 524, 3552, 17460, 29918, 2311, 29961, 29896, 29962, 29899, 29896, 6802, 29906, 29897, 13, 1482, 29918, 2492, 29922, 9302, 29889, 3298, 359, 29898, 2492, 29918, 2080, 29889, 12181, 29897, 13, 1454, 474, 297, 3464, 29898, 29900, 29892, 2311, 29918, 2492, 29918, 2080, 29961, 29900, 29962, 1125, 13, 4706, 363, 432, 297, 3464, 29898, 29900, 29892, 2311, 29918, 2492, 29918, 2080, 29961, 29896, 29962, 1125, 13, 9651, 379, 29922, 9302, 29889, 3298, 359, 3552, 17460, 29918, 2311, 29961, 29900, 1402, 17460, 29918, 2311, 29961, 29896, 2314, 467, 579, 668, 877, 524, 1495, 13, 9651, 402, 29922, 9302, 29889, 3298, 359, 3552, 17460, 29918, 2311, 29961, 29900, 1402, 17460, 29918, 2311, 29961, 29896, 2314, 467, 579, 668, 877, 524, 1495, 13, 9651, 363, 302, 297, 3464, 6278, 311, 5064, 29892, 311, 5064, 29974, 29896, 1125, 13, 18884, 363, 286, 297, 3464, 6278, 311, 5064, 29892, 311, 5064, 29974, 29896, 1125, 13, 462, 1678, 565, 474, 29974, 29876, 297, 3464, 29898, 29900, 29892, 2311, 29918, 2492, 29918, 2080, 29961, 29900, 2314, 322, 432, 29974, 29885, 297, 3464, 29898, 29900, 29892, 2311, 29918, 2492, 29918, 2080, 29961, 29896, 29962, 1125, 13, 462, 4706, 379, 29961, 311, 5064, 29974, 29876, 29892, 311, 5064, 29974, 29885, 13192, 2492, 29918, 2080, 29961, 29875, 29974, 29876, 29892, 29926, 29974, 29885, 29962, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 379, 29961, 311, 5064, 29974, 29876, 29892, 311, 5064, 29974, 29885, 13192, 29900, 13, 9651, 363, 921, 297, 3464, 6278, 311, 5064, 29892, 311, 5064, 29974, 29896, 1125, 13, 18884, 363, 343, 297, 3464, 6278, 311, 5064, 29892, 311, 5064, 29974, 29896, 1125, 13, 462, 1678, 402, 29961, 311, 5064, 29974, 29916, 29892, 311, 5064, 29974, 29891, 13192, 29950, 29961, 311, 5064, 29974, 29916, 29892, 311, 5064, 29974, 29891, 14178, 4572, 29918, 17460, 29961, 311, 5064, 29974, 29916, 29892, 311, 5064, 29974, 29891, 29962, 13, 9651, 716, 29918, 2492, 29961, 29875, 29892, 29926, 13192, 2083, 29898, 2083, 29898, 29954, 876, 13, 268, 13, 29937, 2492, 29918, 1482, 29918, 328, 5143, 287, 29922, 1482, 29918, 2492, 29889, 24049, 29898, 29900, 29892, 29871, 29906, 29945, 29945, 29897, 13, 29937, 2492, 29918, 1482, 29922, 9302, 29889, 29878, 524, 29898, 2492, 29918, 1482, 29918, 328, 5143, 287, 467, 579, 668, 877, 13470, 29947, 1495, 13, 13, 13, 29937, 11023, 29906, 29889, 326, 4294, 877, 2492, 29918, 13168, 742, 2492, 29918, 1482, 29897, 13, 2 ]
slippy/core/tests/test_materials.py
KDriesen/slippy
12
17278
import numpy as np import numpy.testing as npt import slippy import slippy.core as core """ If you add a material you need to add the properties that it will be tested with to the material_parameters dict, the key should be the name of the class (what ever it is declared as after the class key word). The value should be a tuple of dicts: The first dict in the tuple will be unpacked to instantiate the class, The second will be used with the displacement from loads method The third will be used with the loads from displacement method to ensure that the methods are inverses of each other If there is a limit the applicability of the displacements from loads method (such as for a perfectly plastic material the _max_load key word should be set in the second dict. For more complex behaviour please also implement your own tests """ material_parameters = { 'Elastic': ({'name': 'steel_5', 'properties': {'E': 200e9, 'v': 0.3}}, {'grid_spacing': 0.01, 'simple': True}, {'grid_spacing': 0.01, 'simple': True, 'tol': 1e-9}), 'Rigid': ({}, {}, {}) } exceptions = [core.Rigid] def test_materials_basic(): # check that one of influence matrix or displacement from loading is given for material in core.materials._IMMaterial._subclass_registry: if material in exceptions: continue try: mat_params = material_parameters[material.material_type] except KeyError: raise AssertionError(f"Material test parameters are not specified, for material {material.material_type}") mat_instance = material(**mat_params[0]) max_load = mat_params[1].pop('_max_load', 1) np.random.seed(0) loads = np.random.rand(16, 16) * max_load # check that the loads and displacement functions are inverse of each other for direction in {'x', 'y', 'z'}: load_in_direction = {direction: loads} displacement = mat_instance.displacement_from_surface_loads(load_in_direction, **mat_params[1]) set_disp = displacement[direction] loads_calc = mat_instance.loads_from_surface_displacement(displacements={direction: set_disp}, **mat_params[2]) npt.assert_allclose(loads, slippy.asnumpy(loads_calc[direction]), atol=max_load * 0.02) def test_elastic_coupled(): mat = core.Elastic('steel_6', {'E': 200e9, 'v': 0.3}) np.random.seed(0) loads1 = np.random.rand(16, 16) loads2 = np.random.rand(16, 16) directions = 'xyzx' for i in range(3): dir_1 = directions[i] dir_2 = directions[i+1] loads_in_direction = {dir_1: loads1, dir_2: loads2} displacement = mat.displacement_from_surface_loads(loads_in_direction, grid_spacing=0.01, simple=True) loads_calc = mat.loads_from_surface_displacement(displacements=displacement, grid_spacing=0.01, simple=True) for direction in [dir_1, dir_2]: npt.assert_allclose(loads_in_direction[direction], slippy.asnumpy(loads_calc[direction]), atol=0.02) displacement = mat.displacement_from_surface_loads(loads_in_direction, grid_spacing=0.01, simple=False) loads_calc = mat.loads_from_surface_displacement(displacements=displacement, grid_spacing=0.01, simple=False) for direction in [dir_1, dir_2]: npt.assert_allclose(loads_in_direction[direction], slippy.asnumpy(loads_calc[direction]), atol=0.02)
[ 1, 1053, 12655, 408, 7442, 13, 5215, 12655, 29889, 13424, 408, 302, 415, 13, 5215, 20662, 23717, 13, 5215, 20662, 23717, 29889, 3221, 408, 7136, 13, 13, 15945, 29908, 13, 3644, 366, 788, 263, 5518, 366, 817, 304, 788, 278, 4426, 393, 372, 674, 367, 9528, 411, 304, 278, 5518, 29918, 16744, 9657, 29892, 13, 1552, 1820, 881, 367, 278, 1024, 310, 278, 770, 313, 5816, 3926, 372, 338, 8052, 408, 1156, 278, 770, 1820, 1734, 467, 13, 1576, 995, 881, 367, 263, 18761, 310, 9657, 29879, 29901, 13, 1576, 937, 9657, 297, 278, 18761, 674, 367, 443, 4058, 287, 304, 25112, 278, 770, 29892, 13, 1576, 1473, 674, 367, 1304, 411, 278, 12272, 9552, 515, 15376, 1158, 13, 1576, 4654, 674, 367, 1304, 411, 278, 15376, 515, 12272, 9552, 1158, 304, 9801, 393, 278, 3519, 526, 297, 874, 267, 310, 1269, 916, 13, 13, 3644, 727, 338, 263, 4046, 278, 15576, 3097, 310, 278, 12272, 4620, 4110, 515, 15376, 1158, 313, 14565, 408, 363, 263, 7970, 715, 6288, 5518, 13, 1552, 903, 3317, 29918, 1359, 1820, 1734, 881, 367, 731, 297, 278, 1473, 9657, 29889, 13, 13, 2831, 901, 4280, 10468, 3113, 884, 2334, 596, 1914, 6987, 13, 15945, 29908, 13, 13, 15388, 29918, 16744, 353, 426, 13, 1678, 525, 29923, 4230, 293, 2396, 313, 10998, 978, 2396, 525, 1655, 295, 29918, 29945, 742, 525, 11330, 2396, 11117, 29923, 2396, 29871, 29906, 29900, 29900, 29872, 29929, 29892, 525, 29894, 2396, 29871, 29900, 29889, 29941, 11656, 13, 18884, 11117, 7720, 29918, 1028, 9390, 2396, 29871, 29900, 29889, 29900, 29896, 29892, 525, 12857, 2396, 5852, 1118, 13, 18884, 11117, 7720, 29918, 1028, 9390, 2396, 29871, 29900, 29889, 29900, 29896, 29892, 525, 12857, 2396, 5852, 29892, 525, 25027, 2396, 29871, 29896, 29872, 29899, 29929, 9594, 13, 1678, 525, 29934, 335, 333, 2396, 21313, 1118, 24335, 426, 1800, 13, 29913, 13, 13, 11739, 29879, 353, 518, 3221, 29889, 29934, 335, 333, 29962, 13, 13, 13, 1753, 1243, 29918, 15388, 29879, 29918, 16121, 7295, 13, 1678, 396, 1423, 393, 697, 310, 9949, 4636, 470, 12272, 9552, 515, 8363, 338, 2183, 13, 1678, 363, 5518, 297, 7136, 29889, 15388, 29879, 3032, 29902, 7428, 3795, 3032, 1491, 1990, 29918, 1727, 6020, 29901, 13, 4706, 565, 5518, 297, 15283, 29901, 13, 9651, 6773, 13, 4706, 1018, 29901, 13, 9651, 1775, 29918, 7529, 353, 5518, 29918, 16744, 29961, 15388, 29889, 15388, 29918, 1853, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 12020, 16499, 291, 2392, 29898, 29888, 29908, 24095, 1243, 4128, 526, 451, 6790, 29892, 363, 5518, 426, 15388, 29889, 15388, 29918, 1853, 27195, 13, 4706, 1775, 29918, 8758, 353, 5518, 29898, 1068, 2922, 29918, 7529, 29961, 29900, 2314, 13, 4706, 4236, 29918, 1359, 353, 1775, 29918, 7529, 29961, 29896, 1822, 7323, 877, 29918, 3317, 29918, 1359, 742, 29871, 29896, 29897, 13, 13, 4706, 7442, 29889, 8172, 29889, 26776, 29898, 29900, 29897, 13, 13, 4706, 15376, 353, 7442, 29889, 8172, 29889, 9502, 29898, 29896, 29953, 29892, 29871, 29896, 29953, 29897, 334, 4236, 29918, 1359, 13, 13, 4706, 396, 1423, 393, 278, 15376, 322, 12272, 9552, 3168, 526, 16402, 310, 1269, 916, 13, 4706, 363, 5305, 297, 11117, 29916, 742, 525, 29891, 742, 525, 29920, 29915, 6177, 13, 9651, 2254, 29918, 262, 29918, 20845, 353, 426, 20845, 29901, 15376, 29913, 13, 9651, 12272, 9552, 353, 1775, 29918, 8758, 29889, 2218, 29886, 9552, 29918, 3166, 29918, 7610, 2161, 29918, 18132, 29898, 1359, 29918, 262, 29918, 20845, 29892, 3579, 2922, 29918, 7529, 29961, 29896, 2314, 13, 13, 9651, 731, 29918, 2218, 29886, 353, 12272, 9552, 29961, 20845, 29962, 13, 13, 9651, 15376, 29918, 28667, 353, 1775, 29918, 8758, 29889, 18132, 29918, 3166, 29918, 7610, 2161, 29918, 2218, 29886, 9552, 29898, 2218, 29886, 4620, 4110, 3790, 20845, 29901, 731, 29918, 2218, 29886, 1118, 13, 462, 462, 462, 462, 418, 3579, 2922, 29918, 7529, 29961, 29906, 2314, 13, 13, 9651, 302, 415, 29889, 9294, 29918, 497, 5358, 29898, 18132, 29892, 20662, 23717, 29889, 294, 23749, 29898, 18132, 29918, 28667, 29961, 20845, 11724, 472, 324, 29922, 3317, 29918, 1359, 334, 29871, 29900, 29889, 29900, 29906, 29897, 13, 13, 13, 1753, 1243, 29918, 295, 6288, 29918, 16589, 552, 29881, 7295, 13, 1678, 1775, 353, 7136, 29889, 29923, 4230, 293, 877, 1655, 295, 29918, 29953, 742, 11117, 29923, 2396, 29871, 29906, 29900, 29900, 29872, 29929, 29892, 525, 29894, 2396, 29871, 29900, 29889, 29941, 1800, 13, 1678, 7442, 29889, 8172, 29889, 26776, 29898, 29900, 29897, 13, 13, 1678, 15376, 29896, 353, 7442, 29889, 8172, 29889, 9502, 29898, 29896, 29953, 29892, 29871, 29896, 29953, 29897, 13, 1678, 15376, 29906, 353, 7442, 29889, 8172, 29889, 9502, 29898, 29896, 29953, 29892, 29871, 29896, 29953, 29897, 13, 13, 1678, 18112, 353, 525, 20230, 29916, 29915, 13, 13, 1678, 363, 474, 297, 3464, 29898, 29941, 1125, 13, 4706, 4516, 29918, 29896, 353, 18112, 29961, 29875, 29962, 13, 4706, 4516, 29918, 29906, 353, 18112, 29961, 29875, 29974, 29896, 29962, 13, 4706, 15376, 29918, 262, 29918, 20845, 353, 426, 3972, 29918, 29896, 29901, 15376, 29896, 29892, 4516, 29918, 29906, 29901, 15376, 29906, 29913, 13, 4706, 12272, 9552, 353, 1775, 29889, 2218, 29886, 9552, 29918, 3166, 29918, 7610, 2161, 29918, 18132, 29898, 18132, 29918, 262, 29918, 20845, 29892, 6856, 29918, 1028, 9390, 29922, 29900, 29889, 29900, 29896, 29892, 2560, 29922, 5574, 29897, 13, 4706, 15376, 29918, 28667, 353, 1775, 29889, 18132, 29918, 3166, 29918, 7610, 2161, 29918, 2218, 29886, 9552, 29898, 2218, 29886, 4620, 4110, 29922, 2218, 29886, 9552, 29892, 13, 462, 462, 462, 308, 6856, 29918, 1028, 9390, 29922, 29900, 29889, 29900, 29896, 29892, 2560, 29922, 5574, 29897, 13, 4706, 363, 5305, 297, 518, 3972, 29918, 29896, 29892, 4516, 29918, 29906, 5387, 13, 9651, 302, 415, 29889, 9294, 29918, 497, 5358, 29898, 18132, 29918, 262, 29918, 20845, 29961, 20845, 1402, 20662, 23717, 29889, 294, 23749, 29898, 18132, 29918, 28667, 29961, 20845, 11724, 472, 324, 29922, 29900, 29889, 29900, 29906, 29897, 13, 13, 4706, 12272, 9552, 353, 1775, 29889, 2218, 29886, 9552, 29918, 3166, 29918, 7610, 2161, 29918, 18132, 29898, 18132, 29918, 262, 29918, 20845, 29892, 6856, 29918, 1028, 9390, 29922, 29900, 29889, 29900, 29896, 29892, 2560, 29922, 8824, 29897, 13, 4706, 15376, 29918, 28667, 353, 1775, 29889, 18132, 29918, 3166, 29918, 7610, 2161, 29918, 2218, 29886, 9552, 29898, 2218, 29886, 4620, 4110, 29922, 2218, 29886, 9552, 29892, 13, 462, 462, 462, 308, 6856, 29918, 1028, 9390, 29922, 29900, 29889, 29900, 29896, 29892, 2560, 29922, 8824, 29897, 13, 4706, 363, 5305, 297, 518, 3972, 29918, 29896, 29892, 4516, 29918, 29906, 5387, 13, 9651, 302, 415, 29889, 9294, 29918, 497, 5358, 29898, 18132, 29918, 262, 29918, 20845, 29961, 20845, 1402, 20662, 23717, 29889, 294, 23749, 29898, 18132, 29918, 28667, 29961, 20845, 11724, 472, 324, 29922, 29900, 29889, 29900, 29906, 29897, 13, 2 ]
pandaserver/workflow/pcwl_utils.py
virthead/panda-server
0
156696
<reponame>virthead/panda-server<filename>pandaserver/workflow/pcwl_utils.py import copy import re import six import os.path from pathlib import Path from ruamel import yaml from urllib.parse import urlparse from .workflow_utils import Node, ConditionItem WORKFLOW_NAMES = ['prun', 'phpo', 'junction', 'reana'] # extract id def extract_id(id_str): if not id_str: return id_str if not isinstance(id_str, list): id_str = [id_str] not_list = True else: not_list = False items = [re.search(r'[^/]+#.+$', s).group(0) for s in id_str] if not_list: return items[0] return items # topological sorting def top_sort(list_data, visited): if not list_data: return [] new_list = [] new_visited = [] for node in list_data: isOK = True for p in node.parents: if p not in visited: isOK = False break if isOK: new_visited.append(node) visited.add(node.id) else: new_list.append(node) return new_visited + top_sort(new_list, visited) # parse CWL file def parse_workflow_file(workflow_file, log_stream, in_loop=False): # read the file from yaml cwl_file = Path(os.path.abspath(workflow_file)) with open(cwl_file, "r") as cwl_h: yaml_obj = yaml.main.round_trip_load(cwl_h, preserve_quotes=True) # Check CWLVersion if 'cwlVersion' not in list(yaml_obj.keys()): log_stream.error("could not get the cwlVersion in {}".format(cwl_file.as_uri())) return False, None # Import parser based on CWL Version if yaml_obj['cwlVersion'] == 'v1.0': from cwl_utils import parser_v1_0 as parser elif yaml_obj['cwlVersion'] == 'v1.1': from cwl_utils import parser_v1_1 as parser elif yaml_obj['cwlVersion'] == 'v1.2': from cwl_utils import parser_v1_2 as parser else: log_stream.error("Version error. Did not recognise {} as a CWL version".format(yaml_obj["CWLVersion"])) return False, None # Import CWL Object root_obj = parser.load_document_by_yaml(yaml_obj, cwl_file.as_uri()) # root inputs root_inputs = {extract_id(s.id): s.default for s in root_obj.inputs} # root outputs root_outputs = set([extract_id(s.id.split('#')[0] + '#' + re.sub(s.id+'/', '', s.outputSource)) for s in root_obj.outputs]) # loop over steps node_list = [] output_map = {} serial_id = 0 for step in root_obj.steps: cwl_name = os.path.basename(step.run) # check cwl command if not cwl_name.endswith('.cwl') and cwl_name not in WORKFLOW_NAMES: log_stream.error("Unknown workflow {}".format(step.run)) return False, None serial_id += 1 workflow_name = step.id.split('#')[-1] # leaf workflow and sub-workflow if cwl_name == 'prun.cwl': node = Node(serial_id, 'prun', None, True, workflow_name) elif cwl_name == 'phpo.cwl': node = Node(serial_id, 'phpo', None, True, workflow_name) elif cwl_name in WORKFLOW_NAMES: node = Node(serial_id, cwl_name, None, True, workflow_name) else: node = Node(serial_id, 'workflow', None, False, workflow_name) node.inputs = {extract_id(s.id): {'default': s.default, 'source': extract_id(s.source)} for s in step.in_} node.outputs = {extract_id(s): {} for s in step.out} # add outDS if no output is defined if not node.outputs: node.outputs = {extract_id(step.id + '/outDS'): {}} output_map.update({name: serial_id for name in node.outputs}) if step.scatter: node.scatter = [extract_id(s) for s in step.scatter] if hasattr(step, 'when') and step.when: # parse condition node.condition = parse_condition_string(step.when) # suppress inputs based on condition suppress_inputs_based_on_condition(node.condition, node.inputs) if step.hints and 'loop' in step.hints: node.loop = True if node.loop or in_loop: node.in_loop = True # expand sub-workflow if not node.is_leaf: p = urlparse(step.run) tmp_path = os.path.abspath(os.path.join(p.netloc, p.path)) node.sub_nodes, node.root_inputs = parse_workflow_file(tmp_path, log_stream, node.in_loop) # check if tail if root_outputs & set(node.outputs): node.is_tail = True node_list.append(node) # look for parents for node in node_list: for tmp_name, tmp_data in six.iteritems(node.inputs): if not tmp_data['source']: continue if isinstance(tmp_data['source'], list): sources = tmp_data['source'] is_str = False else: sources = [tmp_data['source']] is_str = True parent_ids = [] for tmp_source in sources: if tmp_source in output_map: parent_id = output_map[tmp_source] node.add_parent(parent_id) parent_ids.append(parent_id) if parent_ids: if is_str: parent_ids = parent_ids[0] tmp_data['parent_id'] = parent_ids # sort node_list = top_sort(node_list, set()) return node_list, root_inputs # resolve nodes def resolve_nodes(node_list, root_inputs, data, serial_id, parent_ids, out_ds_name, log_stream): for k in root_inputs: kk = k.split('#')[-1] if kk in data: root_inputs[k] = data[kk] tmp_to_real_id_map = {} resolved_map = {} all_nodes = [] for node in node_list: # resolve input for tmp_name, tmp_data in six.iteritems(node.inputs): if not tmp_data['source']: continue if isinstance(tmp_data['source'], list): tmp_sources = tmp_data['source'] if 'parent_id' in tmp_data: tmp_parent_ids = tmp_data['parent_id'] else: tmp_parent_ids = [None] * len(tmp_sources) else: tmp_sources = [tmp_data['source']] if 'parent_id' in tmp_data: tmp_parent_ids = [tmp_data['parent_id']] else: tmp_parent_ids = [None] * len(tmp_sources) for tmp_source, tmp_parent_id in zip(tmp_sources, tmp_parent_ids): isOK = False # check root input if tmp_source in root_inputs: node.is_head = True node.set_input_value(tmp_name, tmp_source, root_inputs[tmp_source]) continue # check parent output for i in node.parents: for r_node in resolved_map[i]: if tmp_source in r_node.outputs: node.set_input_value(tmp_name, tmp_source, r_node.outputs[tmp_source]['value']) isOK = True break if isOK: break if isOK: continue # check resolved parent outputs if tmp_parent_id is not None: values = [list(r_node.outputs.values())[0]['value'] for r_node in resolved_map[tmp_parent_id]] if len(values) == 1: values = values[0] node.set_input_value(tmp_name, tmp_source, values) continue # scatter if node.scatter: # resolve scattered parameters scatters = None sc_nodes = [] for item in node.scatter: if scatters is None: scatters = [{item: v} for v in node.inputs[item]['value']] else: [i.update({item: v}) for i, v in zip(scatters, node.inputs[item]['value'])] for idx, item in enumerate(scatters): sc_node = copy.deepcopy(node) for k, v in six.iteritems(item): sc_node.inputs[k]['value'] = v for tmp_node in sc_node.sub_nodes: tmp_node.scatter_index = idx tmp_node.upper_root_inputs = sc_node.root_inputs sc_nodes.append(sc_node) else: sc_nodes = [node] # loop over scattered nodes for sc_node in sc_nodes: all_nodes.append(sc_node) # set real node ID resolved_map.setdefault(sc_node.id, []) tmp_to_real_id_map.setdefault(sc_node.id, set()) # resolve parents real_parens = set() for i in sc_node.parents: real_parens |= tmp_to_real_id_map[i] sc_node.parents = real_parens if sc_node.is_head: sc_node.parents |= parent_ids if sc_node.is_leaf: resolved_map[sc_node.id].append(sc_node) tmp_to_real_id_map[sc_node.id].add(serial_id) sc_node.id = serial_id serial_id += 1 else: serial_id, sub_tail_nodes, sc_node.sub_nodes = \ resolve_nodes(sc_node.sub_nodes, sc_node.root_inputs, sc_node.convert_dict_inputs(), serial_id, sc_node.parents, out_ds_name, log_stream) resolved_map[sc_node.id] += sub_tail_nodes tmp_to_real_id_map[sc_node.id] |= set([n.id for n in sub_tail_nodes]) sc_node.id = serial_id serial_id += 1 # convert parameters to parent IDs in conditions if sc_node.condition: convert_params_in_condition_to_parent_ids(sc_node.condition, sc_node.inputs, tmp_to_real_id_map) # resolve outputs if sc_node.is_leaf: for tmp_name, tmp_data in six.iteritems(sc_node.outputs): tmp_data['value'] = "{}_{:03d}_{}".format(out_ds_name, sc_node.id, sc_node.name) # add loop count for nodes in a loop if sc_node.in_loop: tmp_data['value'] += '.___idds___num_run___' # return tails tail_nodes = [] for node in all_nodes: if node.is_tail: if node.is_tail: tail_nodes.append(node) else: tail_nodes += resolved_map[node.id] return serial_id, tail_nodes, all_nodes # parse condition string def parse_condition_string(cond_string): # remove $() cond_string = re.sub(r'\$\((?P<aaa>.+)\)', r'\g<aaa>', cond_string) cond_map = {} id = 0 while True: # look for the most inner parentheses item_list = re.findall(r'\(([^\(\)]+)\)', cond_string) if not item_list: return convert_plain_condition_string(cond_string, cond_map) else: for item in item_list: cond = convert_plain_condition_string(item, cond_map) key = '___{}___'.format(id) id += 1 cond_map[key] = cond cond_string = cond_string.replace('('+item+')', key) # extract parameter from token def extract_parameter(token): m = re.search(r'self\.([^!=]+)', token) return m.group(1) # convert plain condition string def convert_plain_condition_string(cond_string, cond_map): cond_string = re.sub(r' *! *', r'!', cond_string) cond_string = re.sub(r'\|\|', r' || ', cond_string) cond_string = re.sub(r'&&', r' && ', cond_string) tokens = cond_string.split() left = None operator = None for token in tokens: token = token.strip() if token == '||': operator = 'or' continue elif token == '&&': operator = 'and' continue elif token.startswith('self.'): param = extract_parameter(token) right = ConditionItem(param) if not left: left = right continue elif token.startswith('!self.'): param = extract_parameter(token) right = ConditionItem(param, operator='not') if not left: left = right continue elif re.search(r'^___\d+___$', token) and token in cond_map: right = cond_map[token] if not left: left = right continue elif re.search(r'^!___\d+___$', token) and token[1:] in cond_map: right = ConditionItem(cond_map[token[1:]], operator='not') if not left: left = right continue else: raise TypeError('unknown token "{}"'.format(token)) left = ConditionItem(left, right, operator) return left # convert parameter names to parent IDs def convert_params_in_condition_to_parent_ids(condition_item, input_data, id_map): for item in ['left', 'right']: param = getattr(condition_item, item) if isinstance(param, str): m = re.search(r'^[^\[]+\[(\d+)\]', param) if m: param = param.split('[')[0] idx = int(m.group(1)) else: idx = None isOK = False for tmp_name, tmp_data in six.iteritems(input_data): if param == tmp_name.split('/')[-1]: isOK = True if isinstance(tmp_data['parent_id'], list): if idx is not None: setattr(condition_item, item, id_map[tmp_data['parent_id'][idx]]) else: setattr(condition_item, item, id_map[tmp_data['parent_id']]) else: setattr(condition_item, item, id_map[tmp_data['parent_id']]) break if not isOK: raise ReferenceError('unresolved paramter {} in the condition string'.format(param)) elif isinstance(param, ConditionItem): convert_params_in_condition_to_parent_ids(param, input_data, id_map) # suppress inputs based on condition def suppress_inputs_based_on_condition(condition_item, input_data): if condition_item.right is None and condition_item.operator == 'not' and isinstance(condition_item.left, str): for tmp_name, tmp_data in six.iteritems(input_data): if condition_item.left == tmp_name.split('/')[-1]: tmp_data['suppressed'] = True else: for item in ['left', 'right']: param = getattr(condition_item, item) if isinstance(param, ConditionItem): suppress_inputs_based_on_condition(param, input_data)
[ 1, 529, 276, 1112, 420, 29958, 2405, 19081, 29914, 29886, 5863, 29899, 2974, 29966, 9507, 29958, 15112, 261, 369, 29914, 1287, 1731, 29914, 6739, 29893, 29880, 29918, 13239, 29889, 2272, 13, 5215, 3509, 13, 5215, 337, 13, 5215, 4832, 13, 5215, 2897, 29889, 2084, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 5796, 314, 295, 1053, 343, 8807, 13, 3166, 3142, 1982, 29889, 5510, 1053, 3142, 5510, 13, 13, 3166, 869, 1287, 1731, 29918, 13239, 1053, 9071, 29892, 11790, 654, 2001, 13, 13, 11686, 29968, 29943, 27998, 29918, 5813, 29903, 353, 6024, 558, 348, 742, 525, 561, 1129, 742, 525, 29926, 651, 742, 525, 276, 1648, 2033, 13, 13, 13, 29937, 6597, 1178, 13, 1753, 6597, 29918, 333, 29898, 333, 29918, 710, 1125, 13, 1678, 565, 451, 1178, 29918, 710, 29901, 13, 4706, 736, 1178, 29918, 710, 13, 1678, 565, 451, 338, 8758, 29898, 333, 29918, 710, 29892, 1051, 1125, 13, 4706, 1178, 29918, 710, 353, 518, 333, 29918, 710, 29962, 13, 4706, 451, 29918, 1761, 353, 5852, 13, 1678, 1683, 29901, 13, 4706, 451, 29918, 1761, 353, 7700, 13, 1678, 4452, 353, 518, 276, 29889, 4478, 29898, 29878, 29915, 22896, 29914, 10062, 29937, 29889, 24035, 742, 269, 467, 2972, 29898, 29900, 29897, 363, 269, 297, 1178, 29918, 710, 29962, 13, 1678, 565, 451, 29918, 1761, 29901, 13, 4706, 736, 4452, 29961, 29900, 29962, 13, 1678, 736, 4452, 13, 13, 13, 29937, 25002, 16548, 13, 1753, 2246, 29918, 6605, 29898, 1761, 29918, 1272, 29892, 16669, 1125, 13, 1678, 565, 451, 1051, 29918, 1272, 29901, 13, 4706, 736, 5159, 13, 1678, 716, 29918, 1761, 353, 5159, 13, 1678, 716, 29918, 1730, 1573, 353, 5159, 13, 1678, 363, 2943, 297, 1051, 29918, 1272, 29901, 13, 4706, 338, 8949, 353, 5852, 13, 4706, 363, 282, 297, 2943, 29889, 862, 1237, 29901, 13, 9651, 565, 282, 451, 297, 16669, 29901, 13, 18884, 338, 8949, 353, 7700, 13, 18884, 2867, 13, 4706, 565, 338, 8949, 29901, 13, 9651, 716, 29918, 1730, 1573, 29889, 4397, 29898, 3177, 29897, 13, 9651, 16669, 29889, 1202, 29898, 3177, 29889, 333, 29897, 13, 4706, 1683, 29901, 13, 9651, 716, 29918, 1761, 29889, 4397, 29898, 3177, 29897, 13, 1678, 736, 716, 29918, 1730, 1573, 718, 2246, 29918, 6605, 29898, 1482, 29918, 1761, 29892, 16669, 29897, 13, 13, 13, 29937, 6088, 315, 29956, 29931, 934, 13, 1753, 6088, 29918, 1287, 1731, 29918, 1445, 29898, 1287, 1731, 29918, 1445, 29892, 1480, 29918, 5461, 29892, 297, 29918, 7888, 29922, 8824, 1125, 13, 1678, 396, 1303, 278, 934, 515, 343, 8807, 13, 1678, 274, 29893, 29880, 29918, 1445, 353, 10802, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 29898, 1287, 1731, 29918, 1445, 876, 13, 1678, 411, 1722, 29898, 29883, 29893, 29880, 29918, 1445, 29892, 376, 29878, 1159, 408, 274, 29893, 29880, 29918, 29882, 29901, 13, 4706, 343, 8807, 29918, 5415, 353, 343, 8807, 29889, 3396, 29889, 14486, 29918, 3626, 29886, 29918, 1359, 29898, 29883, 29893, 29880, 29918, 29882, 29892, 19905, 29918, 339, 4769, 29922, 5574, 29897, 13, 13, 1678, 396, 5399, 315, 29956, 29931, 6594, 13, 1678, 565, 525, 29883, 29893, 29880, 6594, 29915, 451, 297, 1051, 29898, 25162, 29918, 5415, 29889, 8149, 580, 1125, 13, 4706, 1480, 29918, 5461, 29889, 2704, 703, 26680, 451, 679, 278, 274, 29893, 29880, 6594, 297, 6571, 1642, 4830, 29898, 29883, 29893, 29880, 29918, 1445, 29889, 294, 29918, 5338, 22130, 13, 4706, 736, 7700, 29892, 6213, 13, 13, 1678, 396, 16032, 13812, 2729, 373, 315, 29956, 29931, 10079, 13, 1678, 565, 343, 8807, 29918, 5415, 1839, 29883, 29893, 29880, 6594, 2033, 1275, 525, 29894, 29896, 29889, 29900, 2396, 13, 4706, 515, 274, 29893, 29880, 29918, 13239, 1053, 13812, 29918, 29894, 29896, 29918, 29900, 408, 13812, 13, 1678, 25342, 343, 8807, 29918, 5415, 1839, 29883, 29893, 29880, 6594, 2033, 1275, 525, 29894, 29896, 29889, 29896, 2396, 13, 4706, 515, 274, 29893, 29880, 29918, 13239, 1053, 13812, 29918, 29894, 29896, 29918, 29896, 408, 13812, 13, 1678, 25342, 343, 8807, 29918, 5415, 1839, 29883, 29893, 29880, 6594, 2033, 1275, 525, 29894, 29896, 29889, 29906, 2396, 13, 4706, 515, 274, 29893, 29880, 29918, 13239, 1053, 13812, 29918, 29894, 29896, 29918, 29906, 408, 13812, 13, 1678, 1683, 29901, 13, 4706, 1480, 29918, 5461, 29889, 2704, 703, 6594, 1059, 29889, 7440, 451, 5936, 895, 6571, 408, 263, 315, 29956, 29931, 1873, 1642, 4830, 29898, 25162, 29918, 5415, 3366, 29907, 29956, 29931, 6594, 3108, 876, 13, 4706, 736, 7700, 29892, 6213, 13, 13, 1678, 396, 16032, 315, 29956, 29931, 4669, 13, 1678, 3876, 29918, 5415, 353, 13812, 29889, 1359, 29918, 3225, 29918, 1609, 29918, 25162, 29898, 25162, 29918, 5415, 29892, 274, 29893, 29880, 29918, 1445, 29889, 294, 29918, 5338, 3101, 13, 13, 1678, 396, 3876, 10970, 13, 1678, 3876, 29918, 2080, 29879, 353, 426, 21111, 29918, 333, 29898, 29879, 29889, 333, 1125, 269, 29889, 4381, 363, 269, 297, 3876, 29918, 5415, 29889, 2080, 29879, 29913, 13, 13, 1678, 396, 3876, 14391, 13, 1678, 3876, 29918, 4905, 29879, 353, 731, 4197, 21111, 29918, 333, 29898, 29879, 29889, 333, 29889, 5451, 14237, 29861, 29900, 29962, 718, 16321, 29915, 718, 337, 29889, 1491, 29898, 29879, 29889, 333, 23097, 29914, 742, 15516, 269, 29889, 4905, 4435, 876, 13, 462, 4706, 363, 269, 297, 3876, 29918, 5415, 29889, 4905, 29879, 2314, 13, 13, 1678, 396, 2425, 975, 6576, 13, 1678, 2943, 29918, 1761, 353, 5159, 13, 1678, 1962, 29918, 1958, 353, 6571, 13, 1678, 7797, 29918, 333, 353, 29871, 29900, 13, 1678, 363, 4331, 297, 3876, 29918, 5415, 29889, 24530, 29901, 13, 4706, 274, 29893, 29880, 29918, 978, 353, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 10568, 29889, 3389, 29897, 13, 4706, 396, 1423, 274, 29893, 29880, 1899, 13, 4706, 565, 451, 274, 29893, 29880, 29918, 978, 29889, 1975, 2541, 12839, 29883, 29893, 29880, 1495, 322, 274, 29893, 29880, 29918, 978, 451, 297, 399, 1955, 29968, 29943, 27998, 29918, 5813, 29903, 29901, 13, 9651, 1480, 29918, 5461, 29889, 2704, 703, 14148, 27321, 6571, 1642, 4830, 29898, 10568, 29889, 3389, 876, 13, 9651, 736, 7700, 29892, 6213, 13, 4706, 7797, 29918, 333, 4619, 29871, 29896, 13, 4706, 27321, 29918, 978, 353, 4331, 29889, 333, 29889, 5451, 14237, 1495, 14352, 29896, 29962, 13, 4706, 396, 20447, 27321, 322, 1014, 29899, 1287, 1731, 13, 4706, 565, 274, 29893, 29880, 29918, 978, 1275, 525, 558, 348, 29889, 29883, 29893, 29880, 2396, 13, 9651, 2943, 353, 9071, 29898, 15550, 29918, 333, 29892, 525, 558, 348, 742, 6213, 29892, 5852, 29892, 27321, 29918, 978, 29897, 13, 4706, 25342, 274, 29893, 29880, 29918, 978, 1275, 525, 561, 1129, 29889, 29883, 29893, 29880, 2396, 13, 9651, 2943, 353, 9071, 29898, 15550, 29918, 333, 29892, 525, 561, 1129, 742, 6213, 29892, 5852, 29892, 27321, 29918, 978, 29897, 13, 4706, 25342, 274, 29893, 29880, 29918, 978, 297, 399, 1955, 29968, 29943, 27998, 29918, 5813, 29903, 29901, 13, 9651, 2943, 353, 9071, 29898, 15550, 29918, 333, 29892, 274, 29893, 29880, 29918, 978, 29892, 6213, 29892, 5852, 29892, 27321, 29918, 978, 29897, 13, 4706, 1683, 29901, 13, 9651, 2943, 353, 9071, 29898, 15550, 29918, 333, 29892, 525, 1287, 1731, 742, 6213, 29892, 7700, 29892, 27321, 29918, 978, 29897, 13, 4706, 2943, 29889, 2080, 29879, 353, 426, 21111, 29918, 333, 29898, 29879, 29889, 333, 1125, 11117, 4381, 2396, 269, 29889, 4381, 29892, 525, 4993, 2396, 6597, 29918, 333, 29898, 29879, 29889, 4993, 2915, 13, 462, 539, 363, 269, 297, 4331, 29889, 262, 29918, 29913, 13, 4706, 2943, 29889, 4905, 29879, 353, 426, 21111, 29918, 333, 29898, 29879, 1125, 6571, 363, 269, 297, 4331, 29889, 449, 29913, 13, 4706, 396, 788, 714, 8452, 565, 694, 1962, 338, 3342, 13, 4706, 565, 451, 2943, 29889, 4905, 29879, 29901, 13, 9651, 2943, 29889, 4905, 29879, 353, 426, 21111, 29918, 333, 29898, 10568, 29889, 333, 718, 8207, 449, 8452, 29374, 426, 930, 13, 4706, 1962, 29918, 1958, 29889, 5504, 3319, 978, 29901, 7797, 29918, 333, 363, 1024, 297, 2943, 29889, 4905, 29879, 1800, 13, 4706, 565, 4331, 29889, 1557, 2620, 29901, 13, 9651, 2943, 29889, 1557, 2620, 353, 518, 21111, 29918, 333, 29898, 29879, 29897, 363, 269, 297, 4331, 29889, 1557, 2620, 29962, 13, 4706, 565, 756, 5552, 29898, 10568, 29892, 525, 8256, 1495, 322, 4331, 29889, 8256, 29901, 13, 9651, 396, 6088, 4195, 13, 9651, 2943, 29889, 16122, 353, 6088, 29918, 16122, 29918, 1807, 29898, 10568, 29889, 8256, 29897, 13, 9651, 396, 21301, 10970, 2729, 373, 4195, 13, 9651, 21301, 29918, 2080, 29879, 29918, 6707, 29918, 265, 29918, 16122, 29898, 3177, 29889, 16122, 29892, 2943, 29889, 2080, 29879, 29897, 13, 4706, 565, 4331, 29889, 29882, 9466, 322, 525, 7888, 29915, 297, 4331, 29889, 29882, 9466, 29901, 13, 9651, 2943, 29889, 7888, 353, 5852, 13, 4706, 565, 2943, 29889, 7888, 470, 297, 29918, 7888, 29901, 13, 9651, 2943, 29889, 262, 29918, 7888, 353, 5852, 13, 4706, 396, 7985, 1014, 29899, 1287, 1731, 13, 4706, 565, 451, 2943, 29889, 275, 29918, 29500, 29901, 13, 9651, 282, 353, 3142, 5510, 29898, 10568, 29889, 3389, 29897, 13, 9651, 13128, 29918, 2084, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29889, 1212, 2029, 29892, 282, 29889, 2084, 876, 13, 9651, 2943, 29889, 1491, 29918, 18010, 29892, 2943, 29889, 4632, 29918, 2080, 29879, 353, 6088, 29918, 1287, 1731, 29918, 1445, 29898, 7050, 29918, 2084, 29892, 1480, 29918, 5461, 29892, 2943, 29889, 262, 29918, 7888, 29897, 13, 4706, 396, 1423, 565, 12464, 13, 4706, 565, 3876, 29918, 4905, 29879, 669, 731, 29898, 3177, 29889, 4905, 29879, 1125, 13, 9651, 2943, 29889, 275, 29918, 18237, 353, 5852, 13, 4706, 2943, 29918, 1761, 29889, 4397, 29898, 3177, 29897, 13, 13, 1678, 396, 1106, 363, 11825, 13, 1678, 363, 2943, 297, 2943, 29918, 1761, 29901, 13, 4706, 363, 13128, 29918, 978, 29892, 13128, 29918, 1272, 297, 4832, 29889, 1524, 7076, 29898, 3177, 29889, 2080, 29879, 1125, 13, 9651, 565, 451, 13128, 29918, 1272, 1839, 4993, 2033, 29901, 13, 18884, 6773, 13, 9651, 565, 338, 8758, 29898, 7050, 29918, 1272, 1839, 4993, 7464, 1051, 1125, 13, 18884, 8974, 353, 13128, 29918, 1272, 1839, 4993, 2033, 13, 18884, 338, 29918, 710, 353, 7700, 13, 9651, 1683, 29901, 13, 18884, 8974, 353, 518, 7050, 29918, 1272, 1839, 4993, 2033, 29962, 13, 18884, 338, 29918, 710, 353, 5852, 13, 9651, 3847, 29918, 4841, 353, 5159, 13, 9651, 363, 13128, 29918, 4993, 297, 8974, 29901, 13, 18884, 565, 13128, 29918, 4993, 297, 1962, 29918, 1958, 29901, 13, 462, 1678, 3847, 29918, 333, 353, 1962, 29918, 1958, 29961, 7050, 29918, 4993, 29962, 13, 462, 1678, 2943, 29889, 1202, 29918, 3560, 29898, 3560, 29918, 333, 29897, 13, 462, 1678, 3847, 29918, 4841, 29889, 4397, 29898, 3560, 29918, 333, 29897, 13, 9651, 565, 3847, 29918, 4841, 29901, 13, 18884, 565, 338, 29918, 710, 29901, 13, 462, 1678, 3847, 29918, 4841, 353, 3847, 29918, 4841, 29961, 29900, 29962, 13, 18884, 13128, 29918, 1272, 1839, 3560, 29918, 333, 2033, 353, 3847, 29918, 4841, 13, 13, 1678, 396, 2656, 13, 1678, 2943, 29918, 1761, 353, 2246, 29918, 6605, 29898, 3177, 29918, 1761, 29892, 731, 3101, 13, 1678, 736, 2943, 29918, 1761, 29892, 3876, 29918, 2080, 29879, 13, 13, 13, 29937, 8814, 7573, 13, 1753, 8814, 29918, 18010, 29898, 3177, 29918, 1761, 29892, 3876, 29918, 2080, 29879, 29892, 848, 29892, 7797, 29918, 333, 29892, 3847, 29918, 4841, 29892, 714, 29918, 6289, 29918, 978, 29892, 1480, 29918, 5461, 1125, 13, 1678, 363, 413, 297, 3876, 29918, 2080, 29879, 29901, 13, 4706, 413, 29895, 353, 413, 29889, 5451, 14237, 1495, 14352, 29896, 29962, 13, 4706, 565, 413, 29895, 297, 848, 29901, 13, 9651, 3876, 29918, 2080, 29879, 29961, 29895, 29962, 353, 848, 29961, 6859, 29962, 13, 1678, 13128, 29918, 517, 29918, 6370, 29918, 333, 29918, 1958, 353, 6571, 13, 1678, 11527, 29918, 1958, 353, 6571, 13, 1678, 599, 29918, 18010, 353, 5159, 13, 1678, 363, 2943, 297, 2943, 29918, 1761, 29901, 13, 4706, 396, 8814, 1881, 13, 4706, 363, 13128, 29918, 978, 29892, 13128, 29918, 1272, 297, 4832, 29889, 1524, 7076, 29898, 3177, 29889, 2080, 29879, 1125, 13, 9651, 565, 451, 13128, 29918, 1272, 1839, 4993, 2033, 29901, 13, 18884, 6773, 13, 9651, 565, 338, 8758, 29898, 7050, 29918, 1272, 1839, 4993, 7464, 1051, 1125, 13, 18884, 13128, 29918, 29879, 2863, 353, 13128, 29918, 1272, 1839, 4993, 2033, 13, 18884, 565, 525, 3560, 29918, 333, 29915, 297, 13128, 29918, 1272, 29901, 13, 462, 1678, 13128, 29918, 3560, 29918, 4841, 353, 13128, 29918, 1272, 1839, 3560, 29918, 333, 2033, 13, 18884, 1683, 29901, 13, 462, 1678, 13128, 29918, 3560, 29918, 4841, 353, 518, 8516, 29962, 334, 7431, 29898, 7050, 29918, 29879, 2863, 29897, 13, 9651, 1683, 29901, 13, 18884, 13128, 29918, 29879, 2863, 353, 518, 7050, 29918, 1272, 1839, 4993, 2033, 29962, 13, 18884, 565, 525, 3560, 29918, 333, 29915, 297, 13128, 29918, 1272, 29901, 13, 462, 1678, 13128, 29918, 3560, 29918, 4841, 353, 518, 7050, 29918, 1272, 1839, 3560, 29918, 333, 2033, 29962, 13, 18884, 1683, 29901, 13, 462, 1678, 13128, 29918, 3560, 29918, 4841, 353, 518, 8516, 29962, 334, 7431, 29898, 7050, 29918, 29879, 2863, 29897, 13, 9651, 363, 13128, 29918, 4993, 29892, 13128, 29918, 3560, 29918, 333, 297, 14319, 29898, 7050, 29918, 29879, 2863, 29892, 13128, 29918, 3560, 29918, 4841, 1125, 13, 18884, 338, 8949, 353, 7700, 13, 18884, 396, 1423, 3876, 1881, 13, 18884, 565, 13128, 29918, 4993, 297, 3876, 29918, 2080, 29879, 29901, 13, 462, 1678, 2943, 29889, 275, 29918, 2813, 353, 5852, 13, 462, 1678, 2943, 29889, 842, 29918, 2080, 29918, 1767, 29898, 7050, 29918, 978, 29892, 13128, 29918, 4993, 29892, 3876, 29918, 2080, 29879, 29961, 7050, 29918, 4993, 2314, 13, 462, 1678, 6773, 13, 18884, 396, 1423, 3847, 1962, 13, 18884, 363, 474, 297, 2943, 29889, 862, 1237, 29901, 13, 462, 1678, 363, 364, 29918, 3177, 297, 11527, 29918, 1958, 29961, 29875, 5387, 13, 462, 4706, 565, 13128, 29918, 4993, 297, 364, 29918, 3177, 29889, 4905, 29879, 29901, 13, 462, 9651, 2943, 29889, 842, 29918, 2080, 29918, 1767, 29898, 7050, 29918, 978, 29892, 13128, 29918, 4993, 29892, 364, 29918, 3177, 29889, 4905, 29879, 29961, 7050, 29918, 4993, 22322, 1767, 11287, 13, 462, 9651, 338, 8949, 353, 5852, 13, 462, 9651, 2867, 13, 462, 1678, 565, 338, 8949, 29901, 13, 462, 4706, 2867, 13, 18884, 565, 338, 8949, 29901, 13, 462, 1678, 6773, 13, 18884, 396, 1423, 11527, 3847, 14391, 13, 18884, 565, 13128, 29918, 3560, 29918, 333, 338, 451, 6213, 29901, 13, 462, 1678, 1819, 353, 518, 1761, 29898, 29878, 29918, 3177, 29889, 4905, 29879, 29889, 5975, 3101, 29961, 29900, 22322, 1767, 2033, 363, 364, 29918, 3177, 297, 11527, 29918, 1958, 29961, 7050, 29918, 3560, 29918, 333, 5262, 13, 462, 1678, 565, 7431, 29898, 5975, 29897, 1275, 29871, 29896, 29901, 13, 462, 4706, 1819, 353, 1819, 29961, 29900, 29962, 13, 462, 1678, 2943, 29889, 842, 29918, 2080, 29918, 1767, 29898, 7050, 29918, 978, 29892, 13128, 29918, 4993, 29892, 1819, 29897, 13, 462, 1678, 6773, 13, 4706, 396, 14801, 13, 4706, 565, 2943, 29889, 1557, 2620, 29901, 13, 9651, 396, 8814, 29574, 4128, 13, 9651, 885, 271, 2153, 353, 6213, 13, 9651, 885, 29918, 18010, 353, 5159, 13, 9651, 363, 2944, 297, 2943, 29889, 1557, 2620, 29901, 13, 18884, 565, 885, 271, 2153, 338, 6213, 29901, 13, 462, 1678, 885, 271, 2153, 353, 15974, 667, 29901, 325, 29913, 363, 325, 297, 2943, 29889, 2080, 29879, 29961, 667, 22322, 1767, 2033, 29962, 13, 18884, 1683, 29901, 13, 462, 1678, 518, 29875, 29889, 5504, 3319, 667, 29901, 325, 1800, 363, 474, 29892, 325, 297, 14319, 29898, 1557, 271, 2153, 29892, 2943, 29889, 2080, 29879, 29961, 667, 22322, 1767, 2033, 4638, 13, 9651, 363, 22645, 29892, 2944, 297, 26985, 29898, 1557, 271, 2153, 1125, 13, 18884, 885, 29918, 3177, 353, 3509, 29889, 24535, 8552, 29898, 3177, 29897, 13, 18884, 363, 413, 29892, 325, 297, 4832, 29889, 1524, 7076, 29898, 667, 1125, 13, 462, 1678, 885, 29918, 3177, 29889, 2080, 29879, 29961, 29895, 22322, 1767, 2033, 353, 325, 13, 18884, 363, 13128, 29918, 3177, 297, 885, 29918, 3177, 29889, 1491, 29918, 18010, 29901, 13, 462, 1678, 13128, 29918, 3177, 29889, 1557, 2620, 29918, 2248, 353, 22645, 13, 462, 1678, 13128, 29918, 3177, 29889, 21064, 29918, 4632, 29918, 2080, 29879, 353, 885, 29918, 3177, 29889, 4632, 29918, 2080, 29879, 13, 18884, 885, 29918, 18010, 29889, 4397, 29898, 1557, 29918, 3177, 29897, 13, 4706, 1683, 29901, 13, 9651, 885, 29918, 18010, 353, 518, 3177, 29962, 13, 4706, 396, 2425, 975, 29574, 7573, 13, 4706, 363, 885, 29918, 3177, 297, 885, 29918, 18010, 29901, 13, 9651, 599, 29918, 18010, 29889, 4397, 29898, 1557, 29918, 3177, 29897, 13, 9651, 396, 731, 1855, 2943, 3553, 13, 9651, 11527, 29918, 1958, 29889, 842, 4381, 29898, 1557, 29918, 3177, 29889, 333, 29892, 518, 2314, 13, 9651, 13128, 29918, 517, 29918, 6370, 29918, 333, 29918, 1958, 29889, 842, 4381, 29898, 1557, 29918, 3177, 29889, 333, 29892, 731, 3101, 13, 9651, 396, 8814, 11825, 13, 9651, 1855, 29918, 862, 575, 353, 731, 580, 13, 9651, 363, 474, 297, 885, 29918, 3177, 29889, 862, 1237, 29901, 13, 18884, 1855, 29918, 862, 575, 891, 29922, 13128, 29918, 517, 29918, 6370, 29918, 333, 29918, 1958, 29961, 29875, 29962, 13, 9651, 885, 29918, 3177, 29889, 862, 1237, 353, 1855, 29918, 862, 575, 13, 9651, 565, 885, 29918, 3177, 29889, 275, 29918, 2813, 29901, 13, 18884, 885, 29918, 3177, 29889, 862, 1237, 891, 29922, 3847, 29918, 4841, 13, 9651, 565, 885, 29918, 3177, 29889, 275, 29918, 29500, 29901, 13, 18884, 11527, 29918, 1958, 29961, 1557, 29918, 3177, 29889, 333, 1822, 4397, 29898, 1557, 29918, 3177, 29897, 13, 18884, 13128, 29918, 517, 29918, 6370, 29918, 333, 29918, 1958, 29961, 1557, 29918, 3177, 29889, 333, 1822, 1202, 29898, 15550, 29918, 333, 29897, 13, 18884, 885, 29918, 3177, 29889, 333, 353, 7797, 29918, 333, 13, 18884, 7797, 29918, 333, 4619, 29871, 29896, 13, 9651, 1683, 29901, 13, 18884, 7797, 29918, 333, 29892, 1014, 29918, 18237, 29918, 18010, 29892, 885, 29918, 3177, 29889, 1491, 29918, 18010, 353, 320, 13, 462, 1678, 8814, 29918, 18010, 29898, 1557, 29918, 3177, 29889, 1491, 29918, 18010, 29892, 885, 29918, 3177, 29889, 4632, 29918, 2080, 29879, 29892, 13, 462, 462, 29871, 885, 29918, 3177, 29889, 13441, 29918, 8977, 29918, 2080, 29879, 3285, 13, 462, 462, 29871, 7797, 29918, 333, 29892, 885, 29918, 3177, 29889, 862, 1237, 29892, 714, 29918, 6289, 29918, 978, 29892, 13, 462, 462, 29871, 1480, 29918, 5461, 29897, 13, 18884, 11527, 29918, 1958, 29961, 1557, 29918, 3177, 29889, 333, 29962, 4619, 1014, 29918, 18237, 29918, 18010, 13, 18884, 13128, 29918, 517, 29918, 6370, 29918, 333, 29918, 1958, 29961, 1557, 29918, 3177, 29889, 333, 29962, 891, 29922, 731, 4197, 29876, 29889, 333, 363, 302, 297, 1014, 29918, 18237, 29918, 18010, 2314, 13, 18884, 885, 29918, 3177, 29889, 333, 353, 7797, 29918, 333, 13, 18884, 7797, 29918, 333, 4619, 29871, 29896, 13, 9651, 396, 3588, 4128, 304, 3847, 23481, 297, 5855, 13, 9651, 565, 885, 29918, 3177, 29889, 16122, 29901, 13, 18884, 3588, 29918, 7529, 29918, 262, 29918, 16122, 29918, 517, 29918, 3560, 29918, 4841, 29898, 1557, 29918, 3177, 29889, 16122, 29892, 885, 29918, 3177, 29889, 2080, 29879, 29892, 13128, 29918, 517, 29918, 6370, 29918, 333, 29918, 1958, 29897, 13, 9651, 396, 8814, 14391, 13, 9651, 565, 885, 29918, 3177, 29889, 275, 29918, 29500, 29901, 13, 18884, 363, 13128, 29918, 978, 29892, 13128, 29918, 1272, 297, 4832, 29889, 1524, 7076, 29898, 1557, 29918, 3177, 29889, 4905, 29879, 1125, 13, 462, 1678, 13128, 29918, 1272, 1839, 1767, 2033, 353, 29850, 3227, 29901, 29900, 29941, 29881, 3227, 29913, 1642, 4830, 29898, 449, 29918, 6289, 29918, 978, 29892, 885, 29918, 3177, 29889, 333, 29892, 885, 29918, 3177, 29889, 978, 29897, 13, 462, 1678, 396, 788, 2425, 2302, 363, 7573, 297, 263, 2425, 13, 462, 1678, 565, 885, 29918, 3177, 29889, 262, 29918, 7888, 29901, 13, 462, 4706, 13128, 29918, 1272, 1839, 1767, 2033, 4619, 15300, 22359, 2205, 29879, 22359, 1949, 29918, 3389, 22359, 29915, 13, 13, 1678, 396, 736, 260, 2234, 13, 1678, 12464, 29918, 18010, 353, 5159, 13, 1678, 363, 2943, 297, 599, 29918, 18010, 29901, 13, 4706, 565, 2943, 29889, 275, 29918, 18237, 29901, 13, 9651, 565, 2943, 29889, 275, 29918, 18237, 29901, 13, 18884, 12464, 29918, 18010, 29889, 4397, 29898, 3177, 29897, 13, 9651, 1683, 29901, 13, 18884, 12464, 29918, 18010, 4619, 11527, 29918, 1958, 29961, 3177, 29889, 333, 29962, 13, 1678, 736, 7797, 29918, 333, 29892, 12464, 29918, 18010, 29892, 599, 29918, 18010, 13, 13, 13, 29937, 6088, 4195, 1347, 13, 1753, 6088, 29918, 16122, 29918, 1807, 29898, 1116, 29918, 1807, 1125, 13, 1678, 396, 3349, 395, 580, 13, 1678, 2148, 29918, 1807, 353, 337, 29889, 1491, 29898, 29878, 12764, 4535, 3552, 29973, 29925, 29966, 7340, 29874, 15513, 29974, 27779, 742, 364, 12764, 29887, 29966, 7340, 29874, 29958, 742, 2148, 29918, 1807, 29897, 13, 1678, 2148, 29918, 1958, 353, 6571, 13, 1678, 1178, 353, 29871, 29900, 13, 1678, 1550, 5852, 29901, 13, 4706, 396, 1106, 363, 278, 1556, 6426, 29494, 13, 4706, 2944, 29918, 1761, 353, 337, 29889, 2886, 497, 29898, 29878, 12764, 3552, 29961, 3823, 1194, 4638, 29974, 27779, 742, 2148, 29918, 1807, 29897, 13, 4706, 565, 451, 2944, 29918, 1761, 29901, 13, 9651, 736, 3588, 29918, 24595, 29918, 16122, 29918, 1807, 29898, 1116, 29918, 1807, 29892, 2148, 29918, 1958, 29897, 13, 4706, 1683, 29901, 13, 9651, 363, 2944, 297, 2944, 29918, 1761, 29901, 13, 18884, 2148, 353, 3588, 29918, 24595, 29918, 16122, 29918, 1807, 29898, 667, 29892, 2148, 29918, 1958, 29897, 13, 18884, 1820, 353, 525, 1649, 648, 29913, 22359, 4286, 4830, 29898, 333, 29897, 13, 18884, 1178, 4619, 29871, 29896, 13, 18884, 2148, 29918, 1958, 29961, 1989, 29962, 353, 2148, 13, 18884, 2148, 29918, 1807, 353, 2148, 29918, 1807, 29889, 6506, 877, 877, 29974, 667, 29974, 1495, 742, 1820, 29897, 13, 13, 13, 29937, 6597, 3443, 515, 5993, 13, 1753, 6597, 29918, 15501, 29898, 6979, 1125, 13, 1678, 286, 353, 337, 29889, 4478, 29898, 29878, 29915, 1311, 23301, 4197, 29985, 19216, 10062, 29897, 742, 5993, 29897, 13, 1678, 736, 286, 29889, 2972, 29898, 29896, 29897, 13, 13, 13, 29937, 3588, 8656, 4195, 1347, 13, 1753, 3588, 29918, 24595, 29918, 16122, 29918, 1807, 29898, 1116, 29918, 1807, 29892, 2148, 29918, 1958, 1125, 13, 1678, 2148, 29918, 1807, 353, 337, 29889, 1491, 29898, 29878, 29915, 334, 29991, 334, 742, 364, 29915, 29991, 742, 2148, 29918, 1807, 29897, 13, 1678, 2148, 29918, 1807, 353, 337, 29889, 1491, 29898, 29878, 12764, 4295, 29989, 742, 364, 29915, 3830, 13420, 2148, 29918, 1807, 29897, 13, 1678, 2148, 29918, 1807, 353, 337, 29889, 1491, 29898, 29878, 29915, 12774, 742, 364, 29915, 2607, 13420, 2148, 29918, 1807, 29897, 13, 13, 1678, 18897, 353, 2148, 29918, 1807, 29889, 5451, 580, 13, 1678, 2175, 353, 6213, 13, 1678, 5455, 353, 6213, 13, 1678, 363, 5993, 297, 18897, 29901, 13, 4706, 5993, 353, 5993, 29889, 17010, 580, 13, 4706, 565, 5993, 1275, 525, 8876, 2396, 13, 9651, 5455, 353, 525, 272, 29915, 13, 9651, 6773, 13, 4706, 25342, 5993, 1275, 525, 12774, 2396, 13, 9651, 5455, 353, 525, 392, 29915, 13, 9651, 6773, 13, 4706, 25342, 5993, 29889, 27382, 2541, 877, 1311, 6169, 1125, 13, 9651, 1828, 353, 6597, 29918, 15501, 29898, 6979, 29897, 13, 9651, 1492, 353, 11790, 654, 2001, 29898, 3207, 29897, 13, 9651, 565, 451, 2175, 29901, 13, 18884, 2175, 353, 1492, 13, 18884, 6773, 13, 4706, 25342, 5993, 29889, 27382, 2541, 877, 29991, 1311, 6169, 1125, 13, 9651, 1828, 353, 6597, 29918, 15501, 29898, 6979, 29897, 13, 9651, 1492, 353, 11790, 654, 2001, 29898, 3207, 29892, 5455, 2433, 1333, 1495, 13, 9651, 565, 451, 2175, 29901, 13, 18884, 2175, 353, 1492, 13, 18884, 6773, 13, 4706, 25342, 337, 29889, 4478, 29898, 29878, 29915, 29985, 1649, 3187, 29881, 29974, 22359, 29938, 742, 5993, 29897, 322, 5993, 297, 2148, 29918, 1958, 29901, 13, 9651, 1492, 353, 2148, 29918, 1958, 29961, 6979, 29962, 13, 9651, 565, 451, 2175, 29901, 13, 18884, 2175, 353, 1492, 13, 18884, 6773, 13, 4706, 25342, 337, 29889, 4478, 29898, 29878, 29915, 29985, 29991, 1649, 3187, 29881, 29974, 22359, 29938, 742, 5993, 29897, 322, 5993, 29961, 29896, 17531, 297, 2148, 29918, 1958, 29901, 13, 9651, 1492, 353, 11790, 654, 2001, 29898, 1116, 29918, 1958, 29961, 6979, 29961, 29896, 17531, 1402, 5455, 2433, 1333, 1495, 13, 9651, 565, 451, 2175, 29901, 13, 18884, 2175, 353, 1492, 13, 18884, 6773, 13, 4706, 1683, 29901, 13, 9651, 12020, 20948, 877, 26690, 5993, 29850, 5038, 4286, 4830, 29898, 6979, 876, 13, 13, 4706, 2175, 353, 11790, 654, 2001, 29898, 1563, 29892, 1492, 29892, 5455, 29897, 13, 1678, 736, 2175, 13, 13, 13, 29937, 3588, 3443, 2983, 304, 3847, 23481, 13, 1753, 3588, 29918, 7529, 29918, 262, 29918, 16122, 29918, 517, 29918, 3560, 29918, 4841, 29898, 16122, 29918, 667, 29892, 1881, 29918, 1272, 29892, 1178, 29918, 1958, 1125, 13, 1678, 363, 2944, 297, 6024, 1563, 742, 525, 1266, 2033, 29901, 13, 4706, 1828, 353, 679, 5552, 29898, 16122, 29918, 667, 29892, 2944, 29897, 13, 4706, 565, 338, 8758, 29898, 3207, 29892, 851, 1125, 13, 9651, 286, 353, 337, 29889, 4478, 29898, 29878, 29915, 29985, 29961, 3823, 2636, 3124, 29961, 1194, 29881, 29974, 2144, 29962, 742, 1828, 29897, 13, 9651, 565, 286, 29901, 13, 18884, 1828, 353, 1828, 29889, 5451, 877, 29961, 29861, 29900, 29962, 13, 18884, 22645, 353, 938, 29898, 29885, 29889, 2972, 29898, 29896, 876, 13, 9651, 1683, 29901, 13, 18884, 22645, 353, 6213, 13, 9651, 338, 8949, 353, 7700, 13, 9651, 363, 13128, 29918, 978, 29892, 13128, 29918, 1272, 297, 4832, 29889, 1524, 7076, 29898, 2080, 29918, 1272, 1125, 13, 18884, 565, 1828, 1275, 13128, 29918, 978, 29889, 5451, 11219, 1495, 14352, 29896, 5387, 13, 462, 1678, 338, 8949, 353, 5852, 13, 462, 1678, 565, 338, 8758, 29898, 7050, 29918, 1272, 1839, 3560, 29918, 333, 7464, 1051, 1125, 13, 462, 4706, 565, 22645, 338, 451, 6213, 29901, 13, 462, 9651, 731, 5552, 29898, 16122, 29918, 667, 29892, 2944, 29892, 1178, 29918, 1958, 29961, 7050, 29918, 1272, 1839, 3560, 29918, 333, 2033, 29961, 13140, 24960, 13, 462, 4706, 1683, 29901, 13, 462, 9651, 731, 5552, 29898, 16122, 29918, 667, 29892, 2944, 29892, 1178, 29918, 1958, 29961, 7050, 29918, 1272, 1839, 3560, 29918, 333, 2033, 2314, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 731, 5552, 29898, 16122, 29918, 667, 29892, 2944, 29892, 1178, 29918, 1958, 29961, 7050, 29918, 1272, 1839, 3560, 29918, 333, 2033, 2314, 13, 462, 1678, 2867, 13, 9651, 565, 451, 338, 8949, 29901, 13, 18884, 12020, 12105, 2392, 877, 348, 9778, 1490, 1828, 357, 6571, 297, 278, 4195, 1347, 4286, 4830, 29898, 3207, 876, 13, 4706, 25342, 338, 8758, 29898, 3207, 29892, 11790, 654, 2001, 1125, 13, 9651, 3588, 29918, 7529, 29918, 262, 29918, 16122, 29918, 517, 29918, 3560, 29918, 4841, 29898, 3207, 29892, 1881, 29918, 1272, 29892, 1178, 29918, 1958, 29897, 13, 13, 13, 29937, 21301, 10970, 2729, 373, 4195, 13, 1753, 21301, 29918, 2080, 29879, 29918, 6707, 29918, 265, 29918, 16122, 29898, 16122, 29918, 667, 29892, 1881, 29918, 1272, 1125, 13, 1678, 565, 4195, 29918, 667, 29889, 1266, 338, 6213, 322, 4195, 29918, 667, 29889, 6891, 1275, 525, 1333, 29915, 322, 338, 8758, 29898, 16122, 29918, 667, 29889, 1563, 29892, 851, 1125, 13, 4706, 363, 13128, 29918, 978, 29892, 13128, 29918, 1272, 297, 4832, 29889, 1524, 7076, 29898, 2080, 29918, 1272, 1125, 13, 9651, 565, 4195, 29918, 667, 29889, 1563, 1275, 13128, 29918, 978, 29889, 5451, 11219, 1495, 14352, 29896, 5387, 13, 18884, 13128, 29918, 1272, 1839, 19303, 1253, 287, 2033, 353, 5852, 13, 1678, 1683, 29901, 13, 4706, 363, 2944, 297, 6024, 1563, 742, 525, 1266, 2033, 29901, 13, 9651, 1828, 353, 679, 5552, 29898, 16122, 29918, 667, 29892, 2944, 29897, 13, 9651, 565, 338, 8758, 29898, 3207, 29892, 11790, 654, 2001, 1125, 13, 18884, 21301, 29918, 2080, 29879, 29918, 6707, 29918, 265, 29918, 16122, 29898, 3207, 29892, 1881, 29918, 1272, 29897, 13, 2 ]
h1st/model/ensemble/randomforest_classifier_stack_ensemble.py
Adatao/H1st
796
135115
<reponame>Adatao/H1st from typing import List from sklearn.ensemble import RandomForestClassifier from h1st.model.ensemble.classifier_stack_ensemble import ClassifierStackEnsemble from h1st.model.model import Model class RandomForestClassifierStackEnsemble(ClassifierStackEnsemble): """ A ready to use StackEnsemble for classifier with ensembler is a sklearn's MultiOutputClassifier using RandomForestClassifier Each sub model must be a subclass of h1.Model and its .predict() method will receive an input data as a dictionary that has 'X' key and numeric value and return a dictionary with 'predictions' key and its prediction value .. code-block:: python :caption: Sub model for a StackEnsemble Example class Model1(h1.Model): def predict(self, data): X = data['X'] ... return {'predictions': } .. code-block:: python :caption: RandomForestClassifierStackEnsemble usage Example class Model2(h1.Model): def predict(self, data): X = data['X'] ... return {'predictions': } class RandomForestClassifierStackEnsemble(ClassifierStackEnsemble): def __init__(self): super().__init__([ Model1().load('version_of_model_1'), Model2().load('version_of_model_2') ]) def load_data(self,): ... return loaded_data def prep(self, loaded_data): ... return prepared_data m1 = Model1() m1.load_prep_train_eval() ## Equivalent to # loaded_data = m1.load_data() # prepared_data = m1.prep(loaded_data) # m1.train(prepared_data) # m1.evaluate(prepared_data) print(m1.metrics) m1.persist('version_of_model_1') m2 = Model2() m2.load_prep_train_eval() print(m2.metrics) m2.persist('version_of_model_2') ensemble = RandomForestClassifierStackEnsemble( [Model1().load('version_of_model_1'), Model2().load('version_of_model_2')]) ensemble.load_prep_train_eval() print(ensemble.metrics) ensemble.persist('version_of_model_ensemble') ensemble.predict(...) """ def __init__(self, sub_models: List[Model], **kwargs): super().__init__( # MultiOutputClassifier(RandomForestClassifier(n_jobs=-1, max_depth=4, random_state=42)), RandomForestClassifier(n_jobs=-1, max_depth=4, random_state=42), sub_models, **kwargs )
[ 1, 529, 276, 1112, 420, 29958, 29909, 1272, 29877, 29914, 29950, 29896, 303, 13, 3166, 19229, 1053, 2391, 13, 13, 3166, 2071, 19668, 29889, 24031, 1053, 16968, 2831, 342, 2385, 3709, 13, 13, 3166, 298, 29896, 303, 29889, 4299, 29889, 24031, 29889, 1990, 3709, 29918, 1429, 29918, 24031, 1053, 4134, 3709, 7264, 29923, 1983, 6967, 13, 3166, 298, 29896, 303, 29889, 4299, 29889, 4299, 1053, 8125, 13, 13, 13, 1990, 16968, 2831, 342, 2385, 3709, 7264, 29923, 1983, 6967, 29898, 2385, 3709, 7264, 29923, 1983, 6967, 1125, 13, 1678, 9995, 13, 1678, 319, 7960, 304, 671, 10292, 29923, 1983, 6967, 363, 770, 3709, 411, 5662, 1590, 1358, 338, 263, 2071, 19668, 29915, 29879, 14974, 6466, 2385, 3709, 773, 16968, 2831, 342, 2385, 3709, 13, 13, 1678, 7806, 1014, 1904, 1818, 367, 263, 19481, 310, 298, 29896, 29889, 3195, 322, 967, 869, 27711, 580, 1158, 674, 7150, 385, 1881, 848, 408, 263, 8600, 393, 756, 525, 29990, 29915, 1820, 322, 16985, 995, 13, 1678, 322, 736, 263, 8600, 411, 525, 27711, 1080, 29915, 1820, 322, 967, 18988, 995, 13, 13, 1678, 6317, 775, 29899, 1271, 1057, 3017, 13, 4706, 584, 6671, 29901, 3323, 1904, 363, 263, 10292, 29923, 1983, 6967, 8741, 13, 13, 4706, 770, 8125, 29896, 29898, 29882, 29896, 29889, 3195, 1125, 13, 9651, 822, 8500, 29898, 1311, 29892, 848, 1125, 13, 18884, 1060, 353, 848, 1839, 29990, 2033, 13, 18884, 2023, 13, 18884, 736, 11117, 27711, 1080, 2396, 500, 13, 13, 1678, 6317, 775, 29899, 1271, 1057, 3017, 13, 4706, 584, 6671, 29901, 16968, 2831, 342, 2385, 3709, 7264, 29923, 1983, 6967, 8744, 8741, 13, 13, 4706, 770, 8125, 29906, 29898, 29882, 29896, 29889, 3195, 1125, 13, 18884, 822, 8500, 29898, 1311, 29892, 848, 1125, 13, 462, 1678, 1060, 353, 848, 1839, 29990, 2033, 13, 462, 1678, 2023, 13, 462, 1678, 736, 11117, 27711, 1080, 2396, 500, 13, 13, 4706, 770, 16968, 2831, 342, 2385, 3709, 7264, 29923, 1983, 6967, 29898, 2385, 3709, 7264, 29923, 1983, 6967, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 1125, 13, 18884, 2428, 2141, 1649, 2344, 1649, 4197, 13, 462, 1678, 8125, 29896, 2141, 1359, 877, 3259, 29918, 974, 29918, 4299, 29918, 29896, 5477, 13, 462, 1678, 8125, 29906, 2141, 1359, 877, 3259, 29918, 974, 29918, 4299, 29918, 29906, 1495, 13, 462, 2314, 13, 13, 9651, 822, 2254, 29918, 1272, 29898, 1311, 29892, 1125, 13, 18884, 2023, 13, 18884, 736, 7500, 29918, 1272, 13, 13, 9651, 822, 8273, 29898, 1311, 29892, 7500, 29918, 1272, 1125, 13, 18884, 2023, 13, 18884, 736, 13240, 29918, 1272, 13, 13, 4706, 286, 29896, 353, 8125, 29896, 580, 13, 13, 4706, 286, 29896, 29889, 1359, 29918, 15287, 29918, 14968, 29918, 14513, 580, 13, 4706, 444, 11243, 27445, 304, 13, 4706, 396, 7500, 29918, 1272, 353, 286, 29896, 29889, 1359, 29918, 1272, 580, 13, 4706, 396, 13240, 29918, 1272, 353, 286, 29896, 29889, 15287, 29898, 15638, 29918, 1272, 29897, 13, 4706, 396, 286, 29896, 29889, 14968, 29898, 15287, 1965, 29918, 1272, 29897, 13, 4706, 396, 286, 29896, 29889, 24219, 403, 29898, 15287, 1965, 29918, 1272, 29897, 13, 13, 4706, 1596, 29898, 29885, 29896, 29889, 2527, 10817, 29897, 13, 4706, 286, 29896, 29889, 6774, 391, 877, 3259, 29918, 974, 29918, 4299, 29918, 29896, 1495, 13, 13, 4706, 286, 29906, 353, 8125, 29906, 580, 13, 4706, 286, 29906, 29889, 1359, 29918, 15287, 29918, 14968, 29918, 14513, 580, 13, 4706, 1596, 29898, 29885, 29906, 29889, 2527, 10817, 29897, 13, 4706, 286, 29906, 29889, 6774, 391, 877, 3259, 29918, 974, 29918, 4299, 29918, 29906, 1495, 13, 13, 4706, 21285, 353, 16968, 2831, 342, 2385, 3709, 7264, 29923, 1983, 6967, 29898, 13, 9651, 518, 3195, 29896, 2141, 1359, 877, 3259, 29918, 974, 29918, 4299, 29918, 29896, 5477, 13, 632, 8125, 29906, 2141, 1359, 877, 3259, 29918, 974, 29918, 4299, 29918, 29906, 1495, 2314, 13, 4706, 21285, 29889, 1359, 29918, 15287, 29918, 14968, 29918, 14513, 580, 13, 4706, 1596, 29898, 24031, 29889, 2527, 10817, 29897, 13, 4706, 21285, 29889, 6774, 391, 877, 3259, 29918, 974, 29918, 4299, 29918, 24031, 1495, 13, 4706, 21285, 29889, 27711, 29077, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1014, 29918, 9794, 29901, 2391, 29961, 3195, 1402, 3579, 19290, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 396, 14974, 6466, 2385, 3709, 29898, 17875, 2831, 342, 2385, 3709, 29898, 29876, 29918, 9057, 29879, 10457, 29896, 29892, 4236, 29918, 19488, 29922, 29946, 29892, 4036, 29918, 3859, 29922, 29946, 29906, 8243, 13, 9651, 16968, 2831, 342, 2385, 3709, 29898, 29876, 29918, 9057, 29879, 10457, 29896, 29892, 4236, 29918, 19488, 29922, 29946, 29892, 4036, 29918, 3859, 29922, 29946, 29906, 511, 13, 9651, 1014, 29918, 9794, 29892, 13, 9651, 3579, 19290, 13, 4706, 1723, 13, 2 ]
samples/sample_3D.py
bknight-i3drobotics/Stereo3D
3
65114
<reponame>bknight-i3drobotics/Stereo3D from stereo3d import Stereo3D from stereo3d.stereocalibration import StereoCalibration from stereo3d.stereocapture import StereoCapture, StereoCaptureVREP CAMERA_TYPE_PHOBOS = 0 CAMERA_TYPE_DEIMOS = 1 CAMERA_TYPE_PYLON = 2 CAMERA_TYPE_IMAGE = 3 CAMERA_TYPE_VREP = 4 camera_type = CAMERA_TYPE_IMAGE stcap = None camera_name = None if (camera_type == CAMERA_TYPE_PHOBOS): camera_name = "phobos" stcap = StereoCapture("Phobos",["22864912","22864917"]) elif (camera_type == CAMERA_TYPE_PYLON): stcap = StereoCapture("Pylon",["22864912","22864917"]) elif (camera_type == CAMERA_TYPE_DEIMOS): camera_name = "deimos" stcap = StereoCapture("Deimos",0) elif (camera_type == CAMERA_TYPE_IMAGE): #camera_name = "deimos" #stcap = StereoCapture("Image",["SampleData/deimos_left.png","SampleData/deimos_right.png"]) camera_name = "phobos" folder_i = "D:/Users/monke/OneDrive - i3d Robotics Ltd/Phobos/BenCCal/test_images" stcap = StereoCapture("Image",[folder_i+"/left_a.png",folder_i+"/right_a.png"]) elif (camera_type == CAMERA_TYPE_VREP): api_port = 20000 left_vision_sensor_name = "StereoCameraLeft" right_vision_sensor_name = "StereoCameraRight" camera_name = "vrep" stcapVREP = StereoCaptureVREP(left_vision_sensor_name,right_vision_sensor_name,api_port) stcap = StereoCapture(stcapVREP) else: print("Invalid camera type.") exit() # define inout folder #folder = "SampleData/" CAL_MODE_FROM_IMAGES = 0 CAL_MODE_FROM_YAML = 1 CAL_MODE_FROM_XML = 2 folder = "D:/Users/monke/OneDrive - i3d Robotics Ltd/Phobos/BenCCal/calibration_1/" stcal = None cal_mode = CAL_MODE_FROM_XML if (cal_mode == CAL_MODE_FROM_IMAGES): # define calibration directories left_images_folder = folder + "deimos_cal/" right_images_folder = folder + "deimos_cal/" output_folder = folder + "deimos_cal/" left_wildcard = "*_l.png" right_wildcard = "*_r.png" grid_size = 39.0 grid_rows = 6 grid_cols = 8 # generate calibration from images stcal = StereoCalibration() stcal.calibrate( left_images_folder,right_images_folder, output_folder,left_wildcard,right_wildcard, grid_size, grid_rows, grid_cols ) elif (cal_mode == CAL_MODE_FROM_YAML): # define calibration files for left and right image left_cal_file = folder + camera_name +"_left.yaml" right_cal_file = folder + camera_name +"_right.yaml" # get calibration from yaml files stcal = StereoCalibration() stcal.get_cal_from_yaml(left_cal_file,right_cal_file) elif (cal_mode == CAL_MODE_FROM_XML): # define calibration files for left and right image ''' left_cal_file = folder + camera_name +"_left_calibration.xml" right_cal_file = folder + camera_name +"_right_calibration.xml" stereo_cal_file = folder + camera_name +"_stereo_calibration.xml" left_rect_file = folder + camera_name +"_left_rectification.xml" right_rect_file = folder + camera_name +"_right_rectification.xml" ''' left_cal_file = folder +"left_calibration.xml" right_cal_file = folder +"right_calibration.xml" stereo_cal_file = folder +"stereo_calibration.xml" left_rect_file = folder +"left_rectification.xml" right_rect_file = folder +"right_rectification.xml" # get calibration from yaml files stcal = StereoCalibration() stcal.get_cal_from_xml(left_cal_file,right_cal_file,stereo_cal_file,left_rect_file,right_rect_file) # setup Stereo3D s3D = Stereo3D(stcap,stcal,"BM") # run Stereo3D GUI for generating 3D out_folder="D:/Users/monke/OneDrive - i3d Robotics Ltd/Phobos/BenCCal/output/" s3D.run(out_folder)
[ 1, 529, 276, 1112, 420, 29958, 29890, 3959, 523, 29899, 29875, 29941, 26419, 7451, 1199, 29914, 29903, 12358, 29877, 29941, 29928, 13, 3166, 269, 12358, 29877, 29941, 29881, 1053, 317, 12358, 29877, 29941, 29928, 13, 3166, 269, 12358, 29877, 29941, 29881, 29889, 303, 406, 18642, 26218, 1053, 317, 12358, 29877, 7856, 26218, 13, 3166, 269, 12358, 29877, 29941, 29881, 29889, 303, 406, 542, 2156, 545, 1053, 317, 12358, 29877, 21133, 545, 29892, 317, 12358, 29877, 21133, 545, 29963, 1525, 29925, 13, 13, 29907, 5194, 1001, 29909, 29918, 11116, 29918, 29925, 8187, 29933, 3267, 353, 29871, 29900, 13, 29907, 5194, 1001, 29909, 29918, 11116, 29918, 2287, 7833, 3267, 353, 29871, 29896, 13, 29907, 5194, 1001, 29909, 29918, 11116, 29918, 20055, 29931, 1164, 353, 29871, 29906, 13, 29907, 5194, 1001, 29909, 29918, 11116, 29918, 2382, 353, 29871, 29941, 13, 29907, 5194, 1001, 29909, 29918, 11116, 29918, 29963, 1525, 29925, 353, 29871, 29946, 13, 13, 26065, 29918, 1853, 353, 315, 5194, 1001, 29909, 29918, 11116, 29918, 2382, 13, 13, 303, 5030, 353, 6213, 13, 26065, 29918, 978, 353, 6213, 13, 361, 313, 26065, 29918, 1853, 1275, 315, 5194, 1001, 29909, 29918, 11116, 29918, 29925, 8187, 29933, 3267, 1125, 13, 1678, 10656, 29918, 978, 353, 376, 561, 711, 359, 29908, 13, 1678, 380, 5030, 353, 317, 12358, 29877, 21133, 545, 703, 4819, 711, 359, 613, 3366, 29906, 29906, 29947, 29953, 29946, 29929, 29896, 29906, 3284, 29906, 29906, 29947, 29953, 29946, 29929, 29896, 29955, 20068, 13, 23681, 313, 26065, 29918, 1853, 1275, 315, 5194, 1001, 29909, 29918, 11116, 29918, 20055, 29931, 1164, 1125, 13, 1678, 380, 5030, 353, 317, 12358, 29877, 21133, 545, 703, 29925, 2904, 265, 613, 3366, 29906, 29906, 29947, 29953, 29946, 29929, 29896, 29906, 3284, 29906, 29906, 29947, 29953, 29946, 29929, 29896, 29955, 20068, 13, 23681, 313, 26065, 29918, 1853, 1275, 315, 5194, 1001, 29909, 29918, 11116, 29918, 2287, 7833, 3267, 1125, 13, 1678, 10656, 29918, 978, 353, 376, 311, 18594, 29908, 13, 1678, 380, 5030, 353, 317, 12358, 29877, 21133, 545, 703, 2772, 18594, 613, 29900, 29897, 13, 23681, 313, 26065, 29918, 1853, 1275, 315, 5194, 1001, 29909, 29918, 11116, 29918, 2382, 1125, 13, 1678, 396, 26065, 29918, 978, 353, 376, 311, 18594, 29908, 13, 1678, 396, 303, 5030, 353, 317, 12358, 29877, 21133, 545, 703, 2940, 613, 3366, 17708, 1469, 29914, 311, 18594, 29918, 1563, 29889, 2732, 3284, 17708, 1469, 29914, 311, 18594, 29918, 1266, 29889, 2732, 20068, 13, 1678, 10656, 29918, 978, 353, 376, 561, 711, 359, 29908, 13, 1678, 4138, 29918, 29875, 353, 376, 29928, 8419, 5959, 29914, 3712, 446, 29914, 6716, 29928, 4401, 448, 474, 29941, 29881, 6417, 327, 1199, 19806, 29914, 4819, 711, 359, 29914, 20841, 4174, 284, 29914, 1688, 29918, 8346, 29908, 13, 1678, 380, 5030, 353, 317, 12358, 29877, 21133, 545, 703, 2940, 613, 29961, 12083, 29918, 29875, 13578, 29914, 1563, 29918, 29874, 29889, 2732, 613, 12083, 29918, 29875, 13578, 29914, 1266, 29918, 29874, 29889, 2732, 20068, 13, 23681, 313, 26065, 29918, 1853, 1275, 315, 5194, 1001, 29909, 29918, 11116, 29918, 29963, 1525, 29925, 1125, 13, 1678, 7882, 29918, 637, 353, 29871, 29906, 29900, 29900, 29900, 29900, 13, 1678, 2175, 29918, 4924, 29918, 29879, 6073, 29918, 978, 353, 376, 29903, 12358, 29877, 20717, 8091, 29908, 13, 1678, 1492, 29918, 4924, 29918, 29879, 6073, 29918, 978, 353, 376, 29903, 12358, 29877, 20717, 7341, 29908, 13, 1678, 10656, 29918, 978, 353, 376, 29894, 3445, 29908, 13, 1678, 380, 5030, 29963, 1525, 29925, 353, 317, 12358, 29877, 21133, 545, 29963, 1525, 29925, 29898, 1563, 29918, 4924, 29918, 29879, 6073, 29918, 978, 29892, 1266, 29918, 4924, 29918, 29879, 6073, 29918, 978, 29892, 2754, 29918, 637, 29897, 13, 1678, 380, 5030, 353, 317, 12358, 29877, 21133, 545, 29898, 303, 5030, 29963, 1525, 29925, 29897, 13, 2870, 29901, 13, 1678, 1596, 703, 13919, 10656, 1134, 23157, 13, 1678, 6876, 580, 13, 13, 29937, 4529, 297, 449, 4138, 13, 29937, 12083, 353, 376, 17708, 1469, 12975, 13, 13, 29907, 1964, 29918, 20387, 29918, 21482, 29918, 2382, 29903, 353, 29871, 29900, 13, 29907, 1964, 29918, 20387, 29918, 21482, 29918, 29979, 23956, 353, 29871, 29896, 13, 29907, 1964, 29918, 20387, 29918, 21482, 29918, 9165, 353, 29871, 29906, 13, 13, 12083, 353, 376, 29928, 8419, 5959, 29914, 3712, 446, 29914, 6716, 29928, 4401, 448, 474, 29941, 29881, 6417, 327, 1199, 19806, 29914, 4819, 711, 359, 29914, 20841, 4174, 284, 29914, 1052, 26218, 29918, 29896, 12975, 13, 13, 303, 1052, 353, 6213, 13, 1052, 29918, 8513, 353, 315, 1964, 29918, 20387, 29918, 21482, 29918, 9165, 13, 361, 313, 1052, 29918, 8513, 1275, 315, 1964, 29918, 20387, 29918, 21482, 29918, 2382, 29903, 1125, 13, 1678, 396, 4529, 1208, 26218, 17525, 13, 1678, 2175, 29918, 8346, 29918, 12083, 353, 4138, 718, 376, 311, 18594, 29918, 1052, 12975, 13, 1678, 1492, 29918, 8346, 29918, 12083, 353, 4138, 718, 376, 311, 18594, 29918, 1052, 12975, 13, 1678, 1962, 29918, 12083, 353, 4138, 718, 376, 311, 18594, 29918, 1052, 12975, 13, 1678, 2175, 29918, 29893, 789, 7543, 353, 26345, 29918, 29880, 29889, 2732, 29908, 13, 1678, 1492, 29918, 29893, 789, 7543, 353, 26345, 29918, 29878, 29889, 2732, 29908, 13, 1678, 6856, 29918, 2311, 353, 29871, 29941, 29929, 29889, 29900, 13, 1678, 6856, 29918, 5727, 353, 29871, 29953, 13, 1678, 6856, 29918, 22724, 353, 29871, 29947, 13, 1678, 396, 5706, 1208, 26218, 515, 4558, 13, 1678, 380, 1052, 353, 317, 12358, 29877, 7856, 26218, 580, 13, 1678, 380, 1052, 29889, 1052, 4626, 403, 29898, 13, 4706, 2175, 29918, 8346, 29918, 12083, 29892, 1266, 29918, 8346, 29918, 12083, 29892, 13, 4706, 1962, 29918, 12083, 29892, 1563, 29918, 29893, 789, 7543, 29892, 1266, 29918, 29893, 789, 7543, 29892, 13, 4706, 6856, 29918, 2311, 29892, 6856, 29918, 5727, 29892, 6856, 29918, 22724, 13, 1678, 1723, 13, 23681, 313, 1052, 29918, 8513, 1275, 315, 1964, 29918, 20387, 29918, 21482, 29918, 29979, 23956, 1125, 13, 1678, 396, 4529, 1208, 26218, 2066, 363, 2175, 322, 1492, 1967, 13, 1678, 2175, 29918, 1052, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 1563, 29889, 25162, 29908, 13, 1678, 1492, 29918, 1052, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 1266, 29889, 25162, 29908, 13, 1678, 396, 679, 1208, 26218, 515, 343, 8807, 2066, 13, 1678, 380, 1052, 353, 317, 12358, 29877, 7856, 26218, 580, 13, 1678, 380, 1052, 29889, 657, 29918, 1052, 29918, 3166, 29918, 25162, 29898, 1563, 29918, 1052, 29918, 1445, 29892, 1266, 29918, 1052, 29918, 1445, 29897, 13, 23681, 313, 1052, 29918, 8513, 1275, 315, 1964, 29918, 20387, 29918, 21482, 29918, 9165, 1125, 13, 1678, 396, 4529, 1208, 26218, 2066, 363, 2175, 322, 1492, 1967, 13, 1678, 14550, 13, 1678, 2175, 29918, 1052, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 1563, 29918, 1052, 26218, 29889, 3134, 29908, 13, 1678, 1492, 29918, 1052, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 1266, 29918, 1052, 26218, 29889, 3134, 29908, 13, 1678, 269, 12358, 29877, 29918, 1052, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 303, 406, 29877, 29918, 1052, 26218, 29889, 3134, 29908, 13, 1678, 2175, 29918, 1621, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 1563, 29918, 1621, 2450, 29889, 3134, 29908, 13, 1678, 1492, 29918, 1621, 29918, 1445, 353, 4138, 718, 10656, 29918, 978, 718, 29908, 29918, 1266, 29918, 1621, 2450, 29889, 3134, 29908, 13, 1678, 14550, 13, 1678, 2175, 29918, 1052, 29918, 1445, 353, 4138, 718, 29908, 1563, 29918, 1052, 26218, 29889, 3134, 29908, 13, 1678, 1492, 29918, 1052, 29918, 1445, 353, 4138, 718, 29908, 1266, 29918, 1052, 26218, 29889, 3134, 29908, 13, 1678, 269, 12358, 29877, 29918, 1052, 29918, 1445, 353, 4138, 718, 29908, 303, 406, 29877, 29918, 1052, 26218, 29889, 3134, 29908, 13, 1678, 2175, 29918, 1621, 29918, 1445, 353, 4138, 718, 29908, 1563, 29918, 1621, 2450, 29889, 3134, 29908, 13, 1678, 1492, 29918, 1621, 29918, 1445, 353, 4138, 718, 29908, 1266, 29918, 1621, 2450, 29889, 3134, 29908, 13, 1678, 396, 679, 1208, 26218, 515, 343, 8807, 2066, 13, 1678, 380, 1052, 353, 317, 12358, 29877, 7856, 26218, 580, 13, 1678, 380, 1052, 29889, 657, 29918, 1052, 29918, 3166, 29918, 3134, 29898, 1563, 29918, 1052, 29918, 1445, 29892, 1266, 29918, 1052, 29918, 1445, 29892, 303, 406, 29877, 29918, 1052, 29918, 1445, 29892, 1563, 29918, 1621, 29918, 1445, 29892, 1266, 29918, 1621, 29918, 1445, 29897, 13, 13, 29937, 6230, 317, 12358, 29877, 29941, 29928, 13, 29879, 29941, 29928, 353, 317, 12358, 29877, 29941, 29928, 29898, 303, 5030, 29892, 303, 1052, 1699, 29933, 29924, 1159, 13, 29937, 1065, 317, 12358, 29877, 29941, 29928, 14839, 363, 14655, 29871, 29941, 29928, 13, 449, 29918, 12083, 543, 29928, 8419, 5959, 29914, 3712, 446, 29914, 6716, 29928, 4401, 448, 474, 29941, 29881, 6417, 327, 1199, 19806, 29914, 4819, 711, 359, 29914, 20841, 4174, 284, 29914, 4905, 12975, 13, 29879, 29941, 29928, 29889, 3389, 29898, 449, 29918, 12083, 29897, 13, 2 ]
cloudml-template/template/inference.py
VanessaDo/cloudml-samples
3
165876
<reponame>VanessaDo/cloudml-samples<filename>cloudml-template/template/inference.py<gh_stars>1-10 from googleapiclient import discovery from oauth2client.client import GoogleCredentials GCP_PROJECT = '' # Change to GCP project where the Cloud ML Engine model is deployed CMLE_MODEL_NAME = '' # Change to the deployed Cloud ML Engine model CMLE_MODEL_VERSION = None # If None, the default version will be used def predict_cmle(instances): """ Use a deployed model to Cloud ML Engine to perform prediction Args: instances: list of json, csv, or tf.example objects, based on the serving function called Returns: response - dictionary. If no error, response will include an item with 'predictions' key """ credentials = GoogleCredentials.get_application_default() service = discovery.build('ml', 'v1', credentials=credentials) model_url = 'projects/{}/models/{}'.format(GCP_PROJECT, CMLE_MODEL_NAME) if CMLE_MODEL_VERSION is not None: model_url += '/versions/{}'.format(CMLE_MODEL_VERSION) request_data = { 'instances': instances } response = service.projects().predict( body=request_data, name=model_url ).execute() output = response return output
[ 1, 529, 276, 1112, 420, 29958, 29963, 273, 9297, 6132, 29914, 9274, 828, 29899, 27736, 29966, 9507, 29958, 9274, 828, 29899, 6886, 29914, 6886, 29914, 262, 1659, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 5386, 481, 293, 1593, 1053, 20699, 13, 3166, 288, 5150, 29906, 4645, 29889, 4645, 1053, 5087, 28037, 13, 13, 13, 29954, 6271, 29918, 8618, 17637, 353, 6629, 29871, 396, 10726, 304, 402, 6271, 2060, 988, 278, 14293, 23158, 10863, 1904, 338, 21168, 13, 24494, 1307, 29918, 20387, 29931, 29918, 5813, 353, 6629, 29871, 396, 10726, 304, 278, 21168, 14293, 23158, 10863, 1904, 13, 24494, 1307, 29918, 20387, 29931, 29918, 16358, 353, 6213, 29871, 396, 960, 6213, 29892, 278, 2322, 1873, 674, 367, 1304, 13, 13, 13, 1753, 8500, 29918, 4912, 280, 29898, 2611, 2925, 1125, 13, 1678, 9995, 4803, 263, 21168, 1904, 304, 14293, 23158, 10863, 304, 2189, 18988, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 8871, 29901, 1051, 310, 4390, 29892, 11799, 29892, 470, 15886, 29889, 4773, 3618, 29892, 2729, 373, 278, 16330, 740, 2000, 13, 1678, 16969, 29901, 13, 4706, 2933, 448, 8600, 29889, 960, 694, 1059, 29892, 2933, 674, 3160, 385, 2944, 411, 525, 27711, 1080, 29915, 1820, 13, 1678, 9995, 13, 13, 1678, 16140, 353, 5087, 28037, 29889, 657, 29918, 6214, 29918, 4381, 580, 13, 13, 1678, 2669, 353, 20699, 29889, 4282, 877, 828, 742, 525, 29894, 29896, 742, 16140, 29922, 11944, 9409, 29897, 13, 1678, 1904, 29918, 2271, 353, 525, 16418, 19248, 6822, 9794, 29914, 8875, 4286, 4830, 29898, 29954, 6271, 29918, 8618, 17637, 29892, 315, 29924, 1307, 29918, 20387, 29931, 29918, 5813, 29897, 13, 13, 1678, 565, 315, 29924, 1307, 29918, 20387, 29931, 29918, 16358, 338, 451, 6213, 29901, 13, 4706, 1904, 29918, 2271, 4619, 8207, 26100, 29914, 8875, 4286, 4830, 29898, 24494, 1307, 29918, 20387, 29931, 29918, 16358, 29897, 13, 13, 1678, 2009, 29918, 1272, 353, 426, 13, 4706, 525, 2611, 2925, 2396, 8871, 13, 1678, 500, 13, 13, 1678, 2933, 353, 2669, 29889, 16418, 2141, 27711, 29898, 13, 4706, 3573, 29922, 3827, 29918, 1272, 29892, 13, 4706, 1024, 29922, 4299, 29918, 2271, 13, 1678, 13742, 7978, 580, 13, 13, 1678, 1962, 353, 2933, 13, 1678, 736, 1962, 13, 2 ]
interstellar/sprite.py
AnythingTechPro/interstellar
1
62817
<reponame>AnythingTechPro/interstellar<filename>interstellar/sprite.py import random import pygame import time from interstellar import node, resource, audio, controller, mechanism class SpriteError(node.NodeError): """ A sprite specific runtime error """ class Sprite(node.Node): """ A controlled object within the game usually a player """ def __init__(self, parent, image, controller): super(Sprite, self).__init__() self._parent = parent self.image = image self.controller = controller(self) self._attachment = None self.attachment_sound = audio.AudioSound('assets/audio/sfx/grabbed_attachment.wav') self.attachment_deny_sound = audio.AudioSound('assets/audio/sfx/grabbed_attachment_deny.wav') self.health = 0 self.damage = 0 self.can_damage = True @property def attachment(self): return self._attachment @attachment.setter def attachment(self, attachment): if self._attachment or attachment is self._attachment: if self.attachment_deny_sound.playing: self.attachment_deny_sound.stop() self.attachment_deny_sound.play() return self._attachment = attachment self.attachment.setup() if self.attachment_sound.playing: self.attachment_sound.stop() self.attachment_sound.play() def hurt(self, attacker): if not self.can_damage: return if self.health <= 0: return self.die(attacker) self.health -= attacker.damage def die(self, *args, **kwargs): pass def setup(self): self.controller.setup() def update(self): self.controller.update() if self._attachment: self._attachment.update() def explicit_update(self): self.controller.explicit_update() def destroy(self): super(Sprite, self).destroy() self.image.destroy() self.image = None self.controller.destroy() self.controller = None if self._attachment: self._attachment.destroy() self.attachment_sound.destroy() self.attachment_deny_sound.destroy() class SpriteController(node.Node): """ A controller, movement management for a specific sprite object """ def __init__(self, sprite, bind_events=True): super(SpriteController, self).__init__() self.bind_events = bind_events self.sprite = sprite self.speed = 0 self._parent = sprite._parent self.image = sprite.image def update(self): self.move() def explicit_update(self): pass def move(self): if self.sprite._attachment and hasattr(self.sprite._attachment, 'image') and self.sprite._attachment.image and self.image: self.sprite._attachment.image.position = (self.image.x, self.image.y) def bind(self, *args, **kwargs): if not self._parent or not self.bind_events: return None return self._parent.bind(*args, **kwargs) def unbind(self, *args, **kwargs): if not self._parent or not self.bind_events: return None return self._parent.unbind(*args, **kwargs) def send(self, *args, **kwargs): if not self._parent or not self.bind_events: return None return self._parent.send(*args, **kwargs) def destroy(self): super(SpriteController, self).destroy() self.sprite = None self.speed = 0 class ShipController(SpriteController): def __init__(self, sprite): super(ShipController, self).__init__(sprite) self.music_array = resource.ResourceAudioArray(self._parent.root, [ 'assets/audio/sfx/laser_fire_0.wav', 'assets/audio/sfx/laser_fire_1.wav', 'assets/audio/sfx/laser_fire_2.wav', 'assets/audio/sfx/laser_fire_3.wav', ]) self.fire_sound = None self.speed = 15 self.health = 100 self.projectile_speed = 20 self.moving_forward = False self.moving_backward = False self.moving_right = False self.moving_left = False self.firing = False self.projectiles = [] self.maximum_projectiles = 15 self.controller = controller.GameController(self) self.current_distance = 0 def setup(self): super(ShipController, self).setup() self.bind('Up', self.move_forward) self.bind('KeyRelease-Up', lambda event: self.move_forward(event, True)) self.bind('Down', self.move_backward) self.bind('KeyRelease-Down', lambda event: self.move_backward(event, True)) self.bind('Right', self.move_right) self.bind('KeyRelease-Right', lambda event: self.move_right(event, True)) self.bind('Left', self.move_left) self.bind('KeyRelease-Left', lambda event: self.move_left(event, True)) self.bind('space', self.fire) self.bind('KeyRelease-space', lambda event: self.fire(event, True)) self.controller.setup() def move_forward(self, event, release=False): if not release: self.moving_forward = True else: self.moving_forward = False def move_backward(self, event, release=False): if not release: self.moving_backward = True else: self.moving_backward = False def move_right(self, event, release=False): if not release: self.moving_right = True else: self.moving_right = False def move_left(self, event, release=False): if not release: self.moving_left = True else: self.moving_left = False def fire(self, event, release=False): if not release: self.firing = True else: self.firing = False def explicit_update(self): self.controller.update() def move(self): super(ShipController, self).move() self.current_distance += self.speed if self.moving_forward and not self.image.y - self.image.height / 2 <= 0: self.image.y -= self.speed elif self.moving_backward and not self.image.y + self.image.height / 2 >= self._parent.root.display.height: self.image.y += self.speed / 2 self.current_distance -= self.speed / 2 if self.moving_right and not self.image.x + self.image.width / 2 >= self._parent.root.display.width: self.image.x += self.speed elif self.moving_left and not self.image.x - self.image.width / 2 <= 0: self.image.x -= self.speed if self.firing and len(self.projectiles) < self.maximum_projectiles: self.fire_projectile() self.update_projectiles() self.check_player_collisions() def update_projectiles(self): for projectile in self.projectiles: if projectile.y <= 0: self.destroy_projectile(projectile) continue if self.check_projectile_collisions(projectile): self.destroy_projectile(projectile) continue projectile.y -= random.random() * self.projectile_speed * 2 def check_projectile_collisions(self, projectile): for asteroid in self._parent.asteroids: if projectile.collide_point(asteroid.image): asteroid.hurt(self.sprite) return True return False def check_player_collisions(self): for asteroid in self._parent.asteroids: if asteroid.image.collide_point(self.sprite.image): return self.sprite.hurt(asteroid) def fire_projectile(self): if self.fire_sound: self.music_array.deselect(use_pygame=True) self.fire_sound = None self.fire_sound = self.music_array.select(False, use_pygame=True) self.fire_sound.play() bullet0 = resource.ResourceImage(self._parent.root, 'assets/bullet.png') bullet0.position = (self.image.x - self.image.width / 2, self.image.y) bullet1 = resource.ResourceImage(self._parent.root, 'assets/bullet.png') bullet1.position = (self.image.x + self.image.width / 2, self.image.y) bullet0.render(self._parent.canvas) bullet1.render(self._parent.canvas) self.projectiles.append(bullet0) self.projectiles.append(bullet1) def destroy_projectile(self, projectile): projectile.destroy() self.projectiles.remove(projectile) def destroy_projectiles(self): for projectile in self.projectiles: self.destroy_projectile(projectile) def destroy(self): self.music_array.destroy() self.fire_sound = None self._parent.unbind('Up') self._parent.unbind('KeyRelease-Up') self._parent.unbind('Down') self._parent.unbind('KeyRelease-Down') self._parent.unbind('Right') self._parent.unbind('KeyRelease-Right') self._parent.unbind('Left') self._parent.unbind('KeyRelease-Left') self._parent.unbind('space') self._parent.unbind('KeyRelease-space') self.controller.destroy() self.destroy_projectiles() super(ShipController, self).destroy() class Ship(Sprite): def __init__(self, parent, controller): image = resource.ResourceImage(parent.root, 'assets/player.png') image.position = (parent.master.root.winfo_width() / 2, parent.master.root.winfo_height() - image.height) image.render(parent.canvas) super(Ship, self).__init__(parent, image, controller) self.health = 100 self.damage = 5 def die(self, killer): self._parent.explode(self.image.x, self.image.y) self._parent.end() class AsteroidController(SpriteController): def __init__(self, sprite): super(AsteroidController, self).__init__(sprite) self.speed = 25 self.speed = random.random() * self.speed def move(self): if self.image.y >= self._parent.root.display.height: self._parent.remove_asteroid(self.sprite) return self.image.y += self.speed class Asteroid(Sprite): PROBABILITY = 100 def __init__(self, parent, controller, image=None, is_mechanism=False): if not image: images = [ 'assets/asteroids/asteroid-small.png', 'assets/asteroids/asteroid-big.png' ] image = resource.ResourceImage(parent.root, random.choice(images)) image.position = (random.randrange(0, parent.root.display.width), 0) image.render(parent.canvas) super(Asteroid, self).__init__(parent, image, controller) self.is_mechanism = is_mechanism self.health = 10 self.damage = 1 def die(self, killer): self._parent.explode(self.image.x, self.image.y) self._parent.remove_asteroid(self, True) class MechanismAsteroid(Asteroid): ICON = '' ATTACHMENT = None def __init__(self, parent, controller): image = resource.ResourceImage(parent.root, self.ICON) image.position = (random.randrange(0, parent.root.display.width), 0) image.render(parent.canvas) super(MechanismAsteroid, self).__init__(parent, controller, image, True) self.health = 0 self.damage = 0 def die(self, killer): killer.attachment = self.ATTACHMENT(killer) self._parent.remove_asteroid(self, False) class ShieldMechanismAsteroid(MechanismAsteroid): PROBABILITY = 0.5 ICON = 'assets/icons/shield_icon.png' ATTACHMENT = mechanism.ShieldMechanism class InstantKillMechanismAsteroid(MechanismAsteroid): PROBABILITY = 0.1 ICON = 'assets/icons/instant_kill_icon.png' ATTACHMENT = mechanism.InstantKillMechanism class FullHealthMechanismAsteroid(MechanismAsteroid): PROBABILITY = 0.3 ICON = 'assets/icons/full_health_icon.png' ATTACHMENT = mechanism.FullHealthMechanism class DoubleHealthMechanismAsteroid(MechanismAsteroid): PROBABILITY = 0.5 ICON = 'assets/icons/double_health_icon.png' ATTACHMENT = mechanism.DoubleHealthMechanism
[ 1, 529, 276, 1112, 420, 29958, 10773, 1918, 29911, 5309, 1184, 29914, 1639, 6236, 279, 29966, 9507, 29958, 1639, 6236, 279, 29914, 15099, 568, 29889, 2272, 13, 5215, 4036, 13, 5215, 22028, 13, 5215, 931, 13, 3166, 1006, 6236, 279, 1053, 2943, 29892, 6503, 29892, 10348, 29892, 4701, 29892, 13336, 13, 13, 1990, 14314, 568, 2392, 29898, 3177, 29889, 4247, 2392, 1125, 13, 1678, 9995, 13, 1678, 319, 29227, 2702, 10073, 1059, 13, 1678, 9995, 13, 13, 1990, 14314, 568, 29898, 3177, 29889, 4247, 1125, 13, 1678, 9995, 13, 1678, 319, 20704, 1203, 2629, 278, 3748, 5491, 263, 4847, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3847, 29892, 1967, 29892, 4701, 1125, 13, 4706, 2428, 29898, 29903, 558, 568, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 13, 4706, 1583, 3032, 3560, 353, 3847, 13, 4706, 1583, 29889, 3027, 353, 1967, 13, 4706, 1583, 29889, 8299, 353, 4701, 29898, 1311, 29897, 13, 4706, 1583, 3032, 14930, 358, 353, 6213, 13, 4706, 1583, 29889, 14930, 358, 29918, 29802, 353, 10348, 29889, 17111, 29456, 877, 16596, 29914, 18494, 29914, 4668, 29916, 29914, 3874, 1327, 287, 29918, 14930, 358, 29889, 29893, 485, 1495, 13, 4706, 1583, 29889, 14930, 358, 29918, 1145, 29891, 29918, 29802, 353, 10348, 29889, 17111, 29456, 877, 16596, 29914, 18494, 29914, 4668, 29916, 29914, 3874, 1327, 287, 29918, 14930, 358, 29918, 1145, 29891, 29889, 29893, 485, 1495, 13, 13, 4706, 1583, 29889, 354, 4298, 353, 29871, 29900, 13, 4706, 1583, 29889, 16846, 482, 353, 29871, 29900, 13, 4706, 1583, 29889, 3068, 29918, 16846, 482, 353, 5852, 13, 13, 1678, 732, 6799, 13, 1678, 822, 26305, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 14930, 358, 13, 13, 1678, 732, 14930, 358, 29889, 842, 357, 13, 1678, 822, 26305, 29898, 1311, 29892, 26305, 1125, 13, 4706, 565, 1583, 3032, 14930, 358, 470, 26305, 338, 1583, 3032, 14930, 358, 29901, 13, 9651, 565, 1583, 29889, 14930, 358, 29918, 1145, 29891, 29918, 29802, 29889, 1456, 292, 29901, 13, 18884, 1583, 29889, 14930, 358, 29918, 1145, 29891, 29918, 29802, 29889, 9847, 580, 13, 13, 9651, 1583, 29889, 14930, 358, 29918, 1145, 29891, 29918, 29802, 29889, 1456, 580, 13, 9651, 736, 13, 13, 4706, 1583, 3032, 14930, 358, 353, 26305, 13, 4706, 1583, 29889, 14930, 358, 29889, 14669, 580, 13, 13, 4706, 565, 1583, 29889, 14930, 358, 29918, 29802, 29889, 1456, 292, 29901, 13, 9651, 1583, 29889, 14930, 358, 29918, 29802, 29889, 9847, 580, 13, 13, 4706, 1583, 29889, 14930, 358, 29918, 29802, 29889, 1456, 580, 13, 13, 1678, 822, 21682, 29898, 1311, 29892, 5337, 261, 1125, 13, 4706, 565, 451, 1583, 29889, 3068, 29918, 16846, 482, 29901, 13, 9651, 736, 13, 13, 4706, 565, 1583, 29889, 354, 4298, 5277, 29871, 29900, 29901, 13, 9651, 736, 1583, 29889, 16217, 29898, 1131, 28940, 29897, 13, 13, 4706, 1583, 29889, 354, 4298, 22361, 5337, 261, 29889, 16846, 482, 13, 13, 1678, 822, 762, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 6230, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8299, 29889, 14669, 580, 13, 13, 1678, 822, 2767, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8299, 29889, 5504, 580, 13, 13, 4706, 565, 1583, 3032, 14930, 358, 29901, 13, 9651, 1583, 3032, 14930, 358, 29889, 5504, 580, 13, 13, 1678, 822, 6261, 29918, 5504, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8299, 29889, 4548, 4019, 29918, 5504, 580, 13, 13, 1678, 822, 8174, 29898, 1311, 1125, 13, 4706, 2428, 29898, 29903, 558, 568, 29892, 1583, 467, 20524, 580, 13, 13, 4706, 1583, 29889, 3027, 29889, 20524, 580, 13, 4706, 1583, 29889, 3027, 353, 6213, 13, 13, 4706, 1583, 29889, 8299, 29889, 20524, 580, 13, 4706, 1583, 29889, 8299, 353, 6213, 13, 13, 4706, 565, 1583, 3032, 14930, 358, 29901, 13, 9651, 1583, 3032, 14930, 358, 29889, 20524, 580, 13, 13, 4706, 1583, 29889, 14930, 358, 29918, 29802, 29889, 20524, 580, 13, 4706, 1583, 29889, 14930, 358, 29918, 1145, 29891, 29918, 29802, 29889, 20524, 580, 13, 13, 1990, 14314, 568, 2956, 29898, 3177, 29889, 4247, 1125, 13, 1678, 9995, 13, 1678, 319, 4701, 29892, 10298, 10643, 363, 263, 2702, 29227, 1203, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 29227, 29892, 7868, 29918, 13604, 29922, 5574, 1125, 13, 4706, 2428, 29898, 29903, 558, 568, 2956, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 13, 4706, 1583, 29889, 5355, 29918, 13604, 353, 7868, 29918, 13604, 13, 13, 4706, 1583, 29889, 15099, 568, 353, 29227, 13, 4706, 1583, 29889, 19322, 353, 29871, 29900, 13, 13, 4706, 1583, 3032, 3560, 353, 29227, 3032, 3560, 13, 4706, 1583, 29889, 3027, 353, 29227, 29889, 3027, 13, 13, 1678, 822, 2767, 29898, 1311, 1125, 13, 4706, 1583, 29889, 11631, 580, 13, 13, 1678, 822, 6261, 29918, 5504, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 4337, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 15099, 568, 3032, 14930, 358, 322, 756, 5552, 29898, 1311, 29889, 15099, 568, 3032, 14930, 358, 29892, 525, 3027, 1495, 322, 1583, 29889, 15099, 568, 3032, 14930, 358, 29889, 3027, 322, 1583, 29889, 3027, 29901, 13, 9651, 1583, 29889, 15099, 568, 3032, 14930, 358, 29889, 3027, 29889, 3283, 353, 313, 1311, 29889, 3027, 29889, 29916, 29892, 1583, 29889, 3027, 29889, 29891, 29897, 13, 13, 1678, 822, 7868, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 565, 451, 1583, 3032, 3560, 470, 451, 1583, 29889, 5355, 29918, 13604, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 736, 1583, 3032, 3560, 29889, 5355, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 443, 5355, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 565, 451, 1583, 3032, 3560, 470, 451, 1583, 29889, 5355, 29918, 13604, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 736, 1583, 3032, 3560, 29889, 348, 5355, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 3638, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 565, 451, 1583, 3032, 3560, 470, 451, 1583, 29889, 5355, 29918, 13604, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 736, 1583, 3032, 3560, 29889, 6717, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 8174, 29898, 1311, 1125, 13, 4706, 2428, 29898, 29903, 558, 568, 2956, 29892, 1583, 467, 20524, 580, 13, 13, 4706, 1583, 29889, 15099, 568, 353, 6213, 13, 4706, 1583, 29889, 19322, 353, 29871, 29900, 13, 13, 1990, 1383, 666, 2956, 29898, 29903, 558, 568, 2956, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 29227, 1125, 13, 4706, 2428, 29898, 2713, 666, 2956, 29892, 1583, 467, 1649, 2344, 12035, 15099, 568, 29897, 13, 13, 4706, 1583, 29889, 23596, 29918, 2378, 353, 6503, 29889, 6848, 17111, 2588, 29898, 1311, 3032, 3560, 29889, 4632, 29892, 518, 13, 9651, 525, 16596, 29914, 18494, 29914, 4668, 29916, 29914, 3333, 261, 29918, 8696, 29918, 29900, 29889, 29893, 485, 742, 13, 9651, 525, 16596, 29914, 18494, 29914, 4668, 29916, 29914, 3333, 261, 29918, 8696, 29918, 29896, 29889, 29893, 485, 742, 13, 9651, 525, 16596, 29914, 18494, 29914, 4668, 29916, 29914, 3333, 261, 29918, 8696, 29918, 29906, 29889, 29893, 485, 742, 13, 9651, 525, 16596, 29914, 18494, 29914, 4668, 29916, 29914, 3333, 261, 29918, 8696, 29918, 29941, 29889, 29893, 485, 742, 13, 308, 2314, 13, 13, 4706, 1583, 29889, 8696, 29918, 29802, 353, 6213, 13, 13, 4706, 1583, 29889, 19322, 353, 29871, 29896, 29945, 13, 4706, 1583, 29889, 354, 4298, 353, 29871, 29896, 29900, 29900, 13, 4706, 1583, 29889, 4836, 488, 29918, 19322, 353, 29871, 29906, 29900, 13, 13, 4706, 1583, 29889, 13529, 292, 29918, 11333, 353, 7700, 13, 4706, 1583, 29889, 13529, 292, 29918, 1627, 1328, 353, 7700, 13, 4706, 1583, 29889, 13529, 292, 29918, 1266, 353, 7700, 13, 4706, 1583, 29889, 13529, 292, 29918, 1563, 353, 7700, 13, 4706, 1583, 29889, 29888, 8491, 353, 7700, 13, 13, 4706, 1583, 29889, 4836, 5475, 353, 5159, 13, 4706, 1583, 29889, 27525, 398, 29918, 4836, 5475, 353, 29871, 29896, 29945, 13, 13, 4706, 1583, 29889, 8299, 353, 4701, 29889, 14199, 2956, 29898, 1311, 29897, 13, 4706, 1583, 29889, 3784, 29918, 19244, 353, 29871, 29900, 13, 13, 1678, 822, 6230, 29898, 1311, 1125, 13, 4706, 2428, 29898, 2713, 666, 2956, 29892, 1583, 467, 14669, 580, 13, 13, 4706, 1583, 29889, 5355, 877, 3373, 742, 1583, 29889, 11631, 29918, 11333, 29897, 13, 4706, 1583, 29889, 5355, 877, 2558, 19729, 29899, 3373, 742, 14013, 1741, 29901, 1583, 29889, 11631, 29918, 11333, 29898, 3696, 29892, 5852, 876, 13, 4706, 1583, 29889, 5355, 877, 6767, 742, 1583, 29889, 11631, 29918, 1627, 1328, 29897, 13, 4706, 1583, 29889, 5355, 877, 2558, 19729, 29899, 6767, 742, 14013, 1741, 29901, 1583, 29889, 11631, 29918, 1627, 1328, 29898, 3696, 29892, 5852, 876, 13, 4706, 1583, 29889, 5355, 877, 7341, 742, 1583, 29889, 11631, 29918, 1266, 29897, 13, 4706, 1583, 29889, 5355, 877, 2558, 19729, 29899, 7341, 742, 14013, 1741, 29901, 1583, 29889, 11631, 29918, 1266, 29898, 3696, 29892, 5852, 876, 13, 4706, 1583, 29889, 5355, 877, 8091, 742, 1583, 29889, 11631, 29918, 1563, 29897, 13, 4706, 1583, 29889, 5355, 877, 2558, 19729, 29899, 8091, 742, 14013, 1741, 29901, 1583, 29889, 11631, 29918, 1563, 29898, 3696, 29892, 5852, 876, 13, 4706, 1583, 29889, 5355, 877, 3493, 742, 1583, 29889, 8696, 29897, 13, 4706, 1583, 29889, 5355, 877, 2558, 19729, 29899, 3493, 742, 14013, 1741, 29901, 1583, 29889, 8696, 29898, 3696, 29892, 5852, 876, 13, 13, 4706, 1583, 29889, 8299, 29889, 14669, 580, 13, 13, 1678, 822, 4337, 29918, 11333, 29898, 1311, 29892, 1741, 29892, 6507, 29922, 8824, 1125, 13, 4706, 565, 451, 6507, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 11333, 353, 5852, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 11333, 353, 7700, 13, 13, 1678, 822, 4337, 29918, 1627, 1328, 29898, 1311, 29892, 1741, 29892, 6507, 29922, 8824, 1125, 13, 4706, 565, 451, 6507, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 1627, 1328, 353, 5852, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 1627, 1328, 353, 7700, 13, 13, 1678, 822, 4337, 29918, 1266, 29898, 1311, 29892, 1741, 29892, 6507, 29922, 8824, 1125, 13, 4706, 565, 451, 6507, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 1266, 353, 5852, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 1266, 353, 7700, 13, 13, 1678, 822, 4337, 29918, 1563, 29898, 1311, 29892, 1741, 29892, 6507, 29922, 8824, 1125, 13, 4706, 565, 451, 6507, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 1563, 353, 5852, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 13529, 292, 29918, 1563, 353, 7700, 13, 13, 1678, 822, 3974, 29898, 1311, 29892, 1741, 29892, 6507, 29922, 8824, 1125, 13, 4706, 565, 451, 6507, 29901, 13, 9651, 1583, 29889, 29888, 8491, 353, 5852, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 29888, 8491, 353, 7700, 13, 13, 1678, 822, 6261, 29918, 5504, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8299, 29889, 5504, 580, 13, 13, 1678, 822, 4337, 29898, 1311, 1125, 13, 4706, 2428, 29898, 2713, 666, 2956, 29892, 1583, 467, 11631, 580, 13, 13, 4706, 1583, 29889, 3784, 29918, 19244, 4619, 1583, 29889, 19322, 13, 13, 4706, 565, 1583, 29889, 13529, 292, 29918, 11333, 322, 451, 1583, 29889, 3027, 29889, 29891, 448, 1583, 29889, 3027, 29889, 3545, 847, 29871, 29906, 5277, 29871, 29900, 29901, 13, 9651, 1583, 29889, 3027, 29889, 29891, 22361, 1583, 29889, 19322, 13, 4706, 25342, 1583, 29889, 13529, 292, 29918, 1627, 1328, 322, 451, 1583, 29889, 3027, 29889, 29891, 718, 1583, 29889, 3027, 29889, 3545, 847, 29871, 29906, 6736, 1583, 3032, 3560, 29889, 4632, 29889, 4990, 29889, 3545, 29901, 13, 9651, 1583, 29889, 3027, 29889, 29891, 4619, 1583, 29889, 19322, 847, 29871, 29906, 13, 9651, 1583, 29889, 3784, 29918, 19244, 22361, 1583, 29889, 19322, 847, 29871, 29906, 13, 13, 4706, 565, 1583, 29889, 13529, 292, 29918, 1266, 322, 451, 1583, 29889, 3027, 29889, 29916, 718, 1583, 29889, 3027, 29889, 2103, 847, 29871, 29906, 6736, 1583, 3032, 3560, 29889, 4632, 29889, 4990, 29889, 2103, 29901, 13, 9651, 1583, 29889, 3027, 29889, 29916, 4619, 1583, 29889, 19322, 13, 4706, 25342, 1583, 29889, 13529, 292, 29918, 1563, 322, 451, 1583, 29889, 3027, 29889, 29916, 448, 1583, 29889, 3027, 29889, 2103, 847, 29871, 29906, 5277, 29871, 29900, 29901, 13, 9651, 1583, 29889, 3027, 29889, 29916, 22361, 1583, 29889, 19322, 13, 13, 4706, 565, 1583, 29889, 29888, 8491, 322, 7431, 29898, 1311, 29889, 4836, 5475, 29897, 529, 1583, 29889, 27525, 398, 29918, 4836, 5475, 29901, 13, 9651, 1583, 29889, 8696, 29918, 4836, 488, 580, 13, 13, 4706, 1583, 29889, 5504, 29918, 4836, 5475, 580, 13, 4706, 1583, 29889, 3198, 29918, 9106, 29918, 22017, 12112, 580, 13, 13, 1678, 822, 2767, 29918, 4836, 5475, 29898, 1311, 1125, 13, 4706, 363, 2060, 488, 297, 1583, 29889, 4836, 5475, 29901, 13, 13, 9651, 565, 2060, 488, 29889, 29891, 5277, 29871, 29900, 29901, 13, 18884, 1583, 29889, 20524, 29918, 4836, 488, 29898, 4836, 488, 29897, 13, 18884, 6773, 13, 13, 9651, 565, 1583, 29889, 3198, 29918, 4836, 488, 29918, 22017, 12112, 29898, 4836, 488, 1125, 13, 18884, 1583, 29889, 20524, 29918, 4836, 488, 29898, 4836, 488, 29897, 13, 18884, 6773, 13, 13, 9651, 2060, 488, 29889, 29891, 22361, 4036, 29889, 8172, 580, 334, 1583, 29889, 4836, 488, 29918, 19322, 334, 29871, 29906, 13, 13, 1678, 822, 1423, 29918, 4836, 488, 29918, 22017, 12112, 29898, 1311, 29892, 2060, 488, 1125, 13, 4706, 363, 20058, 333, 297, 1583, 3032, 3560, 29889, 1901, 3398, 29879, 29901, 13, 13, 9651, 565, 2060, 488, 29889, 1054, 7459, 29918, 3149, 29898, 1901, 3398, 29889, 3027, 1125, 13, 18884, 20058, 333, 29889, 29882, 4227, 29898, 1311, 29889, 15099, 568, 29897, 13, 18884, 736, 5852, 13, 13, 4706, 736, 7700, 13, 13, 1678, 822, 1423, 29918, 9106, 29918, 22017, 12112, 29898, 1311, 1125, 13, 4706, 363, 20058, 333, 297, 1583, 3032, 3560, 29889, 1901, 3398, 29879, 29901, 13, 13, 9651, 565, 20058, 333, 29889, 3027, 29889, 1054, 7459, 29918, 3149, 29898, 1311, 29889, 15099, 568, 29889, 3027, 1125, 13, 18884, 736, 1583, 29889, 15099, 568, 29889, 29882, 4227, 29898, 1901, 3398, 29897, 13, 13, 1678, 822, 3974, 29918, 4836, 488, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 8696, 29918, 29802, 29901, 13, 9651, 1583, 29889, 23596, 29918, 2378, 29889, 29881, 968, 781, 29898, 1509, 29918, 2272, 11802, 29922, 5574, 29897, 13, 9651, 1583, 29889, 8696, 29918, 29802, 353, 6213, 13, 13, 4706, 1583, 29889, 8696, 29918, 29802, 353, 1583, 29889, 23596, 29918, 2378, 29889, 2622, 29898, 8824, 29892, 671, 29918, 2272, 11802, 29922, 5574, 29897, 13, 4706, 1583, 29889, 8696, 29918, 29802, 29889, 1456, 580, 13, 13, 4706, 24334, 29900, 353, 6503, 29889, 6848, 2940, 29898, 1311, 3032, 3560, 29889, 4632, 29892, 525, 16596, 29914, 18850, 29889, 2732, 1495, 13, 4706, 24334, 29900, 29889, 3283, 353, 313, 1311, 29889, 3027, 29889, 29916, 448, 1583, 29889, 3027, 29889, 2103, 847, 29871, 29906, 29892, 1583, 29889, 3027, 29889, 29891, 29897, 13, 13, 4706, 24334, 29896, 353, 6503, 29889, 6848, 2940, 29898, 1311, 3032, 3560, 29889, 4632, 29892, 525, 16596, 29914, 18850, 29889, 2732, 1495, 13, 4706, 24334, 29896, 29889, 3283, 353, 313, 1311, 29889, 3027, 29889, 29916, 718, 1583, 29889, 3027, 29889, 2103, 847, 29871, 29906, 29892, 1583, 29889, 3027, 29889, 29891, 29897, 13, 13, 4706, 24334, 29900, 29889, 9482, 29898, 1311, 3032, 3560, 29889, 15257, 29897, 13, 4706, 24334, 29896, 29889, 9482, 29898, 1311, 3032, 3560, 29889, 15257, 29897, 13, 13, 4706, 1583, 29889, 4836, 5475, 29889, 4397, 29898, 18850, 29900, 29897, 13, 4706, 1583, 29889, 4836, 5475, 29889, 4397, 29898, 18850, 29896, 29897, 13, 13, 1678, 822, 8174, 29918, 4836, 488, 29898, 1311, 29892, 2060, 488, 1125, 13, 4706, 2060, 488, 29889, 20524, 580, 13, 4706, 1583, 29889, 4836, 5475, 29889, 5992, 29898, 4836, 488, 29897, 13, 13, 1678, 822, 8174, 29918, 4836, 5475, 29898, 1311, 1125, 13, 4706, 363, 2060, 488, 297, 1583, 29889, 4836, 5475, 29901, 13, 9651, 1583, 29889, 20524, 29918, 4836, 488, 29898, 4836, 488, 29897, 13, 13, 1678, 822, 8174, 29898, 1311, 1125, 13, 4706, 1583, 29889, 23596, 29918, 2378, 29889, 20524, 580, 13, 4706, 1583, 29889, 8696, 29918, 29802, 353, 6213, 13, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 3373, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 2558, 19729, 29899, 3373, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 6767, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 2558, 19729, 29899, 6767, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 7341, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 2558, 19729, 29899, 7341, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 8091, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 2558, 19729, 29899, 8091, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 3493, 1495, 13, 4706, 1583, 3032, 3560, 29889, 348, 5355, 877, 2558, 19729, 29899, 3493, 1495, 13, 13, 4706, 1583, 29889, 8299, 29889, 20524, 580, 13, 4706, 1583, 29889, 20524, 29918, 4836, 5475, 580, 13, 4706, 2428, 29898, 2713, 666, 2956, 29892, 1583, 467, 20524, 580, 13, 13, 1990, 1383, 666, 29898, 29903, 558, 568, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3847, 29892, 4701, 1125, 13, 4706, 1967, 353, 6503, 29889, 6848, 2940, 29898, 3560, 29889, 4632, 29892, 525, 16596, 29914, 9106, 29889, 2732, 1495, 13, 4706, 1967, 29889, 3283, 353, 313, 3560, 29889, 6207, 29889, 4632, 29889, 29893, 3888, 29918, 2103, 580, 847, 29871, 29906, 29892, 3847, 29889, 6207, 29889, 4632, 29889, 29893, 3888, 29918, 3545, 580, 448, 1967, 29889, 3545, 29897, 13, 4706, 1967, 29889, 9482, 29898, 3560, 29889, 15257, 29897, 13, 13, 4706, 2428, 29898, 2713, 666, 29892, 1583, 467, 1649, 2344, 12035, 3560, 29892, 1967, 29892, 4701, 29897, 13, 13, 4706, 1583, 29889, 354, 4298, 353, 29871, 29896, 29900, 29900, 13, 4706, 1583, 29889, 16846, 482, 353, 29871, 29945, 13, 13, 1678, 822, 762, 29898, 1311, 29892, 413, 5495, 1125, 13, 4706, 1583, 3032, 3560, 29889, 24516, 356, 29898, 1311, 29889, 3027, 29889, 29916, 29892, 1583, 29889, 3027, 29889, 29891, 29897, 13, 4706, 1583, 3032, 3560, 29889, 355, 580, 13, 13, 1990, 10186, 1489, 333, 2956, 29898, 29903, 558, 568, 2956, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 29227, 1125, 13, 4706, 2428, 29898, 29909, 303, 1489, 333, 2956, 29892, 1583, 467, 1649, 2344, 12035, 15099, 568, 29897, 13, 13, 4706, 1583, 29889, 19322, 353, 29871, 29906, 29945, 13, 4706, 1583, 29889, 19322, 353, 4036, 29889, 8172, 580, 334, 1583, 29889, 19322, 13, 13, 1678, 822, 4337, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 3027, 29889, 29891, 6736, 1583, 3032, 3560, 29889, 4632, 29889, 4990, 29889, 3545, 29901, 13, 9651, 1583, 3032, 3560, 29889, 5992, 29918, 1901, 3398, 29898, 1311, 29889, 15099, 568, 29897, 13, 9651, 736, 13, 13, 4706, 1583, 29889, 3027, 29889, 29891, 4619, 1583, 29889, 19322, 13, 13, 1990, 10186, 1489, 333, 29898, 29903, 558, 568, 1125, 13, 1678, 13756, 29933, 2882, 6227, 11937, 353, 29871, 29896, 29900, 29900, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3847, 29892, 4701, 29892, 1967, 29922, 8516, 29892, 338, 29918, 1004, 5083, 1608, 29922, 8824, 1125, 13, 4706, 565, 451, 1967, 29901, 13, 9651, 4558, 353, 518, 13, 18884, 525, 16596, 29914, 1901, 3398, 29879, 29914, 1901, 3398, 29899, 9278, 29889, 2732, 742, 13, 18884, 525, 16596, 29914, 1901, 3398, 29879, 29914, 1901, 3398, 29899, 3752, 29889, 2732, 29915, 13, 9651, 4514, 13, 13, 9651, 1967, 353, 6503, 29889, 6848, 2940, 29898, 3560, 29889, 4632, 29892, 4036, 29889, 16957, 29898, 8346, 876, 13, 9651, 1967, 29889, 3283, 353, 313, 8172, 29889, 9502, 3881, 29898, 29900, 29892, 3847, 29889, 4632, 29889, 4990, 29889, 2103, 511, 29871, 29900, 29897, 13, 9651, 1967, 29889, 9482, 29898, 3560, 29889, 15257, 29897, 13, 13, 4706, 2428, 29898, 29909, 303, 1489, 333, 29892, 1583, 467, 1649, 2344, 12035, 3560, 29892, 1967, 29892, 4701, 29897, 13, 13, 4706, 1583, 29889, 275, 29918, 1004, 5083, 1608, 353, 338, 29918, 1004, 5083, 1608, 13, 4706, 1583, 29889, 354, 4298, 353, 29871, 29896, 29900, 13, 4706, 1583, 29889, 16846, 482, 353, 29871, 29896, 13, 13, 1678, 822, 762, 29898, 1311, 29892, 413, 5495, 1125, 13, 4706, 1583, 3032, 3560, 29889, 24516, 356, 29898, 1311, 29889, 3027, 29889, 29916, 29892, 1583, 29889, 3027, 29889, 29891, 29897, 13, 4706, 1583, 3032, 3560, 29889, 5992, 29918, 1901, 3398, 29898, 1311, 29892, 5852, 29897, 13, 13, 1990, 27439, 1608, 29909, 303, 1489, 333, 29898, 29909, 303, 1489, 333, 1125, 13, 1678, 306, 6007, 353, 6629, 13, 1678, 15531, 8687, 29950, 13780, 353, 6213, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3847, 29892, 4701, 1125, 13, 4706, 1967, 353, 6503, 29889, 6848, 2940, 29898, 3560, 29889, 4632, 29892, 1583, 29889, 2965, 1164, 29897, 13, 4706, 1967, 29889, 3283, 353, 313, 8172, 29889, 9502, 3881, 29898, 29900, 29892, 3847, 29889, 4632, 29889, 4990, 29889, 2103, 511, 29871, 29900, 29897, 13, 4706, 1967, 29889, 9482, 29898, 3560, 29889, 15257, 29897, 13, 13, 4706, 2428, 29898, 6816, 5083, 1608, 29909, 303, 1489, 333, 29892, 1583, 467, 1649, 2344, 12035, 3560, 29892, 4701, 29892, 1967, 29892, 5852, 29897, 13, 13, 4706, 1583, 29889, 354, 4298, 353, 29871, 29900, 13, 4706, 1583, 29889, 16846, 482, 353, 29871, 29900, 13, 13, 1678, 822, 762, 29898, 1311, 29892, 413, 5495, 1125, 13, 4706, 413, 5495, 29889, 14930, 358, 353, 1583, 29889, 1299, 8687, 29950, 13780, 29898, 29895, 5495, 29897, 13, 4706, 1583, 3032, 3560, 29889, 5992, 29918, 1901, 3398, 29898, 1311, 29892, 7700, 29897, 13, 13, 1990, 1383, 969, 6816, 5083, 1608, 29909, 303, 1489, 333, 29898, 6816, 5083, 1608, 29909, 303, 1489, 333, 1125, 13, 1678, 13756, 29933, 2882, 6227, 11937, 353, 29871, 29900, 29889, 29945, 13, 1678, 306, 6007, 353, 525, 16596, 29914, 27078, 29914, 845, 969, 29918, 4144, 29889, 2732, 29915, 13, 1678, 15531, 8687, 29950, 13780, 353, 13336, 29889, 2713, 969, 6816, 5083, 1608, 13, 13, 1990, 2799, 424, 29968, 453, 6816, 5083, 1608, 29909, 303, 1489, 333, 29898, 6816, 5083, 1608, 29909, 303, 1489, 333, 1125, 13, 1678, 13756, 29933, 2882, 6227, 11937, 353, 29871, 29900, 29889, 29896, 13, 1678, 306, 6007, 353, 525, 16596, 29914, 27078, 29914, 2611, 424, 29918, 21174, 29918, 4144, 29889, 2732, 29915, 13, 1678, 15531, 8687, 29950, 13780, 353, 13336, 29889, 3379, 424, 29968, 453, 6816, 5083, 1608, 13, 13, 1990, 14846, 3868, 4298, 6816, 5083, 1608, 29909, 303, 1489, 333, 29898, 6816, 5083, 1608, 29909, 303, 1489, 333, 1125, 13, 1678, 13756, 29933, 2882, 6227, 11937, 353, 29871, 29900, 29889, 29941, 13, 1678, 306, 6007, 353, 525, 16596, 29914, 27078, 29914, 8159, 29918, 354, 4298, 29918, 4144, 29889, 2732, 29915, 13, 1678, 15531, 8687, 29950, 13780, 353, 13336, 29889, 13658, 3868, 4298, 6816, 5083, 1608, 13, 13, 1990, 11599, 3868, 4298, 6816, 5083, 1608, 29909, 303, 1489, 333, 29898, 6816, 5083, 1608, 29909, 303, 1489, 333, 1125, 13, 1678, 13756, 29933, 2882, 6227, 11937, 353, 29871, 29900, 29889, 29945, 13, 1678, 306, 6007, 353, 525, 16596, 29914, 27078, 29914, 8896, 29918, 354, 4298, 29918, 4144, 29889, 2732, 29915, 13, 1678, 15531, 8687, 29950, 13780, 353, 13336, 29889, 11843, 3868, 4298, 6816, 5083, 1608, 13, 2 ]
sockmetrics.py
ChengWu-NJ/ebpf-bcc-apps
0
58044
#!/usr/bin/python3 # wucheng August 8, 2019 # sockmetrics.py --- collect sock communication info among hosts # version 0.9 # two methods to output results: # 1. to screen # 2. to TDengine, a kind of structured time series db # please run ./sockmetrics -h to get help # This program bases on https://github.com/iovisor/bcc # Licensed Apache-2.0 #from __future__ import print_function from bcc import BPF import argparse from socket import inet_ntop, AF_INET, AF_INET6 from struct import pack from time import sleep, strftime from subprocess import call from collections import namedtuple, defaultdict import os import json import taos import datetime # arguments def range_check(string): value = int(string) if value < 1 or value > 600: msg = "value must be 1 ~ 600, got %d" % (value,) raise argparse.ArgumentTypeError(msg) return value def positive_check(string): value = int(string) if value < 1: msg = "value must be stricly positive, got %d" % (value,) raise argparse.ArgumentTypeError(msg) return value examples = """examples: ./sockmetrics --conf_file='/etc/sockmetrics.conf' # input all sock trace data into tsdb configured in conf_file ./sockmetrics # trace Sock send/recv by host on screen ./sockmetrics -p 181 # only trace PID 181 on screen """ parser = argparse.ArgumentParser( description="Summarize Sock send/recv throughput by host", formatter_class=argparse.RawDescriptionHelpFormatter, epilog=examples) parser.add_argument("--conf_file", help="this argument points the configure file, and is exclusive and discards other arguments ") parser.add_argument("-p", "--pid", help="trace this PID only") parser.add_argument("interval", nargs="?", default=1, type=range_check, help="output interval, in seconds (default 1), range 1 ~ 600") parser.add_argument("count", nargs="?", default=-1, type=positive_check, help="number of the records with the top recerived bytes to output per interval") parser.add_argument("--ebpf", action="store_true", help=argparse.SUPPRESS) args = parser.parse_args() def get_arguments_from_conf_file(conf_file): with open(conf_file, 'r') as jsonfile: _d = json.load(jsonfile) if _d.get("dbhost") and _d.get("database") \ and _d.get("user") and _d.get("password"): return _d else: raise Exception("conf_file %s is invalid."%conf_file) conf_dict = None if args.conf_file and os.stat(args.conf_file): conf_dict = get_arguments_from_conf_file(args.conf_file) args.pid = None _interval = conf_dict.get('interval') if _interval is not None and _interval > 0 and _interval <= 600: args.interval = _interval else: args.interval = 1 _count = conf_dict.get('count') if _count is not None and _count > 0: args.count = _count else: args.count = -1 debug = 0 # define BPF program bpf_text = """ #include <uapi/linux/ptrace.h> #include <net/sock.h> #include <bcc/proto.h> #include <linux/net.h> #include <uapi/linux/ip.h> #include <linux/ip.h> struct ipv4_key_t { u32 pid; u32 saddr; u32 daddr; u16 lport; u16 dport; u16 socktype; }; BPF_HASH(ipv4_send_bytes, struct ipv4_key_t); BPF_HASH(ipv4_recv_bytes, struct ipv4_key_t); struct ipv6_key_t { u32 pid; unsigned __int128 saddr; unsigned __int128 daddr; u16 lport; u16 dport; u16 socktype; }; BPF_HASH(ipv6_send_bytes, struct ipv6_key_t); BPF_HASH(ipv6_recv_bytes, struct ipv6_key_t); //static int kprobe__packet_snd(struct pt_regs *ctx, struct socket *sock, // struct msghdr *msg, size_t len) int kprobe__inet_sendmsg(struct pt_regs *ctx, struct socket *sock, struct msghdr *msg, size_t size) { //bpf_trace_printk("entry inet_sendmsg now. \\n"); u32 pid = bpf_get_current_pid_tgid(); FILTER struct sock *sk = sock->sk; u16 dport = 0, family = sk->__sk_common.skc_family; //bpf_trace_printk("inet_sendmsg got family %d, and protocol is %d\\n", family, sk->__sk_common.skc_prot); if (family == AF_INET && sk->__sk_common.skc_rcv_saddr != sk->__sk_common.skc_daddr) { struct ipv4_key_t ipv4_key = {.pid = pid}; ipv4_key.saddr = sk->__sk_common.skc_rcv_saddr; ipv4_key.daddr = sk->__sk_common.skc_daddr; ipv4_key.lport = sk->__sk_common.skc_num; dport = sk->__sk_common.skc_dport; ipv4_key.dport = ntohs(dport); ipv4_key.socktype = sock->type; ipv4_send_bytes.increment(ipv4_key, size); } if (family == AF_INET6) { struct ipv6_key_t ipv6_key = {.pid = pid}; __builtin_memcpy(&ipv6_key.saddr, sk->__sk_common.skc_v6_rcv_saddr.in6_u.u6_addr32, sizeof(ipv6_key.saddr)); __builtin_memcpy(&ipv6_key.daddr, sk->__sk_common.skc_v6_daddr.in6_u.u6_addr32, sizeof(ipv6_key.daddr)); if (ipv6_key.saddr == ipv6_key.daddr) return 0; ipv6_key.lport = sk->__sk_common.skc_num; dport = sk->__sk_common.skc_dport; ipv6_key.dport = ntohs(dport); ipv6_key.socktype = sock->type; ipv6_send_bytes.increment(ipv6_key, size); } // else drop return 0; } int kprobe__inet_recvmsg(struct pt_regs *ctx, struct socket *sock, struct msghdr *msg, size_t size) { u32 pid = bpf_get_current_pid_tgid(); FILTER struct sock *sk = sock->sk; u16 dport = 0, family = sk->__sk_common.skc_family; u64 *val, zero = 0; // bpf_trace_printk("inet_recvmsg got family %d\\n", family); if (size <= 0) return 0; if (family == AF_INET && sk->__sk_common.skc_rcv_saddr != sk->__sk_common.skc_daddr) { struct ipv4_key_t ipv4_key = {.pid = pid}; ipv4_key.saddr = sk->__sk_common.skc_rcv_saddr; ipv4_key.daddr = sk->__sk_common.skc_daddr; ipv4_key.lport = sk->__sk_common.skc_num; dport = sk->__sk_common.skc_dport; ipv4_key.dport = ntohs(dport); ipv4_key.socktype = sock->type; ipv4_recv_bytes.increment(ipv4_key,size); } if (family == AF_INET6) { struct ipv6_key_t ipv6_key = {.pid = pid}; __builtin_memcpy(&ipv6_key.saddr, sk->__sk_common.skc_v6_rcv_saddr.in6_u.u6_addr32, sizeof(ipv6_key.saddr)); __builtin_memcpy(&ipv6_key.daddr, sk->__sk_common.skc_v6_daddr.in6_u.u6_addr32, sizeof(ipv6_key.daddr)); if (ipv6_key.saddr == ipv6_key.daddr) return 0; ipv6_key.lport = sk->__sk_common.skc_num; dport = sk->__sk_common.skc_dport; ipv6_key.dport = ntohs(dport); ipv6_key.socktype = sock->type; ipv6_recv_bytes.increment(ipv6_key, size); } // else drop return 0; } """ # code substitutions if args.pid: bpf_text = bpf_text.replace('FILTER', 'if (pid != %s) { return 0; }' % args.pid) else: bpf_text = bpf_text.replace('FILTER', '') if debug or args.ebpf: print(bpf_text) if args.ebpf: exit() SockSessionKey = namedtuple('SockSession', ['pid', 'laddr', 'lport', 'daddr', 'dport', 'socktype']) def pid_to_comm(pid): try: comm = open("/proc/%d/comm" % pid, "r").read().rstrip() return comm except IOError: return str(pid) def _to_socktype(type): #https://elixir.bootlin.com/linux/latest/source/include/linux/net.h#L60 return "TCP" if type==1 else "UDP" if type==2 else "Other" def get_ipv4_session_key(k): return SockSessionKey(pid=k.pid, laddr=inet_ntop(AF_INET, pack("I", k.saddr)), lport=k.lport, daddr=inet_ntop(AF_INET, pack("I", k.daddr)), dport=k.dport, socktype=k.socktype) def get_ipv6_session_key(k): return SockSessionKey(pid=k.pid, laddr=inet_ntop(AF_INET6, k.saddr), lport=k.lport, daddr=inet_ntop(AF_INET6, k.daddr), dport=k.dport, socktype=k.socktype) def getdbconnection(cnfdict): _conn = taos.connect(host=cnfdict["dbhost"], user=cnfdict["user"], password=cnfdict["password"], database=cnfdict["database"]) print(_conn._host) return _conn def sqlexecute(cursor, sqltext): #continue when network error, etc. try: cursor.execute(sqltext) return True except: return False def createtables(cursor): _ipv4_ready = sqlexecute(cursor, """create table if not exists ipv4_metrics ( epoch timestamp, pid int, comm binary(40), type int, laddr binary(15), lport int, raddr binary(15), rport int, rx_byte bigint, tx_byte bigint, interval_sum smallint)""") _ipv6_ready = sqlexecute(cursor, """create table if not exists ipv6_metrics ( epoch timestamp, pid int, comm binary(40), type int, laddr6 binary(39), lport int, raddr6 binary(39), rport int, rx_byte bigint, tx_byte bigint, interval_sum smallint)""") if _ipv4_ready and _ipv6_ready: return True else: return False # initialize BPF b = BPF(text=bpf_text) """ if b.get_kprobe_functions(b"netif_receive_skb"): b.attach_kprobe(event="netif_receive_skb", fn_name="trace_netif_receive_skb") else: print("ERROR: netif_receive_skb() kernel function not found or traceable. " "Older kernel versions not supported.") exit() """ ipv4_send_bytes = b["ipv4_send_bytes"] ipv4_recv_bytes = b["ipv4_recv_bytes"] ipv6_send_bytes = b["ipv6_send_bytes"] ipv6_recv_bytes = b["ipv6_recv_bytes"] # tsdb if conf_file is set if conf_dict: output_db = True else: output_db =False if output_db: conn = getdbconnection(conf_dict) csr = conn.cursor() i_reconnect = 0 if not createtables(csr): raise(Exception("Something wrong when create tables.")) print('Tracing... Output every %s secs. Hit Ctrl-C to end' % args.interval) print('Collected data will input to tsdb...') # output exiting = False while not exiting: try: sleep(args.interval) except KeyboardInterrupt: exiting = True if output_db: csr.close() conn.close() # reset dbconnect. continue when network error, etc. if output_db and i_reconnect >= 100: i_reconnect = 0 try: csr.close() conn.close() conn = getdbconnection(conf_dict) csr = conn.cursor() except: pass # IPv4: build dict of all seen keys ipv4_throughput = defaultdict(lambda: [0, 0]) for k, v in ipv4_send_bytes.items(): key = get_ipv4_session_key(k) ipv4_throughput[key][0] = v.value ipv4_send_bytes.clear() for k, v in ipv4_recv_bytes.items(): key = get_ipv4_session_key(k) ipv4_throughput[key][1] = v.value ipv4_recv_bytes.clear() if not output_db and ipv4_throughput: print("%-6s %-12s %-6s %-21s %-21s %9s %9s" % ("PID", "COMM", "TYPE", "LADDR", "RADDR", "RX_Byte", "TX_Byte")) # output i = 0 for k, (send_bytes, recv_bytes) in (ipv4_throughput.items() if args.count==-1 else sorted(ipv4_throughput.items(), key=lambda kv: sum(kv[1]), reverse=True)): if args.count > 0 and i >= args.count: break if output_db: sqlexecute(csr, """insert into ipv4_metrics (epoch, pid, comm, type, laddr, lport, raddr, rport, rx_byte, tx_byte, interval_sum) values ('%s', %d, '%s', %d, '%s', %d, '%s', %d, %d, %d, %d)""" % (datetime.datetime.now(), k.pid, pid_to_comm(k.pid), k.socktype, k.laddr, k.lport, k.daddr, k.dport, recv_bytes, send_bytes, args.interval) ) else: print("%-6d %-12.12s %-6.6s %-21s %-21s %9d %9d" % (k.pid, pid_to_comm(k.pid), _to_socktype(k.socktype), k.laddr + ":" + str(k.lport), k.daddr + ":" + str(k.dport), recv_bytes, send_bytes)) i += 1 # IPv6: build dict of all seen keys ipv6_throughput = defaultdict(lambda: [0, 0]) for k, v in ipv6_send_bytes.items(): key = get_ipv6_session_key(k) ipv6_throughput[key][0] = v.value ipv6_send_bytes.clear() for k, v in ipv6_recv_bytes.items(): key = get_ipv6_session_key(k) ipv6_throughput[key][1] = v.value ipv6_recv_bytes.clear() if ipv6_throughput: # more than 80 chars, sadly. print("\n%-6s %-12s %-6s %-32s %-32s %9s %9s" % ("PID", "COMM", "TYPE", "LADDR6", "RADDR6", "RX_Byte", "TX_Byte")) # output i = 0 for k, (send_bytes, recv_bytes) in (ipv6_throughput.items() if args.count==-1 else sorted(ipv6_throughput.items(), key=lambda kv: sum(kv[1]), reverse=True)): if args.count > 0 and i >= args.count: break if output_db: sqlexecute(csr, """insert into ipv6_metrics (epoch, pid, comm, type, laddr6, lport, raddr6, rport, rx_byte, tx_byte, interval_sum) values ('%s', %d, '%s', %d, '%s', %d, '%s', %d, %d, %d, %d)""" % (datetime.datetime.now(), k.pid, pid_to_comm(k.pid), k.socktype, k.laddr, k.lport, k.daddr, k.dport, recv_bytes, send_bytes, args.interval) ) else: print("%-6d %-12.12s %-6.6s %-32s %-32s %9d %9d" % (k.pid, pid_to_comm(k.pid), _to_socktype(k.socktype), k.laddr + ":" + str(k.lport), k.daddr + ":" + str(k.dport), recv_bytes, send_bytes)) i += 1 if output_db: i_reconnect += 1
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 29941, 13, 29937, 281, 987, 996, 268, 3111, 29871, 29947, 29892, 29871, 29906, 29900, 29896, 29929, 13, 29937, 577, 384, 2527, 10817, 29889, 2272, 11474, 6314, 577, 384, 12084, 5235, 4249, 18982, 13, 29937, 1873, 29871, 29900, 29889, 29929, 13, 29937, 1023, 3519, 304, 1962, 2582, 29901, 13, 29937, 29871, 29896, 29889, 304, 4315, 13, 29937, 29871, 29906, 29889, 304, 323, 29928, 10599, 29892, 263, 2924, 310, 2281, 2955, 931, 3652, 4833, 13, 29937, 3113, 1065, 11431, 21852, 2527, 10817, 448, 29882, 304, 679, 1371, 13, 29937, 910, 1824, 22561, 373, 2045, 597, 3292, 29889, 510, 29914, 29875, 25190, 272, 29914, 29890, 617, 13, 29937, 10413, 21144, 13380, 29899, 29906, 29889, 29900, 13, 13, 29937, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 3166, 289, 617, 1053, 350, 13691, 13, 5215, 1852, 5510, 13, 3166, 9909, 1053, 297, 300, 29918, 593, 459, 29892, 23844, 29918, 1177, 2544, 29892, 23844, 29918, 1177, 2544, 29953, 13, 3166, 2281, 1053, 4870, 13, 3166, 931, 1053, 8709, 29892, 851, 615, 603, 13, 3166, 1014, 5014, 1053, 1246, 13, 3166, 16250, 1053, 4257, 23583, 29892, 2322, 8977, 13, 5215, 2897, 13, 5215, 4390, 13, 5215, 11062, 359, 13, 5215, 12865, 13, 13, 29937, 6273, 13, 1753, 3464, 29918, 3198, 29898, 1807, 1125, 13, 1678, 995, 353, 938, 29898, 1807, 29897, 13, 1678, 565, 995, 529, 29871, 29896, 470, 995, 1405, 29871, 29953, 29900, 29900, 29901, 13, 4706, 10191, 353, 376, 1767, 1818, 367, 29871, 29896, 3695, 29871, 29953, 29900, 29900, 29892, 2355, 1273, 29881, 29908, 1273, 313, 1767, 29892, 29897, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 29898, 7645, 29897, 13, 1678, 736, 995, 13, 13, 1753, 6374, 29918, 3198, 29898, 1807, 1125, 13, 1678, 995, 353, 938, 29898, 1807, 29897, 13, 1678, 565, 995, 529, 29871, 29896, 29901, 13, 4706, 10191, 353, 376, 1767, 1818, 367, 851, 293, 368, 6374, 29892, 2355, 1273, 29881, 29908, 1273, 313, 1767, 29892, 29897, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 29898, 7645, 29897, 13, 1678, 736, 995, 13, 13, 19057, 353, 9995, 19057, 29901, 13, 1678, 11431, 21852, 2527, 10817, 1192, 5527, 29918, 1445, 2433, 29914, 7070, 29914, 21852, 2527, 10817, 29889, 5527, 29915, 259, 396, 1881, 599, 577, 384, 9637, 848, 964, 18696, 2585, 13252, 297, 1970, 29918, 1445, 13, 1678, 11431, 21852, 2527, 10817, 965, 396, 9637, 1105, 384, 3638, 29914, 3757, 29894, 491, 3495, 373, 4315, 13, 1678, 11431, 21852, 2527, 10817, 448, 29886, 29871, 29896, 29947, 29896, 1678, 396, 871, 9637, 349, 1367, 29871, 29896, 29947, 29896, 373, 4315, 13, 15945, 29908, 13, 16680, 353, 1852, 5510, 29889, 15730, 11726, 29898, 13, 1678, 6139, 543, 11139, 3034, 675, 1105, 384, 3638, 29914, 3757, 29894, 1549, 649, 491, 3495, 613, 13, 1678, 883, 2620, 29918, 1990, 29922, 1191, 5510, 29889, 22131, 9868, 29648, 18522, 29892, 13, 1678, 9358, 26140, 29922, 19057, 29897, 13, 16680, 29889, 1202, 29918, 23516, 703, 489, 5527, 29918, 1445, 613, 29871, 13, 1678, 1371, 543, 1366, 2980, 3291, 278, 10822, 934, 29892, 322, 338, 29192, 322, 2313, 3163, 916, 6273, 16521, 13, 16680, 29889, 1202, 29918, 23516, 703, 29899, 29886, 613, 376, 489, 5935, 613, 13, 1678, 1371, 543, 15003, 445, 349, 1367, 871, 1159, 13, 16680, 29889, 1202, 29918, 23516, 703, 19207, 613, 302, 5085, 543, 29973, 613, 2322, 29922, 29896, 29892, 1134, 29922, 3881, 29918, 3198, 29892, 13, 1678, 1371, 543, 4905, 7292, 29892, 297, 6923, 313, 4381, 29871, 29896, 511, 3464, 29871, 29896, 3695, 29871, 29953, 29900, 29900, 1159, 13, 16680, 29889, 1202, 29918, 23516, 703, 2798, 613, 302, 5085, 543, 29973, 613, 2322, 10457, 29896, 29892, 1134, 29922, 1066, 3321, 29918, 3198, 29892, 13, 1678, 1371, 543, 4537, 310, 278, 6475, 411, 278, 2246, 1162, 261, 2347, 6262, 304, 1962, 639, 7292, 1159, 13, 16680, 29889, 1202, 29918, 23516, 703, 489, 774, 7810, 613, 3158, 543, 8899, 29918, 3009, 613, 13, 1678, 1371, 29922, 1191, 5510, 29889, 29903, 4897, 15094, 1799, 29897, 13, 5085, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 1753, 679, 29918, 25699, 29918, 3166, 29918, 5527, 29918, 1445, 29898, 5527, 29918, 1445, 1125, 13, 1678, 411, 1722, 29898, 5527, 29918, 1445, 29892, 525, 29878, 1495, 408, 4390, 1445, 29901, 13, 4706, 903, 29881, 353, 4390, 29889, 1359, 29898, 3126, 1445, 29897, 13, 4706, 565, 903, 29881, 29889, 657, 703, 2585, 3069, 1159, 322, 903, 29881, 29889, 657, 703, 9803, 1159, 320, 13, 18884, 322, 903, 29881, 29889, 657, 703, 1792, 1159, 322, 903, 29881, 29889, 657, 703, 5630, 29908, 1125, 13, 9651, 736, 903, 29881, 13, 4706, 1683, 29901, 13, 9651, 12020, 8960, 703, 5527, 29918, 1445, 1273, 29879, 338, 8340, 1213, 29995, 5527, 29918, 1445, 29897, 13, 632, 13, 5527, 29918, 8977, 353, 6213, 13, 361, 6389, 29889, 5527, 29918, 1445, 322, 2897, 29889, 6112, 29898, 5085, 29889, 5527, 29918, 1445, 1125, 13, 1678, 1970, 29918, 8977, 353, 679, 29918, 25699, 29918, 3166, 29918, 5527, 29918, 1445, 29898, 5085, 29889, 5527, 29918, 1445, 29897, 13, 1678, 6389, 29889, 5935, 353, 6213, 13, 1678, 903, 19207, 353, 1970, 29918, 8977, 29889, 657, 877, 19207, 1495, 13, 1678, 565, 903, 19207, 338, 451, 6213, 322, 903, 19207, 1405, 29871, 29900, 322, 903, 19207, 5277, 29871, 29953, 29900, 29900, 29901, 13, 4706, 6389, 29889, 19207, 353, 903, 19207, 13, 1678, 1683, 29901, 13, 4706, 6389, 29889, 19207, 353, 29871, 29896, 13, 1678, 903, 2798, 353, 1970, 29918, 8977, 29889, 657, 877, 2798, 1495, 13, 1678, 565, 903, 2798, 338, 451, 6213, 322, 903, 2798, 1405, 29871, 29900, 29901, 13, 4706, 6389, 29889, 2798, 353, 903, 2798, 13, 1678, 1683, 29901, 13, 4706, 6389, 29889, 2798, 353, 448, 29896, 13, 13, 8382, 353, 29871, 29900, 13, 13, 29937, 4529, 350, 13691, 1824, 13, 29890, 7810, 29918, 726, 353, 9995, 13, 29937, 2856, 529, 29884, 2754, 29914, 9389, 29914, 415, 25525, 29889, 29882, 29958, 13, 29937, 2856, 529, 1212, 29914, 21852, 29889, 29882, 29958, 13, 29937, 2856, 529, 29890, 617, 29914, 17529, 29889, 29882, 29958, 13, 29937, 2856, 529, 9389, 29914, 1212, 29889, 29882, 29958, 13, 29937, 2856, 529, 29884, 2754, 29914, 9389, 29914, 666, 29889, 29882, 29958, 13, 29937, 2856, 529, 9389, 29914, 666, 29889, 29882, 29958, 13, 13, 4984, 10377, 29894, 29946, 29918, 1989, 29918, 29873, 426, 13, 1678, 318, 29941, 29906, 23107, 29936, 13, 1678, 318, 29941, 29906, 269, 10030, 29936, 13, 1678, 318, 29941, 29906, 270, 10030, 29936, 13, 1678, 318, 29896, 29953, 301, 637, 29936, 13, 1678, 318, 29896, 29953, 270, 637, 29936, 13, 1678, 318, 29896, 29953, 577, 384, 1853, 29936, 13, 3400, 13, 29933, 13691, 29918, 29950, 24943, 29898, 666, 29894, 29946, 29918, 6717, 29918, 13193, 29892, 2281, 10377, 29894, 29946, 29918, 1989, 29918, 29873, 416, 13, 29933, 13691, 29918, 29950, 24943, 29898, 666, 29894, 29946, 29918, 3757, 29894, 29918, 13193, 29892, 2281, 10377, 29894, 29946, 29918, 1989, 29918, 29873, 416, 13, 13, 4984, 10377, 29894, 29953, 29918, 1989, 29918, 29873, 426, 13, 1678, 318, 29941, 29906, 23107, 29936, 13, 1678, 12780, 4770, 524, 29896, 29906, 29947, 269, 10030, 29936, 13, 1678, 12780, 4770, 524, 29896, 29906, 29947, 270, 10030, 29936, 13, 1678, 318, 29896, 29953, 301, 637, 29936, 13, 1678, 318, 29896, 29953, 270, 637, 29936, 13, 1678, 318, 29896, 29953, 577, 384, 1853, 29936, 13, 3400, 13, 29933, 13691, 29918, 29950, 24943, 29898, 666, 29894, 29953, 29918, 6717, 29918, 13193, 29892, 2281, 10377, 29894, 29953, 29918, 1989, 29918, 29873, 416, 13, 29933, 13691, 29918, 29950, 24943, 29898, 666, 29894, 29953, 29918, 3757, 29894, 29918, 13193, 29892, 2281, 10377, 29894, 29953, 29918, 1989, 29918, 29873, 416, 13, 13, 458, 7959, 938, 413, 771, 915, 1649, 4058, 300, 29918, 29879, 299, 29898, 4984, 19592, 29918, 1727, 29879, 334, 13073, 29892, 2281, 9909, 334, 21852, 29892, 29871, 13, 458, 18884, 2281, 10191, 29882, 7707, 334, 7645, 29892, 2159, 29918, 29873, 7431, 29897, 13, 524, 413, 771, 915, 1649, 10157, 29918, 6717, 7645, 29898, 4984, 19592, 29918, 1727, 29879, 334, 13073, 29892, 2281, 9909, 334, 21852, 29892, 2281, 10191, 29882, 7707, 334, 7645, 29892, 2159, 29918, 29873, 2159, 29897, 13, 29912, 13, 458, 29890, 7810, 29918, 15003, 29918, 2158, 29895, 703, 8269, 297, 300, 29918, 6717, 7645, 1286, 29889, 2474, 29876, 1496, 13, 1678, 318, 29941, 29906, 23107, 353, 289, 7810, 29918, 657, 29918, 3784, 29918, 5935, 29918, 29873, 29887, 333, 890, 13, 1678, 383, 6227, 4945, 13, 1678, 2281, 577, 384, 334, 808, 353, 577, 384, 976, 808, 29936, 13, 1678, 318, 29896, 29953, 270, 637, 353, 29871, 29900, 29892, 3942, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 11922, 29936, 13, 458, 29890, 7810, 29918, 15003, 29918, 2158, 29895, 703, 10157, 29918, 6717, 7645, 2355, 3942, 1273, 29881, 29892, 322, 9608, 338, 1273, 29881, 1966, 29876, 613, 3942, 29892, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 771, 29873, 416, 13, 13, 1678, 565, 313, 11922, 1275, 23844, 29918, 1177, 2544, 2607, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 2214, 29894, 29918, 29879, 10030, 2804, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 10030, 29897, 426, 13, 4706, 2281, 10377, 29894, 29946, 29918, 1989, 29918, 29873, 10377, 29894, 29946, 29918, 1989, 353, 426, 29889, 5935, 353, 23107, 3400, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29879, 10030, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 2214, 29894, 29918, 29879, 10030, 29936, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29881, 10030, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 10030, 29936, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29880, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 1949, 29936, 13, 4706, 270, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 637, 29936, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29881, 637, 353, 302, 517, 9499, 29898, 29881, 637, 416, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 21852, 1853, 353, 577, 384, 976, 1853, 29936, 13, 4706, 10377, 29894, 29946, 29918, 6717, 29918, 13193, 29889, 25629, 29898, 666, 29894, 29946, 29918, 1989, 29892, 2159, 416, 13, 13, 1678, 500, 13, 268, 13, 1678, 565, 313, 11922, 1275, 23844, 29918, 1177, 2544, 29953, 29897, 426, 13, 4706, 2281, 10377, 29894, 29953, 29918, 1989, 29918, 29873, 10377, 29894, 29953, 29918, 1989, 353, 426, 29889, 5935, 353, 23107, 3400, 13, 4706, 4770, 16145, 262, 29918, 6954, 23141, 6243, 666, 29894, 29953, 29918, 1989, 29889, 29879, 10030, 29892, 13, 9651, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29894, 29953, 29918, 2214, 29894, 29918, 29879, 10030, 29889, 262, 29953, 29918, 29884, 29889, 29884, 29953, 29918, 10030, 29941, 29906, 29892, 13810, 29898, 666, 29894, 29953, 29918, 1989, 29889, 29879, 10030, 2483, 13, 4706, 4770, 16145, 262, 29918, 6954, 23141, 6243, 666, 29894, 29953, 29918, 1989, 29889, 29881, 10030, 29892, 13, 9651, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29894, 29953, 29918, 29881, 10030, 29889, 262, 29953, 29918, 29884, 29889, 29884, 29953, 29918, 10030, 29941, 29906, 29892, 13810, 29898, 666, 29894, 29953, 29918, 1989, 29889, 29881, 10030, 2483, 13, 13, 4706, 565, 313, 666, 29894, 29953, 29918, 1989, 29889, 29879, 10030, 1275, 10377, 29894, 29953, 29918, 1989, 29889, 29881, 10030, 29897, 13, 9651, 736, 29871, 29900, 29936, 13, 13, 4706, 10377, 29894, 29953, 29918, 1989, 29889, 29880, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 1949, 29936, 13, 4706, 270, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 637, 29936, 13, 4706, 10377, 29894, 29953, 29918, 1989, 29889, 29881, 637, 353, 302, 517, 9499, 29898, 29881, 637, 416, 13, 4706, 10377, 29894, 29953, 29918, 1989, 29889, 21852, 1853, 353, 577, 384, 976, 1853, 29936, 13, 4706, 10377, 29894, 29953, 29918, 6717, 29918, 13193, 29889, 25629, 29898, 666, 29894, 29953, 29918, 1989, 29892, 2159, 416, 13, 1678, 500, 13, 1678, 849, 1683, 5768, 13, 13, 1678, 736, 29871, 29900, 29936, 13, 29913, 13, 13, 13, 524, 413, 771, 915, 1649, 10157, 29918, 3757, 29894, 7645, 29898, 4984, 19592, 29918, 1727, 29879, 334, 13073, 29892, 2281, 9909, 334, 21852, 29892, 2281, 10191, 29882, 7707, 334, 7645, 29892, 2159, 29918, 29873, 2159, 29897, 13, 29912, 13, 1678, 318, 29941, 29906, 23107, 353, 289, 7810, 29918, 657, 29918, 3784, 29918, 5935, 29918, 29873, 29887, 333, 890, 13, 1678, 383, 6227, 4945, 13, 13, 1678, 2281, 577, 384, 334, 808, 353, 577, 384, 976, 808, 29936, 13, 13, 1678, 318, 29896, 29953, 270, 637, 353, 29871, 29900, 29892, 3942, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 11922, 29936, 13, 1678, 318, 29953, 29946, 334, 791, 29892, 5225, 353, 29871, 29900, 29936, 13, 13, 29871, 849, 29871, 289, 7810, 29918, 15003, 29918, 2158, 29895, 703, 10157, 29918, 3757, 29894, 7645, 2355, 3942, 1273, 29881, 1966, 29876, 613, 3942, 416, 13, 1678, 565, 313, 2311, 5277, 29871, 29900, 29897, 29871, 13, 4706, 736, 29871, 29900, 29936, 13, 13, 1678, 565, 313, 11922, 1275, 23844, 29918, 1177, 2544, 2607, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 2214, 29894, 29918, 29879, 10030, 2804, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 10030, 29897, 426, 13, 4706, 2281, 10377, 29894, 29946, 29918, 1989, 29918, 29873, 10377, 29894, 29946, 29918, 1989, 353, 426, 29889, 5935, 353, 23107, 3400, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29879, 10030, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 2214, 29894, 29918, 29879, 10030, 29936, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29881, 10030, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 10030, 29936, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29880, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 1949, 29936, 13, 4706, 270, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 637, 29936, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 29881, 637, 353, 302, 517, 9499, 29898, 29881, 637, 416, 13, 4706, 10377, 29894, 29946, 29918, 1989, 29889, 21852, 1853, 353, 577, 384, 976, 1853, 29936, 13, 4706, 10377, 29894, 29946, 29918, 3757, 29894, 29918, 13193, 29889, 25629, 29898, 666, 29894, 29946, 29918, 1989, 29892, 2311, 416, 13, 13, 1678, 500, 29871, 13, 13, 1678, 565, 313, 11922, 1275, 23844, 29918, 1177, 2544, 29953, 29897, 426, 13, 4706, 2281, 10377, 29894, 29953, 29918, 1989, 29918, 29873, 10377, 29894, 29953, 29918, 1989, 353, 426, 29889, 5935, 353, 23107, 3400, 13, 4706, 4770, 16145, 262, 29918, 6954, 23141, 6243, 666, 29894, 29953, 29918, 1989, 29889, 29879, 10030, 29892, 13, 9651, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29894, 29953, 29918, 2214, 29894, 29918, 29879, 10030, 29889, 262, 29953, 29918, 29884, 29889, 29884, 29953, 29918, 10030, 29941, 29906, 29892, 13810, 29898, 666, 29894, 29953, 29918, 1989, 29889, 29879, 10030, 2483, 13, 4706, 4770, 16145, 262, 29918, 6954, 23141, 6243, 666, 29894, 29953, 29918, 1989, 29889, 29881, 10030, 29892, 13, 9651, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29894, 29953, 29918, 29881, 10030, 29889, 262, 29953, 29918, 29884, 29889, 29884, 29953, 29918, 10030, 29941, 29906, 29892, 13810, 29898, 666, 29894, 29953, 29918, 1989, 29889, 29881, 10030, 2483, 29871, 13, 13, 4706, 565, 313, 666, 29894, 29953, 29918, 1989, 29889, 29879, 10030, 1275, 10377, 29894, 29953, 29918, 1989, 29889, 29881, 10030, 29897, 13, 9651, 736, 29871, 29900, 29936, 13, 13, 4706, 10377, 29894, 29953, 29918, 1989, 29889, 29880, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 1949, 29936, 13, 4706, 270, 637, 353, 2071, 976, 1649, 808, 29918, 9435, 29889, 808, 29883, 29918, 29881, 637, 29936, 13, 4706, 10377, 29894, 29953, 29918, 1989, 29889, 29881, 637, 353, 302, 517, 9499, 29898, 29881, 637, 416, 13, 4706, 10377, 29894, 29953, 29918, 1989, 29889, 21852, 1853, 353, 577, 384, 976, 1853, 29936, 13, 4706, 10377, 29894, 29953, 29918, 3757, 29894, 29918, 13193, 29889, 25629, 29898, 666, 29894, 29953, 29918, 1989, 29892, 2159, 416, 13, 1678, 500, 13, 259, 849, 1683, 5768, 13, 13, 1678, 736, 29871, 29900, 29936, 13, 29913, 13, 13, 13, 15945, 29908, 13, 13, 29937, 775, 23697, 29879, 13, 361, 6389, 29889, 5935, 29901, 13, 1678, 289, 7810, 29918, 726, 353, 289, 7810, 29918, 726, 29889, 6506, 877, 3738, 29931, 4945, 742, 13, 4706, 525, 361, 313, 5935, 2804, 1273, 29879, 29897, 426, 736, 29871, 29900, 29936, 500, 29915, 1273, 6389, 29889, 5935, 29897, 13, 2870, 29901, 13, 1678, 289, 7810, 29918, 726, 353, 289, 7810, 29918, 726, 29889, 6506, 877, 3738, 29931, 4945, 742, 27255, 13, 361, 4744, 470, 6389, 29889, 774, 7810, 29901, 13, 1678, 1596, 29898, 29890, 7810, 29918, 726, 29897, 13, 1678, 565, 6389, 29889, 774, 7810, 29901, 13, 4706, 6876, 580, 13, 13, 29903, 1698, 7317, 2558, 353, 4257, 23583, 877, 29903, 1698, 7317, 742, 6024, 5935, 742, 525, 29880, 10030, 742, 525, 29880, 637, 742, 525, 29881, 10030, 742, 525, 29881, 637, 742, 525, 21852, 1853, 11287, 13, 13, 1753, 23107, 29918, 517, 29918, 2055, 29898, 5935, 1125, 13, 1678, 1018, 29901, 13, 4706, 844, 353, 1722, 11974, 15439, 22584, 29881, 29914, 2055, 29908, 1273, 23107, 29892, 376, 29878, 2564, 949, 2141, 29878, 17010, 580, 13, 4706, 736, 844, 13, 1678, 5174, 10663, 2392, 29901, 13, 4706, 736, 851, 29898, 5935, 29897, 13, 13, 1753, 903, 517, 29918, 21852, 1853, 29898, 1853, 1125, 396, 991, 597, 295, 861, 381, 29889, 4777, 1915, 29889, 510, 29914, 9389, 29914, 12333, 29914, 4993, 29914, 2856, 29914, 9389, 29914, 1212, 29889, 29882, 29937, 29931, 29953, 29900, 13, 1678, 736, 376, 29911, 6271, 29908, 565, 1134, 1360, 29896, 1683, 376, 29965, 11191, 29908, 565, 1134, 1360, 29906, 1683, 376, 16107, 29908, 13, 13, 1753, 679, 29918, 666, 29894, 29946, 29918, 7924, 29918, 1989, 29898, 29895, 1125, 13, 1678, 736, 1105, 384, 7317, 2558, 29898, 5935, 29922, 29895, 29889, 5935, 29892, 13, 462, 308, 301, 10030, 29922, 10157, 29918, 593, 459, 29898, 5098, 29918, 1177, 2544, 29892, 4870, 703, 29902, 613, 413, 29889, 29879, 10030, 8243, 13, 462, 308, 301, 637, 29922, 29895, 29889, 29880, 637, 29892, 13, 462, 308, 270, 10030, 29922, 10157, 29918, 593, 459, 29898, 5098, 29918, 1177, 2544, 29892, 4870, 703, 29902, 613, 413, 29889, 29881, 10030, 8243, 13, 462, 308, 270, 637, 29922, 29895, 29889, 29881, 637, 29892, 13, 462, 308, 577, 384, 1853, 29922, 29895, 29889, 21852, 1853, 29897, 13, 13, 1753, 679, 29918, 666, 29894, 29953, 29918, 7924, 29918, 1989, 29898, 29895, 1125, 13, 1678, 736, 1105, 384, 7317, 2558, 29898, 5935, 29922, 29895, 29889, 5935, 29892, 13, 462, 308, 301, 10030, 29922, 10157, 29918, 593, 459, 29898, 5098, 29918, 1177, 2544, 29953, 29892, 413, 29889, 29879, 10030, 511, 13, 462, 308, 301, 637, 29922, 29895, 29889, 29880, 637, 29892, 13, 462, 308, 270, 10030, 29922, 10157, 29918, 593, 459, 29898, 5098, 29918, 1177, 2544, 29953, 29892, 413, 29889, 29881, 10030, 511, 13, 462, 308, 270, 637, 29922, 29895, 29889, 29881, 637, 29892, 13, 462, 308, 577, 384, 1853, 29922, 29895, 29889, 21852, 1853, 29897, 13, 13, 1753, 679, 2585, 9965, 29898, 18038, 29888, 8977, 1125, 13, 1678, 903, 13082, 353, 11062, 359, 29889, 6915, 29898, 3069, 29922, 18038, 29888, 8977, 3366, 2585, 3069, 12436, 1404, 29922, 18038, 29888, 8977, 3366, 1792, 12436, 29871, 13, 9651, 4800, 29922, 18038, 29888, 8977, 3366, 5630, 12436, 2566, 29922, 18038, 29888, 8977, 3366, 9803, 20068, 13, 1678, 1596, 7373, 13082, 3032, 3069, 29897, 13, 1678, 736, 903, 13082, 13, 13, 1753, 18074, 2506, 687, 1082, 29898, 18127, 29892, 4576, 726, 1125, 13, 1678, 396, 19878, 746, 3564, 1059, 29892, 2992, 29889, 13, 1678, 1018, 29901, 13, 4706, 10677, 29889, 7978, 29898, 2850, 726, 29897, 13, 4706, 736, 5852, 13, 1678, 5174, 29901, 13, 4706, 736, 7700, 13, 13, 1753, 907, 271, 300, 1849, 29898, 18127, 1125, 13, 1678, 903, 666, 29894, 29946, 29918, 2040, 353, 18074, 2506, 687, 1082, 29898, 18127, 29892, 13, 4706, 9995, 3258, 1591, 565, 451, 4864, 10377, 29894, 29946, 29918, 2527, 10817, 313, 13, 9651, 21502, 305, 14334, 29892, 29871, 13, 9651, 23107, 938, 29892, 29871, 13, 9651, 844, 7581, 29898, 29946, 29900, 511, 29871, 13, 9651, 1134, 938, 29892, 29871, 13, 9651, 301, 10030, 7581, 29898, 29896, 29945, 511, 29871, 13, 9651, 301, 637, 938, 29892, 29871, 13, 9651, 364, 10030, 7581, 29898, 29896, 29945, 511, 29871, 13, 9651, 364, 637, 938, 29892, 29871, 13, 9651, 364, 29916, 29918, 10389, 4802, 524, 29892, 29871, 13, 9651, 25568, 29918, 10389, 4802, 524, 29892, 13, 9651, 7292, 29918, 2083, 2319, 524, 5513, 29908, 1159, 13, 1678, 903, 666, 29894, 29953, 29918, 2040, 353, 18074, 2506, 687, 1082, 29898, 18127, 29892, 13, 4706, 9995, 3258, 1591, 565, 451, 4864, 10377, 29894, 29953, 29918, 2527, 10817, 313, 13, 9651, 21502, 305, 14334, 29892, 29871, 13, 9651, 23107, 938, 29892, 29871, 13, 9651, 844, 7581, 29898, 29946, 29900, 511, 29871, 13, 9651, 1134, 938, 29892, 29871, 13, 9651, 301, 10030, 29953, 7581, 29898, 29941, 29929, 511, 29871, 13, 9651, 301, 637, 938, 29892, 29871, 13, 9651, 364, 10030, 29953, 7581, 29898, 29941, 29929, 511, 29871, 13, 9651, 364, 637, 938, 29892, 29871, 13, 9651, 364, 29916, 29918, 10389, 4802, 524, 29892, 29871, 13, 9651, 25568, 29918, 10389, 4802, 524, 29892, 13, 9651, 7292, 29918, 2083, 2319, 524, 5513, 29908, 1159, 13, 1678, 565, 903, 666, 29894, 29946, 29918, 2040, 322, 903, 666, 29894, 29953, 29918, 2040, 29901, 13, 4706, 736, 5852, 13, 1678, 1683, 29901, 13, 4706, 736, 7700, 13, 13, 13, 29937, 11905, 350, 13691, 13, 29890, 353, 350, 13691, 29898, 726, 29922, 29890, 7810, 29918, 726, 29897, 13, 15945, 29908, 13, 361, 289, 29889, 657, 29918, 29895, 771, 915, 29918, 12171, 29898, 29890, 29908, 1212, 361, 29918, 13556, 573, 29918, 808, 29890, 29908, 1125, 13, 1678, 289, 29889, 14930, 29918, 29895, 771, 915, 29898, 3696, 543, 1212, 361, 29918, 13556, 573, 29918, 808, 29890, 613, 7876, 29918, 978, 543, 15003, 29918, 1212, 361, 29918, 13556, 573, 29918, 808, 29890, 1159, 13, 2870, 29901, 13, 1678, 1596, 703, 11432, 29901, 7787, 361, 29918, 13556, 573, 29918, 808, 29890, 580, 8466, 740, 451, 1476, 470, 9637, 519, 29889, 376, 13, 4706, 376, 21648, 261, 8466, 6910, 451, 6969, 23157, 13, 1678, 6876, 580, 13, 15945, 29908, 13, 666, 29894, 29946, 29918, 6717, 29918, 13193, 353, 289, 3366, 666, 29894, 29946, 29918, 6717, 29918, 13193, 3108, 13, 666, 29894, 29946, 29918, 3757, 29894, 29918, 13193, 353, 289, 3366, 666, 29894, 29946, 29918, 3757, 29894, 29918, 13193, 3108, 13, 666, 29894, 29953, 29918, 6717, 29918, 13193, 353, 289, 3366, 666, 29894, 29953, 29918, 6717, 29918, 13193, 3108, 13, 666, 29894, 29953, 29918, 3757, 29894, 29918, 13193, 353, 289, 3366, 666, 29894, 29953, 29918, 3757, 29894, 29918, 13193, 3108, 13, 13, 29937, 18696, 2585, 565, 1970, 29918, 1445, 338, 731, 13, 361, 1970, 29918, 8977, 29901, 13, 1678, 1962, 29918, 2585, 353, 5852, 13, 2870, 29901, 13, 1678, 1962, 29918, 2585, 353, 8824, 13, 13, 361, 1962, 29918, 2585, 29901, 13, 1678, 11009, 353, 679, 2585, 9965, 29898, 5527, 29918, 8977, 29897, 13, 1678, 5939, 29878, 353, 11009, 29889, 18127, 580, 13, 1678, 474, 29918, 276, 6915, 353, 29871, 29900, 13, 1678, 565, 451, 907, 271, 300, 1849, 29898, 2395, 29878, 1125, 13, 4706, 12020, 29898, 2451, 703, 16804, 2743, 746, 1653, 6131, 1213, 876, 13, 13, 259, 13, 2158, 877, 29911, 945, 292, 856, 10604, 1432, 1273, 29879, 409, 2395, 29889, 14309, 315, 11742, 29899, 29907, 304, 1095, 29915, 1273, 6389, 29889, 19207, 29897, 13, 2158, 877, 28916, 287, 848, 674, 1881, 304, 18696, 2585, 856, 1495, 13, 13, 29937, 1962, 13, 735, 11407, 353, 7700, 13, 8000, 451, 6876, 292, 29901, 13, 1678, 1018, 29901, 13, 4706, 8709, 29898, 5085, 29889, 19207, 29897, 13, 1678, 5174, 7670, 3377, 4074, 6685, 29901, 13, 4706, 6876, 292, 353, 5852, 13, 4706, 565, 1962, 29918, 2585, 29901, 13, 9651, 5939, 29878, 29889, 5358, 580, 13, 9651, 11009, 29889, 5358, 580, 13, 13, 1678, 396, 10092, 4833, 6915, 29889, 6773, 746, 3564, 1059, 29892, 2992, 29889, 13, 268, 13, 1678, 565, 1962, 29918, 2585, 322, 474, 29918, 276, 6915, 6736, 29871, 29896, 29900, 29900, 29901, 13, 4706, 474, 29918, 276, 6915, 353, 29871, 29900, 13, 4706, 1018, 29901, 13, 9651, 5939, 29878, 29889, 5358, 580, 13, 9651, 11009, 29889, 5358, 580, 13, 9651, 11009, 353, 679, 2585, 9965, 29898, 5527, 29918, 8977, 29897, 13, 9651, 5939, 29878, 353, 11009, 29889, 18127, 580, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 1678, 396, 5641, 29894, 29946, 29901, 2048, 9657, 310, 599, 3595, 6611, 13, 1678, 10377, 29894, 29946, 29918, 20678, 649, 353, 2322, 8977, 29898, 2892, 29901, 518, 29900, 29892, 29871, 29900, 2314, 13, 1678, 363, 413, 29892, 325, 297, 10377, 29894, 29946, 29918, 6717, 29918, 13193, 29889, 7076, 7295, 13, 4706, 1820, 353, 679, 29918, 666, 29894, 29946, 29918, 7924, 29918, 1989, 29898, 29895, 29897, 13, 4706, 10377, 29894, 29946, 29918, 20678, 649, 29961, 1989, 3816, 29900, 29962, 353, 325, 29889, 1767, 13, 1678, 10377, 29894, 29946, 29918, 6717, 29918, 13193, 29889, 8551, 580, 13, 13, 1678, 363, 413, 29892, 325, 297, 10377, 29894, 29946, 29918, 3757, 29894, 29918, 13193, 29889, 7076, 7295, 13, 4706, 1820, 353, 679, 29918, 666, 29894, 29946, 29918, 7924, 29918, 1989, 29898, 29895, 29897, 13, 4706, 10377, 29894, 29946, 29918, 20678, 649, 29961, 1989, 3816, 29896, 29962, 353, 325, 29889, 1767, 13, 1678, 10377, 29894, 29946, 29918, 3757, 29894, 29918, 13193, 29889, 8551, 580, 13, 13, 1678, 565, 451, 1962, 29918, 2585, 322, 10377, 29894, 29946, 29918, 20678, 649, 29901, 13, 4706, 1596, 11702, 29899, 29953, 29879, 1273, 29899, 29896, 29906, 29879, 1273, 29899, 29953, 29879, 1273, 29899, 29906, 29896, 29879, 1273, 29899, 29906, 29896, 29879, 1273, 29929, 29879, 1273, 29929, 29879, 29908, 1273, 4852, 29925, 1367, 613, 376, 3217, 7428, 613, 376, 11116, 613, 13, 9651, 376, 29931, 3035, 8353, 613, 376, 29934, 3035, 8353, 613, 376, 29934, 29990, 29918, 12901, 613, 376, 28627, 29918, 12901, 5783, 13, 13, 1678, 396, 1962, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 363, 413, 29892, 313, 6717, 29918, 13193, 29892, 1162, 29894, 29918, 13193, 29897, 297, 313, 666, 29894, 29946, 29918, 20678, 649, 29889, 7076, 580, 13, 18884, 565, 6389, 29889, 2798, 1360, 29899, 29896, 1683, 12705, 29898, 666, 29894, 29946, 29918, 20678, 649, 29889, 7076, 3285, 13, 462, 462, 795, 1820, 29922, 2892, 10908, 29901, 2533, 29898, 27049, 29961, 29896, 11724, 13, 462, 462, 795, 11837, 29922, 5574, 22164, 13, 4706, 565, 6389, 29889, 2798, 1405, 29871, 29900, 322, 474, 6736, 6389, 29889, 2798, 29901, 13, 9651, 2867, 13, 4706, 565, 1962, 29918, 2585, 29901, 13, 9651, 18074, 2506, 687, 1082, 29898, 2395, 29878, 29892, 9995, 7851, 964, 29871, 13, 18884, 10377, 29894, 29946, 29918, 2527, 10817, 313, 1022, 2878, 29892, 23107, 29892, 844, 29892, 1134, 29892, 301, 10030, 29892, 301, 637, 29892, 364, 10030, 29892, 364, 637, 29892, 364, 29916, 29918, 10389, 29892, 25568, 29918, 10389, 29892, 7292, 29918, 2083, 29897, 13, 18884, 1819, 6702, 29995, 29879, 742, 1273, 29881, 29892, 14210, 29879, 742, 1273, 29881, 29892, 14210, 29879, 742, 1273, 29881, 29892, 14210, 29879, 742, 1273, 29881, 29892, 1273, 29881, 29892, 1273, 29881, 29892, 1273, 29881, 5513, 15945, 13, 18884, 1273, 313, 12673, 29889, 12673, 29889, 3707, 3285, 413, 29889, 5935, 29892, 23107, 29918, 517, 29918, 2055, 29898, 29895, 29889, 5935, 511, 413, 29889, 21852, 1853, 29892, 13, 462, 1678, 413, 29889, 29880, 10030, 29892, 413, 29889, 29880, 637, 29892, 413, 29889, 29881, 10030, 29892, 413, 29889, 29881, 637, 29892, 1162, 29894, 29918, 13193, 29892, 3638, 29918, 13193, 29892, 6389, 29889, 19207, 29897, 1723, 13, 4706, 1683, 29901, 13, 9651, 1596, 11702, 29899, 29953, 29881, 1273, 29899, 29896, 29906, 29889, 29896, 29906, 29879, 1273, 29899, 29953, 29889, 29953, 29879, 1273, 29899, 29906, 29896, 29879, 1273, 29899, 29906, 29896, 29879, 1273, 29929, 29881, 1273, 29929, 29881, 29908, 1273, 313, 29895, 29889, 5935, 29892, 13, 18884, 23107, 29918, 517, 29918, 2055, 29898, 29895, 29889, 5935, 511, 903, 517, 29918, 21852, 1853, 29898, 29895, 29889, 21852, 1853, 511, 13, 18884, 413, 29889, 29880, 10030, 718, 376, 6160, 718, 851, 29898, 29895, 29889, 29880, 637, 511, 13, 18884, 413, 29889, 29881, 10030, 718, 376, 6160, 718, 851, 29898, 29895, 29889, 29881, 637, 511, 13, 18884, 1162, 29894, 29918, 13193, 29892, 3638, 29918, 13193, 876, 13, 4706, 474, 4619, 29871, 29896, 13, 13, 1678, 396, 5641, 29894, 29953, 29901, 2048, 9657, 310, 599, 3595, 6611, 13, 1678, 10377, 29894, 29953, 29918, 20678, 649, 353, 2322, 8977, 29898, 2892, 29901, 518, 29900, 29892, 29871, 29900, 2314, 13, 1678, 363, 413, 29892, 325, 297, 10377, 29894, 29953, 29918, 6717, 29918, 13193, 29889, 7076, 7295, 13, 4706, 1820, 353, 679, 29918, 666, 29894, 29953, 29918, 7924, 29918, 1989, 29898, 29895, 29897, 13, 4706, 10377, 29894, 29953, 29918, 20678, 649, 29961, 1989, 3816, 29900, 29962, 353, 325, 29889, 1767, 13, 1678, 10377, 29894, 29953, 29918, 6717, 29918, 13193, 29889, 8551, 580, 13, 13, 1678, 363, 413, 29892, 325, 297, 10377, 29894, 29953, 29918, 3757, 29894, 29918, 13193, 29889, 7076, 7295, 13, 4706, 1820, 353, 679, 29918, 666, 29894, 29953, 29918, 7924, 29918, 1989, 29898, 29895, 29897, 13, 4706, 10377, 29894, 29953, 29918, 20678, 649, 29961, 1989, 3816, 29896, 29962, 353, 325, 29889, 1767, 13, 1678, 10377, 29894, 29953, 29918, 3757, 29894, 29918, 13193, 29889, 8551, 580, 13, 13, 1678, 565, 10377, 29894, 29953, 29918, 20678, 649, 29901, 13, 4706, 396, 901, 1135, 29871, 29947, 29900, 22524, 29892, 14610, 368, 29889, 13, 4706, 1596, 14182, 29876, 29995, 29899, 29953, 29879, 1273, 29899, 29896, 29906, 29879, 1273, 29899, 29953, 29879, 1273, 29899, 29941, 29906, 29879, 1273, 29899, 29941, 29906, 29879, 1273, 29929, 29879, 1273, 29929, 29879, 29908, 1273, 4852, 29925, 1367, 613, 376, 3217, 7428, 613, 376, 11116, 613, 13, 9651, 376, 29931, 3035, 8353, 29953, 613, 376, 29934, 3035, 8353, 29953, 613, 376, 29934, 29990, 29918, 12901, 613, 376, 28627, 29918, 12901, 5783, 13, 13, 1678, 396, 1962, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 363, 413, 29892, 313, 6717, 29918, 13193, 29892, 1162, 29894, 29918, 13193, 29897, 297, 313, 666, 29894, 29953, 29918, 20678, 649, 29889, 7076, 580, 13, 18884, 565, 6389, 29889, 2798, 1360, 29899, 29896, 1683, 12705, 29898, 666, 29894, 29953, 29918, 20678, 649, 29889, 7076, 3285, 13, 462, 462, 795, 1820, 29922, 2892, 10908, 29901, 2533, 29898, 27049, 29961, 29896, 11724, 13, 462, 462, 795, 11837, 29922, 5574, 22164, 13, 4706, 565, 6389, 29889, 2798, 1405, 29871, 29900, 322, 474, 6736, 6389, 29889, 2798, 29901, 13, 9651, 2867, 13, 4706, 565, 1962, 29918, 2585, 29901, 13, 9651, 18074, 2506, 687, 1082, 29898, 2395, 29878, 29892, 9995, 7851, 964, 29871, 13, 18884, 10377, 29894, 29953, 29918, 2527, 10817, 313, 1022, 2878, 29892, 23107, 29892, 844, 29892, 1134, 29892, 301, 10030, 29953, 29892, 301, 637, 29892, 364, 10030, 29953, 29892, 364, 637, 29892, 364, 29916, 29918, 10389, 29892, 25568, 29918, 10389, 29892, 7292, 29918, 2083, 29897, 13, 18884, 1819, 6702, 29995, 29879, 742, 1273, 29881, 29892, 14210, 29879, 742, 1273, 29881, 29892, 14210, 29879, 742, 1273, 29881, 29892, 14210, 29879, 742, 1273, 29881, 29892, 1273, 29881, 29892, 1273, 29881, 29892, 1273, 29881, 5513, 15945, 13, 18884, 1273, 313, 12673, 29889, 12673, 29889, 3707, 3285, 413, 29889, 5935, 29892, 23107, 29918, 517, 29918, 2055, 29898, 29895, 29889, 5935, 511, 413, 29889, 21852, 1853, 29892, 13, 462, 1678, 413, 29889, 29880, 10030, 29892, 413, 29889, 29880, 637, 29892, 413, 29889, 29881, 10030, 29892, 413, 29889, 29881, 637, 29892, 1162, 29894, 29918, 13193, 29892, 3638, 29918, 13193, 29892, 6389, 29889, 19207, 29897, 1723, 13, 4706, 1683, 29901, 13, 9651, 1596, 11702, 29899, 29953, 29881, 1273, 29899, 29896, 29906, 29889, 29896, 29906, 29879, 1273, 29899, 29953, 29889, 29953, 29879, 1273, 29899, 29941, 29906, 29879, 1273, 29899, 29941, 29906, 29879, 1273, 29929, 29881, 1273, 29929, 29881, 29908, 1273, 313, 29895, 29889, 5935, 29892, 13, 18884, 23107, 29918, 517, 29918, 2055, 29898, 29895, 29889, 5935, 511, 903, 517, 29918, 21852, 1853, 29898, 29895, 29889, 21852, 1853, 511, 13, 18884, 413, 29889, 29880, 10030, 718, 376, 6160, 718, 851, 29898, 29895, 29889, 29880, 637, 511, 13, 18884, 413, 29889, 29881, 10030, 718, 376, 6160, 718, 851, 29898, 29895, 29889, 29881, 637, 511, 13, 18884, 1162, 29894, 29918, 13193, 29892, 3638, 29918, 13193, 876, 13, 4706, 474, 4619, 29871, 29896, 13, 1678, 565, 1962, 29918, 2585, 29901, 13, 4706, 474, 29918, 276, 6915, 4619, 29871, 29896, 13, 2 ]
train.py
gakkispy/DD-Net-Pytorch
31
183520
#! /usr/bin/env python #! coding:utf-8 from pathlib import Path import matplotlib.pyplot as plt from torch import log from tqdm import tqdm import torch import torch.nn as nn import argparse import torch.optim as optim from torch.optim.lr_scheduler import ReduceLROnPlateau from sklearn.metrics import confusion_matrix from dataloader.jhmdb_loader import load_jhmdb_data, Jdata_generator, JConfig from dataloader.shrec_loader import load_shrec_data, Sdata_generator, SConfig from models.DDNet_Original import DDNet_Original as DDNet from utils import makedir import sys import time import numpy as np import logging sys.path.insert(0, './pytorch-summary/torchsummary/') from torchsummary import summary # noqa savedir = Path('experiments') / Path(str(int(time.time()))) makedir(savedir) logging.basicConfig(filename=savedir/'train.log', level=logging.INFO) history = { "train_loss": [], "test_loss": [], "test_acc": [] } def train(args, model, device, train_loader, optimizer, epoch, criterion): model.train() train_loss = 0 for batch_idx, (data1, data2, target) in enumerate(tqdm(train_loader)): M, P, target = data1.to(device), data2.to(device), target.to(device) optimizer.zero_grad() output = model(M, P) loss = criterion(output, target) train_loss += loss.detach().item() loss.backward() optimizer.step() if batch_idx % args.log_interval == 0: msg = ('Train Epoch: {} [{}/{} ({:.0f}%)]\tLoss: {:.6f}'.format( epoch, batch_idx * len(data1), len(train_loader.dataset), 100. * batch_idx / len(train_loader), loss.item())) print(msg) logging.info(msg) if args.dry_run: break history['train_loss'].append(train_loss) return train_loss def test(model, device, test_loader): model.eval() test_loss = 0 correct = 0 criterion = nn.CrossEntropyLoss(reduction='sum') with torch.no_grad(): for _, (data1, data2, target) in enumerate(tqdm(test_loader)): M, P, target = data1.to(device), data2.to(device), target.to(device) output = model(M, P) # sum up batch loss test_loss += criterion(output, target).item() # get the index of the max log-probability pred = output.argmax(dim=1, keepdim=True) # output shape (B,Class) # target_shape (B) # pred shape (B,1) correct += pred.eq(target.view_as(pred)).sum().item() test_loss /= len(test_loader.dataset) history['test_loss'].append(test_loss) history['test_acc'].append(correct / len(test_loader.dataset)) msg = ('Test set: Average loss: {:.4f}, Accuracy: {}/{} ({:.2f}%)\n'.format( test_loss, correct, len(test_loader.dataset), 100. * correct / len(test_loader.dataset))) print(msg) logging.info(msg) def main(): # Training settings parser = argparse.ArgumentParser() parser.add_argument('--batch-size', type=int, default=64, metavar='N', help='input batch size for training (default: 64)') parser.add_argument('--test-batch-size', type=int, default=1000, metavar='N', help='input batch size for testing (default: 1000)') parser.add_argument('--epochs', type=int, default=199, metavar='N', help='number of epochs to train (default: 199)') parser.add_argument('--lr', type=float, default=0.01, metavar='LR', help='learning rate (default: 0.01)') parser.add_argument('--gamma', type=float, default=0.5, metavar='M', help='Learning rate step gamma (default: 0.5)') parser.add_argument('--no-cuda', action='store_true', default=False, help='disables CUDA training') parser.add_argument('--dry-run', action='store_true', default=False, help='quickly check a single pass') parser.add_argument('--log-interval', type=int, default=2, metavar='N', help='how many batches to wait before logging training status') parser.add_argument('--save-model', action='store_true', default=False, help='For Saving the current Model') parser.add_argument('--dataset', type=int, required=True, metavar='N', help='0 for JHMDB, 1 for SHREC coarse, 2 for SHREC fine, others is undefined') parser.add_argument('--model', action='store_true', default=False, help='For Saving the current Model') parser.add_argument('--calc_time', action='store_true', default=False, help='calc calc time per sample') args = parser.parse_args() logging.info(args) use_cuda = not args.no_cuda and torch.cuda.is_available() device = torch.device("cuda" if use_cuda else "cpu") kwargs = {'batch_size': args.batch_size} if use_cuda: kwargs.update({'num_workers': 1, 'pin_memory': True, 'shuffle': True},) # alias Config = None data_generator = None load_data = None clc_num = 0 if args.dataset == 0: Config = JConfig() data_generator = Jdata_generator load_data = load_jhmdb_data clc_num = Config.clc_num elif args.dataset == 1: Config = SConfig() load_data = load_shrec_data clc_num = Config.class_coarse_num data_generator = Sdata_generator('coarse_label') elif args.dataset == 2: Config = SConfig() clc_num = Config.class_fine_num load_data = load_shrec_data data_generator = Sdata_generator('fine_label') else: print("Unsupported dataset!") sys.exit(1) C = Config Train, Test, le = load_data() X_0, X_1, Y = data_generator(Train, C, le) X_0 = torch.from_numpy(X_0).type('torch.FloatTensor') X_1 = torch.from_numpy(X_1).type('torch.FloatTensor') Y = torch.from_numpy(Y).type('torch.LongTensor') X_0_t, X_1_t, Y_t = data_generator(Test, C, le) X_0_t = torch.from_numpy(X_0_t).type('torch.FloatTensor') X_1_t = torch.from_numpy(X_1_t).type('torch.FloatTensor') Y_t = torch.from_numpy(Y_t).type('torch.LongTensor') trainset = torch.utils.data.TensorDataset(X_0, X_1, Y) train_loader = torch.utils.data.DataLoader(trainset, **kwargs) testset = torch.utils.data.TensorDataset(X_0_t, X_1_t, Y_t) test_loader = torch.utils.data.DataLoader( testset, batch_size=args.test_batch_size) Net = DDNet(C.frame_l, C.joint_n, C.joint_d, C.feat_d, C.filters, clc_num) model = Net.to(device) summary(model, [(C.frame_l, C.feat_d), (C.frame_l, C.joint_n, C.joint_d)]) optimizer = optim.Adam(model.parameters(), lr=args.lr, betas=(0.9, 0.999)) criterion = nn.CrossEntropyLoss() scheduler = ReduceLROnPlateau( optimizer, factor=args.gamma, patience=5, cooldown=0.5, min_lr=5e-6, verbose=True) for epoch in range(1, args.epochs + 1): train_loss = train(args, model, device, train_loader, optimizer, epoch, criterion) test(model, device, test_loader) scheduler.step(train_loss) fig, (ax1, ax2, ax3) = plt.subplots(nrows=3, ncols=1) ax1.plot(history['train_loss']) ax1.plot(history['test_loss']) ax1.legend(['Train', 'Test'], loc='upper left') ax1.set_xlabel('Epoch') ax1.set_title('Loss') ax2.set_title('Model accuracy') ax2.set_ylabel('Accuracy') ax2.set_xlabel('Epoch') ax2.plot(history['test_acc']) xmax = np.argmax(history['test_acc']) ymax = np.max(history['test_acc']) text = "x={}, y={:.3f}".format(xmax, ymax) ax2.annotate(text, xy=(xmax, ymax)) ax3.set_title('Confusion matrix') model.eval() with torch.no_grad(): Y_pred = model(X_0_t.to(device), X_1_t.to( device)).cpu().numpy() Y_test = Y_t.numpy() cnf_matrix = confusion_matrix( Y_test, np.argmax(Y_pred, axis=1)) ax3.imshow(cnf_matrix) fig.tight_layout() fig.savefig(str(savedir / "perf.png")) if args.save_model: torch.save(model.state_dict(), str(savedir/"model.pt")) if args.calc_time: device = ['cpu', 'cuda'] # calc time for d in device: tmp_X_0_t = X_0_t.to(d) tmp_X_1_t = X_1_t.to(d) model = model.to(d) # warm up _ = model(tmp_X_0_t, tmp_X_1_t) tmp_X_0_t = tmp_X_0_t.unsqueeze(1) tmp_X_1_t = tmp_X_1_t.unsqueeze(1) start = time.perf_counter_ns() for i in range(tmp_X_0_t.shape[0]): _ = model(tmp_X_0_t[i, :, :, :], tmp_X_1_t[i, :, :, :]) end = time.perf_counter_ns() msg = ("total {}ns, {:.2f}ns per one on {}".format((end - start), ((end - start) / (X_0_t.shape[0])), d)) print(msg) logging.info(msg) if __name__ == '__main__': main()
[ 1, 396, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 29991, 14137, 29901, 9420, 29899, 29947, 13, 3166, 2224, 1982, 1053, 10802, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 3166, 4842, 305, 1053, 1480, 13, 3166, 260, 29939, 18933, 1053, 260, 29939, 18933, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 1852, 5510, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 3166, 4842, 305, 29889, 20640, 29889, 29212, 29918, 816, 14952, 1053, 4367, 24551, 29931, 1672, 29876, 3247, 403, 585, 13, 3166, 2071, 19668, 29889, 2527, 10817, 1053, 14679, 29918, 5344, 13, 13, 3166, 1418, 7003, 1664, 29889, 29926, 7184, 2585, 29918, 12657, 1053, 2254, 29918, 29926, 7184, 2585, 29918, 1272, 29892, 435, 1272, 29918, 27959, 29892, 435, 3991, 13, 3166, 1418, 7003, 1664, 29889, 845, 3757, 29918, 12657, 1053, 2254, 29918, 845, 3757, 29918, 1272, 29892, 317, 1272, 29918, 27959, 29892, 317, 3991, 13, 3166, 4733, 29889, 7858, 6779, 29918, 26036, 1053, 360, 29928, 6779, 29918, 26036, 408, 360, 29928, 6779, 13, 3166, 3667, 29879, 1053, 2136, 287, 381, 13, 5215, 10876, 13, 5215, 931, 13, 5215, 12655, 408, 7442, 13, 5215, 12183, 13, 9675, 29889, 2084, 29889, 7851, 29898, 29900, 29892, 19283, 2272, 7345, 305, 29899, 7727, 29914, 7345, 305, 7727, 29914, 1495, 13, 3166, 4842, 305, 7727, 1053, 15837, 29871, 396, 694, 25621, 13, 13, 17314, 381, 353, 10802, 877, 735, 546, 7862, 1495, 847, 10802, 29898, 710, 29898, 524, 29898, 2230, 29889, 2230, 580, 4961, 13, 29885, 12535, 381, 29898, 17314, 381, 29897, 13, 21027, 29889, 16121, 3991, 29898, 9507, 29922, 17314, 381, 22208, 14968, 29889, 1188, 742, 3233, 29922, 21027, 29889, 11690, 29897, 13, 18434, 353, 426, 13, 1678, 376, 14968, 29918, 6758, 1115, 19997, 13, 1678, 376, 1688, 29918, 6758, 1115, 19997, 13, 1678, 376, 1688, 29918, 5753, 1115, 5159, 13, 29913, 13, 13, 13, 1753, 7945, 29898, 5085, 29892, 1904, 29892, 4742, 29892, 7945, 29918, 12657, 29892, 5994, 3950, 29892, 21502, 305, 29892, 28770, 291, 1125, 13, 1678, 1904, 29889, 14968, 580, 13, 1678, 7945, 29918, 6758, 353, 29871, 29900, 13, 1678, 363, 9853, 29918, 13140, 29892, 313, 1272, 29896, 29892, 848, 29906, 29892, 3646, 29897, 297, 26985, 29898, 29873, 29939, 18933, 29898, 14968, 29918, 12657, 22164, 13, 4706, 341, 29892, 349, 29892, 3646, 353, 848, 29896, 29889, 517, 29898, 10141, 511, 848, 29906, 29889, 517, 29898, 10141, 511, 3646, 29889, 517, 29898, 10141, 29897, 13, 4706, 5994, 3950, 29889, 9171, 29918, 5105, 580, 13, 4706, 1962, 353, 1904, 29898, 29924, 29892, 349, 29897, 13, 4706, 6410, 353, 28770, 291, 29898, 4905, 29892, 3646, 29897, 13, 4706, 7945, 29918, 6758, 4619, 6410, 29889, 4801, 496, 2141, 667, 580, 13, 4706, 6410, 29889, 1627, 1328, 580, 13, 4706, 5994, 3950, 29889, 10568, 580, 13, 4706, 565, 9853, 29918, 13140, 1273, 6389, 29889, 1188, 29918, 19207, 1275, 29871, 29900, 29901, 13, 9651, 10191, 353, 6702, 5323, 262, 382, 1129, 305, 29901, 6571, 15974, 6822, 8875, 21313, 29901, 29889, 29900, 29888, 10560, 4638, 29905, 29873, 29931, 2209, 29901, 12365, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 13, 18884, 21502, 305, 29892, 9853, 29918, 13140, 334, 7431, 29898, 1272, 29896, 511, 7431, 29898, 14968, 29918, 12657, 29889, 24713, 511, 13, 462, 29896, 29900, 29900, 29889, 334, 9853, 29918, 13140, 847, 7431, 29898, 14968, 29918, 12657, 511, 6410, 29889, 667, 22130, 13, 9651, 1596, 29898, 7645, 29897, 13, 9651, 12183, 29889, 3888, 29898, 7645, 29897, 13, 9651, 565, 6389, 29889, 29881, 719, 29918, 3389, 29901, 13, 18884, 2867, 13, 1678, 4955, 1839, 14968, 29918, 6758, 13359, 4397, 29898, 14968, 29918, 6758, 29897, 13, 1678, 736, 7945, 29918, 6758, 13, 13, 13, 1753, 1243, 29898, 4299, 29892, 4742, 29892, 1243, 29918, 12657, 1125, 13, 1678, 1904, 29889, 14513, 580, 13, 1678, 1243, 29918, 6758, 353, 29871, 29900, 13, 1678, 1959, 353, 29871, 29900, 13, 1678, 28770, 291, 353, 302, 29876, 29889, 29907, 2124, 5292, 14441, 29931, 2209, 29898, 9313, 428, 2433, 2083, 1495, 13, 1678, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 4706, 363, 17117, 313, 1272, 29896, 29892, 848, 29906, 29892, 3646, 29897, 297, 26985, 29898, 29873, 29939, 18933, 29898, 1688, 29918, 12657, 22164, 13, 9651, 341, 29892, 349, 29892, 3646, 353, 848, 29896, 29889, 517, 29898, 10141, 511, 848, 29906, 29889, 517, 29898, 10141, 511, 3646, 29889, 517, 29898, 10141, 29897, 13, 9651, 1962, 353, 1904, 29898, 29924, 29892, 349, 29897, 13, 9651, 396, 2533, 701, 9853, 6410, 13, 9651, 1243, 29918, 6758, 4619, 28770, 291, 29898, 4905, 29892, 3646, 467, 667, 580, 13, 9651, 396, 679, 278, 2380, 310, 278, 4236, 1480, 29899, 22795, 3097, 13, 9651, 4450, 353, 1962, 29889, 1191, 3317, 29898, 6229, 29922, 29896, 29892, 3013, 6229, 29922, 5574, 29897, 13, 9651, 396, 1962, 8267, 313, 29933, 29892, 2385, 29897, 13, 9651, 396, 3646, 29918, 12181, 313, 29933, 29897, 13, 9651, 396, 4450, 8267, 313, 29933, 29892, 29896, 29897, 13, 9651, 1959, 4619, 4450, 29889, 1837, 29898, 5182, 29889, 1493, 29918, 294, 29898, 11965, 8106, 2083, 2141, 667, 580, 13, 13, 1678, 1243, 29918, 6758, 847, 29922, 7431, 29898, 1688, 29918, 12657, 29889, 24713, 29897, 13, 1678, 4955, 1839, 1688, 29918, 6758, 13359, 4397, 29898, 1688, 29918, 6758, 29897, 13, 1678, 4955, 1839, 1688, 29918, 5753, 13359, 4397, 29898, 15728, 847, 7431, 29898, 1688, 29918, 12657, 29889, 24713, 876, 13, 1678, 10191, 353, 6702, 3057, 731, 29901, 319, 19698, 6410, 29901, 12365, 29889, 29946, 29888, 1118, 4831, 332, 4135, 29901, 6571, 29914, 8875, 21313, 29901, 29889, 29906, 29888, 10560, 2144, 29876, 4286, 4830, 29898, 13, 4706, 1243, 29918, 6758, 29892, 1959, 29892, 7431, 29898, 1688, 29918, 12657, 29889, 24713, 511, 13, 308, 29896, 29900, 29900, 29889, 334, 1959, 847, 7431, 29898, 1688, 29918, 12657, 29889, 24713, 4961, 13, 1678, 1596, 29898, 7645, 29897, 13, 1678, 12183, 29889, 3888, 29898, 7645, 29897, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 396, 26101, 6055, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 16175, 29899, 2311, 742, 1134, 29922, 524, 29892, 2322, 29922, 29953, 29946, 29892, 1539, 485, 279, 2433, 29940, 742, 13, 462, 4706, 1371, 2433, 2080, 9853, 2159, 363, 6694, 313, 4381, 29901, 29871, 29953, 29946, 29897, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1688, 29899, 16175, 29899, 2311, 742, 1134, 29922, 524, 29892, 2322, 29922, 29896, 29900, 29900, 29900, 29892, 1539, 485, 279, 2433, 29940, 742, 13, 462, 4706, 1371, 2433, 2080, 9853, 2159, 363, 6724, 313, 4381, 29901, 29871, 29896, 29900, 29900, 29900, 29897, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1022, 2878, 29879, 742, 1134, 29922, 524, 29892, 2322, 29922, 29896, 29929, 29929, 29892, 1539, 485, 279, 2433, 29940, 742, 13, 462, 4706, 1371, 2433, 4537, 310, 21502, 12168, 304, 7945, 313, 4381, 29901, 29871, 29896, 29929, 29929, 29897, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29212, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29889, 29900, 29896, 29892, 1539, 485, 279, 2433, 29519, 742, 13, 462, 4706, 1371, 2433, 21891, 6554, 313, 4381, 29901, 29871, 29900, 29889, 29900, 29896, 29897, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 4283, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29889, 29945, 29892, 1539, 485, 279, 2433, 29924, 742, 13, 462, 4706, 1371, 2433, 29931, 799, 1076, 6554, 4331, 330, 2735, 313, 4381, 29901, 29871, 29900, 29889, 29945, 29897, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1217, 29899, 29883, 6191, 742, 3158, 2433, 8899, 29918, 3009, 742, 2322, 29922, 8824, 29892, 13, 462, 4706, 1371, 2433, 2218, 1849, 315, 29965, 7698, 6694, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29881, 719, 29899, 3389, 742, 3158, 2433, 8899, 29918, 3009, 742, 2322, 29922, 8824, 29892, 13, 462, 4706, 1371, 2433, 24561, 368, 1423, 263, 2323, 1209, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1188, 29899, 19207, 742, 1134, 29922, 524, 29892, 2322, 29922, 29906, 29892, 1539, 485, 279, 2433, 29940, 742, 13, 462, 4706, 1371, 2433, 3525, 1784, 9853, 267, 304, 4480, 1434, 12183, 6694, 4660, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 7620, 29899, 4299, 742, 3158, 2433, 8899, 29918, 3009, 742, 2322, 29922, 8824, 29892, 13, 462, 4706, 1371, 2433, 2831, 317, 5555, 278, 1857, 8125, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 24713, 742, 1134, 29922, 524, 29892, 3734, 29922, 5574, 29892, 1539, 485, 279, 2433, 29940, 742, 13, 462, 4706, 1371, 2433, 29900, 363, 435, 29950, 29924, 4051, 29892, 29871, 29896, 363, 24972, 1525, 29907, 1302, 7989, 29892, 29871, 29906, 363, 24972, 1525, 29907, 2691, 29892, 4045, 338, 7580, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 4299, 742, 3158, 2433, 8899, 29918, 3009, 742, 2322, 29922, 8824, 29892, 13, 462, 4706, 1371, 2433, 2831, 317, 5555, 278, 1857, 8125, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 28667, 29918, 2230, 742, 3158, 2433, 8899, 29918, 3009, 742, 2322, 29922, 8824, 29892, 13, 462, 4706, 1371, 2433, 28667, 22235, 931, 639, 4559, 1495, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 1678, 12183, 29889, 3888, 29898, 5085, 29897, 13, 1678, 671, 29918, 29883, 6191, 353, 451, 6389, 29889, 1217, 29918, 29883, 6191, 322, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 580, 13, 13, 1678, 4742, 353, 4842, 305, 29889, 10141, 703, 29883, 6191, 29908, 565, 671, 29918, 29883, 6191, 1683, 376, 21970, 1159, 13, 13, 1678, 9049, 5085, 353, 11117, 16175, 29918, 2311, 2396, 6389, 29889, 16175, 29918, 2311, 29913, 13, 1678, 565, 671, 29918, 29883, 6191, 29901, 13, 4706, 9049, 5085, 29889, 5504, 3319, 29915, 1949, 29918, 1287, 414, 2396, 29871, 29896, 29892, 13, 462, 539, 525, 12687, 29918, 14834, 2396, 5852, 29892, 13, 462, 539, 525, 845, 21897, 2396, 5852, 1118, 29897, 13, 13, 1678, 396, 13995, 13, 1678, 12782, 353, 6213, 13, 1678, 848, 29918, 27959, 353, 6213, 13, 1678, 2254, 29918, 1272, 353, 6213, 13, 1678, 1067, 29883, 29918, 1949, 353, 29871, 29900, 13, 1678, 565, 6389, 29889, 24713, 1275, 29871, 29900, 29901, 13, 4706, 12782, 353, 435, 3991, 580, 13, 4706, 848, 29918, 27959, 353, 435, 1272, 29918, 27959, 13, 4706, 2254, 29918, 1272, 353, 2254, 29918, 29926, 7184, 2585, 29918, 1272, 13, 4706, 1067, 29883, 29918, 1949, 353, 12782, 29889, 695, 29883, 29918, 1949, 13, 1678, 25342, 6389, 29889, 24713, 1275, 29871, 29896, 29901, 13, 4706, 12782, 353, 317, 3991, 580, 13, 4706, 2254, 29918, 1272, 353, 2254, 29918, 845, 3757, 29918, 1272, 13, 4706, 1067, 29883, 29918, 1949, 353, 12782, 29889, 1990, 29918, 1111, 7989, 29918, 1949, 13, 4706, 848, 29918, 27959, 353, 317, 1272, 29918, 27959, 877, 1111, 7989, 29918, 1643, 1495, 13, 1678, 25342, 6389, 29889, 24713, 1275, 29871, 29906, 29901, 13, 4706, 12782, 353, 317, 3991, 580, 13, 4706, 1067, 29883, 29918, 1949, 353, 12782, 29889, 1990, 29918, 29888, 457, 29918, 1949, 13, 4706, 2254, 29918, 1272, 353, 2254, 29918, 845, 3757, 29918, 1272, 13, 4706, 848, 29918, 27959, 353, 317, 1272, 29918, 27959, 877, 29888, 457, 29918, 1643, 1495, 13, 1678, 1683, 29901, 13, 4706, 1596, 703, 25807, 29884, 3016, 287, 8783, 29991, 1159, 13, 4706, 10876, 29889, 13322, 29898, 29896, 29897, 13, 13, 1678, 315, 353, 12782, 13, 1678, 28186, 29892, 4321, 29892, 454, 353, 2254, 29918, 1272, 580, 13, 1678, 1060, 29918, 29900, 29892, 1060, 29918, 29896, 29892, 612, 353, 848, 29918, 27959, 29898, 5323, 262, 29892, 315, 29892, 454, 29897, 13, 1678, 1060, 29918, 29900, 353, 4842, 305, 29889, 3166, 29918, 23749, 29898, 29990, 29918, 29900, 467, 1853, 877, 7345, 305, 29889, 11031, 29911, 6073, 1495, 13, 1678, 1060, 29918, 29896, 353, 4842, 305, 29889, 3166, 29918, 23749, 29898, 29990, 29918, 29896, 467, 1853, 877, 7345, 305, 29889, 11031, 29911, 6073, 1495, 13, 1678, 612, 353, 4842, 305, 29889, 3166, 29918, 23749, 29898, 29979, 467, 1853, 877, 7345, 305, 29889, 8208, 29911, 6073, 1495, 13, 13, 1678, 1060, 29918, 29900, 29918, 29873, 29892, 1060, 29918, 29896, 29918, 29873, 29892, 612, 29918, 29873, 353, 848, 29918, 27959, 29898, 3057, 29892, 315, 29892, 454, 29897, 13, 1678, 1060, 29918, 29900, 29918, 29873, 353, 4842, 305, 29889, 3166, 29918, 23749, 29898, 29990, 29918, 29900, 29918, 29873, 467, 1853, 877, 7345, 305, 29889, 11031, 29911, 6073, 1495, 13, 1678, 1060, 29918, 29896, 29918, 29873, 353, 4842, 305, 29889, 3166, 29918, 23749, 29898, 29990, 29918, 29896, 29918, 29873, 467, 1853, 877, 7345, 305, 29889, 11031, 29911, 6073, 1495, 13, 1678, 612, 29918, 29873, 353, 4842, 305, 29889, 3166, 29918, 23749, 29898, 29979, 29918, 29873, 467, 1853, 877, 7345, 305, 29889, 8208, 29911, 6073, 1495, 13, 13, 1678, 7945, 842, 353, 4842, 305, 29889, 13239, 29889, 1272, 29889, 29911, 6073, 16390, 24541, 29898, 29990, 29918, 29900, 29892, 1060, 29918, 29896, 29892, 612, 29897, 13, 1678, 7945, 29918, 12657, 353, 4842, 305, 29889, 13239, 29889, 1272, 29889, 1469, 10036, 29898, 14968, 842, 29892, 3579, 19290, 29897, 13, 13, 1678, 1243, 842, 353, 4842, 305, 29889, 13239, 29889, 1272, 29889, 29911, 6073, 16390, 24541, 29898, 29990, 29918, 29900, 29918, 29873, 29892, 1060, 29918, 29896, 29918, 29873, 29892, 612, 29918, 29873, 29897, 13, 1678, 1243, 29918, 12657, 353, 4842, 305, 29889, 13239, 29889, 1272, 29889, 1469, 10036, 29898, 13, 4706, 1243, 842, 29892, 9853, 29918, 2311, 29922, 5085, 29889, 1688, 29918, 16175, 29918, 2311, 29897, 13, 13, 1678, 12670, 353, 360, 29928, 6779, 29898, 29907, 29889, 2557, 29918, 29880, 29892, 315, 29889, 12090, 29918, 29876, 29892, 315, 29889, 12090, 29918, 29881, 29892, 13, 18884, 315, 29889, 1725, 271, 29918, 29881, 29892, 315, 29889, 26705, 29892, 1067, 29883, 29918, 1949, 29897, 13, 1678, 1904, 353, 12670, 29889, 517, 29898, 10141, 29897, 13, 13, 1678, 15837, 29898, 4299, 29892, 17288, 29907, 29889, 2557, 29918, 29880, 29892, 315, 29889, 1725, 271, 29918, 29881, 511, 313, 29907, 29889, 2557, 29918, 29880, 29892, 315, 29889, 12090, 29918, 29876, 29892, 315, 29889, 12090, 29918, 29881, 29897, 2314, 13, 1678, 5994, 3950, 353, 5994, 29889, 3253, 314, 29898, 4299, 29889, 16744, 3285, 301, 29878, 29922, 5085, 29889, 29212, 29892, 1010, 294, 7607, 29900, 29889, 29929, 29892, 29871, 29900, 29889, 29929, 29929, 29929, 876, 13, 13, 1678, 28770, 291, 353, 302, 29876, 29889, 29907, 2124, 5292, 14441, 29931, 2209, 580, 13, 1678, 1364, 14952, 353, 4367, 24551, 29931, 1672, 29876, 3247, 403, 585, 29898, 13, 4706, 5994, 3950, 29892, 7329, 29922, 5085, 29889, 4283, 29892, 282, 24701, 29922, 29945, 29892, 1302, 1025, 776, 29922, 29900, 29889, 29945, 29892, 1375, 29918, 29212, 29922, 29945, 29872, 29899, 29953, 29892, 26952, 29922, 5574, 29897, 13, 1678, 363, 21502, 305, 297, 3464, 29898, 29896, 29892, 6389, 29889, 1022, 2878, 29879, 718, 29871, 29896, 1125, 13, 4706, 7945, 29918, 6758, 353, 7945, 29898, 5085, 29892, 1904, 29892, 4742, 29892, 7945, 29918, 12657, 29892, 13, 462, 965, 5994, 3950, 29892, 21502, 305, 29892, 28770, 291, 29897, 13, 4706, 1243, 29898, 4299, 29892, 4742, 29892, 1243, 29918, 12657, 29897, 13, 4706, 1364, 14952, 29889, 10568, 29898, 14968, 29918, 6758, 29897, 13, 13, 1678, 2537, 29892, 313, 1165, 29896, 29892, 4853, 29906, 29892, 4853, 29941, 29897, 353, 14770, 29889, 1491, 26762, 29898, 29876, 5727, 29922, 29941, 29892, 302, 22724, 29922, 29896, 29897, 13, 1678, 4853, 29896, 29889, 5317, 29898, 18434, 1839, 14968, 29918, 6758, 11287, 13, 1678, 4853, 29896, 29889, 5317, 29898, 18434, 1839, 1688, 29918, 6758, 11287, 13, 1678, 4853, 29896, 29889, 26172, 18959, 5323, 262, 742, 525, 3057, 7464, 1180, 2433, 21064, 2175, 1495, 13, 1678, 4853, 29896, 29889, 842, 29918, 29916, 1643, 877, 29923, 1129, 305, 1495, 13, 1678, 4853, 29896, 29889, 842, 29918, 3257, 877, 29931, 2209, 1495, 13, 13, 1678, 4853, 29906, 29889, 842, 29918, 3257, 877, 3195, 13600, 1495, 13, 1678, 4853, 29906, 29889, 842, 29918, 29891, 1643, 877, 7504, 332, 4135, 1495, 13, 1678, 4853, 29906, 29889, 842, 29918, 29916, 1643, 877, 29923, 1129, 305, 1495, 13, 1678, 4853, 29906, 29889, 5317, 29898, 18434, 1839, 1688, 29918, 5753, 11287, 13, 1678, 921, 3317, 353, 7442, 29889, 1191, 3317, 29898, 18434, 1839, 1688, 29918, 5753, 11287, 13, 1678, 343, 3317, 353, 7442, 29889, 3317, 29898, 18434, 1839, 1688, 29918, 5753, 11287, 13, 1678, 1426, 353, 376, 29916, 3790, 1118, 343, 3790, 29901, 29889, 29941, 29888, 29913, 1642, 4830, 29898, 29916, 3317, 29892, 343, 3317, 29897, 13, 1678, 4853, 29906, 29889, 6735, 403, 29898, 726, 29892, 921, 29891, 7607, 29916, 3317, 29892, 343, 3317, 876, 13, 13, 1678, 4853, 29941, 29889, 842, 29918, 3257, 877, 16376, 3958, 4636, 1495, 13, 1678, 1904, 29889, 14513, 580, 13, 1678, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 4706, 612, 29918, 11965, 353, 1904, 29898, 29990, 29918, 29900, 29918, 29873, 29889, 517, 29898, 10141, 511, 1060, 29918, 29896, 29918, 29873, 29889, 517, 29898, 13, 9651, 4742, 8106, 21970, 2141, 23749, 580, 13, 1678, 612, 29918, 1688, 353, 612, 29918, 29873, 29889, 23749, 580, 13, 1678, 274, 29876, 29888, 29918, 5344, 353, 14679, 29918, 5344, 29898, 13, 4706, 612, 29918, 1688, 29892, 7442, 29889, 1191, 3317, 29898, 29979, 29918, 11965, 29892, 9685, 29922, 29896, 876, 13, 1678, 4853, 29941, 29889, 326, 4294, 29898, 18038, 29888, 29918, 5344, 29897, 13, 1678, 2537, 29889, 29873, 523, 29918, 2680, 580, 13, 1678, 2537, 29889, 7620, 1003, 29898, 710, 29898, 17314, 381, 847, 376, 546, 29888, 29889, 2732, 5783, 13, 1678, 565, 6389, 29889, 7620, 29918, 4299, 29901, 13, 4706, 4842, 305, 29889, 7620, 29898, 4299, 29889, 3859, 29918, 8977, 3285, 851, 29898, 17314, 381, 12975, 4299, 29889, 415, 5783, 13, 1678, 565, 6389, 29889, 28667, 29918, 2230, 29901, 13, 4706, 4742, 353, 6024, 21970, 742, 525, 29883, 6191, 2033, 13, 4706, 396, 22235, 931, 13, 4706, 363, 270, 297, 4742, 29901, 13, 9651, 13128, 29918, 29990, 29918, 29900, 29918, 29873, 353, 1060, 29918, 29900, 29918, 29873, 29889, 517, 29898, 29881, 29897, 13, 9651, 13128, 29918, 29990, 29918, 29896, 29918, 29873, 353, 1060, 29918, 29896, 29918, 29873, 29889, 517, 29898, 29881, 29897, 13, 9651, 1904, 353, 1904, 29889, 517, 29898, 29881, 29897, 13, 9651, 396, 14294, 701, 13, 9651, 903, 353, 1904, 29898, 7050, 29918, 29990, 29918, 29900, 29918, 29873, 29892, 13128, 29918, 29990, 29918, 29896, 29918, 29873, 29897, 13, 13, 9651, 13128, 29918, 29990, 29918, 29900, 29918, 29873, 353, 13128, 29918, 29990, 29918, 29900, 29918, 29873, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 9651, 13128, 29918, 29990, 29918, 29896, 29918, 29873, 353, 13128, 29918, 29990, 29918, 29896, 29918, 29873, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 9651, 1369, 353, 931, 29889, 546, 29888, 29918, 11808, 29918, 1983, 580, 13, 9651, 363, 474, 297, 3464, 29898, 7050, 29918, 29990, 29918, 29900, 29918, 29873, 29889, 12181, 29961, 29900, 29962, 1125, 13, 18884, 903, 353, 1904, 29898, 7050, 29918, 29990, 29918, 29900, 29918, 29873, 29961, 29875, 29892, 584, 29892, 584, 29892, 584, 1402, 13128, 29918, 29990, 29918, 29896, 29918, 29873, 29961, 29875, 29892, 584, 29892, 584, 29892, 584, 2314, 13, 9651, 1095, 353, 931, 29889, 546, 29888, 29918, 11808, 29918, 1983, 580, 13, 9651, 10191, 353, 4852, 7827, 6571, 1983, 29892, 12365, 29889, 29906, 29888, 29913, 1983, 639, 697, 373, 6571, 1642, 4830, 3552, 355, 448, 1369, 511, 13, 462, 462, 462, 1669, 5135, 355, 448, 1369, 29897, 847, 313, 29990, 29918, 29900, 29918, 29873, 29889, 12181, 29961, 29900, 2314, 511, 270, 876, 13, 9651, 1596, 29898, 7645, 29897, 13, 9651, 12183, 29889, 3888, 29898, 7645, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
Day7-HandyHaversacks.py
n-Holmes/AdventOfCode2020
0
43433
<reponame>n-Holmes/AdventOfCode2020 from collections import Counter from functools import lru_cache def get_contents(path : str) -> dict[str, dict[str, int]]: """Get a weighted, directed graph of bags. No protection for the case of cycles. """ with open(path, "r") as f: lines = f.readlines(); contents = {} # Could use regex here, but hardly seems necessary due to the input size. for line in lines: try: bag, contains = line.split(" bags contain "); except: continue contents[bag] = Counter() if contains.startswith("no"): continue # separate types for item in contains.split(", "): parts = item.split(); color = parts[1] + " " + parts[2] count = int(parts[0]) contents[bag][color] = count return contents def get_poss_containers( target : str, contents : dict[str, dict[str, int]] ) -> list[str]: """Returns a list of all bags which can contain a bag of a given color.""" to_check = [target] valid = set() while to_check: target_color = to_check.pop() for cont_color in contents: if cont_color not in valid and target_color in contents[cont_color]: valid.add(cont_color) to_check.append(cont_color) return list(valid) def count_contents( target : str, contents : dict[str, dict[str, int]] ) -> int: """Counts the number of bags contained within a given color of bag.""" @lru_cache() # Cache results to speed up recursion def rec_count(color : str) -> int: """Recursively count the contents of a given color.""" return sum( (1 + rec_count(child)) * count for child, count in contents[color].items() ) return rec_count(target) if __name__ == "__main__": graph = get_contents("input7.txt") print("Containers that can hold a shiny gold bag:") print(len(get_poss_containers("shiny gold", graph))) print("No of bags in a shiny gold:") print(count_contents("shiny gold", graph))
[ 1, 529, 276, 1112, 420, 29958, 29876, 29899, 19984, 4467, 29914, 3253, 794, 2776, 3399, 29906, 29900, 29906, 29900, 13, 3166, 16250, 1053, 315, 5336, 13, 3166, 2090, 312, 8789, 1053, 301, 582, 29918, 8173, 13, 13, 1753, 679, 29918, 10853, 29898, 2084, 584, 851, 29897, 1599, 9657, 29961, 710, 29892, 9657, 29961, 710, 29892, 938, 5262, 29901, 13, 1678, 9995, 2577, 263, 7688, 287, 29892, 10624, 3983, 310, 289, 810, 29889, 13, 1678, 1939, 13047, 363, 278, 1206, 310, 25785, 29889, 13, 1678, 9995, 13, 1678, 411, 1722, 29898, 2084, 29892, 376, 29878, 1159, 408, 285, 29901, 13, 4706, 3454, 353, 285, 29889, 949, 9012, 890, 13, 268, 13, 1678, 8118, 353, 6571, 13, 13, 1678, 396, 6527, 671, 6528, 1244, 29892, 541, 15155, 2444, 5181, 2861, 304, 278, 1881, 2159, 29889, 13, 1678, 363, 1196, 297, 3454, 29901, 13, 4706, 1018, 29901, 13, 9651, 19548, 29892, 3743, 353, 1196, 29889, 5451, 703, 289, 810, 1712, 14796, 13, 4706, 5174, 29901, 13, 9651, 6773, 13, 13, 4706, 8118, 29961, 23156, 29962, 353, 315, 5336, 580, 13, 4706, 565, 3743, 29889, 27382, 2541, 703, 1217, 29908, 1125, 6773, 13, 13, 4706, 396, 5004, 4072, 13, 4706, 363, 2944, 297, 3743, 29889, 5451, 28165, 376, 1125, 13, 9651, 5633, 353, 2944, 29889, 5451, 890, 13, 9651, 2927, 353, 5633, 29961, 29896, 29962, 718, 376, 376, 718, 5633, 29961, 29906, 29962, 13, 9651, 2302, 353, 938, 29898, 20895, 29961, 29900, 2314, 13, 9651, 8118, 29961, 23156, 3816, 2780, 29962, 353, 2302, 13, 268, 13, 1678, 736, 8118, 13, 13, 1753, 679, 29918, 28802, 29918, 1285, 475, 414, 29898, 13, 1678, 3646, 584, 851, 29892, 13, 1678, 8118, 584, 9657, 29961, 710, 29892, 9657, 29961, 710, 29892, 938, 5262, 13, 1678, 1723, 1599, 1051, 29961, 710, 5387, 13, 1678, 9995, 11609, 29879, 263, 1051, 310, 599, 289, 810, 607, 508, 1712, 263, 19548, 310, 263, 2183, 2927, 1213, 15945, 13, 13, 1678, 304, 29918, 3198, 353, 518, 5182, 29962, 13, 1678, 2854, 353, 731, 580, 13, 1678, 1550, 304, 29918, 3198, 29901, 13, 4706, 3646, 29918, 2780, 353, 304, 29918, 3198, 29889, 7323, 580, 13, 13, 4706, 363, 640, 29918, 2780, 297, 8118, 29901, 13, 9651, 565, 640, 29918, 2780, 451, 297, 2854, 322, 3646, 29918, 2780, 297, 8118, 29961, 1285, 29918, 2780, 5387, 13, 18884, 2854, 29889, 1202, 29898, 1285, 29918, 2780, 29897, 13, 18884, 304, 29918, 3198, 29889, 4397, 29898, 1285, 29918, 2780, 29897, 13, 268, 13, 1678, 736, 1051, 29898, 3084, 29897, 13, 462, 13, 1753, 2302, 29918, 10853, 29898, 13, 1678, 3646, 584, 851, 29892, 13, 1678, 8118, 584, 9657, 29961, 710, 29892, 9657, 29961, 710, 29892, 938, 5262, 13, 1678, 1723, 1599, 938, 29901, 13, 1678, 9995, 3981, 29879, 278, 1353, 310, 289, 810, 11122, 2629, 263, 2183, 2927, 310, 19548, 1213, 15945, 13, 13, 1678, 732, 29880, 582, 29918, 8173, 580, 396, 28540, 2582, 304, 6210, 701, 20437, 13, 1678, 822, 1162, 29918, 2798, 29898, 2780, 584, 851, 29897, 1599, 938, 29901, 13, 4706, 9995, 4789, 1295, 3598, 2302, 278, 8118, 310, 263, 2183, 2927, 1213, 15945, 13, 4706, 736, 2533, 29898, 13, 9651, 313, 29896, 718, 1162, 29918, 2798, 29898, 5145, 876, 334, 2302, 13, 9651, 363, 2278, 29892, 2302, 297, 8118, 29961, 2780, 1822, 7076, 580, 13, 4706, 1723, 13, 13, 1678, 736, 1162, 29918, 2798, 29898, 5182, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 3983, 353, 679, 29918, 10853, 703, 2080, 29955, 29889, 3945, 1159, 13, 13, 1678, 1596, 703, 1323, 475, 414, 393, 508, 4808, 263, 528, 4901, 7684, 19548, 29901, 1159, 13, 1678, 1596, 29898, 2435, 29898, 657, 29918, 28802, 29918, 1285, 475, 414, 703, 845, 4901, 7684, 613, 3983, 4961, 13, 13, 1678, 1596, 703, 3782, 310, 289, 810, 297, 263, 528, 4901, 7684, 29901, 1159, 13, 1678, 1596, 29898, 2798, 29918, 10853, 703, 845, 4901, 7684, 613, 3983, 876, 13, 2 ]
pyvs/LatentARTraining.py
snumrl/VSports
0
165149
<reponame>snumrl/VSports import math import random import time import os import sys import copy from datetime import datetime from os.path import join, exists from os import mkdir import collections from collections import namedtuple from collections import deque from itertools import count import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torchvision.transforms as T from Utils import RunningMeanStd from CAAE import CAAEDecoder, CAAEEncoder import numpy as np from pyvs import Env from IPython import embed import json from Model import * from pathlib import Path from tensorboardX import SummaryWriter summary = SummaryWriter() use_cuda = torch.cuda.is_available() FloatTensor = torch.cuda.FloatTensor if use_cuda else torch.FloatTensor LongTensor = torch.cuda.LongTensor if use_cuda else torch.LongTensor ByteTensor = torch.cuda.ByteTensor if use_cuda else torch.ByteTensor Tensor = FloatTensor LOW_FREQUENCY = 3 HIGH_FREQUENCY = 30 device = torch.device("cuda" if use_cuda else "cpu") nnCount = 52 baseDir = "../nn_lar_h" nndir = baseDir + "/nn"+str(nnCount) if not exists(baseDir): mkdir(baseDir) if not exists(nndir): mkdir(nndir) RNNEpisode = namedtuple('RNNEpisode', ('s','a','r','value','logprob')) class RNNEpisodeBuffer(object): def __init__(self): self.data = [] def push(self, *args): self.data.append(RNNEpisode(*args)) def pop(self): self.data.pop() def popleft(self): self.data.pop(0) def getData(self): return self.data def getLastData(self): return self.data[len(self.data)-1] RNNTransition = namedtuple('RNNTransition',('s','a','logprob','TD','GAE')) class RNNReplayBuffer(object): def __init__(self, buff_size = 10000): super(RNNReplayBuffer, self).__init__() self.buffer = deque(maxlen=buff_size) def push(self,*args): self.buffer.append(RNNTransition(*args)) def clear(self): self.buffer.clear() class Buffer(object): def __init__(self, buff_size = 10000): super(Buffer, self).__init__() self.buffer = deque(maxlen=buff_size) def push(self,replay_buffer): self.buffer.append(replay_buffer) def clear(self): self.buffer.clear() class RL(object): def __init__(self, motion_nn): np.random.seed(seed = int(time.time())) self.num_slaves = 16 self.num_agents = 1 self.env = Env(self.num_agents, motion_nn, self.num_slaves) self.num_state = self.env.getNumState() # self.num_action = self.env.getNumAction() self.num_policy = 1 self.num_epochs = 4 self.num_evaluation = 0 self.num_simulation_Hz = self.env.getSimulationHz() self.num_control_Hz = self.env.getControlHz() self.num_simulation_per_control = self.num_simulation_Hz // self.num_control_Hz self.gamma = 0.999 self.lb = 0.95 self.buffer_size = 16*1024 self.batch_size = 2*512 self.num_action_types = 5 self.latent_size = 4 self.resetDuration = self.env.getResetDuration() self.typeFreq = self.env.getTypeFreq() #contact, finger, finger-ball self.num_action = [self.num_action_types, self.latent_size] self.num_h = len(self.num_action); self.num_tuple_so_far = [[0, 0] for _ in range(self.num_h)] self.num_tuple = [[0, 0] for _ in range(self.num_h)] self.num_tutorial_tuple = [[0, 0] for _ in range(self.num_h)] self.buffer = [[ [None] for _ in range(self.num_policy)] for _ in range(self.num_h)]; for h in range(self.num_h): for i in range(self.num_policy): self.buffer[h][i] = Buffer(100000) self.tutorial_buffer = [[ [None] for _ in range(self.num_policy)] for _ in range(self.num_h)]; for h in range(self.num_h): for i in range(self.num_policy): self.tutorial_buffer[h][i] = Buffer(100000) self.actionDecoder = CAAEDecoder().to(device) self.actionEncoder = CAAEEncoder().to(device) self.actionDecoder.load("caae_nn2/vae_action_decoder.pt") self.actionEncoder.load("caae_nn2/vae_action_encoder.pt") self.rms = RunningMeanStd(self.num_state-5) self.num_c = 4 self.stdScale = 1.0 self.target_model = [[[None] for _ in range(self.num_policy)] for _ in range(self.num_h)] acc_num_action = 0 self.num_hidden = 0 for h in range(self.num_h): for j in range(self.num_policy): if h== 0: self.target_model[h][j] = ActorCriticNN(self.num_state, self.num_action[h], log_std = 0.0, softmax = True, actionMask = True) else: self.target_model[h][j] = ActorCriticNN(self.num_state + self.num_action[0], self.num_action[h], log_std = 0.0) acc_num_action += self.num_action[h] if use_cuda: self.target_model[h][j].cuda() self.default_learning_rate = 1E-4 self.default_clip_ratio = 0.2 self.learning_rate = self.default_learning_rate self.clip_ratio = self.default_clip_ratio self.optimizer = [[[None] for _ in range(self.num_policy)] for _ in range(self.num_h)] for h in range(self.num_h): for i in range(self.num_policy): self.optimizer[h][i] = optim.Adam(self.target_model[h][i].parameters(), lr=self.learning_rate) self.max_iteration = 50000 self.w_entropy = 0.0001 self.sum_loss_actor = [[0.0 for _ in range(self.num_policy)] for _ in range(self.num_h)] self.sum_loss_critic = [[0.0 for _ in range(self.num_policy)] for _ in range(self.num_h)] self.sum_tutorial_loss_critic = [[0.0 for _ in range(self.num_policy)] for _ in range(self.num_h)] self.rewards = [] self.numSteps = [] self.num_correct_throwings = [] self.sum_return = 0.0 self.max_return = -10.0 self.max_winRate = 0.0 self.max_winRate_epoch = 0 self.max_return_epoch = 1 self.tic = time.time() self.episodes = [[[RNNEpisodeBuffer() for _ in range(self.num_agents)] for _ in range(self.num_slaves)] for _ in range(self.num_h)] self.tutorial_episodes = [[[RNNEpisodeBuffer() for _ in range(self.num_agents)] for _ in range(self.num_slaves)] for _ in range(self.num_h)] self.indexToNetDic = {0:0, 1:0} self.filecount = 0 self.num_td_reset = [0, 0] self.num_td_reset_at_goal = [0, 0] self.reset_point = [0]*5 self.env.slaveResets() def loadTargetModels(self,path,index): for h in range(self.num_h): self.target_model[h][self.indexToNetDic[index]].load(nndir+'/'+path+'_'+str(self.indexToNetDic[index%self.num_agents])+'_'+str(h)+'.pt') if os.path.isfile(nndir+'/rms.ms'): self.rms.load(nndir+'/rms.ms') def saveModels(self): for i in range(self.num_policy): for h in range(self.num_h): self.target_model[h][i].save(nndir+'/'+'current_'+str(i)+'_'+str(h)+'.pt') if self.max_return_epoch == self.num_evaluation: for h in range(self.num_h): self.target_model[h][i].save(nndir+'/'+'max_'+str(i)+'_'+str(h)+'.pt') if self.num_evaluation%100 == 0: for h in range(self.num_h): self.target_model[h][i].save(nndir+'/'+str(self.num_evaluation)+'_'+str(i)+'_'+str(h)+'.pt') self.rms.save(nndir+'/rms.ms') def arrayToOneHotVector(nparr): result = np.array(list(np.copy(nparr))) for agent in range(len(nparr)): for slaves in range(len(nparr[agent])): maxIndex = 0 maxValue = -100 for i in range(len(nparr[agent][slaves])): result[agent][slaves][i] = 0.0 if nparr[agent][slaves][i] > maxValue: maxValue = nparr[agent][slaves][i] maxIndex = i result[agent][slaves][maxIndex] = 1.0 return result def generateTransitions(self): self.sum_return = 0; self.num_episode = 0; self.num_correct_throwing = 0; self.num_td_reset = [0, 0] self.num_td_reset_at_goal = [0, 0] for h in range(self.num_h): for index in range(self.num_policy): self.num_tuple[h][index] = 0 self.num_tutorial_tuple[h][index] = 0 self.reset_point = [0, 0, 0, 0, 0] self.total_episodes = [ [[] for i in range(self.num_policy)] for _ in range(self.num_h)] self.total_tutorial_episodes = [ [[] for i in range(self.num_policy)] for _ in range(self.num_h)] states = [[None for _ in range(self.num_slaves)] for _ in range(self.num_agents)] actions = [[None for _ in range(self.num_slaves)] for _ in range(self.num_agents)] rewards = [[None for _ in range(self.num_slaves)] for _ in range(self.num_agents)] accRewards = [[0 for _ in range(self.num_slaves)] for _ in range(self.num_agents)] states_h = np.array([None for _ in range(self.num_h)]) actions_h = np.array([[None for _ in range(self.num_agents)] for _ in range(self.num_h)]) logprobs_h = np.array([[None for _ in range(self.num_agents)] for _ in range(self.num_h)]) values_h = np.array([[None for _ in range(self.num_agents)] for _ in range(self.num_h)]) is_exploitation = np.array([None for _ in range(self.num_agents)]) followTutorial = [False]*self.num_slaves onFoulResetProcess = [False]*self.num_slaves terminated = [False]*self.num_slaves*self.num_agents for i in range(self.num_agents): for j in range(self.num_slaves): states[i][j] = self.env.getState(j,i).astype(np.float32) states = np.array(states) states[:,:,:-5] = self.rms.apply(states[:,:,:-5]) mask = states[:,:,-5:] learningTeam = 0 teamDic = {0: 0, 1: 0} local_step = 0 counter = 0 def arrayToOneHotVectorWithConstraint(nparr): result = np.array(list(np.copy(nparr))) for agent in range(len(nparr)): for slaves in range(len(nparr[agent])): maxIndex = 0 maxValue = -100 for i in range(len(nparr[agent][slaves])): result[agent][slaves][i] = 0.0 if nparr[agent][slaves][i] > maxValue: maxValue = nparr[agent][slaves][i] maxIndex = i maxIndex = self.env.setActionType(maxIndex, slaves, agent) result[agent][slaves][maxIndex] = 1.0 return result def arrayToScalarVectorWithConstraint(nparr, isNew): temp = np.array(list(np.copy(nparr))) tempShape = np.shape(temp) scalarVectorShape = list(tempShape) scalarVectorShape[2] = 1 result = np.zeros(scalarVectorShape); result_oneHot = np.array(list(np.copy(nparr))) oneHotVectorShape = list(tempShape) oneHotVectorShape[2] = self.num_action_types result_oneHot = np.zeros(oneHotVectorShape) for agent in range(len(nparr)): for slaves in range(len(nparr[agent])): maxIndex = 0 maxValue = -100 for i in range(self.num_action_types): result_oneHot[agent][slaves][i] = 0.0 if nparr[agent][slaves][i] > maxValue: maxValue = nparr[agent][slaves][i] maxIndex = i maxIndex = self.env.setActionType(maxIndex, slaves, agent, isNew) result[agent][slaves] = maxIndex result_oneHot[agent][slaves][maxIndex] = 1.0 return result, result_oneHot def getActionTypeFromVector(vec): maxIndex = 0 maxValue = -100 for i in range(len(vec)): if vec[i] == 1: return i print("Something wrong in vec") print(vec) return 0 def getLatentReward(nparr): weight = 1.0; tempShape = list(np.shape(nparr)) tempShape[2] = 1 # embed() # exit(0) result = np.zeros(tempShape) for i in range(len(result)): for j in range(len(result[i])): result[i][j] = weight * 1.0/np.sqrt(1558.5)*np.exp(-0.5*np.dot(nparr[i][j], nparr[i][j])) return result h_slave = [None]*self.num_agents while True: counter += 1 if counter%10 == 0: print('SIM : {}'.format(local_step),end='\r') tutorialRatio = 0.0 useEmbeding = True # generate transition of first hierachy a_dist_slave = [None]*self.num_agents v_slave = [None]*self.num_agents if counter%self.typeFreq == 1: states_h[0] = np.copy(states) for i in range(self.num_agents): if teamDic[i] == learningTeam: a_dist_slave_agent,v_slave_agent = \ self.target_model[0][self.indexToNetDic[i]].forward(Tensor(states_h[0][i])) a_dist_slave[i] = a_dist_slave_agent v_slave[i] = v_slave_agent actions_h[0][i] = a_dist_slave[i].sample().cpu().detach().numpy().squeeze().squeeze(); for j in range(self.num_slaves): if followTutorial[j] is True: actions_h[0][i][j][0:2] = self.env.getCorrectActionType(j,i) for i in range(self.num_agents): if teamDic[i] == learningTeam: logprobs_h[0][i] = a_dist_slave[i].log_prob(Tensor(actions_h[0][i]))\ .cpu().detach().numpy().reshape(-1); values_h[0][i] = v_slave[i].cpu().detach().numpy().reshape(-1); for i in range(self.num_agents): for j in range(self.num_slaves): if self.env.isOnFoulReset(j): temp_a_dist,_ = self.target_model[0][self.indexToNetDic[i]].forward(\ Tensor([states_h[0][i][j]]),self.stdScale) actions_h[0][i][j] = temp_a_dist.sample().cpu().detach().numpy() logprobs_h[0][i][j] = temp_a_dist.log_prob(Tensor(actions_h[0][i][j])).cpu().detach().numpy().reshape(-1)[0] actions_c = np.array(list(np.copy(actions_h[0]))) actions_c = actions_c[:,:,-self.num_c:] actions_0_scalar = None actions_0_oneHot = None useEmbeding = False if counter%self.typeFreq == 1: actions_0_scalar, actions_0_oneHot = arrayToScalarVectorWithConstraint(actions_h[0], True) else: actions_0_scalar, actions_0_oneHot = arrayToScalarVectorWithConstraint(actions_h[0], False) action_embeding_ones = np.ones(np.shape(states_h[0]),dtype=np.float32) if useEmbeding: actions_0_oneHot = actions_0_oneHot*0 action_embeding_ones = 0.5 * action_embeding_ones*actions_0_scalar else: action_embeding_ones = 0.0 * action_embeding_ones*actions_0_scalar # generate transition of second hierachy for h in range(1,self.num_h): if h == 1: embededState = states+action_embeding_ones states_h[h] = np.concatenate((embededState, actions_0_oneHot), axis=2) a_dist_slave = [None]*self.num_agents v_slave = [None]*self.num_agents for i in range(self.num_agents): if teamDic[i] == learningTeam: a_dist_slave_agent,v_slave_agent = self.target_model[h][self.indexToNetDic[i]].forward(\ Tensor([states_h[h][i]])) a_dist_slave[i] = a_dist_slave_agent v_slave[i] = v_slave_agent actions_h[h][i] = a_dist_slave[i].sample().cpu().detach().numpy().squeeze().squeeze(); for j in range(self.num_slaves): if followTutorial[j] is True: print("line628") exit(0) decodedActionDetail = self.env.getCorrectActionDetail(j,i) encodedActionDetail, _ = self.actionEncoder.encode(Tensor(decodedActionDetail)) encodedActionDetail= encodedActionDetail.cpu().detach().numpy() actions_h[h][i][j] = encodedActionDetail for i in range(self.num_agents): if teamDic[i] == learningTeam: logprobs_h[h][i] = a_dist_slave[i].log_prob(Tensor(actions_h[h][i]))\ .cpu().detach().numpy().reshape(-1); values_h[h][i] = v_slave[i].cpu().detach().numpy().reshape(-1); for i in range(self.num_agents): for j in range(self.num_slaves): if self.env.isOnFoulReset(j): temp_a_dist,_ = self.target_model[h][self.indexToNetDic[i]].forward(\ Tensor([states_h[h][i][j]]),self.stdScale) actions_h[h][i][j] = temp_a_dist.sample().cpu().detach().numpy() logprobs_h[h][i][j] = temp_a_dist.log_prob(Tensor(actions_h[h][i][j])).cpu().detach().numpy().reshape(-1)[0] actionsLatent = np.array(list(actions_h[1])) actionsLatentReward = getLatentReward(actionsLatent) # embed() # exit(0) actionsLatent = np.concatenate((actions_0_oneHot, actionsLatent), axis =2) decodeShape = list(np.shape(actionsLatent)) decodeShape[2] = 16 actionsDecoded =np.empty(decodeShape,dtype=np.float32) actionsDecoded = self.actionDecoder.decode(Tensor(actionsLatent)).cpu().detach().numpy() # for i in range(len(actionsLatent)): # for j in range(len(actionsLatent[i])): # curActionType = int(actions_0_scalar[i][j][0]) # actionsDecoded[i][j] = self.actionDecoders[curActionType].decode(Tensor(actionsLatent[i][j])).cpu().detach().numpy() envActions = actionsDecoded for i in range(self.num_agents): for j in range(self.num_slaves): self.env.setAction(envActions[i][j], j, i); self.env.stepsAtOnce() nan_occur = [False]*self.num_slaves for j in range(self.num_slaves): if not self.env.isOnResetProcess(j): for i in range(self.num_agents): if teamDic[i] == learningTeam: # embed() # exit(0) rewards[i][j] = self.env.getReward(j, i, True) + actionsLatentReward[i][j][0] if counter%self.typeFreq == 1: accRewards[i][j] = rewards[i][j] else: accRewards[i][j] += rewards[i][j] if np.any(np.isnan(rewards[i][j])): # embed() # exit(0) nan_occur[j] = True if np.any(np.isnan(states[i][j])) or np.any(np.isnan(envActions[i][j])) or np.any(np.isnan(actions_h[0][i][j])): # embed() # exit(0) nan_occur[j] = True if followTutorial[j] is False: if not onFoulResetProcess[j]: self.sum_return += rewards[i][j] - actionsLatentReward[i][j][0] if accRewards[i][j] >= 1.0 and not self.env.isTerminalState(j): embed() exit(0) for j in range(self.num_slaves): if not self.env.isOnResetProcess(j): if nan_occur[j] is True: for i in range(self.num_agents): if teamDic[i] == learningTeam: for h in range(self.num_h): if followTutorial[j] is False: self.total_episodes[h][self.indexToNetDic[i]].append(self.episodes[h][j][i]) self.episodes[h][j][i] = RNNEpisodeBuffer() else: self.total_episodes[h][self.indexToNetDic[i]].append(self.tutorial_episodes[h][j][i]) self.tutorial_episodes[h][j][i] = RNNEpisodeBuffer() if followTutorial[j] is False: self.num_episode += 1 print("nan", file=sys.stderr) # print("on {}".format(j)); self.env.slaveReset(j) self.env.setResetCount(self.resetDuration-counter%self.typeFreq, j); followTutorial[j] = random.random()<tutorialRatio else: # here not considered followtutorial if not onFoulResetProcess[j]: for i in range(self.num_agents): if len(self.episodes[0][j][i].data) > 0: for h in range(self.num_h): if h == 0: # if (self.env.isTerminalState(j) and not self.env.isTimeOut(j)) or counter%self.typeFreq == 0: if (self.env.isTerminalState(j) and not self.env.isTimeOut(j)): savedFrameDiff = self.env.getSavedFrameDiff(j) if savedFrameDiff <= 6: break; TDError = self.episodes[h][j][i].getLastData().value -\ (self.episodes[h][j][i].getLastData().r + self.gamma*values_h[h][i][j]) if self.env.isTerminalState(j) : TDError = self.episodes[h][j][i].getLastData().value -\ (self.episodes[h][j][i].getLastData().r + self.gamma*accRewards[i][j]) TDError = abs(TDError) TDError = 2.0*pow(TDError, 1.0) TDError = min(TDError, 0.9) if random.random()<TDError : self.env.setToFoulState(j) onFoulResetProcess[j] = True; for h_ in range(self.num_h): if h_ == 0: if followTutorial[j] is False: self.episodes[h_][j][i].push(states_h[h_][i][j], actions_h[h_][i][j],\ accRewards[i][j], values_h[h_][i][j], logprobs_h[h_][i][j]) self.num_tuple[h_][self.indexToNetDic[i]] += 1 self.total_episodes[h_][self.indexToNetDic[i]].append(self.episodes[h_][j][i]) if accRewards[i][j] >= 1.0: self.num_correct_throwing += 1 lastTuple = self.episodes[h_][j][i].data[-(1+int(savedFrameDiff/self.typeFreq))] self.episodes[h_][j][i] = RNNEpisodeBuffer() self.episodes[h_][j][i].data.append(lastTuple) else: if followTutorial[j] is False: self.episodes[h_][j][i].push(states_h[h_][i][j], actions_h[h_][i][j],\ rewards[i][j], values_h[h_][i][j], logprobs_h[h_][i][j]) self.num_tuple[h_][self.indexToNetDic[i]] += 1 self.total_episodes[h_][self.indexToNetDic[i]].append(self.episodes[h_][j][i]) lastTuple = self.episodes[h_][j][i].data[-(1+savedFrameDiff)] self.episodes[h_][j][i] = RNNEpisodeBuffer() self.episodes[h_][j][i].data.append(lastTuple) self.num_td_reset[h] += 1 self.reset_point[int(actions_0_scalar[i][j][0])] += 1 if self.env.isTerminalState(j) : self.num_td_reset_at_goal[h] += 1 if followTutorial[j] is False: self.num_episode += 1 break else: # continue # if (self.env.isTerminalState(j) and not self.env.isTimeOut(j)) or True: if (self.env.isTerminalState(j) and not self.env.isTimeOut(j)): savedFrameDiff = self.env.getSavedFrameDiff(j) if savedFrameDiff <= 6: break; TDError = self.episodes[h][j][i].getLastData().value -\ (self.episodes[h][j][i].getLastData().r + self.gamma*values_h[h][i][j]) if self.env.isTerminalState(j) : TDError = self.episodes[h][j][i].getLastData().value -\ (self.episodes[h][j][i].getLastData().r + self.gamma*rewards[i][j]) TDError = abs(TDError) TDError = 2.0*pow(TDError, 1.0) TDError = min(TDError, 0.9) if random.random()<TDError : self.env.setToFoulState(j) onFoulResetProcess[j] = True; for h_ in range(self.num_h): if h_ == 0: if followTutorial[j] is False: self.episodes[h_][j][i].push(states_h[h_][i][j], actions_h[h_][i][j],\ accRewards[i][j], values_h[h_][i][j], logprobs_h[h_][i][j]) self.num_tuple[h_][self.indexToNetDic[i]] += 1 self.total_episodes[h_][self.indexToNetDic[i]].append(self.episodes[h_][j][i]) if accRewards[i][j] >= 1.0: self.num_correct_throwing += 1 lastTuple = self.episodes[h_][j][i].data[-(1+int(savedFrameDiff/self.typeFreq))] self.episodes[h_][j][i] = RNNEpisodeBuffer() self.episodes[h_][j][i].data.append(lastTuple) else : if followTutorial[j] is False: self.episodes[h_][j][i].push(states_h[h_][i][j], actions_h[h_][i][j],\ rewards[i][j], values_h[h_][i][j], logprobs_h[h_][i][j]) self.num_tuple[h_][self.indexToNetDic[i]] += 1 self.total_episodes[h_][self.indexToNetDic[i]].append(self.episodes[h_][j][i]) lastTuple = self.episodes[h_][j][i].data[-(1+savedFrameDiff)] self.episodes[h_][j][i] = RNNEpisodeBuffer() self.episodes[h_][j][i].data.append(lastTuple) self.num_td_reset[h] += 1 self.reset_point[int(actions_0_scalar[i][j][0])] += 1 if followTutorial[j] is False: self.num_episode += 1 if self.env.isTerminalState(j) : self.num_td_reset_at_goal[h] += 1 if onFoulResetProcess[j] is True: if counter%self.typeFreq != 1: continue if self.env.isFoulState(j) is True: for i in range(self.num_agents): if teamDic[i] == learningTeam: if onFoulResetProcess[j] is True: onFoulResetProcess[j] = False accRewards[i][j] = 0.0 if followTutorial[j] is False: while len(self.episodes[0][j][i].data)>(120/self.typeFreq * 4) : self.episodes[0][j][i].popleft() while len(self.episodes[1][j][i].data)>121 : self.episodes[1][j][i].popleft() self.num_tuple[0][self.indexToNetDic[i]] += len(self.episodes[0][j][i].data) self.num_tuple[1][self.indexToNetDic[i]] += len(self.episodes[1][j][i].data) local_step += len(self.episodes[1][j][i].data) local_step += 1 actions_h[0][i][j] = self.episodes[0][j][i].getLastData().a self.env.foulReset(j) followTutorial[j] = random.random()<tutorialRatio elif self.env.isTerminalState(j) is True: for i in range(self.num_agents): if teamDic[i] == learningTeam: for h in range(self.num_h): if h == 0: if followTutorial[j] is False: if self.env.isOnFoulReset(j): temp_s = self.episodes[h][j][i].getLastData().s temp_a = self.episodes[h][j][i].getLastData().a temp_r = accRewards[i][j] temp_value = self.episodes[h][j][i].getLastData().value temp_logprob = self.episodes[h][j][i].getLastData().logprob self.episodes[h][j][i].pop() self.episodes[h][j][i].push(temp_s, temp_a, temp_r, temp_value, temp_logprob) else: self.episodes[h][j][i].push(states_h[h][i][j], actions_h[h][i][j],\ accRewards[i][j], values_h[h][i][j], logprobs_h[h][i][j]) self.num_tuple[h][self.indexToNetDic[i]] += 1 if accRewards[i][j] >= 1.0: self.num_correct_throwing += 1 else : if followTutorial[j] is False: self.episodes[h][j][i].push(states_h[h][i][j], actions_h[h][i][j],\ rewards[i][j], values_h[h][i][j], logprobs_h[h][i][j]) self.num_tuple[h][self.indexToNetDic[i]] += 1 for h in range(self.num_h): self.total_episodes[h][self.indexToNetDic[i]].append(self.episodes[h][j][i]) self.episodes[h][j][i] = RNNEpisodeBuffer() if followTutorial[j] is False: self.num_episode += 1 local_step += 1 self.env.slaveReset(j) followTutorial[j] = random.random()<tutorialRatio self.env.setResetCount(self.resetDuration-counter%self.typeFreq, j); else: for i in range(self.num_agents): if teamDic[i] == learningTeam: for h in range(self.num_h): if h == 0: if counter%self.typeFreq == 0: if followTutorial[j] is False: if self.env.isOnFoulReset(j): # print("111") temp_s = self.episodes[h][j][i].getLastData().s temp_a = self.episodes[h][j][i].getLastData().a temp_r = accRewards[i][j] temp_value = self.episodes[h][j][i].getLastData().value temp_logprob = self.episodes[h][j][i].getLastData().logprob self.episodes[h][j][i].pop() self.episodes[h][j][i].push(temp_s, temp_a, temp_r, temp_value, temp_logprob) else: self.episodes[h][j][i].push(states_h[h][i][j], actions_h[h][i][j],\ accRewards[i][j], values_h[h][i][j], logprobs_h[h][i][j]) self.num_tuple[h][self.indexToNetDic[i]] += 1 else : if followTutorial[j] is False: self.episodes[h][j][i].push(states_h[h][i][j], actions_h[h][i][j],\ rewards[i][j], values_h[h][i][j], logprobs_h[h][i][j]) self.num_tuple[h][self.indexToNetDic[i]] += 1 local_step += 1 if local_step >= self.buffer_size: for j in range(self.num_slaves): for i in range(self.num_agents): if teamDic[i] == learningTeam: for h in range(self.num_h): self.total_episodes[h][self.indexToNetDic[i]].append(self.episodes[h][j][i]) self.episodes[h][j][i] = RNNEpisodeBuffer() if followTutorial[j] is False: self.num_episode += 1 self.env.slaveReset(j) followTutorial[j] = random.random()<tutorialRatio break for i in range(self.num_agents): for j in range(self.num_slaves): states[i][j] = self.env.getState(j,i).astype(np.float32) states = np.array(states) states[:,:,:-5] = self.rms.apply(states[:,:,:-5]) print('SIM : {}'.format(local_step)) def computeTDandGAE(self): for h in range(self.num_h): for index in range(self.num_policy): self.buffer[h][index].clear() for epi in self.total_episodes[h][index]: data = epi.getData() size = len(data) if size == 0: continue states, actions, rewards, values, logprobs = zip(*data) values = np.concatenate((values, np.zeros(1)), axis=0) advantages = np.zeros(size) ad_t = 0 epi_return = 0.0 for i in reversed(range(len(data))): epi_return += rewards[i] delta = rewards[i] + values[i+1] * self.gamma - values[i] ad_t = delta + self.gamma * self.lb * ad_t advantages[i] = ad_t if not np.isnan(epi_return): TD = values[:size] + advantages rnn_replay_buffer = RNNReplayBuffer(10000) for i in range(size): rnn_replay_buffer.push(states[i], actions[i], logprobs[i], TD[i], advantages[i]) self.buffer[h][index].push(rnn_replay_buffer) ''' counting numbers ''' for h in range(self.num_h): for index in range(self.num_policy): self.num_tuple_so_far[h][index] += self.num_tuple[h][index] def tutorial_computeTDandGAE(self): for h in range(self.num_h): for index in range(self.num_policy): self.tutorial_buffer[h][index].clear() for epi in self.total_tutorial_episodes[h][index]: data = epi.getData() size = len(data) if size == 0: continue states, actions, rewards, values, logprobs = zip(*data) values = np.concatenate((values, np.zeros(1)), axis=0) advantages = np.zeros(size) ad_t = 0 epi_return = 0.0 for i in reversed(range(len(data))): epi_return += rewards[i] delta = rewards[i] + values[i+1] * self.gamma - values[i] ad_t = delta + self.gamma * self.lb * ad_t advantages[i] = ad_t if not np.isnan(epi_return): TD = values[:size] + advantages rnn_replay_buffer = RNNReplayBuffer(10000) for i in range(size): rnn_replay_buffer.push(states[i], actions[i], logprobs[i], TD[i], advantages[i]) self.tutorial_buffer[h][index].push(rnn_replay_buffer) def optimizeNN_h(self, h = 0): for i in range(self.num_policy): self.sum_loss_actor[h][i] = 0.0 self.sum_loss_critic[h][i] = 0.0 for buff_index in range(self.num_policy): all_rnn_replay_buffer= np.array(self.buffer[h][buff_index].buffer) for j in range(self.num_epochs): all_segmented_transitions = [] for rnn_replay_buffer in all_rnn_replay_buffer: rnn_replay_buffer_size = len(rnn_replay_buffer.buffer) for i in range(rnn_replay_buffer_size): all_segmented_transitions.append(rnn_replay_buffer.buffer[i]) batch_size_h = self.batch_size if h == 0: batch_size_h = self.batch_size//4 np.random.shuffle(all_segmented_transitions) for i in range(len(all_segmented_transitions)//batch_size_h): batch_segmented_transitions = all_segmented_transitions[i*batch_size_h:(i+1)*batch_size_h] batch = RNNTransition(*zip(*batch_segmented_transitions)) stack_s = np.vstack(batch.s).astype(np.float32) stack_a = np.vstack(batch.a).astype(np.float32) stack_lp = np.vstack(batch.logprob).astype(np.float32) stack_td = np.vstack(batch.TD).astype(np.float32) stack_gae = np.vstack(batch.GAE).astype(np.float32) a_dist,v = self.target_model[h][buff_index].forward(Tensor(stack_s)) loss_critic = ((v-Tensor(stack_td)).pow(2)).mean() '''Actor Loss''' ratio = torch.exp(a_dist.log_prob(Tensor(stack_a))-Tensor(stack_lp)) stack_gae = (stack_gae-stack_gae.mean())/(stack_gae.std()+1E-5) stack_gae = Tensor(stack_gae) surrogate1 = ratio * stack_gae surrogate2 = torch.clamp(ratio, min=1.0-self.clip_ratio, max=1.0+self.clip_ratio) * stack_gae loss_actor = - torch.min(surrogate1, surrogate2).mean() '''Entropy Loss''' loss_entropy = - self.w_entropy * a_dist.entropy().mean() loss = loss_actor + loss_critic + loss_entropy self.optimizer[h][buff_index].zero_grad() loss.backward() detectNan = False for param in self.target_model[h][buff_index].parameters(): if torch.isnan(param.grad).any(): detectNan = True if param.grad is not None: param.grad.data.clamp_(-0.5, 0.5) if not detectNan: self.optimizer[h][buff_index].step() self.sum_loss_actor[h][buff_index] += loss_actor.detach()*batch_size_h/self.num_epochs self.sum_loss_critic[h][buff_index] += loss_critic.detach()*batch_size_h/self.num_epochs loss_entropy = loss_entropy.detach() loss_actor = loss_actor.detach() loss_critic = loss_critic.detach() loss= loss.detach() print('Optimizing actor-critic nn_{} : {}/{}'.format(h, j+1,self.num_epochs),end='\r') print('') # print('') def tutorial_optimizeNN_h(self, h = 0): for i in range(self.num_policy): self.sum_tutorial_loss_critic[h][i] = 0.0 for buff_index in range(self.num_policy): all_rnn_replay_buffer= np.array(self.tutorial_buffer[h][buff_index].buffer) for j in range(self.num_epochs): all_segmented_transitions = [] for rnn_replay_buffer in all_rnn_replay_buffer: rnn_replay_buffer_size = len(rnn_replay_buffer.buffer) for i in range(rnn_replay_buffer_size): all_segmented_transitions.append(rnn_replay_buffer.buffer[i]) np.random.shuffle(all_segmented_transitions) tutorial_batchSize = self.batch_size//16 for i in range(len(all_segmented_transitions)//tutorial_batchSize): batch_segmented_transitions = all_segmented_transitions[i*tutorial_batchSize:(i+1)*tutorial_batchSize] batch = RNNTransition(*zip(*batch_segmented_transitions)) stack_s = np.vstack(batch.s).astype(np.float32) stack_a = np.vstack(batch.a).astype(np.float32) stack_lp = np.vstack(batch.logprob).astype(np.float32) stack_td = np.vstack(batch.TD).astype(np.float32) stack_gae = np.vstack(batch.GAE).astype(np.float32) a_dist,v = self.target_model[h][buff_index].forward(Tensor(stack_s)) loss_critic = ((v-Tensor(stack_td)).pow(2)).mean() loss = loss_critic self.optimizer[h][buff_index].zero_grad() loss.backward() detectNan = False for param in self.target_model[h][buff_index].parameters(): if torch.isnan(param.grad).any(): detectNan = True # print("nan") if param.grad is not None: param.grad.data.clamp_(-0.5, 0.5) self.sum_tutorial_loss_critic[h][buff_index] += loss_critic.detach()*tutorial_batchSize/self.num_epochs loss_critic = loss_critic.detach() loss= loss.detach() print('Optimizing actor-critic nn_{} : {}/{}'.format(h, j+1,self.num_epochs),end='\r') print('') # print('') def train(self): frac = 1.0 self.learning_rate = self.default_learning_rate*frac self.clip_ratio = self.default_clip_ratio*frac for i in range(self.num_policy): for h in range(self.num_h): for param_group in self.optimizer[h][i].param_groups: param_group['lr'] = self.learning_rate self.generateTransitions() self.computeTDandGAE() self.optimizeModel() def optimizeModel(self): for h in range(self.num_h): self.optimizeNN_h(h) def evaluate(self): self.num_evaluation = self.num_evaluation + 1 hour = int((time.time() - self.tic)//3600.0) m = int((time.time() - self.tic)//60.0) s = int((time.time() - self.tic)) m = m - hour*60 s = int((time.time() - self.tic)) s = s - hour*3600 - m*60 if self.num_episode is 0: self.num_episode = 1 for h in range(self.num_h): for i in range(self.num_policy): if self.num_tuple[h][i] is 0: self.num_tuple[h][i] = 1 if self.num_tutorial_tuple[h][i] is 0: self.num_tutorial_tuple[h][i] = 1 if self.max_return < self.sum_return/self.num_episode: self.max_return = self.sum_return/self.num_episode self.max_return_epoch = self.num_evaluation print('# {} === {}h:{}m:{}s ==='.format(self.num_evaluation,hour,m,s)) print('||--------------ActorCriticNN------------------') for i in range(self.num_policy): for h in range(self.num_h): print('||Avg Loss Actor {} {} : {:.4f}'.format(h, i, self.sum_loss_actor[h][i]/self.num_tuple[h][i])) print('||Avg Loss Critic {} {} : {:.4f}'.format(h, i, self.sum_loss_critic[h][i]/self.num_tuple[h][i])) print('||Noise {} : {:.3f}'.format(h, self.target_model[h][i].log_std.exp().mean())) print('||Num Transition So far {} {} : {}'.format(h, i, self.num_tuple_so_far[h][i])) print('||Num Transition {} {} : {}'.format(h, i, self.num_tuple[h][i])) print('||Num Episode : {}'.format(self.num_episode)) for i in range(self.num_policy): print('||Avg Step per episode {} : {:.1f}'.format(i, self.num_tuple[1][i]/self.num_episode)) print('||Avg Num Correct Throwings per episode : {:.3f}'.format(self.num_correct_throwing/self.num_episode)) print('||Max Return per episode : {:.3f}'.format(self.max_return)) print('||Avg Return per episode : {:.3f}'.format(self.sum_return/self.num_episode)) for h in range(self.num_h): print('||Num TD Reset : {} {}'.format(h, self.num_td_reset[h])) print('||Num TD Reset at goal : {} {}'.format(h, self.num_td_reset_at_goal[h])) self.rewards.append(self.sum_return/self.num_episode) self.numSteps.append(self.num_tuple[1][0]/self.num_episode) self.num_correct_throwings.append(self.num_correct_throwing/self.num_episode) self.saveModels() # embed() # exit(0) for i in range(len(self.reset_point)): if self.num_td_reset[0]+self.num_td_reset[1] > 0: self.reset_point[i] /= self.num_td_reset[0]+self.num_td_reset[1] else: self.reset_point[i] = 0 summary.add_scalars('rewards and num_correct_throwings',{'rewards' : self.sum_return/self.num_episode, 'num_ct' : self.num_correct_throwing/self.num_episode}, self.num_evaluation) summary.add_scalar('numSteps',self.num_tuple[1][0]/self.num_episode, self.num_evaluation) summary.add_scalar('ratio of resets',(self.num_td_reset[0] + self.num_td_reset[1])/self.num_episode, self.num_evaluation) summary.add_scalars('reset point',{'0':self.reset_point[0], '1':self.reset_point[1], '2':self.reset_point[2], '3':self.reset_point[3], '4':self.reset_point[4]},self.num_evaluation) for name, param in self.target_model[0][0].named_parameters(): summary.add_histogram(name+"_actionType", param.clone().cpu().data.numpy(), self.num_evaluation) for name, param in self.target_model[1][0].named_parameters(): summary.add_histogram(name+"_actionDetail", param.clone().cpu().data.numpy(), self.num_evaluation) print('=============================================') return np.array(self.rewards), np.array(self.numSteps), np.array(self.num_correct_throwings) import matplotlib import matplotlib.pyplot as plt plt.ion() def plot(y,title,num_fig=1,ylim=True,path=""): temp_y = np.zeros(y.shape) if y.shape[0]>5: temp_y[0] = y[0] temp_y[1] = 0.5*(y[0] + y[1]) temp_y[2] = 0.3333*(y[0] + y[1] + y[2]) temp_y[3] = 0.25*(y[0] + y[1] + y[2] + y[3]) for i in range(4,y.shape[0]): temp_y[i] = np.sum(y[i-4:i+1])*0.2 fig = plt.figure(num_fig) plt.clf() plt.title(title) plt.plot(y,'b') plt.plot(temp_y,'r') plt.savefig(path, format="png") # plt.show() if ylim: plt.ylim([0,1]) fig.canvas.draw() fig.canvas.flush_events() def plot_numSteps(y,title,num_fig=1,ylim=True,path=""): temp_y = np.zeros(y.shape) if y.shape[0]>5: temp_y[0] = y[0] temp_y[1] = 0.5*(y[0] + y[1]) temp_y[2] = 0.3333*(y[0] + y[1] + y[2]) temp_y[3] = 0.25*(y[0] + y[1] + y[2] + y[3]) for i in range(4,y.shape[0]): temp_y[i] = np.sum(y[i-4:i+1])*0.2 fig = plt.figure(num_fig) plt.clf() plt.title(title) plt.plot(y,'b') plt.plot(temp_y,'r') plt.savefig(path, format="png") if ylim: plt.ylim([0,1]) fig.canvas.draw() fig.canvas.flush_events() import argparse if __name__=="__main__": parser = argparse.ArgumentParser() parser.add_argument('-m','--model',help='model path') # parser.add_argument('-p','--policy',help='pretrained pollicy path') parser.add_argument('-iter','--iteration',help='num iterations') parser.add_argument('-n','--name',help='name of training setting') parser.add_argument('-motion', '--motion', help='motion nn path') args =parser.parse_args() graph_name = '' if args.motion is None: print("Please specify the motion nn path") exit(0) rl = RL(args.motion) if args.model is not None: for k in range(rl.num_agents): rl.loadTargetModels(args.model, k) if args.name is not None: graph_name = args.name # if args.policy is not None: # rl.loadTargetPolicy(args.policy) if args.iteration is not None: rl.num_evaluation = int(args.iteration) for i in range(int(args.iteration)): rl.env.endOfIteration() else: rl.saveModels() print('num states: {}, num actions: {}'.format(rl.env.getNumState(),rl.env.getNumAction()-1)) result_figure = nndir+"/"+"result.png" result_figure_numSteps = nndir+"/"+"result_numSteps.png" result_figure_numCTs = nndir+"/"+"result_numCTs.png" result_figure_num = 0 while Path(result_figure).is_file(): result_figure = nndir+"/"+"result_{}.png".format(result_figure_num) result_figure_numSteps = nndir+"/"+"result_numSteps_{}.png".format(result_figure_num) result_figure_numCTs = nndir+"/"+"result_numCTs_{}.png".format(result_figure_num) result_figure_num+=1 for i in range(5000000): rl.train() rewards, numSteps, numCTs = rl.evaluate()
[ 1, 529, 276, 1112, 420, 29958, 29879, 1949, 2096, 29914, 21819, 4011, 13, 5215, 5844, 13, 5215, 4036, 13, 5215, 931, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 3509, 13, 3166, 12865, 1053, 12865, 13, 13, 3166, 2897, 29889, 2084, 1053, 5988, 29892, 4864, 13, 3166, 2897, 1053, 29356, 13, 13, 5215, 16250, 13, 3166, 16250, 1053, 4257, 23583, 13, 3166, 16250, 1053, 316, 802, 13, 3166, 4256, 8504, 1053, 2302, 13, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 5215, 4842, 305, 4924, 29889, 9067, 29879, 408, 323, 13, 3166, 22310, 29879, 1053, 19509, 6816, 273, 855, 29881, 13, 3166, 315, 6344, 29923, 1053, 315, 6344, 3352, 687, 6119, 29892, 315, 6344, 29923, 8566, 6119, 13, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 11451, 4270, 1053, 1174, 29894, 13, 13, 3166, 5641, 1656, 1053, 8297, 13, 5215, 4390, 13, 3166, 8125, 1053, 334, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 12489, 3377, 29990, 1053, 6991, 5219, 10507, 13, 7727, 353, 6991, 5219, 10507, 580, 13, 13, 13, 1509, 29918, 29883, 6191, 353, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 580, 13, 11031, 29911, 6073, 353, 4842, 305, 29889, 29883, 6191, 29889, 11031, 29911, 6073, 565, 671, 29918, 29883, 6191, 1683, 4842, 305, 29889, 11031, 29911, 6073, 13, 8208, 29911, 6073, 353, 4842, 305, 29889, 29883, 6191, 29889, 8208, 29911, 6073, 565, 671, 29918, 29883, 6191, 1683, 4842, 305, 29889, 8208, 29911, 6073, 13, 12901, 29911, 6073, 353, 4842, 305, 29889, 29883, 6191, 29889, 12901, 29911, 6073, 565, 671, 29918, 29883, 6191, 1683, 4842, 305, 29889, 12901, 29911, 6073, 13, 29911, 6073, 353, 27842, 29911, 6073, 13, 27998, 29918, 29943, 1525, 13356, 1430, 29907, 29979, 353, 29871, 29941, 13, 29950, 6259, 29950, 29918, 29943, 1525, 13356, 1430, 29907, 29979, 353, 29871, 29941, 29900, 13, 10141, 353, 4842, 305, 29889, 10141, 703, 29883, 6191, 29908, 565, 671, 29918, 29883, 6191, 1683, 376, 21970, 1159, 13, 13, 15755, 3981, 353, 29871, 29945, 29906, 13, 3188, 9170, 353, 376, 6995, 15755, 29918, 4675, 29918, 29882, 29908, 13, 29876, 299, 381, 353, 2967, 9170, 718, 5591, 15755, 17969, 710, 29898, 15755, 3981, 29897, 13, 13, 361, 451, 4864, 29898, 3188, 9170, 1125, 13, 1678, 29356, 29898, 3188, 9170, 29897, 13, 13, 361, 451, 4864, 29898, 29876, 299, 381, 1125, 13, 12, 11256, 3972, 29898, 29876, 299, 381, 29897, 13, 13, 13, 29934, 29940, 8186, 12907, 353, 4257, 23583, 877, 29934, 29940, 8186, 12907, 742, 6702, 29879, 3788, 29874, 3788, 29878, 3788, 1767, 3788, 1188, 22795, 8785, 13, 13, 1990, 390, 29940, 8186, 12907, 7701, 29898, 3318, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 1125, 13, 12, 12, 1311, 29889, 1272, 353, 5159, 13, 13, 12, 1753, 5503, 29898, 1311, 29892, 334, 5085, 1125, 13, 12, 12, 1311, 29889, 1272, 29889, 4397, 29898, 29934, 29940, 8186, 12907, 10456, 5085, 876, 13, 13, 12, 1753, 1835, 29898, 1311, 1125, 13, 12, 12, 1311, 29889, 1272, 29889, 7323, 580, 13, 13, 12, 1753, 1835, 1563, 29898, 1311, 1125, 13, 12, 12, 1311, 29889, 1272, 29889, 7323, 29898, 29900, 29897, 13, 13, 12, 1753, 679, 1469, 29898, 1311, 1125, 13, 12, 12, 2457, 1583, 29889, 1272, 13, 13, 12, 1753, 679, 8897, 1469, 29898, 1311, 1125, 13, 12, 12, 2457, 1583, 29889, 1272, 29961, 2435, 29898, 1311, 29889, 1272, 6817, 29896, 29962, 13, 13, 29934, 10262, 4300, 654, 353, 4257, 23583, 877, 29934, 10262, 4300, 654, 742, 877, 29879, 3788, 29874, 3788, 1188, 22795, 3788, 24495, 3788, 12739, 29923, 8785, 13, 13, 1990, 390, 10262, 1123, 1456, 7701, 29898, 3318, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 20487, 29918, 2311, 353, 29871, 29896, 29900, 29900, 29900, 29900, 1125, 13, 12, 12, 9136, 29898, 29934, 10262, 1123, 1456, 7701, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 12, 12, 1311, 29889, 9040, 353, 316, 802, 29898, 3317, 2435, 29922, 28040, 29918, 2311, 29897, 13, 13, 12, 1753, 5503, 29898, 1311, 29892, 29930, 5085, 1125, 13, 12, 12, 1311, 29889, 9040, 29889, 4397, 29898, 29934, 10262, 4300, 654, 10456, 5085, 876, 13, 13, 12, 1753, 2821, 29898, 1311, 1125, 13, 12, 12, 1311, 29889, 9040, 29889, 8551, 580, 13, 13, 1990, 16534, 29898, 3318, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 20487, 29918, 2311, 353, 29871, 29896, 29900, 29900, 29900, 29900, 1125, 13, 12, 12, 9136, 29898, 7701, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 12, 12, 1311, 29889, 9040, 353, 316, 802, 29898, 3317, 2435, 29922, 28040, 29918, 2311, 29897, 13, 13, 12, 1753, 5503, 29898, 1311, 29892, 276, 1456, 29918, 9040, 1125, 13, 12, 12, 1311, 29889, 9040, 29889, 4397, 29898, 276, 1456, 29918, 9040, 29897, 13, 13, 12, 1753, 2821, 29898, 1311, 1125, 13, 12, 12, 1311, 29889, 9040, 29889, 8551, 580, 13, 13, 1990, 390, 29931, 29898, 3318, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 10884, 29918, 15755, 1125, 13, 12, 12, 9302, 29889, 8172, 29889, 26776, 29898, 26776, 353, 938, 29898, 2230, 29889, 2230, 22130, 13, 12, 12, 1311, 29889, 1949, 29918, 29879, 433, 1960, 353, 29871, 29896, 29953, 13, 12, 12, 1311, 29889, 1949, 29918, 351, 1237, 353, 29871, 29896, 13, 12, 12, 1311, 29889, 6272, 353, 1174, 29894, 29898, 1311, 29889, 1949, 29918, 351, 1237, 29892, 10884, 29918, 15755, 29892, 1583, 29889, 1949, 29918, 29879, 433, 1960, 29897, 13, 12, 12, 1311, 29889, 1949, 29918, 3859, 353, 1583, 29889, 6272, 29889, 657, 8009, 2792, 580, 13, 12, 12, 29937, 1583, 29889, 1949, 29918, 2467, 353, 1583, 29889, 6272, 29889, 657, 8009, 4276, 580, 13, 12, 12, 1311, 29889, 1949, 29918, 22197, 353, 29871, 29896, 13, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 353, 29871, 29946, 13, 12, 12, 1311, 29889, 1949, 29918, 24219, 362, 353, 29871, 29900, 13, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 3601, 2785, 29918, 12661, 353, 1583, 29889, 6272, 29889, 657, 8942, 2785, 12661, 580, 13, 12, 12, 1311, 29889, 1949, 29918, 6451, 29918, 12661, 353, 1583, 29889, 6272, 29889, 657, 4809, 12661, 580, 13, 12, 12, 1311, 29889, 1949, 29918, 3601, 2785, 29918, 546, 29918, 6451, 353, 1583, 29889, 1949, 29918, 3601, 2785, 29918, 12661, 849, 1583, 29889, 1949, 29918, 6451, 29918, 12661, 13, 13, 12, 12, 1311, 29889, 4283, 353, 29871, 29900, 29889, 29929, 29929, 29929, 13, 12, 12, 1311, 29889, 27728, 353, 29871, 29900, 29889, 29929, 29945, 13, 13, 12, 12, 1311, 29889, 9040, 29918, 2311, 353, 29871, 29896, 29953, 29930, 29896, 29900, 29906, 29946, 13, 12, 12, 1311, 29889, 16175, 29918, 2311, 353, 29871, 29906, 29930, 29945, 29896, 29906, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 2467, 29918, 8768, 353, 29871, 29945, 13, 12, 12, 1311, 29889, 5066, 296, 29918, 2311, 353, 29871, 29946, 13, 13, 12, 12, 1311, 29889, 12071, 18984, 353, 1583, 29889, 6272, 29889, 657, 27175, 18984, 580, 13, 12, 12, 1311, 29889, 1853, 29943, 7971, 353, 1583, 29889, 6272, 29889, 657, 1542, 29943, 7971, 580, 13, 13, 12, 12, 29937, 12346, 29892, 19917, 29892, 19917, 29899, 2135, 13, 12, 12, 1311, 29889, 1949, 29918, 2467, 353, 518, 1311, 29889, 1949, 29918, 2467, 29918, 8768, 29892, 1583, 29889, 5066, 296, 29918, 2311, 29962, 13, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 29882, 353, 7431, 29898, 1311, 29889, 1949, 29918, 2467, 416, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 23583, 29918, 578, 29918, 15641, 353, 5519, 29900, 29892, 29871, 29900, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 12, 12, 1311, 29889, 1949, 29918, 23583, 353, 5519, 29900, 29892, 29871, 29900, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 12, 12, 1311, 29889, 1949, 29918, 12631, 29918, 23583, 353, 5519, 29900, 29892, 29871, 29900, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 13, 12, 12, 1311, 29889, 9040, 353, 5519, 518, 8516, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 27077, 13, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 9040, 29961, 29882, 3816, 29875, 29962, 353, 16534, 29898, 29896, 29900, 29900, 29900, 29900, 29900, 29897, 13, 13, 12, 12, 1311, 29889, 12631, 29918, 9040, 353, 5519, 518, 8516, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 27077, 13, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 12631, 29918, 9040, 29961, 29882, 3816, 29875, 29962, 353, 16534, 29898, 29896, 29900, 29900, 29900, 29900, 29900, 29897, 13, 13, 13, 13, 12, 12, 1311, 29889, 2467, 6185, 6119, 353, 315, 6344, 3352, 687, 6119, 2141, 517, 29898, 10141, 29897, 13, 12, 12, 1311, 29889, 2467, 8566, 6119, 353, 315, 6344, 29923, 8566, 6119, 2141, 517, 29898, 10141, 29897, 13, 13, 12, 12, 1311, 29889, 2467, 6185, 6119, 29889, 1359, 703, 1113, 3660, 29918, 15755, 29906, 29914, 1564, 29872, 29918, 2467, 29918, 7099, 6119, 29889, 415, 1159, 13, 13, 12, 12, 1311, 29889, 2467, 8566, 6119, 29889, 1359, 703, 1113, 3660, 29918, 15755, 29906, 29914, 1564, 29872, 29918, 2467, 29918, 3977, 6119, 29889, 415, 1159, 13, 13, 12, 12, 1311, 29889, 29878, 1516, 353, 19509, 6816, 273, 855, 29881, 29898, 1311, 29889, 1949, 29918, 3859, 29899, 29945, 29897, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 29883, 353, 29871, 29946, 13, 13, 12, 12, 1311, 29889, 4172, 17185, 353, 29871, 29896, 29889, 29900, 13, 13, 12, 12, 1311, 29889, 5182, 29918, 4299, 353, 5519, 29961, 8516, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 13, 13, 12, 12, 5753, 29918, 1949, 29918, 2467, 353, 29871, 29900, 13, 12, 12, 1311, 29889, 1949, 29918, 10892, 353, 29871, 29900, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 361, 298, 1360, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29926, 29962, 353, 319, 2801, 29907, 768, 293, 10262, 29898, 1311, 29889, 1949, 29918, 3859, 29892, 1583, 29889, 1949, 29918, 2467, 29961, 29882, 1402, 29871, 13, 12, 12, 12, 12, 12, 12, 1188, 29918, 4172, 353, 29871, 29900, 29889, 29900, 29892, 4964, 3317, 353, 5852, 29892, 3158, 19832, 353, 5852, 29897, 13, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29926, 29962, 353, 319, 2801, 29907, 768, 293, 10262, 29898, 1311, 29889, 1949, 29918, 3859, 718, 1583, 29889, 1949, 29918, 2467, 29961, 29900, 1402, 1583, 29889, 1949, 29918, 2467, 29961, 29882, 1402, 29871, 13, 12, 12, 12, 12, 12, 12, 1188, 29918, 4172, 353, 29871, 29900, 29889, 29900, 29897, 13, 13, 12, 12, 12, 12, 5753, 29918, 1949, 29918, 2467, 4619, 1583, 29889, 1949, 29918, 2467, 29961, 29882, 29962, 13, 12, 12, 12, 12, 361, 671, 29918, 29883, 6191, 29901, 13, 12, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29926, 1822, 29883, 6191, 580, 13, 13, 12, 12, 1311, 29889, 4381, 29918, 21891, 29918, 10492, 353, 29871, 29896, 29923, 29899, 29946, 13, 12, 12, 1311, 29889, 4381, 29918, 24049, 29918, 3605, 601, 353, 29871, 29900, 29889, 29906, 13, 12, 12, 1311, 29889, 21891, 29918, 10492, 353, 1583, 29889, 4381, 29918, 21891, 29918, 10492, 13, 12, 12, 1311, 29889, 24049, 29918, 3605, 601, 353, 1583, 29889, 4381, 29918, 24049, 29918, 3605, 601, 13, 13, 12, 12, 1311, 29889, 20640, 3950, 353, 5519, 29961, 8516, 29962, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 20640, 3950, 29961, 29882, 3816, 29875, 29962, 353, 5994, 29889, 3253, 314, 29898, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29875, 1822, 16744, 3285, 301, 29878, 29922, 1311, 29889, 21891, 29918, 10492, 29897, 13, 13, 13, 12, 12, 1311, 29889, 3317, 29918, 1524, 362, 353, 29871, 29945, 29900, 29900, 29900, 29900, 13, 13, 12, 12, 1311, 29889, 29893, 29918, 296, 14441, 353, 29871, 29900, 29889, 29900, 29900, 29900, 29896, 13, 13, 12, 12, 1311, 29889, 2083, 29918, 6758, 29918, 7168, 353, 5519, 29900, 29889, 29900, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 29871, 13, 12, 12, 1311, 29889, 2083, 29918, 6758, 29918, 9695, 293, 353, 5519, 29900, 29889, 29900, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 29871, 13, 13, 13, 13, 12, 12, 1311, 29889, 2083, 29918, 12631, 29918, 6758, 29918, 9695, 293, 353, 5519, 29900, 29889, 29900, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 29871, 13, 13, 13, 12, 12, 1311, 29889, 276, 2935, 353, 5159, 13, 12, 12, 1311, 29889, 1949, 7789, 567, 353, 5159, 13, 12, 12, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 886, 353, 5159, 13, 13, 12, 12, 1311, 29889, 2083, 29918, 2457, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 1311, 29889, 3317, 29918, 2457, 353, 448, 29896, 29900, 29889, 29900, 13, 13, 12, 12, 1311, 29889, 3317, 29918, 5080, 19907, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 1311, 29889, 3317, 29918, 5080, 19907, 29918, 1022, 2878, 353, 29871, 29900, 13, 13, 12, 12, 1311, 29889, 3317, 29918, 2457, 29918, 1022, 2878, 353, 29871, 29896, 13, 13, 12, 12, 1311, 29889, 29873, 293, 353, 931, 29889, 2230, 580, 13, 13, 12, 12, 1311, 29889, 1022, 275, 2631, 353, 5519, 29961, 29934, 29940, 8186, 12907, 7701, 580, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 12, 12, 1311, 29889, 12631, 29918, 1022, 275, 2631, 353, 5519, 29961, 29934, 29940, 8186, 12907, 7701, 580, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 308, 13, 12, 12, 1311, 29889, 2248, 1762, 6779, 29928, 293, 353, 426, 29900, 29901, 29900, 29892, 29871, 29896, 29901, 29900, 29913, 13, 13, 12, 12, 1311, 29889, 1445, 2798, 353, 29871, 29900, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 353, 518, 29900, 29892, 29871, 29900, 29962, 13, 13, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29918, 271, 29918, 28111, 353, 518, 29900, 29892, 29871, 29900, 29962, 13, 13, 12, 12, 1311, 29889, 12071, 29918, 3149, 353, 518, 29900, 14178, 29945, 13, 13, 12, 12, 1311, 29889, 6272, 29889, 29879, 18398, 1666, 1691, 580, 13, 13, 13, 12, 1753, 2254, 8667, 23785, 29898, 1311, 29892, 2084, 29892, 2248, 1125, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 2248, 29962, 1822, 1359, 29898, 29876, 299, 381, 23097, 29914, 18717, 2084, 29974, 15972, 18717, 710, 29898, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 2248, 29995, 1311, 29889, 1949, 29918, 351, 1237, 2314, 29974, 15972, 18717, 710, 29898, 29882, 7240, 4286, 415, 1495, 13, 12, 12, 361, 2897, 29889, 2084, 29889, 275, 1445, 29898, 29876, 299, 381, 23097, 29914, 29878, 1516, 29889, 1516, 29374, 13, 12, 12, 12, 1311, 29889, 29878, 1516, 29889, 1359, 29898, 29876, 299, 381, 23097, 29914, 29878, 1516, 29889, 1516, 1495, 13, 13, 12, 1753, 4078, 23785, 29898, 1311, 1125, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29875, 1822, 7620, 29898, 29876, 299, 381, 23097, 29914, 18717, 29915, 3784, 29918, 18717, 710, 29898, 29875, 7240, 15972, 18717, 710, 29898, 29882, 7240, 4286, 415, 1495, 13, 13, 12, 12, 12, 361, 1583, 29889, 3317, 29918, 2457, 29918, 1022, 2878, 1275, 1583, 29889, 1949, 29918, 24219, 362, 29901, 13, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29875, 1822, 7620, 29898, 29876, 299, 381, 23097, 29914, 18717, 29915, 3317, 29918, 18717, 710, 29898, 29875, 7240, 15972, 18717, 710, 29898, 29882, 7240, 4286, 415, 1495, 13, 13, 12, 12, 12, 361, 1583, 29889, 1949, 29918, 24219, 362, 29995, 29896, 29900, 29900, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29875, 1822, 7620, 29898, 29876, 299, 381, 23097, 29914, 18717, 710, 29898, 1311, 29889, 1949, 29918, 24219, 362, 7240, 15972, 18717, 710, 29898, 29875, 7240, 15972, 18717, 710, 29898, 29882, 7240, 4286, 415, 1495, 13, 13, 12, 12, 1311, 29889, 29878, 1516, 29889, 7620, 29898, 29876, 299, 381, 23097, 29914, 29878, 1516, 29889, 1516, 1495, 13, 13, 13, 12, 1753, 1409, 1762, 6716, 28917, 12877, 29898, 29876, 862, 29878, 1125, 13, 12, 12, 2914, 353, 7442, 29889, 2378, 29898, 1761, 29898, 9302, 29889, 8552, 29898, 29876, 862, 29878, 4961, 13, 12, 12, 1454, 10823, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 22164, 13, 12, 12, 12, 1454, 25569, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 29961, 14748, 12622, 29901, 13, 12, 12, 12, 12, 3317, 3220, 353, 29871, 29900, 13, 12, 12, 12, 12, 3317, 1917, 353, 448, 29896, 29900, 29900, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 12622, 29901, 13, 12, 12, 12, 12, 12, 2914, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 353, 29871, 29900, 29889, 29900, 13, 12, 12, 12, 12, 12, 361, 302, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 1405, 4236, 1917, 29901, 13, 12, 12, 12, 12, 12, 12, 3317, 1917, 353, 302, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 3317, 3220, 353, 474, 13, 12, 12, 12, 12, 2914, 29961, 14748, 3816, 29879, 433, 1960, 3816, 3317, 3220, 29962, 353, 29871, 29896, 29889, 29900, 13, 12, 12, 2457, 1121, 13, 13, 13, 12, 1753, 5706, 4300, 2187, 29898, 1311, 1125, 13, 12, 12, 1311, 29889, 2083, 29918, 2457, 353, 29871, 29900, 29936, 13, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 353, 29871, 29900, 29936, 13, 12, 12, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 292, 353, 29871, 29900, 29936, 13, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 353, 518, 29900, 29892, 29871, 29900, 29962, 13, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29918, 271, 29918, 28111, 353, 518, 29900, 29892, 29871, 29900, 29962, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 2380, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 2248, 29962, 353, 29871, 29900, 13, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 12631, 29918, 23583, 29961, 29882, 3816, 2248, 29962, 353, 29871, 29900, 13, 13, 12, 12, 1311, 29889, 12071, 29918, 3149, 353, 518, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29962, 13, 13, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 353, 518, 518, 2636, 363, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 12, 12, 1311, 29889, 7827, 29918, 12631, 29918, 1022, 275, 2631, 353, 518, 518, 2636, 363, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 4638, 13, 13, 12, 12, 28631, 353, 5519, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 13, 12, 12, 7387, 353, 5519, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 13, 12, 12, 276, 2935, 353, 5519, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 13, 12, 12, 5753, 29934, 809, 3163, 353, 5519, 29900, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 13, 13, 12, 12, 28631, 29918, 29882, 353, 7442, 29889, 2378, 4197, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 29897, 2314, 13, 12, 12, 7387, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29961, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 29897, 2314, 13, 12, 12, 1188, 771, 5824, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29961, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 29897, 2314, 13, 12, 12, 5975, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29961, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 4638, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 29897, 2314, 13, 12, 12, 275, 29918, 4548, 417, 7018, 353, 7442, 29889, 2378, 4197, 8516, 363, 903, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 29897, 2314, 13, 12, 12, 13, 12, 12, 23031, 29911, 6072, 353, 518, 8824, 14178, 1311, 29889, 1949, 29918, 29879, 433, 1960, 13, 13, 12, 12, 265, 29943, 5059, 27175, 7032, 353, 518, 8824, 14178, 1311, 29889, 1949, 29918, 29879, 433, 1960, 13, 13, 12, 12, 18821, 630, 353, 518, 8824, 14178, 1311, 29889, 1949, 29918, 29879, 433, 1960, 29930, 1311, 29889, 1949, 29918, 351, 1237, 13, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 28631, 29961, 29875, 3816, 29926, 29962, 353, 1583, 29889, 6272, 29889, 657, 2792, 29898, 29926, 29892, 29875, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 13, 12, 12, 28631, 353, 7442, 29889, 2378, 29898, 28631, 29897, 13, 12, 12, 28631, 7503, 29892, 29901, 29892, 13018, 29945, 29962, 353, 1583, 29889, 29878, 1516, 29889, 7302, 29898, 28631, 7503, 29892, 29901, 29892, 13018, 29945, 2314, 13, 12, 12, 13168, 353, 5922, 7503, 29892, 29901, 6653, 29945, 17531, 13, 13, 12, 12, 21891, 19409, 353, 29871, 29900, 13, 12, 12, 14318, 29928, 293, 353, 426, 29900, 29901, 29871, 29900, 29892, 29871, 29896, 29901, 29871, 29900, 29913, 13, 13, 12, 12, 2997, 29918, 10568, 353, 29871, 29900, 13, 12, 12, 11808, 353, 29871, 29900, 13, 13, 12, 12, 1753, 1409, 1762, 6716, 28917, 12877, 3047, 21529, 29898, 29876, 862, 29878, 1125, 13, 12, 12, 12, 2914, 353, 7442, 29889, 2378, 29898, 1761, 29898, 9302, 29889, 8552, 29898, 29876, 862, 29878, 4961, 13, 13, 12, 12, 12, 1454, 10823, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 22164, 13, 12, 12, 12, 12, 1454, 25569, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 29961, 14748, 12622, 29901, 13, 12, 12, 12, 12, 12, 3317, 3220, 353, 29871, 29900, 13, 12, 12, 12, 12, 12, 3317, 1917, 353, 448, 29896, 29900, 29900, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 12622, 29901, 13, 12, 12, 12, 12, 12, 12, 2914, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 353, 29871, 29900, 29889, 29900, 13, 12, 12, 12, 12, 12, 12, 361, 302, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 1405, 4236, 1917, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 3317, 1917, 353, 302, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 12, 3317, 3220, 353, 474, 13, 12, 12, 12, 12, 12, 3317, 3220, 353, 1583, 29889, 6272, 29889, 842, 4276, 1542, 29898, 3317, 3220, 29892, 25569, 29892, 10823, 29897, 13, 12, 12, 12, 12, 12, 2914, 29961, 14748, 3816, 29879, 433, 1960, 3816, 3317, 3220, 29962, 353, 29871, 29896, 29889, 29900, 13, 12, 12, 12, 2457, 1121, 13, 13, 12, 12, 1753, 1409, 1762, 29636, 279, 12877, 3047, 21529, 29898, 29876, 862, 29878, 29892, 338, 4373, 1125, 13, 12, 12, 12, 7382, 353, 7442, 29889, 2378, 29898, 1761, 29898, 9302, 29889, 8552, 29898, 29876, 862, 29878, 4961, 13, 12, 12, 12, 7382, 24111, 353, 7442, 29889, 12181, 29898, 7382, 29897, 13, 12, 12, 12, 19529, 279, 12877, 24111, 353, 1051, 29898, 7382, 24111, 29897, 13, 12, 12, 12, 19529, 279, 12877, 24111, 29961, 29906, 29962, 353, 29871, 29896, 13, 13, 12, 12, 12, 2914, 353, 7442, 29889, 3298, 359, 29898, 19529, 279, 12877, 24111, 416, 13, 13, 12, 12, 12, 2914, 29918, 650, 28917, 353, 7442, 29889, 2378, 29898, 1761, 29898, 9302, 29889, 8552, 29898, 29876, 862, 29878, 4961, 13, 13, 12, 12, 12, 650, 28917, 12877, 24111, 353, 1051, 29898, 7382, 24111, 29897, 13, 12, 12, 12, 650, 28917, 12877, 24111, 29961, 29906, 29962, 353, 1583, 29889, 1949, 29918, 2467, 29918, 8768, 13, 13, 12, 12, 12, 2914, 29918, 650, 28917, 353, 7442, 29889, 3298, 359, 29898, 650, 28917, 12877, 24111, 29897, 13, 13, 12, 12, 12, 1454, 10823, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 22164, 13, 12, 12, 12, 12, 1454, 25569, 297, 3464, 29898, 2435, 29898, 29876, 862, 29878, 29961, 14748, 12622, 29901, 13, 12, 12, 12, 12, 12, 3317, 3220, 353, 29871, 29900, 13, 12, 12, 12, 12, 12, 3317, 1917, 353, 448, 29896, 29900, 29900, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 2467, 29918, 8768, 1125, 13, 12, 12, 12, 12, 12, 12, 2914, 29918, 650, 28917, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 353, 29871, 29900, 29889, 29900, 13, 12, 12, 12, 12, 12, 12, 361, 302, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 1405, 4236, 1917, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 3317, 1917, 353, 302, 862, 29878, 29961, 14748, 3816, 29879, 433, 1960, 3816, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 12, 3317, 3220, 353, 474, 13, 12, 12, 12, 12, 12, 3317, 3220, 353, 1583, 29889, 6272, 29889, 842, 4276, 1542, 29898, 3317, 3220, 29892, 25569, 29892, 10823, 29892, 338, 4373, 29897, 13, 12, 12, 12, 12, 12, 2914, 29961, 14748, 3816, 29879, 433, 1960, 29962, 353, 4236, 3220, 13, 12, 12, 12, 12, 12, 2914, 29918, 650, 28917, 29961, 14748, 3816, 29879, 433, 1960, 3816, 3317, 3220, 29962, 353, 29871, 29896, 29889, 29900, 13, 13, 12, 12, 12, 2457, 1121, 29892, 1121, 29918, 650, 28917, 13, 13, 13, 12, 12, 1753, 679, 4276, 1542, 4591, 12877, 29898, 2003, 1125, 13, 12, 12, 12, 3317, 3220, 353, 29871, 29900, 13, 12, 12, 12, 3317, 1917, 353, 448, 29896, 29900, 29900, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 2003, 22164, 13, 12, 12, 12, 12, 361, 9649, 29961, 29875, 29962, 1275, 29871, 29896, 29901, 13, 12, 12, 12, 12, 12, 2457, 474, 13, 12, 12, 12, 2158, 703, 16804, 2743, 297, 9649, 1159, 13, 12, 12, 12, 2158, 29898, 2003, 29897, 13, 12, 12, 12, 2457, 29871, 29900, 13, 13, 12, 12, 1753, 679, 13992, 296, 29934, 809, 538, 29898, 29876, 862, 29878, 1125, 13, 12, 12, 12, 7915, 353, 29871, 29896, 29889, 29900, 29936, 13, 12, 12, 12, 7382, 24111, 353, 1051, 29898, 9302, 29889, 12181, 29898, 29876, 862, 29878, 876, 13, 12, 12, 12, 7382, 24111, 29961, 29906, 29962, 353, 29871, 29896, 13, 12, 12, 12, 29937, 8297, 580, 13, 12, 12, 12, 29937, 6876, 29898, 29900, 29897, 13, 12, 12, 12, 2914, 353, 7442, 29889, 3298, 359, 29898, 7382, 24111, 29897, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 2914, 22164, 13, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 2435, 29898, 2914, 29961, 29875, 12622, 29901, 13, 12, 12, 12, 12, 12, 2914, 29961, 29875, 3816, 29926, 29962, 29871, 353, 7688, 334, 29871, 29896, 29889, 29900, 29914, 9302, 29889, 3676, 29898, 29896, 29945, 29945, 29947, 29889, 29945, 11877, 9302, 29889, 4548, 6278, 29900, 29889, 29945, 29930, 9302, 29889, 6333, 29898, 29876, 862, 29878, 29961, 29875, 3816, 29926, 1402, 302, 862, 29878, 29961, 29875, 3816, 29926, 12622, 13, 13, 12, 12, 12, 2457, 1121, 13, 13, 12, 12, 29882, 29918, 29879, 18398, 353, 518, 8516, 14178, 1311, 29889, 1949, 29918, 351, 1237, 13, 13, 12, 12, 8000, 5852, 29901, 13, 12, 12, 12, 11808, 4619, 29871, 29896, 13, 12, 12, 12, 361, 6795, 29995, 29896, 29900, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 2158, 877, 5425, 29924, 584, 6571, 4286, 4830, 29898, 2997, 29918, 10568, 511, 355, 2433, 29905, 29878, 1495, 13, 13, 12, 12, 12, 12631, 29934, 20819, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 12, 1509, 6026, 2580, 292, 353, 5852, 13, 12, 12, 12, 29937, 5706, 9558, 310, 937, 6128, 496, 29891, 13, 13, 12, 12, 12, 29874, 29918, 5721, 29918, 29879, 18398, 353, 518, 8516, 14178, 1311, 29889, 1949, 29918, 351, 1237, 13, 12, 12, 12, 29894, 29918, 29879, 18398, 353, 518, 8516, 14178, 1311, 29889, 1949, 29918, 351, 1237, 13, 13, 12, 12, 12, 361, 6795, 29995, 1311, 29889, 1853, 29943, 7971, 1275, 29871, 29896, 29901, 13, 12, 12, 12, 12, 28631, 29918, 29882, 29961, 29900, 29962, 353, 7442, 29889, 8552, 29898, 28631, 29897, 13, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 29874, 29918, 5721, 29918, 29879, 18398, 29918, 14748, 29892, 29894, 29918, 29879, 18398, 29918, 14748, 353, 320, 13, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 5182, 29918, 4299, 29961, 29900, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 11333, 29898, 29911, 6073, 29898, 28631, 29918, 29882, 29961, 29900, 3816, 29875, 12622, 13, 12, 12, 12, 12, 12, 12, 29874, 29918, 5721, 29918, 29879, 18398, 29961, 29875, 29962, 353, 263, 29918, 5721, 29918, 29879, 18398, 29918, 14748, 13, 12, 12, 12, 12, 12, 12, 29894, 29918, 29879, 18398, 29961, 29875, 29962, 353, 325, 29918, 29879, 18398, 29918, 14748, 13, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 29962, 353, 263, 29918, 5721, 29918, 29879, 18398, 29961, 29875, 1822, 11249, 2141, 21970, 2141, 4801, 496, 2141, 23749, 2141, 29879, 802, 29872, 911, 2141, 29879, 802, 29872, 911, 890, 13, 12, 12, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 3816, 29900, 29901, 29906, 29962, 353, 1583, 29889, 6272, 29889, 657, 12521, 1621, 4276, 1542, 29898, 29926, 29892, 29875, 29897, 13, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 1188, 771, 5824, 29918, 29882, 29961, 29900, 3816, 29875, 29962, 353, 263, 29918, 5721, 29918, 29879, 18398, 29961, 29875, 1822, 1188, 29918, 22795, 29898, 29911, 6073, 29898, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 12622, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 29889, 21970, 2141, 4801, 496, 2141, 23749, 2141, 690, 14443, 6278, 29896, 416, 13, 12, 12, 12, 12, 12, 12, 5975, 29918, 29882, 29961, 29900, 3816, 29875, 29962, 353, 325, 29918, 29879, 18398, 29961, 29875, 1822, 21970, 2141, 4801, 496, 2141, 23749, 2141, 690, 14443, 6278, 29896, 416, 13, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 2951, 29943, 5059, 27175, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29874, 29918, 5721, 29892, 29918, 353, 1583, 29889, 5182, 29918, 4299, 29961, 29900, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 11333, 1194, 13, 12, 12, 12, 12, 12, 12, 12, 12, 29911, 6073, 4197, 28631, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 5262, 511, 1311, 29889, 4172, 17185, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 29962, 353, 5694, 29918, 29874, 29918, 5721, 29889, 11249, 2141, 21970, 2141, 4801, 496, 2141, 23749, 580, 13, 12, 12, 12, 12, 12, 12, 12, 1188, 771, 5824, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 29962, 353, 5694, 29918, 29874, 29918, 5721, 29889, 1188, 29918, 22795, 29898, 29911, 6073, 29898, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 2314, 467, 21970, 2141, 4801, 496, 2141, 23749, 2141, 690, 14443, 6278, 29896, 9601, 29900, 29962, 13, 12, 13, 13, 12, 12, 12, 7387, 29918, 29883, 353, 7442, 29889, 2378, 29898, 1761, 29898, 9302, 29889, 8552, 29898, 7387, 29918, 29882, 29961, 29900, 29962, 4961, 13, 13, 12, 12, 12, 7387, 29918, 29883, 353, 8820, 29918, 29883, 7503, 29892, 29901, 6653, 1311, 29889, 1949, 29918, 29883, 17531, 13, 13, 12, 12, 12, 7387, 29918, 29900, 29918, 19529, 279, 353, 6213, 13, 12, 12, 12, 7387, 29918, 29900, 29918, 650, 28917, 353, 6213, 13, 12, 12, 12, 1509, 6026, 2580, 292, 353, 7700, 13, 13, 12, 12, 12, 361, 6795, 29995, 1311, 29889, 1853, 29943, 7971, 1275, 29871, 29896, 29901, 13, 12, 12, 12, 12, 7387, 29918, 29900, 29918, 19529, 279, 29892, 8820, 29918, 29900, 29918, 650, 28917, 353, 1409, 1762, 29636, 279, 12877, 3047, 21529, 29898, 7387, 29918, 29882, 29961, 29900, 1402, 5852, 29897, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 7387, 29918, 29900, 29918, 19529, 279, 29892, 8820, 29918, 29900, 29918, 650, 28917, 353, 1409, 1762, 29636, 279, 12877, 3047, 21529, 29898, 7387, 29918, 29882, 29961, 29900, 1402, 7700, 29897, 13, 13, 12, 12, 12, 2467, 29918, 17987, 292, 29918, 2873, 353, 7442, 29889, 2873, 29898, 9302, 29889, 12181, 29898, 28631, 29918, 29882, 29961, 29900, 11724, 29881, 1853, 29922, 9302, 29889, 7411, 29941, 29906, 29897, 13, 13, 12, 12, 12, 361, 671, 6026, 2580, 292, 29901, 13, 12, 12, 12, 12, 7387, 29918, 29900, 29918, 650, 28917, 353, 8820, 29918, 29900, 29918, 650, 28917, 29930, 29900, 13, 12, 12, 12, 12, 2467, 29918, 17987, 292, 29918, 2873, 353, 29871, 29900, 29889, 29945, 334, 3158, 29918, 17987, 292, 29918, 2873, 29930, 7387, 29918, 29900, 29918, 19529, 279, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 2467, 29918, 17987, 292, 29918, 2873, 353, 29871, 29900, 29889, 29900, 334, 3158, 29918, 17987, 292, 29918, 2873, 29930, 7387, 29918, 29900, 29918, 19529, 279, 13, 13, 12, 12, 12, 29937, 5706, 9558, 310, 1473, 6128, 496, 29891, 13, 12, 12, 12, 1454, 298, 297, 3464, 29898, 29896, 29892, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 361, 298, 1275, 29871, 29896, 29901, 13, 12, 12, 12, 12, 12, 17987, 287, 2792, 353, 5922, 29974, 2467, 29918, 17987, 292, 29918, 2873, 13, 12, 12, 12, 12, 12, 28631, 29918, 29882, 29961, 29882, 29962, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 17987, 287, 2792, 29892, 8820, 29918, 29900, 29918, 650, 28917, 511, 9685, 29922, 29906, 29897, 13, 13, 12, 12, 12, 12, 29874, 29918, 5721, 29918, 29879, 18398, 353, 518, 8516, 14178, 1311, 29889, 1949, 29918, 351, 1237, 13, 12, 12, 12, 12, 29894, 29918, 29879, 18398, 353, 518, 8516, 14178, 1311, 29889, 1949, 29918, 351, 1237, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 29874, 29918, 5721, 29918, 29879, 18398, 29918, 14748, 29892, 29894, 29918, 29879, 18398, 29918, 14748, 353, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 11333, 1194, 13, 12, 12, 12, 12, 12, 12, 12, 29911, 6073, 4197, 28631, 29918, 29882, 29961, 29882, 3816, 29875, 5262, 876, 13, 12, 12, 12, 12, 12, 12, 29874, 29918, 5721, 29918, 29879, 18398, 29961, 29875, 29962, 353, 263, 29918, 5721, 29918, 29879, 18398, 29918, 14748, 13, 12, 12, 12, 12, 12, 12, 29894, 29918, 29879, 18398, 29961, 29875, 29962, 353, 325, 29918, 29879, 18398, 29918, 14748, 13, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29882, 3816, 29875, 29962, 353, 263, 29918, 5721, 29918, 29879, 18398, 29961, 29875, 1822, 11249, 2141, 21970, 2141, 4801, 496, 2141, 23749, 2141, 29879, 802, 29872, 911, 2141, 29879, 802, 29872, 911, 890, 13, 13, 12, 12, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 2158, 703, 1220, 29953, 29906, 29947, 1159, 13, 12, 12, 12, 12, 12, 12, 12, 12, 13322, 29898, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 7099, 6797, 4276, 16570, 353, 1583, 29889, 6272, 29889, 657, 12521, 1621, 4276, 16570, 29898, 29926, 29892, 29875, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 26716, 4276, 16570, 29892, 903, 353, 1583, 29889, 2467, 8566, 6119, 29889, 12508, 29898, 29911, 6073, 29898, 7099, 6797, 4276, 16570, 876, 13, 12, 12, 12, 12, 12, 12, 12, 12, 26716, 4276, 16570, 29922, 18511, 4276, 16570, 29889, 21970, 2141, 4801, 496, 2141, 23749, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 29962, 353, 18511, 4276, 16570, 13, 13, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 1188, 771, 5824, 29918, 29882, 29961, 29882, 3816, 29875, 29962, 353, 263, 29918, 5721, 29918, 29879, 18398, 29961, 29875, 1822, 1188, 29918, 22795, 29898, 29911, 6073, 29898, 7387, 29918, 29882, 29961, 29882, 3816, 29875, 12622, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 29889, 21970, 2141, 4801, 496, 2141, 23749, 2141, 690, 14443, 6278, 29896, 416, 13, 12, 12, 12, 12, 12, 12, 5975, 29918, 29882, 29961, 29882, 3816, 29875, 29962, 353, 325, 29918, 29879, 18398, 29961, 29875, 1822, 21970, 2141, 4801, 496, 2141, 23749, 2141, 690, 14443, 6278, 29896, 416, 13, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 2951, 29943, 5059, 27175, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29874, 29918, 5721, 29892, 29918, 353, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 11333, 1194, 13, 12, 12, 12, 12, 12, 12, 12, 12, 29911, 6073, 4197, 28631, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 5262, 511, 1311, 29889, 4172, 17185, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 29962, 353, 5694, 29918, 29874, 29918, 5721, 29889, 11249, 2141, 21970, 2141, 4801, 496, 2141, 23749, 580, 13, 12, 12, 12, 12, 12, 12, 12, 1188, 771, 5824, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 29962, 353, 5694, 29918, 29874, 29918, 5721, 29889, 1188, 29918, 22795, 29898, 29911, 6073, 29898, 7387, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 467, 21970, 2141, 4801, 496, 2141, 23749, 2141, 690, 14443, 6278, 29896, 9601, 29900, 29962, 13, 13, 13, 12, 12, 12, 7387, 13992, 296, 353, 7442, 29889, 2378, 29898, 1761, 29898, 7387, 29918, 29882, 29961, 29896, 12622, 13, 12, 12, 12, 7387, 13992, 296, 29934, 809, 538, 353, 679, 13992, 296, 29934, 809, 538, 29898, 7387, 13992, 296, 29897, 13, 12, 12, 12, 29937, 8297, 580, 13, 12, 12, 12, 29937, 6876, 29898, 29900, 29897, 13, 12, 12, 12, 7387, 13992, 296, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 7387, 29918, 29900, 29918, 650, 28917, 29892, 8820, 13992, 296, 511, 9685, 353, 29906, 29897, 13, 13, 12, 12, 12, 13808, 24111, 353, 1051, 29898, 9302, 29889, 12181, 29898, 7387, 13992, 296, 876, 13, 12, 12, 12, 13808, 24111, 29961, 29906, 29962, 353, 29871, 29896, 29953, 13, 12, 12, 12, 7387, 6185, 6797, 353, 9302, 29889, 6310, 29898, 13808, 24111, 29892, 29881, 1853, 29922, 9302, 29889, 7411, 29941, 29906, 29897, 13, 13, 12, 12, 12, 7387, 6185, 6797, 353, 1583, 29889, 2467, 6185, 6119, 29889, 13808, 29898, 29911, 6073, 29898, 7387, 13992, 296, 8106, 21970, 2141, 4801, 496, 2141, 23749, 580, 13, 13, 12, 12, 12, 29937, 363, 474, 297, 3464, 29898, 2435, 29898, 7387, 13992, 296, 22164, 13, 12, 12, 12, 29937, 29871, 12, 1454, 432, 297, 3464, 29898, 2435, 29898, 7387, 13992, 296, 29961, 29875, 12622, 29901, 13, 12, 12, 12, 29937, 29871, 12, 12, 2764, 4276, 1542, 353, 938, 29898, 7387, 29918, 29900, 29918, 19529, 279, 29961, 29875, 3816, 29926, 3816, 29900, 2314, 13, 12, 12, 12, 29937, 29871, 12, 12, 7387, 6185, 6797, 29961, 29875, 3816, 29926, 29962, 353, 1583, 29889, 2467, 6185, 397, 414, 29961, 2764, 4276, 1542, 1822, 13808, 29898, 29911, 6073, 29898, 7387, 13992, 296, 29961, 29875, 3816, 29926, 2314, 467, 21970, 2141, 4801, 496, 2141, 23749, 580, 13, 13, 12, 12, 12, 6272, 26525, 353, 8820, 6185, 6797, 13, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 13, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 842, 4276, 29898, 6272, 26525, 29961, 29875, 3816, 29926, 1402, 432, 29892, 474, 416, 13, 13, 12, 12, 12, 1311, 29889, 6272, 29889, 24530, 4178, 26222, 580, 13, 13, 12, 12, 12, 13707, 29918, 542, 2764, 353, 518, 8824, 14178, 1311, 29889, 1949, 29918, 29879, 433, 1960, 13, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 361, 451, 1583, 29889, 6272, 29889, 275, 2951, 27175, 7032, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 29937, 8297, 580, 13, 12, 12, 12, 12, 12, 12, 12, 29937, 6876, 29898, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 276, 2935, 29961, 29875, 3816, 29926, 29962, 353, 1583, 29889, 6272, 29889, 657, 29934, 809, 538, 29898, 29926, 29892, 474, 29892, 5852, 29897, 718, 8820, 13992, 296, 29934, 809, 538, 29961, 29875, 3816, 29926, 3816, 29900, 29962, 13, 12, 12, 12, 12, 12, 12, 12, 361, 6795, 29995, 1311, 29889, 1853, 29943, 7971, 1275, 29871, 29896, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 353, 337, 2935, 29961, 29875, 3816, 29926, 29962, 13, 12, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 4619, 337, 2935, 29961, 29875, 3816, 29926, 29962, 13, 13, 12, 12, 12, 12, 12, 12, 12, 361, 7442, 29889, 1384, 29898, 9302, 29889, 275, 13707, 29898, 276, 2935, 29961, 29875, 3816, 29926, 12622, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 8297, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 6876, 29898, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 13707, 29918, 542, 2764, 29961, 29926, 29962, 353, 5852, 13, 12, 12, 12, 12, 12, 12, 12, 361, 7442, 29889, 1384, 29898, 9302, 29889, 275, 13707, 29898, 28631, 29961, 29875, 3816, 29926, 12622, 470, 7442, 29889, 1384, 29898, 9302, 29889, 275, 13707, 29898, 6272, 26525, 29961, 29875, 3816, 29926, 12622, 470, 7442, 29889, 1384, 29898, 9302, 29889, 275, 13707, 29898, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 12622, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 8297, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 6876, 29898, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 13707, 29918, 542, 2764, 29961, 29926, 29962, 353, 5852, 13, 13, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 361, 451, 373, 29943, 5059, 27175, 7032, 29961, 29926, 5387, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 2083, 29918, 2457, 4619, 337, 2935, 29961, 29875, 3816, 29926, 29962, 448, 8820, 13992, 296, 29934, 809, 538, 29961, 29875, 3816, 29926, 3816, 29900, 29962, 13, 13, 12, 12, 12, 12, 12, 12, 12, 361, 1035, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 6736, 29871, 29896, 29889, 29900, 322, 451, 1583, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 17987, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 13322, 29898, 29900, 29897, 13, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 361, 451, 1583, 29889, 6272, 29889, 275, 2951, 27175, 7032, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 361, 23432, 29918, 542, 2764, 29961, 29926, 29962, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 12631, 29918, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 12631, 29918, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 2158, 703, 13707, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 12, 12, 12, 12, 12, 12, 29937, 1596, 703, 265, 6571, 1642, 4830, 29898, 29926, 2483, 13, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 29879, 18398, 27175, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 842, 27175, 3981, 29898, 1311, 29889, 12071, 18984, 29899, 11808, 29995, 1311, 29889, 1853, 29943, 7971, 29892, 432, 416, 13, 12, 12, 12, 12, 12, 12, 23031, 29911, 6072, 29961, 29926, 29962, 353, 4036, 29889, 8172, 580, 29966, 12631, 29934, 20819, 13, 13, 12, 12, 12, 12, 12, 2870, 29901, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 29937, 1244, 451, 5545, 1101, 12631, 13, 12, 12, 12, 12, 12, 12, 361, 451, 373, 29943, 5059, 27175, 7032, 29961, 29926, 5387, 13, 12, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 361, 7431, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29900, 3816, 29926, 3816, 29875, 1822, 1272, 29897, 1405, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 298, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 565, 313, 1311, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 322, 451, 1583, 29889, 6272, 29889, 275, 2481, 3744, 29898, 29926, 876, 470, 6795, 29995, 1311, 29889, 1853, 29943, 7971, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 313, 1311, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 322, 451, 1583, 29889, 6272, 29889, 275, 2481, 3744, 29898, 29926, 22164, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 17314, 4308, 26023, 353, 1583, 29889, 6272, 29889, 657, 29903, 10511, 4308, 26023, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 7160, 4308, 26023, 5277, 29871, 29953, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 8690, 29936, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1767, 11995, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 313, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29878, 718, 1583, 29889, 4283, 29930, 5975, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1767, 11995, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 313, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29878, 718, 1583, 29889, 4283, 29930, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 6425, 29898, 24495, 2392, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 29871, 29906, 29889, 29900, 29930, 12248, 29898, 24495, 2392, 29892, 29871, 29896, 29889, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 1375, 29898, 24495, 2392, 29892, 29871, 29900, 29889, 29929, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 4036, 29889, 8172, 580, 29966, 24495, 2392, 584, 29871, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 842, 1762, 29943, 5059, 2792, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 265, 29943, 5059, 27175, 7032, 29961, 29926, 29962, 353, 5852, 29936, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 29918, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 298, 29918, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 2314, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1035, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 6736, 29871, 29896, 29889, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 292, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 4230, 23215, 552, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 14352, 29898, 29896, 29974, 524, 29898, 17314, 4308, 26023, 29914, 1311, 29889, 1853, 29943, 7971, 28166, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 29889, 4397, 29898, 4230, 23215, 552, 29897, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 276, 2935, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 2314, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 4230, 23215, 552, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 14352, 29898, 29896, 29974, 17314, 4308, 26023, 4638, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 29889, 4397, 29898, 4230, 23215, 552, 29897, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29882, 29962, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 12071, 29918, 3149, 29961, 524, 29898, 7387, 29918, 29900, 29918, 19529, 279, 29961, 29875, 3816, 29926, 3816, 29900, 2314, 29962, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 584, 29871, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29918, 271, 29918, 28111, 29961, 29882, 29962, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 6773, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 565, 313, 1311, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 322, 451, 1583, 29889, 6272, 29889, 275, 2481, 3744, 29898, 29926, 876, 470, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 313, 1311, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 322, 451, 1583, 29889, 6272, 29889, 275, 2481, 3744, 29898, 29926, 22164, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 17314, 4308, 26023, 353, 1583, 29889, 6272, 29889, 657, 29903, 10511, 4308, 26023, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 7160, 4308, 26023, 5277, 29871, 29953, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 8690, 29936, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1767, 11995, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 313, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29878, 718, 1583, 29889, 4283, 29930, 5975, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1767, 11995, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 313, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29878, 718, 1583, 29889, 4283, 29930, 276, 2935, 29961, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 6425, 29898, 24495, 2392, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 29871, 29906, 29889, 29900, 29930, 12248, 29898, 24495, 2392, 29892, 29871, 29896, 29889, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 24495, 2392, 353, 1375, 29898, 24495, 2392, 29892, 29871, 29900, 29889, 29929, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 4036, 29889, 8172, 580, 29966, 24495, 2392, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 842, 1762, 29943, 5059, 2792, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 265, 29943, 5059, 27175, 7032, 29961, 29926, 29962, 353, 5852, 29936, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 29918, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 298, 29918, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 2314, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1035, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 6736, 29871, 29896, 29889, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 292, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 4230, 23215, 552, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 14352, 29898, 29896, 29974, 524, 29898, 17314, 4308, 26023, 29914, 1311, 29889, 1853, 29943, 7971, 28166, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 29889, 4397, 29898, 4230, 23215, 552, 29897, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 276, 2935, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 29918, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 29918, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 2314, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 4230, 23215, 552, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 14352, 29898, 29896, 29974, 17314, 4308, 26023, 4638, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 29918, 3816, 29926, 3816, 29875, 1822, 1272, 29889, 4397, 29898, 4230, 23215, 552, 29897, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29882, 29962, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 12071, 29918, 3149, 29961, 524, 29898, 7387, 29918, 29900, 29918, 19529, 279, 29961, 29875, 3816, 29926, 3816, 29900, 2314, 29962, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 584, 29871, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29918, 271, 29918, 28111, 29961, 29882, 29962, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 361, 373, 29943, 5059, 27175, 7032, 29961, 29926, 29962, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 361, 6795, 29995, 1311, 29889, 1853, 29943, 7971, 2804, 29871, 29896, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 19878, 13, 13, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 29943, 5059, 2792, 29898, 29926, 29897, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 373, 29943, 5059, 27175, 7032, 29961, 29926, 29962, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 265, 29943, 5059, 27175, 7032, 29961, 29926, 29962, 353, 7700, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 8000, 7431, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29900, 3816, 29926, 3816, 29875, 1822, 1272, 29897, 5961, 29896, 29906, 29900, 29914, 1311, 29889, 1853, 29943, 7971, 334, 29871, 29946, 29897, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29900, 3816, 29926, 3816, 29875, 1822, 7323, 1563, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 8000, 7431, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29896, 3816, 29926, 3816, 29875, 1822, 1272, 15410, 29896, 29906, 29896, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29896, 3816, 29926, 3816, 29875, 1822, 7323, 1563, 580, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29900, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 7431, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29900, 3816, 29926, 3816, 29875, 1822, 1272, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29896, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 7431, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29896, 3816, 29926, 3816, 29875, 1822, 1272, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2997, 29918, 10568, 4619, 29871, 7431, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29896, 3816, 29926, 3816, 29875, 1822, 1272, 29897, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2997, 29918, 10568, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 7387, 29918, 29882, 29961, 29900, 3816, 29875, 3816, 29926, 29962, 353, 1583, 29889, 1022, 275, 2631, 29961, 29900, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29874, 13, 13, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 29888, 5059, 27175, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 23031, 29911, 6072, 29961, 29926, 29962, 353, 4036, 29889, 8172, 580, 29966, 12631, 29934, 20819, 13, 13, 12, 12, 12, 12, 12, 12, 23681, 1583, 29889, 6272, 29889, 275, 14343, 979, 2792, 29898, 29926, 29897, 338, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 298, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 2951, 29943, 5059, 27175, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29879, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29879, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29874, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29874, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29878, 353, 1035, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 1767, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1767, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 1188, 22795, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1188, 22795, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 7323, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 7382, 29918, 29879, 29892, 5694, 29918, 29874, 29892, 5694, 29918, 29878, 29892, 5694, 29918, 1767, 29892, 5694, 29918, 1188, 22795, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1035, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 6736, 29871, 29896, 29889, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 292, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 276, 2935, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2997, 29918, 10568, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 29879, 18398, 27175, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 23031, 29911, 6072, 29961, 29926, 29962, 353, 4036, 29889, 8172, 580, 29966, 12631, 29934, 20819, 13, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 842, 27175, 3981, 29898, 1311, 29889, 12071, 18984, 29899, 11808, 29995, 1311, 29889, 1853, 29943, 7971, 29892, 432, 416, 13, 13, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 298, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 6795, 29995, 1311, 29889, 1853, 29943, 7971, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1583, 29889, 6272, 29889, 275, 2951, 29943, 5059, 27175, 29898, 29926, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 29937, 1596, 703, 29896, 29896, 29896, 1159, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29879, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29879, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29874, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 29874, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 29878, 353, 1035, 29934, 809, 3163, 29961, 29875, 3816, 29926, 29962, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 1767, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1767, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 7382, 29918, 1188, 22795, 353, 1583, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 657, 8897, 1469, 2141, 1188, 22795, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 7323, 580, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 7382, 29918, 29879, 29892, 5694, 29918, 29874, 29892, 5694, 29918, 29878, 29892, 5694, 29918, 1767, 29892, 5694, 29918, 1188, 22795, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 5753, 29934, 809, 3163, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2870, 584, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 1822, 5910, 29898, 28631, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 8820, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 29905, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 276, 2935, 29961, 29875, 3816, 29926, 1402, 1819, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 1402, 1480, 771, 5824, 29918, 29882, 29961, 29882, 3816, 29875, 3816, 29926, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 5262, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 2997, 29918, 10568, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 13, 13, 12, 12, 12, 361, 1887, 29918, 10568, 6736, 1583, 29889, 9040, 29918, 2311, 29901, 13, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 12, 12, 361, 3815, 29928, 293, 29961, 29875, 29962, 1275, 6509, 19409, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 3816, 1311, 29889, 2248, 1762, 6779, 29928, 293, 29961, 29875, 29962, 1822, 4397, 29898, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 2314, 13, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1022, 275, 2631, 29961, 29882, 3816, 29926, 3816, 29875, 29962, 353, 390, 29940, 8186, 12907, 7701, 580, 13, 13, 12, 12, 12, 12, 12, 12, 12, 361, 1101, 29911, 6072, 29961, 29926, 29962, 338, 7700, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 4619, 29871, 29896, 13, 13, 12, 12, 12, 12, 12, 1311, 29889, 6272, 29889, 29879, 18398, 27175, 29898, 29926, 29897, 13, 12, 12, 12, 12, 12, 23031, 29911, 6072, 29961, 29926, 29962, 353, 4036, 29889, 8172, 580, 29966, 12631, 29934, 20819, 13, 12, 12, 12, 12, 8690, 13, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29879, 433, 1960, 1125, 13, 12, 12, 12, 12, 12, 28631, 29961, 29875, 3816, 29926, 29962, 353, 1583, 29889, 6272, 29889, 657, 2792, 29898, 29926, 29892, 29875, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 28631, 353, 7442, 29889, 2378, 29898, 28631, 29897, 13, 12, 12, 12, 28631, 7503, 29892, 29901, 29892, 13018, 29945, 29962, 353, 1583, 29889, 29878, 1516, 29889, 7302, 29898, 28631, 7503, 29892, 29901, 29892, 13018, 29945, 2314, 13, 13, 12, 12, 2158, 877, 5425, 29924, 584, 6571, 4286, 4830, 29898, 2997, 29918, 10568, 876, 13, 13, 13, 12, 1753, 10272, 24495, 392, 12739, 29923, 29898, 1311, 1125, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 2380, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 9040, 29961, 29882, 3816, 2248, 1822, 8551, 580, 13, 13, 12, 12, 12, 12, 1454, 321, 1631, 297, 1583, 29889, 7827, 29918, 1022, 275, 2631, 29961, 29882, 3816, 2248, 5387, 13, 12, 12, 12, 12, 12, 1272, 353, 321, 1631, 29889, 657, 1469, 580, 13, 12, 12, 12, 12, 12, 2311, 353, 7431, 29898, 1272, 29897, 13, 12, 12, 12, 12, 12, 361, 2159, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 19878, 13, 12, 12, 12, 12, 12, 28631, 29892, 8820, 29892, 337, 2935, 29892, 1819, 29892, 1480, 771, 5824, 353, 14319, 10456, 1272, 29897, 13, 12, 12, 12, 12, 12, 5975, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 5975, 29892, 7442, 29889, 3298, 359, 29898, 29896, 8243, 9685, 29922, 29900, 29897, 13, 12, 12, 12, 12, 12, 17263, 19771, 353, 7442, 29889, 3298, 359, 29898, 2311, 29897, 13, 12, 12, 12, 12, 12, 328, 29918, 29873, 353, 29871, 29900, 13, 13, 12, 12, 12, 12, 12, 1022, 29875, 29918, 2457, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 18764, 287, 29898, 3881, 29898, 2435, 29898, 1272, 876, 1125, 13, 12, 12, 12, 12, 12, 12, 1022, 29875, 29918, 2457, 4619, 337, 2935, 29961, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 4181, 353, 337, 2935, 29961, 29875, 29962, 718, 1819, 29961, 29875, 29974, 29896, 29962, 334, 1583, 29889, 4283, 448, 1819, 29961, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 328, 29918, 29873, 353, 19471, 718, 1583, 29889, 4283, 334, 1583, 29889, 27728, 334, 594, 29918, 29873, 13, 12, 12, 12, 12, 12, 12, 17263, 19771, 29961, 29875, 29962, 353, 594, 29918, 29873, 13, 13, 12, 12, 12, 12, 12, 361, 451, 7442, 29889, 275, 13707, 29898, 1022, 29875, 29918, 2457, 1125, 13, 13, 12, 12, 12, 12, 12, 12, 24495, 353, 1819, 7503, 2311, 29962, 718, 25486, 13, 13, 13, 12, 12, 12, 12, 12, 12, 29878, 15755, 29918, 276, 1456, 29918, 9040, 353, 390, 10262, 1123, 1456, 7701, 29898, 29896, 29900, 29900, 29900, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2311, 1125, 13, 13, 12, 12, 12, 12, 12, 12, 12, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29889, 5910, 29898, 28631, 29961, 29875, 1402, 8820, 29961, 29875, 1402, 1480, 771, 5824, 29961, 29875, 1402, 323, 29928, 29961, 29875, 1402, 25486, 29961, 29875, 2314, 13, 13, 12, 12, 12, 12, 12, 12, 1311, 29889, 9040, 29961, 29882, 3816, 2248, 1822, 5910, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29897, 13, 13, 13, 12, 12, 12008, 21248, 3694, 14550, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 2380, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29918, 578, 29918, 15641, 29961, 29882, 3816, 2248, 29962, 4619, 1583, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 2248, 29962, 13, 13, 12, 1753, 9673, 29918, 26017, 24495, 392, 12739, 29923, 29898, 1311, 1125, 13, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 2380, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 1311, 29889, 12631, 29918, 9040, 29961, 29882, 3816, 2248, 1822, 8551, 580, 13, 12, 12, 12, 12, 1454, 321, 1631, 297, 1583, 29889, 7827, 29918, 12631, 29918, 1022, 275, 2631, 29961, 29882, 3816, 2248, 5387, 13, 12, 12, 12, 12, 12, 1272, 353, 321, 1631, 29889, 657, 1469, 580, 13, 12, 12, 12, 12, 12, 2311, 353, 7431, 29898, 1272, 29897, 13, 12, 12, 12, 12, 12, 361, 2159, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 19878, 13, 12, 12, 12, 12, 12, 28631, 29892, 8820, 29892, 337, 2935, 29892, 1819, 29892, 1480, 771, 5824, 353, 14319, 10456, 1272, 29897, 13, 12, 12, 12, 12, 12, 5975, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 5975, 29892, 7442, 29889, 3298, 359, 29898, 29896, 8243, 9685, 29922, 29900, 29897, 13, 12, 12, 12, 12, 12, 17263, 19771, 353, 7442, 29889, 3298, 359, 29898, 2311, 29897, 13, 12, 12, 12, 12, 12, 328, 29918, 29873, 353, 29871, 29900, 13, 13, 12, 12, 12, 12, 12, 1022, 29875, 29918, 2457, 353, 29871, 29900, 29889, 29900, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 18764, 287, 29898, 3881, 29898, 2435, 29898, 1272, 876, 1125, 13, 12, 12, 12, 12, 12, 12, 1022, 29875, 29918, 2457, 4619, 337, 2935, 29961, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 4181, 353, 337, 2935, 29961, 29875, 29962, 718, 1819, 29961, 29875, 29974, 29896, 29962, 334, 1583, 29889, 4283, 448, 1819, 29961, 29875, 29962, 13, 12, 12, 12, 12, 12, 12, 328, 29918, 29873, 353, 19471, 718, 1583, 29889, 4283, 334, 1583, 29889, 27728, 334, 594, 29918, 29873, 13, 12, 12, 12, 12, 12, 12, 17263, 19771, 29961, 29875, 29962, 353, 594, 29918, 29873, 13, 13, 12, 12, 12, 12, 12, 361, 451, 7442, 29889, 275, 13707, 29898, 1022, 29875, 29918, 2457, 1125, 13, 12, 12, 12, 12, 12, 12, 24495, 353, 1819, 7503, 2311, 29962, 718, 25486, 13, 12, 12, 12, 12, 12, 12, 29878, 15755, 29918, 276, 1456, 29918, 9040, 353, 390, 10262, 1123, 1456, 7701, 29898, 29896, 29900, 29900, 29900, 29900, 29897, 13, 12, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2311, 1125, 13, 13, 12, 12, 12, 12, 12, 12, 12, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29889, 5910, 29898, 28631, 29961, 29875, 1402, 8820, 29961, 29875, 1402, 1480, 771, 5824, 29961, 29875, 1402, 323, 29928, 29961, 29875, 1402, 25486, 29961, 29875, 2314, 13, 13, 12, 12, 12, 12, 12, 12, 1311, 29889, 12631, 29918, 9040, 29961, 29882, 3816, 2248, 1822, 5910, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29897, 13, 13, 13, 13, 13, 12, 1753, 24656, 10262, 29918, 29882, 29898, 1311, 29892, 298, 353, 29871, 29900, 1125, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 1311, 29889, 2083, 29918, 6758, 29918, 7168, 29961, 29882, 3816, 29875, 29962, 353, 29871, 29900, 29889, 29900, 13, 12, 12, 12, 1311, 29889, 2083, 29918, 6758, 29918, 9695, 293, 29961, 29882, 3816, 29875, 29962, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 1454, 20487, 29918, 2248, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 497, 29918, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29922, 7442, 29889, 2378, 29898, 1311, 29889, 9040, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 9040, 29897, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 1125, 13, 12, 12, 12, 12, 497, 29918, 28192, 287, 29918, 3286, 2187, 353, 5159, 13, 12, 12, 12, 12, 1454, 364, 15755, 29918, 276, 1456, 29918, 9040, 297, 599, 29918, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29901, 13, 12, 12, 12, 12, 12, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29918, 2311, 353, 7431, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29889, 9040, 29897, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29918, 2311, 1125, 13, 12, 12, 12, 12, 12, 12, 497, 29918, 28192, 287, 29918, 3286, 2187, 29889, 4397, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29889, 9040, 29961, 29875, 2314, 13, 13, 12, 12, 12, 12, 16175, 29918, 2311, 29918, 29882, 353, 1583, 29889, 16175, 29918, 2311, 13, 12, 12, 12, 12, 361, 298, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 9853, 29918, 2311, 29918, 29882, 353, 1583, 29889, 16175, 29918, 2311, 458, 29946, 13, 12, 12, 12, 12, 9302, 29889, 8172, 29889, 845, 21897, 29898, 497, 29918, 28192, 287, 29918, 3286, 2187, 29897, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 497, 29918, 28192, 287, 29918, 3286, 2187, 29897, 458, 16175, 29918, 2311, 29918, 29882, 1125, 13, 12, 12, 12, 12, 12, 16175, 29918, 28192, 287, 29918, 3286, 2187, 353, 599, 29918, 28192, 287, 29918, 3286, 2187, 29961, 29875, 29930, 16175, 29918, 2311, 29918, 29882, 5919, 29875, 29974, 29896, 11877, 16175, 29918, 2311, 29918, 29882, 29962, 13, 13, 12, 12, 12, 12, 12, 16175, 353, 390, 10262, 4300, 654, 10456, 7554, 10456, 16175, 29918, 28192, 287, 29918, 3286, 2187, 876, 13, 13, 12, 12, 12, 12, 12, 1429, 29918, 29879, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 29879, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 29874, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 29874, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 22833, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 1188, 22795, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 1594, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 24495, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 3249, 29872, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 12739, 29923, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 13, 12, 12, 12, 12, 12, 29874, 29918, 5721, 29892, 29894, 353, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 11333, 29898, 29911, 6073, 29898, 1429, 29918, 29879, 876, 12, 13, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12, 12, 6758, 29918, 9695, 293, 353, 5135, 29894, 29899, 29911, 6073, 29898, 1429, 29918, 1594, 8106, 12248, 29898, 29906, 8106, 12676, 580, 13, 13, 13, 12, 12, 12, 12, 12, 12008, 29909, 2801, 365, 2209, 12008, 13, 13, 12, 12, 12, 12, 12, 3605, 601, 353, 4842, 305, 29889, 4548, 29898, 29874, 29918, 5721, 29889, 1188, 29918, 22795, 29898, 29911, 6073, 29898, 1429, 29918, 29874, 876, 29899, 29911, 6073, 29898, 1429, 29918, 22833, 876, 13, 13, 12, 12, 12, 12, 12, 1429, 29918, 3249, 29872, 353, 313, 1429, 29918, 3249, 29872, 29899, 1429, 29918, 3249, 29872, 29889, 12676, 3101, 14571, 1429, 29918, 3249, 29872, 29889, 4172, 580, 29974, 29896, 29923, 29899, 29945, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 3249, 29872, 353, 323, 6073, 29898, 1429, 29918, 3249, 29872, 29897, 13, 12, 12, 12, 12, 12, 7610, 9102, 403, 29896, 353, 11959, 334, 5096, 29918, 3249, 29872, 13, 12, 12, 12, 12, 12, 7610, 9102, 403, 29906, 353, 4842, 305, 29889, 695, 1160, 29898, 3605, 601, 29892, 1375, 29922, 29896, 29889, 29900, 29899, 1311, 29889, 24049, 29918, 3605, 601, 29892, 4236, 29922, 29896, 29889, 29900, 29974, 1311, 29889, 24049, 29918, 3605, 601, 29897, 334, 5096, 29918, 3249, 29872, 13, 13, 12, 12, 12, 12, 12, 6758, 29918, 7168, 353, 448, 4842, 305, 29889, 1195, 29898, 7610, 9102, 403, 29896, 29892, 1190, 9102, 403, 29906, 467, 12676, 580, 13, 13, 12, 12, 12, 12, 12, 12008, 5292, 14441, 365, 2209, 12008, 13, 12, 12, 12, 12, 12, 6758, 29918, 296, 14441, 353, 448, 1583, 29889, 29893, 29918, 296, 14441, 334, 263, 29918, 5721, 29889, 296, 14441, 2141, 12676, 580, 13, 13, 12, 12, 12, 12, 12, 6758, 353, 6410, 29918, 7168, 718, 6410, 29918, 9695, 293, 718, 6410, 29918, 296, 14441, 13, 12, 12, 12, 12, 12, 1311, 29889, 20640, 3950, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 9171, 29918, 5105, 580, 13, 13, 12, 12, 12, 12, 12, 6758, 29889, 1627, 1328, 580, 13, 13, 12, 12, 12, 12, 12, 4801, 522, 29940, 273, 353, 7700, 13, 12, 12, 12, 12, 12, 1454, 1828, 297, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 16744, 7295, 13, 12, 12, 12, 12, 12, 12, 361, 4842, 305, 29889, 275, 13707, 29898, 3207, 29889, 5105, 467, 1384, 7295, 13, 12, 12, 12, 12, 12, 12, 12, 4801, 522, 29940, 273, 353, 5852, 13, 12, 12, 12, 12, 12, 12, 361, 1828, 29889, 5105, 338, 451, 6213, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 3207, 29889, 5105, 29889, 1272, 29889, 695, 1160, 29918, 6278, 29900, 29889, 29945, 29892, 29871, 29900, 29889, 29945, 29897, 13, 13, 12, 12, 12, 12, 12, 361, 451, 6459, 29940, 273, 29901, 13, 12, 12, 12, 12, 12, 12, 1311, 29889, 20640, 3950, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 10568, 580, 13, 12, 12, 12, 12, 12, 1311, 29889, 2083, 29918, 6758, 29918, 7168, 29961, 29882, 3816, 28040, 29918, 2248, 29962, 4619, 6410, 29918, 7168, 29889, 4801, 496, 580, 29930, 16175, 29918, 2311, 29918, 29882, 29914, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 13, 12, 12, 12, 12, 12, 1311, 29889, 2083, 29918, 6758, 29918, 9695, 293, 29961, 29882, 3816, 28040, 29918, 2248, 29962, 4619, 6410, 29918, 9695, 293, 29889, 4801, 496, 580, 29930, 16175, 29918, 2311, 29918, 29882, 29914, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 13, 13, 12, 12, 12, 12, 12, 6758, 29918, 296, 14441, 353, 6410, 29918, 296, 14441, 29889, 4801, 496, 580, 13, 12, 12, 12, 12, 12, 6758, 29918, 7168, 353, 6410, 29918, 7168, 29889, 4801, 496, 580, 13, 12, 12, 12, 12, 12, 6758, 29918, 9695, 293, 353, 6410, 29918, 9695, 293, 29889, 4801, 496, 580, 13, 12, 12, 12, 12, 12, 6758, 29922, 6410, 29889, 4801, 496, 580, 13, 13, 12, 12, 12, 12, 2158, 877, 20624, 326, 5281, 11339, 29899, 9695, 293, 302, 29876, 648, 29913, 584, 6571, 29914, 8875, 4286, 4830, 29898, 29882, 29892, 432, 29974, 29896, 29892, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 511, 355, 2433, 29905, 29878, 1495, 13, 12, 12, 12, 2158, 877, 1495, 13, 12, 12, 29937, 1596, 877, 1495, 13, 13, 13, 12, 1753, 9673, 29918, 20640, 675, 10262, 29918, 29882, 29898, 1311, 29892, 298, 353, 29871, 29900, 1125, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 1311, 29889, 2083, 29918, 12631, 29918, 6758, 29918, 9695, 293, 29961, 29882, 3816, 29875, 29962, 353, 29871, 29900, 29889, 29900, 13, 13, 12, 12, 1454, 20487, 29918, 2248, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 497, 29918, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29922, 7442, 29889, 2378, 29898, 1311, 29889, 12631, 29918, 9040, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 9040, 29897, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 1125, 13, 12, 12, 12, 12, 497, 29918, 28192, 287, 29918, 3286, 2187, 353, 5159, 13, 12, 12, 12, 12, 1454, 364, 15755, 29918, 276, 1456, 29918, 9040, 297, 599, 29918, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29901, 13, 12, 12, 12, 12, 12, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29918, 2311, 353, 7431, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29889, 9040, 29897, 13, 12, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29918, 2311, 1125, 13, 12, 12, 12, 12, 12, 12, 497, 29918, 28192, 287, 29918, 3286, 2187, 29889, 4397, 29898, 29878, 15755, 29918, 276, 1456, 29918, 9040, 29889, 9040, 29961, 29875, 2314, 13, 13, 12, 12, 12, 12, 9302, 29889, 8172, 29889, 845, 21897, 29898, 497, 29918, 28192, 287, 29918, 3286, 2187, 29897, 13, 13, 12, 12, 12, 12, 12631, 29918, 16175, 3505, 353, 1583, 29889, 16175, 29918, 2311, 458, 29896, 29953, 13, 12, 12, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 497, 29918, 28192, 287, 29918, 3286, 2187, 29897, 458, 12631, 29918, 16175, 3505, 1125, 13, 12, 12, 12, 12, 12, 16175, 29918, 28192, 287, 29918, 3286, 2187, 353, 599, 29918, 28192, 287, 29918, 3286, 2187, 29961, 29875, 29930, 12631, 29918, 16175, 3505, 5919, 29875, 29974, 29896, 11877, 12631, 29918, 16175, 3505, 29962, 13, 13, 12, 12, 12, 12, 12, 16175, 353, 390, 10262, 4300, 654, 10456, 7554, 10456, 16175, 29918, 28192, 287, 29918, 3286, 2187, 876, 13, 13, 12, 12, 12, 12, 12, 1429, 29918, 29879, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 29879, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 29874, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 29874, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 22833, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 1188, 22795, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 1594, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 24495, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 12, 12, 12, 12, 12, 1429, 29918, 3249, 29872, 353, 7442, 29889, 29894, 1429, 29898, 16175, 29889, 12739, 29923, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 13, 12, 12, 12, 12, 12, 29874, 29918, 5721, 29892, 29894, 353, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 11333, 29898, 29911, 6073, 29898, 1429, 29918, 29879, 876, 12, 13, 13, 12, 12, 12, 12, 12, 6758, 29918, 9695, 293, 353, 5135, 29894, 29899, 29911, 6073, 29898, 1429, 29918, 1594, 8106, 12248, 29898, 29906, 8106, 12676, 580, 13, 13, 12, 12, 12, 12, 12, 6758, 353, 6410, 29918, 9695, 293, 13, 12, 12, 12, 12, 12, 1311, 29889, 20640, 3950, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 9171, 29918, 5105, 580, 13, 13, 12, 12, 12, 12, 12, 6758, 29889, 1627, 1328, 580, 13, 13, 12, 12, 12, 12, 12, 4801, 522, 29940, 273, 353, 7700, 13, 12, 12, 12, 12, 12, 1454, 1828, 297, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 28040, 29918, 2248, 1822, 16744, 7295, 13, 12, 12, 12, 12, 12, 12, 361, 4842, 305, 29889, 275, 13707, 29898, 3207, 29889, 5105, 467, 1384, 7295, 13, 12, 12, 12, 12, 12, 12, 12, 4801, 522, 29940, 273, 353, 5852, 13, 12, 12, 12, 12, 12, 12, 12, 29937, 1596, 703, 13707, 1159, 13, 12, 12, 12, 12, 12, 12, 361, 1828, 29889, 5105, 338, 451, 6213, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 3207, 29889, 5105, 29889, 1272, 29889, 695, 1160, 29918, 6278, 29900, 29889, 29945, 29892, 29871, 29900, 29889, 29945, 29897, 13, 13, 12, 12, 12, 12, 12, 1311, 29889, 2083, 29918, 12631, 29918, 6758, 29918, 9695, 293, 29961, 29882, 3816, 28040, 29918, 2248, 29962, 4619, 6410, 29918, 9695, 293, 29889, 4801, 496, 580, 29930, 12631, 29918, 16175, 3505, 29914, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 13, 12, 12, 12, 12, 12, 6758, 29918, 9695, 293, 353, 6410, 29918, 9695, 293, 29889, 4801, 496, 580, 13, 12, 12, 12, 12, 12, 6758, 29922, 6410, 29889, 4801, 496, 580, 13, 13, 13, 12, 12, 12, 12, 2158, 877, 20624, 326, 5281, 11339, 29899, 9695, 293, 302, 29876, 648, 29913, 584, 6571, 29914, 8875, 4286, 4830, 29898, 29882, 29892, 432, 29974, 29896, 29892, 1311, 29889, 1949, 29918, 1022, 2878, 29879, 511, 355, 2433, 29905, 29878, 1495, 13, 12, 12, 12, 2158, 877, 1495, 13, 12, 12, 29937, 1596, 877, 1495, 13, 13, 12, 1753, 7945, 29898, 1311, 1125, 13, 12, 12, 1154, 353, 29871, 29896, 29889, 29900, 13, 12, 12, 1311, 29889, 21891, 29918, 10492, 353, 1583, 29889, 4381, 29918, 21891, 29918, 10492, 29930, 1154, 13, 12, 12, 1311, 29889, 24049, 29918, 3605, 601, 353, 1583, 29889, 4381, 29918, 24049, 29918, 3605, 601, 29930, 1154, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 1454, 1828, 29918, 2972, 297, 1583, 29889, 20640, 3950, 29961, 29882, 3816, 29875, 1822, 3207, 29918, 13155, 29901, 13, 12, 12, 12, 12, 12, 3207, 29918, 2972, 1839, 29212, 2033, 353, 1583, 29889, 21891, 29918, 10492, 13, 13, 12, 12, 1311, 29889, 17158, 4300, 2187, 580, 13, 12, 12, 1311, 29889, 26017, 24495, 392, 12739, 29923, 580, 13, 12, 12, 1311, 29889, 20640, 675, 3195, 580, 13, 13, 13, 12, 1753, 24656, 3195, 29898, 1311, 1125, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1311, 29889, 20640, 675, 10262, 29918, 29882, 29898, 29882, 29897, 13, 13, 13, 12, 1753, 14707, 29898, 1311, 1125, 13, 12, 12, 1311, 29889, 1949, 29918, 24219, 362, 353, 1583, 29889, 1949, 29918, 24219, 362, 718, 29871, 29896, 13, 12, 12, 18721, 353, 938, 3552, 2230, 29889, 2230, 580, 448, 1583, 29889, 29873, 293, 29897, 458, 29941, 29953, 29900, 29900, 29889, 29900, 29897, 13, 12, 12, 29885, 353, 938, 3552, 2230, 29889, 2230, 580, 448, 1583, 29889, 29873, 293, 29897, 458, 29953, 29900, 29889, 29900, 29897, 13, 12, 12, 29879, 353, 938, 3552, 2230, 29889, 2230, 580, 448, 1583, 29889, 29873, 293, 876, 13, 12, 12, 29885, 353, 286, 448, 7234, 29930, 29953, 29900, 13, 12, 12, 29879, 353, 938, 3552, 2230, 29889, 2230, 580, 448, 1583, 29889, 29873, 293, 876, 13, 12, 12, 29879, 353, 269, 448, 7234, 29930, 29941, 29953, 29900, 29900, 448, 286, 29930, 29953, 29900, 13, 12, 12, 361, 1583, 29889, 1949, 29918, 1022, 275, 356, 338, 29871, 29900, 29901, 13, 12, 12, 12, 1311, 29889, 1949, 29918, 1022, 275, 356, 353, 29871, 29896, 13, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 12, 361, 1583, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 29875, 29962, 338, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 29875, 29962, 353, 29871, 29896, 13, 12, 12, 12, 12, 361, 1583, 29889, 1949, 29918, 12631, 29918, 23583, 29961, 29882, 3816, 29875, 29962, 338, 29871, 29900, 29901, 13, 12, 12, 12, 12, 12, 1311, 29889, 1949, 29918, 12631, 29918, 23583, 29961, 29882, 3816, 29875, 29962, 353, 29871, 29896, 13, 13, 12, 12, 361, 1583, 29889, 3317, 29918, 2457, 529, 1583, 29889, 2083, 29918, 2457, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 29901, 13, 12, 12, 12, 1311, 29889, 3317, 29918, 2457, 353, 1583, 29889, 2083, 29918, 2457, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 13, 12, 12, 12, 1311, 29889, 3317, 29918, 2457, 29918, 1022, 2878, 353, 1583, 29889, 1949, 29918, 24219, 362, 13, 13, 12, 12, 2158, 14237, 6571, 6805, 6571, 29882, 29901, 8875, 29885, 29901, 8875, 29879, 1275, 2433, 29889, 4830, 29898, 1311, 29889, 1949, 29918, 24219, 362, 29892, 18721, 29892, 29885, 29892, 29879, 876, 13, 12, 12, 2158, 877, 8876, 9072, 489, 29909, 2801, 29907, 768, 293, 10262, 2683, 489, 1495, 13, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 12, 2158, 877, 8876, 12810, 29887, 365, 2209, 319, 2801, 6571, 6571, 308, 584, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 29882, 29892, 474, 29892, 1583, 29889, 2083, 29918, 6758, 29918, 7168, 29961, 29882, 3816, 29875, 16261, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 29875, 12622, 13, 12, 12, 12, 12, 2158, 877, 8876, 12810, 29887, 365, 2209, 15976, 293, 6571, 6571, 4706, 584, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 29882, 29892, 474, 29892, 1583, 29889, 2083, 29918, 6758, 29918, 9695, 293, 29961, 29882, 3816, 29875, 16261, 1311, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 29875, 12622, 13, 12, 12, 12, 12, 2158, 877, 8876, 3782, 895, 6571, 462, 268, 584, 12365, 29889, 29941, 29888, 29913, 4286, 4830, 29898, 29882, 29892, 1583, 29889, 5182, 29918, 4299, 29961, 29882, 3816, 29875, 1822, 1188, 29918, 4172, 29889, 4548, 2141, 12676, 22130, 12, 12, 13, 13, 13, 12, 12, 12, 12, 2158, 877, 8876, 8009, 4103, 654, 1105, 2215, 6571, 6571, 29871, 584, 6571, 4286, 4830, 29898, 29882, 29892, 474, 29892, 1583, 29889, 1949, 29918, 23583, 29918, 578, 29918, 15641, 29961, 29882, 3816, 29875, 12622, 13, 12, 12, 12, 12, 2158, 877, 8876, 8009, 4103, 654, 6571, 6571, 308, 584, 6571, 4286, 4830, 29898, 29882, 29892, 474, 29892, 1583, 29889, 1949, 29918, 23583, 29961, 29882, 3816, 29875, 12622, 13, 13, 13, 12, 12, 2158, 877, 8876, 8009, 382, 12907, 795, 584, 6571, 4286, 4830, 29898, 1311, 29889, 1949, 29918, 1022, 275, 356, 876, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 22197, 1125, 13, 12, 12, 12, 2158, 877, 8876, 12810, 29887, 16696, 639, 12720, 6571, 259, 584, 12365, 29889, 29896, 29888, 29913, 4286, 4830, 29898, 29875, 29892, 1583, 29889, 1949, 29918, 23583, 29961, 29896, 3816, 29875, 16261, 1311, 29889, 1949, 29918, 1022, 275, 356, 876, 13, 13, 12, 12, 2158, 877, 8876, 12810, 29887, 11848, 28518, 498, 798, 886, 639, 12720, 259, 584, 12365, 29889, 29941, 29888, 29913, 4286, 4830, 29898, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 292, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 876, 13, 12, 12, 2158, 877, 8876, 7976, 7106, 639, 12720, 259, 584, 12365, 29889, 29941, 29888, 29913, 4286, 4830, 29898, 1311, 29889, 3317, 29918, 2457, 876, 13, 12, 12, 2158, 877, 8876, 12810, 29887, 7106, 639, 12720, 259, 584, 12365, 29889, 29941, 29888, 29913, 4286, 4830, 29898, 1311, 29889, 2083, 29918, 2457, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 876, 13, 13, 12, 12, 1454, 298, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29882, 1125, 13, 12, 12, 12, 2158, 877, 8876, 8009, 323, 29928, 2538, 300, 632, 584, 6571, 6571, 4286, 4830, 29898, 29882, 29892, 1583, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29882, 12622, 13, 12, 12, 12, 2158, 877, 8876, 8009, 323, 29928, 2538, 300, 472, 7306, 268, 584, 6571, 6571, 4286, 4830, 29898, 29882, 29892, 1583, 29889, 1949, 29918, 1594, 29918, 12071, 29918, 271, 29918, 28111, 29961, 29882, 12622, 13, 13, 12, 12, 1311, 29889, 276, 2935, 29889, 4397, 29898, 1311, 29889, 2083, 29918, 2457, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 29897, 13, 12, 12, 1311, 29889, 1949, 7789, 567, 29889, 4397, 29898, 1311, 29889, 1949, 29918, 23583, 29961, 29896, 3816, 29900, 16261, 1311, 29889, 1949, 29918, 1022, 275, 356, 29897, 13, 12, 12, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 886, 29889, 4397, 29898, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 292, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 29897, 13, 12, 12, 1311, 29889, 7620, 23785, 580, 13, 12, 12, 13, 12, 12, 29937, 8297, 580, 13, 12, 12, 29937, 6876, 29898, 29900, 29897, 13, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 1311, 29889, 12071, 29918, 3149, 22164, 13, 12, 12, 12, 361, 1583, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29900, 10062, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29896, 29962, 1405, 29871, 29900, 29901, 13, 12, 12, 12, 12, 1311, 29889, 12071, 29918, 3149, 29961, 29875, 29962, 847, 29922, 1583, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29900, 10062, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29896, 29962, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 1311, 29889, 12071, 29918, 3149, 29961, 29875, 29962, 353, 29871, 29900, 13, 13, 12, 12, 7727, 29889, 1202, 29918, 19529, 1503, 877, 276, 2935, 322, 954, 29918, 15728, 29918, 20539, 886, 742, 10998, 276, 2935, 29915, 584, 1583, 29889, 2083, 29918, 2457, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 29892, 525, 1949, 29918, 312, 29915, 584, 1583, 29889, 1949, 29918, 15728, 29918, 20539, 292, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 1118, 1583, 29889, 1949, 29918, 24219, 362, 29897, 13, 12, 12, 7727, 29889, 1202, 29918, 19529, 279, 877, 1949, 7789, 567, 742, 1311, 29889, 1949, 29918, 23583, 29961, 29896, 3816, 29900, 16261, 1311, 29889, 1949, 29918, 1022, 275, 356, 29892, 1583, 29889, 1949, 29918, 24219, 362, 29897, 13, 12, 12, 7727, 29889, 1202, 29918, 19529, 279, 877, 3605, 601, 310, 620, 1691, 742, 29898, 1311, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29900, 29962, 718, 1583, 29889, 1949, 29918, 1594, 29918, 12071, 29961, 29896, 2314, 29914, 1311, 29889, 1949, 29918, 1022, 275, 356, 29892, 1583, 29889, 1949, 29918, 24219, 362, 29897, 13, 12, 12, 7727, 29889, 1202, 29918, 19529, 1503, 877, 12071, 1298, 742, 10998, 29900, 2396, 1311, 29889, 12071, 29918, 3149, 29961, 29900, 1402, 525, 29896, 2396, 1311, 29889, 12071, 29918, 3149, 29961, 29896, 1402, 525, 29906, 2396, 1311, 29889, 12071, 29918, 3149, 29961, 29906, 1402, 525, 29941, 2396, 1311, 29889, 12071, 29918, 3149, 29961, 29941, 1402, 525, 29946, 2396, 1311, 29889, 12071, 29918, 3149, 29961, 29946, 29962, 1118, 1311, 29889, 1949, 29918, 24219, 362, 29897, 13, 13, 12, 12, 1454, 1024, 29892, 1828, 297, 1583, 29889, 5182, 29918, 4299, 29961, 29900, 3816, 29900, 1822, 17514, 29918, 16744, 7295, 13, 12, 12, 12, 7727, 29889, 1202, 29918, 29882, 391, 13342, 29898, 978, 13578, 29918, 2467, 1542, 613, 1828, 29889, 16513, 2141, 21970, 2141, 1272, 29889, 23749, 3285, 1583, 29889, 1949, 29918, 24219, 362, 29897, 13, 12, 12, 1454, 1024, 29892, 1828, 297, 1583, 29889, 5182, 29918, 4299, 29961, 29896, 3816, 29900, 1822, 17514, 29918, 16744, 7295, 13, 12, 12, 12, 7727, 29889, 1202, 29918, 29882, 391, 13342, 29898, 978, 13578, 29918, 2467, 16570, 613, 1828, 29889, 16513, 2141, 21970, 2141, 1272, 29889, 23749, 3285, 1583, 29889, 1949, 29918, 24219, 362, 29897, 13, 12, 12, 13, 12, 12, 2158, 877, 9166, 9166, 4936, 2751, 29922, 1495, 13, 12, 12, 2457, 7442, 29889, 2378, 29898, 1311, 29889, 276, 2935, 511, 7442, 29889, 2378, 29898, 1311, 29889, 1949, 7789, 567, 511, 7442, 29889, 2378, 29898, 1311, 29889, 1949, 29918, 15728, 29918, 20539, 886, 29897, 13, 13, 13, 13, 13, 13, 5215, 22889, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 13, 572, 29873, 29889, 291, 580, 13, 13, 13, 1753, 6492, 29898, 29891, 29892, 3257, 29892, 1949, 29918, 1003, 29922, 29896, 29892, 29891, 2576, 29922, 5574, 29892, 2084, 13776, 1125, 13, 12, 7382, 29918, 29891, 353, 7442, 29889, 3298, 359, 29898, 29891, 29889, 12181, 29897, 13, 12, 361, 343, 29889, 12181, 29961, 29900, 29962, 29958, 29945, 29901, 13, 12, 12, 7382, 29918, 29891, 29961, 29900, 29962, 353, 343, 29961, 29900, 29962, 13, 12, 12, 7382, 29918, 29891, 29961, 29896, 29962, 353, 29871, 29900, 29889, 29945, 16395, 29891, 29961, 29900, 29962, 718, 343, 29961, 29896, 2314, 13, 12, 12, 7382, 29918, 29891, 29961, 29906, 29962, 353, 29871, 29900, 29889, 29941, 29941, 29941, 29941, 16395, 29891, 29961, 29900, 29962, 718, 343, 29961, 29896, 29962, 718, 343, 29961, 29906, 2314, 13, 12, 12, 7382, 29918, 29891, 29961, 29941, 29962, 353, 29871, 29900, 29889, 29906, 29945, 16395, 29891, 29961, 29900, 29962, 718, 343, 29961, 29896, 29962, 718, 343, 29961, 29906, 29962, 718, 343, 29961, 29941, 2314, 13, 12, 12, 1454, 474, 297, 3464, 29898, 29946, 29892, 29891, 29889, 12181, 29961, 29900, 29962, 1125, 13, 12, 12, 12, 7382, 29918, 29891, 29961, 29875, 29962, 353, 7442, 29889, 2083, 29898, 29891, 29961, 29875, 29899, 29946, 29901, 29875, 29974, 29896, 2314, 29930, 29900, 29889, 29906, 13, 13, 12, 1003, 353, 14770, 29889, 4532, 29898, 1949, 29918, 1003, 29897, 13, 12, 572, 29873, 29889, 695, 29888, 580, 13, 12, 572, 29873, 29889, 3257, 29898, 3257, 29897, 13, 12, 572, 29873, 29889, 5317, 29898, 29891, 5501, 29890, 1495, 13, 12, 13, 12, 572, 29873, 29889, 5317, 29898, 7382, 29918, 29891, 5501, 29878, 1495, 13, 13, 12, 572, 29873, 29889, 7620, 1003, 29898, 2084, 29892, 3402, 543, 2732, 1159, 13, 13, 12, 29937, 14770, 29889, 4294, 580, 13, 12, 361, 343, 2576, 29901, 13, 12, 12, 572, 29873, 29889, 29891, 2576, 4197, 29900, 29892, 29896, 2314, 13, 13, 12, 1003, 29889, 15257, 29889, 4012, 580, 13, 12, 1003, 29889, 15257, 29889, 23126, 29918, 13604, 580, 13, 13, 13, 13, 1753, 6492, 29918, 1949, 7789, 567, 29898, 29891, 29892, 3257, 29892, 1949, 29918, 1003, 29922, 29896, 29892, 29891, 2576, 29922, 5574, 29892, 2084, 13776, 1125, 13, 12, 7382, 29918, 29891, 353, 7442, 29889, 3298, 359, 29898, 29891, 29889, 12181, 29897, 13, 12, 361, 343, 29889, 12181, 29961, 29900, 29962, 29958, 29945, 29901, 13, 12, 12, 7382, 29918, 29891, 29961, 29900, 29962, 353, 343, 29961, 29900, 29962, 13, 12, 12, 7382, 29918, 29891, 29961, 29896, 29962, 353, 29871, 29900, 29889, 29945, 16395, 29891, 29961, 29900, 29962, 718, 343, 29961, 29896, 2314, 13, 12, 12, 7382, 29918, 29891, 29961, 29906, 29962, 353, 29871, 29900, 29889, 29941, 29941, 29941, 29941, 16395, 29891, 29961, 29900, 29962, 718, 343, 29961, 29896, 29962, 718, 343, 29961, 29906, 2314, 13, 12, 12, 7382, 29918, 29891, 29961, 29941, 29962, 353, 29871, 29900, 29889, 29906, 29945, 16395, 29891, 29961, 29900, 29962, 718, 343, 29961, 29896, 29962, 718, 343, 29961, 29906, 29962, 718, 343, 29961, 29941, 2314, 13, 12, 12, 1454, 474, 297, 3464, 29898, 29946, 29892, 29891, 29889, 12181, 29961, 29900, 29962, 1125, 13, 12, 12, 12, 7382, 29918, 29891, 29961, 29875, 29962, 353, 7442, 29889, 2083, 29898, 29891, 29961, 29875, 29899, 29946, 29901, 29875, 29974, 29896, 2314, 29930, 29900, 29889, 29906, 13, 13, 12, 1003, 353, 14770, 29889, 4532, 29898, 1949, 29918, 1003, 29897, 13, 12, 572, 29873, 29889, 695, 29888, 580, 13, 12, 572, 29873, 29889, 3257, 29898, 3257, 29897, 13, 12, 572, 29873, 29889, 5317, 29898, 29891, 5501, 29890, 1495, 13, 12, 13, 12, 572, 29873, 29889, 5317, 29898, 7382, 29918, 29891, 5501, 29878, 1495, 13, 13, 12, 572, 29873, 29889, 7620, 1003, 29898, 2084, 29892, 3402, 543, 2732, 1159, 13, 12, 361, 343, 2576, 29901, 13, 12, 12, 572, 29873, 29889, 29891, 2576, 4197, 29900, 29892, 29896, 2314, 13, 13, 12, 1003, 29889, 15257, 29889, 4012, 580, 13, 12, 1003, 29889, 15257, 29889, 23126, 29918, 13604, 580, 13, 13, 5215, 1852, 5510, 13, 361, 4770, 978, 1649, 26359, 1649, 3396, 1649, 1115, 13, 12, 16680, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 12, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29885, 3788, 489, 4299, 742, 8477, 2433, 4299, 2224, 1495, 13, 12, 29937, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29886, 3788, 489, 22197, 742, 8477, 2433, 1457, 3018, 1312, 1248, 506, 29891, 2224, 1495, 13, 12, 16680, 29889, 1202, 29918, 23516, 877, 29899, 1524, 3788, 489, 1524, 362, 742, 8477, 2433, 1949, 24372, 1495, 13, 12, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29876, 3788, 489, 978, 742, 8477, 2433, 978, 310, 6694, 4444, 1495, 13, 12, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29885, 8194, 742, 525, 489, 29885, 8194, 742, 1371, 2433, 29885, 8194, 302, 29876, 2224, 1495, 13, 13, 12, 5085, 353, 16680, 29889, 5510, 29918, 5085, 580, 13, 13, 12, 4262, 29918, 978, 353, 6629, 13, 12, 13, 12, 361, 6389, 29889, 29885, 8194, 338, 6213, 29901, 13, 12, 12, 2158, 703, 12148, 6084, 278, 10884, 302, 29876, 2224, 1159, 13, 12, 12, 13322, 29898, 29900, 29897, 13, 13, 12, 2096, 353, 390, 29931, 29898, 5085, 29889, 29885, 8194, 29897, 13, 13, 12, 361, 6389, 29889, 4299, 338, 451, 6213, 29901, 13, 12, 12, 1454, 413, 297, 3464, 29898, 2096, 29889, 1949, 29918, 351, 1237, 1125, 13, 12, 12, 12, 2096, 29889, 1359, 8667, 23785, 29898, 5085, 29889, 4299, 29892, 413, 29897, 13, 13, 12, 361, 6389, 29889, 978, 338, 451, 6213, 29901, 13, 12, 12, 4262, 29918, 978, 353, 6389, 29889, 978, 13, 13, 12, 29937, 565, 6389, 29889, 22197, 338, 451, 6213, 29901, 13, 12, 29937, 29871, 12, 2096, 29889, 1359, 8667, 15644, 29898, 5085, 29889, 22197, 29897, 13, 12, 361, 6389, 29889, 1524, 362, 338, 451, 6213, 29901, 13, 12, 12, 2096, 29889, 1949, 29918, 24219, 362, 353, 938, 29898, 5085, 29889, 1524, 362, 29897, 13, 12, 12, 1454, 474, 297, 3464, 29898, 524, 29898, 5085, 29889, 1524, 362, 22164, 13, 12, 12, 12, 2096, 29889, 6272, 29889, 355, 2776, 13463, 362, 580, 13, 12, 2870, 29901, 13, 12, 12, 2096, 29889, 7620, 23785, 580, 13, 13, 13, 12, 2158, 877, 1949, 5922, 29901, 24335, 954, 8820, 29901, 6571, 4286, 4830, 29898, 2096, 29889, 6272, 29889, 657, 8009, 2792, 3285, 2096, 29889, 6272, 29889, 657, 8009, 4276, 580, 29899, 29896, 876, 13, 13, 12, 2914, 29918, 4532, 353, 302, 299, 381, 13578, 12975, 13578, 2914, 29889, 2732, 29908, 13, 12, 2914, 29918, 4532, 29918, 1949, 7789, 567, 353, 302, 299, 381, 13578, 12975, 13578, 2914, 29918, 1949, 7789, 567, 29889, 2732, 29908, 13, 12, 2914, 29918, 4532, 29918, 1949, 1783, 29879, 353, 302, 299, 381, 13578, 12975, 13578, 2914, 29918, 1949, 1783, 29879, 29889, 2732, 29908, 13, 12, 2914, 29918, 4532, 29918, 1949, 353, 29871, 29900, 13, 12, 8000, 10802, 29898, 2914, 29918, 4532, 467, 275, 29918, 1445, 7295, 13, 12, 12, 2914, 29918, 4532, 353, 302, 299, 381, 13578, 12975, 13578, 2914, 648, 1836, 2732, 1642, 4830, 29898, 2914, 29918, 4532, 29918, 1949, 29897, 13, 12, 12, 2914, 29918, 4532, 29918, 1949, 7789, 567, 353, 302, 299, 381, 13578, 12975, 13578, 2914, 29918, 1949, 7789, 567, 648, 1836, 2732, 1642, 4830, 29898, 2914, 29918, 4532, 29918, 1949, 29897, 13, 12, 12, 2914, 29918, 4532, 29918, 1949, 1783, 29879, 353, 302, 299, 381, 13578, 12975, 13578, 2914, 29918, 1949, 1783, 29879, 648, 1836, 2732, 1642, 4830, 29898, 2914, 29918, 4532, 29918, 1949, 29897, 13, 12, 12, 2914, 29918, 4532, 29918, 1949, 23661, 29896, 13, 13, 12, 1454, 474, 297, 3464, 29898, 29945, 29900, 29900, 29900, 29900, 29900, 29900, 1125, 13, 12, 12, 2096, 29889, 14968, 580, 13, 12, 12, 276, 2935, 29892, 954, 7789, 567, 29892, 954, 1783, 29879, 353, 364, 29880, 29889, 24219, 403, 580, 13, 2 ]
setup.py
ilkka/nap
31
39635
<reponame>ilkka/nap #!/usr/bin/env python from pip.req import parse_requirements # parse_requirements() returns generator of pip.req.InstallRequirement objects install_reqs = parse_requirements('requirements.txt') # reqs is a list of requirement # e.g. ['django==1.5.1', 'mezzanine==1.4.6'] reqs = [str(ir.req) for ir in install_reqs] try: from setuptools import setup except ImportError: from distutils.core import setup readme = """Read docs from GitHub_ .. _GitHub: https://github.com/kimmobrunfeldt/nap """ setup( name='nap', version='2.0.0-dev', description='Convenient way to request HTTP APIs', long_description=readme, author='<NAME>', author_email='<EMAIL>', url='https://github.com/kimmobrunfeldt/nap', packages=[ 'nap', ], package_dir={'nap': 'nap'}, include_package_data=True, install_requires=reqs, license='MIT', zip_safe=False, keywords='nap rest requests http', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], )
[ 1, 529, 276, 1112, 420, 29958, 309, 29895, 1335, 29914, 8971, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 3166, 8450, 29889, 7971, 1053, 6088, 29918, 12277, 1860, 13, 13, 29937, 6088, 29918, 12277, 1860, 580, 3639, 15299, 310, 8450, 29889, 7971, 29889, 23271, 1123, 1548, 358, 3618, 13, 6252, 29918, 7971, 29879, 353, 6088, 29918, 12277, 1860, 877, 12277, 1860, 29889, 3945, 1495, 13, 13, 29937, 12428, 29879, 338, 263, 1051, 310, 11809, 13, 29937, 321, 29889, 29887, 29889, 6024, 14095, 1360, 29896, 29889, 29945, 29889, 29896, 742, 525, 1004, 5617, 273, 457, 1360, 29896, 29889, 29946, 29889, 29953, 2033, 13, 7971, 29879, 353, 518, 710, 29898, 381, 29889, 7971, 29897, 363, 3805, 297, 2601, 29918, 7971, 29879, 29962, 13, 13, 13, 2202, 29901, 13, 1678, 515, 731, 21245, 8789, 1053, 6230, 13, 19499, 16032, 2392, 29901, 13, 1678, 515, 1320, 13239, 29889, 3221, 1053, 6230, 13, 13, 13, 949, 1004, 353, 9995, 6359, 10561, 515, 25492, 29918, 13, 13, 636, 903, 28712, 16046, 29901, 2045, 597, 3292, 29889, 510, 29914, 29895, 6727, 711, 3389, 10612, 29873, 29914, 8971, 13, 15945, 29908, 13, 13, 14669, 29898, 13, 1678, 1024, 2433, 8971, 742, 13, 1678, 1873, 2433, 29906, 29889, 29900, 29889, 29900, 29899, 3359, 742, 13, 1678, 6139, 2433, 1168, 854, 993, 982, 304, 2009, 7331, 23649, 742, 13, 1678, 1472, 29918, 8216, 29922, 949, 1004, 29892, 13, 1678, 4148, 2433, 29966, 5813, 29958, 742, 13, 1678, 4148, 29918, 5269, 2433, 29966, 26862, 6227, 29958, 742, 13, 1678, 3142, 2433, 991, 597, 3292, 29889, 510, 29914, 29895, 6727, 711, 3389, 10612, 29873, 29914, 8971, 742, 13, 1678, 9741, 11759, 13, 4706, 525, 8971, 742, 13, 1678, 21251, 13, 1678, 3577, 29918, 3972, 3790, 29915, 8971, 2396, 525, 8971, 16675, 13, 1678, 3160, 29918, 5113, 29918, 1272, 29922, 5574, 29892, 13, 1678, 2601, 29918, 276, 339, 2658, 29922, 7971, 29879, 29892, 13, 1678, 19405, 2433, 26349, 742, 13, 1678, 14319, 29918, 11177, 29922, 8824, 29892, 13, 1678, 29361, 2433, 8971, 1791, 7274, 1732, 742, 13, 1678, 770, 14903, 11759, 13, 4706, 525, 21956, 358, 16034, 4761, 29871, 29946, 448, 350, 1187, 742, 13, 4706, 525, 2928, 2760, 319, 4749, 663, 4761, 10682, 414, 742, 13, 4706, 525, 29931, 293, 1947, 4761, 438, 5425, 28268, 1490, 4761, 341, 1806, 19245, 742, 13, 4706, 525, 29940, 18771, 17088, 4761, 4223, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29906, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29906, 29889, 29953, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29906, 29889, 29955, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29906, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29941, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29946, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 1954, 14607, 4761, 10772, 19737, 742, 13, 1678, 21251, 13, 29897, 13, 2 ]
src-python/tests/test_trp2.py
kmascar/amazon-textract-response-parser
0
197998
from trp.t_pipeline import add_page_orientation, order_blocks_by_geo from typing import List from trp.t_pipeline import add_page_orientation, order_blocks_by_geo, pipeline_merge_tables, add_kv_ocr_confidence from trp.t_tables import MergeOptions, HeaderFooterType import trp.trp2 as t2 import trp as t1 import json import os import pytest from trp import Document from uuid import uuid4 import logging current_folder = os.path.dirname(os.path.realpath(__file__)) def return_json_for_file(filename): with open(os.path.join(current_folder, filename)) as test_json: return json.load(test_json) @pytest.fixture def json_response(): return return_json_for_file("test-response.json") def test_serialization(): """ testing that None values are removed when serializing """ bb_1 = t2.TBoundingBox(0.4, 0.3, 0.1, top=None) # type:ignore forcing some None/null values bb_2 = t2.TBoundingBox(0.4, 0.3, 0.1, top=0.2) p1 = t2.TPoint(x=0.1, y=0.1) p2 = t2.TPoint(x=0.3, y=None) # type:ignore geo = t2.TGeometry(bounding_box=bb_1, polygon=[p1, p2]) geo_s = t2.TGeometrySchema() s: str = geo_s.dumps(geo) assert not "null" in s geo = t2.TGeometry(bounding_box=bb_2, polygon=[p1, p2]) s: str = geo_s.dumps(geo) assert not "null" in s def test_tblock_order_blocks_by_geo(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) new_order = order_blocks_by_geo(t_document) doc = t1.Document(t2.TDocumentSchema().dump(new_order)) assert "Value 1.1.1" == doc.pages[0].tables[0].rows[0].cells[0].text.strip() assert "Value 2.1.1" == doc.pages[0].tables[1].rows[0].cells[0].text.strip() assert "Value 3.1.1" == doc.pages[0].tables[2].rows[0].cells[0].text.strip() def test_tblock_order_block_by_geo_multi_page(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_multi_page_tables.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = order_blocks_by_geo(t_document) doc = t1.Document(t2.TDocumentSchema().dump(t_document)) assert "Page 1 - Value 1.1.1" == doc.pages[0].tables[0].rows[0].cells[0].text.strip() assert "Page 1 - Value 2.1.1" == doc.pages[0].tables[1].rows[0].cells[0].text.strip() def test_tblock(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) new_order = order_blocks_by_geo(t_document) doc = t1.Document(t2.TDocumentSchema().dump(new_order)) assert "Value 1.1.1" == doc.pages[0].tables[0].rows[0].cells[0].text.strip() assert "Value 2.1.1" == doc.pages[0].tables[1].rows[0].cells[0].text.strip() assert "Value 3.1.1" == doc.pages[0].tables[2].rows[0].cells[0].text.strip() def test_custom_tblock(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document.custom = {'testblock': {'here': 'is some fun stuff'}} assert 'testblock' in t2.TDocumentSchema().dumps(t_document) def test_custom_page_orientation(json_response): doc = Document(json_response) assert 1 == len(doc.pages) lines = [line for line in doc.pages[0].lines] assert 22 == len(lines) words = [word for line in lines for word in line.words] assert 53 == len(words) t_document: t2.TDocument = t2.TDocumentSchema().load(json_response) t_document.custom = {'orientation': 180} new_t_doc_json = t2.TDocumentSchema().dump(t_document) assert "Custom" in new_t_doc_json assert "orientation" in new_t_doc_json["Custom"] assert new_t_doc_json["Custom"]["orientation"] == 180 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert -1 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 2 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_10_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert 5 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 15 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__15_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert 10 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 20 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__25_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert 17 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 30 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__180_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert 170 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 190 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__270_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert -100 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < -80 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__90_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert 80 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 100 p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__minus_10_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert -10 < t_document.pages[0].custom['PageOrientationBasedOnWords'] < 5 doc = t1.Document(t2.TDocumentSchema().dump(t_document)) for page in doc.pages: assert page.custom['PageOrientationBasedOnWords'] def test_filter_blocks_by_type(): block_list = [t2.TBlock(id="1", block_type=t2.TextractBlockTypes.WORD.name)] assert t2.TDocument.filter_blocks_by_type(block_list=block_list, textract_block_type=[t2.TextractBlockTypes.WORD]) == block_list def test_next_token_response(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib.json")) j = json.load(f) assert j['NextToken'] t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) assert t_document.pages[0].custom def test_rotate_point(): assert t2.TPoint(2, 2) == t2.TPoint(2, 2) p = t2.TPoint(2, 2).rotate(degrees=180, origin_y=0, origin_x=0, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(-2, -2) p = t2.TPoint(3, 4).rotate(degrees=-30, origin_y=0, origin_x=0, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(5, 2) p = t2.TPoint(3, 4).rotate(degrees=-77, origin_y=0, origin_x=0, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(5, -2) p = t2.TPoint(3, 4).rotate(degrees=-90, origin_y=0, origin_x=0, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(4, -3) p = t2.TPoint(3, 4).rotate(degrees=-270, origin_y=0, origin_x=0, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(-4, 3) p = t2.TPoint(2, 2).rotate(degrees=180, origin_x=1, origin_y=1) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(0, 0) p = t2.TPoint(3, 4).rotate(degrees=-30, origin_y=0, origin_x=0, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(5, 2) p = t2.TPoint(3, 4).rotate(degrees=-77, origin_x=4, origin_y=4, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(4, 5) p = t2.TPoint(3, 4).rotate(degrees=-90, origin_x=4, origin_y=6, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(2, 7) p = t2.TPoint(3, 4).rotate(degrees=-270, origin_x=4, origin_y=6, force_limits=False) assert t2.TPoint(x=round(p.x), y=round(p.y)) == t2.TPoint(6, 5) def test_rotate(): points = [] width = 0.05415758863091469 height = 0.011691284365952015 left = 0.13994796574115753 top = 0.8997916579246521 origin: t2.TPoint = t2.TPoint(x=0.5, y=0.5) degrees: float = 180 points.append(t2.TPoint(x=left, y=top).rotate(origin_x=origin.x, origin_y=origin.y, degrees=degrees)) points.append(t2.TPoint(x=left + width, y=top).rotate(origin_x=origin.x, origin_y=origin.y, degrees=degrees)) points.append(t2.TPoint(x=left, y=top + height).rotate(origin_x=origin.x, origin_y=origin.y, degrees=degrees)) points.append( t2.TPoint(x=left + width, y=top + height).rotate(origin_x=origin.x, origin_y=origin.y, degrees=degrees)) assert not None in points def test_adjust_bounding_boxes_and_polygons_to_orientation(): # p = os.path.dirname(os.path.realpath(__file__)) # f = open(os.path.join(p, "data/gib.json")) # j = json.load(f) # t_document: t2.TDocument = t2.TDocumentSchema().load(j) # t_document = add_page_orientation(t_document) # doc = t1.Document(t2.TDocumentSchema().dump(t_document)) # key = "Date:" # fields = doc.pages[0].form.searchFieldsByKey(key) # for field in fields: # print(f"Field: Key: {field.key}, Value: {field.value}, Geo: {field.geometry} ") p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib__180_degrees.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_page_orientation(t_document) new_order = order_blocks_by_geo(t_document) doc = t1.Document(t2.TDocumentSchema().dump(t_document)) # for line in doc.pages[0].lines: # print("Line: {}".format(line.text)) # print("=========================== after rotation ========================") # doc = t1.Document(t2.TDocumentSchema().dump(t_document)) # key = "Date:" # fields = doc.pages[0].form.searchFieldsByKey(key) # rotate_point = t2.TPoint(x=0.5, y=0.5) # for field in fields: # print(f"Field: Key: {field.key}, Value: {field.value}, Geo: {field.geometry} ") # bbox = field.geometry.boundingBox # new_point = t_pipeline.__rotate(origin=rotate_point, # point=t2.TPoint(x=bbox.left, y=bbox.top), # angle_degrees=180) # print(f"new point: {new_point}") # FIXME: remove duplicates in relationship_recursive! # [b.rotate(origin=t2.TPoint(0.5, 0.5), degrees=180) for b in t_document.relationships_recursive(block=t_document.pages[0])] # t_document.rotate(page=t_document.pages[0], degrees=180) # new_order = order_blocks_by_geo(t_document) # with open("/Users/schadem/temp/rotation/rotate_json2.jon", "w") as out_file: # out_file.write(t2.TDocumentSchema().dumps(t_document)) # doc = t1.Document(t2.TDocumentSchema().dump(t_document)) # for line in doc.pages[0].lines: # print("Line: {}".format(line.text)) # p = t2.TPoint(x=0.75, y=0.03) # p.rotate(origin_x=0.5, origin_y=0.5, degrees=180) # print(p) # new_point = rotate(origin=t2.TPoint(x=0.5, y=0.5), point = ) # print(f"new_point: {new_point.x:.2f}, {new_point.y:.2f}") # print(rotate(origin=t2.TPoint(x=0.5, y=0.5), point = t2.TPoint(x=.75, y=0.03))) def test_scale(caplog): p1: t2.TPoint = t2.TPoint(x=0.5, y=0.5) p1.scale(doc_width=10, doc_height=10) assert (p1 == t2.TPoint(x=5, y=5)) b1: t2.TBoundingBox = t2.TBoundingBox(width=0.1, height=0.1, left=0.5, top=0.5) b1.scale(doc_width=10, doc_height=10) assert (b1 == t2.TBoundingBox(width=1, height=1, left=5, top=5)) p1: t2.TPoint = t2.TPoint(x=0.5, y=0.5) b1: t2.TBoundingBox = t2.TBoundingBox(width=0.1, height=0.1, left=0.5, top=0.5) g1: t2.TGeometry = t2.TGeometry(bounding_box=b1, polygon=[p1]) g1.scale(doc_width=10, doc_height=10) assert (g1 == t2.TGeometry(bounding_box=t2.TBoundingBox(width=1, height=1, left=5, top=5), polygon=[t2.TPoint(x=5, y=5)])) def test_ratio(caplog): p1: t2.TPoint = t2.TPoint(x=0.5, y=0.5) p2: t2.TPoint = t2.TPoint(x=5, y=5) p2.ratio(doc_width=10, doc_height=10) assert (p1 == p2) b1: t2.TBoundingBox = t2.TBoundingBox(width=0.1, height=0.1, left=0.5, top=0.5) b2: t2.TBoundingBox = t2.TBoundingBox(width=1, height=1, left=5, top=5) b2.ratio(doc_width=10, doc_height=10) assert (b1 == b2) p1: t2.TPoint = t2.TPoint(x=0.5, y=0.5) p2: t2.TPoint = t2.TPoint(x=5, y=5) b1: t2.TBoundingBox = t2.TBoundingBox(width=0.1, height=0.1, left=0.5, top=0.5) b2: t2.TBoundingBox = t2.TBoundingBox(width=1, height=1, left=5, top=5) g1: t2.TGeometry = t2.TGeometry(bounding_box=b1, polygon=[p1]) g2: t2.TGeometry = t2.TGeometry(bounding_box=b2, polygon=[p2]) g2.ratio(doc_width=10, doc_height=10) assert (g1 == g2) def test_get_blocks_for_relationship(caplog): caplog.set_level(logging.DEBUG) # existing relationships p = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(p, "data/gib.json")) as f: j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) page = t_document.pages[0] block = t_document.get_block_by_id("458a9301-8a9d-4eb2-9469-70302c62622e") relationships = block.get_relationships_for_type() relationships_value = block.get_relationships_for_type(relationship_type="VALUE") if relationships and relationships_value: rel = t_document.get_blocks_for_relationships(relationship=relationships) assert len(rel) == 1 rel_value = t_document.get_blocks_for_relationships(relationship=relationships_value) assert len(rel_value) == 1 child_rel: List[t2.TBlock] = list() for value_block in rel_value: child_rel.extend(t_document.get_blocks_for_relationships(value_block.get_relationships_for_type())) assert len(child_rel) == 1 else: assert False def test_add_ids_to_relationships(caplog): tdocument = t2.TDocument() page_block = t2.TBlock( id=str(uuid4()), block_type="PAGE", geometry=t2.TGeometry(bounding_box=t2.TBoundingBox(width=1, height=1, left=0, top=0), polygon=[t2.TPoint(x=0, y=0), t2.TPoint(x=1, y=1)]), ) tblock = t2.TBlock(id=str(uuid4()), block_type="WORD", text="sometest", geometry=t2.TGeometry(bounding_box=t2.TBoundingBox(width=0, height=0, left=0, top=0), polygon=[t2.TPoint(x=0, y=0), t2.TPoint(x=0, y=0)]), confidence=99, text_type="VIRTUAL") tdocument.add_block(page_block) tdocument.add_block(tblock) page_block.add_ids_to_relationships([tblock.id]) tblock.add_ids_to_relationships(["1", "2"]) assert page_block.relationships and len(page_block.relationships) > 0 assert tblock.relationships and len(tblock.relationships) > 0 def test_key_value_set_key_name(caplog): caplog.set_level(logging.DEBUG) # existing relationships p = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(p, "data/gib.json")) as f: j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) page = t_document.pages[0] keys = list(t_document.keys(page=page)) assert keys and len(keys) > 0 for key_value in keys: child_relationship = key_value.get_relationships_for_type('CHILD') if child_relationship: for id in child_relationship.ids: k_b = t_document.get_block_by_id(id=id) print(k_b.text) print(' '.join([x.text for x in t_document.value_for_key(key_value)])) def test_get_relationships_for_type(caplog): # existing relationships p = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(p, "data/gib.json")) as f: j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) page = t_document.pages[0] new_block = t2.TBlock(id=str(uuid4())) t_document.add_block(new_block) page.add_ids_to_relationships([new_block.id]) assert t_document.get_block_by_id(new_block.id) == new_block #empty relationships t_document: t2.TDocument = t2.TDocument() t_document.add_block(t2.TBlock(id=str(uuid4()), block_type="PAGE")) page = t_document.pages[0] new_block = t2.TBlock(id=str(uuid4())) t_document.add_block(new_block) page.add_ids_to_relationships([new_block.id]) assert t_document.get_block_by_id(new_block.id) == new_block def test_merge_tables(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_multi_page_tables.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) tbl_id1 = 'fed02fb4-1996-4a15-98dc-29da193cc476' tbl_id2 = '47c6097f-02d5-4432-8423-13c05fbfacbd' pre_merge_tbl1_cells_no = len(t_document.get_block_by_id(tbl_id1).relationships[0].ids) # type: ignore pre_merge_tbl2_cells_no = len(t_document.get_block_by_id(tbl_id2).relationships[0].ids) # type: ignore pre_merge_tbl1_lastcell = t_document.get_block_by_id(tbl_id1).relationships[0].ids[-1] # type: ignore pre_merge_tbl2_lastcell = t_document.get_block_by_id(tbl_id2).relationships[0].ids[-1] # type: ignore pre_merge_tbl1_last_row = t_document.get_block_by_id(pre_merge_tbl1_lastcell).row_index # type: ignore pre_merge_tbl2_last_row = t_document.get_block_by_id(pre_merge_tbl2_lastcell).row_index # type: ignore t_document.merge_tables([[tbl_id1, tbl_id2]]) post_merge_tbl1_cells_no = len(t_document.get_block_by_id(tbl_id1).relationships[0].ids) # type: ignore post_merge_tbl1_lastcell = t_document.get_block_by_id(tbl_id1).relationships[0].ids[-1] # type: ignore post_merge_tbl1_last_row = t_document.get_block_by_id(post_merge_tbl1_lastcell).row_index # type: ignore assert post_merge_tbl1_cells_no == pre_merge_tbl1_cells_no + pre_merge_tbl2_cells_no assert pre_merge_tbl2_last_row assert post_merge_tbl1_last_row == pre_merge_tbl1_last_row + pre_merge_tbl2_last_row # type: ignore def test_delete_blocks(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_multi_page_tables.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) tbl_id1 = 'fed02fb4-1996-4a15-98dc-29da193cc476' tbl_id2 = '47c6097f-02d5-4432-8423-13c05fbfacbd' pre_delete_block_no = len(t_document.blocks) t_document.delete_blocks([tbl_id1, tbl_id2]) post_delete_block_no = len(t_document.blocks) assert post_delete_block_no == pre_delete_block_no - 2 def test_link_tables(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_multi_page_tables.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) tbl_id1 = 'fed02fb4-1996-4a15-98dc-29da193cc476' tbl_id2 = '47c6097f-02d5-4432-8423-13c05fbfacbd' t_document.link_tables([[tbl_id1, tbl_id2]]) assert t_document.get_block_by_id(tbl_id1).custom['next_table'] == tbl_id2 # type: ignore assert t_document.get_block_by_id(tbl_id2).custom['previous_table'] == tbl_id1 # type: ignore def test_pipeline_merge_tables(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_multi_page_table_merge.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) tbl_id1 = '5685498d-d196-42a7-8b40-594d6d886ca9' tbl_id2 = 'a9191a66-0d32-4d36-8fd6-58e6917f4ea6' tbl_id3 = 'e0368543-c9c3-4616-bd6c-f25e66c859b2' pre_merge_tbl1_cells_no = len(t_document.get_block_by_id(tbl_id1).relationships[0].ids) # type: ignore pre_merge_tbl2_cells_no = len(t_document.get_block_by_id(tbl_id2).relationships[0].ids) # type: ignore pre_merge_tbl3_cells_no = len(t_document.get_block_by_id(tbl_id3).relationships[0].ids) # type: ignore t_document = pipeline_merge_tables(t_document, MergeOptions.MERGE, None, HeaderFooterType.NONE) post_merge_tbl1_cells_no = len(t_document.get_block_by_id(tbl_id1).relationships[0].ids) # type: ignore assert post_merge_tbl1_cells_no == pre_merge_tbl1_cells_no + pre_merge_tbl2_cells_no + pre_merge_tbl3_cells_no def test_pipeline_merge_multiple_tables(): p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/gib_multi_tables_multi_page_sample.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) tbl_id1 = '4894d2ba-0479-4196-9cbd-c0fea4d28762' tbl_id2 = 'b5e061ec-05be-48d5-83fc-6719fdd4397a' tbl_id3 = '8bbc3f4f-0354-4999-a001-4585631bb7fe' tbl_id4 = 'cf8e09a1-c317-40c1-9c45-e830e14167d5' pre_merge_tbl1_cells_no = len(t_document.get_block_by_id(tbl_id1).relationships[0].ids) # type: ignore pre_merge_tbl2_cells_no = len(t_document.get_block_by_id(tbl_id2).relationships[0].ids) # type: ignore pre_merge_tbl3_cells_no = len(t_document.get_block_by_id(tbl_id3).relationships[0].ids) # type: ignore pre_merge_tbl4_cells_no = len(t_document.get_block_by_id(tbl_id4).relationships[0].ids) # type: ignore t_document = pipeline_merge_tables(t_document, MergeOptions.MERGE, None, HeaderFooterType.NONE) post_merge_tbl1_cells_no = len(t_document.get_block_by_id(tbl_id1).relationships[0].ids) # type: ignore post_merge_tbl2_cells_no = len(t_document.get_block_by_id(tbl_id3).relationships[0].ids) # type: ignore assert post_merge_tbl1_cells_no == pre_merge_tbl1_cells_no + pre_merge_tbl2_cells_no assert post_merge_tbl2_cells_no == pre_merge_tbl3_cells_no + pre_merge_tbl4_cells_no def test_kv_ocr_confidence(caplog): caplog.set_level(logging.DEBUG) p = os.path.dirname(os.path.realpath(__file__)) f = open(os.path.join(p, "data/employment-application.json")) j = json.load(f) t_document: t2.TDocument = t2.TDocumentSchema().load(j) t_document = add_kv_ocr_confidence(t_document) doc = t1.Document(t2.TDocumentSchema().dump(t_document)) for page in doc.pages: k1 = page.form.getFieldByKey("Home Address:") k1.key.custom['OCRConfidence'] == {'mean': 99.60698318481445} k1.value.custom['OCRConfidence'] == {'mean': 99.8596928914388} k1 = page.form.getFieldByKey("Phone Number:") k1.key.custom['OCRConfidence'] == {'mean': 99.55334854125977} k1.value.custom['OCRConfidence'] == {'mean': 99.23233032226562} # for field in page.form.fields: # print( # f"{field.key.text} - {field.key.custom['OCRConfidence']}, {field.value.text} - {field.value.custom['OCRConfidence']}" # )
[ 1, 515, 534, 29886, 29889, 29873, 29918, 13096, 5570, 1053, 788, 29918, 3488, 29918, 20659, 29892, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 13, 3166, 19229, 1053, 2391, 13, 3166, 534, 29886, 29889, 29873, 29918, 13096, 5570, 1053, 788, 29918, 3488, 29918, 20659, 29892, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 29892, 16439, 29918, 14634, 29918, 24051, 29892, 788, 29918, 27049, 29918, 8415, 29918, 5527, 5084, 13, 3166, 534, 29886, 29889, 29873, 29918, 24051, 1053, 4702, 479, 5856, 29892, 19345, 13440, 261, 1542, 13, 5215, 534, 29886, 29889, 509, 29886, 29906, 408, 260, 29906, 13, 5215, 534, 29886, 408, 260, 29896, 13, 5215, 4390, 13, 5215, 2897, 13, 5215, 11451, 1688, 13, 3166, 534, 29886, 1053, 10854, 13, 3166, 318, 5416, 1053, 318, 5416, 29946, 13, 5215, 12183, 13, 13, 3784, 29918, 12083, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 13, 13, 1753, 736, 29918, 3126, 29918, 1454, 29918, 1445, 29898, 9507, 1125, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3784, 29918, 12083, 29892, 10422, 876, 408, 1243, 29918, 3126, 29901, 13, 4706, 736, 4390, 29889, 1359, 29898, 1688, 29918, 3126, 29897, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 13, 1753, 4390, 29918, 5327, 7295, 13, 1678, 736, 736, 29918, 3126, 29918, 1454, 29918, 1445, 703, 1688, 29899, 5327, 29889, 3126, 1159, 13, 13, 13, 1753, 1243, 29918, 15550, 2133, 7295, 13, 1678, 9995, 13, 1678, 6724, 393, 6213, 1819, 526, 6206, 746, 7797, 5281, 13, 1678, 9995, 13, 1678, 289, 29890, 29918, 29896, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 29900, 29889, 29946, 29892, 29871, 29900, 29889, 29941, 29892, 29871, 29900, 29889, 29896, 29892, 2246, 29922, 8516, 29897, 1678, 396, 1134, 29901, 17281, 28172, 777, 6213, 29914, 4304, 1819, 13, 1678, 289, 29890, 29918, 29906, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 29900, 29889, 29946, 29892, 29871, 29900, 29889, 29941, 29892, 29871, 29900, 29889, 29896, 29892, 2246, 29922, 29900, 29889, 29906, 29897, 13, 1678, 282, 29896, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29896, 29892, 343, 29922, 29900, 29889, 29896, 29897, 13, 1678, 282, 29906, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29941, 29892, 343, 29922, 8516, 29897, 1678, 396, 1134, 29901, 17281, 13, 1678, 1737, 29877, 353, 260, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 1327, 29918, 29896, 29892, 29807, 11759, 29886, 29896, 29892, 282, 29906, 2314, 13, 1678, 1737, 29877, 29918, 29879, 353, 260, 29906, 29889, 29911, 7999, 7843, 12763, 580, 13, 1678, 269, 29901, 851, 353, 1737, 29877, 29918, 29879, 29889, 29881, 17204, 29898, 24756, 29897, 13, 1678, 4974, 451, 376, 4304, 29908, 297, 269, 13, 1678, 1737, 29877, 353, 260, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 1327, 29918, 29906, 29892, 29807, 11759, 29886, 29896, 29892, 282, 29906, 2314, 13, 1678, 269, 29901, 851, 353, 1737, 29877, 29918, 29879, 29889, 29881, 17204, 29898, 24756, 29897, 13, 1678, 4974, 451, 376, 4304, 29908, 297, 269, 13, 13, 13, 1753, 1243, 29918, 29873, 1271, 29918, 2098, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 716, 29918, 2098, 353, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 29898, 29873, 29918, 3225, 29897, 13, 1678, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 1482, 29918, 2098, 876, 13, 1678, 4974, 376, 1917, 29871, 29896, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29900, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 1678, 4974, 376, 1917, 29871, 29906, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29896, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 1678, 4974, 376, 1917, 29871, 29941, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29906, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 13, 13, 1753, 1243, 29918, 29873, 1271, 29918, 2098, 29918, 1271, 29918, 1609, 29918, 24756, 29918, 9910, 29918, 3488, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 9910, 29918, 3488, 29918, 24051, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 29898, 29873, 29918, 3225, 29897, 13, 1678, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 4974, 376, 5074, 29871, 29896, 448, 7865, 29871, 29896, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29900, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 1678, 4974, 376, 5074, 29871, 29896, 448, 7865, 29871, 29906, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29896, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 13, 13, 1753, 1243, 29918, 29873, 1271, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 716, 29918, 2098, 353, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 29898, 29873, 29918, 3225, 29897, 13, 1678, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 1482, 29918, 2098, 876, 13, 1678, 4974, 376, 1917, 29871, 29896, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29900, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 1678, 4974, 376, 1917, 29871, 29906, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29896, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 1678, 4974, 376, 1917, 29871, 29941, 29889, 29896, 29889, 29896, 29908, 1275, 1574, 29889, 12292, 29961, 29900, 1822, 24051, 29961, 29906, 1822, 5727, 29961, 29900, 1822, 3729, 29879, 29961, 29900, 1822, 726, 29889, 17010, 580, 13, 13, 13, 1753, 1243, 29918, 6341, 29918, 29873, 1271, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 29889, 6341, 353, 11117, 1688, 1271, 2396, 11117, 4150, 2396, 525, 275, 777, 2090, 6433, 29915, 930, 13, 1678, 4974, 525, 1688, 1271, 29915, 297, 260, 29906, 29889, 29911, 6268, 12763, 2141, 29881, 17204, 29898, 29873, 29918, 3225, 29897, 13, 13, 13, 1753, 1243, 29918, 6341, 29918, 3488, 29918, 20659, 29898, 3126, 29918, 5327, 1125, 13, 1678, 1574, 353, 10854, 29898, 3126, 29918, 5327, 29897, 13, 1678, 4974, 29871, 29896, 1275, 7431, 29898, 1514, 29889, 12292, 29897, 13, 1678, 3454, 353, 518, 1220, 363, 1196, 297, 1574, 29889, 12292, 29961, 29900, 1822, 9012, 29962, 13, 1678, 4974, 29871, 29906, 29906, 1275, 7431, 29898, 9012, 29897, 13, 1678, 3838, 353, 518, 1742, 363, 1196, 297, 3454, 363, 1734, 297, 1196, 29889, 9303, 29962, 13, 1678, 4974, 29871, 29945, 29941, 1275, 7431, 29898, 9303, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 3126, 29918, 5327, 29897, 13, 1678, 260, 29918, 3225, 29889, 6341, 353, 11117, 20659, 2396, 29871, 29896, 29947, 29900, 29913, 13, 1678, 716, 29918, 29873, 29918, 1514, 29918, 3126, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 376, 7281, 29908, 297, 716, 29918, 29873, 29918, 1514, 29918, 3126, 13, 1678, 4974, 376, 20659, 29908, 297, 716, 29918, 29873, 29918, 1514, 29918, 3126, 3366, 7281, 3108, 13, 1678, 4974, 716, 29918, 29873, 29918, 1514, 29918, 3126, 3366, 7281, 3108, 3366, 20659, 3108, 1275, 29871, 29896, 29947, 29900, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 448, 29896, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29906, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 29896, 29900, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 29871, 29945, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29896, 29945, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 29896, 29945, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 29871, 29896, 29900, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29906, 29900, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 29906, 29945, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 29871, 29896, 29955, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29941, 29900, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 29896, 29947, 29900, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 29871, 29896, 29955, 29900, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29896, 29929, 29900, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 29906, 29955, 29900, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 448, 29896, 29900, 29900, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 448, 29947, 29900, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 29929, 29900, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 29871, 29947, 29900, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29896, 29900, 29900, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 12254, 29918, 29896, 29900, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 448, 29896, 29900, 529, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 529, 29871, 29945, 13, 13, 1678, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 363, 1813, 297, 1574, 29889, 12292, 29901, 13, 4706, 4974, 1813, 29889, 6341, 1839, 5074, 25231, 29933, 1463, 2951, 29956, 4339, 2033, 13, 13, 13, 1753, 1243, 29918, 4572, 29918, 1271, 29879, 29918, 1609, 29918, 1853, 7295, 13, 1678, 2908, 29918, 1761, 353, 518, 29873, 29906, 29889, 29911, 7445, 29898, 333, 543, 29896, 613, 2908, 29918, 1853, 29922, 29873, 29906, 29889, 1626, 1461, 7445, 10562, 29889, 17013, 29889, 978, 4638, 13, 1678, 4974, 260, 29906, 29889, 29911, 6268, 29889, 4572, 29918, 1271, 29879, 29918, 1609, 29918, 1853, 29898, 1271, 29918, 1761, 29922, 1271, 29918, 1761, 29892, 13, 462, 462, 795, 1426, 1461, 29918, 1271, 29918, 1853, 11759, 29873, 29906, 29889, 1626, 1461, 7445, 10562, 29889, 17013, 2314, 1275, 2908, 29918, 1761, 13, 13, 13, 1753, 1243, 29918, 4622, 29918, 6979, 29918, 5327, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 4974, 432, 1839, 9190, 6066, 2033, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 4974, 260, 29918, 3225, 29889, 12292, 29961, 29900, 1822, 6341, 13, 13, 13, 1753, 1243, 29918, 23361, 29918, 3149, 7295, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29906, 29892, 29871, 29906, 29897, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29906, 29892, 29871, 29906, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29906, 29892, 29871, 29906, 467, 23361, 29898, 311, 7979, 267, 29922, 29896, 29947, 29900, 29892, 3978, 29918, 29891, 29922, 29900, 29892, 3978, 29918, 29916, 29922, 29900, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 6278, 29906, 29892, 448, 29906, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29941, 29900, 29892, 3978, 29918, 29891, 29922, 29900, 29892, 3978, 29918, 29916, 29922, 29900, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29945, 29892, 29871, 29906, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29955, 29955, 29892, 3978, 29918, 29891, 29922, 29900, 29892, 3978, 29918, 29916, 29922, 29900, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29945, 29892, 448, 29906, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29929, 29900, 29892, 3978, 29918, 29891, 29922, 29900, 29892, 3978, 29918, 29916, 29922, 29900, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29946, 29892, 448, 29941, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29906, 29955, 29900, 29892, 3978, 29918, 29891, 29922, 29900, 29892, 3978, 29918, 29916, 29922, 29900, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 6278, 29946, 29892, 29871, 29941, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29906, 29892, 29871, 29906, 467, 23361, 29898, 311, 7979, 267, 29922, 29896, 29947, 29900, 29892, 3978, 29918, 29916, 29922, 29896, 29892, 3978, 29918, 29891, 29922, 29896, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29900, 29892, 29871, 29900, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29941, 29900, 29892, 3978, 29918, 29891, 29922, 29900, 29892, 3978, 29918, 29916, 29922, 29900, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29945, 29892, 29871, 29906, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29955, 29955, 29892, 3978, 29918, 29916, 29922, 29946, 29892, 3978, 29918, 29891, 29922, 29946, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29946, 29892, 29871, 29945, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29929, 29900, 29892, 3978, 29918, 29916, 29922, 29946, 29892, 3978, 29918, 29891, 29922, 29953, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29906, 29892, 29871, 29955, 29897, 13, 13, 1678, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29941, 29892, 29871, 29946, 467, 23361, 29898, 311, 7979, 267, 10457, 29906, 29955, 29900, 29892, 3978, 29918, 29916, 29922, 29946, 29892, 3978, 29918, 29891, 29922, 29953, 29892, 4889, 29918, 12514, 29922, 8824, 29897, 13, 1678, 4974, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 14486, 29898, 29886, 29889, 29916, 511, 343, 29922, 14486, 29898, 29886, 29889, 29891, 876, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29953, 29892, 29871, 29945, 29897, 13, 13, 13, 1753, 1243, 29918, 23361, 7295, 13, 13, 1678, 3291, 353, 5159, 13, 1678, 2920, 353, 29871, 29900, 29889, 29900, 29945, 29946, 29896, 29945, 29955, 29945, 29947, 29947, 29953, 29941, 29900, 29929, 29896, 29946, 29953, 29929, 13, 1678, 3171, 353, 29871, 29900, 29889, 29900, 29896, 29896, 29953, 29929, 29896, 29906, 29947, 29946, 29941, 29953, 29945, 29929, 29945, 29906, 29900, 29896, 29945, 13, 1678, 2175, 353, 29871, 29900, 29889, 29896, 29941, 29929, 29929, 29946, 29955, 29929, 29953, 29945, 29955, 29946, 29896, 29896, 29945, 29955, 29945, 29941, 13, 1678, 2246, 353, 29871, 29900, 29889, 29947, 29929, 29929, 29955, 29929, 29896, 29953, 29945, 29955, 29929, 29906, 29946, 29953, 29945, 29906, 29896, 13, 1678, 3978, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 29897, 13, 1678, 14496, 29901, 5785, 353, 29871, 29896, 29947, 29900, 13, 1678, 3291, 29889, 4397, 29898, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 1563, 29892, 343, 29922, 3332, 467, 23361, 29898, 12574, 29918, 29916, 29922, 12574, 29889, 29916, 29892, 3978, 29918, 29891, 29922, 12574, 29889, 29891, 29892, 14496, 29922, 311, 7979, 267, 876, 13, 1678, 3291, 29889, 4397, 29898, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 1563, 718, 2920, 29892, 343, 29922, 3332, 467, 23361, 29898, 12574, 29918, 29916, 29922, 12574, 29889, 29916, 29892, 3978, 29918, 29891, 29922, 12574, 29889, 29891, 29892, 14496, 29922, 311, 7979, 267, 876, 13, 1678, 3291, 29889, 4397, 29898, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 1563, 29892, 343, 29922, 3332, 718, 3171, 467, 23361, 29898, 12574, 29918, 29916, 29922, 12574, 29889, 29916, 29892, 3978, 29918, 29891, 29922, 12574, 29889, 29891, 29892, 14496, 29922, 311, 7979, 267, 876, 13, 1678, 3291, 29889, 4397, 29898, 13, 4706, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 1563, 718, 2920, 29892, 343, 29922, 3332, 718, 3171, 467, 23361, 29898, 12574, 29918, 29916, 29922, 12574, 29889, 29916, 29892, 3978, 29918, 29891, 29922, 12574, 29889, 29891, 29892, 14496, 29922, 311, 7979, 267, 876, 13, 1678, 4974, 451, 6213, 297, 3291, 13, 13, 13, 1753, 1243, 29918, 328, 5143, 29918, 9917, 292, 29918, 1884, 267, 29918, 392, 29918, 3733, 4790, 787, 29918, 517, 29918, 20659, 7295, 13, 1678, 396, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 396, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 13, 1678, 396, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 396, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 396, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 396, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 396, 1820, 353, 376, 2539, 6160, 13, 1678, 396, 4235, 353, 1574, 29889, 12292, 29961, 29900, 1822, 689, 29889, 4478, 14256, 2059, 2558, 29898, 1989, 29897, 13, 1678, 396, 363, 1746, 297, 4235, 29901, 13, 1678, 396, 268, 1596, 29898, 29888, 29908, 3073, 29901, 7670, 29901, 426, 2671, 29889, 1989, 1118, 7865, 29901, 426, 2671, 29889, 1767, 1118, 1879, 29877, 29901, 426, 2671, 29889, 19156, 29913, 16521, 13, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 1649, 29896, 29947, 29900, 29918, 311, 7979, 267, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 3488, 29918, 20659, 29898, 29873, 29918, 3225, 29897, 13, 1678, 716, 29918, 2098, 353, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 29898, 29873, 29918, 3225, 29897, 13, 1678, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 396, 363, 1196, 297, 1574, 29889, 12292, 29961, 29900, 1822, 9012, 29901, 13, 1678, 396, 268, 1596, 703, 3542, 29901, 6571, 1642, 4830, 29898, 1220, 29889, 726, 876, 13, 1678, 396, 1596, 703, 9166, 4936, 25512, 1156, 13733, 1275, 9166, 2751, 26359, 29897, 13, 1678, 396, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 396, 1820, 353, 376, 2539, 6160, 13, 1678, 396, 4235, 353, 1574, 29889, 12292, 29961, 29900, 1822, 689, 29889, 4478, 14256, 2059, 2558, 29898, 1989, 29897, 13, 1678, 396, 16734, 29918, 3149, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 29897, 13, 1678, 396, 363, 1746, 297, 4235, 29901, 13, 1678, 396, 268, 1596, 29898, 29888, 29908, 3073, 29901, 7670, 29901, 426, 2671, 29889, 1989, 1118, 7865, 29901, 426, 2671, 29889, 1767, 1118, 1879, 29877, 29901, 426, 2671, 29889, 19156, 29913, 16521, 13, 1678, 396, 268, 289, 1884, 353, 1746, 29889, 19156, 29889, 9917, 292, 3313, 13, 1678, 396, 268, 716, 29918, 3149, 353, 260, 29918, 13096, 5570, 17255, 23361, 29898, 12574, 29922, 23361, 29918, 3149, 29892, 13, 1678, 396, 462, 308, 1298, 29922, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29890, 1884, 29889, 1563, 29892, 343, 29922, 29890, 1884, 29889, 3332, 511, 13, 1678, 396, 462, 308, 10696, 29918, 311, 7979, 267, 29922, 29896, 29947, 29900, 29897, 13, 1678, 396, 268, 1596, 29898, 29888, 29908, 1482, 1298, 29901, 426, 1482, 29918, 3149, 27195, 13, 13, 1678, 396, 383, 6415, 2303, 29901, 3349, 20955, 297, 9443, 29918, 3757, 25397, 29991, 13, 1678, 396, 518, 29890, 29889, 23361, 29898, 12574, 29922, 29873, 29906, 29889, 3557, 2461, 29898, 29900, 29889, 29945, 29892, 29871, 29900, 29889, 29945, 511, 14496, 29922, 29896, 29947, 29900, 29897, 363, 289, 297, 260, 29918, 3225, 29889, 2674, 800, 14587, 29918, 3757, 25397, 29898, 1271, 29922, 29873, 29918, 3225, 29889, 12292, 29961, 29900, 2314, 29962, 13, 1678, 396, 260, 29918, 3225, 29889, 23361, 29898, 3488, 29922, 29873, 29918, 3225, 29889, 12292, 29961, 29900, 1402, 14496, 29922, 29896, 29947, 29900, 29897, 13, 1678, 396, 716, 29918, 2098, 353, 1797, 29918, 1271, 29879, 29918, 1609, 29918, 24756, 29898, 29873, 29918, 3225, 29897, 13, 1678, 396, 411, 1722, 11974, 5959, 29914, 816, 18401, 29914, 7382, 29914, 5450, 362, 29914, 23361, 29918, 3126, 29906, 29889, 13022, 613, 376, 29893, 1159, 408, 714, 29918, 1445, 29901, 13, 1678, 396, 268, 714, 29918, 1445, 29889, 3539, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 29881, 17204, 29898, 29873, 29918, 3225, 876, 13, 13, 1678, 396, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 396, 363, 1196, 297, 1574, 29889, 12292, 29961, 29900, 1822, 9012, 29901, 13, 1678, 396, 268, 1596, 703, 3542, 29901, 6571, 1642, 4830, 29898, 1220, 29889, 726, 876, 13, 13, 1678, 396, 282, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29955, 29945, 29892, 343, 29922, 29900, 29889, 29900, 29941, 29897, 13, 1678, 396, 282, 29889, 23361, 29898, 12574, 29918, 29916, 29922, 29900, 29889, 29945, 29892, 3978, 29918, 29891, 29922, 29900, 29889, 29945, 29892, 14496, 29922, 29896, 29947, 29900, 29897, 13, 1678, 396, 1596, 29898, 29886, 29897, 13, 1678, 396, 716, 29918, 3149, 353, 16734, 29898, 12574, 29922, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 511, 1298, 353, 1723, 13, 1678, 396, 1596, 29898, 29888, 29908, 1482, 29918, 3149, 29901, 426, 1482, 29918, 3149, 29889, 29916, 29901, 29889, 29906, 29888, 1118, 426, 1482, 29918, 3149, 29889, 29891, 29901, 29889, 29906, 29888, 27195, 13, 1678, 396, 1596, 29898, 23361, 29898, 12574, 29922, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 511, 1298, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 21098, 29955, 29945, 29892, 343, 29922, 29900, 29889, 29900, 29941, 4961, 13, 13, 13, 1753, 1243, 29918, 7052, 29898, 5030, 1188, 1125, 13, 1678, 282, 29896, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 29897, 13, 1678, 282, 29896, 29889, 7052, 29898, 1514, 29918, 2103, 29922, 29896, 29900, 29892, 1574, 29918, 3545, 29922, 29896, 29900, 29897, 13, 1678, 4974, 313, 29886, 29896, 1275, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29945, 29892, 343, 29922, 29945, 876, 13, 1678, 289, 29896, 29901, 260, 29906, 29889, 24895, 12449, 3313, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29900, 29889, 29896, 29892, 3171, 29922, 29900, 29889, 29896, 29892, 2175, 29922, 29900, 29889, 29945, 29892, 2246, 29922, 29900, 29889, 29945, 29897, 13, 1678, 289, 29896, 29889, 7052, 29898, 1514, 29918, 2103, 29922, 29896, 29900, 29892, 1574, 29918, 3545, 29922, 29896, 29900, 29897, 13, 1678, 4974, 313, 29890, 29896, 1275, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29896, 29892, 3171, 29922, 29896, 29892, 2175, 29922, 29945, 29892, 2246, 29922, 29945, 876, 13, 13, 1678, 282, 29896, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 29897, 13, 1678, 289, 29896, 29901, 260, 29906, 29889, 24895, 12449, 3313, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29900, 29889, 29896, 29892, 3171, 29922, 29900, 29889, 29896, 29892, 2175, 29922, 29900, 29889, 29945, 29892, 2246, 29922, 29900, 29889, 29945, 29897, 13, 1678, 330, 29896, 29901, 260, 29906, 29889, 29911, 7999, 7843, 353, 260, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 29890, 29896, 29892, 29807, 11759, 29886, 29896, 2314, 13, 1678, 330, 29896, 29889, 7052, 29898, 1514, 29918, 2103, 29922, 29896, 29900, 29892, 1574, 29918, 3545, 29922, 29896, 29900, 29897, 13, 1678, 4974, 313, 29887, 29896, 1275, 260, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 29873, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29896, 29892, 3171, 29922, 29896, 29892, 2175, 29922, 29945, 29892, 2246, 29922, 29945, 511, 13, 462, 1669, 29807, 11759, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29945, 29892, 343, 29922, 29945, 4638, 876, 13, 13, 13, 1753, 1243, 29918, 3605, 601, 29898, 5030, 1188, 1125, 13, 1678, 282, 29896, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 29897, 13, 1678, 282, 29906, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29945, 29892, 343, 29922, 29945, 29897, 13, 1678, 282, 29906, 29889, 3605, 601, 29898, 1514, 29918, 2103, 29922, 29896, 29900, 29892, 1574, 29918, 3545, 29922, 29896, 29900, 29897, 13, 1678, 4974, 313, 29886, 29896, 1275, 282, 29906, 29897, 13, 13, 1678, 289, 29896, 29901, 260, 29906, 29889, 24895, 12449, 3313, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29900, 29889, 29896, 29892, 3171, 29922, 29900, 29889, 29896, 29892, 2175, 29922, 29900, 29889, 29945, 29892, 2246, 29922, 29900, 29889, 29945, 29897, 13, 1678, 289, 29906, 29901, 260, 29906, 29889, 24895, 12449, 3313, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29896, 29892, 3171, 29922, 29896, 29892, 2175, 29922, 29945, 29892, 2246, 29922, 29945, 29897, 13, 1678, 289, 29906, 29889, 3605, 601, 29898, 1514, 29918, 2103, 29922, 29896, 29900, 29892, 1574, 29918, 3545, 29922, 29896, 29900, 29897, 13, 1678, 4974, 313, 29890, 29896, 1275, 289, 29906, 29897, 13, 13, 1678, 282, 29896, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29889, 29945, 29892, 343, 29922, 29900, 29889, 29945, 29897, 13, 1678, 282, 29906, 29901, 260, 29906, 29889, 3557, 2461, 353, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29945, 29892, 343, 29922, 29945, 29897, 13, 1678, 289, 29896, 29901, 260, 29906, 29889, 24895, 12449, 3313, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29900, 29889, 29896, 29892, 3171, 29922, 29900, 29889, 29896, 29892, 2175, 29922, 29900, 29889, 29945, 29892, 2246, 29922, 29900, 29889, 29945, 29897, 13, 1678, 289, 29906, 29901, 260, 29906, 29889, 24895, 12449, 3313, 353, 260, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29896, 29892, 3171, 29922, 29896, 29892, 2175, 29922, 29945, 29892, 2246, 29922, 29945, 29897, 13, 13, 1678, 330, 29896, 29901, 260, 29906, 29889, 29911, 7999, 7843, 353, 260, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 29890, 29896, 29892, 29807, 11759, 29886, 29896, 2314, 13, 1678, 330, 29906, 29901, 260, 29906, 29889, 29911, 7999, 7843, 353, 260, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 29890, 29906, 29892, 29807, 11759, 29886, 29906, 2314, 13, 13, 1678, 330, 29906, 29889, 3605, 601, 29898, 1514, 29918, 2103, 29922, 29896, 29900, 29892, 1574, 29918, 3545, 29922, 29896, 29900, 29897, 13, 1678, 4974, 313, 29887, 29896, 1275, 330, 29906, 29897, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 1271, 29879, 29918, 1454, 29918, 2674, 800, 4034, 29898, 5030, 1188, 1125, 13, 1678, 2117, 1188, 29889, 842, 29918, 5563, 29898, 21027, 29889, 18525, 29897, 13, 13, 1678, 396, 5923, 21702, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 408, 285, 29901, 13, 4706, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 4706, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 4706, 1813, 353, 260, 29918, 3225, 29889, 12292, 29961, 29900, 29962, 13, 4706, 2908, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 703, 29946, 29945, 29947, 29874, 29929, 29941, 29900, 29896, 29899, 29947, 29874, 29929, 29881, 29899, 29946, 774, 29906, 29899, 29929, 29946, 29953, 29929, 29899, 29955, 29900, 29941, 29900, 29906, 29883, 29953, 29906, 29953, 29906, 29906, 29872, 1159, 13, 4706, 21702, 353, 2908, 29889, 657, 29918, 2674, 800, 14587, 29918, 1454, 29918, 1853, 580, 13, 4706, 21702, 29918, 1767, 353, 2908, 29889, 657, 29918, 2674, 800, 14587, 29918, 1454, 29918, 1853, 29898, 2674, 800, 4034, 29918, 1853, 543, 19143, 1159, 13, 4706, 565, 21702, 322, 21702, 29918, 1767, 29901, 13, 9651, 1104, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29879, 29918, 1454, 29918, 2674, 800, 14587, 29898, 2674, 800, 4034, 29922, 2674, 800, 14587, 29897, 13, 9651, 4974, 7431, 29898, 2674, 29897, 1275, 29871, 29896, 13, 9651, 1104, 29918, 1767, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29879, 29918, 1454, 29918, 2674, 800, 14587, 29898, 2674, 800, 4034, 29922, 2674, 800, 14587, 29918, 1767, 29897, 13, 9651, 4974, 7431, 29898, 2674, 29918, 1767, 29897, 1275, 29871, 29896, 13, 13, 9651, 2278, 29918, 2674, 29901, 2391, 29961, 29873, 29906, 29889, 29911, 7445, 29962, 353, 1051, 580, 13, 9651, 363, 995, 29918, 1271, 297, 1104, 29918, 1767, 29901, 13, 18884, 2278, 29918, 2674, 29889, 21843, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29879, 29918, 1454, 29918, 2674, 800, 14587, 29898, 1767, 29918, 1271, 29889, 657, 29918, 2674, 800, 14587, 29918, 1454, 29918, 1853, 22130, 13, 9651, 4974, 7431, 29898, 5145, 29918, 2674, 29897, 1275, 29871, 29896, 13, 4706, 1683, 29901, 13, 9651, 4974, 7700, 13, 13, 13, 1753, 1243, 29918, 1202, 29918, 4841, 29918, 517, 29918, 2674, 800, 14587, 29898, 5030, 1188, 1125, 13, 1678, 260, 3225, 353, 260, 29906, 29889, 29911, 6268, 580, 13, 1678, 1813, 29918, 1271, 353, 260, 29906, 29889, 29911, 7445, 29898, 13, 4706, 1178, 29922, 710, 29898, 25118, 29946, 25739, 13, 4706, 2908, 29918, 1853, 543, 7228, 1692, 613, 13, 4706, 16303, 29922, 29873, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 29873, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29896, 29892, 3171, 29922, 29896, 29892, 2175, 29922, 29900, 29892, 2246, 29922, 29900, 511, 13, 462, 795, 29807, 11759, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29892, 343, 29922, 29900, 511, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29896, 29892, 343, 29922, 29896, 4638, 511, 13, 1678, 1723, 13, 1678, 260, 1271, 353, 260, 29906, 29889, 29911, 7445, 29898, 333, 29922, 710, 29898, 25118, 29946, 25739, 13, 462, 539, 2908, 29918, 1853, 543, 17013, 613, 13, 462, 539, 1426, 543, 29879, 3297, 342, 613, 13, 462, 539, 16303, 29922, 29873, 29906, 29889, 29911, 7999, 7843, 29898, 9917, 292, 29918, 1884, 29922, 29873, 29906, 29889, 24895, 12449, 3313, 29898, 2103, 29922, 29900, 29892, 3171, 29922, 29900, 29892, 2175, 29922, 29900, 29892, 2246, 29922, 29900, 511, 13, 462, 462, 632, 29807, 11759, 29873, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29892, 343, 29922, 29900, 511, 260, 29906, 29889, 3557, 2461, 29898, 29916, 29922, 29900, 29892, 343, 29922, 29900, 4638, 511, 13, 462, 539, 16420, 29922, 29929, 29929, 29892, 13, 462, 539, 1426, 29918, 1853, 543, 29963, 8193, 29911, 29965, 1964, 1159, 13, 1678, 260, 3225, 29889, 1202, 29918, 1271, 29898, 3488, 29918, 1271, 29897, 13, 1678, 260, 3225, 29889, 1202, 29918, 1271, 29898, 29873, 1271, 29897, 13, 1678, 1813, 29918, 1271, 29889, 1202, 29918, 4841, 29918, 517, 29918, 2674, 800, 14587, 4197, 29873, 1271, 29889, 333, 2314, 13, 1678, 260, 1271, 29889, 1202, 29918, 4841, 29918, 517, 29918, 2674, 800, 14587, 29898, 3366, 29896, 613, 376, 29906, 20068, 13, 1678, 4974, 1813, 29918, 1271, 29889, 2674, 800, 14587, 322, 7431, 29898, 3488, 29918, 1271, 29889, 2674, 800, 14587, 29897, 1405, 29871, 29900, 13, 1678, 4974, 260, 1271, 29889, 2674, 800, 14587, 322, 7431, 29898, 29873, 1271, 29889, 2674, 800, 14587, 29897, 1405, 29871, 29900, 13, 13, 13, 1753, 1243, 29918, 1989, 29918, 1767, 29918, 842, 29918, 1989, 29918, 978, 29898, 5030, 1188, 1125, 13, 1678, 2117, 1188, 29889, 842, 29918, 5563, 29898, 21027, 29889, 18525, 29897, 13, 13, 1678, 396, 5923, 21702, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 408, 285, 29901, 13, 4706, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 4706, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 4706, 1813, 353, 260, 29918, 3225, 29889, 12292, 29961, 29900, 29962, 13, 4706, 6611, 353, 1051, 29898, 29873, 29918, 3225, 29889, 8149, 29898, 3488, 29922, 3488, 876, 13, 4706, 4974, 6611, 322, 7431, 29898, 8149, 29897, 1405, 29871, 29900, 13, 4706, 363, 1820, 29918, 1767, 297, 6611, 29901, 13, 9651, 2278, 29918, 2674, 800, 4034, 353, 1820, 29918, 1767, 29889, 657, 29918, 2674, 800, 14587, 29918, 1454, 29918, 1853, 877, 3210, 6227, 29928, 1495, 13, 9651, 565, 2278, 29918, 2674, 800, 4034, 29901, 13, 18884, 363, 1178, 297, 2278, 29918, 2674, 800, 4034, 29889, 4841, 29901, 13, 462, 1678, 413, 29918, 29890, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 333, 29922, 333, 29897, 13, 462, 1678, 1596, 29898, 29895, 29918, 29890, 29889, 726, 29897, 13, 9651, 1596, 877, 15300, 7122, 4197, 29916, 29889, 726, 363, 921, 297, 260, 29918, 3225, 29889, 1767, 29918, 1454, 29918, 1989, 29898, 1989, 29918, 1767, 4638, 876, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 2674, 800, 14587, 29918, 1454, 29918, 1853, 29898, 5030, 1188, 1125, 13, 1678, 396, 5923, 21702, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29889, 3126, 5783, 408, 285, 29901, 13, 4706, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 4706, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 4706, 1813, 353, 260, 29918, 3225, 29889, 12292, 29961, 29900, 29962, 13, 4706, 716, 29918, 1271, 353, 260, 29906, 29889, 29911, 7445, 29898, 333, 29922, 710, 29898, 25118, 29946, 22130, 13, 4706, 260, 29918, 3225, 29889, 1202, 29918, 1271, 29898, 1482, 29918, 1271, 29897, 13, 4706, 1813, 29889, 1202, 29918, 4841, 29918, 517, 29918, 2674, 800, 14587, 4197, 1482, 29918, 1271, 29889, 333, 2314, 13, 4706, 4974, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 1482, 29918, 1271, 29889, 333, 29897, 1275, 716, 29918, 1271, 13, 13, 1678, 396, 6310, 21702, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 580, 13, 1678, 260, 29918, 3225, 29889, 1202, 29918, 1271, 29898, 29873, 29906, 29889, 29911, 7445, 29898, 333, 29922, 710, 29898, 25118, 29946, 25739, 2908, 29918, 1853, 543, 7228, 1692, 5783, 13, 1678, 1813, 353, 260, 29918, 3225, 29889, 12292, 29961, 29900, 29962, 13, 1678, 716, 29918, 1271, 353, 260, 29906, 29889, 29911, 7445, 29898, 333, 29922, 710, 29898, 25118, 29946, 22130, 13, 1678, 260, 29918, 3225, 29889, 1202, 29918, 1271, 29898, 1482, 29918, 1271, 29897, 13, 1678, 1813, 29889, 1202, 29918, 4841, 29918, 517, 29918, 2674, 800, 14587, 4197, 1482, 29918, 1271, 29889, 333, 2314, 13, 1678, 4974, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 1482, 29918, 1271, 29889, 333, 29897, 1275, 716, 29918, 1271, 13, 13, 13, 1753, 1243, 29918, 14634, 29918, 24051, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 9910, 29918, 3488, 29918, 24051, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 19018, 29918, 333, 29896, 353, 525, 29888, 287, 29900, 29906, 14943, 29946, 29899, 29896, 29929, 29929, 29953, 29899, 29946, 29874, 29896, 29945, 29899, 29929, 29947, 13891, 29899, 29906, 29929, 1388, 29896, 29929, 29941, 617, 29946, 29955, 29953, 29915, 13, 1678, 19018, 29918, 333, 29906, 353, 525, 29946, 29955, 29883, 29953, 29900, 29929, 29955, 29888, 29899, 29900, 29906, 29881, 29945, 29899, 29946, 29946, 29941, 29906, 29899, 29947, 29946, 29906, 29941, 29899, 29896, 29941, 29883, 29900, 29945, 29888, 1635, 562, 6448, 29915, 13, 1678, 758, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29906, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 3729, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 14352, 29896, 29962, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29906, 29918, 4230, 3729, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29906, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 14352, 29896, 29962, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 29918, 798, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 1457, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 3729, 467, 798, 29918, 2248, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29906, 29918, 4230, 29918, 798, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 1457, 29918, 14634, 29918, 16400, 29906, 29918, 4230, 3729, 467, 798, 29918, 2248, 1678, 396, 1134, 29901, 11455, 13, 1678, 260, 29918, 3225, 29889, 14634, 29918, 24051, 4197, 29961, 16400, 29918, 333, 29896, 29892, 19018, 29918, 333, 29906, 24960, 13, 1678, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 3729, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 14352, 29896, 29962, 1678, 396, 1134, 29901, 11455, 13, 1678, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 29918, 798, 353, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 2490, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 3729, 467, 798, 29918, 2248, 1678, 396, 1134, 29901, 11455, 13, 1678, 4974, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 1275, 758, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 718, 758, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 13, 1678, 4974, 758, 29918, 14634, 29918, 16400, 29906, 29918, 4230, 29918, 798, 13, 1678, 4974, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 29918, 798, 1275, 758, 29918, 14634, 29918, 16400, 29896, 29918, 4230, 29918, 798, 718, 758, 29918, 14634, 29918, 16400, 29906, 29918, 4230, 29918, 798, 1678, 396, 1134, 29901, 11455, 13, 13, 13, 1753, 1243, 29918, 8143, 29918, 1271, 29879, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 9910, 29918, 3488, 29918, 24051, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 19018, 29918, 333, 29896, 353, 525, 29888, 287, 29900, 29906, 14943, 29946, 29899, 29896, 29929, 29929, 29953, 29899, 29946, 29874, 29896, 29945, 29899, 29929, 29947, 13891, 29899, 29906, 29929, 1388, 29896, 29929, 29941, 617, 29946, 29955, 29953, 29915, 13, 1678, 19018, 29918, 333, 29906, 353, 525, 29946, 29955, 29883, 29953, 29900, 29929, 29955, 29888, 29899, 29900, 29906, 29881, 29945, 29899, 29946, 29946, 29941, 29906, 29899, 29947, 29946, 29906, 29941, 29899, 29896, 29941, 29883, 29900, 29945, 29888, 1635, 562, 6448, 29915, 13, 1678, 758, 29918, 8143, 29918, 1271, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 1271, 29879, 29897, 13, 1678, 260, 29918, 3225, 29889, 8143, 29918, 1271, 29879, 4197, 16400, 29918, 333, 29896, 29892, 19018, 29918, 333, 29906, 2314, 13, 1678, 1400, 29918, 8143, 29918, 1271, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 1271, 29879, 29897, 13, 1678, 4974, 1400, 29918, 8143, 29918, 1271, 29918, 1217, 1275, 758, 29918, 8143, 29918, 1271, 29918, 1217, 448, 29871, 29906, 13, 13, 13, 1753, 1243, 29918, 2324, 29918, 24051, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 9910, 29918, 3488, 29918, 24051, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 19018, 29918, 333, 29896, 353, 525, 29888, 287, 29900, 29906, 14943, 29946, 29899, 29896, 29929, 29929, 29953, 29899, 29946, 29874, 29896, 29945, 29899, 29929, 29947, 13891, 29899, 29906, 29929, 1388, 29896, 29929, 29941, 617, 29946, 29955, 29953, 29915, 13, 1678, 19018, 29918, 333, 29906, 353, 525, 29946, 29955, 29883, 29953, 29900, 29929, 29955, 29888, 29899, 29900, 29906, 29881, 29945, 29899, 29946, 29946, 29941, 29906, 29899, 29947, 29946, 29906, 29941, 29899, 29896, 29941, 29883, 29900, 29945, 29888, 1635, 562, 6448, 29915, 13, 1678, 260, 29918, 3225, 29889, 2324, 29918, 24051, 4197, 29961, 16400, 29918, 333, 29896, 29892, 19018, 29918, 333, 29906, 24960, 13, 1678, 4974, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 6341, 1839, 4622, 29918, 2371, 2033, 1275, 19018, 29918, 333, 29906, 1678, 396, 1134, 29901, 11455, 13, 1678, 4974, 260, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29906, 467, 6341, 1839, 24957, 29918, 2371, 2033, 1275, 19018, 29918, 333, 29896, 1678, 396, 1134, 29901, 11455, 13, 13, 13, 1753, 1243, 29918, 13096, 5570, 29918, 14634, 29918, 24051, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 9910, 29918, 3488, 29918, 2371, 29918, 14634, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 19018, 29918, 333, 29896, 353, 525, 29945, 29953, 29947, 29945, 29946, 29929, 29947, 29881, 29899, 29881, 29896, 29929, 29953, 29899, 29946, 29906, 29874, 29955, 29899, 29947, 29890, 29946, 29900, 29899, 29945, 29929, 29946, 29881, 29953, 29881, 29947, 29947, 29953, 1113, 29929, 29915, 13, 1678, 19018, 29918, 333, 29906, 353, 525, 29874, 29929, 29896, 29929, 29896, 29874, 29953, 29953, 29899, 29900, 29881, 29941, 29906, 29899, 29946, 29881, 29941, 29953, 29899, 29947, 11512, 29953, 29899, 29945, 29947, 29872, 29953, 29929, 29896, 29955, 29888, 29946, 11248, 29953, 29915, 13, 1678, 19018, 29918, 333, 29941, 353, 525, 29872, 29900, 29941, 29953, 29947, 29945, 29946, 29941, 29899, 29883, 29929, 29883, 29941, 29899, 29946, 29953, 29896, 29953, 29899, 6448, 29953, 29883, 29899, 29888, 29906, 29945, 29872, 29953, 29953, 29883, 29947, 29945, 29929, 29890, 29906, 29915, 13, 1678, 758, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29906, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29941, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29941, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 260, 29918, 3225, 353, 16439, 29918, 14634, 29918, 24051, 29898, 29873, 29918, 3225, 29892, 4702, 479, 5856, 29889, 29924, 1001, 1692, 29892, 6213, 29892, 19345, 13440, 261, 1542, 29889, 29940, 12413, 29897, 13, 1678, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 4974, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 1275, 758, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 718, 758, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 718, 758, 29918, 14634, 29918, 16400, 29941, 29918, 3729, 29879, 29918, 1217, 13, 13, 13, 1753, 1243, 29918, 13096, 5570, 29918, 14634, 29918, 20787, 29918, 24051, 7295, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 29887, 747, 29918, 9910, 29918, 24051, 29918, 9910, 29918, 3488, 29918, 11249, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 19018, 29918, 333, 29896, 353, 525, 29946, 29947, 29929, 29946, 29881, 29906, 2291, 29899, 29900, 29946, 29955, 29929, 29899, 29946, 29896, 29929, 29953, 29899, 29929, 29883, 6448, 29899, 29883, 29900, 1725, 29874, 29946, 29881, 29906, 29947, 29955, 29953, 29906, 29915, 13, 1678, 19018, 29918, 333, 29906, 353, 525, 29890, 29945, 29872, 29900, 29953, 29896, 687, 29899, 29900, 29945, 915, 29899, 29946, 29947, 29881, 29945, 29899, 29947, 29941, 13801, 29899, 29953, 29955, 29896, 29929, 29888, 1289, 29946, 29941, 29929, 29955, 29874, 29915, 13, 1678, 19018, 29918, 333, 29941, 353, 525, 29947, 1327, 29883, 29941, 29888, 29946, 29888, 29899, 29900, 29941, 29945, 29946, 29899, 29946, 29929, 29929, 29929, 29899, 29874, 29900, 29900, 29896, 29899, 29946, 29945, 29947, 29945, 29953, 29941, 29896, 1327, 29955, 1725, 29915, 13, 1678, 19018, 29918, 333, 29946, 353, 525, 6854, 29947, 29872, 29900, 29929, 29874, 29896, 29899, 29883, 29941, 29896, 29955, 29899, 29946, 29900, 29883, 29896, 29899, 29929, 29883, 29946, 29945, 29899, 29872, 29947, 29941, 29900, 29872, 29896, 29946, 29896, 29953, 29955, 29881, 29945, 29915, 13, 1678, 758, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29906, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29941, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29941, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 758, 29918, 14634, 29918, 16400, 29946, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29946, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 260, 29918, 3225, 353, 16439, 29918, 14634, 29918, 24051, 29898, 29873, 29918, 3225, 29892, 4702, 479, 5856, 29889, 29924, 1001, 1692, 29892, 6213, 29892, 19345, 13440, 261, 1542, 29889, 29940, 12413, 29897, 13, 1678, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29896, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 1400, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 353, 7431, 29898, 29873, 29918, 3225, 29889, 657, 29918, 1271, 29918, 1609, 29918, 333, 29898, 16400, 29918, 333, 29941, 467, 2674, 800, 14587, 29961, 29900, 1822, 4841, 29897, 1678, 396, 1134, 29901, 11455, 13, 1678, 4974, 1400, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 1275, 758, 29918, 14634, 29918, 16400, 29896, 29918, 3729, 29879, 29918, 1217, 718, 758, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 13, 1678, 4974, 1400, 29918, 14634, 29918, 16400, 29906, 29918, 3729, 29879, 29918, 1217, 1275, 758, 29918, 14634, 29918, 16400, 29941, 29918, 3729, 29879, 29918, 1217, 718, 758, 29918, 14634, 29918, 16400, 29946, 29918, 3729, 29879, 29918, 1217, 13, 13, 13, 1753, 1243, 29918, 27049, 29918, 8415, 29918, 5527, 5084, 29898, 5030, 1188, 1125, 13, 1678, 2117, 1188, 29889, 842, 29918, 5563, 29898, 21027, 29889, 18525, 29897, 13, 1678, 282, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 22168, 1445, 1649, 876, 13, 1678, 285, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29886, 29892, 376, 1272, 29914, 3451, 22812, 29899, 6214, 29889, 3126, 5783, 13, 1678, 432, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 1678, 260, 29918, 3225, 29901, 260, 29906, 29889, 29911, 6268, 353, 260, 29906, 29889, 29911, 6268, 12763, 2141, 1359, 29898, 29926, 29897, 13, 1678, 260, 29918, 3225, 353, 788, 29918, 27049, 29918, 8415, 29918, 5527, 5084, 29898, 29873, 29918, 3225, 29897, 13, 13, 1678, 1574, 353, 260, 29896, 29889, 6268, 29898, 29873, 29906, 29889, 29911, 6268, 12763, 2141, 15070, 29898, 29873, 29918, 3225, 876, 13, 1678, 363, 1813, 297, 1574, 29889, 12292, 29901, 13, 4706, 413, 29896, 353, 1813, 29889, 689, 29889, 657, 3073, 2059, 2558, 703, 11184, 16428, 29901, 1159, 13, 4706, 413, 29896, 29889, 1989, 29889, 6341, 1839, 29949, 11341, 16376, 5084, 2033, 1275, 11117, 12676, 2396, 29871, 29929, 29929, 29889, 29953, 29900, 29953, 29929, 29947, 29941, 29896, 29947, 29946, 29947, 29896, 29946, 29946, 29945, 29913, 13, 4706, 413, 29896, 29889, 1767, 29889, 6341, 1839, 29949, 11341, 16376, 5084, 2033, 1275, 11117, 12676, 2396, 29871, 29929, 29929, 29889, 29947, 29945, 29929, 29953, 29929, 29906, 29947, 29929, 29896, 29946, 29941, 29947, 29947, 29913, 13, 4706, 413, 29896, 353, 1813, 29889, 689, 29889, 657, 3073, 2059, 2558, 703, 9861, 9681, 29901, 1159, 13, 4706, 413, 29896, 29889, 1989, 29889, 6341, 1839, 29949, 11341, 16376, 5084, 2033, 1275, 11117, 12676, 2396, 29871, 29929, 29929, 29889, 29945, 29945, 29941, 29941, 29946, 29947, 29945, 29946, 29896, 29906, 29945, 29929, 29955, 29955, 29913, 13, 4706, 413, 29896, 29889, 1767, 29889, 6341, 1839, 29949, 11341, 16376, 5084, 2033, 1275, 11117, 12676, 2396, 29871, 29929, 29929, 29889, 29906, 29941, 29906, 29941, 29941, 29900, 29941, 29906, 29906, 29906, 29953, 29945, 29953, 29906, 29913, 13, 4706, 396, 363, 1746, 297, 1813, 29889, 689, 29889, 9621, 29901, 13, 4706, 396, 268, 1596, 29898, 13, 4706, 396, 308, 285, 29908, 29912, 2671, 29889, 1989, 29889, 726, 29913, 448, 426, 2671, 29889, 1989, 29889, 6341, 1839, 29949, 11341, 16376, 5084, 2033, 1118, 426, 2671, 29889, 1767, 29889, 726, 29913, 448, 426, 2671, 29889, 1767, 29889, 6341, 1839, 29949, 11341, 16376, 5084, 2033, 5038, 13, 4706, 396, 268, 1723, 13, 2 ]
mindpong/model/serial_communication.py
PolyCortex/MindPong
22
42613
import sys from glob import glob from serial import Serial, SerialException import numpy as np BAUD_RATE = 9600 PORT = 'COM5' READ_TIMEOUT = 1 LOWER_BOUND = 0.01 UPPER_BOUND = 0.4 class SerialCommunication(): """ Manages the communication and sends the data to the Arduino """ def __init__(self): self._serial_channel = Serial() self._serial_channel.port = PORT self._serial_channel.baudrate = BAUD_RATE @property def baudrate(self): return self._serial_channel.baudrate @baudrate.setter def baudrate(self, new_baudrate): if not self._serial_channel.is_open: self._serial_channel.baudrate = new_baudrate else: raise Exception("Close connection before changing baudrate") @property def port(self): return self._serial_channel.port @port.setter def set_port(self, new_port): if not self._serial_channel.is_open: self._serial_channel.port = new_port else: raise Exception("Close connection before changing port") def get_available_serial_ports(self): """ Returns a list of all ports that can be opened """ if self._serial_channel.is_open: raise Exception("Close connection before") result = [] for port in self._list_all_possibles_ports(): try: Serial(port).close() result.append(port) except (OSError, SerialException): pass return result def establish_communication(self): """ Enables the communication with the arduino with the latest parameters Throws a SerialException is it cannot connect to port """ try: self._serial_channel.open() except SerialException as error: print("Error when connecting to serial %s port" % (self._serial_channel.port)) raise(SerialException) def send_data(self, data): """ prints feedback data from the arduino and sends the new data """ if self._is_data_available(): print(("Reading : ", self._read_bytes(len(data)))) data = [x[1] for x in data] if self._is_data_valid(data): value_to_send = self._get_clipped_signals(data) print(('Sending', value_to_send)) try: self._serial_channel.write(bytearray(value_to_send)) except SerialTimeoutException as e: print('Error when sending data to microcontroller:' + str(e)) def close_communication(self): self._serial_channel.close() def _list_all_possibles_ports(self): if sys.platform.startswith('win'): ports = ['COM%s' % (i + 1) for i in range(256)] elif sys.platform.startswith('linux') or sys.platform.startswith('cygwin'): # this excludes your current terminal "/dev/tty" ports = glob('/dev/tty[A-Za-z]*') elif sys.platform.startswith('darwin'): ports = glob('/dev/tty.*') else: raise EnvironmentError('Unsupported platform') return ports def _read_bytes(self, nb_bytes=1): bytes_received = [] for _ in range(nb_bytes): bytes_received.append(self._serial_channel.read(1)) return [ord(byte) for byte in bytes_received if byte] def _is_data_available(self): return self._serial_channel is not None and self._serial_channel.is_open and self._serial_channel.in_waiting def _is_data_valid(self, data): return self._serial_channel is not None and self._serial_channel.is_open and not np.any(np.isnan(data)) def _get_clipped_signals(self, signals): clipped_list = np.clip(signals, LOWER_BOUND, UPPER_BOUND) return [int(255 * (x - LOWER_BOUND)/(UPPER_BOUND - LOWER_BOUND)) for x in clipped_list]
[ 1, 1053, 10876, 13, 3166, 13149, 1053, 13149, 13, 13, 3166, 7797, 1053, 18896, 29892, 18896, 2451, 13, 5215, 12655, 408, 7442, 13, 13, 5688, 15789, 29918, 29934, 3040, 353, 29871, 29929, 29953, 29900, 29900, 13, 15082, 353, 525, 19795, 29945, 29915, 13, 16310, 29918, 15307, 12015, 353, 29871, 29896, 13, 13, 27998, 1001, 29918, 8456, 18783, 353, 29871, 29900, 29889, 29900, 29896, 13, 4897, 13171, 29918, 8456, 18783, 353, 29871, 29900, 29889, 29946, 13, 13, 13, 1990, 18896, 5261, 2523, 362, 7295, 13, 1678, 9995, 2315, 1179, 278, 12084, 322, 16003, 278, 848, 304, 278, 826, 28955, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 3032, 15550, 29918, 12719, 353, 18896, 580, 13, 4706, 1583, 3032, 15550, 29918, 12719, 29889, 637, 353, 349, 8476, 13, 4706, 1583, 3032, 15550, 29918, 12719, 29889, 2291, 566, 10492, 353, 350, 29909, 15789, 29918, 29934, 3040, 13, 13, 1678, 732, 6799, 13, 1678, 822, 9922, 566, 10492, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 15550, 29918, 12719, 29889, 2291, 566, 10492, 13, 13, 1678, 732, 2291, 566, 10492, 29889, 842, 357, 13, 1678, 822, 9922, 566, 10492, 29898, 1311, 29892, 716, 29918, 2291, 566, 10492, 1125, 13, 4706, 565, 451, 1583, 3032, 15550, 29918, 12719, 29889, 275, 29918, 3150, 29901, 13, 9651, 1583, 3032, 15550, 29918, 12719, 29889, 2291, 566, 10492, 353, 716, 29918, 2291, 566, 10492, 13, 4706, 1683, 29901, 13, 9651, 12020, 8960, 703, 11123, 3957, 1434, 6480, 9922, 566, 10492, 1159, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2011, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 15550, 29918, 12719, 29889, 637, 13, 13, 1678, 732, 637, 29889, 842, 357, 13, 1678, 822, 731, 29918, 637, 29898, 1311, 29892, 716, 29918, 637, 1125, 13, 4706, 565, 451, 1583, 3032, 15550, 29918, 12719, 29889, 275, 29918, 3150, 29901, 13, 9651, 1583, 3032, 15550, 29918, 12719, 29889, 637, 353, 716, 29918, 637, 13, 4706, 1683, 29901, 13, 9651, 12020, 8960, 703, 11123, 3957, 1434, 6480, 2011, 1159, 13, 13, 13, 1678, 822, 679, 29918, 16515, 29918, 15550, 29918, 4011, 29898, 1311, 1125, 13, 4706, 9995, 16969, 263, 1051, 310, 599, 16169, 393, 508, 367, 6496, 9995, 13, 4706, 565, 1583, 3032, 15550, 29918, 12719, 29889, 275, 29918, 3150, 29901, 13, 9651, 12020, 8960, 703, 11123, 3957, 1434, 1159, 13, 13, 4706, 1121, 353, 5159, 13, 4706, 363, 2011, 297, 1583, 3032, 1761, 29918, 497, 29918, 28802, 13876, 29918, 4011, 7295, 13, 9651, 1018, 29901, 13, 18884, 18896, 29898, 637, 467, 5358, 580, 13, 18884, 1121, 29889, 4397, 29898, 637, 29897, 13, 9651, 5174, 313, 29949, 29173, 29892, 18896, 2451, 1125, 13, 18884, 1209, 13, 4706, 736, 1121, 13, 13, 13, 1678, 822, 10127, 29918, 27820, 362, 29898, 1311, 1125, 13, 4706, 9995, 29871, 13, 4706, 1174, 1849, 278, 12084, 411, 278, 564, 28955, 411, 278, 9281, 4128, 29871, 13, 308, 13, 4706, 498, 5727, 263, 18896, 2451, 338, 372, 2609, 4511, 304, 2011, 13, 4706, 9995, 13, 4706, 1018, 29901, 13, 9651, 1583, 3032, 15550, 29918, 12719, 29889, 3150, 580, 13, 4706, 5174, 18896, 2451, 408, 1059, 29901, 13, 9651, 1596, 703, 2392, 746, 16791, 304, 7797, 1273, 29879, 2011, 29908, 1273, 313, 1311, 3032, 15550, 29918, 12719, 29889, 637, 876, 13, 9651, 12020, 29898, 9125, 2451, 29897, 13, 13, 13, 1678, 822, 3638, 29918, 1272, 29898, 1311, 29892, 848, 1125, 13, 4706, 9995, 14677, 16705, 848, 515, 278, 564, 28955, 322, 16003, 278, 716, 848, 9995, 13, 4706, 565, 1583, 3032, 275, 29918, 1272, 29918, 16515, 7295, 13, 9651, 1596, 29898, 703, 6359, 292, 584, 9162, 1583, 3032, 949, 29918, 13193, 29898, 2435, 29898, 1272, 13697, 13, 13, 4706, 848, 353, 518, 29916, 29961, 29896, 29962, 363, 921, 297, 848, 29962, 13, 13, 4706, 565, 1583, 3032, 275, 29918, 1272, 29918, 3084, 29898, 1272, 1125, 13, 9651, 995, 29918, 517, 29918, 6717, 353, 1583, 3032, 657, 29918, 11303, 2986, 29918, 4530, 1338, 29898, 1272, 29897, 13, 9651, 1596, 29898, 877, 29903, 2548, 742, 995, 29918, 517, 29918, 6717, 876, 13, 9651, 1018, 29901, 13, 18884, 1583, 3032, 15550, 29918, 12719, 29889, 3539, 29898, 10389, 2378, 29898, 1767, 29918, 517, 29918, 6717, 876, 13, 9651, 5174, 18896, 10851, 2451, 408, 321, 29901, 13, 18884, 1596, 877, 2392, 746, 9348, 848, 304, 9200, 8299, 11283, 718, 851, 29898, 29872, 876, 308, 13, 13, 13, 1678, 822, 3802, 29918, 27820, 362, 29898, 1311, 1125, 13, 4706, 1583, 3032, 15550, 29918, 12719, 29889, 5358, 580, 13, 13, 13, 1678, 822, 903, 1761, 29918, 497, 29918, 28802, 13876, 29918, 4011, 29898, 1311, 1125, 13, 4706, 565, 10876, 29889, 12120, 29889, 27382, 2541, 877, 5080, 29374, 13, 9651, 16169, 353, 6024, 19795, 29995, 29879, 29915, 1273, 313, 29875, 718, 29871, 29896, 29897, 363, 474, 297, 3464, 29898, 29906, 29945, 29953, 4638, 13, 4706, 25342, 10876, 29889, 12120, 29889, 27382, 2541, 877, 9389, 1495, 470, 10876, 29889, 12120, 29889, 27382, 2541, 877, 1270, 29887, 5080, 29374, 13, 9651, 396, 445, 429, 27722, 596, 1857, 8638, 5591, 3359, 29914, 4349, 29908, 13, 9651, 16169, 353, 13149, 11219, 3359, 29914, 4349, 29961, 29909, 29899, 29999, 29874, 29899, 29920, 14178, 1495, 13, 4706, 25342, 10876, 29889, 12120, 29889, 27382, 2541, 877, 16702, 5080, 29374, 13, 9651, 16169, 353, 13149, 11219, 3359, 29914, 4349, 5575, 1495, 13, 4706, 1683, 29901, 13, 9651, 12020, 16738, 2392, 877, 25807, 29884, 3016, 287, 7481, 1495, 13, 308, 13, 4706, 736, 16169, 13, 13, 13, 1678, 822, 903, 949, 29918, 13193, 29898, 1311, 29892, 302, 29890, 29918, 13193, 29922, 29896, 1125, 13, 4706, 6262, 29918, 13556, 2347, 353, 5159, 13, 4706, 363, 903, 297, 3464, 29898, 9877, 29918, 13193, 1125, 13, 9651, 6262, 29918, 13556, 2347, 29889, 4397, 29898, 1311, 3032, 15550, 29918, 12719, 29889, 949, 29898, 29896, 876, 13, 13, 4706, 736, 518, 536, 29898, 10389, 29897, 363, 7023, 297, 6262, 29918, 13556, 2347, 565, 7023, 29962, 308, 13, 13, 13, 1678, 822, 903, 275, 29918, 1272, 29918, 16515, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 15550, 29918, 12719, 338, 451, 6213, 322, 1583, 3032, 15550, 29918, 12719, 29889, 275, 29918, 3150, 322, 1583, 3032, 15550, 29918, 12719, 29889, 262, 29918, 10685, 292, 13, 13, 13, 1678, 822, 903, 275, 29918, 1272, 29918, 3084, 29898, 1311, 29892, 848, 1125, 13, 4706, 736, 1583, 3032, 15550, 29918, 12719, 338, 451, 6213, 322, 1583, 3032, 15550, 29918, 12719, 29889, 275, 29918, 3150, 322, 451, 7442, 29889, 1384, 29898, 9302, 29889, 275, 13707, 29898, 1272, 876, 13, 13, 13, 1678, 822, 903, 657, 29918, 11303, 2986, 29918, 4530, 1338, 29898, 1311, 29892, 18470, 1125, 13, 4706, 9335, 2986, 29918, 1761, 353, 7442, 29889, 24049, 29898, 4530, 1338, 29892, 365, 9806, 1001, 29918, 8456, 18783, 29892, 11901, 13171, 29918, 8456, 18783, 29897, 13, 4706, 736, 518, 524, 29898, 29906, 29945, 29945, 334, 313, 29916, 448, 365, 9806, 1001, 29918, 8456, 18783, 6802, 29898, 4897, 13171, 29918, 8456, 18783, 448, 365, 9806, 1001, 29918, 8456, 18783, 876, 363, 921, 297, 9335, 2986, 29918, 1761, 29962, 13, 13, 2 ]
11/11.py
PaeP3nguin/advent-of-code-2017
0
171359
#!python3 from collections import Counter def main(): with open('11.txt', 'r') as f, open('11_out.txt', 'w') as f_out: line = f.readline().strip() steps = line.split(',') directions = ['n', 'ne', 'se', 's', 'sw', 'nw'] # Part 1 step_counts = Counter(steps) pairs = [('n', 's'), ('nw', 'se'), ('ne', 'sw')] for a, b in pairs: if step_counts[a] > step_counts[b]: low, high = b, a else: low, high = a, b step_counts[high] -= step_counts[low] step_counts[low] = 0 no_more = False while not no_more: no_more = True for i, direction in enumerate(directions): left = directions[i - 1] right = directions[(i + 1) % 6] if step_counts[left] > step_counts[right]: low, high = right, left else: low, high = left, right if step_counts[low] == 0: continue no_more = False step_counts[high] -= step_counts[low] step_counts[direction] += step_counts[low] step_counts[low] = 0 total_steps = sum(step_counts.values()) print(total_steps) print(total_steps, file=f_out) # Part 2 max_steps = 0 step_counts = {d: 0 for d in directions} opposite = {d: directions[(i + 3) % 6] for i, d in enumerate(directions)} for step in steps: if step_counts[opposite[step]] > 0: step_counts[opposite[step]] -= 1 else: step_counts[step] += 1 for i, direction in enumerate(directions): left = directions[i - 1] right = directions[(i + 1) % 6] if step_counts[left] > step_counts[right]: low, high = right, left else: low, high = left, right if step_counts[low] == 0: continue step_counts[high] -= step_counts[low] step_counts[direction] += step_counts[low] step_counts[low] = 0 max_steps = max(max_steps, sum(step_counts.values())) print(max_steps) print(max_steps, file=f_out) if __name__ == '__main__': main()
[ 1, 396, 29991, 4691, 29941, 13, 13, 3166, 16250, 1053, 315, 5336, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 411, 1722, 877, 29896, 29896, 29889, 3945, 742, 525, 29878, 1495, 408, 285, 29892, 1722, 877, 29896, 29896, 29918, 449, 29889, 3945, 742, 525, 29893, 1495, 408, 285, 29918, 449, 29901, 13, 4706, 1196, 353, 285, 29889, 949, 1220, 2141, 17010, 580, 13, 4706, 6576, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 18112, 353, 6024, 29876, 742, 525, 484, 742, 525, 344, 742, 525, 29879, 742, 525, 2774, 742, 525, 29876, 29893, 2033, 13, 13, 4706, 396, 3455, 29871, 29896, 13, 4706, 4331, 29918, 2798, 29879, 353, 315, 5336, 29898, 24530, 29897, 13, 4706, 11000, 353, 518, 877, 29876, 742, 525, 29879, 5477, 6702, 29876, 29893, 742, 525, 344, 5477, 6702, 484, 742, 525, 2774, 1495, 29962, 13, 4706, 363, 263, 29892, 289, 297, 11000, 29901, 13, 9651, 565, 4331, 29918, 2798, 29879, 29961, 29874, 29962, 1405, 4331, 29918, 2798, 29879, 29961, 29890, 5387, 13, 18884, 4482, 29892, 1880, 353, 289, 29892, 263, 13, 9651, 1683, 29901, 13, 18884, 4482, 29892, 1880, 353, 263, 29892, 289, 13, 9651, 4331, 29918, 2798, 29879, 29961, 9812, 29962, 22361, 4331, 29918, 2798, 29879, 29961, 677, 29962, 13, 9651, 4331, 29918, 2798, 29879, 29961, 677, 29962, 353, 29871, 29900, 13, 13, 4706, 694, 29918, 5514, 353, 7700, 13, 4706, 1550, 451, 694, 29918, 5514, 29901, 13, 9651, 694, 29918, 5514, 353, 5852, 13, 9651, 363, 474, 29892, 5305, 297, 26985, 29898, 20146, 1953, 1125, 13, 18884, 2175, 353, 18112, 29961, 29875, 448, 29871, 29896, 29962, 13, 18884, 1492, 353, 18112, 15625, 29875, 718, 29871, 29896, 29897, 1273, 29871, 29953, 29962, 13, 18884, 565, 4331, 29918, 2798, 29879, 29961, 1563, 29962, 1405, 4331, 29918, 2798, 29879, 29961, 1266, 5387, 13, 462, 1678, 4482, 29892, 1880, 353, 1492, 29892, 2175, 13, 18884, 1683, 29901, 13, 462, 1678, 4482, 29892, 1880, 353, 2175, 29892, 1492, 13, 18884, 565, 4331, 29918, 2798, 29879, 29961, 677, 29962, 1275, 29871, 29900, 29901, 13, 462, 1678, 6773, 13, 18884, 694, 29918, 5514, 353, 7700, 13, 18884, 4331, 29918, 2798, 29879, 29961, 9812, 29962, 22361, 4331, 29918, 2798, 29879, 29961, 677, 29962, 13, 18884, 4331, 29918, 2798, 29879, 29961, 20845, 29962, 4619, 4331, 29918, 2798, 29879, 29961, 677, 29962, 13, 18884, 4331, 29918, 2798, 29879, 29961, 677, 29962, 353, 29871, 29900, 13, 4706, 3001, 29918, 24530, 353, 2533, 29898, 10568, 29918, 2798, 29879, 29889, 5975, 3101, 13, 4706, 1596, 29898, 7827, 29918, 24530, 29897, 13, 4706, 1596, 29898, 7827, 29918, 24530, 29892, 934, 29922, 29888, 29918, 449, 29897, 13, 13, 4706, 396, 3455, 29871, 29906, 13, 4706, 4236, 29918, 24530, 353, 29871, 29900, 13, 4706, 4331, 29918, 2798, 29879, 353, 426, 29881, 29901, 29871, 29900, 363, 270, 297, 18112, 29913, 13, 4706, 11564, 353, 426, 29881, 29901, 18112, 15625, 29875, 718, 29871, 29941, 29897, 1273, 29871, 29953, 29962, 363, 474, 29892, 270, 297, 26985, 29898, 20146, 1953, 2915, 13, 4706, 363, 4331, 297, 6576, 29901, 13, 9651, 565, 4331, 29918, 2798, 29879, 29961, 9354, 359, 568, 29961, 10568, 5262, 1405, 29871, 29900, 29901, 13, 18884, 4331, 29918, 2798, 29879, 29961, 9354, 359, 568, 29961, 10568, 5262, 22361, 29871, 29896, 13, 9651, 1683, 29901, 13, 18884, 4331, 29918, 2798, 29879, 29961, 10568, 29962, 4619, 29871, 29896, 13, 18884, 363, 474, 29892, 5305, 297, 26985, 29898, 20146, 1953, 1125, 13, 462, 1678, 2175, 353, 18112, 29961, 29875, 448, 29871, 29896, 29962, 13, 462, 1678, 1492, 353, 18112, 15625, 29875, 718, 29871, 29896, 29897, 1273, 29871, 29953, 29962, 13, 462, 1678, 565, 4331, 29918, 2798, 29879, 29961, 1563, 29962, 1405, 4331, 29918, 2798, 29879, 29961, 1266, 5387, 13, 462, 4706, 4482, 29892, 1880, 353, 1492, 29892, 2175, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 4482, 29892, 1880, 353, 2175, 29892, 1492, 13, 462, 1678, 565, 4331, 29918, 2798, 29879, 29961, 677, 29962, 1275, 29871, 29900, 29901, 13, 462, 4706, 6773, 13, 462, 1678, 4331, 29918, 2798, 29879, 29961, 9812, 29962, 22361, 4331, 29918, 2798, 29879, 29961, 677, 29962, 13, 462, 1678, 4331, 29918, 2798, 29879, 29961, 20845, 29962, 4619, 4331, 29918, 2798, 29879, 29961, 677, 29962, 13, 462, 1678, 4331, 29918, 2798, 29879, 29961, 677, 29962, 353, 29871, 29900, 13, 18884, 4236, 29918, 24530, 353, 4236, 29898, 3317, 29918, 24530, 29892, 2533, 29898, 10568, 29918, 2798, 29879, 29889, 5975, 22130, 13, 13, 4706, 1596, 29898, 3317, 29918, 24530, 29897, 13, 4706, 1596, 29898, 3317, 29918, 24530, 29892, 934, 29922, 29888, 29918, 449, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
data/data_processing.py
HenryL-study/Voice-Style-Conversion-via-Seq2Seq-model
2
62122
<gh_stars>1-10 import librosa import numpy as np import os import pyworld def world_encode_spectral_envelop(sp, fs, dim=36): # Get Mel-cepstral coefficients (MCEPs) #sp = sp.astype(np.float64) coded_sp = pyworld.code_spectral_envelope(sp, fs, dim) return coded_sp def world_decompose(wav, fs, frame_period = 5.0): # Decompose speech signal into f0, spectral envelope and aperiodicity using WORLD wav = wav.astype(np.float64) f0, timeaxis = pyworld.harvest(wav, fs, frame_period = frame_period, f0_floor = 71.0, f0_ceil = 800.0) sp = pyworld.cheaptrick(wav, f0, timeaxis, fs) ap = pyworld.d4c(wav, f0, timeaxis, fs) return f0, timeaxis, sp, ap def world_speech_synthesis(f0, coded_sp, ap, fs, frame_period): decoded_sp = world_decode_spectral_envelop(coded_sp, fs) # TODO min_len = min([len(f0), len(coded_sp), len(ap)]) f0 = f0[:min_len] coded_sp = coded_sp[:min_len] ap = ap[:min_len] wav = pyworld.synthesize(f0, decoded_sp, ap, fs, frame_period) # Librosa could not save wav if not doing so wav = wav.astype(np.float32) return wav def world_decode_spectral_envelop(coded_sp, fs): # Decode Mel-cepstral to sp fftlen = pyworld.get_cheaptrick_fft_size(fs) decoded_sp = pyworld.decode_spectral_envelope(coded_sp, fs, fftlen) return decoded_sp path1 = "data/VCC2SF1/" path2 = "data/VCC2SM1/" files_1 = os.listdir(path1) files_2 = os.listdir(path2) #wav_file = "VCC2SF1/10001.wav" sampling_rate, num_mcep, frame_period=22050, 40, 5 length = len(files_1) for i in range(length): print("Iteration ", i) wav, _ = librosa.load(path1+files_1[i], sr=sampling_rate, mono=True) f0, timeaxis, sp, ap = world_decompose(wav=wav, fs=sampling_rate, frame_period=frame_period) coded_sp = world_encode_spectral_envelop(sp=sp, fs=sampling_rate, dim=num_mcep) # print("This is the feature we want -> coded_sp") # print("Type of coded_sp: ", type(coded_sp)) # print("shape of coded_sp: ", coded_sp.shape) np.save("data/parameters/VCC2SF1/coded_sp/"+str(i)+".npy", coded_sp) np.save("data/parameters/VCC2SF1/f0/"+str(i)+".npy", f0) np.save("data/parameters/VCC2SF1/ap/"+str(i)+".npy", ap) #print("ap: ", ap) # wav_transformed = world_speech_synthesis(f0=f0, coded_sp=coded_sp, # ap=ap, fs=sampling_rate, frame_period=frame_period) # librosa.output.write_wav("generate/"+path1+files_1[i], wav_transformed, sampling_rate) # sampling_rate, num_mcep, frame_period=22050, 40, 5 wav, _ = librosa.load(path2+files_2[i], sr=sampling_rate, mono=True) f0, timeaxis, sp, ap = world_decompose(wav=wav, fs=sampling_rate, frame_period=frame_period) coded_sp = world_encode_spectral_envelop(sp=sp, fs=sampling_rate, dim=num_mcep) np.save("data/parameters/VCC2SM1/coded_sp/"+str(i)+".npy", coded_sp) np.save("data/parameters/VCC2SM1/f0/"+str(i)+".npy", f0) np.save("data/parameters/VCC2SM1/ap/"+str(i)+".npy", ap) # wav_transformed = world_speech_synthesis(f0=f0, coded_sp=coded_sp, # ap=ap, fs=sampling_rate, frame_period=frame_period) # librosa.output.write_wav("data/generate/"+path2+files_2[i], wav_transformed, sampling_rate)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 4303, 1883, 29874, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 5215, 2897, 30004, 13, 5215, 282, 5693, 1613, 30004, 13, 1753, 3186, 29918, 12508, 29918, 21494, 1705, 29918, 264, 1830, 29898, 1028, 29892, 18920, 29892, 3964, 29922, 29941, 29953, 1125, 30004, 13, 1678, 396, 3617, 6286, 29899, 13300, 710, 284, 16127, 313, 29924, 4741, 29925, 29879, 8443, 13, 1678, 396, 1028, 353, 805, 29889, 579, 668, 29898, 9302, 29889, 7411, 29953, 29946, 8443, 13, 1678, 274, 6797, 29918, 1028, 353, 282, 5693, 1613, 29889, 401, 29918, 21494, 1705, 29918, 264, 21367, 29898, 1028, 29892, 18920, 29892, 3964, 8443, 13, 1678, 736, 274, 6797, 29918, 1028, 30004, 13, 30004, 13, 1753, 3186, 29918, 311, 19438, 29898, 29893, 485, 29892, 18920, 29892, 3515, 29918, 19145, 353, 29871, 29945, 29889, 29900, 1125, 30004, 13, 1678, 396, 897, 19438, 12032, 7182, 964, 285, 29900, 29892, 23161, 427, 21367, 322, 263, 19145, 24798, 773, 399, 1955, 10249, 30004, 13, 1678, 281, 485, 353, 281, 485, 29889, 579, 668, 29898, 9302, 29889, 7411, 29953, 29946, 8443, 13, 1678, 285, 29900, 29892, 931, 8990, 353, 282, 5693, 1613, 29889, 8222, 10147, 29898, 29893, 485, 29892, 18920, 29892, 3515, 29918, 19145, 353, 3515, 29918, 19145, 29892, 285, 29900, 29918, 14939, 353, 29871, 29955, 29896, 29889, 29900, 29892, 285, 29900, 29918, 27696, 353, 29871, 29947, 29900, 29900, 29889, 29900, 8443, 13, 1678, 805, 353, 282, 5693, 1613, 29889, 1173, 2156, 9131, 29898, 29893, 485, 29892, 285, 29900, 29892, 931, 8990, 29892, 18920, 8443, 13, 1678, 3095, 353, 282, 5693, 1613, 29889, 29881, 29946, 29883, 29898, 29893, 485, 29892, 285, 29900, 29892, 931, 8990, 29892, 18920, 8443, 13, 1678, 736, 285, 29900, 29892, 931, 8990, 29892, 805, 29892, 3095, 30004, 13, 30004, 13, 1753, 3186, 29918, 5965, 5309, 29918, 19274, 26533, 29898, 29888, 29900, 29892, 274, 6797, 29918, 1028, 29892, 3095, 29892, 18920, 29892, 3515, 29918, 19145, 1125, 30004, 13, 1678, 1602, 6797, 29918, 1028, 353, 3186, 29918, 13808, 29918, 21494, 1705, 29918, 264, 1830, 29898, 29659, 29918, 1028, 29892, 18920, 8443, 13, 1678, 396, 14402, 30004, 13, 1678, 1375, 29918, 2435, 353, 1375, 4197, 2435, 29898, 29888, 29900, 511, 7431, 29898, 29659, 29918, 1028, 511, 7431, 29898, 481, 29897, 2314, 30004, 13, 1678, 285, 29900, 353, 285, 29900, 7503, 1195, 29918, 2435, 29962, 30004, 13, 1678, 274, 6797, 29918, 1028, 353, 274, 6797, 29918, 1028, 7503, 1195, 29918, 2435, 29962, 30004, 13, 1678, 3095, 353, 3095, 7503, 1195, 29918, 2435, 29962, 30004, 13, 1678, 281, 485, 353, 282, 5693, 1613, 29889, 19274, 26041, 675, 29898, 29888, 29900, 29892, 1602, 6797, 29918, 1028, 29892, 3095, 29892, 18920, 29892, 3515, 29918, 19145, 8443, 13, 1678, 396, 8153, 1883, 29874, 1033, 451, 4078, 281, 485, 565, 451, 2599, 577, 30004, 13, 1678, 281, 485, 353, 281, 485, 29889, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 8443, 13, 1678, 736, 281, 485, 30004, 13, 30004, 13, 1753, 3186, 29918, 13808, 29918, 21494, 1705, 29918, 264, 1830, 29898, 29659, 29918, 1028, 29892, 18920, 1125, 30004, 13, 1678, 396, 897, 401, 6286, 29899, 13300, 710, 284, 304, 805, 30004, 13, 1678, 285, 615, 2435, 353, 282, 5693, 1613, 29889, 657, 29918, 1173, 2156, 9131, 29918, 600, 29873, 29918, 2311, 29898, 5847, 8443, 13, 1678, 1602, 6797, 29918, 1028, 353, 282, 5693, 1613, 29889, 13808, 29918, 21494, 1705, 29918, 264, 21367, 29898, 29659, 29918, 1028, 29892, 18920, 29892, 285, 615, 2435, 8443, 13, 1678, 736, 1602, 6797, 29918, 1028, 30004, 13, 30004, 13, 2084, 29896, 353, 376, 1272, 29914, 29963, 4174, 29906, 20322, 29896, 12975, 30004, 13, 2084, 29906, 353, 376, 1272, 29914, 29963, 4174, 29906, 17061, 29896, 12975, 30004, 13, 5325, 29918, 29896, 353, 2897, 29889, 1761, 3972, 29898, 2084, 29896, 8443, 13, 5325, 29918, 29906, 353, 2897, 29889, 1761, 3972, 29898, 2084, 29906, 8443, 13, 29937, 29893, 485, 29918, 1445, 353, 376, 29963, 4174, 29906, 20322, 29896, 29914, 29896, 29900, 29900, 29900, 29896, 29889, 29893, 485, 19451, 13, 13445, 10335, 29918, 10492, 29892, 954, 29918, 29885, 13300, 29892, 3515, 29918, 19145, 29922, 29906, 29906, 29900, 29945, 29900, 29892, 29871, 29946, 29900, 29892, 29871, 29945, 30004, 13, 2848, 353, 7431, 29898, 5325, 29918, 29896, 8443, 13, 1454, 474, 297, 3464, 29898, 2848, 1125, 6756, 13, 1678, 1596, 703, 13463, 362, 9162, 474, 8443, 13, 1678, 281, 485, 29892, 903, 353, 4303, 1883, 29874, 29889, 1359, 29898, 2084, 29896, 29974, 5325, 29918, 29896, 29961, 29875, 1402, 27236, 29922, 13445, 10335, 29918, 10492, 29892, 1601, 29877, 29922, 5574, 8443, 13, 1678, 285, 29900, 29892, 931, 8990, 29892, 805, 29892, 3095, 353, 3186, 29918, 311, 19438, 29898, 29893, 485, 29922, 29893, 485, 29892, 18920, 29922, 13445, 10335, 29918, 10492, 29892, 3515, 29918, 19145, 29922, 2557, 29918, 19145, 8443, 13, 1678, 274, 6797, 29918, 1028, 353, 3186, 29918, 12508, 29918, 21494, 1705, 29918, 264, 1830, 29898, 1028, 29922, 1028, 29892, 18920, 29922, 13445, 10335, 29918, 10492, 29892, 3964, 29922, 1949, 29918, 29885, 13300, 8443, 13, 1678, 396, 1596, 703, 4013, 338, 278, 4682, 591, 864, 1599, 274, 6797, 29918, 1028, 1159, 30004, 13, 1678, 396, 1596, 703, 1542, 310, 274, 6797, 29918, 1028, 29901, 9162, 1134, 29898, 29659, 29918, 1028, 876, 30004, 13, 1678, 396, 1596, 703, 12181, 310, 274, 6797, 29918, 1028, 29901, 9162, 274, 6797, 29918, 1028, 29889, 12181, 8443, 13, 1678, 7442, 29889, 7620, 703, 1272, 29914, 16744, 29914, 29963, 4174, 29906, 20322, 29896, 29914, 29659, 29918, 1028, 12975, 29974, 710, 29898, 29875, 7240, 1642, 29876, 2272, 613, 274, 6797, 29918, 1028, 8443, 13, 1678, 7442, 29889, 7620, 703, 1272, 29914, 16744, 29914, 29963, 4174, 29906, 20322, 29896, 29914, 29888, 29900, 12975, 29974, 710, 29898, 29875, 7240, 1642, 29876, 2272, 613, 285, 29900, 8443, 13, 1678, 7442, 29889, 7620, 703, 1272, 29914, 16744, 29914, 29963, 4174, 29906, 20322, 29896, 29914, 481, 12975, 29974, 710, 29898, 29875, 7240, 1642, 29876, 2272, 613, 3095, 8443, 13, 30004, 13, 1678, 396, 2158, 703, 481, 29901, 9162, 3095, 8443, 13, 1678, 396, 281, 485, 29918, 9067, 287, 353, 3186, 29918, 5965, 5309, 29918, 19274, 26533, 29898, 29888, 29900, 29922, 29888, 29900, 29892, 274, 6797, 29918, 1028, 29922, 29659, 29918, 1028, 29892, 6756, 13, 1678, 396, 462, 462, 462, 3095, 29922, 481, 29892, 18920, 29922, 13445, 10335, 29918, 10492, 29892, 3515, 29918, 19145, 29922, 2557, 29918, 19145, 8443, 13, 1678, 396, 4303, 1883, 29874, 29889, 4905, 29889, 3539, 29918, 29893, 485, 703, 17158, 12975, 29974, 2084, 29896, 29974, 5325, 29918, 29896, 29961, 29875, 1402, 281, 485, 29918, 9067, 287, 29892, 23460, 29918, 10492, 8443, 13, 30004, 13, 1678, 396, 23460, 29918, 10492, 29892, 954, 29918, 29885, 13300, 29892, 3515, 29918, 19145, 29922, 29906, 29906, 29900, 29945, 29900, 29892, 29871, 29946, 29900, 29892, 29871, 29945, 30004, 13, 30004, 13, 1678, 281, 485, 29892, 903, 353, 4303, 1883, 29874, 29889, 1359, 29898, 2084, 29906, 29974, 5325, 29918, 29906, 29961, 29875, 1402, 27236, 29922, 13445, 10335, 29918, 10492, 29892, 1601, 29877, 29922, 5574, 8443, 13, 1678, 285, 29900, 29892, 931, 8990, 29892, 805, 29892, 3095, 353, 3186, 29918, 311, 19438, 29898, 29893, 485, 29922, 29893, 485, 29892, 18920, 29922, 13445, 10335, 29918, 10492, 29892, 3515, 29918, 19145, 29922, 2557, 29918, 19145, 8443, 13, 1678, 274, 6797, 29918, 1028, 353, 3186, 29918, 12508, 29918, 21494, 1705, 29918, 264, 1830, 29898, 1028, 29922, 1028, 29892, 18920, 29922, 13445, 10335, 29918, 10492, 29892, 3964, 29922, 1949, 29918, 29885, 13300, 8443, 13, 1678, 7442, 29889, 7620, 703, 1272, 29914, 16744, 29914, 29963, 4174, 29906, 17061, 29896, 29914, 29659, 29918, 1028, 12975, 29974, 710, 29898, 29875, 7240, 1642, 29876, 2272, 613, 274, 6797, 29918, 1028, 8443, 13, 1678, 7442, 29889, 7620, 703, 1272, 29914, 16744, 29914, 29963, 4174, 29906, 17061, 29896, 29914, 29888, 29900, 12975, 29974, 710, 29898, 29875, 7240, 1642, 29876, 2272, 613, 285, 29900, 8443, 13, 1678, 7442, 29889, 7620, 703, 1272, 29914, 16744, 29914, 29963, 4174, 29906, 17061, 29896, 29914, 481, 12975, 29974, 710, 29898, 29875, 7240, 1642, 29876, 2272, 613, 3095, 8443, 13, 1678, 396, 281, 485, 29918, 9067, 287, 353, 3186, 29918, 5965, 5309, 29918, 19274, 26533, 29898, 29888, 29900, 29922, 29888, 29900, 29892, 274, 6797, 29918, 1028, 29922, 29659, 29918, 1028, 29892, 6756, 13, 1678, 396, 462, 462, 462, 3095, 29922, 481, 29892, 18920, 29922, 13445, 10335, 29918, 10492, 29892, 3515, 29918, 19145, 29922, 2557, 29918, 19145, 8443, 13, 1678, 396, 4303, 1883, 29874, 29889, 4905, 29889, 3539, 29918, 29893, 485, 703, 1272, 29914, 17158, 12975, 29974, 2084, 29906, 29974, 5325, 29918, 29906, 29961, 29875, 1402, 281, 485, 29918, 9067, 287, 29892, 23460, 29918, 10492, 29897, 462, 9651, 2 ]
test/unit_tests.py
dykesk/gaussian-wake
3
124710
""" Created by <NAME>, Sep. 2018. FLOW Lab Brigham Young University """ import unittest import numpy as np from _porteagel_fortran import porteagel_analyze, x0_func, theta_c_0_func, sigmay_func, sigma_spread_func from _porteagel_fortran import sigmaz_func, wake_offset_func, deltav_func, deltav_near_wake_lin_func from _porteagel_fortran import overlap_area_func, wake_combination_func, added_ti_func, k_star_func from _porteagel_fortran import ct_to_axial_ind_func, wind_shear_func, discontinuity_point_func, smooth_max from _porteagel_fortran import interpolation, hermite_spline, point_velocity_with_shear_func from openmdao.api import Problem, Group def power_func_v80(v): # power curve fit for vestas v80 from Niayifar 2016 p = 0.17819 * v ** 5 - 6.5198 * v ** 4 + 90.623 * v ** 3 - 574.62 * v ** 2 + 1727.2 * v - 1975.0 return p class test_basic_subroutines(unittest.TestCase): def setUp(self): self.tolerance = 1E-6 self.d = 126.4 self.yaw = np.pi/6. self.ct = 0.8 self.alpha = 2.32 self.beta = 0.154 self.ti = 0.1 self.ky = 0.25 self.kz = 0.2 self.wind_speed = 8.0 def test_x0_func_hand_calc(self): x0 = x0_func(self.d, self.yaw, self.ct, self.alpha, self.ti, self.beta) self.assertAlmostEqual(x0, 353.2313474, delta=self.tolerance) def test_x0_func_data_yaw0(self): rotor_diameter = 0.15 # m yaw = 0.0*np.pi/180. #radians ct = 0.8214036062840235 ti = 0.074 # # 3.77839335632898, 0.6643546778702326 # 3.704230762943225, 0.7361200568897026 # 3.849186706118913, 0.7866577299700839 # 3.848583479099574, 0.8214036062840235 x0 = x0_func(rotor_diameter, yaw, ct, self.alpha, ti, self.beta) self.assertAlmostEqual(x0/rotor_diameter, 3.862413891540104, delta=1E-2) def test_x0_func_data_yaw10(self): rotor_diameter = 0.15 # m yaw = 10.0 * np.pi / 180. # radians ct = 0.7866577299700839 ti = 0.074 x0 = x0_func(rotor_diameter, yaw, ct, self.alpha, ti, self.beta) self.assertAlmostEqual(x0/rotor_diameter, 3.973368012202963, delta=1E-1) def test_x0_func_data_yaw20(self): rotor_diameter = 0.15 # m yaw = 20.0 * np.pi / 180. # radians ct = 0.7361200568897026 ti = 0.074 x0 = x0_func(rotor_diameter, yaw, ct, self.alpha, ti, self.beta) self.assertAlmostEqual(x0/rotor_diameter, 4.051040798613613, delta=1E-1) def test_x0_func_data_yaw30(self): rotor_diameter = 0.15 # m yaw = 30.0 * np.pi / 180. # radians ct = 0.6643546778702326 ti = 0.074 x0 = x0_func(rotor_diameter, yaw, ct, self.alpha, ti, self.beta) self.assertAlmostEqual(x0/rotor_diameter, 4.053814723717636, delta=1E-1) def test_discontinuity_point_func(self): x0 = 353.0 xd = discontinuity_point_func(x0, self.d, self.ky, self.kz, self.yaw, self.ct) self.assertAlmostEqual(xd, 335.5180515, delta=self.tolerance) def test_sigmay_func(self): x = 500.0 x0 = 353.0 xd = sigmay_func(x, x0, self.ky, self.d, self.yaw) self.assertAlmostEqual(xd, 75.45193794, delta=self.tolerance) def test_sigmaz_func(self): x = 500.0 x0 = 353.0 xd = sigmaz_func(x, x0, self.kz, self.d) self.assertAlmostEqual(xd, 74.08914857, delta=self.tolerance) def test_theta_c_0_func(self): theta_c_0 = theta_c_0_func(self.yaw, self.ct) self.assertAlmostEqual(theta_c_0, 0.080852297, delta=self.tolerance) def test_wake_offset_func_near_wake(self): x = 200. theta_c_0 = 0.0808 sigmay = 36. sigmaz = 43. x0 = 353. delta = wake_offset_func(x, self.d, theta_c_0, x0, self.yaw, self.ky, self.kz, self.ct, sigmay, sigmaz) self.assertAlmostEqual(delta, 16.16, delta=self.tolerance) def test_wake_offset_func_far_wake(self): x = 500. x0 = 353. theta_c_0 = 0.0808 sigmay = 75.45193794 sigmaz = 74.08914857 delta = wake_offset_func(x, self.d, theta_c_0, x0, self.yaw, self.ky, self.kz, self.ct, sigmay, sigmaz) self.assertAlmostEqual(delta, 33.89352568, delta=self.tolerance) def test_deltav_func_2016(self): d = 126.4 yaw = np.pi / 6. ky = 0.25 kz = 0.2 sigmay = 75.0 sigmaz = 74.0 ct = 0.8 z = 100.0 zh = 90.0 wec_factor = 1.0 y = 50.0 delta = 33.89 x = 500. deltay = y-delta deltaz = z-zh deltav = deltav_func(deltay, deltaz, ct, yaw, sigmay, sigmaz, d, 2016, self.ky, x, wec_factor, sigmay, sigmaz) self.assertAlmostEqual(deltav, 0.1293410999394427, delta=self.tolerance) def test_deltav_func_2014(self): d = 126.4 yaw = np.pi / 6. ky = 0.25 kz = 0.2 sigmay = 75.0 sigmaz = 74.0 ct = 0.8 z = 100.0 zh = 90.0 wec_factor = 1.0 y = 50.0 delta = 33.89 x = 500. deltay = y-delta deltaz = z-zh deltav = deltav_func(deltay, deltaz, ct, yaw, sigmay, sigmaz, d, 2014, self.ky, x, wec_factor, sigmay, sigmaz) self.assertAlmostEqual(deltav, 0.03264659097, delta=self.tolerance) def test_near_deltav_func_2014_rotor_location(self): version = 2014 x0 = 353.0 xd = 335.0 yaw = 0.0 sigmay_spread = 45. sigmaz_spread = 45. sigmay_0 = 50.0 sigmaz_0 = 50.0 sigmay_d = 40.0 sigmaz_d = 40.0 wec_factor = 1.0 deltay = 100.0 deltaz = 5.0 x = 0.0 deltav = deltav_near_wake_lin_func(deltay, deltaz, self.ct, yaw, sigmay_0, sigmaz_0, x0, self.d, x, xd, sigmay_d, sigmaz_d, version, self.ky, x, sigmay_spread, sigmaz_spread, wec_factor) self.assertAlmostEqual(deltav, 0.00048145926305030354, delta=self.tolerance) def test_near_deltav_func_2014_midrange_location(self): version = 2014 x0 = 353.0 xd = 335.0 yaw = 0.0 sigmay_spread = 45. sigmaz_spread = 45. sigmay_0 = 50.0 sigmaz_0 = 50.0 sigmay_d = 40.0 sigmaz_d = 40.0 wec_factor = 1.0 deltay = 100.0 deltaz = 5.0 x = 200.0 deltav = deltav_near_wake_lin_func(deltay, deltaz, self.ct, yaw, sigmay_0, sigmaz_0, x0, self.d, x, xd, sigmay_d, sigmaz_d, version, self.ky, x, sigmay_spread, sigmaz_spread, wec_factor) self.assertAlmostEqual(deltav, 0.027941992346249663, delta=self.tolerance) def test_near_deltav_func_2014_x0_location(self): version = 2014 x0 = 353.0 xd = 335.0 yaw = 0.0 sigmay_spread = 45. sigmaz_spread = 45. sigmay_0 = 50.0 sigmaz_0 = 50.0 sigmay_d = 40.0 sigmaz_d = 40.0 wec_factor = 1.0 deltay = 100.0 deltaz = 5.0 x = 353. deltav = deltav_near_wake_lin_func(deltay, deltaz, self.ct, yaw, sigmay_0, sigmaz_0, x0, self.d, x, xd, sigmay_d, sigmaz_d, version, self.ky, x, sigmay_spread, sigmaz_spread, wec_factor) self.assertAlmostEqual(deltav, 0.0401329549842686, delta=self.tolerance) def test_near_deltav_func_2016_rotor_location(self): version = 2016 x0 = 353.0 xd = 335.0 yaw = np.pi/6. sigmay_spread = 45. sigmaz_spread = 45. sigmay_0 = 50.0 sigmaz_0 = 50.0 sigmay_d = 40.0 sigmaz_d = 40.0 wec_factor = 1.0 deltay = 100.0 deltaz = 5.0 x = 0.0 deltav = deltav_near_wake_lin_func(deltay, deltaz, self.ct, yaw, sigmay_0, sigmaz_0, x0, self.d, x, xd, sigmay_d, sigmaz_d, version, self.ky, x, sigmay_spread, sigmaz_spread, wec_factor) self.assertAlmostEqual(deltav, 0.05319773340098457, delta=self.tolerance) def test_near_deltav_func_2016_midrange_location(self): version = 2016 x0 = 353.0 xd = 335.0 yaw = np.pi/6. sigmay_spread = 45. sigmaz_spread = 45. sigmay_0 = 50.0 sigmaz_0 = 50.0 sigmay_d = 40.0 sigmaz_d = 40.0 wec_factor = 1.0 deltay = 100.0 deltaz = 5.0 x = 200.0 deltav = deltav_near_wake_lin_func(deltay, deltaz, self.ct, yaw, sigmay_0, sigmaz_0, x0, self.d, x, xd, sigmay_d, sigmaz_d, version, self.ky, x, sigmay_spread, sigmaz_spread, wec_factor) self.assertAlmostEqual(deltav, 0.0388723745762739, delta=self.tolerance) def test_near_deltav_func_2016_x0_location(self): version = 2016 x0 = 353.0 xd = 335.0 yaw = np.pi/6. sigmay_spread = 45. sigmaz_spread = 45. sigmay_0 = 50.0 sigmaz_0 = 50.0 sigmay_d = 40.0 sigmaz_d = 40.0 wec_factor = 1.0 deltay = 100.0 deltaz = 5.0 x = 353. deltav = deltav_near_wake_lin_func(deltay, deltaz, self.ct, yaw, sigmay_0, sigmaz_0, x0, self.d, x, xd, sigmay_d, sigmaz_d, version, self.ky, x, sigmay_spread, sigmaz_spread, wec_factor) self.assertAlmostEqual(deltav, 0.027913475075370238, delta=self.tolerance) def test_wake_combination_func_Lissaman1979(self): Uk = 7.0 deltav = 0.05 wake_combination_method = 0 deficit_sum = 2.0 new_sum = wake_combination_func(self.wind_speed, Uk, deltav, wake_combination_method, deficit_sum) self.assertAlmostEqual(new_sum, 2.4, delta=self.tolerance) def test_wake_combination_func_Katic1986(self): Uk = 7.0 deltav = 0.05 wake_combination_method = 2 deficit_sum = 2.0 new_sum = wake_combination_func(self.wind_speed, Uk, deltav, wake_combination_method, deficit_sum) self.assertAlmostEqual(new_sum, 2.039607805437114, delta=self.tolerance) def test_wake_combination_func_Voutsinas1990(self): Uk = 7.0 deltav = 0.05 wake_combination_method = 3 deficit_sum = 2.0 new_sum = wake_combination_func(self.wind_speed, Uk, deltav, wake_combination_method, deficit_sum) self.assertAlmostEqual(new_sum, 2.0303940504246953, delta=self.tolerance) def test_wake_combination_func_Niayifar2016(self): Uk = 7.0 deltav = 0.05 wake_combination_method = 1 deficit_sum = 2.0 new_sum = wake_combination_func(self.wind_speed, Uk, deltav, wake_combination_method, deficit_sum) self.assertAlmostEqual(new_sum, 2.35, delta=self.tolerance) def test_wind_shear_func(self): z = 90.0 zo = 2.0 zr = 80.0 psi = 0.15 wind_velocity_with_shear = wind_shear_func(z, self.wind_speed, zr, zo, psi) self.assertAlmostEqual(wind_velocity_with_shear, 8.14607111996, delta=self.tolerance) def test_k_star_func(self): ti_ust = 0.1 kstar = k_star_func(ti_ust) self.assertAlmostEqual(kstar, 0.042048, delta=self.tolerance) def test_ct_to_axial_ind_func_normal_ct(self): ct = 0.84 axial_induction = ct_to_axial_ind_func(ct) self.assertAlmostEqual(axial_induction, 0.3, delta=self.tolerance) def test_ct_to_axial_ind_func_high_ct(self): ct = 0.97 axial_induction = ct_to_axial_ind_func(ct) self.assertAlmostEqual(axial_induction, 0.4119957249, delta=self.tolerance) def test_smooth_max(self): x = 12. y = 13. s = 100. smax1 = smooth_max(s, x, y) self.assertAlmostEqual(smax1, 13.0, delta=self.tolerance) def test_overlap_area_func_rotor_all_in_wake(self): turbiney = 50. turbinez = 90. rotor_diameter = 100. wake_center_y = 0.0 wake_center_z = 90.0 wake_diameter = 200. wake_overlap = overlap_area_func(turbiney, turbinez, rotor_diameter, wake_center_y, wake_center_z, wake_diameter) self.assertAlmostEqual(wake_overlap, np.pi*rotor_diameter**2/4, delta=self.tolerance) def test_overlap_area_func_rotor_all_in_wake_perfect_overlap(self): turbiney = 0. turbinez = 90. rotor_diameter = 100. wake_center_y = 0.0 wake_center_z = 90.0 wake_diameter = 200. wake_overlap = overlap_area_func(turbiney, turbinez, rotor_diameter, wake_center_y, wake_center_z, wake_diameter) self.assertAlmostEqual(wake_overlap, np.pi * rotor_diameter ** 2 / 4, delta=self.tolerance) def test_overlap_area_func_wake_all_in_rotor(self): turbiney = 50. turbinez = 90. rotor_diameter = 200. wake_center_y = 0.0 wake_center_z = 90.0 wake_diameter = 100. wake_overlap = overlap_area_func(turbiney, turbinez, rotor_diameter, wake_center_y, wake_center_z, wake_diameter) self.assertAlmostEqual(wake_overlap, np.pi*wake_diameter**2/4, delta=self.tolerance) def test_overlap_area_func_wake_all_in_rotor_perfect_overlap(self): turbiney = 0. turbinez = 90. rotor_diameter = 200. wake_center_y = 0.0 wake_center_z = 90.0 wake_diameter = 100. wake_overlap = overlap_area_func(turbiney, turbinez, rotor_diameter, wake_center_y, wake_center_z, wake_diameter) self.assertAlmostEqual(wake_overlap, np.pi*wake_diameter**2/4, delta=self.tolerance) def test_overlap_area_func_no_overlap(self): turbiney = 0. turbinez = 90. rotor_diameter = 100. wake_center_y = 100.0 wake_center_z = 90.0 wake_diameter = 100. wake_overlap = overlap_area_func(turbiney, turbinez, rotor_diameter, wake_center_y, wake_center_z, wake_diameter) self.assertAlmostEqual(wake_overlap, 0.0, delta=self.tolerance) #TODO add tests for partial overlap class test_added_ti_func(unittest.TestCase): def setUp(self): self.tolerance = 1E-2 self.yaw = 0.0 self.ct = 0.8 self.alpha = 2.32 self.beta = 0.154 self.ti = 0.1 self.ky = 0.022 self.kz = 0.022 self.wind_speed = 8.0 self.TI = 0.077 self.x = 560. self.rotor_diameter = 80. self.deltay = 0. self.wake_height = 70. self.turbine_height = 70. self.sm_smoothing = 700. def test_added_ti_func_Niayifar_2016_max_2nd_turb(self): TI_calculation_method = 4 TI_area_ratio_in = 0.0 TI_dst_in = 0.0 TI_ust = 0.077 ti_area_ratio, ti_dst = added_ti_func(self.TI, self.ct, self.x, self.ky, self.rotor_diameter, self.rotor_diameter, self.deltay, self.wake_height, self.turbine_height, self.sm_smoothing, TI_ust, TI_calculation_method, TI_area_ratio_in, TI_dst_in) self.assertAlmostEqual(ti_dst, 0.1476, delta=self.tolerance) def test_added_ti_func_Niayifar_2016_max_3rd_turb(self): TI_calculation_method = 4 TI_area_ratio_in = 0.0 TI_dst_in = 0.0 TI_ust = 0.1476 ti_area_ratio, ti_dst = added_ti_func(self.TI, self.ct, self.x, self.ky, self.rotor_diameter, self.rotor_diameter, self.deltay, self.wake_height, self.turbine_height, self.sm_smoothing, TI_ust, TI_calculation_method, TI_area_ratio_in, TI_dst_in) self.assertAlmostEqual(ti_dst, 0.1476, delta=self.tolerance) def test_added_ti_func_Niayifar_2016_smoothmax_2nd_turb(self): TI_calculation_method = 5 TI_area_ratio_in = 0.0 TI_dst_in = 0.0 TI_ust = 0.077 ti_area_ratio, ti_dst = added_ti_func(self.TI, self.ct, self.x, self.ky, self.rotor_diameter, self.rotor_diameter, self.deltay, self.wake_height, self.turbine_height, self.sm_smoothing, TI_ust, TI_calculation_method, TI_area_ratio_in, TI_dst_in) self.assertAlmostEqual(ti_dst, 0.1476, delta=self.tolerance) def test_added_ti_func_Niayifar_2016_smoothmax_3rd_turb(self): TI_calculation_method = 5 TI_area_ratio_in = .05 TI_dst_in = 0.077 TI_ust = 0.1476 ti_area_ratio, ti_dst = added_ti_func(self.TI, self.ct, self.x, self.ky, self.rotor_diameter, self.rotor_diameter, self.deltay, self.wake_height, self.turbine_height, self.sm_smoothing, TI_ust, TI_calculation_method, TI_area_ratio_in, TI_dst_in) self.assertAlmostEqual(ti_dst, 0.1476, delta=self.tolerance) class test_point_velocity_with_shear(unittest.TestCase): def setUp(self): self.tolerance = 1E-2 self.turbI = -1 self.wake_combination_method = 1 self.wake_model_version = 2016 self.sorted_x_idx = np.array([0]) self.rotorDiameter = np.array([0.15]) self.pointX = self.rotorDiameter*5. self.pointY = 0.24*self.rotorDiameter self.pointZ = 0.125 self.tol = 1E-12 self.alpha = 2.32 self.beta = 0.154 self.expratemultiplier = 1.0 self.wec_factor = 1.0 self.wind_speed = 4.88 self.z_ref = 0.125 self.z_0 = 0.000022 self.shear_exp = 0.1 self.turbineXw = np.array([0]) self.turbineYw = np.array([0]) self.turbineZ = np.array([0.125]) self.yaw = np.array([20. * np.pi / 180.0]) self.wtVelocity = np.array([self.wind_speed]) self.Ct_local = 0.7361200568897026 * np.ones_like(self.turbineXw) # np.array([0.7374481936835376]) self.TIturbs = 0.025 * np.ones_like(self.turbineXw) # *np.array([0.01]) #np.array([0.001]) #TODO check point velocity tests and ti input self.ky_local = 0.022 # np.array([0.3837*TIturbs[0] + 0.003678]) self.kz_local = 0.022 # np.array([0.3837*TIturbs[0] + 0.003678]) def test_point_velocity_with_shear(self): point_velocity_with_shear = point_velocity_with_shear_func(self.turbI, self.wake_combination_method, self.wake_model_version, self.sorted_x_idx, self.pointX, self.pointY, self.pointZ, self.tol, self.alpha, self.beta, self.expratemultiplier, self.wec_factor, self.wind_speed, self.z_ref, self.z_0, self.shear_exp, self.turbineXw, self.turbineYw, self.turbineZ, self.rotorDiameter, self.yaw, self.wtVelocity, self.Ct_local, self.TIturbs, self.ky_local, self.kz_local) self.assertAlmostEqual(point_velocity_with_shear/self.wind_speed, 0.406, delta=self.tolerance) class test_sigma_spread(unittest.TestCase): def setUp(self): self.tolerance = 1E-6 self.d = 126.4 self.yaw = np.pi / 6. self.ct = 0.8 self.alpha = 2.32 self.beta = 0.154 self.ti = 0.1 self.ky = 0.25 self.kz = 0.2 x = np.array([500.0, 500.0, 500.0, 200.0, -10.0]) xi_d = np.array([1.0, 2.0, 1.0, 1.0, 1.0]) xi_a = np.array([0.0, 0.0, 45.0, 0.0, 0.0]) sigma_0 = 38.7 sigma_d = 34.2 x0 = 353.0 self.sigma_spread = np.zeros_like(x) for i in np.arange(0, x.size): self.sigma_spread[i] = sigma_spread_func(x[i], x0, self.ky, sigma_0, sigma_d, xi_a[i], xi_d[i]) self.correct_results = np.array([75.45, 150.9, 534.2, 36.7495751, 0.0]) def test_sigma_spread_func_case1(self): self.assertAlmostEqual(self.sigma_spread[0], self.correct_results[0], delta=self.tolerance) def test_sigma_spread_func_case2(self): self.assertAlmostEqual(self.sigma_spread[1], self.correct_results[1], delta=self.tolerance) def test_sigma_spread_func_case3(self): self.assertAlmostEqual(self.sigma_spread[2], self.correct_results[2], delta=self.tolerance) def test_sigma_spread_func_case4(self): self.assertAlmostEqual(self.sigma_spread[3], self.correct_results[3], delta=self.tolerance) def test_sigma_spread_func_case5(self): self.assertAlmostEqual(self.sigma_spread[4], self.correct_results[4], delta=self.tolerance) # class test_sigma_spread_too_high_error(unittest.TestCase): # # def setUp(self): # self.tolerance = 1E-6 # self.d = 126.4 # self.yaw = np.pi / 6. # self.ct = 0.8 # self.alpha = 2.32 # self.beta = 0.154 # self.ti = 0.1 # self.ky = 0.25 # self.kz = 0.2 # # self.x = 500.0 # self.xi_d = 1.0 # self.xi_a = 90.000 # # # self.sigma_0 = 38.7 # self.sigma_d = 34.2 # # self.x0 = 353.0 # # def test_sigma_spread_too_high(self): # self.assertRaises(sigma_spread_func(self.x, self.x0, self.ky, self.sigma_0, self.sigma_d, self.xi_a, self.xi_d)) # class test_hermite_spline(unittest.TestCase): def test_linear(self): """"Approximate y = x - 1""" x = 1. x0 = 0. x1 = 2. y0 = -1. dy0 = 1. y1 = 1. dy1 = 1. y = hermite_spline(x, x0, x1, y0, dy0, y1, dy1) self.assertEqual(y, 0.0) def test_cubic(self): """Approximate y=x**3""" x = 0. x0 = -1. x1 = 1. y0 = 0. dy0 = 2. y1 = 0. dy1 = 2. y = hermite_spline(x, x0, x1, y0, dy0, y1, dy1) self.assertEqual(y, 0.0) def test_parabolic(self): """Approximate y=x**2""" x = 0. x0 = -1. x1 = 1. y0 = 1. dy0 = -2. y1 = 1. dy1 = 2. y = hermite_spline(x, x0, x1, y0, dy0, y1, dy1) self.assertEqual(y, 0.0) class test_interpolation(unittest.TestCase): # def test_cubic(self): # # # define interpolation type # interp_type = 0 # # # set up points for interpolation # x = np.array([-1., -0.5, 0., 0.5, 1.]) # y = np.array([-1., -0.125, 0., 0.125, 1.]) # # # set location of interpolation # xval = 0.125 # # # get interpolated y value # yval = interpolation(interp_type, x, y, xval, 3.0, 3.0, True) # # self.assertEqual(yval, 0.0625) def test_linear(self): # define interpolation type interp_type = 1 # set up points for interpolation x = np.array([0., 1., 2.]) y = np.array([0., 1., 0.]) # set location of interpolation xval = 0.5 # get interpolated y value yval = interpolation(interp_type, x, y, xval, 0.0, 0.0, False) self.assertEqual(yval, 0.5) class test_ctcp_curve(unittest.TestCase): def setUp(self): filename = "./input_files/NREL5MWCPCT_dict.p" import cPickle as pickle data = pickle.load(open(filename, "rb")) cp_data = np.zeros([data['wind_speed'].size]) ct_data = np.zeros([data['wind_speed'].size]) wind_speed_data = np.zeros([data['wind_speed'].size]) cp_data[:] = data['CP'] ct_data[:] = data['CT'] wind_speed_data[:] = data['wind_speed'] self.ct_data = ct_data self.cp_data = cp_data self.wind_speed_data = wind_speed_data self.options = {'use_ct_curve': True, 'ct_curve_ct': self.ct_data, 'ct_curve_wind_speed': self.wind_speed_data} def test_5mw_ct_greater_than_1_warning(self): from gaussianwake.gaussianwake import GaussianWake import pytest pytest.warns(Warning, GaussianWake, nTurbines=6, options=self.options) class test_wec(unittest.TestCase): def setUp(self): filename = "./input_files/NREL5MWCPCT_dict.p" import cPickle as pickle data = pickle.load(open(filename, "rb")) cp_data = np.zeros([data['wind_speed'].size]) ct_data = np.zeros([data['wind_speed'].size]) wind_speed_data = np.zeros([data['wind_speed'].size]) cp_data[:] = data['CP'] ct_data[:] = data['CT'] wind_speed_data[:] = data['wind_speed'] self.ct_data = ct_data self.cp_data = cp_data self.wind_speed_data = wind_speed_data self.options = {'use_ct_curve': True, 'ct_curve_ct': self.ct_data, 'ct_curve_wind_speed': self.wind_speed_data} nTurbines = 2 from gaussianwake.gaussianwake import GaussianWake prob = Problem(root=Group()) prob.root.add('wakemodel', GaussianWake(nTurbines, options=self.options), promotes=['*']) prob.setup() prob['wind_speed'] = 8. self.prob = prob def test_no_change_in_deficit_by_wake_spread_rate_multiplier_at_center(self): prob = self.prob turbineX = np.array([0., 400.]) turbineY = np.array([0., 0.]) rotor_diameter = 50. prob['turbineXw'] = turbineX prob['turbineYw'] = turbineY prob['rotorDiameter'] = np.array([rotor_diameter, rotor_diameter]) prob['rotorDiameter'] = np.array([rotor_diameter, rotor_diameter]) prob['model_params:wec_spreading_angle'] = 0.0 prob['model_params:wec_factor'] = 1.0 prob.run_once() wspeed0 = prob['wtVelocity0'][1] prob['model_params:wec_spreading_angle'] = 2.0 prob.run_once() wspeed1 = prob['wtVelocity0'][1] self.assertEqual(wspeed1, wspeed0) def test_no_change_in_deficit_by_wake_diameter_multiplier_at_center(self): prob = self.prob turbineX = np.array([0., 400.]) turbineY = np.array([0., 0.]) rotor_diameter = 50. prob['turbineXw'] = turbineX prob['turbineYw'] = turbineY prob['rotorDiameter'] = np.array([rotor_diameter, rotor_diameter]) prob['model_params:wec_spreading_angle'] = 0.0 prob['model_params:wec_factor'] = 1.0 prob.run_once() wspeed0 = prob['wtVelocity0'][1] prob['model_params:wec_spreading_angle'] = 2.0 prob.run_once() wspeed1 = prob['wtVelocity0'][1] self.assertEqual(wspeed1, wspeed0) def test_increase_deficit_by_wake_diameter_expansion(self): prob = self.prob turbineX = np.array([0., 400.]) turbineY = np.array([0., 100.]) rotor_diameter = 50. prob['turbineXw'] = turbineX prob['turbineYw'] = turbineY prob['rotorDiameter'] = np.array([rotor_diameter, rotor_diameter]) prob['model_params:wec_spreading_angle'] = 0.0 prob['model_params:wec_factor'] = 1.0 prob.run_once() wspeed0 = prob['wtVelocity0'][1] prob['model_params:wec_factor'] = 2.0 prob.run_once() wspeed1 = prob['wtVelocity0'][1] self.assertGreater(wspeed0, wspeed1) def test_increase_deficit_by_wake_expansion_rate_multiplier(self): prob = self.prob turbineX = np.array([0., 400.]) turbineY = np.array([0., 100.]) rotor_diameter = 50. prob['turbineXw'] = turbineX prob['turbineYw'] = turbineY prob['rotorDiameter'] = np.array([rotor_diameter, rotor_diameter]) prob['model_params:wec_spreading_angle'] = 0.0 prob['model_params:wec_factor'] = 1.0 prob.run_once() prob['model_params:wec_factor'] = 1.0 wspeed0 = prob['wtVelocity0'][1] prob['model_params:wec_spreading_angle'] = 2.0 prob.run_once() wspeed1 = prob['wtVelocity0'][1] self.assertGreater(wspeed0, wspeed1) class test_porteagel_analyze(unittest.TestCase): #TODO improve tolerance of test - why can't we match more closely? def setUp(self): from plantenergy.utilities import sunflower_points self.tolerance = 1E-1 self.wake_combination_method = 1 self.wake_model_version = 2016 self.rotor_diameter = 80. self.hub_height = 70. self.ct = 0.6 self.alpha = 2.32 self.beta = 0.154 self.expratemultiplier = 1.0 self.wec_factor = 1.0 self.wind_speed = 8.0 self.z_ref = self.hub_height self.z_0 = 0.0002 self.shear_exp = 0.15 self.yaw = 0.0 self.wtVelocity = np.array([self.wind_speed]) self.TI = 0.077 self.ky = 0.3837*self.TI + 0.003678 # np.array([0.3837*TIturbs[0] + 0.003678]) self.kz = 0.3837*self.TI + 0.003678 # np.array([0.3837*TIturbs[0] + 0.003678]) rotorpoints = sunflower_points(100) self.RotorPointsY = rotorpoints[0] #np.array([0, .5, 1.0, 0., 0.0, -.5, -1.0, 0., 0.]) self.RotorPointsZ = rotorpoints[1] #np.array([0, 0., 0., .5, 1.0, 0., 0.0, -0.5, -1.]) # self.RotorPointsY = np.array([0]) # self.RotorPointsZ = np.array([0]) self.RotorPointsY = np.array([0, .5, 1.0, 0., 0.0, -.5, -1.0, 0., 0.]) self.RotorPointsZ = np.array([0, 0., 0., .5, 1.0, 0., 0.0, -0.5, -1.]) self.TI_calculation_method = 4 self.calc_k_star = True self.print_ti = False self.interp_type = 1 self.sm_smoothing = 700. loc_data = np.loadtxt('input_files/horns_rev_locations.txt', delimiter=',') turbineXw = loc_data[:, 0] * self.rotor_diameter turbineYw = loc_data[:, 1] * self.rotor_diameter turbineZ = np.ones_like(turbineXw) * self.hub_height sorted_x_idx = np.argsort(turbineXw, kind='heapsort') rotorDiameter = np.ones_like(turbineXw) * self.rotor_diameter Ct = np.ones_like(turbineXw) * self.ct yaw = np.ones_like(turbineXw) * self.yaw TI_turbs = np.ones_like(turbineXw) * self.TI use_ct_curve = True # ct_data = np.loadtxt('input_files/predicted_ct_vestas_v80_niayifar2016.txt', delimiter=',') ct_data = np.loadtxt('input_files/mfg_ct_vestas_v80_niayifar2016.txt', delimiter=',') ct_curve_wind_speed = ct_data[:, 0] ct_curve_ct = ct_data[:, 1] CalculateFlowField=False wtVelocity, _ = porteagel_analyze(turbineXw, sorted_x_idx, turbineYw, turbineZ, rotorDiameter, Ct, self.wind_speed, yaw, self.ky, self.kz, self.alpha, self.beta, TI_turbs, self.RotorPointsY, self.RotorPointsZ, np.array([0]), np.array([0]), np.array([0]), self.z_ref, self.z_0, self.shear_exp, self.wake_combination_method, self.TI_calculation_method, self.calc_k_star, self.wec_factor, self.print_ti, self.wake_model_version, self.interp_type, use_ct_curve, ct_curve_wind_speed, ct_curve_ct, self.sm_smoothing, self.expratemultiplier, CalculateFlowField) free_stream_power = power_func_v80(self.wind_speed) wtPower = power_func_v80(wtVelocity) self.norm_pow_ave_by_row = np.zeros(10) for i in np.arange(0, self.norm_pow_ave_by_row.size): pow_ave_row = np.average([wtPower[40 + i], wtPower[50 + i], wtPower[60 + i]]) self.norm_pow_ave_by_row[i] = pow_ave_row / free_stream_power def test_wt_velocity_1_turb(self): turbineXw = np.array([0.0]) turbineYw = np.array([0.0]) turbineZ = np.ones_like(turbineXw)*self.hub_height sorted_x_idx = np.argsort(turbineXw, kind='heapsort') rotorDiameter = np.ones_like(turbineXw)*self.rotor_diameter Ct = np.ones_like(turbineXw)*self.ct yaw = np.ones_like(turbineXw)*self.yaw TI_turbs = np.ones_like(turbineXw)*self.TI use_ct_curve = False ct_curve_wind_speed = np.array([self.wind_speed]) ct_curve_ct = np.array([self.ct]) CalculateFlowField=False wtVelocity, _ = porteagel_analyze(turbineXw, sorted_x_idx, turbineYw, turbineZ, rotorDiameter, Ct, self.wind_speed, yaw, self.ky, self.kz, self.alpha, self.beta, TI_turbs, self.RotorPointsY, self.RotorPointsZ, np.array([0]), np.array([0]), np.array([0]), self.z_ref, self.z_0, self.shear_exp, self.wake_combination_method, self.TI_calculation_method, self.calc_k_star, self.wec_factor, self.print_ti, self.wake_model_version, self.interp_type, use_ct_curve, ct_curve_wind_speed, ct_curve_ct, self.sm_smoothing, self.expratemultiplier, CalculateFlowField) self.assertAlmostEqual(wtVelocity, 8.0, delta=self.tolerance) # # 2.009085240790877, 0.4619246861924686 # 2.0091082123225856, 0.46359832635983256 # 3.003385019279678, 0.5037656903765689 # 3.997271310197718, 0.515481171548117 # 4.996498482238084, 0.516317991631799 # 5.990212486668307, 0.515481171548117 # 7.0003626220362625, 0.5121338912133888 # 7.994042169168923, 0.5087866108786608 # 8.99869062269259, 0.5046025104602508 # 10.003339076216259, 0.5004184100418408 def test_wt_velocity_row_1_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[0], 1.0, delta=self.tolerance) def test_wt_velocity_row_2_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[1], 0.4619246861924686, delta=self.tolerance) def test_wt_velocity_row_3_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[2], 0.5037656903765689, delta=self.tolerance) def test_wt_velocity_row_4_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[3], 0.515481171548117, delta=self.tolerance) def test_wt_velocity_row_5_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[4], 0.516317991631799, delta=self.tolerance) def test_wt_velocity_row_6_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[5], 0.515481171548117, delta=self.tolerance) def test_wt_velocity_row_7_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[6], 0.5121338912133888, delta=self.tolerance) def test_wt_velocity_row_8_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[7], 0.5087866108786608, delta=self.tolerance) def test_wt_velocity_row_9_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[8], 0.5046025104602508, delta=self.tolerance) def test_wt_velocity_row_10_of_horns_rev(self): self.assertAlmostEqual(self.norm_pow_ave_by_row[9], 0.5004184100418408, delta=self.tolerance) if __name__ == "__main__": unittest.main(verbosity=2)
[ 1, 9995, 13, 20399, 491, 529, 5813, 10202, 29639, 29889, 29871, 29906, 29900, 29896, 29947, 29889, 13, 29943, 27998, 12016, 13, 12432, 1141, 314, 10443, 3014, 13, 15945, 29908, 13, 13, 5215, 443, 27958, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 903, 13732, 351, 295, 29918, 3921, 661, 1053, 14931, 351, 295, 29918, 24209, 911, 29892, 921, 29900, 29918, 9891, 29892, 278, 941, 29918, 29883, 29918, 29900, 29918, 9891, 29892, 4365, 13029, 29918, 9891, 29892, 269, 2934, 29918, 1028, 949, 29918, 9891, 13, 3166, 903, 13732, 351, 295, 29918, 3921, 661, 1053, 269, 2934, 29920, 29918, 9891, 29892, 281, 1296, 29918, 10289, 29918, 9891, 29892, 628, 29873, 485, 29918, 9891, 29892, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 13, 3166, 903, 13732, 351, 295, 29918, 3921, 661, 1053, 25457, 29918, 6203, 29918, 9891, 29892, 281, 1296, 29918, 510, 2109, 362, 29918, 9891, 29892, 2715, 29918, 2034, 29918, 9891, 29892, 413, 29918, 8508, 29918, 9891, 13, 3166, 903, 13732, 351, 295, 29918, 3921, 661, 1053, 274, 29873, 29918, 517, 29918, 1165, 616, 29918, 513, 29918, 9891, 29892, 8805, 29918, 11360, 279, 29918, 9891, 29892, 766, 20621, 537, 29918, 3149, 29918, 9891, 29892, 10597, 29918, 3317, 13, 3166, 903, 13732, 351, 295, 29918, 3921, 661, 1053, 29694, 29892, 18606, 568, 29918, 23579, 457, 29892, 1298, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 29918, 9891, 13, 3166, 1722, 29885, 1388, 29877, 29889, 2754, 1053, 11583, 29892, 6431, 13, 13, 1753, 3081, 29918, 9891, 29918, 29894, 29947, 29900, 29898, 29894, 1125, 13, 1678, 396, 3081, 11672, 6216, 363, 16779, 294, 325, 29947, 29900, 515, 15981, 388, 361, 279, 29871, 29906, 29900, 29896, 29953, 13, 1678, 282, 353, 29871, 29900, 29889, 29896, 29955, 29947, 29896, 29929, 334, 325, 3579, 29871, 29945, 448, 29871, 29953, 29889, 29945, 29896, 29929, 29947, 334, 325, 3579, 29871, 29946, 718, 29871, 29929, 29900, 29889, 29953, 29906, 29941, 334, 325, 3579, 29871, 29941, 448, 29871, 29945, 29955, 29946, 29889, 29953, 29906, 334, 325, 3579, 29871, 29906, 718, 29871, 29896, 29955, 29906, 29955, 29889, 29906, 334, 325, 448, 29871, 29896, 29929, 29955, 29945, 29889, 29900, 13, 13, 1678, 736, 282, 13, 1990, 1243, 29918, 16121, 29918, 1491, 14608, 1475, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 25027, 261, 749, 353, 29871, 29896, 29923, 29899, 29953, 13, 4706, 1583, 29889, 29881, 353, 29871, 29896, 29906, 29953, 29889, 29946, 13, 4706, 1583, 29889, 29891, 1450, 353, 7442, 29889, 1631, 29914, 29953, 29889, 13, 4706, 1583, 29889, 312, 353, 29871, 29900, 29889, 29947, 13, 4706, 1583, 29889, 2312, 353, 29871, 29906, 29889, 29941, 29906, 13, 4706, 1583, 29889, 3571, 353, 29871, 29900, 29889, 29896, 29945, 29946, 13, 4706, 1583, 29889, 2034, 353, 29871, 29900, 29889, 29896, 13, 4706, 1583, 29889, 3459, 353, 29871, 29900, 29889, 29906, 29945, 13, 4706, 1583, 29889, 29895, 29920, 353, 29871, 29900, 29889, 29906, 13, 4706, 1583, 29889, 14800, 29918, 19322, 353, 29871, 29947, 29889, 29900, 13, 13, 1678, 822, 1243, 29918, 29916, 29900, 29918, 9891, 29918, 3179, 29918, 28667, 29898, 1311, 1125, 13, 13, 4706, 921, 29900, 353, 921, 29900, 29918, 9891, 29898, 1311, 29889, 29881, 29892, 1583, 29889, 29891, 1450, 29892, 1583, 29889, 312, 29892, 1583, 29889, 2312, 29892, 1583, 29889, 2034, 29892, 1583, 29889, 3571, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29900, 29892, 29871, 29941, 29945, 29941, 29889, 29906, 29941, 29896, 29941, 29946, 29955, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29916, 29900, 29918, 9891, 29918, 1272, 29918, 29891, 1450, 29900, 29898, 1311, 1125, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29900, 29889, 29896, 29945, 396, 286, 13, 4706, 343, 1450, 353, 29871, 29900, 29889, 29900, 29930, 9302, 29889, 1631, 29914, 29896, 29947, 29900, 29889, 396, 3665, 5834, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29947, 29906, 29896, 29946, 29900, 29941, 29953, 29900, 29953, 29906, 29947, 29946, 29900, 29906, 29941, 29945, 13, 4706, 19538, 353, 29871, 29900, 29889, 29900, 29955, 29946, 13, 4706, 396, 13, 4706, 396, 29871, 29941, 29889, 29955, 29955, 29947, 29941, 29929, 29941, 29941, 29945, 29953, 29941, 29906, 29947, 29929, 29947, 29892, 29871, 29900, 29889, 29953, 29953, 29946, 29941, 29945, 29946, 29953, 29955, 29955, 29947, 29955, 29900, 29906, 29941, 29906, 29953, 13, 4706, 396, 29871, 29941, 29889, 29955, 29900, 29946, 29906, 29941, 29900, 29955, 29953, 29906, 29929, 29946, 29941, 29906, 29906, 29945, 29892, 29871, 29900, 29889, 29955, 29941, 29953, 29896, 29906, 29900, 29900, 29945, 29953, 29947, 29947, 29929, 29955, 29900, 29906, 29953, 13, 4706, 396, 29871, 29941, 29889, 29947, 29946, 29929, 29896, 29947, 29953, 29955, 29900, 29953, 29896, 29896, 29947, 29929, 29896, 29941, 29892, 29871, 29900, 29889, 29955, 29947, 29953, 29953, 29945, 29955, 29955, 29906, 29929, 29929, 29955, 29900, 29900, 29947, 29941, 29929, 13, 4706, 396, 29871, 29941, 29889, 29947, 29946, 29947, 29945, 29947, 29941, 29946, 29955, 29929, 29900, 29929, 29929, 29945, 29955, 29946, 29892, 29871, 29900, 29889, 29947, 29906, 29896, 29946, 29900, 29941, 29953, 29900, 29953, 29906, 29947, 29946, 29900, 29906, 29941, 29945, 13, 13, 4706, 921, 29900, 353, 921, 29900, 29918, 9891, 29898, 5450, 272, 29918, 29881, 2829, 1308, 29892, 343, 1450, 29892, 274, 29873, 29892, 1583, 29889, 2312, 29892, 19538, 29892, 1583, 29889, 3571, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29900, 29914, 5450, 272, 29918, 29881, 2829, 1308, 29892, 29871, 29941, 29889, 29947, 29953, 29906, 29946, 29896, 29941, 29947, 29929, 29896, 29945, 29946, 29900, 29896, 29900, 29946, 29892, 19471, 29922, 29896, 29923, 29899, 29906, 29897, 13, 13, 1678, 822, 1243, 29918, 29916, 29900, 29918, 9891, 29918, 1272, 29918, 29891, 1450, 29896, 29900, 29898, 1311, 1125, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29900, 29889, 29896, 29945, 29871, 396, 286, 13, 4706, 343, 1450, 353, 29871, 29896, 29900, 29889, 29900, 334, 7442, 29889, 1631, 847, 29871, 29896, 29947, 29900, 29889, 29871, 396, 2971, 5834, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29955, 29947, 29953, 29953, 29945, 29955, 29955, 29906, 29929, 29929, 29955, 29900, 29900, 29947, 29941, 29929, 13, 4706, 19538, 353, 29871, 29900, 29889, 29900, 29955, 29946, 13, 13, 4706, 921, 29900, 353, 921, 29900, 29918, 9891, 29898, 5450, 272, 29918, 29881, 2829, 1308, 29892, 343, 1450, 29892, 274, 29873, 29892, 1583, 29889, 2312, 29892, 19538, 29892, 1583, 29889, 3571, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29900, 29914, 5450, 272, 29918, 29881, 2829, 1308, 29892, 29871, 29941, 29889, 29929, 29955, 29941, 29941, 29953, 29947, 29900, 29896, 29906, 29906, 29900, 29906, 29929, 29953, 29941, 29892, 19471, 29922, 29896, 29923, 29899, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 29916, 29900, 29918, 9891, 29918, 1272, 29918, 29891, 1450, 29906, 29900, 29898, 1311, 1125, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29900, 29889, 29896, 29945, 29871, 396, 286, 13, 4706, 343, 1450, 353, 29871, 29906, 29900, 29889, 29900, 334, 7442, 29889, 1631, 847, 29871, 29896, 29947, 29900, 29889, 29871, 396, 2971, 5834, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29955, 29941, 29953, 29896, 29906, 29900, 29900, 29945, 29953, 29947, 29947, 29929, 29955, 29900, 29906, 29953, 13, 4706, 19538, 353, 29871, 29900, 29889, 29900, 29955, 29946, 13, 13, 4706, 921, 29900, 353, 921, 29900, 29918, 9891, 29898, 5450, 272, 29918, 29881, 2829, 1308, 29892, 343, 1450, 29892, 274, 29873, 29892, 1583, 29889, 2312, 29892, 19538, 29892, 1583, 29889, 3571, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29900, 29914, 5450, 272, 29918, 29881, 2829, 1308, 29892, 29871, 29946, 29889, 29900, 29945, 29896, 29900, 29946, 29900, 29955, 29929, 29947, 29953, 29896, 29941, 29953, 29896, 29941, 29892, 19471, 29922, 29896, 29923, 29899, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 29916, 29900, 29918, 9891, 29918, 1272, 29918, 29891, 1450, 29941, 29900, 29898, 1311, 1125, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29900, 29889, 29896, 29945, 29871, 396, 286, 13, 4706, 343, 1450, 353, 29871, 29941, 29900, 29889, 29900, 334, 7442, 29889, 1631, 847, 29871, 29896, 29947, 29900, 29889, 29871, 396, 2971, 5834, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29953, 29953, 29946, 29941, 29945, 29946, 29953, 29955, 29955, 29947, 29955, 29900, 29906, 29941, 29906, 29953, 13, 4706, 19538, 353, 29871, 29900, 29889, 29900, 29955, 29946, 13, 13, 4706, 921, 29900, 353, 921, 29900, 29918, 9891, 29898, 5450, 272, 29918, 29881, 2829, 1308, 29892, 343, 1450, 29892, 274, 29873, 29892, 1583, 29889, 2312, 29892, 19538, 29892, 1583, 29889, 3571, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29900, 29914, 5450, 272, 29918, 29881, 2829, 1308, 29892, 29871, 29946, 29889, 29900, 29945, 29941, 29947, 29896, 29946, 29955, 29906, 29941, 29955, 29896, 29955, 29953, 29941, 29953, 29892, 19471, 29922, 29896, 29923, 29899, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 2218, 20621, 537, 29918, 3149, 29918, 9891, 29898, 1311, 1125, 13, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 13, 4706, 921, 29881, 353, 766, 20621, 537, 29918, 3149, 29918, 9891, 29898, 29916, 29900, 29892, 1583, 29889, 29881, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 29895, 29920, 29892, 1583, 29889, 29891, 1450, 29892, 1583, 29889, 312, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29881, 29892, 29871, 29941, 29941, 29945, 29889, 29945, 29896, 29947, 29900, 29945, 29896, 29945, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 18816, 13029, 29918, 9891, 29898, 1311, 1125, 13, 13, 4706, 921, 353, 29871, 29945, 29900, 29900, 29889, 29900, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 13, 4706, 921, 29881, 353, 4365, 13029, 29918, 9891, 29898, 29916, 29892, 921, 29900, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 29881, 29892, 1583, 29889, 29891, 1450, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29881, 29892, 29871, 29955, 29945, 29889, 29946, 29945, 29896, 29929, 29941, 29955, 29929, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3754, 29920, 29918, 9891, 29898, 1311, 1125, 13, 13, 4706, 921, 353, 29871, 29945, 29900, 29900, 29889, 29900, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 13, 4706, 921, 29881, 353, 269, 2934, 29920, 29918, 9891, 29898, 29916, 29892, 921, 29900, 29892, 1583, 29889, 29895, 29920, 29892, 1583, 29889, 29881, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 29881, 29892, 29871, 29955, 29946, 29889, 29900, 29947, 29929, 29896, 29946, 29947, 29945, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3416, 29918, 29883, 29918, 29900, 29918, 9891, 29898, 1311, 1125, 13, 13, 4706, 278, 941, 29918, 29883, 29918, 29900, 353, 278, 941, 29918, 29883, 29918, 29900, 29918, 9891, 29898, 1311, 29889, 29891, 1450, 29892, 1583, 29889, 312, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 3416, 29918, 29883, 29918, 29900, 29892, 29871, 29900, 29889, 29900, 29947, 29900, 29947, 29945, 29906, 29906, 29929, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29893, 1296, 29918, 10289, 29918, 9891, 29918, 28502, 29918, 29893, 1296, 29898, 1311, 1125, 13, 4706, 921, 353, 29871, 29906, 29900, 29900, 29889, 13, 4706, 278, 941, 29918, 29883, 29918, 29900, 353, 29871, 29900, 29889, 29900, 29947, 29900, 29947, 13, 4706, 4365, 13029, 353, 29871, 29941, 29953, 29889, 13, 4706, 269, 2934, 29920, 353, 29871, 29946, 29941, 29889, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 13, 13, 4706, 19471, 353, 281, 1296, 29918, 10289, 29918, 9891, 29898, 29916, 29892, 1583, 29889, 29881, 29892, 278, 941, 29918, 29883, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29891, 1450, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 29895, 29920, 29892, 1583, 29889, 312, 29892, 4365, 13029, 29892, 269, 2934, 29920, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 4181, 29892, 29871, 29896, 29953, 29889, 29896, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29893, 1296, 29918, 10289, 29918, 9891, 29918, 15641, 29918, 29893, 1296, 29898, 1311, 1125, 13, 13, 4706, 921, 353, 29871, 29945, 29900, 29900, 29889, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 13, 4706, 278, 941, 29918, 29883, 29918, 29900, 353, 29871, 29900, 29889, 29900, 29947, 29900, 29947, 13, 4706, 4365, 13029, 353, 29871, 29955, 29945, 29889, 29946, 29945, 29896, 29929, 29941, 29955, 29929, 29946, 13, 4706, 269, 2934, 29920, 353, 29871, 29955, 29946, 29889, 29900, 29947, 29929, 29896, 29946, 29947, 29945, 29955, 13, 13, 4706, 19471, 353, 281, 1296, 29918, 10289, 29918, 9891, 29898, 29916, 29892, 1583, 29889, 29881, 29892, 278, 941, 29918, 29883, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29891, 1450, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 29895, 29920, 29892, 1583, 29889, 312, 29892, 4365, 13029, 29892, 269, 2934, 29920, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 4181, 29892, 29871, 29941, 29941, 29889, 29947, 29929, 29941, 29945, 29906, 29945, 29953, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29953, 29898, 1311, 1125, 13, 13, 4706, 270, 353, 29871, 29896, 29906, 29953, 29889, 29946, 13, 4706, 343, 1450, 353, 7442, 29889, 1631, 847, 29871, 29953, 29889, 13, 4706, 413, 29891, 353, 29871, 29900, 29889, 29906, 29945, 13, 4706, 413, 29920, 353, 29871, 29900, 29889, 29906, 13, 13, 4706, 4365, 13029, 353, 29871, 29955, 29945, 29889, 29900, 13, 4706, 269, 2934, 29920, 353, 29871, 29955, 29946, 29889, 29900, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29947, 13, 4706, 503, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 503, 29882, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 4706, 343, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 19471, 353, 29871, 29941, 29941, 29889, 29947, 29929, 13, 4706, 921, 353, 29871, 29945, 29900, 29900, 29889, 13, 13, 4706, 628, 29873, 388, 353, 343, 29899, 4181, 13, 4706, 628, 29873, 834, 353, 503, 29899, 17599, 13, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 274, 29873, 29892, 343, 1450, 29892, 4365, 13029, 29892, 269, 2934, 29920, 29892, 270, 29892, 29871, 29906, 29900, 29896, 29953, 29892, 1583, 29889, 3459, 29892, 921, 29892, 591, 29883, 29918, 19790, 29892, 4365, 13029, 29892, 269, 2934, 29920, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29896, 29906, 29929, 29941, 29946, 29896, 29900, 29929, 29929, 29929, 29941, 29929, 29946, 29946, 29906, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29946, 29898, 1311, 1125, 13, 13, 4706, 270, 353, 29871, 29896, 29906, 29953, 29889, 29946, 13, 4706, 343, 1450, 353, 7442, 29889, 1631, 847, 29871, 29953, 29889, 13, 4706, 413, 29891, 353, 29871, 29900, 29889, 29906, 29945, 13, 4706, 413, 29920, 353, 29871, 29900, 29889, 29906, 13, 13, 4706, 4365, 13029, 353, 29871, 29955, 29945, 29889, 29900, 13, 4706, 269, 2934, 29920, 353, 29871, 29955, 29946, 29889, 29900, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29947, 13, 4706, 503, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 503, 29882, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 4706, 343, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 19471, 353, 29871, 29941, 29941, 29889, 29947, 29929, 13, 4706, 921, 353, 29871, 29945, 29900, 29900, 29889, 13, 13, 4706, 628, 29873, 388, 353, 343, 29899, 4181, 13, 4706, 628, 29873, 834, 353, 503, 29899, 17599, 13, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 274, 29873, 29892, 343, 1450, 29892, 4365, 13029, 29892, 269, 2934, 29920, 29892, 270, 29892, 29871, 29906, 29900, 29896, 29946, 29892, 1583, 29889, 3459, 29892, 921, 29892, 591, 29883, 29918, 19790, 29892, 4365, 13029, 29892, 269, 2934, 29920, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29941, 29906, 29953, 29946, 29953, 29945, 29929, 29900, 29929, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 28502, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29946, 29918, 5450, 272, 29918, 5479, 29898, 1311, 1125, 13, 13, 4706, 1873, 353, 29871, 29906, 29900, 29896, 29946, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 4706, 921, 29881, 353, 29871, 29941, 29941, 29945, 29889, 29900, 13, 4706, 343, 1450, 353, 29871, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 269, 2934, 29920, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 4365, 13029, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 628, 29873, 388, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 834, 353, 29871, 29945, 29889, 29900, 13, 13, 13, 4706, 921, 353, 29871, 29900, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 1583, 29889, 312, 29892, 343, 1450, 29892, 4365, 13029, 29918, 29900, 29892, 269, 2934, 29920, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29881, 29892, 921, 29892, 921, 29881, 29892, 4365, 13029, 29918, 29881, 29892, 13, 462, 462, 29871, 269, 2934, 29920, 29918, 29881, 29892, 1873, 29892, 1583, 29889, 3459, 29892, 921, 29892, 4365, 13029, 29918, 1028, 949, 29892, 269, 2934, 29920, 29918, 1028, 949, 29892, 591, 29883, 29918, 19790, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29946, 29947, 29896, 29946, 29945, 29929, 29906, 29953, 29941, 29900, 29945, 29900, 29941, 29900, 29941, 29945, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 28502, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29946, 29918, 6563, 3881, 29918, 5479, 29898, 1311, 1125, 13, 13, 4706, 1873, 353, 29871, 29906, 29900, 29896, 29946, 13, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 4706, 921, 29881, 353, 29871, 29941, 29941, 29945, 29889, 29900, 13, 4706, 343, 1450, 353, 29871, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 269, 2934, 29920, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 4365, 13029, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 628, 29873, 388, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 834, 353, 29871, 29945, 29889, 29900, 13, 13, 4706, 921, 353, 29871, 29906, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 1583, 29889, 312, 29892, 343, 1450, 29892, 4365, 13029, 29918, 29900, 29892, 269, 2934, 29920, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29881, 29892, 921, 29892, 921, 29881, 29892, 4365, 13029, 29918, 29881, 29892, 13, 462, 462, 9651, 269, 2934, 29920, 29918, 29881, 29892, 1873, 29892, 1583, 29889, 3459, 29892, 921, 29892, 4365, 13029, 29918, 1028, 949, 29892, 269, 2934, 29920, 29918, 1028, 949, 29892, 591, 29883, 29918, 19790, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29906, 29955, 29929, 29946, 29896, 29929, 29929, 29906, 29941, 29946, 29953, 29906, 29946, 29929, 29953, 29953, 29941, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 28502, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29946, 29918, 29916, 29900, 29918, 5479, 29898, 1311, 1125, 13, 4706, 1873, 353, 29871, 29906, 29900, 29896, 29946, 13, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 4706, 921, 29881, 353, 29871, 29941, 29941, 29945, 29889, 29900, 13, 4706, 343, 1450, 353, 29871, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 269, 2934, 29920, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 4365, 13029, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 628, 29873, 388, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 834, 353, 29871, 29945, 29889, 29900, 13, 13, 13, 4706, 921, 353, 29871, 29941, 29945, 29941, 29889, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 1583, 29889, 312, 29892, 343, 1450, 29892, 4365, 13029, 29918, 29900, 29892, 269, 2934, 29920, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29881, 29892, 921, 29892, 921, 29881, 29892, 13, 462, 462, 965, 4365, 13029, 29918, 29881, 29892, 13, 462, 462, 965, 269, 2934, 29920, 29918, 29881, 29892, 1873, 29892, 1583, 29889, 3459, 29892, 921, 29892, 4365, 13029, 29918, 1028, 949, 29892, 269, 2934, 29920, 29918, 1028, 949, 29892, 591, 29883, 29918, 19790, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29946, 29900, 29896, 29941, 29906, 29929, 29945, 29946, 29929, 29947, 29946, 29906, 29953, 29947, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 28502, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29953, 29918, 5450, 272, 29918, 5479, 29898, 1311, 1125, 13, 4706, 1873, 353, 29871, 29906, 29900, 29896, 29953, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 4706, 921, 29881, 353, 29871, 29941, 29941, 29945, 29889, 29900, 13, 4706, 343, 1450, 353, 7442, 29889, 1631, 29914, 29953, 29889, 13, 4706, 4365, 13029, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 269, 2934, 29920, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 4365, 13029, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 628, 29873, 388, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 834, 353, 29871, 29945, 29889, 29900, 13, 13, 4706, 921, 353, 29871, 29900, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 1583, 29889, 312, 29892, 343, 1450, 29892, 4365, 13029, 29918, 29900, 29892, 269, 2934, 29920, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29881, 29892, 921, 29892, 921, 29881, 29892, 13, 462, 462, 965, 4365, 13029, 29918, 29881, 29892, 13, 462, 462, 965, 269, 2934, 29920, 29918, 29881, 29892, 1873, 29892, 1583, 29889, 3459, 29892, 921, 29892, 4365, 13029, 29918, 1028, 949, 29892, 269, 2934, 29920, 29918, 1028, 949, 29892, 591, 29883, 29918, 19790, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29945, 29941, 29896, 29929, 29955, 29955, 29941, 29941, 29946, 29900, 29900, 29929, 29947, 29946, 29945, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 28502, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29953, 29918, 6563, 3881, 29918, 5479, 29898, 1311, 1125, 13, 4706, 1873, 353, 29871, 29906, 29900, 29896, 29953, 13, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 4706, 921, 29881, 353, 29871, 29941, 29941, 29945, 29889, 29900, 13, 4706, 343, 1450, 353, 7442, 29889, 1631, 29914, 29953, 29889, 13, 4706, 4365, 13029, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 269, 2934, 29920, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 4365, 13029, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 628, 29873, 388, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 834, 353, 29871, 29945, 29889, 29900, 13, 13, 4706, 921, 353, 29871, 29906, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 1583, 29889, 312, 29892, 343, 1450, 29892, 4365, 13029, 29918, 29900, 29892, 269, 2934, 29920, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29881, 29892, 921, 29892, 921, 29881, 29892, 13, 462, 462, 965, 4365, 13029, 29918, 29881, 29892, 13, 462, 462, 965, 269, 2934, 29920, 29918, 29881, 29892, 1873, 29892, 1583, 29889, 3459, 29892, 921, 29892, 4365, 13029, 29918, 1028, 949, 29892, 269, 2934, 29920, 29918, 1028, 949, 29892, 591, 29883, 29918, 19790, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29941, 29947, 29947, 29955, 29906, 29941, 29955, 29946, 29945, 29955, 29953, 29906, 29955, 29941, 29929, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 28502, 29918, 29881, 2152, 485, 29918, 9891, 29918, 29906, 29900, 29896, 29953, 29918, 29916, 29900, 29918, 5479, 29898, 1311, 1125, 13, 4706, 1873, 353, 29871, 29906, 29900, 29896, 29953, 13, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 4706, 921, 29881, 353, 29871, 29941, 29941, 29945, 29889, 29900, 13, 4706, 343, 1450, 353, 7442, 29889, 1631, 29914, 29953, 29889, 13, 4706, 4365, 13029, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 269, 2934, 29920, 29918, 1028, 949, 353, 29871, 29946, 29945, 29889, 13, 4706, 4365, 13029, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29900, 353, 29871, 29945, 29900, 29889, 29900, 13, 4706, 4365, 13029, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 269, 2934, 29920, 29918, 29881, 353, 29871, 29946, 29900, 29889, 29900, 13, 4706, 591, 29883, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 628, 29873, 388, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 628, 29873, 834, 353, 29871, 29945, 29889, 29900, 13, 13, 4706, 921, 353, 29871, 29941, 29945, 29941, 29889, 13, 4706, 628, 29873, 485, 353, 628, 29873, 485, 29918, 28502, 29918, 29893, 1296, 29918, 1915, 29918, 9891, 29898, 29881, 2152, 388, 29892, 628, 29873, 834, 29892, 1583, 29889, 312, 29892, 343, 1450, 29892, 4365, 13029, 29918, 29900, 29892, 269, 2934, 29920, 29918, 29900, 29892, 921, 29900, 29892, 1583, 29889, 29881, 29892, 921, 29892, 921, 29881, 29892, 13, 462, 462, 965, 4365, 13029, 29918, 29881, 29892, 13, 462, 462, 965, 269, 2934, 29920, 29918, 29881, 29892, 1873, 29892, 1583, 29889, 3459, 29892, 921, 29892, 4365, 13029, 29918, 1028, 949, 29892, 269, 2934, 29920, 29918, 1028, 949, 29892, 591, 29883, 29918, 19790, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29881, 2152, 485, 29892, 29871, 29900, 29889, 29900, 29906, 29955, 29929, 29896, 29941, 29946, 29955, 29945, 29900, 29955, 29945, 29941, 29955, 29900, 29906, 29941, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29893, 1296, 29918, 510, 2109, 362, 29918, 9891, 29918, 29931, 790, 13533, 29896, 29929, 29955, 29929, 29898, 1311, 1125, 13, 13, 4706, 11951, 353, 29871, 29955, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 29871, 29900, 29889, 29900, 29945, 13, 4706, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 353, 29871, 29900, 13, 4706, 822, 293, 277, 29918, 2083, 353, 29871, 29906, 29889, 29900, 13, 13, 4706, 716, 29918, 2083, 353, 281, 1296, 29918, 510, 2109, 362, 29918, 9891, 29898, 1311, 29889, 14800, 29918, 19322, 29892, 11951, 29892, 628, 29873, 485, 29892, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 822, 293, 277, 29918, 2083, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1482, 29918, 2083, 29892, 29871, 29906, 29889, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29893, 1296, 29918, 510, 2109, 362, 29918, 9891, 29918, 29968, 2454, 29896, 29929, 29947, 29953, 29898, 1311, 1125, 13, 13, 4706, 11951, 353, 29871, 29955, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 29871, 29900, 29889, 29900, 29945, 13, 4706, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 353, 29871, 29906, 13, 4706, 822, 293, 277, 29918, 2083, 353, 29871, 29906, 29889, 29900, 13, 13, 4706, 716, 29918, 2083, 353, 281, 1296, 29918, 510, 2109, 362, 29918, 9891, 29898, 1311, 29889, 14800, 29918, 19322, 29892, 11951, 29892, 628, 29873, 485, 29892, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 822, 293, 277, 29918, 2083, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1482, 29918, 2083, 29892, 29871, 29906, 29889, 29900, 29941, 29929, 29953, 29900, 29955, 29947, 29900, 29945, 29946, 29941, 29955, 29896, 29896, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29893, 1296, 29918, 510, 2109, 362, 29918, 9891, 29918, 29963, 449, 5223, 294, 29896, 29929, 29929, 29900, 29898, 1311, 1125, 13, 13, 4706, 11951, 353, 29871, 29955, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 29871, 29900, 29889, 29900, 29945, 13, 4706, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 353, 29871, 29941, 13, 4706, 822, 293, 277, 29918, 2083, 353, 29871, 29906, 29889, 29900, 13, 13, 4706, 716, 29918, 2083, 353, 281, 1296, 29918, 510, 2109, 362, 29918, 9891, 29898, 1311, 29889, 14800, 29918, 19322, 29892, 11951, 29892, 628, 29873, 485, 29892, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 822, 293, 277, 29918, 2083, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1482, 29918, 2083, 29892, 29871, 29906, 29889, 29900, 29941, 29900, 29941, 29929, 29946, 29900, 29945, 29900, 29946, 29906, 29946, 29953, 29929, 29945, 29941, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29893, 1296, 29918, 510, 2109, 362, 29918, 9891, 29918, 29940, 29875, 388, 361, 279, 29906, 29900, 29896, 29953, 29898, 1311, 1125, 13, 13, 4706, 11951, 353, 29871, 29955, 29889, 29900, 13, 4706, 628, 29873, 485, 353, 29871, 29900, 29889, 29900, 29945, 13, 4706, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 353, 29871, 29896, 13, 4706, 822, 293, 277, 29918, 2083, 353, 29871, 29906, 29889, 29900, 13, 13, 4706, 716, 29918, 2083, 353, 281, 1296, 29918, 510, 2109, 362, 29918, 9891, 29898, 1311, 29889, 14800, 29918, 19322, 29892, 11951, 29892, 628, 29873, 485, 29892, 281, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 822, 293, 277, 29918, 2083, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1482, 29918, 2083, 29892, 29871, 29906, 29889, 29941, 29945, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14800, 29918, 11360, 279, 29918, 9891, 29898, 1311, 1125, 13, 13, 4706, 503, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 8534, 353, 29871, 29906, 29889, 29900, 13, 4706, 503, 29878, 353, 29871, 29947, 29900, 29889, 29900, 13, 4706, 282, 1039, 353, 29871, 29900, 29889, 29896, 29945, 13, 13, 4706, 8805, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 353, 8805, 29918, 11360, 279, 29918, 9891, 29898, 29920, 29892, 1583, 29889, 14800, 29918, 19322, 29892, 503, 29878, 29892, 8534, 29892, 282, 1039, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 14800, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 29892, 29871, 29947, 29889, 29896, 29946, 29953, 29900, 29955, 29896, 29896, 29896, 29929, 29929, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 29895, 29918, 8508, 29918, 9891, 29898, 1311, 1125, 13, 13, 4706, 19538, 29918, 504, 353, 29871, 29900, 29889, 29896, 13, 13, 4706, 413, 8508, 353, 413, 29918, 8508, 29918, 9891, 29898, 2034, 29918, 504, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29895, 8508, 29892, 29871, 29900, 29889, 29900, 29946, 29906, 29900, 29946, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 312, 29918, 517, 29918, 1165, 616, 29918, 513, 29918, 9891, 29918, 8945, 29918, 312, 29898, 1311, 1125, 13, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29947, 29946, 13, 4706, 4853, 616, 29918, 19910, 428, 353, 274, 29873, 29918, 517, 29918, 1165, 616, 29918, 513, 29918, 9891, 29898, 312, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1165, 616, 29918, 19910, 428, 29892, 29871, 29900, 29889, 29941, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 312, 29918, 517, 29918, 1165, 616, 29918, 513, 29918, 9891, 29918, 9812, 29918, 312, 29898, 1311, 1125, 13, 13, 4706, 274, 29873, 353, 29871, 29900, 29889, 29929, 29955, 13, 4706, 4853, 616, 29918, 19910, 428, 353, 274, 29873, 29918, 517, 29918, 1165, 616, 29918, 513, 29918, 9891, 29898, 312, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1165, 616, 29918, 19910, 428, 29892, 29871, 29900, 29889, 29946, 29896, 29896, 29929, 29929, 29945, 29955, 29906, 29946, 29929, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3844, 6983, 29918, 3317, 29898, 1311, 1125, 13, 13, 4706, 921, 353, 29871, 29896, 29906, 29889, 13, 4706, 343, 353, 29871, 29896, 29941, 29889, 13, 4706, 269, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 269, 3317, 29896, 353, 10597, 29918, 3317, 29898, 29879, 29892, 921, 29892, 343, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29879, 3317, 29896, 29892, 29871, 29896, 29941, 29889, 29900, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 957, 6984, 29918, 6203, 29918, 9891, 29918, 5450, 272, 29918, 497, 29918, 262, 29918, 29893, 1296, 29898, 1311, 1125, 13, 13, 4706, 7013, 26062, 29891, 353, 29871, 29945, 29900, 29889, 13, 4706, 7013, 26062, 29920, 353, 29871, 29929, 29900, 29889, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 5064, 29918, 29891, 353, 29871, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 5064, 29918, 29920, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 29881, 2829, 1308, 353, 29871, 29906, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 957, 6984, 353, 25457, 29918, 6203, 29918, 9891, 29898, 29873, 9265, 457, 29891, 29892, 7013, 26062, 29920, 29892, 5731, 272, 29918, 29881, 2829, 1308, 29892, 281, 1296, 29918, 5064, 29918, 29891, 29892, 281, 1296, 29918, 5064, 29918, 29920, 29892, 281, 1296, 29918, 29881, 2829, 1308, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29893, 1296, 29918, 957, 6984, 29892, 7442, 29889, 1631, 29930, 5450, 272, 29918, 29881, 2829, 1308, 1068, 29906, 29914, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 957, 6984, 29918, 6203, 29918, 9891, 29918, 5450, 272, 29918, 497, 29918, 262, 29918, 29893, 1296, 29918, 546, 3647, 29918, 957, 6984, 29898, 1311, 1125, 13, 4706, 7013, 26062, 29891, 353, 29871, 29900, 29889, 13, 4706, 7013, 26062, 29920, 353, 29871, 29929, 29900, 29889, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 5064, 29918, 29891, 353, 29871, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 5064, 29918, 29920, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 29881, 2829, 1308, 353, 29871, 29906, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 957, 6984, 353, 25457, 29918, 6203, 29918, 9891, 29898, 29873, 9265, 457, 29891, 29892, 7013, 26062, 29920, 29892, 5731, 272, 29918, 29881, 2829, 1308, 29892, 281, 1296, 29918, 5064, 29918, 29891, 29892, 281, 1296, 29918, 5064, 29918, 29920, 29892, 13, 462, 462, 308, 281, 1296, 29918, 29881, 2829, 1308, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29893, 1296, 29918, 957, 6984, 29892, 7442, 29889, 1631, 334, 5731, 272, 29918, 29881, 2829, 1308, 3579, 29871, 29906, 847, 29871, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 957, 6984, 29918, 6203, 29918, 9891, 29918, 29893, 1296, 29918, 497, 29918, 262, 29918, 5450, 272, 29898, 1311, 1125, 13, 13, 4706, 7013, 26062, 29891, 353, 29871, 29945, 29900, 29889, 13, 4706, 7013, 26062, 29920, 353, 29871, 29929, 29900, 29889, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29906, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 5064, 29918, 29891, 353, 29871, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 5064, 29918, 29920, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 29881, 2829, 1308, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 957, 6984, 353, 25457, 29918, 6203, 29918, 9891, 29898, 29873, 9265, 457, 29891, 29892, 7013, 26062, 29920, 29892, 5731, 272, 29918, 29881, 2829, 1308, 29892, 281, 1296, 29918, 5064, 29918, 29891, 29892, 281, 1296, 29918, 5064, 29918, 29920, 29892, 281, 1296, 29918, 29881, 2829, 1308, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29893, 1296, 29918, 957, 6984, 29892, 7442, 29889, 1631, 29930, 29893, 1296, 29918, 29881, 2829, 1308, 1068, 29906, 29914, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 957, 6984, 29918, 6203, 29918, 9891, 29918, 29893, 1296, 29918, 497, 29918, 262, 29918, 5450, 272, 29918, 546, 3647, 29918, 957, 6984, 29898, 1311, 1125, 13, 13, 4706, 7013, 26062, 29891, 353, 29871, 29900, 29889, 13, 4706, 7013, 26062, 29920, 353, 29871, 29929, 29900, 29889, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29906, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 5064, 29918, 29891, 353, 29871, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 5064, 29918, 29920, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 29881, 2829, 1308, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 957, 6984, 353, 25457, 29918, 6203, 29918, 9891, 29898, 29873, 9265, 457, 29891, 29892, 7013, 26062, 29920, 29892, 5731, 272, 29918, 29881, 2829, 1308, 29892, 281, 1296, 29918, 5064, 29918, 29891, 29892, 281, 1296, 29918, 5064, 29918, 29920, 29892, 281, 1296, 29918, 29881, 2829, 1308, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29893, 1296, 29918, 957, 6984, 29892, 7442, 29889, 1631, 29930, 29893, 1296, 29918, 29881, 2829, 1308, 1068, 29906, 29914, 29946, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 957, 6984, 29918, 6203, 29918, 9891, 29918, 1217, 29918, 957, 6984, 29898, 1311, 1125, 13, 13, 4706, 7013, 26062, 29891, 353, 29871, 29900, 29889, 13, 4706, 7013, 26062, 29920, 353, 29871, 29929, 29900, 29889, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 5064, 29918, 29891, 353, 29871, 29896, 29900, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 5064, 29918, 29920, 353, 29871, 29929, 29900, 29889, 29900, 13, 4706, 281, 1296, 29918, 29881, 2829, 1308, 353, 29871, 29896, 29900, 29900, 29889, 13, 4706, 281, 1296, 29918, 957, 6984, 353, 25457, 29918, 6203, 29918, 9891, 29898, 29873, 9265, 457, 29891, 29892, 7013, 26062, 29920, 29892, 5731, 272, 29918, 29881, 2829, 1308, 29892, 281, 1296, 29918, 5064, 29918, 29891, 29892, 281, 1296, 29918, 5064, 29918, 29920, 29892, 281, 1296, 29918, 29881, 2829, 1308, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29893, 1296, 29918, 957, 6984, 29892, 29871, 29900, 29889, 29900, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 396, 4986, 3970, 788, 6987, 363, 7687, 25457, 13, 13, 1990, 1243, 29918, 23959, 29918, 2034, 29918, 9891, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 25027, 261, 749, 353, 29871, 29896, 29923, 29899, 29906, 13, 4706, 1583, 29889, 29891, 1450, 353, 29871, 29900, 29889, 29900, 13, 4706, 1583, 29889, 312, 353, 29871, 29900, 29889, 29947, 13, 4706, 1583, 29889, 2312, 353, 29871, 29906, 29889, 29941, 29906, 13, 4706, 1583, 29889, 3571, 353, 29871, 29900, 29889, 29896, 29945, 29946, 13, 4706, 1583, 29889, 2034, 353, 29871, 29900, 29889, 29896, 13, 4706, 1583, 29889, 3459, 353, 29871, 29900, 29889, 29900, 29906, 29906, 13, 4706, 1583, 29889, 29895, 29920, 353, 29871, 29900, 29889, 29900, 29906, 29906, 13, 4706, 1583, 29889, 14800, 29918, 19322, 353, 29871, 29947, 29889, 29900, 13, 13, 4706, 1583, 29889, 24301, 353, 29871, 29900, 29889, 29900, 29955, 29955, 13, 4706, 1583, 29889, 29916, 353, 29871, 29945, 29953, 29900, 29889, 13, 4706, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 353, 29871, 29947, 29900, 29889, 13, 4706, 1583, 29889, 29881, 2152, 388, 353, 29871, 29900, 29889, 13, 4706, 1583, 29889, 29893, 1296, 29918, 3545, 353, 29871, 29955, 29900, 29889, 13, 4706, 1583, 29889, 29873, 9265, 457, 29918, 3545, 353, 29871, 29955, 29900, 29889, 13, 4706, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 353, 29871, 29955, 29900, 29900, 29889, 13, 13, 13, 1678, 822, 1243, 29918, 23959, 29918, 2034, 29918, 9891, 29918, 29940, 29875, 388, 361, 279, 29918, 29906, 29900, 29896, 29953, 29918, 3317, 29918, 29906, 299, 29918, 29873, 9265, 29898, 1311, 1125, 13, 13, 4706, 323, 29902, 29918, 15807, 362, 29918, 5696, 353, 29871, 29946, 13, 4706, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 353, 29871, 29900, 29889, 29900, 13, 4706, 323, 29902, 29918, 22992, 29918, 262, 353, 29871, 29900, 29889, 29900, 13, 4706, 323, 29902, 29918, 504, 353, 29871, 29900, 29889, 29900, 29955, 29955, 13, 13, 4706, 19538, 29918, 6203, 29918, 3605, 601, 29892, 19538, 29918, 22992, 353, 2715, 29918, 2034, 29918, 9891, 29898, 1311, 29889, 24301, 29892, 1583, 29889, 312, 29892, 1583, 29889, 29916, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 13, 462, 462, 1583, 29889, 29881, 2152, 388, 29892, 1583, 29889, 29893, 1296, 29918, 3545, 29892, 1583, 29889, 29873, 9265, 457, 29918, 3545, 29892, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 29892, 323, 29902, 29918, 504, 29892, 13, 462, 462, 323, 29902, 29918, 15807, 362, 29918, 5696, 29892, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 29892, 323, 29902, 29918, 22992, 29918, 262, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2034, 29918, 22992, 29892, 29871, 29900, 29889, 29896, 29946, 29955, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 23959, 29918, 2034, 29918, 9891, 29918, 29940, 29875, 388, 361, 279, 29918, 29906, 29900, 29896, 29953, 29918, 3317, 29918, 29941, 5499, 29918, 29873, 9265, 29898, 1311, 1125, 13, 13, 4706, 323, 29902, 29918, 15807, 362, 29918, 5696, 353, 29871, 29946, 13, 4706, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 353, 29871, 29900, 29889, 29900, 13, 4706, 323, 29902, 29918, 22992, 29918, 262, 353, 29871, 29900, 29889, 29900, 13, 4706, 323, 29902, 29918, 504, 353, 29871, 29900, 29889, 29896, 29946, 29955, 29953, 13, 13, 4706, 19538, 29918, 6203, 29918, 3605, 601, 29892, 19538, 29918, 22992, 353, 2715, 29918, 2034, 29918, 9891, 29898, 1311, 29889, 24301, 29892, 1583, 29889, 312, 29892, 1583, 29889, 29916, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 13, 462, 462, 1583, 29889, 29881, 2152, 388, 29892, 1583, 29889, 29893, 1296, 29918, 3545, 29892, 1583, 29889, 29873, 9265, 457, 29918, 3545, 29892, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 29892, 323, 29902, 29918, 504, 29892, 13, 462, 462, 323, 29902, 29918, 15807, 362, 29918, 5696, 29892, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 29892, 323, 29902, 29918, 22992, 29918, 262, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2034, 29918, 22992, 29892, 29871, 29900, 29889, 29896, 29946, 29955, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 23959, 29918, 2034, 29918, 9891, 29918, 29940, 29875, 388, 361, 279, 29918, 29906, 29900, 29896, 29953, 29918, 3844, 6983, 3317, 29918, 29906, 299, 29918, 29873, 9265, 29898, 1311, 1125, 13, 13, 4706, 323, 29902, 29918, 15807, 362, 29918, 5696, 353, 29871, 29945, 13, 4706, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 353, 29871, 29900, 29889, 29900, 13, 4706, 323, 29902, 29918, 22992, 29918, 262, 353, 29871, 29900, 29889, 29900, 13, 4706, 323, 29902, 29918, 504, 353, 29871, 29900, 29889, 29900, 29955, 29955, 13, 13, 4706, 19538, 29918, 6203, 29918, 3605, 601, 29892, 19538, 29918, 22992, 353, 2715, 29918, 2034, 29918, 9891, 29898, 1311, 29889, 24301, 29892, 1583, 29889, 312, 29892, 1583, 29889, 29916, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 13, 462, 462, 795, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 13, 462, 462, 795, 1583, 29889, 29881, 2152, 388, 29892, 1583, 29889, 29893, 1296, 29918, 3545, 29892, 1583, 29889, 29873, 9265, 457, 29918, 3545, 29892, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 29892, 13, 462, 462, 795, 323, 29902, 29918, 504, 29892, 13, 462, 462, 795, 323, 29902, 29918, 15807, 362, 29918, 5696, 29892, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 29892, 323, 29902, 29918, 22992, 29918, 262, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2034, 29918, 22992, 29892, 29871, 29900, 29889, 29896, 29946, 29955, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 23959, 29918, 2034, 29918, 9891, 29918, 29940, 29875, 388, 361, 279, 29918, 29906, 29900, 29896, 29953, 29918, 3844, 6983, 3317, 29918, 29941, 5499, 29918, 29873, 9265, 29898, 1311, 1125, 13, 13, 4706, 323, 29902, 29918, 15807, 362, 29918, 5696, 353, 29871, 29945, 13, 4706, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 353, 869, 29900, 29945, 13, 4706, 323, 29902, 29918, 22992, 29918, 262, 353, 29871, 29900, 29889, 29900, 29955, 29955, 13, 4706, 323, 29902, 29918, 504, 353, 29871, 29900, 29889, 29896, 29946, 29955, 29953, 13, 13, 4706, 19538, 29918, 6203, 29918, 3605, 601, 29892, 19538, 29918, 22992, 353, 2715, 29918, 2034, 29918, 9891, 29898, 1311, 29889, 24301, 29892, 1583, 29889, 312, 29892, 1583, 29889, 29916, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 13, 462, 462, 795, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 29892, 13, 462, 462, 795, 1583, 29889, 29881, 2152, 388, 29892, 1583, 29889, 29893, 1296, 29918, 3545, 29892, 1583, 29889, 29873, 9265, 457, 29918, 3545, 29892, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 29892, 13, 462, 462, 795, 323, 29902, 29918, 504, 29892, 13, 462, 462, 795, 323, 29902, 29918, 15807, 362, 29918, 5696, 29892, 323, 29902, 29918, 6203, 29918, 3605, 601, 29918, 262, 29892, 323, 29902, 29918, 22992, 29918, 262, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2034, 29918, 22992, 29892, 29871, 29900, 29889, 29896, 29946, 29955, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1990, 1243, 29918, 3149, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 25027, 261, 749, 353, 29871, 29896, 29923, 29899, 29906, 13, 4706, 1583, 29889, 29873, 9265, 29902, 353, 448, 29896, 13, 4706, 1583, 29889, 29893, 1296, 29918, 510, 2109, 362, 29918, 5696, 353, 29871, 29896, 13, 4706, 1583, 29889, 29893, 1296, 29918, 4299, 29918, 3259, 353, 29871, 29906, 29900, 29896, 29953, 13, 4706, 1583, 29889, 24582, 29918, 29916, 29918, 13140, 353, 7442, 29889, 2378, 4197, 29900, 2314, 13, 4706, 1583, 29889, 5450, 272, 29928, 2829, 1308, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29896, 29945, 2314, 13, 4706, 1583, 29889, 3149, 29990, 353, 1583, 29889, 5450, 272, 29928, 2829, 1308, 29930, 29945, 29889, 13, 4706, 1583, 29889, 3149, 29979, 353, 29871, 29900, 29889, 29906, 29946, 29930, 1311, 29889, 5450, 272, 29928, 2829, 1308, 13, 4706, 1583, 29889, 3149, 29999, 353, 29871, 29900, 29889, 29896, 29906, 29945, 13, 4706, 1583, 29889, 25027, 353, 29871, 29896, 29923, 29899, 29896, 29906, 13, 4706, 1583, 29889, 2312, 353, 29871, 29906, 29889, 29941, 29906, 13, 4706, 1583, 29889, 3571, 353, 29871, 29900, 29889, 29896, 29945, 29946, 13, 4706, 1583, 29889, 13338, 17533, 499, 666, 4926, 353, 29871, 29896, 29889, 29900, 13, 4706, 1583, 29889, 29893, 687, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 4706, 1583, 29889, 14800, 29918, 19322, 353, 29871, 29946, 29889, 29947, 29947, 13, 4706, 1583, 29889, 29920, 29918, 999, 353, 29871, 29900, 29889, 29896, 29906, 29945, 13, 4706, 1583, 29889, 29920, 29918, 29900, 353, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29906, 29906, 13, 4706, 1583, 29889, 11360, 279, 29918, 4548, 353, 29871, 29900, 29889, 29896, 13, 4706, 1583, 29889, 29873, 9265, 457, 29990, 29893, 353, 7442, 29889, 2378, 4197, 29900, 2314, 13, 4706, 1583, 29889, 29873, 9265, 457, 29979, 29893, 353, 7442, 29889, 2378, 4197, 29900, 2314, 13, 4706, 1583, 29889, 29873, 9265, 457, 29999, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29896, 29906, 29945, 2314, 13, 4706, 1583, 29889, 29891, 1450, 353, 7442, 29889, 2378, 4197, 29906, 29900, 29889, 334, 7442, 29889, 1631, 847, 29871, 29896, 29947, 29900, 29889, 29900, 2314, 13, 4706, 1583, 29889, 14554, 29963, 295, 25245, 353, 7442, 29889, 2378, 4197, 1311, 29889, 14800, 29918, 19322, 2314, 13, 4706, 1583, 29889, 29907, 29873, 29918, 2997, 353, 29871, 29900, 29889, 29955, 29941, 29953, 29896, 29906, 29900, 29900, 29945, 29953, 29947, 29947, 29929, 29955, 29900, 29906, 29953, 334, 7442, 29889, 2873, 29918, 4561, 29898, 1311, 29889, 29873, 9265, 457, 29990, 29893, 29897, 29871, 396, 7442, 29889, 2378, 4197, 29900, 29889, 29955, 29941, 29955, 29946, 29946, 29947, 29896, 29929, 29941, 29953, 29947, 29941, 29945, 29941, 29955, 29953, 2314, 13, 4706, 1583, 29889, 29911, 3112, 332, 5824, 353, 29871, 29900, 29889, 29900, 29906, 29945, 334, 7442, 29889, 2873, 29918, 4561, 29898, 1311, 29889, 29873, 9265, 457, 29990, 29893, 29897, 29871, 396, 334, 9302, 29889, 2378, 4197, 29900, 29889, 29900, 29896, 2314, 396, 9302, 29889, 2378, 4197, 29900, 29889, 29900, 29900, 29896, 2314, 396, 4986, 3970, 1423, 1298, 12885, 6987, 322, 19538, 1881, 13, 4706, 1583, 29889, 3459, 29918, 2997, 353, 29871, 29900, 29889, 29900, 29906, 29906, 29871, 396, 7442, 29889, 2378, 4197, 29900, 29889, 29941, 29947, 29941, 29955, 29930, 29911, 3112, 332, 5824, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29955, 29947, 2314, 13, 4706, 1583, 29889, 29895, 29920, 29918, 2997, 353, 29871, 29900, 29889, 29900, 29906, 29906, 29871, 396, 7442, 29889, 2378, 4197, 29900, 29889, 29941, 29947, 29941, 29955, 29930, 29911, 3112, 332, 5824, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29955, 29947, 2314, 13, 13, 13, 1678, 822, 1243, 29918, 3149, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 29898, 1311, 1125, 13, 13, 9651, 1298, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 353, 1298, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 29918, 9891, 29898, 1311, 29889, 29873, 9265, 29902, 29892, 1583, 29889, 29893, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 1583, 29889, 29893, 1296, 29918, 4299, 29918, 3259, 29892, 13, 462, 462, 462, 418, 1583, 29889, 24582, 29918, 29916, 29918, 13140, 29892, 1583, 29889, 3149, 29990, 29892, 1583, 29889, 3149, 29979, 29892, 1583, 29889, 3149, 29999, 29892, 1583, 29889, 25027, 29892, 13, 462, 462, 462, 418, 1583, 29889, 2312, 29892, 1583, 29889, 3571, 29892, 1583, 29889, 13338, 17533, 499, 666, 4926, 29892, 1583, 29889, 29893, 687, 29918, 19790, 29892, 13, 462, 462, 462, 418, 1583, 29889, 14800, 29918, 19322, 29892, 1583, 29889, 29920, 29918, 999, 29892, 1583, 29889, 29920, 29918, 29900, 29892, 1583, 29889, 11360, 279, 29918, 4548, 29892, 1583, 29889, 29873, 9265, 457, 29990, 29893, 29892, 13, 462, 462, 462, 418, 1583, 29889, 29873, 9265, 457, 29979, 29893, 29892, 1583, 29889, 29873, 9265, 457, 29999, 29892, 1583, 29889, 5450, 272, 29928, 2829, 1308, 29892, 1583, 29889, 29891, 1450, 29892, 13, 462, 462, 462, 418, 1583, 29889, 14554, 29963, 295, 25245, 29892, 1583, 29889, 29907, 29873, 29918, 2997, 29892, 1583, 29889, 29911, 3112, 332, 5824, 29892, 1583, 29889, 3459, 29918, 2997, 29892, 13, 462, 462, 462, 418, 1583, 29889, 29895, 29920, 29918, 2997, 29897, 13, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 3149, 29918, 955, 25245, 29918, 2541, 29918, 11360, 279, 29914, 1311, 29889, 14800, 29918, 19322, 29892, 29871, 29900, 29889, 29946, 29900, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1990, 1243, 29918, 3754, 29918, 1028, 949, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 25027, 261, 749, 353, 29871, 29896, 29923, 29899, 29953, 13, 4706, 1583, 29889, 29881, 353, 29871, 29896, 29906, 29953, 29889, 29946, 13, 4706, 1583, 29889, 29891, 1450, 353, 7442, 29889, 1631, 847, 29871, 29953, 29889, 13, 4706, 1583, 29889, 312, 353, 29871, 29900, 29889, 29947, 13, 4706, 1583, 29889, 2312, 353, 29871, 29906, 29889, 29941, 29906, 13, 4706, 1583, 29889, 3571, 353, 29871, 29900, 29889, 29896, 29945, 29946, 13, 4706, 1583, 29889, 2034, 353, 29871, 29900, 29889, 29896, 13, 4706, 1583, 29889, 3459, 353, 29871, 29900, 29889, 29906, 29945, 13, 4706, 1583, 29889, 29895, 29920, 353, 29871, 29900, 29889, 29906, 13, 13, 4706, 921, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29906, 29900, 29900, 29889, 29900, 29892, 448, 29896, 29900, 29889, 29900, 2314, 13, 4706, 921, 29875, 29918, 29881, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 2314, 13, 4706, 921, 29875, 29918, 29874, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29946, 29945, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 2314, 13, 13, 13, 4706, 269, 2934, 29918, 29900, 353, 29871, 29941, 29947, 29889, 29955, 13, 4706, 269, 2934, 29918, 29881, 353, 29871, 29941, 29946, 29889, 29906, 13, 13, 4706, 921, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 13, 4706, 1583, 29889, 3754, 29918, 1028, 949, 353, 7442, 29889, 3298, 359, 29918, 4561, 29898, 29916, 29897, 13, 4706, 363, 474, 297, 7442, 29889, 279, 927, 29898, 29900, 29892, 921, 29889, 2311, 1125, 13, 9651, 1583, 29889, 3754, 29918, 1028, 949, 29961, 29875, 29962, 353, 269, 2934, 29918, 1028, 949, 29918, 9891, 29898, 29916, 29961, 29875, 1402, 921, 29900, 29892, 1583, 29889, 3459, 29892, 269, 2934, 29918, 29900, 29892, 269, 2934, 29918, 29881, 29892, 921, 29875, 29918, 29874, 29961, 29875, 1402, 921, 29875, 29918, 29881, 29961, 29875, 2314, 13, 13, 4706, 1583, 29889, 15728, 29918, 9902, 353, 7442, 29889, 2378, 4197, 29955, 29945, 29889, 29946, 29945, 29892, 29871, 29896, 29945, 29900, 29889, 29929, 29892, 29871, 29945, 29941, 29946, 29889, 29906, 29892, 29871, 29941, 29953, 29889, 29955, 29946, 29929, 29945, 29955, 29945, 29896, 29892, 29871, 29900, 29889, 29900, 2314, 13, 13, 1678, 822, 1243, 29918, 3754, 29918, 1028, 949, 29918, 9891, 29918, 4878, 29896, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 3754, 29918, 1028, 949, 29961, 29900, 1402, 1583, 29889, 15728, 29918, 9902, 29961, 29900, 1402, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3754, 29918, 1028, 949, 29918, 9891, 29918, 4878, 29906, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 3754, 29918, 1028, 949, 29961, 29896, 1402, 1583, 29889, 15728, 29918, 9902, 29961, 29896, 1402, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3754, 29918, 1028, 949, 29918, 9891, 29918, 4878, 29941, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 3754, 29918, 1028, 949, 29961, 29906, 1402, 1583, 29889, 15728, 29918, 9902, 29961, 29906, 1402, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3754, 29918, 1028, 949, 29918, 9891, 29918, 4878, 29946, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 3754, 29918, 1028, 949, 29961, 29941, 1402, 1583, 29889, 15728, 29918, 9902, 29961, 29941, 1402, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 3754, 29918, 1028, 949, 29918, 9891, 29918, 4878, 29945, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 3754, 29918, 1028, 949, 29961, 29946, 1402, 1583, 29889, 15728, 29918, 9902, 29961, 29946, 1402, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 29937, 770, 1243, 29918, 3754, 29918, 1028, 949, 29918, 517, 29877, 29918, 9812, 29918, 2704, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 29937, 13, 29937, 268, 822, 731, 3373, 29898, 1311, 1125, 13, 29937, 308, 1583, 29889, 25027, 261, 749, 353, 29871, 29896, 29923, 29899, 29953, 13, 29937, 308, 1583, 29889, 29881, 353, 29871, 29896, 29906, 29953, 29889, 29946, 13, 29937, 308, 1583, 29889, 29891, 1450, 353, 7442, 29889, 1631, 847, 29871, 29953, 29889, 13, 29937, 308, 1583, 29889, 312, 353, 29871, 29900, 29889, 29947, 13, 29937, 308, 1583, 29889, 2312, 353, 29871, 29906, 29889, 29941, 29906, 13, 29937, 308, 1583, 29889, 3571, 353, 29871, 29900, 29889, 29896, 29945, 29946, 13, 29937, 308, 1583, 29889, 2034, 353, 29871, 29900, 29889, 29896, 13, 29937, 308, 1583, 29889, 3459, 353, 29871, 29900, 29889, 29906, 29945, 13, 29937, 308, 1583, 29889, 29895, 29920, 353, 29871, 29900, 29889, 29906, 13, 29937, 13, 29937, 308, 1583, 29889, 29916, 353, 29871, 29945, 29900, 29900, 29889, 29900, 13, 29937, 308, 1583, 29889, 5389, 29918, 29881, 353, 29871, 29896, 29889, 29900, 13, 29937, 308, 1583, 29889, 5389, 29918, 29874, 353, 29871, 29929, 29900, 29889, 29900, 29900, 29900, 13, 29937, 13, 29937, 13, 29937, 308, 1583, 29889, 3754, 29918, 29900, 353, 29871, 29941, 29947, 29889, 29955, 13, 29937, 308, 1583, 29889, 3754, 29918, 29881, 353, 29871, 29941, 29946, 29889, 29906, 13, 29937, 13, 29937, 308, 1583, 29889, 29916, 29900, 353, 29871, 29941, 29945, 29941, 29889, 29900, 13, 29937, 13, 29937, 268, 822, 1243, 29918, 3754, 29918, 1028, 949, 29918, 517, 29877, 29918, 9812, 29898, 1311, 1125, 13, 29937, 308, 1583, 29889, 9294, 29934, 1759, 267, 29898, 3754, 29918, 1028, 949, 29918, 9891, 29898, 1311, 29889, 29916, 29892, 1583, 29889, 29916, 29900, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 3754, 29918, 29900, 29892, 1583, 29889, 3754, 29918, 29881, 29892, 1583, 29889, 5389, 29918, 29874, 29892, 1583, 29889, 5389, 29918, 29881, 876, 13, 29937, 13, 13, 1990, 1243, 29918, 29882, 837, 568, 29918, 23579, 457, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 1243, 29918, 10660, 29898, 1311, 1125, 13, 4706, 9995, 29908, 2052, 307, 2657, 403, 343, 353, 921, 448, 29871, 29896, 15945, 29908, 13, 4706, 921, 353, 29871, 29896, 29889, 13, 4706, 921, 29900, 353, 29871, 29900, 29889, 13, 4706, 921, 29896, 353, 29871, 29906, 29889, 13, 4706, 343, 29900, 353, 448, 29896, 29889, 13, 4706, 13475, 29900, 353, 29871, 29896, 29889, 13, 4706, 343, 29896, 353, 29871, 29896, 29889, 13, 4706, 13475, 29896, 353, 29871, 29896, 29889, 13, 13, 4706, 343, 353, 18606, 568, 29918, 23579, 457, 29898, 29916, 29892, 921, 29900, 29892, 921, 29896, 29892, 343, 29900, 29892, 13475, 29900, 29892, 343, 29896, 29892, 13475, 29896, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29891, 29892, 29871, 29900, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 29883, 431, 293, 29898, 1311, 1125, 13, 4706, 9995, 2052, 307, 2657, 403, 343, 29922, 29916, 1068, 29941, 15945, 29908, 13, 4706, 921, 353, 29871, 29900, 29889, 13, 4706, 921, 29900, 353, 448, 29896, 29889, 13, 4706, 921, 29896, 353, 29871, 29896, 29889, 13, 4706, 343, 29900, 353, 29871, 29900, 29889, 13, 4706, 13475, 29900, 353, 29871, 29906, 29889, 13, 4706, 343, 29896, 353, 29871, 29900, 29889, 13, 4706, 13475, 29896, 353, 29871, 29906, 29889, 13, 13, 4706, 343, 353, 18606, 568, 29918, 23579, 457, 29898, 29916, 29892, 921, 29900, 29892, 921, 29896, 29892, 343, 29900, 29892, 13475, 29900, 29892, 343, 29896, 29892, 13475, 29896, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29891, 29892, 29871, 29900, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 862, 19388, 293, 29898, 1311, 1125, 13, 4706, 9995, 2052, 307, 2657, 403, 343, 29922, 29916, 1068, 29906, 15945, 29908, 13, 4706, 921, 353, 29871, 29900, 29889, 13, 4706, 921, 29900, 353, 448, 29896, 29889, 13, 4706, 921, 29896, 353, 29871, 29896, 29889, 13, 4706, 343, 29900, 353, 29871, 29896, 29889, 13, 4706, 13475, 29900, 353, 448, 29906, 29889, 13, 4706, 343, 29896, 353, 29871, 29896, 29889, 13, 4706, 13475, 29896, 353, 29871, 29906, 29889, 13, 13, 4706, 343, 353, 18606, 568, 29918, 23579, 457, 29898, 29916, 29892, 921, 29900, 29892, 921, 29896, 29892, 343, 29900, 29892, 13475, 29900, 29892, 343, 29896, 29892, 13475, 29896, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29891, 29892, 29871, 29900, 29889, 29900, 29897, 13, 13, 1990, 1243, 29918, 1639, 3733, 362, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 396, 822, 1243, 29918, 29883, 431, 293, 29898, 1311, 1125, 13, 1678, 396, 13, 1678, 396, 268, 396, 4529, 29694, 1134, 13, 1678, 396, 268, 1006, 29886, 29918, 1853, 353, 29871, 29900, 13, 1678, 396, 13, 1678, 396, 268, 396, 731, 701, 3291, 363, 29694, 13, 1678, 396, 268, 921, 353, 7442, 29889, 2378, 4197, 29899, 29896, 1696, 448, 29900, 29889, 29945, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 29945, 29892, 29871, 29896, 29889, 2314, 13, 1678, 396, 268, 343, 353, 7442, 29889, 2378, 4197, 29899, 29896, 1696, 448, 29900, 29889, 29896, 29906, 29945, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 29896, 29906, 29945, 29892, 29871, 29896, 29889, 2314, 13, 1678, 396, 13, 1678, 396, 268, 396, 731, 4423, 310, 29694, 13, 1678, 396, 268, 921, 791, 353, 29871, 29900, 29889, 29896, 29906, 29945, 13, 1678, 396, 13, 1678, 396, 268, 396, 679, 20064, 630, 343, 995, 13, 1678, 396, 268, 343, 791, 353, 29694, 29898, 1639, 29886, 29918, 1853, 29892, 921, 29892, 343, 29892, 921, 791, 29892, 29871, 29941, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 29892, 5852, 29897, 13, 1678, 396, 13, 1678, 396, 268, 1583, 29889, 9294, 9843, 29898, 29891, 791, 29892, 29871, 29900, 29889, 29900, 29953, 29906, 29945, 29897, 13, 13, 1678, 822, 1243, 29918, 10660, 29898, 1311, 1125, 13, 13, 4706, 396, 4529, 29694, 1134, 13, 4706, 1006, 29886, 29918, 1853, 353, 29871, 29896, 13, 13, 4706, 396, 731, 701, 3291, 363, 29694, 13, 4706, 921, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29896, 1696, 29871, 29906, 29889, 2314, 13, 4706, 343, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29896, 1696, 29871, 29900, 29889, 2314, 13, 13, 4706, 396, 731, 4423, 310, 29694, 13, 4706, 921, 791, 353, 29871, 29900, 29889, 29945, 13, 13, 4706, 396, 679, 20064, 630, 343, 995, 13, 4706, 343, 791, 353, 29694, 29898, 1639, 29886, 29918, 1853, 29892, 921, 29892, 343, 29892, 921, 791, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 7700, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29891, 791, 29892, 29871, 29900, 29889, 29945, 29897, 13, 13, 1990, 1243, 29918, 312, 6814, 29918, 2764, 345, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 10422, 353, 376, 6904, 2080, 29918, 5325, 29914, 29940, 1525, 29931, 29945, 25365, 6271, 1783, 29918, 8977, 29889, 29886, 29908, 13, 4706, 1053, 274, 29925, 860, 280, 408, 5839, 280, 13, 4706, 848, 353, 5839, 280, 29889, 1359, 29898, 3150, 29898, 9507, 29892, 376, 6050, 5783, 13, 4706, 21447, 29918, 1272, 353, 7442, 29889, 3298, 359, 4197, 1272, 1839, 14800, 29918, 19322, 13359, 2311, 2314, 13, 4706, 274, 29873, 29918, 1272, 353, 7442, 29889, 3298, 359, 4197, 1272, 1839, 14800, 29918, 19322, 13359, 2311, 2314, 13, 4706, 8805, 29918, 19322, 29918, 1272, 353, 7442, 29889, 3298, 359, 4197, 1272, 1839, 14800, 29918, 19322, 13359, 2311, 2314, 13, 4706, 21447, 29918, 1272, 7503, 29962, 353, 848, 1839, 6271, 2033, 13, 4706, 274, 29873, 29918, 1272, 7503, 29962, 353, 848, 1839, 1783, 2033, 13, 4706, 8805, 29918, 19322, 29918, 1272, 7503, 29962, 353, 848, 1839, 14800, 29918, 19322, 2033, 13, 13, 4706, 1583, 29889, 312, 29918, 1272, 353, 274, 29873, 29918, 1272, 13, 4706, 1583, 29889, 6814, 29918, 1272, 353, 21447, 29918, 1272, 13, 4706, 1583, 29889, 14800, 29918, 19322, 29918, 1272, 353, 8805, 29918, 19322, 29918, 1272, 13, 13, 4706, 1583, 29889, 6768, 353, 11117, 1509, 29918, 312, 29918, 2764, 345, 2396, 5852, 29892, 13, 462, 259, 525, 312, 29918, 2764, 345, 29918, 312, 2396, 1583, 29889, 312, 29918, 1272, 29892, 13, 462, 259, 525, 312, 29918, 2764, 345, 29918, 14800, 29918, 19322, 2396, 1583, 29889, 14800, 29918, 19322, 29918, 1272, 29913, 13, 13, 1678, 822, 1243, 29918, 29945, 29885, 29893, 29918, 312, 29918, 7979, 1008, 29918, 27603, 29918, 29896, 29918, 27392, 29898, 1311, 1125, 13, 13, 4706, 515, 330, 17019, 29893, 1296, 29889, 29887, 17019, 29893, 1296, 1053, 22477, 29956, 1296, 13, 4706, 1053, 11451, 1688, 13, 13, 4706, 11451, 1688, 29889, 4495, 1983, 29898, 22709, 29892, 22477, 29956, 1296, 29892, 302, 29911, 9265, 1475, 29922, 29953, 29892, 3987, 29922, 1311, 29889, 6768, 29897, 13, 13, 1990, 1243, 29918, 29893, 687, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 10422, 353, 376, 6904, 2080, 29918, 5325, 29914, 29940, 1525, 29931, 29945, 25365, 6271, 1783, 29918, 8977, 29889, 29886, 29908, 13, 4706, 1053, 274, 29925, 860, 280, 408, 5839, 280, 13, 4706, 848, 353, 5839, 280, 29889, 1359, 29898, 3150, 29898, 9507, 29892, 376, 6050, 5783, 13, 4706, 21447, 29918, 1272, 353, 7442, 29889, 3298, 359, 4197, 1272, 1839, 14800, 29918, 19322, 13359, 2311, 2314, 13, 4706, 274, 29873, 29918, 1272, 353, 7442, 29889, 3298, 359, 4197, 1272, 1839, 14800, 29918, 19322, 13359, 2311, 2314, 13, 4706, 8805, 29918, 19322, 29918, 1272, 353, 7442, 29889, 3298, 359, 4197, 1272, 1839, 14800, 29918, 19322, 13359, 2311, 2314, 13, 4706, 21447, 29918, 1272, 7503, 29962, 353, 848, 1839, 6271, 2033, 13, 4706, 274, 29873, 29918, 1272, 7503, 29962, 353, 848, 1839, 1783, 2033, 13, 4706, 8805, 29918, 19322, 29918, 1272, 7503, 29962, 353, 848, 1839, 14800, 29918, 19322, 2033, 13, 13, 4706, 1583, 29889, 312, 29918, 1272, 353, 274, 29873, 29918, 1272, 13, 4706, 1583, 29889, 6814, 29918, 1272, 353, 21447, 29918, 1272, 13, 4706, 1583, 29889, 14800, 29918, 19322, 29918, 1272, 353, 8805, 29918, 19322, 29918, 1272, 13, 13, 4706, 1583, 29889, 6768, 353, 11117, 1509, 29918, 312, 29918, 2764, 345, 2396, 5852, 29892, 13, 462, 259, 525, 312, 29918, 2764, 345, 29918, 312, 2396, 1583, 29889, 312, 29918, 1272, 29892, 13, 462, 259, 525, 312, 29918, 2764, 345, 29918, 14800, 29918, 19322, 2396, 1583, 29889, 14800, 29918, 19322, 29918, 1272, 29913, 13, 13, 4706, 302, 29911, 9265, 1475, 353, 29871, 29906, 13, 4706, 515, 330, 17019, 29893, 1296, 29889, 29887, 17019, 29893, 1296, 1053, 22477, 29956, 1296, 13, 4706, 2070, 353, 11583, 29898, 4632, 29922, 4782, 3101, 13, 4706, 2070, 29889, 4632, 29889, 1202, 877, 29893, 557, 331, 27224, 742, 22477, 29956, 1296, 29898, 29876, 29911, 9265, 1475, 29892, 3987, 29922, 1311, 29889, 6768, 511, 2504, 4769, 29922, 1839, 29930, 11287, 13, 4706, 2070, 29889, 14669, 580, 13, 4706, 2070, 1839, 14800, 29918, 19322, 2033, 353, 29871, 29947, 29889, 13, 4706, 1583, 29889, 22795, 353, 2070, 13, 13, 1678, 822, 1243, 29918, 1217, 29918, 3167, 29918, 262, 29918, 1753, 293, 277, 29918, 1609, 29918, 29893, 1296, 29918, 1028, 949, 29918, 10492, 29918, 18056, 4926, 29918, 271, 29918, 5064, 29898, 1311, 1125, 13, 4706, 2070, 353, 1583, 29889, 22795, 13, 4706, 7013, 26062, 29990, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29946, 29900, 29900, 29889, 2314, 13, 4706, 7013, 26062, 29979, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29900, 29889, 2314, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29945, 29900, 29889, 13, 4706, 2070, 1839, 29873, 9265, 457, 29990, 29893, 2033, 353, 7013, 26062, 29990, 13, 4706, 2070, 1839, 29873, 9265, 457, 29979, 29893, 2033, 353, 7013, 26062, 29979, 13, 4706, 2070, 1839, 5450, 272, 29928, 2829, 1308, 2033, 353, 7442, 29889, 2378, 4197, 5450, 272, 29918, 29881, 2829, 1308, 29892, 5731, 272, 29918, 29881, 2829, 1308, 2314, 13, 4706, 2070, 1839, 5450, 272, 29928, 2829, 1308, 2033, 353, 7442, 29889, 2378, 4197, 5450, 272, 29918, 29881, 2829, 1308, 29892, 5731, 272, 29918, 29881, 2829, 1308, 2314, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29900, 29889, 29900, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 19790, 2033, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29900, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29906, 29889, 29900, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29896, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5652, 412, 287, 29896, 29892, 281, 19322, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 1217, 29918, 3167, 29918, 262, 29918, 1753, 293, 277, 29918, 1609, 29918, 29893, 1296, 29918, 29881, 2829, 1308, 29918, 18056, 4926, 29918, 271, 29918, 5064, 29898, 1311, 1125, 13, 4706, 2070, 353, 1583, 29889, 22795, 13, 4706, 7013, 26062, 29990, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29946, 29900, 29900, 29889, 2314, 13, 4706, 7013, 26062, 29979, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29900, 29889, 2314, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29945, 29900, 29889, 13, 4706, 2070, 1839, 29873, 9265, 457, 29990, 29893, 2033, 353, 7013, 26062, 29990, 13, 4706, 2070, 1839, 29873, 9265, 457, 29979, 29893, 2033, 353, 7013, 26062, 29979, 13, 4706, 2070, 1839, 5450, 272, 29928, 2829, 1308, 2033, 353, 7442, 29889, 2378, 4197, 5450, 272, 29918, 29881, 2829, 1308, 29892, 5731, 272, 29918, 29881, 2829, 1308, 2314, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29900, 29889, 29900, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 19790, 2033, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29900, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29906, 29889, 29900, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29896, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5652, 412, 287, 29896, 29892, 281, 19322, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 262, 1037, 559, 29918, 1753, 293, 277, 29918, 1609, 29918, 29893, 1296, 29918, 29881, 2829, 1308, 29918, 4548, 9454, 29898, 1311, 1125, 13, 4706, 2070, 353, 1583, 29889, 22795, 13, 4706, 7013, 26062, 29990, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29946, 29900, 29900, 29889, 2314, 13, 4706, 7013, 26062, 29979, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29896, 29900, 29900, 29889, 2314, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29945, 29900, 29889, 13, 4706, 2070, 1839, 29873, 9265, 457, 29990, 29893, 2033, 353, 7013, 26062, 29990, 13, 4706, 2070, 1839, 29873, 9265, 457, 29979, 29893, 2033, 353, 7013, 26062, 29979, 13, 4706, 2070, 1839, 5450, 272, 29928, 2829, 1308, 2033, 353, 7442, 29889, 2378, 4197, 5450, 272, 29918, 29881, 2829, 1308, 29892, 5731, 272, 29918, 29881, 2829, 1308, 2314, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29900, 29889, 29900, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 19790, 2033, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29900, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 19790, 2033, 353, 29871, 29906, 29889, 29900, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29896, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 13, 4706, 1583, 29889, 9294, 25120, 1008, 29898, 5652, 412, 287, 29900, 29892, 281, 19322, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 262, 1037, 559, 29918, 1753, 293, 277, 29918, 1609, 29918, 29893, 1296, 29918, 4548, 9454, 29918, 10492, 29918, 18056, 4926, 29898, 1311, 1125, 13, 4706, 2070, 353, 1583, 29889, 22795, 13, 4706, 7013, 26062, 29990, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29946, 29900, 29900, 29889, 2314, 13, 4706, 7013, 26062, 29979, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29896, 29900, 29900, 29889, 2314, 13, 4706, 5731, 272, 29918, 29881, 2829, 1308, 353, 29871, 29945, 29900, 29889, 13, 4706, 2070, 1839, 29873, 9265, 457, 29990, 29893, 2033, 353, 7013, 26062, 29990, 13, 4706, 2070, 1839, 29873, 9265, 457, 29979, 29893, 2033, 353, 7013, 26062, 29979, 13, 4706, 2070, 1839, 5450, 272, 29928, 2829, 1308, 2033, 353, 7442, 29889, 2378, 4197, 5450, 272, 29918, 29881, 2829, 1308, 29892, 5731, 272, 29918, 29881, 2829, 1308, 2314, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29900, 29889, 29900, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 19790, 2033, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 19790, 2033, 353, 29871, 29896, 29889, 29900, 13, 4706, 281, 19322, 29900, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 4706, 2070, 1839, 4299, 29918, 7529, 29901, 29893, 687, 29918, 1028, 19715, 29918, 2521, 2033, 353, 29871, 29906, 29889, 29900, 13, 4706, 2070, 29889, 3389, 29918, 10646, 580, 13, 4706, 281, 19322, 29896, 353, 2070, 1839, 14554, 29963, 295, 25245, 29900, 2033, 29961, 29896, 29962, 13, 13, 4706, 1583, 29889, 9294, 25120, 1008, 29898, 5652, 412, 287, 29900, 29892, 281, 19322, 29896, 29897, 13, 13, 1990, 1243, 29918, 13732, 351, 295, 29918, 24209, 911, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 396, 4986, 3970, 11157, 20341, 749, 310, 1243, 448, 2020, 508, 29915, 29873, 591, 1993, 901, 16467, 29973, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 515, 8024, 27548, 29889, 4422, 1907, 1053, 6575, 1731, 261, 29918, 9748, 13, 4706, 1583, 29889, 25027, 261, 749, 353, 29871, 29896, 29923, 29899, 29896, 13, 4706, 1583, 29889, 29893, 1296, 29918, 510, 2109, 362, 29918, 5696, 353, 29871, 29896, 13, 4706, 1583, 29889, 29893, 1296, 29918, 4299, 29918, 3259, 353, 29871, 29906, 29900, 29896, 29953, 13, 4706, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 353, 29871, 29947, 29900, 29889, 13, 4706, 1583, 29889, 29882, 431, 29918, 3545, 353, 29871, 29955, 29900, 29889, 13, 4706, 1583, 29889, 312, 353, 29871, 29900, 29889, 29953, 13, 4706, 1583, 29889, 2312, 353, 29871, 29906, 29889, 29941, 29906, 13, 4706, 1583, 29889, 3571, 353, 29871, 29900, 29889, 29896, 29945, 29946, 13, 4706, 1583, 29889, 13338, 17533, 499, 666, 4926, 353, 29871, 29896, 29889, 29900, 13, 4706, 1583, 29889, 29893, 687, 29918, 19790, 353, 29871, 29896, 29889, 29900, 13, 4706, 1583, 29889, 14800, 29918, 19322, 353, 29871, 29947, 29889, 29900, 13, 4706, 1583, 29889, 29920, 29918, 999, 353, 1583, 29889, 29882, 431, 29918, 3545, 13, 4706, 1583, 29889, 29920, 29918, 29900, 353, 29871, 29900, 29889, 29900, 29900, 29900, 29906, 13, 4706, 1583, 29889, 11360, 279, 29918, 4548, 353, 29871, 29900, 29889, 29896, 29945, 13, 4706, 1583, 29889, 29891, 1450, 353, 29871, 29900, 29889, 29900, 13, 4706, 1583, 29889, 14554, 29963, 295, 25245, 353, 7442, 29889, 2378, 4197, 1311, 29889, 14800, 29918, 19322, 2314, 13, 4706, 1583, 29889, 24301, 353, 29871, 29900, 29889, 29900, 29955, 29955, 13, 4706, 1583, 29889, 3459, 353, 29871, 29900, 29889, 29941, 29947, 29941, 29955, 29930, 1311, 29889, 24301, 718, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29955, 29947, 29871, 396, 7442, 29889, 2378, 4197, 29900, 29889, 29941, 29947, 29941, 29955, 29930, 29911, 3112, 332, 5824, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29955, 29947, 2314, 13, 4706, 1583, 29889, 29895, 29920, 353, 29871, 29900, 29889, 29941, 29947, 29941, 29955, 29930, 1311, 29889, 24301, 718, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29955, 29947, 396, 7442, 29889, 2378, 4197, 29900, 29889, 29941, 29947, 29941, 29955, 29930, 29911, 3112, 332, 5824, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29955, 29947, 2314, 13, 4706, 5731, 272, 9748, 353, 6575, 1731, 261, 29918, 9748, 29898, 29896, 29900, 29900, 29897, 13, 4706, 1583, 29889, 21281, 272, 20325, 29979, 353, 5731, 272, 9748, 29961, 29900, 29962, 396, 9302, 29889, 2378, 4197, 29900, 29892, 869, 29945, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 29900, 29892, 448, 29889, 29945, 29892, 448, 29896, 29889, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 2314, 13, 4706, 1583, 29889, 21281, 272, 20325, 29999, 353, 5731, 272, 9748, 29961, 29896, 29962, 396, 9302, 29889, 2378, 4197, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 1696, 869, 29945, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 29900, 29892, 448, 29900, 29889, 29945, 29892, 448, 29896, 29889, 2314, 13, 4706, 396, 1583, 29889, 21281, 272, 20325, 29979, 353, 7442, 29889, 2378, 4197, 29900, 2314, 13, 4706, 396, 1583, 29889, 21281, 272, 20325, 29999, 353, 7442, 29889, 2378, 4197, 29900, 2314, 13, 4706, 1583, 29889, 21281, 272, 20325, 29979, 353, 7442, 29889, 2378, 4197, 29900, 29892, 869, 29945, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 29900, 29892, 448, 29889, 29945, 29892, 448, 29896, 29889, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 2314, 13, 4706, 1583, 29889, 21281, 272, 20325, 29999, 353, 7442, 29889, 2378, 4197, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 1696, 869, 29945, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29900, 1696, 29871, 29900, 29889, 29900, 29892, 448, 29900, 29889, 29945, 29892, 448, 29896, 29889, 2314, 13, 4706, 1583, 29889, 24301, 29918, 15807, 362, 29918, 5696, 353, 29871, 29946, 13, 4706, 1583, 29889, 28667, 29918, 29895, 29918, 8508, 353, 5852, 13, 4706, 1583, 29889, 2158, 29918, 2034, 353, 7700, 13, 4706, 1583, 29889, 1639, 29886, 29918, 1853, 353, 29871, 29896, 13, 4706, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 353, 29871, 29955, 29900, 29900, 29889, 13, 13, 4706, 1180, 29918, 1272, 353, 7442, 29889, 1359, 3945, 877, 2080, 29918, 5325, 29914, 25031, 29879, 29918, 13478, 29918, 2029, 800, 29889, 3945, 742, 28552, 29922, 742, 1495, 13, 4706, 7013, 26062, 29990, 29893, 353, 1180, 29918, 1272, 7503, 29892, 29871, 29900, 29962, 334, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 13, 4706, 7013, 26062, 29979, 29893, 353, 1180, 29918, 1272, 7503, 29892, 29871, 29896, 29962, 334, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 13, 4706, 7013, 26062, 29999, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 29897, 334, 1583, 29889, 29882, 431, 29918, 3545, 13, 4706, 12705, 29918, 29916, 29918, 13140, 353, 7442, 29889, 5085, 441, 29898, 29873, 9265, 457, 29990, 29893, 29892, 2924, 2433, 354, 2547, 441, 1495, 13, 4706, 5731, 272, 29928, 2829, 1308, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 29897, 334, 1583, 29889, 5450, 272, 29918, 29881, 2829, 1308, 13, 4706, 315, 29873, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 29897, 334, 1583, 29889, 312, 13, 4706, 343, 1450, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 29897, 334, 1583, 29889, 29891, 1450, 13, 4706, 323, 29902, 29918, 29873, 332, 5824, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 29897, 334, 1583, 29889, 24301, 13, 13, 4706, 671, 29918, 312, 29918, 2764, 345, 353, 5852, 13, 4706, 396, 274, 29873, 29918, 1272, 353, 7442, 29889, 1359, 3945, 877, 2080, 29918, 5325, 29914, 11965, 18186, 29918, 312, 29918, 10147, 294, 29918, 29894, 29947, 29900, 29918, 1240, 388, 361, 279, 29906, 29900, 29896, 29953, 29889, 3945, 742, 28552, 29922, 742, 1495, 13, 4706, 274, 29873, 29918, 1272, 353, 7442, 29889, 1359, 3945, 877, 2080, 29918, 5325, 29914, 29885, 16434, 29918, 312, 29918, 10147, 294, 29918, 29894, 29947, 29900, 29918, 1240, 388, 361, 279, 29906, 29900, 29896, 29953, 29889, 3945, 742, 28552, 29922, 742, 1495, 13, 4706, 274, 29873, 29918, 2764, 345, 29918, 14800, 29918, 19322, 353, 274, 29873, 29918, 1272, 7503, 29892, 29871, 29900, 29962, 13, 4706, 274, 29873, 29918, 2764, 345, 29918, 312, 353, 274, 29873, 29918, 1272, 7503, 29892, 29871, 29896, 29962, 13, 13, 4706, 20535, 403, 17907, 3073, 29922, 8824, 13, 13, 4706, 281, 29873, 29963, 295, 25245, 29892, 903, 353, 14931, 351, 295, 29918, 24209, 911, 29898, 29873, 9265, 457, 29990, 29893, 29892, 12705, 29918, 29916, 29918, 13140, 29892, 7013, 26062, 29979, 29893, 29892, 7013, 26062, 29999, 29892, 13, 462, 462, 539, 5731, 272, 29928, 2829, 1308, 29892, 315, 29873, 29892, 1583, 29889, 14800, 29918, 19322, 29892, 13, 462, 462, 539, 343, 1450, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 29895, 29920, 29892, 1583, 29889, 2312, 29892, 1583, 29889, 3571, 29892, 323, 29902, 29918, 29873, 332, 5824, 29892, 1583, 29889, 21281, 272, 20325, 29979, 29892, 13, 462, 462, 539, 1583, 29889, 21281, 272, 20325, 29999, 29892, 7442, 29889, 2378, 4197, 29900, 11724, 7442, 29889, 2378, 4197, 29900, 11724, 7442, 29889, 2378, 4197, 29900, 11724, 13, 462, 462, 539, 1583, 29889, 29920, 29918, 999, 29892, 1583, 29889, 29920, 29918, 29900, 29892, 1583, 29889, 11360, 279, 29918, 4548, 29892, 1583, 29889, 29893, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 13, 462, 462, 539, 1583, 29889, 24301, 29918, 15807, 362, 29918, 5696, 29892, 1583, 29889, 28667, 29918, 29895, 29918, 8508, 29892, 1583, 29889, 29893, 687, 29918, 19790, 29892, 1583, 29889, 2158, 29918, 2034, 29892, 13, 462, 462, 539, 1583, 29889, 29893, 1296, 29918, 4299, 29918, 3259, 29892, 1583, 29889, 1639, 29886, 29918, 1853, 29892, 671, 29918, 312, 29918, 2764, 345, 29892, 13, 462, 462, 539, 274, 29873, 29918, 2764, 345, 29918, 14800, 29918, 19322, 29892, 274, 29873, 29918, 2764, 345, 29918, 312, 29892, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 29892, 13, 462, 462, 539, 1583, 29889, 13338, 17533, 499, 666, 4926, 29892, 20535, 403, 17907, 3073, 29897, 13, 13, 4706, 3889, 29918, 5461, 29918, 13519, 353, 3081, 29918, 9891, 29918, 29894, 29947, 29900, 29898, 1311, 29889, 14800, 29918, 19322, 29897, 13, 4706, 281, 29873, 21472, 353, 3081, 29918, 9891, 29918, 29894, 29947, 29900, 29898, 14554, 29963, 295, 25245, 29897, 13, 13, 4706, 1583, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 353, 7442, 29889, 3298, 359, 29898, 29896, 29900, 29897, 13, 4706, 363, 474, 297, 7442, 29889, 279, 927, 29898, 29900, 29892, 1583, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29889, 2311, 1125, 13, 9651, 4764, 29918, 1351, 29918, 798, 353, 7442, 29889, 12483, 482, 4197, 14554, 21472, 29961, 29946, 29900, 718, 474, 1402, 281, 29873, 21472, 29961, 29945, 29900, 718, 474, 1402, 281, 29873, 21472, 29961, 29953, 29900, 718, 474, 24960, 13, 9651, 1583, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29875, 29962, 353, 4764, 29918, 1351, 29918, 798, 847, 3889, 29918, 5461, 29918, 13519, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 29896, 29918, 29873, 9265, 29898, 1311, 1125, 13, 4706, 7013, 26062, 29990, 29893, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29900, 2314, 13, 4706, 7013, 26062, 29979, 29893, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29900, 2314, 13, 4706, 7013, 26062, 29999, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 11877, 1311, 29889, 29882, 431, 29918, 3545, 13, 4706, 12705, 29918, 29916, 29918, 13140, 353, 7442, 29889, 5085, 441, 29898, 29873, 9265, 457, 29990, 29893, 29892, 2924, 2433, 354, 2547, 441, 1495, 13, 4706, 5731, 272, 29928, 2829, 1308, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 11877, 1311, 29889, 5450, 272, 29918, 29881, 2829, 1308, 13, 4706, 315, 29873, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 11877, 1311, 29889, 312, 13, 4706, 343, 1450, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 11877, 1311, 29889, 29891, 1450, 13, 4706, 323, 29902, 29918, 29873, 332, 5824, 353, 7442, 29889, 2873, 29918, 4561, 29898, 29873, 9265, 457, 29990, 29893, 11877, 1311, 29889, 24301, 13, 13, 4706, 671, 29918, 312, 29918, 2764, 345, 353, 7700, 13, 4706, 274, 29873, 29918, 2764, 345, 29918, 14800, 29918, 19322, 353, 7442, 29889, 2378, 4197, 1311, 29889, 14800, 29918, 19322, 2314, 13, 4706, 274, 29873, 29918, 2764, 345, 29918, 312, 353, 7442, 29889, 2378, 4197, 1311, 29889, 312, 2314, 13, 13, 13, 4706, 20535, 403, 17907, 3073, 29922, 8824, 13, 13, 4706, 281, 29873, 29963, 295, 25245, 29892, 903, 353, 14931, 351, 295, 29918, 24209, 911, 29898, 29873, 9265, 457, 29990, 29893, 29892, 12705, 29918, 29916, 29918, 13140, 29892, 7013, 26062, 29979, 29893, 29892, 7013, 26062, 29999, 29892, 13, 462, 462, 3986, 5731, 272, 29928, 2829, 1308, 29892, 315, 29873, 29892, 1583, 29889, 14800, 29918, 19322, 29892, 13, 462, 462, 3986, 343, 1450, 29892, 1583, 29889, 3459, 29892, 1583, 29889, 29895, 29920, 29892, 1583, 29889, 2312, 29892, 1583, 29889, 3571, 29892, 323, 29902, 29918, 29873, 332, 5824, 29892, 1583, 29889, 21281, 272, 20325, 29979, 29892, 13, 462, 462, 3986, 1583, 29889, 21281, 272, 20325, 29999, 29892, 7442, 29889, 2378, 4197, 29900, 11724, 7442, 29889, 2378, 4197, 29900, 11724, 7442, 29889, 2378, 4197, 29900, 11724, 13, 462, 462, 3986, 1583, 29889, 29920, 29918, 999, 29892, 1583, 29889, 29920, 29918, 29900, 29892, 1583, 29889, 11360, 279, 29918, 4548, 29892, 1583, 29889, 29893, 1296, 29918, 510, 2109, 362, 29918, 5696, 29892, 13, 462, 462, 3986, 1583, 29889, 24301, 29918, 15807, 362, 29918, 5696, 29892, 1583, 29889, 28667, 29918, 29895, 29918, 8508, 29892, 1583, 29889, 29893, 687, 29918, 19790, 29892, 1583, 29889, 2158, 29918, 2034, 29892, 13, 462, 462, 3986, 1583, 29889, 29893, 1296, 29918, 4299, 29918, 3259, 29892, 1583, 29889, 1639, 29886, 29918, 1853, 29892, 671, 29918, 312, 29918, 2764, 345, 29892, 13, 462, 462, 3986, 274, 29873, 29918, 2764, 345, 29918, 14800, 29918, 19322, 29892, 274, 29873, 29918, 2764, 345, 29918, 312, 29892, 1583, 29889, 3844, 29918, 3844, 29877, 6046, 29892, 13, 462, 462, 3986, 1583, 29889, 13338, 17533, 499, 666, 4926, 29892, 20535, 403, 17907, 3073, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 14554, 29963, 295, 25245, 29892, 29871, 29947, 29889, 29900, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 4706, 396, 13, 4706, 396, 29871, 29906, 29889, 29900, 29900, 29929, 29900, 29947, 29945, 29906, 29946, 29900, 29955, 29929, 29900, 29947, 29955, 29955, 29892, 29871, 29900, 29889, 29946, 29953, 29896, 29929, 29906, 29946, 29953, 29947, 29953, 29896, 29929, 29906, 29946, 29953, 29947, 29953, 13, 4706, 396, 29871, 29906, 29889, 29900, 29900, 29929, 29896, 29900, 29947, 29906, 29896, 29906, 29941, 29906, 29906, 29945, 29947, 29945, 29953, 29892, 29871, 29900, 29889, 29946, 29953, 29941, 29945, 29929, 29947, 29941, 29906, 29953, 29941, 29945, 29929, 29947, 29941, 29906, 29945, 29953, 13, 4706, 396, 29871, 29941, 29889, 29900, 29900, 29941, 29941, 29947, 29945, 29900, 29896, 29929, 29906, 29955, 29929, 29953, 29955, 29947, 29892, 29871, 29900, 29889, 29945, 29900, 29941, 29955, 29953, 29945, 29953, 29929, 29900, 29941, 29955, 29953, 29945, 29953, 29947, 29929, 13, 4706, 396, 29871, 29941, 29889, 29929, 29929, 29955, 29906, 29955, 29896, 29941, 29896, 29900, 29896, 29929, 29955, 29955, 29896, 29947, 29892, 29871, 29900, 29889, 29945, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 13, 4706, 396, 29871, 29946, 29889, 29929, 29929, 29953, 29946, 29929, 29947, 29946, 29947, 29906, 29906, 29941, 29947, 29900, 29947, 29946, 29892, 29871, 29900, 29889, 29945, 29896, 29953, 29941, 29896, 29955, 29929, 29929, 29896, 29953, 29941, 29896, 29955, 29929, 29929, 13, 4706, 396, 29871, 29945, 29889, 29929, 29929, 29900, 29906, 29896, 29906, 29946, 29947, 29953, 29953, 29953, 29947, 29941, 29900, 29955, 29892, 29871, 29900, 29889, 29945, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 13, 4706, 396, 29871, 29955, 29889, 29900, 29900, 29900, 29941, 29953, 29906, 29953, 29906, 29906, 29900, 29941, 29953, 29906, 29953, 29906, 29945, 29892, 29871, 29900, 29889, 29945, 29896, 29906, 29896, 29941, 29941, 29947, 29929, 29896, 29906, 29896, 29941, 29941, 29947, 29947, 29947, 13, 4706, 396, 29871, 29955, 29889, 29929, 29929, 29946, 29900, 29946, 29906, 29896, 29953, 29929, 29896, 29953, 29947, 29929, 29906, 29941, 29892, 29871, 29900, 29889, 29945, 29900, 29947, 29955, 29947, 29953, 29953, 29896, 29900, 29947, 29955, 29947, 29953, 29953, 29900, 29947, 13, 4706, 396, 29871, 29947, 29889, 29929, 29929, 29947, 29953, 29929, 29900, 29953, 29906, 29906, 29953, 29929, 29906, 29945, 29929, 29892, 29871, 29900, 29889, 29945, 29900, 29946, 29953, 29900, 29906, 29945, 29896, 29900, 29946, 29953, 29900, 29906, 29945, 29900, 29947, 13, 4706, 396, 29871, 29896, 29900, 29889, 29900, 29900, 29941, 29941, 29941, 29929, 29900, 29955, 29953, 29906, 29896, 29953, 29906, 29945, 29929, 29892, 29871, 29900, 29889, 29945, 29900, 29900, 29946, 29896, 29947, 29946, 29896, 29900, 29900, 29946, 29896, 29947, 29946, 29900, 29947, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29896, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29900, 1402, 29871, 29896, 29889, 29900, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29906, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29896, 1402, 29871, 29900, 29889, 29946, 29953, 29896, 29929, 29906, 29946, 29953, 29947, 29953, 29896, 29929, 29906, 29946, 29953, 29947, 29953, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29941, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29906, 1402, 29871, 29900, 29889, 29945, 29900, 29941, 29955, 29953, 29945, 29953, 29929, 29900, 29941, 29955, 29953, 29945, 29953, 29947, 29929, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29946, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29941, 1402, 29871, 29900, 29889, 29945, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29945, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29946, 1402, 29871, 29900, 29889, 29945, 29896, 29953, 29941, 29896, 29955, 29929, 29929, 29896, 29953, 29941, 29896, 29955, 29929, 29929, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29953, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29945, 1402, 29871, 29900, 29889, 29945, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 29896, 29945, 29946, 29947, 29896, 29896, 29955, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29955, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29953, 1402, 29871, 29900, 29889, 29945, 29896, 29906, 29896, 29941, 29941, 29947, 29929, 29896, 29906, 29896, 29941, 29941, 29947, 29947, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29947, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29955, 1402, 29871, 29900, 29889, 29945, 29900, 29947, 29955, 29947, 29953, 29953, 29896, 29900, 29947, 29955, 29947, 29953, 29953, 29900, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29929, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29947, 1402, 29871, 29900, 29889, 29945, 29900, 29946, 29953, 29900, 29906, 29945, 29896, 29900, 29946, 29953, 29900, 29906, 29945, 29900, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 1678, 822, 1243, 29918, 14554, 29918, 955, 25245, 29918, 798, 29918, 29896, 29900, 29918, 974, 29918, 25031, 29879, 29918, 13478, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 12324, 29918, 12248, 29918, 1351, 29918, 1609, 29918, 798, 29961, 29929, 1402, 29871, 29900, 29889, 29945, 29900, 29900, 29946, 29896, 29947, 29946, 29896, 29900, 29900, 29946, 29896, 29947, 29946, 29900, 29947, 29892, 19471, 29922, 1311, 29889, 25027, 261, 749, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 13, 1678, 443, 27958, 29889, 3396, 29898, 18248, 359, 537, 29922, 29906, 29897, 2 ]
graph-algorithms/signal_tree.py
lucaspetry/algorithms-and-data-structures
0
195748
import random from graph import Graph def create_signal_tree(integers): vertices = [integers[0]] edges = [] for i in range(1, len(integers)): v1 = integers[i - 1] v2 = integers[i] if v2 not in vertices: vertices.append(v2) edges.append((v1, v2, min(v1, v2))) graph = Graph(vertices, edges, directed = False) print(graph.get_signal_tree()) integers = [1, 5, 2, 2, 7, 4, 1, 3] create_signal_tree(integers)
[ 1, 1053, 4036, 13, 3166, 3983, 1053, 12367, 13, 13, 1753, 1653, 29918, 25436, 29918, 8336, 29898, 6693, 5743, 1125, 13, 12, 1765, 1575, 353, 518, 6693, 5743, 29961, 29900, 5262, 13, 12, 287, 2710, 353, 5159, 13, 13, 12, 1454, 474, 297, 3464, 29898, 29896, 29892, 7431, 29898, 6693, 5743, 22164, 13, 12, 12, 29894, 29896, 353, 11920, 29961, 29875, 448, 29871, 29896, 29962, 13, 12, 12, 29894, 29906, 353, 11920, 29961, 29875, 29962, 13, 13, 12, 12, 361, 325, 29906, 451, 297, 13791, 29901, 13, 12, 12, 12, 1765, 1575, 29889, 4397, 29898, 29894, 29906, 29897, 13, 13, 12, 12, 287, 2710, 29889, 4397, 3552, 29894, 29896, 29892, 325, 29906, 29892, 1375, 29898, 29894, 29896, 29892, 325, 29906, 4961, 13, 13, 12, 4262, 353, 12367, 29898, 1765, 1575, 29892, 12770, 29892, 10624, 353, 7700, 29897, 13, 12, 2158, 29898, 4262, 29889, 657, 29918, 25436, 29918, 8336, 3101, 13, 13, 6693, 5743, 353, 518, 29896, 29892, 29871, 29945, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29955, 29892, 29871, 29946, 29892, 29871, 29896, 29892, 29871, 29941, 29962, 13, 3258, 29918, 25436, 29918, 8336, 29898, 6693, 5743, 29897, 2 ]
scripts/stats-bytes-converted.py
WojciechMula/parsing-int-series
19
128321
<reponame>WojciechMula/parsing-int-series<gh_stars>10-100 from generator import Generator from table import Table if __name__ == '__main__': gen = Generator() freq = {} for bi in gen.run(): k = bi.total_skip freq[k] = freq.get(k, 0) + 1 table = Table() table.add_header(["bytes processed", "patterns", "%", "cumulative %"]) cumulative = 0 for total_skip in sorted(freq.keys()): count = freq[total_skip] cumulative += count table.add_row([ '%d' % total_skip, '%d' % count, '%0.2f%%' % (100 * count/65536.0), '%0.2f%%' % (100 * cumulative/65536.0), ]) print table
[ 1, 529, 276, 1112, 420, 29958, 29956, 3848, 5295, 305, 29924, 2497, 29914, 862, 2976, 29899, 524, 29899, 13757, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 15299, 1053, 3251, 1061, 13, 3166, 1591, 1053, 6137, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 2531, 353, 3251, 1061, 580, 13, 13, 1678, 3005, 29939, 353, 6571, 13, 1678, 363, 4768, 297, 2531, 29889, 3389, 7295, 13, 4706, 413, 353, 4768, 29889, 7827, 29918, 11014, 13, 13, 4706, 3005, 29939, 29961, 29895, 29962, 353, 3005, 29939, 29889, 657, 29898, 29895, 29892, 29871, 29900, 29897, 718, 29871, 29896, 13, 13, 1678, 1591, 353, 6137, 580, 13, 1678, 1591, 29889, 1202, 29918, 6672, 29898, 3366, 13193, 19356, 613, 376, 11037, 29879, 613, 11860, 613, 376, 29883, 398, 28524, 1273, 20068, 13, 13, 1678, 13299, 28524, 353, 29871, 29900, 13, 1678, 363, 3001, 29918, 11014, 297, 12705, 29898, 29888, 7971, 29889, 8149, 580, 1125, 13, 4706, 2302, 353, 3005, 29939, 29961, 7827, 29918, 11014, 29962, 13, 4706, 13299, 28524, 4619, 2302, 13, 13, 4706, 1591, 29889, 1202, 29918, 798, 4197, 13, 9651, 14210, 29881, 29915, 1273, 3001, 29918, 11014, 29892, 13, 9651, 14210, 29881, 29915, 1273, 2302, 29892, 13, 9651, 14210, 29900, 29889, 29906, 29888, 7686, 29915, 1273, 313, 29896, 29900, 29900, 334, 2302, 29914, 29953, 29945, 29945, 29941, 29953, 29889, 29900, 511, 13, 9651, 14210, 29900, 29889, 29906, 29888, 7686, 29915, 1273, 313, 29896, 29900, 29900, 334, 13299, 28524, 29914, 29953, 29945, 29945, 29941, 29953, 29889, 29900, 511, 13, 308, 2314, 13, 13, 1678, 1596, 1591, 13, 2 ]
class15/class15_ci/app/ci.py
WesGtoX/python-selenium
0
94718
<filename>class15/class15_ci/app/ci.py from selenium.webdriver import Remote from sys import argv browser = Remote( command_executor=f'http://{argv[-1]}:4444/wd/hub', desired_capabilities={'browserName': 'firefox'} ) browser.get('http://selenium.dunossauro.live') print(browser.page_source)
[ 1, 529, 9507, 29958, 1990, 29896, 29945, 29914, 1990, 29896, 29945, 29918, 455, 29914, 932, 29914, 455, 29889, 2272, 13, 3166, 18866, 29889, 29813, 1053, 5240, 866, 13, 3166, 10876, 1053, 1852, 29894, 13, 13, 15965, 353, 5240, 866, 29898, 13, 1678, 1899, 29918, 4258, 3406, 29922, 29888, 29915, 1124, 597, 29912, 19218, 14352, 29896, 29962, 6177, 29946, 29946, 29946, 29946, 29914, 9970, 29914, 29882, 431, 742, 13, 1678, 7429, 29918, 5030, 11614, 3790, 29915, 15965, 1170, 2396, 29871, 525, 8696, 8944, 10827, 13, 29897, 13, 13, 15965, 29889, 657, 877, 1124, 597, 27373, 29889, 29881, 348, 2209, 585, 307, 29889, 9258, 1495, 13, 13, 2158, 29898, 15965, 29889, 3488, 29918, 4993, 29897, 13, 2 ]
src/rooms/tests/test_models.py
Bounty1993/my-blog
0
83759
<reponame>Bounty1993/my-blog from datetime import datetime from django.contrib.auth import get_user_model from django.db.models import Count, Sum from django.test import TestCase from src.rooms.models import Donation, Room User = get_user_model() class RoomTransactionModelTest(TestCase): fixtures = ['src/rooms/tests/fixtures.json', ] def setUp(self): self.user1 = User.objects.get(username='testuser') self.user2 = User.objects.get(username='testuser2') self.user3 = User.objects.get(username='testuser3') room1 = Room.objects.get(gift='gift1') room2 = Room.objects.get(gift='gift2') room3 = Room.objects.get(gift='gift3') room1.donate({'user': self.user1, 'amount': 500}) room2.donate({'user': self.user1, 'amount': 300}) room2.donate({'user': self.user2, 'amount': 200}) room3.donate({'user': self.user1, 'amount': 200}) room3.donate({'user': self.user2, 'amount': 200}) room3.donate({'user': self.user3, 'amount': 200}) self.room = Room.objects.get(receiver='receiver1') self.room2 = room2 def test_creation(self): room = Room.objects.get(receiver='receiver1') self.assertEqual(room.price, 1000) self.assertEqual(room.description, 'test') self.assertEqual(room.to_collect, 500) def test_str(self): room = Room.objects.get(receiver='receiver1') self.assertEqual(str(room), 'receiver1 - gift1') """ def test_save(self): before_score = self.room.score self.room.donate({'user': self.user1, 'amount': 5}) after_score = self.room.score print(self.room.score) self.assertTrue(after_score > before_score) """ def test_can_see(self): room4 = Room.objects.create( receiver='receiver3', creator=self.user1, gift='gift3', price=800, description='test', to_collect=800, visible=False, date_expires=datetime(2019, 6, 6) ) room4.guests.add(self.user2) self.assertTrue(room4.can_see(self.user1)) self.assertTrue(room4.can_see(self.user2)) self.assertFalse(room4.can_see(self.user3)) def test_percent_left(self): all_donations = ( Donation.objects .filter(room=self.room) .aggregate(Sum('amount'))['amount__sum'] ) expected = (all_donations / self.room.price) * 100 self.assertEqual(self.room.percent_left, expected) def test_percent_got(self): expected = 100 - self.room.percent_left self.assertEqual(self.room.percent_got, expected) def test_patrons_count(self): expected = (Donation.objects .filter(room=self.room2) .aggregate(Count('user'))['user__count']) self.assertEqual(self.room2.num_patrons, expected) def test_most_patrons(self): most_patrons = Room.get_visible.most_patrons() expected = Room.objects.get(receiver='receiver3') self.assertEqual(most_patrons[0], expected) def test_most_popular(self): most_collected = Room.get_visible.most_popular() expected = Room.objects.get(receiver='receiver3') self.assertEqual(most_collected[0], expected) def test_most_to_collect(self): most_to_collect = Room.get_visible.most_to_collect() expected = Room.objects.get(receiver='receiver1') self.assertEqual(most_to_collect[0], expected) def test_add_observer(self): num_observers = self.room.observers.count() self.room.add_observer(self.user1.id) num_observers += 1 self.assertEqual(self.room.observers.count(), num_observers) self.assertTrue(self.user1 in self.room.observers.all()) def test_donate(self): room = Room.objects.get(receiver='receiver1') beginning = room.to_collect donate_amount = 200 room.donate({'user': self.user1, 'amount': donate_amount}) rest = beginning - donate_amount self.assertEqual(room.to_collect, rest) room.donate({'user': self.user1, 'amount': rest}) self.assertFalse(room.is_active) self.assertEqual(room.to_collect, 0) def test_get_visible(self): room3 = Room.objects.create( receiver='receiver3', creator=self.user1, gift='gift3', price=800, description='test', to_collect=800, visible=False, date_expires=datetime(2019, 6, 6) ) query = Room.objects.get_visible(self.user3) self.assertFalse(room3 in query) room3.guests.add(self.user2) query = Room.objects.get_visible(self.user2) self.assertTrue(room3 in query) def test_get_patrons(self): room3 = Room.objects.get(receiver='receiver2') patrons = room3.get_patrons() ordered_patrons = ['testuser', 'testuser2'] self.assertEqual(list(patrons), ordered_patrons) def test_remove_guest(self): user = User.objects.first() self.room.guests.add(user) self.assertTrue(self.room.guests.filter(id=user.id)) self.room.guest_remove(user.username) self.assertFalse(self.room.guests.filter(id=user.id)) def test_get_guests_dict(self): self.room.guests.add(self.user1, self.user2) expected = [self.user1.username, self.user2.username] guest_list = self.room.get_guests_dict() self.assertEqual(guest_list, expected) class DonationModelTest(TestCase): fixtures = ['src/rooms/tests/fixtures.json'] def setUp(self): self.user1 = User.objects.get(username='testuser') self.room1 = Room.objects.get(gift='gift1') self.room1.donate({'user': self.user1, 'amount': 500}) def test_donation_exists(self): self.assertTrue(Donation.objects.exists()) def test_donation_fields(self): donation = Donation.objects.first() self.assertEqual(donation.user, self.user1) self.assertEqual(donation.amount, 500) self.assertEqual(donation.room, self.room1) self.assertEqual(donation.date, datetime.now().date()) def test_str(self): donation = Donation.objects.first() expected = f'{donation.room} - {donation.amount}' self.assertEqual(str(donation), expected)
[ 1, 529, 276, 1112, 420, 29958, 29933, 792, 29891, 29896, 29929, 29929, 29941, 29914, 1357, 29899, 7312, 13, 3166, 12865, 1053, 12865, 13, 13, 3166, 9557, 29889, 21570, 29889, 5150, 1053, 679, 29918, 1792, 29918, 4299, 13, 3166, 9557, 29889, 2585, 29889, 9794, 1053, 3917, 29892, 6991, 13, 3166, 9557, 29889, 1688, 1053, 4321, 8259, 13, 13, 3166, 4765, 29889, 18901, 29889, 9794, 1053, 3872, 362, 29892, 25114, 13, 13, 2659, 353, 679, 29918, 1792, 29918, 4299, 580, 13, 13, 13, 1990, 25114, 12460, 3195, 3057, 29898, 3057, 8259, 1125, 13, 1678, 5713, 486, 1973, 353, 6024, 4351, 29914, 18901, 29914, 21150, 29914, 7241, 486, 1973, 29889, 3126, 742, 4514, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1792, 29896, 353, 4911, 29889, 12650, 29889, 657, 29898, 6786, 2433, 1688, 1792, 1495, 13, 4706, 1583, 29889, 1792, 29906, 353, 4911, 29889, 12650, 29889, 657, 29898, 6786, 2433, 1688, 1792, 29906, 1495, 13, 4706, 1583, 29889, 1792, 29941, 353, 4911, 29889, 12650, 29889, 657, 29898, 6786, 2433, 1688, 1792, 29941, 1495, 13, 13, 4706, 5716, 29896, 353, 25114, 29889, 12650, 29889, 657, 29898, 29887, 2027, 2433, 29887, 2027, 29896, 1495, 13, 4706, 5716, 29906, 353, 25114, 29889, 12650, 29889, 657, 29898, 29887, 2027, 2433, 29887, 2027, 29906, 1495, 13, 4706, 5716, 29941, 353, 25114, 29889, 12650, 29889, 657, 29898, 29887, 2027, 2433, 29887, 2027, 29941, 1495, 13, 13, 4706, 5716, 29896, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 29871, 29945, 29900, 29900, 1800, 13, 4706, 5716, 29906, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 29871, 29941, 29900, 29900, 1800, 13, 4706, 5716, 29906, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29906, 29892, 525, 14506, 2396, 29871, 29906, 29900, 29900, 1800, 13, 4706, 5716, 29941, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 29871, 29906, 29900, 29900, 1800, 13, 4706, 5716, 29941, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29906, 29892, 525, 14506, 2396, 29871, 29906, 29900, 29900, 1800, 13, 4706, 5716, 29941, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29941, 29892, 525, 14506, 2396, 29871, 29906, 29900, 29900, 1800, 13, 13, 4706, 1583, 29889, 8345, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29896, 1495, 13, 4706, 1583, 29889, 8345, 29906, 353, 5716, 29906, 13, 13, 1678, 822, 1243, 29918, 1037, 362, 29898, 1311, 1125, 13, 4706, 5716, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29896, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 8345, 29889, 9175, 29892, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 8345, 29889, 8216, 29892, 525, 1688, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 8345, 29889, 517, 29918, 15914, 29892, 29871, 29945, 29900, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 710, 29898, 1311, 1125, 13, 4706, 5716, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29896, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 710, 29898, 8345, 511, 525, 13556, 2147, 29896, 448, 19797, 29896, 1495, 13, 13, 1678, 9995, 13, 1678, 822, 1243, 29918, 7620, 29898, 1311, 1125, 13, 4706, 1434, 29918, 13628, 353, 1583, 29889, 8345, 29889, 13628, 13, 4706, 1583, 29889, 8345, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 29871, 29945, 1800, 13, 4706, 1156, 29918, 13628, 353, 1583, 29889, 8345, 29889, 13628, 13, 4706, 1596, 29898, 1311, 29889, 8345, 29889, 13628, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 7045, 29918, 13628, 1405, 1434, 29918, 13628, 29897, 13, 1678, 9995, 13, 13, 1678, 822, 1243, 29918, 3068, 29918, 4149, 29898, 1311, 1125, 13, 4706, 5716, 29946, 353, 25114, 29889, 12650, 29889, 3258, 29898, 13, 9651, 19870, 2433, 13556, 2147, 29941, 742, 907, 1061, 29922, 1311, 29889, 1792, 29896, 29892, 19797, 2433, 29887, 2027, 29941, 742, 13, 9651, 8666, 29922, 29947, 29900, 29900, 29892, 6139, 2433, 1688, 742, 304, 29918, 15914, 29922, 29947, 29900, 29900, 29892, 13, 9651, 7962, 29922, 8824, 29892, 2635, 29918, 4548, 2658, 29922, 12673, 29898, 29906, 29900, 29896, 29929, 29892, 29871, 29953, 29892, 29871, 29953, 29897, 13, 4706, 1723, 13, 4706, 5716, 29946, 29889, 2543, 9197, 29889, 1202, 29898, 1311, 29889, 1792, 29906, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 8345, 29946, 29889, 3068, 29918, 4149, 29898, 1311, 29889, 1792, 29896, 876, 13, 4706, 1583, 29889, 9294, 5574, 29898, 8345, 29946, 29889, 3068, 29918, 4149, 29898, 1311, 29889, 1792, 29906, 876, 13, 4706, 1583, 29889, 9294, 8824, 29898, 8345, 29946, 29889, 3068, 29918, 4149, 29898, 1311, 29889, 1792, 29941, 876, 13, 13, 1678, 822, 1243, 29918, 25376, 29918, 1563, 29898, 1311, 1125, 13, 4706, 599, 29918, 9176, 800, 353, 313, 13, 9651, 3872, 362, 29889, 12650, 13, 9651, 869, 4572, 29898, 8345, 29922, 1311, 29889, 8345, 29897, 13, 9651, 869, 26193, 403, 29898, 11139, 877, 14506, 8785, 1839, 14506, 1649, 2083, 2033, 13, 4706, 1723, 13, 4706, 3806, 353, 313, 497, 29918, 9176, 800, 847, 1583, 29889, 8345, 29889, 9175, 29897, 334, 29871, 29896, 29900, 29900, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1311, 29889, 8345, 29889, 25376, 29918, 1563, 29892, 3806, 29897, 13, 13, 1678, 822, 1243, 29918, 25376, 29918, 7085, 29898, 1311, 1125, 13, 4706, 3806, 353, 29871, 29896, 29900, 29900, 448, 1583, 29889, 8345, 29889, 25376, 29918, 1563, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1311, 29889, 8345, 29889, 25376, 29918, 7085, 29892, 3806, 29897, 13, 13, 1678, 822, 1243, 29918, 5031, 12628, 29918, 2798, 29898, 1311, 1125, 13, 4706, 3806, 353, 313, 10310, 362, 29889, 12650, 13, 462, 1678, 869, 4572, 29898, 8345, 29922, 1311, 29889, 8345, 29906, 29897, 13, 462, 1678, 869, 26193, 403, 29898, 3981, 877, 1792, 8785, 1839, 1792, 1649, 2798, 11287, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1311, 29889, 8345, 29906, 29889, 1949, 29918, 5031, 12628, 29892, 3806, 29897, 13, 13, 1678, 822, 1243, 29918, 3242, 29918, 5031, 12628, 29898, 1311, 1125, 13, 4706, 1556, 29918, 5031, 12628, 353, 25114, 29889, 657, 29918, 12872, 29889, 3242, 29918, 5031, 12628, 580, 13, 4706, 3806, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29941, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 3242, 29918, 5031, 12628, 29961, 29900, 1402, 3806, 29897, 13, 13, 1678, 822, 1243, 29918, 3242, 29918, 7323, 1070, 29898, 1311, 1125, 13, 4706, 1556, 29918, 15914, 287, 353, 25114, 29889, 657, 29918, 12872, 29889, 3242, 29918, 7323, 1070, 580, 13, 4706, 3806, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29941, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 3242, 29918, 15914, 287, 29961, 29900, 1402, 3806, 29897, 13, 13, 1678, 822, 1243, 29918, 3242, 29918, 517, 29918, 15914, 29898, 1311, 1125, 13, 4706, 1556, 29918, 517, 29918, 15914, 353, 25114, 29889, 657, 29918, 12872, 29889, 3242, 29918, 517, 29918, 15914, 580, 13, 4706, 3806, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29896, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 3242, 29918, 517, 29918, 15914, 29961, 29900, 1402, 3806, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 711, 2974, 29898, 1311, 1125, 13, 4706, 954, 29918, 711, 643, 874, 353, 1583, 29889, 8345, 29889, 711, 643, 874, 29889, 2798, 580, 13, 4706, 1583, 29889, 8345, 29889, 1202, 29918, 711, 2974, 29898, 1311, 29889, 1792, 29896, 29889, 333, 29897, 13, 4706, 954, 29918, 711, 643, 874, 4619, 29871, 29896, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1311, 29889, 8345, 29889, 711, 643, 874, 29889, 2798, 3285, 954, 29918, 711, 643, 874, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1311, 29889, 1792, 29896, 297, 1583, 29889, 8345, 29889, 711, 643, 874, 29889, 497, 3101, 13, 13, 1678, 822, 1243, 29918, 9176, 403, 29898, 1311, 1125, 13, 4706, 5716, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29896, 1495, 13, 4706, 6763, 353, 5716, 29889, 517, 29918, 15914, 13, 4706, 1016, 403, 29918, 14506, 353, 29871, 29906, 29900, 29900, 13, 13, 4706, 5716, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 1016, 403, 29918, 14506, 1800, 13, 4706, 1791, 353, 6763, 448, 1016, 403, 29918, 14506, 13, 4706, 1583, 29889, 9294, 9843, 29898, 8345, 29889, 517, 29918, 15914, 29892, 1791, 29897, 13, 13, 4706, 5716, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 1791, 1800, 13, 4706, 1583, 29889, 9294, 8824, 29898, 8345, 29889, 275, 29918, 4925, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 8345, 29889, 517, 29918, 15914, 29892, 29871, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 12872, 29898, 1311, 1125, 13, 4706, 5716, 29941, 353, 25114, 29889, 12650, 29889, 3258, 29898, 13, 9651, 19870, 2433, 13556, 2147, 29941, 742, 907, 1061, 29922, 1311, 29889, 1792, 29896, 29892, 13, 9651, 19797, 2433, 29887, 2027, 29941, 742, 8666, 29922, 29947, 29900, 29900, 29892, 6139, 2433, 1688, 742, 13, 9651, 304, 29918, 15914, 29922, 29947, 29900, 29900, 29892, 7962, 29922, 8824, 29892, 13, 9651, 2635, 29918, 4548, 2658, 29922, 12673, 29898, 29906, 29900, 29896, 29929, 29892, 29871, 29953, 29892, 29871, 29953, 29897, 13, 4706, 1723, 13, 4706, 2346, 353, 25114, 29889, 12650, 29889, 657, 29918, 12872, 29898, 1311, 29889, 1792, 29941, 29897, 13, 4706, 1583, 29889, 9294, 8824, 29898, 8345, 29941, 297, 2346, 29897, 13, 4706, 5716, 29941, 29889, 2543, 9197, 29889, 1202, 29898, 1311, 29889, 1792, 29906, 29897, 13, 4706, 2346, 353, 25114, 29889, 12650, 29889, 657, 29918, 12872, 29898, 1311, 29889, 1792, 29906, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 8345, 29941, 297, 2346, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 5031, 12628, 29898, 1311, 1125, 13, 4706, 5716, 29941, 353, 25114, 29889, 12650, 29889, 657, 29898, 13556, 2147, 2433, 13556, 2147, 29906, 1495, 13, 4706, 2373, 12628, 353, 5716, 29941, 29889, 657, 29918, 5031, 12628, 580, 13, 4706, 10372, 29918, 5031, 12628, 353, 6024, 1688, 1792, 742, 525, 1688, 1792, 29906, 2033, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1761, 29898, 5031, 12628, 511, 10372, 29918, 5031, 12628, 29897, 13, 13, 1678, 822, 1243, 29918, 5992, 29918, 2543, 342, 29898, 1311, 1125, 13, 4706, 1404, 353, 4911, 29889, 12650, 29889, 4102, 580, 13, 4706, 1583, 29889, 8345, 29889, 2543, 9197, 29889, 1202, 29898, 1792, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1311, 29889, 8345, 29889, 2543, 9197, 29889, 4572, 29898, 333, 29922, 1792, 29889, 333, 876, 13, 4706, 1583, 29889, 8345, 29889, 2543, 342, 29918, 5992, 29898, 1792, 29889, 6786, 29897, 13, 4706, 1583, 29889, 9294, 8824, 29898, 1311, 29889, 8345, 29889, 2543, 9197, 29889, 4572, 29898, 333, 29922, 1792, 29889, 333, 876, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 2543, 9197, 29918, 8977, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8345, 29889, 2543, 9197, 29889, 1202, 29898, 1311, 29889, 1792, 29896, 29892, 1583, 29889, 1792, 29906, 29897, 13, 4706, 3806, 353, 518, 1311, 29889, 1792, 29896, 29889, 6786, 29892, 1583, 29889, 1792, 29906, 29889, 6786, 29962, 13, 4706, 17838, 29918, 1761, 353, 1583, 29889, 8345, 29889, 657, 29918, 2543, 9197, 29918, 8977, 580, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2543, 342, 29918, 1761, 29892, 3806, 29897, 13, 13, 13, 1990, 3872, 362, 3195, 3057, 29898, 3057, 8259, 1125, 13, 1678, 5713, 486, 1973, 353, 6024, 4351, 29914, 18901, 29914, 21150, 29914, 7241, 486, 1973, 29889, 3126, 2033, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1792, 29896, 353, 4911, 29889, 12650, 29889, 657, 29898, 6786, 2433, 1688, 1792, 1495, 13, 4706, 1583, 29889, 8345, 29896, 353, 25114, 29889, 12650, 29889, 657, 29898, 29887, 2027, 2433, 29887, 2027, 29896, 1495, 13, 4706, 1583, 29889, 8345, 29896, 29889, 9176, 403, 3319, 29915, 1792, 2396, 1583, 29889, 1792, 29896, 29892, 525, 14506, 2396, 29871, 29945, 29900, 29900, 1800, 13, 13, 1678, 822, 1243, 29918, 9176, 362, 29918, 9933, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 5574, 29898, 10310, 362, 29889, 12650, 29889, 9933, 3101, 13, 13, 1678, 822, 1243, 29918, 9176, 362, 29918, 9621, 29898, 1311, 1125, 13, 4706, 1016, 362, 353, 3872, 362, 29889, 12650, 29889, 4102, 580, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9176, 362, 29889, 1792, 29892, 1583, 29889, 1792, 29896, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9176, 362, 29889, 14506, 29892, 29871, 29945, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9176, 362, 29889, 8345, 29892, 1583, 29889, 8345, 29896, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9176, 362, 29889, 1256, 29892, 12865, 29889, 3707, 2141, 1256, 3101, 13, 13, 1678, 822, 1243, 29918, 710, 29898, 1311, 1125, 13, 4706, 1016, 362, 353, 3872, 362, 29889, 12650, 29889, 4102, 580, 13, 4706, 3806, 353, 285, 29915, 29912, 9176, 362, 29889, 8345, 29913, 448, 426, 9176, 362, 29889, 14506, 10162, 13, 4706, 1583, 29889, 9294, 9843, 29898, 710, 29898, 9176, 362, 511, 3806, 29897, 13, 2 ]
api/app/database.py
Le96/todays-mazai
0
47420
import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker USER = os.getenv("DB_USER") PASS = os.getenv("DB_PASSWORD") HOST = os.getenv("DB_HOST") PORT = os.getenv("DB_PORT") SCHEMA = os.getenv("DB_SCHEMA") SQLALCHEMY_DATABASE_URL = f"postgresql+psycopg2://{USER}:{PASS}@{HOST}:{PORT}/{SCHEMA}" engine = create_engine(SQLALCHEMY_DATABASE_URL) Session = sessionmaker(bind=engine, autoflush=False, autocommit=False) Base = declarative_base() def get_session(): session = Session() try: yield session finally: session.close()
[ 1, 1053, 2897, 13, 13, 3166, 4576, 284, 305, 6764, 1053, 1653, 29918, 10599, 13, 3166, 4576, 284, 305, 6764, 29889, 1062, 29889, 311, 16544, 1230, 1053, 7669, 1230, 29918, 3188, 13, 3166, 4576, 284, 305, 6764, 29889, 555, 1053, 4867, 28107, 13, 13, 11889, 353, 2897, 29889, 657, 6272, 703, 4051, 29918, 11889, 1159, 13, 25711, 353, 2897, 29889, 657, 6272, 703, 4051, 29918, 25711, 17013, 1159, 13, 20832, 353, 2897, 29889, 657, 6272, 703, 4051, 29918, 20832, 1159, 13, 15082, 353, 2897, 29889, 657, 6272, 703, 4051, 29918, 15082, 1159, 13, 29903, 3210, 26862, 353, 2897, 29889, 657, 6272, 703, 4051, 29918, 29903, 3210, 26862, 1159, 13, 13, 4176, 1964, 3210, 12665, 29979, 29918, 25832, 27982, 29918, 4219, 353, 285, 29908, 29272, 29974, 567, 29891, 9708, 29887, 29906, 597, 29912, 11889, 6177, 29912, 25711, 29913, 28312, 20832, 6177, 29912, 15082, 6822, 29912, 29903, 3210, 26862, 5038, 13, 10599, 353, 1653, 29918, 10599, 29898, 4176, 1964, 3210, 12665, 29979, 29918, 25832, 27982, 29918, 4219, 29897, 13, 13, 7317, 353, 4867, 28107, 29898, 5355, 29922, 10599, 29892, 1120, 974, 29880, 1878, 29922, 8824, 29892, 4469, 15060, 29922, 8824, 29897, 13, 13, 5160, 353, 7669, 1230, 29918, 3188, 580, 13, 13, 13, 1753, 679, 29918, 7924, 7295, 13, 1678, 4867, 353, 16441, 580, 13, 1678, 1018, 29901, 13, 4706, 7709, 4867, 13, 1678, 7146, 29901, 13, 4706, 4867, 29889, 5358, 580, 13, 2 ]
civis/io/_databases.py
elsander/civis-python
0
74490
<filename>civis/io/_databases.py from __future__ import absolute_import import logging from civis import APIClient from civis._utils import maybe_get_random_name from civis.futures import CivisFuture from civis._deprecation import deprecate_param log = logging.getLogger(__name__) @deprecate_param('v2.0.0', 'api_key') def query_civis(sql, database, api_key=None, client=None, credential_id=None, preview_rows=10, polling_interval=None, hidden=True): """Execute a SQL statement as a Civis query. Run a query that may return no results or where only a small preview is required. To execute a query that returns a large number of rows, see :func:`~civis.io.read_civis_sql`. Parameters ---------- sql : str The SQL statement to execute. database : str or int The name or ID of the database. api_key : DEPRECATED str, optional Your Civis API key. If not given, the :envvar:`CIVIS_API_KEY` environment variable will be used. client : :class:`civis.APIClient`, optional If not provided, an :class:`civis.APIClient` object will be created from the :envvar:`CIVIS_API_KEY`. credential_id : str or int, optional The ID of the database credential. If ``None``, the default credential will be used. preview_rows : int, optional The maximum number of rows to return. No more than 100 rows can be returned at once. polling_interval : int or float, optional Number of seconds to wait between checks for query completion. hidden : bool, optional If ``True`` (the default), this job will not appear in the Civis UI. Returns ------- results : :class:`~civis.futures.CivisFuture` A `CivisFuture` object. Examples -------- >>> run = query_civis(sql="DELETE schema.table", database='database') >>> run.result() # Wait for query to complete """ if client is None: client = APIClient(api_key=api_key) database_id = client.get_database_id(database) cred_id = credential_id or client.default_credential resp = client.queries.post(database_id, sql, preview_rows, credential=cred_id, hidden=hidden) return CivisFuture(client.queries.get, (resp.id, ), polling_interval, client=client, poll_on_creation=False) @deprecate_param('v2.0.0', 'api_key') def transfer_table(source_db, dest_db, source_table, dest_table, job_name=None, api_key=None, client=None, source_credential_id=None, dest_credential_id=None, polling_interval=None, **advanced_options): """Transfer a table from one location to another. Parameters ---------- source_db : str or int The name of the database where the source table is located. Optionally, could be the database ID. dest_db : str or int The name of the database where the table will be transfered. Optionally, could be the database ID. source_table : str Full name of the table to transfer, e.g., ``'schema.table'``. dest_table : str Full name of the table in the destination database, e.g., ``'schema.table'``. job_name : str, optional A name to give the job. If omitted, a random job name will be used. api_key : DEPRECATED str, optional Your Civis API key. If not given, the :envvar:`CIVIS_API_KEY` environment variable will be used. client : :class:`civis.APIClient`, optional If not provided, an :class:`civis.APIClient` object will be created from the :envvar:`CIVIS_API_KEY`. source_credential_id : str or int, optional Optional credential ID for the source database. If ``None``, the default credential will be used. dest_credential_id : str or int, optional Optional credential ID for the destination database. If ``None``, the default credential will be used. polling_interval : int or float, optional Number of seconds to wait between checks for job completion. **advanced_options : kwargs Extra keyword arguments will be passed to the import sync job. See :func:`~civis.resources._resources.Imports.post_syncs`. Returns ------- results : :class:`~civis.futures.CivisFuture` A `CivisFuture` object. Examples -------- >>> transfer_table(source_db='Cluster A', dest_db='Cluster B', ... source_table='schma.tbl', dest_table='schma.tbl') """ if client is None: client = APIClient(api_key=api_key) source_cred_id = source_credential_id or client.default_credential dest_cred_id = dest_credential_id or client.default_credential job_name = maybe_get_random_name(job_name) source = { 'remote_host_id': client.get_database_id(source_db), 'credential_id': source_cred_id } destination = { 'remote_host_id': client.get_database_id(dest_db), 'credential_id': dest_cred_id } job_id = client.imports.post(job_name, "Dbsync", True, source=source, destination=destination).id client.imports.post_syncs(id=job_id, source={'path': source_table}, destination={'path': dest_table}, advanced_options=advanced_options) run_id = client.imports.post_runs(id=job_id).run_id log.debug('Started run %d of sync for import %d', run_id, job_id) fut = CivisFuture(client.imports.get_files_runs, (job_id, run_id), polling_interval=polling_interval, client=client, poll_on_creation=False) return fut
[ 1, 529, 9507, 29958, 29883, 440, 275, 29914, 601, 19891, 29503, 2129, 29889, 2272, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 13, 5215, 12183, 13, 13, 3166, 14175, 275, 1053, 3450, 4032, 13, 3166, 14175, 275, 3032, 13239, 1053, 5505, 29918, 657, 29918, 8172, 29918, 978, 13, 3166, 14175, 275, 29889, 29888, 329, 1973, 1053, 315, 440, 275, 20154, 13, 3166, 14175, 275, 3032, 311, 1457, 9252, 1053, 16460, 403, 29918, 3207, 13, 13, 1188, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 29992, 311, 17990, 403, 29918, 3207, 877, 29894, 29906, 29889, 29900, 29889, 29900, 742, 525, 2754, 29918, 1989, 1495, 13, 1753, 2346, 29918, 29883, 440, 275, 29898, 2850, 29892, 2566, 29892, 7882, 29918, 1989, 29922, 8516, 29892, 3132, 29922, 8516, 29892, 6625, 2556, 29918, 333, 29922, 8516, 29892, 13, 18884, 25267, 29918, 5727, 29922, 29896, 29900, 29892, 1248, 1847, 29918, 19207, 29922, 8516, 29892, 7934, 29922, 5574, 1125, 13, 1678, 9995, 12296, 263, 3758, 3229, 408, 263, 315, 440, 275, 2346, 29889, 13, 13, 1678, 7525, 263, 2346, 393, 1122, 736, 694, 2582, 470, 988, 871, 263, 2319, 13, 1678, 25267, 338, 3734, 29889, 1763, 6222, 263, 2346, 393, 3639, 263, 2919, 1353, 13, 1678, 310, 4206, 29892, 1074, 584, 9891, 18078, 30022, 29883, 440, 275, 29889, 601, 29889, 949, 29918, 29883, 440, 275, 29918, 2850, 1412, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 4576, 584, 851, 13, 4706, 450, 3758, 3229, 304, 6222, 29889, 13, 1678, 2566, 584, 851, 470, 938, 13, 4706, 450, 1024, 470, 3553, 310, 278, 2566, 29889, 13, 1678, 7882, 29918, 1989, 584, 5012, 15094, 29907, 3040, 29928, 851, 29892, 13136, 13, 4706, 3575, 315, 440, 275, 3450, 1820, 29889, 960, 451, 2183, 29892, 278, 584, 6272, 1707, 18078, 29907, 5667, 3235, 29918, 8787, 29918, 10818, 29952, 13, 4706, 5177, 2286, 674, 367, 1304, 29889, 13, 1678, 3132, 584, 584, 1990, 18078, 29883, 440, 275, 29889, 8787, 4032, 1673, 13136, 13, 4706, 960, 451, 4944, 29892, 385, 584, 1990, 18078, 29883, 440, 275, 29889, 8787, 4032, 29952, 1203, 674, 367, 13, 4706, 2825, 515, 278, 584, 6272, 1707, 18078, 29907, 5667, 3235, 29918, 8787, 29918, 10818, 1412, 13, 1678, 6625, 2556, 29918, 333, 584, 851, 470, 938, 29892, 13136, 13, 4706, 450, 3553, 310, 278, 2566, 6625, 2556, 29889, 960, 4954, 8516, 29952, 1673, 278, 2322, 13, 4706, 6625, 2556, 674, 367, 1304, 29889, 13, 1678, 25267, 29918, 5727, 584, 938, 29892, 13136, 13, 4706, 450, 7472, 1353, 310, 4206, 304, 736, 29889, 1939, 901, 1135, 29871, 29896, 29900, 29900, 4206, 508, 367, 13, 4706, 4133, 472, 2748, 29889, 13, 1678, 1248, 1847, 29918, 19207, 584, 938, 470, 5785, 29892, 13136, 13, 4706, 9681, 310, 6923, 304, 4480, 1546, 12747, 363, 2346, 13285, 29889, 13, 1678, 7934, 584, 6120, 29892, 13136, 13, 4706, 960, 4954, 5574, 16159, 313, 1552, 2322, 511, 445, 4982, 674, 451, 2615, 297, 278, 315, 440, 275, 3740, 29889, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 2582, 584, 584, 1990, 18078, 30022, 29883, 440, 275, 29889, 29888, 329, 1973, 29889, 29907, 440, 275, 20154, 29952, 13, 4706, 319, 421, 29907, 440, 275, 20154, 29952, 1203, 29889, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 1065, 353, 2346, 29918, 29883, 440, 275, 29898, 2850, 543, 2287, 18476, 10938, 29889, 2371, 613, 2566, 2433, 9803, 1495, 13, 1678, 8653, 1065, 29889, 2914, 580, 29871, 396, 20340, 363, 2346, 304, 4866, 13, 1678, 9995, 13, 1678, 565, 3132, 338, 6213, 29901, 13, 4706, 3132, 353, 3450, 4032, 29898, 2754, 29918, 1989, 29922, 2754, 29918, 1989, 29897, 13, 1678, 2566, 29918, 333, 353, 3132, 29889, 657, 29918, 9803, 29918, 333, 29898, 9803, 29897, 13, 1678, 6625, 29918, 333, 353, 6625, 2556, 29918, 333, 470, 3132, 29889, 4381, 29918, 11944, 2556, 13, 1678, 4613, 353, 3132, 29889, 339, 6358, 29889, 2490, 29898, 9803, 29918, 333, 29892, 13, 462, 1669, 4576, 29892, 13, 462, 1669, 25267, 29918, 5727, 29892, 13, 462, 1669, 6625, 2556, 29922, 11944, 29918, 333, 29892, 13, 462, 1669, 7934, 29922, 10892, 29897, 13, 1678, 736, 315, 440, 275, 20154, 29898, 4645, 29889, 339, 6358, 29889, 657, 29892, 313, 13713, 29889, 333, 29892, 10353, 1248, 1847, 29918, 19207, 29892, 13, 462, 539, 3132, 29922, 4645, 29892, 21180, 29918, 265, 29918, 1037, 362, 29922, 8824, 29897, 13, 13, 13, 29992, 311, 17990, 403, 29918, 3207, 877, 29894, 29906, 29889, 29900, 29889, 29900, 742, 525, 2754, 29918, 1989, 1495, 13, 1753, 6782, 29918, 2371, 29898, 4993, 29918, 2585, 29892, 2731, 29918, 2585, 29892, 2752, 29918, 2371, 29892, 2731, 29918, 2371, 29892, 13, 462, 259, 4982, 29918, 978, 29922, 8516, 29892, 7882, 29918, 1989, 29922, 8516, 29892, 3132, 29922, 8516, 29892, 13, 462, 259, 2752, 29918, 11944, 2556, 29918, 333, 29922, 8516, 29892, 2731, 29918, 11944, 2556, 29918, 333, 29922, 8516, 29892, 13, 462, 259, 1248, 1847, 29918, 19207, 29922, 8516, 29892, 3579, 328, 16858, 29918, 6768, 1125, 13, 1678, 9995, 4300, 571, 263, 1591, 515, 697, 4423, 304, 1790, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 2752, 29918, 2585, 584, 851, 470, 938, 13, 4706, 450, 1024, 310, 278, 2566, 988, 278, 2752, 1591, 338, 5982, 29889, 13, 4706, 10831, 635, 29892, 1033, 367, 278, 2566, 3553, 29889, 13, 1678, 2731, 29918, 2585, 584, 851, 470, 938, 13, 4706, 450, 1024, 310, 278, 2566, 988, 278, 1591, 674, 367, 6782, 287, 29889, 13, 4706, 10831, 635, 29892, 1033, 367, 278, 2566, 3553, 29889, 13, 1678, 2752, 29918, 2371, 584, 851, 13, 4706, 14846, 1024, 310, 278, 1591, 304, 6782, 29892, 321, 29889, 29887, 1696, 4954, 29915, 11010, 29889, 2371, 11120, 1412, 13, 1678, 2731, 29918, 2371, 584, 851, 13, 4706, 14846, 1024, 310, 278, 1591, 297, 278, 12551, 2566, 29892, 321, 29889, 29887, 1696, 13, 4706, 4954, 29915, 11010, 29889, 2371, 11120, 1412, 13, 1678, 4982, 29918, 978, 584, 851, 29892, 13136, 13, 4706, 319, 1024, 304, 2367, 278, 4982, 29889, 960, 25811, 29892, 263, 4036, 4982, 1024, 674, 367, 13, 4706, 1304, 29889, 13, 1678, 7882, 29918, 1989, 584, 5012, 15094, 29907, 3040, 29928, 851, 29892, 13136, 13, 4706, 3575, 315, 440, 275, 3450, 1820, 29889, 960, 451, 2183, 29892, 278, 584, 6272, 1707, 18078, 29907, 5667, 3235, 29918, 8787, 29918, 10818, 29952, 13, 4706, 5177, 2286, 674, 367, 1304, 29889, 13, 1678, 3132, 584, 584, 1990, 18078, 29883, 440, 275, 29889, 8787, 4032, 1673, 13136, 13, 4706, 960, 451, 4944, 29892, 385, 584, 1990, 18078, 29883, 440, 275, 29889, 8787, 4032, 29952, 1203, 674, 367, 13, 4706, 2825, 515, 278, 584, 6272, 1707, 18078, 29907, 5667, 3235, 29918, 8787, 29918, 10818, 1412, 13, 1678, 2752, 29918, 11944, 2556, 29918, 333, 584, 851, 470, 938, 29892, 13136, 13, 4706, 28379, 6625, 2556, 3553, 363, 278, 2752, 2566, 29889, 960, 4954, 8516, 29952, 1673, 278, 13, 4706, 2322, 6625, 2556, 674, 367, 1304, 29889, 13, 1678, 2731, 29918, 11944, 2556, 29918, 333, 584, 851, 470, 938, 29892, 13136, 13, 4706, 28379, 6625, 2556, 3553, 363, 278, 12551, 2566, 29889, 960, 4954, 8516, 29952, 1673, 13, 4706, 278, 2322, 6625, 2556, 674, 367, 1304, 29889, 13, 1678, 1248, 1847, 29918, 19207, 584, 938, 470, 5785, 29892, 13136, 13, 4706, 9681, 310, 6923, 304, 4480, 1546, 12747, 363, 4982, 13285, 29889, 13, 1678, 3579, 328, 16858, 29918, 6768, 584, 9049, 5085, 13, 4706, 7338, 336, 13553, 6273, 674, 367, 4502, 304, 278, 1053, 16523, 4982, 29889, 2823, 13, 4706, 584, 9891, 18078, 30022, 29883, 440, 275, 29889, 13237, 3032, 13237, 29889, 1888, 4011, 29889, 2490, 29918, 19274, 2395, 1412, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 2582, 584, 584, 1990, 18078, 30022, 29883, 440, 275, 29889, 29888, 329, 1973, 29889, 29907, 440, 275, 20154, 29952, 13, 4706, 319, 421, 29907, 440, 275, 20154, 29952, 1203, 29889, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 6782, 29918, 2371, 29898, 4993, 29918, 2585, 2433, 6821, 5402, 319, 742, 2731, 29918, 2585, 2433, 6821, 5402, 350, 742, 13, 1678, 2023, 18884, 2752, 29918, 2371, 2433, 816, 655, 29889, 16400, 742, 2731, 29918, 2371, 2433, 816, 655, 29889, 16400, 1495, 13, 1678, 9995, 13, 1678, 565, 3132, 338, 6213, 29901, 13, 4706, 3132, 353, 3450, 4032, 29898, 2754, 29918, 1989, 29922, 2754, 29918, 1989, 29897, 13, 1678, 2752, 29918, 11944, 29918, 333, 353, 2752, 29918, 11944, 2556, 29918, 333, 470, 3132, 29889, 4381, 29918, 11944, 2556, 13, 1678, 2731, 29918, 11944, 29918, 333, 353, 2731, 29918, 11944, 2556, 29918, 333, 470, 3132, 29889, 4381, 29918, 11944, 2556, 13, 1678, 4982, 29918, 978, 353, 5505, 29918, 657, 29918, 8172, 29918, 978, 29898, 9057, 29918, 978, 29897, 13, 1678, 2752, 353, 426, 13, 4706, 525, 16674, 29918, 3069, 29918, 333, 2396, 3132, 29889, 657, 29918, 9803, 29918, 333, 29898, 4993, 29918, 2585, 511, 13, 4706, 525, 11944, 2556, 29918, 333, 2396, 2752, 29918, 11944, 29918, 333, 13, 1678, 500, 13, 1678, 12551, 353, 426, 13, 4706, 525, 16674, 29918, 3069, 29918, 333, 2396, 3132, 29889, 657, 29918, 9803, 29918, 333, 29898, 7854, 29918, 2585, 511, 13, 4706, 525, 11944, 2556, 29918, 333, 2396, 2731, 29918, 11944, 29918, 333, 13, 1678, 500, 13, 1678, 4982, 29918, 333, 353, 3132, 29889, 326, 4011, 29889, 2490, 29898, 9057, 29918, 978, 29892, 376, 29928, 5824, 2720, 613, 5852, 29892, 2752, 29922, 4993, 29892, 13, 462, 462, 12551, 29922, 23848, 467, 333, 13, 13, 1678, 3132, 29889, 326, 4011, 29889, 2490, 29918, 19274, 2395, 29898, 333, 29922, 9057, 29918, 333, 29892, 13, 462, 795, 2752, 3790, 29915, 2084, 2396, 2752, 29918, 2371, 1118, 13, 462, 795, 12551, 3790, 29915, 2084, 2396, 2731, 29918, 2371, 1118, 13, 462, 795, 12862, 29918, 6768, 29922, 328, 16858, 29918, 6768, 29897, 13, 1678, 1065, 29918, 333, 353, 3132, 29889, 326, 4011, 29889, 2490, 29918, 3389, 29879, 29898, 333, 29922, 9057, 29918, 333, 467, 3389, 29918, 333, 13, 1678, 1480, 29889, 8382, 877, 4763, 287, 1065, 1273, 29881, 310, 16523, 363, 1053, 1273, 29881, 742, 1065, 29918, 333, 29892, 4982, 29918, 333, 29897, 13, 1678, 3105, 353, 315, 440, 275, 20154, 29898, 4645, 29889, 326, 4011, 29889, 657, 29918, 5325, 29918, 3389, 29879, 29892, 313, 9057, 29918, 333, 29892, 1065, 29918, 333, 511, 13, 462, 418, 1248, 1847, 29918, 19207, 29922, 3733, 1847, 29918, 19207, 29892, 3132, 29922, 4645, 29892, 13, 462, 418, 21180, 29918, 265, 29918, 1037, 362, 29922, 8824, 29897, 13, 1678, 736, 3105, 13, 2 ]
playlist_everywhere/application/__init__.py
kde713/playlist-everywhere
4
1606175
<gh_stars>1-10 from playlist_everywhere.application.cli import CliApplication
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 1708, 1761, 29918, 17991, 3062, 29889, 6214, 29889, 11303, 1053, 315, 492, 4873, 13, 2 ]
models/rnn_model.py
intelligent-control-lab/MEKF_MAME
13
111959
<reponame>intelligent-control-lab/MEKF_MAME # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import torch import torch.nn as nn import torch.nn.functional as F class RNNEncoder(nn.Module): """RNN encoder.""" def __init__( self, cell_type='lstm', feat_dim=3, hidden_size=128, num_layers=1, dropout_fc=0.1, dropout_rnn=0.0, bidirectional=False,**kwargs): super(RNNEncoder, self).__init__() self.cell_type = cell_type.lower() self.feat_dim = feat_dim self.num_layers = num_layers self.dropout_fc = dropout_fc self.dropout_rnn = dropout_rnn self.bidirectional = bidirectional self.hidden_size = hidden_size input_size = feat_dim if self.cell_type == 'lstm': self.rnn = LSTM(input_size=input_size, hidden_size=hidden_size, num_layers=num_layers, bidirectional=bidirectional, dropout=self.dropout_rnn) elif self.cell_type == 'gru': self.rnn = GRU(input_size=input_size, hidden_size=hidden_size, num_layers=num_layers, bidirectional=bidirectional, dropout=self.dropout_rnn) else: self.rnn = RNN(input_size=input_size, hidden_size=hidden_size, num_layers=num_layers, bidirectional=bidirectional, dropout=self.dropout_rnn) self.output_units = hidden_size if bidirectional: self.output_units *= 2 def forward(self, src_seq): x = src_seq # B x T x C -> T x B x C x = x.transpose(0, 1) encoder_out, h_t = self.rnn(x) if self.cell_type == 'lstm': final_hiddens, final_cells = h_t else: final_hiddens, final_cells = h_t, None if self.dropout_fc>0: encoder_out = F.dropout(encoder_out, p=self.dropout_fc, training=self.training) if self.bidirectional: batch_size = src_seq.size(0) def combine_bidir(outs): out = outs.view(self.num_layers, 2, batch_size, -1).transpose(1, 2).contiguous() return out.view(self.num_layers, batch_size, -1) final_hiddens = combine_bidir(final_hiddens) if self.cell_type == 'lstm': final_cells = combine_bidir(final_cells) # T x B x C -> B x T x C encoder_out = encoder_out.transpose(0, 1) final_hiddens = final_hiddens.transpose(0, 1) if self.cell_type == 'lstm': final_cells = final_cells.transpose(0, 1) return encoder_out, (final_hiddens, final_cells) class AttentionLayer(nn.Module): def __init__(self, input_embed_dim, source_embed_dim, output_embed_dim, bias=False): super(AttentionLayer, self).__init__() self.input_proj = Linear(input_embed_dim, source_embed_dim, bias=bias) self.output_proj = Linear(input_embed_dim + source_embed_dim, output_embed_dim, bias=bias) def forward(self, input, source_hids, encoder_padding_mask=None): # input: bsz x input_embed_dim # source_hids: srclen x bsz x output_embed_dim # x: bsz x output_embed_dim x = self.input_proj(input) # compute attention attn_scores = (source_hids * x.unsqueeze(0)).sum(dim=2) # don't attend over padding if encoder_padding_mask is not None: attn_scores = attn_scores.float().masked_fill_( encoder_padding_mask, float('-inf') ).type_as(attn_scores) # FP16 support: cast to float and back attn_scores = F.softmax(attn_scores, dim=0) # srclen x bsz # sum weighted sources x = (attn_scores.unsqueeze(2) * source_hids).sum(dim=0) out = torch.cat((x, input), dim=1) x = F.tanh(self.output_proj(out)) return x, attn_scores class RNNDecoder(nn.Module): """RNN decoder.""" def __init__( self, cell_type='lstm', feat_dim=3, hidden_size=128, num_layers=1, dropout_fc=0.1, dropout_rnn=0.0, encoder_output_units=128, max_seq_len=10, attention=True, traj_attn_intent_dim=0,**kwargs): super(RNNDecoder, self).__init__() self.cell_type = cell_type.lower() self.dropout_fc = dropout_fc self.dropout_rnn = dropout_rnn self.hidden_size = hidden_size self.encoder_output_units = encoder_output_units self.num_layers = num_layers self.max_seq_len = max_seq_len self.feat_dim = feat_dim self.traj_attn_intent_dim =traj_attn_intent_dim input_size = feat_dim if encoder_output_units != hidden_size: self.encoder_hidden_proj = Linear(encoder_output_units, hidden_size) if self.cell_type == 'lstm': self.encoder_cell_proj = Linear(encoder_output_units, hidden_size) else: self.encoder_cell_proj = None else: self.encoder_hidden_proj = self.encoder_cell_proj = None if self.cell_type == 'lstm': self.cell = LSTM elif self.cell_type == 'gru': self.cell = GRU else: self.cell = RNN self.rnn = self.cell(input_size=input_size, hidden_size=hidden_size, bidirectional=False, dropout=self.dropout_rnn, num_layers=num_layers) if attention: self.attention = AttentionLayer(hidden_size, encoder_output_units, hidden_size, bias=False) else: self.attention = None self.output_projection = Linear(hidden_size, feat_dim) if traj_attn_intent_dim>0: self.traj_attn_fc = Linear(hidden_size, traj_attn_intent_dim) def forward(self, encoder_out_list, start_decode=None, encoder_mask=None): x = start_decode.unsqueeze(1) bsz = x.size(0) # get outputs from encoder encoder_outs, (encoder_hiddens, encoder_cells) = encoder_out_list # B x T x C -> T x B x C encoder_outs = encoder_outs.transpose(0, 1) encoder_hiddens = encoder_hiddens.transpose(0, 1) if encoder_mask is not None: encoder_mask = encoder_mask.transpose(0, 1) prev_hiddens = [encoder_hiddens[i] for i in range(self.num_layers)] if self.cell_type == 'lstm': encoder_cells = encoder_cells.transpose(0, 1) prev_cells = [encoder_cells[i] for i in range(self.num_layers)] x = x.transpose(0, 1) srclen = encoder_outs.size(0) # initialize previous states if self.encoder_hidden_proj is not None: prev_hiddens = [self.encoder_hidden_proj(x) for x in prev_hiddens] prev_hiddens = torch.stack(prev_hiddens, dim=0) if self.encoder_cell_proj is not None: prev_cells = [self.encoder_cell_proj(x) for x in prev_cells] if self.cell_type == 'lstm': prev_cells = torch.stack(prev_cells, dim=0) attn_scores = x.new_zeros(srclen, self.max_seq_len, bsz) inp = x outs = [] hidden_outs=[] for j in range(self.max_seq_len): if self.cell_type == 'lstm': output, (prev_hiddens, prev_cells) = self.rnn(inp, (prev_hiddens, prev_cells)) else: output, prev_hiddens = self.rnn(inp, prev_hiddens) output = output.view(bsz, -1) # apply attention using the last layer's hidden state if self.attention is not None: out, attn_scores[:, j, :] = self.attention(output, encoder_outs, encoder_mask) else: out = output if self.dropout_fc>0: out = F.dropout(out, p=self.dropout_fc, training=self.training) hid_out = out if self.traj_attn_intent_dim > 0: hid_out= self.traj_attn_fc(hid_out) hid_out = F.selu(hid_out) hidden_outs.append(hid_out) out = self.output_projection(out) # save final output outs.append(out) inp = out.unsqueeze(0) # collect outputs across time steps x = torch.cat(outs, dim=0).view(self.max_seq_len, bsz, self.feat_dim) hidden_outs = torch.cat(hidden_outs, dim=0).view(self.max_seq_len, bsz, -1) # T x B x C -> B x T x C x = x.transpose(1, 0) hidden_outs=hidden_outs.transpose(1, 0) # srclen x tgtlen x bsz -> bsz x tgtlen x srclen attn_scores = attn_scores.transpose(0, 2) # project back to input space return x, hidden_outs def LSTM(input_size, hidden_size, **kwargs): m = nn.LSTM(input_size, hidden_size, **kwargs) for name, param in m.named_parameters(): if 'weight' in name or 'bias' in name: param.data.uniform_(-0.1, 0.1) return m def GRU(input_size, hidden_size, **kwargs): m = nn.GRU(input_size, hidden_size, **kwargs) for name, param in m.named_parameters(): if 'weight' in name or 'bias' in name: param.data.uniform_(-0.1, 0.1) return m def RNN(input_size, hidden_size, **kwargs): m = nn.RNN(input_size, hidden_size, **kwargs) for name, param in m.named_parameters(): if 'weight' in name or 'bias' in name: param.data.uniform_(-0.1, 0.1) return m def Linear(in_features, out_features, bias=True): """Linear layer (input: N x T x C)""" m = nn.Linear(in_features, out_features, bias=bias) m.weight.data.uniform_(-0.1, 0.1) if bias: m.bias.data.uniform_(-0.1, 0.1) return m
[ 1, 529, 276, 1112, 420, 29958, 524, 9347, 296, 29899, 6451, 29899, 8205, 29914, 2303, 29968, 29943, 29918, 1529, 2303, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 29899, 6338, 29892, 13327, 29892, 9266, 29889, 13, 29937, 2178, 10462, 21676, 29889, 13, 29937, 13, 29937, 910, 2752, 775, 338, 7794, 21144, 1090, 278, 19405, 1476, 297, 278, 365, 2965, 1430, 1660, 934, 297, 13, 29937, 278, 3876, 3884, 310, 445, 2752, 5447, 29889, 530, 5684, 16690, 310, 2373, 296, 10462, 13, 29937, 508, 367, 1476, 297, 278, 349, 1299, 3919, 29903, 934, 297, 278, 1021, 3884, 29889, 13, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 13, 13, 1990, 390, 10262, 8566, 6119, 29898, 15755, 29889, 7355, 1125, 13, 12, 15945, 29908, 29934, 10262, 2094, 6119, 1213, 15945, 13, 13, 12, 1753, 4770, 2344, 12035, 13, 12, 12, 12, 1311, 29892, 3038, 29918, 1853, 2433, 20155, 29885, 742, 1238, 271, 29918, 6229, 29922, 29941, 29892, 7934, 29918, 2311, 29922, 29896, 29906, 29947, 29892, 954, 29918, 29277, 29922, 29896, 29892, 13, 12, 12, 12, 8865, 449, 29918, 13801, 29922, 29900, 29889, 29896, 29892, 5768, 449, 29918, 29878, 15755, 29922, 29900, 29889, 29900, 29892, 21000, 8684, 284, 29922, 8824, 29892, 1068, 19290, 1125, 13, 12, 12, 9136, 29898, 29934, 10262, 8566, 6119, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 12, 12, 1311, 29889, 3729, 29918, 1853, 353, 3038, 29918, 1853, 29889, 13609, 580, 13, 12, 12, 1311, 29889, 1725, 271, 29918, 6229, 353, 1238, 271, 29918, 6229, 13, 12, 12, 1311, 29889, 1949, 29918, 29277, 353, 954, 29918, 29277, 13, 12, 12, 1311, 29889, 8865, 449, 29918, 13801, 353, 5768, 449, 29918, 13801, 13, 12, 12, 1311, 29889, 8865, 449, 29918, 29878, 15755, 353, 5768, 449, 29918, 29878, 15755, 13, 12, 12, 1311, 29889, 23883, 8684, 284, 353, 21000, 8684, 284, 13, 12, 12, 1311, 29889, 10892, 29918, 2311, 353, 7934, 29918, 2311, 13, 12, 12, 2080, 29918, 2311, 353, 1238, 271, 29918, 6229, 13, 13, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 1311, 29889, 29878, 15755, 353, 365, 1254, 29924, 29898, 2080, 29918, 2311, 29922, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29922, 10892, 29918, 2311, 29892, 13, 12, 12, 12, 18884, 954, 29918, 29277, 29922, 1949, 29918, 29277, 29892, 21000, 8684, 284, 29922, 23883, 8684, 284, 29892, 13, 12, 12, 12, 18884, 5768, 449, 29922, 1311, 29889, 8865, 449, 29918, 29878, 15755, 29897, 13, 12, 12, 23681, 1583, 29889, 3729, 29918, 1853, 1275, 525, 7108, 2396, 13, 12, 12, 12, 1311, 29889, 29878, 15755, 353, 18016, 29965, 29898, 2080, 29918, 2311, 29922, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29922, 10892, 29918, 2311, 29892, 13, 12, 12, 12, 1669, 954, 29918, 29277, 29922, 1949, 29918, 29277, 29892, 21000, 8684, 284, 29922, 23883, 8684, 284, 29892, 13, 12, 12, 12, 1669, 5768, 449, 29922, 1311, 29889, 8865, 449, 29918, 29878, 15755, 29897, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 1311, 29889, 29878, 15755, 353, 390, 10262, 29898, 2080, 29918, 2311, 29922, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29922, 10892, 29918, 2311, 29892, 13, 12, 12, 12, 1669, 954, 29918, 29277, 29922, 1949, 29918, 29277, 29892, 21000, 8684, 284, 29922, 23883, 8684, 284, 29892, 13, 12, 12, 12, 1669, 5768, 449, 29922, 1311, 29889, 8865, 449, 29918, 29878, 15755, 29897, 13, 13, 12, 12, 1311, 29889, 4905, 29918, 348, 1169, 353, 7934, 29918, 2311, 13, 12, 12, 361, 21000, 8684, 284, 29901, 13, 12, 12, 12, 1311, 29889, 4905, 29918, 348, 1169, 334, 29922, 29871, 29906, 13, 13, 12, 1753, 6375, 29898, 1311, 29892, 4765, 29918, 11762, 1125, 13, 12, 12, 29916, 353, 4765, 29918, 11762, 13, 12, 12, 29937, 350, 921, 323, 921, 315, 1599, 323, 921, 350, 921, 315, 13, 12, 12, 29916, 353, 921, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 13, 12, 12, 3977, 6119, 29918, 449, 29892, 298, 29918, 29873, 353, 1583, 29889, 29878, 15755, 29898, 29916, 29897, 13, 13, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 8394, 29918, 29882, 2205, 575, 29892, 2186, 29918, 3729, 29879, 353, 298, 29918, 29873, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 8394, 29918, 29882, 2205, 575, 29892, 2186, 29918, 3729, 29879, 353, 298, 29918, 29873, 29892, 6213, 13, 13, 12, 12, 361, 1583, 29889, 8865, 449, 29918, 13801, 29958, 29900, 29901, 13, 12, 12, 12, 3977, 6119, 29918, 449, 353, 383, 29889, 8865, 449, 29898, 3977, 6119, 29918, 449, 29892, 282, 29922, 1311, 29889, 8865, 449, 29918, 13801, 29892, 6694, 29922, 1311, 29889, 26495, 29897, 13, 13, 12, 12, 361, 1583, 29889, 23883, 8684, 284, 29901, 13, 12, 12, 12, 16175, 29918, 2311, 353, 4765, 29918, 11762, 29889, 2311, 29898, 29900, 29897, 13, 13, 12, 12, 12, 1753, 14405, 29918, 23883, 381, 29898, 17718, 1125, 13, 12, 12, 12, 12, 449, 353, 714, 29879, 29889, 1493, 29898, 1311, 29889, 1949, 29918, 29277, 29892, 29871, 29906, 29892, 9853, 29918, 2311, 29892, 448, 29896, 467, 3286, 4220, 29898, 29896, 29892, 29871, 29906, 467, 1285, 5526, 681, 580, 13, 12, 12, 12, 12, 2457, 714, 29889, 1493, 29898, 1311, 29889, 1949, 29918, 29277, 29892, 9853, 29918, 2311, 29892, 448, 29896, 29897, 13, 13, 12, 12, 12, 8394, 29918, 29882, 2205, 575, 353, 14405, 29918, 23883, 381, 29898, 8394, 29918, 29882, 2205, 575, 29897, 13, 12, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 12, 8394, 29918, 3729, 29879, 353, 14405, 29918, 23883, 381, 29898, 8394, 29918, 3729, 29879, 29897, 13, 13, 12, 12, 29937, 29871, 323, 921, 350, 921, 315, 1599, 350, 921, 323, 921, 315, 13, 12, 12, 3977, 6119, 29918, 449, 353, 2094, 6119, 29918, 449, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 8394, 29918, 29882, 2205, 575, 353, 2186, 29918, 29882, 2205, 575, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 8394, 29918, 3729, 29879, 353, 2186, 29918, 3729, 29879, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 13, 12, 12, 2457, 2094, 6119, 29918, 449, 29892, 313, 8394, 29918, 29882, 2205, 575, 29892, 2186, 29918, 3729, 29879, 29897, 13, 13, 13, 1990, 6212, 2509, 14420, 29898, 15755, 29889, 7355, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 1881, 29918, 17987, 29918, 6229, 29892, 2752, 29918, 17987, 29918, 6229, 29892, 1962, 29918, 17987, 29918, 6229, 29892, 24003, 29922, 8824, 1125, 13, 12, 12, 9136, 29898, 4165, 2509, 14420, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 13, 12, 12, 1311, 29889, 2080, 29918, 20865, 353, 22985, 29898, 2080, 29918, 17987, 29918, 6229, 29892, 2752, 29918, 17987, 29918, 6229, 29892, 24003, 29922, 29890, 3173, 29897, 13, 12, 12, 1311, 29889, 4905, 29918, 20865, 353, 22985, 29898, 2080, 29918, 17987, 29918, 6229, 718, 2752, 29918, 17987, 29918, 6229, 29892, 1962, 29918, 17987, 29918, 6229, 29892, 24003, 29922, 29890, 3173, 29897, 13, 13, 12, 1753, 6375, 29898, 1311, 29892, 1881, 29892, 2752, 29918, 29882, 4841, 29892, 2094, 6119, 29918, 12791, 29918, 13168, 29922, 8516, 1125, 13, 12, 12, 29937, 1881, 29901, 289, 3616, 921, 1881, 29918, 17987, 29918, 6229, 13, 12, 12, 29937, 2752, 29918, 29882, 4841, 29901, 27236, 695, 264, 921, 289, 3616, 921, 1962, 29918, 17987, 29918, 6229, 13, 13, 12, 12, 29937, 921, 29901, 289, 3616, 921, 1962, 29918, 17987, 29918, 6229, 13, 12, 12, 29916, 353, 1583, 29889, 2080, 29918, 20865, 29898, 2080, 29897, 13, 13, 12, 12, 29937, 10272, 8570, 13, 12, 12, 1131, 29876, 29918, 1557, 2361, 353, 313, 4993, 29918, 29882, 4841, 334, 921, 29889, 6948, 802, 29872, 911, 29898, 29900, 8106, 2083, 29898, 6229, 29922, 29906, 29897, 13, 13, 12, 12, 29937, 1016, 29915, 29873, 14333, 975, 7164, 13, 12, 12, 361, 2094, 6119, 29918, 12791, 29918, 13168, 338, 451, 6213, 29901, 13, 12, 12, 12, 1131, 29876, 29918, 1557, 2361, 353, 1098, 29876, 29918, 1557, 2361, 29889, 7411, 2141, 13168, 287, 29918, 5589, 23538, 13, 12, 12, 12, 12, 3977, 6119, 29918, 12791, 29918, 13168, 29892, 13, 12, 12, 12, 12, 7411, 877, 29899, 7192, 1495, 13, 12, 12, 12, 467, 1853, 29918, 294, 29898, 1131, 29876, 29918, 1557, 2361, 29897, 29871, 396, 383, 29925, 29896, 29953, 2304, 29901, 4320, 304, 5785, 322, 1250, 13, 13, 12, 12, 1131, 29876, 29918, 1557, 2361, 353, 383, 29889, 2695, 3317, 29898, 1131, 29876, 29918, 1557, 2361, 29892, 3964, 29922, 29900, 29897, 29871, 396, 27236, 695, 264, 921, 289, 3616, 13, 13, 12, 12, 29937, 2533, 7688, 287, 8974, 13, 12, 12, 29916, 353, 313, 1131, 29876, 29918, 1557, 2361, 29889, 6948, 802, 29872, 911, 29898, 29906, 29897, 334, 2752, 29918, 29882, 4841, 467, 2083, 29898, 6229, 29922, 29900, 29897, 13, 12, 12, 449, 353, 4842, 305, 29889, 4117, 3552, 29916, 29892, 1881, 511, 3964, 29922, 29896, 29897, 13, 12, 12, 29916, 353, 383, 29889, 13161, 29882, 29898, 1311, 29889, 4905, 29918, 20865, 29898, 449, 876, 13, 12, 12, 2457, 921, 29892, 1098, 29876, 29918, 1557, 2361, 13, 13, 13, 1990, 390, 29940, 2797, 687, 6119, 29898, 15755, 29889, 7355, 1125, 13, 12, 15945, 29908, 29934, 10262, 1602, 6119, 1213, 15945, 13, 13, 12, 1753, 4770, 2344, 12035, 13, 12, 12, 12, 1311, 29892, 3038, 29918, 1853, 2433, 20155, 29885, 742, 1238, 271, 29918, 6229, 29922, 29941, 29892, 7934, 29918, 2311, 29922, 29896, 29906, 29947, 29892, 954, 29918, 29277, 29922, 29896, 29892, 13, 12, 12, 12, 8865, 449, 29918, 13801, 29922, 29900, 29889, 29896, 29892, 5768, 449, 29918, 29878, 15755, 29922, 29900, 29889, 29900, 29892, 2094, 6119, 29918, 4905, 29918, 348, 1169, 29922, 29896, 29906, 29947, 29892, 4236, 29918, 11762, 29918, 2435, 29922, 29896, 29900, 29892, 13, 12, 12, 12, 1131, 2509, 29922, 5574, 29892, 1020, 29926, 29918, 1131, 29876, 29918, 14029, 29918, 6229, 29922, 29900, 29892, 1068, 19290, 1125, 13, 12, 12, 9136, 29898, 29934, 29940, 2797, 687, 6119, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 12, 12, 1311, 29889, 3729, 29918, 1853, 353, 3038, 29918, 1853, 29889, 13609, 580, 13, 12, 12, 1311, 29889, 8865, 449, 29918, 13801, 353, 5768, 449, 29918, 13801, 13, 12, 12, 1311, 29889, 8865, 449, 29918, 29878, 15755, 353, 5768, 449, 29918, 29878, 15755, 13, 12, 12, 1311, 29889, 10892, 29918, 2311, 353, 7934, 29918, 2311, 13, 12, 12, 1311, 29889, 3977, 6119, 29918, 4905, 29918, 348, 1169, 353, 2094, 6119, 29918, 4905, 29918, 348, 1169, 13, 12, 12, 1311, 29889, 1949, 29918, 29277, 353, 954, 29918, 29277, 13, 12, 12, 1311, 29889, 3317, 29918, 11762, 29918, 2435, 353, 4236, 29918, 11762, 29918, 2435, 13, 12, 12, 1311, 29889, 1725, 271, 29918, 6229, 353, 1238, 271, 29918, 6229, 13, 12, 12, 1311, 29889, 3018, 29926, 29918, 1131, 29876, 29918, 14029, 29918, 6229, 353, 3018, 29926, 29918, 1131, 29876, 29918, 14029, 29918, 6229, 13, 12, 12, 2080, 29918, 2311, 353, 1238, 271, 29918, 6229, 13, 13, 12, 12, 361, 2094, 6119, 29918, 4905, 29918, 348, 1169, 2804, 7934, 29918, 2311, 29901, 13, 12, 12, 12, 1311, 29889, 3977, 6119, 29918, 10892, 29918, 20865, 353, 22985, 29898, 3977, 6119, 29918, 4905, 29918, 348, 1169, 29892, 7934, 29918, 2311, 29897, 13, 12, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 12, 1311, 29889, 3977, 6119, 29918, 3729, 29918, 20865, 353, 22985, 29898, 3977, 6119, 29918, 4905, 29918, 348, 1169, 29892, 7934, 29918, 2311, 29897, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 1311, 29889, 3977, 6119, 29918, 3729, 29918, 20865, 353, 6213, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 1311, 29889, 3977, 6119, 29918, 10892, 29918, 20865, 353, 1583, 29889, 3977, 6119, 29918, 3729, 29918, 20865, 353, 6213, 13, 13, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 1311, 29889, 3729, 353, 365, 1254, 29924, 13, 12, 12, 23681, 1583, 29889, 3729, 29918, 1853, 1275, 525, 7108, 2396, 13, 12, 12, 12, 1311, 29889, 3729, 353, 18016, 29965, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 1311, 29889, 3729, 353, 390, 10262, 13, 13, 12, 12, 1311, 29889, 29878, 15755, 353, 1583, 29889, 3729, 29898, 2080, 29918, 2311, 29922, 2080, 29918, 2311, 29892, 13, 12, 12, 462, 268, 7934, 29918, 2311, 29922, 10892, 29918, 2311, 29892, 21000, 8684, 284, 29922, 8824, 29892, 13, 12, 12, 462, 268, 5768, 449, 29922, 1311, 29889, 8865, 449, 29918, 29878, 15755, 29892, 13, 12, 12, 462, 268, 954, 29918, 29277, 29922, 1949, 29918, 29277, 29897, 13, 13, 12, 12, 361, 8570, 29901, 13, 12, 12, 12, 1311, 29889, 1131, 2509, 353, 6212, 2509, 14420, 29898, 10892, 29918, 2311, 29892, 2094, 6119, 29918, 4905, 29918, 348, 1169, 29892, 7934, 29918, 2311, 29892, 24003, 29922, 8824, 29897, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 1311, 29889, 1131, 2509, 353, 6213, 13, 13, 12, 12, 1311, 29889, 4905, 29918, 771, 6929, 353, 22985, 29898, 10892, 29918, 2311, 29892, 1238, 271, 29918, 6229, 29897, 13, 13, 12, 12, 361, 1020, 29926, 29918, 1131, 29876, 29918, 14029, 29918, 6229, 29958, 29900, 29901, 13, 12, 12, 12, 1311, 29889, 3018, 29926, 29918, 1131, 29876, 29918, 13801, 353, 22985, 29898, 10892, 29918, 2311, 29892, 1020, 29926, 29918, 1131, 29876, 29918, 14029, 29918, 6229, 29897, 13, 13, 12, 1753, 6375, 29898, 1311, 29892, 2094, 6119, 29918, 449, 29918, 1761, 29892, 1369, 29918, 13808, 29922, 8516, 29892, 2094, 6119, 29918, 13168, 29922, 8516, 1125, 13, 13, 12, 12, 29916, 353, 1369, 29918, 13808, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 12, 12, 29890, 3616, 353, 921, 29889, 2311, 29898, 29900, 29897, 13, 13, 12, 12, 29937, 679, 14391, 515, 2094, 6119, 13, 12, 12, 3977, 6119, 29918, 17718, 29892, 313, 3977, 6119, 29918, 29882, 2205, 575, 29892, 2094, 6119, 29918, 3729, 29879, 29897, 353, 2094, 6119, 29918, 449, 29918, 1761, 13, 12, 12, 29937, 350, 921, 323, 921, 315, 1599, 323, 921, 350, 921, 315, 13, 12, 12, 3977, 6119, 29918, 17718, 353, 2094, 6119, 29918, 17718, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 3977, 6119, 29918, 29882, 2205, 575, 353, 2094, 6119, 29918, 29882, 2205, 575, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 361, 2094, 6119, 29918, 13168, 338, 451, 6213, 29901, 13, 12, 12, 12, 3977, 6119, 29918, 13168, 353, 2094, 6119, 29918, 13168, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 16304, 29918, 29882, 2205, 575, 353, 518, 3977, 6119, 29918, 29882, 2205, 575, 29961, 29875, 29962, 363, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29277, 4638, 13, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 3977, 6119, 29918, 3729, 29879, 353, 2094, 6119, 29918, 3729, 29879, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 12, 16304, 29918, 3729, 29879, 353, 518, 3977, 6119, 29918, 3729, 29879, 29961, 29875, 29962, 363, 474, 297, 3464, 29898, 1311, 29889, 1949, 29918, 29277, 4638, 13, 13, 12, 12, 29916, 353, 921, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 12, 12, 21935, 695, 264, 353, 2094, 6119, 29918, 17718, 29889, 2311, 29898, 29900, 29897, 13, 13, 12, 12, 29937, 11905, 3517, 5922, 13, 13, 12, 12, 361, 1583, 29889, 3977, 6119, 29918, 10892, 29918, 20865, 338, 451, 6213, 29901, 13, 12, 12, 12, 16304, 29918, 29882, 2205, 575, 353, 518, 1311, 29889, 3977, 6119, 29918, 10892, 29918, 20865, 29898, 29916, 29897, 363, 921, 297, 12379, 29918, 29882, 2205, 575, 29962, 13, 12, 12, 16304, 29918, 29882, 2205, 575, 353, 4842, 305, 29889, 1429, 29898, 16304, 29918, 29882, 2205, 575, 29892, 3964, 29922, 29900, 29897, 13, 12, 12, 361, 1583, 29889, 3977, 6119, 29918, 3729, 29918, 20865, 338, 451, 6213, 29901, 13, 12, 12, 12, 16304, 29918, 3729, 29879, 353, 518, 1311, 29889, 3977, 6119, 29918, 3729, 29918, 20865, 29898, 29916, 29897, 363, 921, 297, 12379, 29918, 3729, 29879, 29962, 13, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 16304, 29918, 3729, 29879, 353, 4842, 305, 29889, 1429, 29898, 16304, 29918, 3729, 29879, 29892, 3964, 29922, 29900, 29897, 13, 13, 12, 12, 1131, 29876, 29918, 1557, 2361, 353, 921, 29889, 1482, 29918, 3298, 359, 29898, 21935, 695, 264, 29892, 1583, 29889, 3317, 29918, 11762, 29918, 2435, 29892, 289, 3616, 29897, 13, 12, 12, 262, 29886, 353, 921, 13, 12, 12, 17718, 353, 5159, 13, 12, 12, 10892, 29918, 17718, 29922, 2636, 13, 12, 12, 1454, 432, 297, 3464, 29898, 1311, 29889, 3317, 29918, 11762, 29918, 2435, 1125, 13, 12, 12, 12, 361, 1583, 29889, 3729, 29918, 1853, 1275, 525, 20155, 29885, 2396, 13, 12, 12, 12, 12, 4905, 29892, 313, 16304, 29918, 29882, 2205, 575, 29892, 12379, 29918, 3729, 29879, 29897, 353, 1583, 29889, 29878, 15755, 29898, 262, 29886, 29892, 313, 16304, 29918, 29882, 2205, 575, 29892, 12379, 29918, 3729, 29879, 876, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 4905, 29892, 12379, 29918, 29882, 2205, 575, 353, 1583, 29889, 29878, 15755, 29898, 262, 29886, 29892, 12379, 29918, 29882, 2205, 575, 29897, 13, 12, 12, 12, 4905, 353, 1962, 29889, 1493, 29898, 29890, 3616, 29892, 448, 29896, 29897, 13, 12, 12, 12, 29937, 3394, 8570, 773, 278, 1833, 7546, 29915, 29879, 7934, 2106, 13, 12, 12, 12, 361, 1583, 29889, 1131, 2509, 338, 451, 6213, 29901, 13, 12, 12, 12, 12, 449, 29892, 1098, 29876, 29918, 1557, 2361, 7503, 29892, 432, 29892, 584, 29962, 353, 1583, 29889, 1131, 2509, 29898, 4905, 29892, 2094, 6119, 29918, 17718, 29892, 2094, 6119, 29918, 13168, 29897, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 449, 353, 1962, 13, 12, 12, 12, 361, 1583, 29889, 8865, 449, 29918, 13801, 29958, 29900, 29901, 13, 12, 12, 12, 12, 449, 353, 383, 29889, 8865, 449, 29898, 449, 29892, 282, 29922, 1311, 29889, 8865, 449, 29918, 13801, 29892, 6694, 29922, 1311, 29889, 26495, 29897, 13, 12, 12, 12, 29882, 333, 29918, 449, 353, 714, 13, 12, 12, 12, 361, 1583, 29889, 3018, 29926, 29918, 1131, 29876, 29918, 14029, 29918, 6229, 1405, 29871, 29900, 29901, 13, 12, 12, 12, 12, 29882, 333, 29918, 449, 29922, 1583, 29889, 3018, 29926, 29918, 1131, 29876, 29918, 13801, 29898, 29882, 333, 29918, 449, 29897, 13, 12, 12, 12, 12, 29882, 333, 29918, 449, 353, 383, 29889, 2838, 29884, 29898, 29882, 333, 29918, 449, 29897, 13, 12, 12, 12, 10892, 29918, 17718, 29889, 4397, 29898, 29882, 333, 29918, 449, 29897, 13, 13, 12, 12, 12, 449, 353, 1583, 29889, 4905, 29918, 771, 6929, 29898, 449, 29897, 13, 12, 12, 12, 29937, 4078, 2186, 1962, 13, 12, 12, 12, 17718, 29889, 4397, 29898, 449, 29897, 13, 13, 12, 12, 12, 262, 29886, 353, 714, 29889, 6948, 802, 29872, 911, 29898, 29900, 29897, 13, 13, 12, 12, 29937, 6314, 14391, 4822, 931, 6576, 13, 12, 12, 29916, 353, 4842, 305, 29889, 4117, 29898, 17718, 29892, 3964, 29922, 29900, 467, 1493, 29898, 1311, 29889, 3317, 29918, 11762, 29918, 2435, 29892, 289, 3616, 29892, 1583, 29889, 1725, 271, 29918, 6229, 29897, 13, 12, 12, 10892, 29918, 17718, 353, 4842, 305, 29889, 4117, 29898, 10892, 29918, 17718, 29892, 3964, 29922, 29900, 467, 1493, 29898, 1311, 29889, 3317, 29918, 11762, 29918, 2435, 29892, 289, 3616, 29892, 448, 29896, 29897, 13, 12, 12, 29937, 323, 921, 350, 921, 315, 1599, 350, 921, 323, 921, 315, 13, 12, 12, 29916, 353, 921, 29889, 3286, 4220, 29898, 29896, 29892, 29871, 29900, 29897, 13, 12, 12, 10892, 29918, 17718, 29922, 10892, 29918, 17718, 29889, 3286, 4220, 29898, 29896, 29892, 29871, 29900, 29897, 13, 12, 12, 29937, 27236, 695, 264, 921, 260, 4141, 2435, 921, 289, 3616, 1599, 289, 3616, 921, 260, 4141, 2435, 921, 27236, 695, 264, 13, 12, 12, 1131, 29876, 29918, 1557, 2361, 353, 1098, 29876, 29918, 1557, 2361, 29889, 3286, 4220, 29898, 29900, 29892, 29871, 29906, 29897, 13, 13, 12, 12, 29937, 2060, 1250, 304, 1881, 2913, 13, 13, 12, 12, 2457, 921, 29892, 7934, 29918, 17718, 13, 13, 13, 1753, 365, 1254, 29924, 29898, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29892, 3579, 19290, 1125, 13, 12, 29885, 353, 302, 29876, 29889, 29931, 1254, 29924, 29898, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29892, 3579, 19290, 29897, 13, 12, 1454, 1024, 29892, 1828, 297, 286, 29889, 17514, 29918, 16744, 7295, 13, 12, 12, 361, 525, 7915, 29915, 297, 1024, 470, 525, 29890, 3173, 29915, 297, 1024, 29901, 13, 12, 12, 12, 3207, 29889, 1272, 29889, 29590, 29918, 6278, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29896, 29897, 13, 12, 2457, 286, 13, 13, 13, 1753, 18016, 29965, 29898, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29892, 3579, 19290, 1125, 13, 12, 29885, 353, 302, 29876, 29889, 14345, 29965, 29898, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29892, 3579, 19290, 29897, 13, 12, 1454, 1024, 29892, 1828, 297, 286, 29889, 17514, 29918, 16744, 7295, 13, 12, 12, 361, 525, 7915, 29915, 297, 1024, 470, 525, 29890, 3173, 29915, 297, 1024, 29901, 13, 12, 12, 12, 3207, 29889, 1272, 29889, 29590, 29918, 6278, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29896, 29897, 13, 12, 2457, 286, 13, 13, 13, 1753, 390, 10262, 29898, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29892, 3579, 19290, 1125, 13, 12, 29885, 353, 302, 29876, 29889, 29934, 10262, 29898, 2080, 29918, 2311, 29892, 7934, 29918, 2311, 29892, 3579, 19290, 29897, 13, 12, 1454, 1024, 29892, 1828, 297, 286, 29889, 17514, 29918, 16744, 7295, 13, 12, 12, 361, 525, 7915, 29915, 297, 1024, 470, 525, 29890, 3173, 29915, 297, 1024, 29901, 13, 12, 12, 12, 3207, 29889, 1272, 29889, 29590, 29918, 6278, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29896, 29897, 13, 12, 2457, 286, 13, 13, 13, 1753, 22985, 29898, 262, 29918, 22100, 29892, 714, 29918, 22100, 29892, 24003, 29922, 5574, 1125, 13, 12, 15945, 29908, 12697, 7546, 313, 2080, 29901, 405, 921, 323, 921, 315, 5513, 15945, 13, 12, 29885, 353, 302, 29876, 29889, 12697, 29898, 262, 29918, 22100, 29892, 714, 29918, 22100, 29892, 24003, 29922, 29890, 3173, 29897, 13, 12, 29885, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29896, 29897, 13, 12, 361, 24003, 29901, 13, 12, 12, 29885, 29889, 29890, 3173, 29889, 1272, 29889, 29590, 29918, 6278, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29896, 29897, 13, 12, 2457, 286, 13, 13, 2 ]
GUI.py
jkxing/stylized-neural-painting
0
199169
import tkinter as tk from tkinter import ttk from PIL import Image, ImageTk from tkinter import filedialog as fd from tkinter import messagebox as mb import matplotlib.pyplot as plt import numpy as np import cv2 class GUI(tk.Frame): def __init__(self, parent = None): tk.Frame.__init__(self, parent) self.parent = parent self.img_path = '' self.save_path = '' self.frame0 = tk.Frame(self, bd = 10) self.frame0.pack() self.path_label = tk.Label(self.frame0, text = '') self.path_label.pack(side='left') self.browseButton = tk.Button(self.frame0, text = 'Browse', command = self.openfile) self.browseButton.pack(side = 'left') self.slider_var = tk.IntVar() self.slider = tk.Scale(self, from_=1, to=20, orient= 'horizontal', variable = self.slider_var, command = self.slider_changed) self.slider.pack(pady = 10) self.goButton = tk.Button(self, text = 'Paint', command = self.go, width = 20) self.goButton.pack(pady = 10) self.addButton = tk.Button(self, text = 'Add Area', command = self.add_area, width = 20) self.addButton.pack(pady = 10) self.saveButton = tk.Button(self, text = 'Save as...', command = self.savefile, width = 20) self.saveButton.pack(pady = 10) self.mark_val = 1 self.oval_size = 1 def paint(self, event): python_green = "#476042" x1, y1 = ( event.x - self.oval_size ), ( event.y - self.oval_size ) x2, y2 = ( event.x + self.oval_size ), ( event.y + self.oval_size ) for x in range(x1, x2+1) : for y in range(y1, y2 + 1): self.image_mask[y][x][0] = self.mark_val self.image_mask[y][x][1] = self.mark_val self.image_mask[y][x][2] = self.mark_val self.canvas.create_oval( x1, y1, x2, y2, fill = python_green ) def add_area(self): self.mark_val += 1 def slider_changed(self, event): self.oval_size = self.slider_var.get() # print(self.slider_var.get()) def go(self): if (len(self.img_path) == 0): mb.showinfo('No image selected', 'Please browse an image to be resized') return # img = plt.imread(self.img_path) img = ImageTk.PhotoImage(Image.open(self.img_path)) offspring = tk.Toplevel() offspring.title(self.img_path.split('/')[-1]) offspring.geometry('%sx%s' % (img.width()+10, img.height()+10)) self.image_mask = np.zeros((img.height(), img.width(), 3)) self.canvas = tk.Canvas(offspring, width=img.width(), height=img.height(), borderwidth=0, highlightthickness=0) self.canvas.pack(expand=True) self.canvas.img = img # Keep reference in case this code is put into a function. self.canvas.create_image(0, 0, image=img, anchor=tk.NW) self.canvas.bind( "<B1-Motion>", self.paint ) offspring.mainloop() def openfile(self): self.img_path = fd.askopenfilename() self.path_label.config(text = self.img_path) def savefile(self): self.save_path = fd.asksaveasfilename() if len(self.save_path) == 0 : mb.showinfo('Give destination', 'Please give a destination path') return cv2.imwrite(self.save_path, self.image_mask) with open(self.save_path[:-4]+'.npy', 'wb') as f: np.save(f, np.array(self.image_mask)) if __name__ == '__main__': root = tk.Tk() root.geometry('%sx%s' % (400, 300)) gui = GUI(root) gui.pack() root.mainloop()
[ 1, 1053, 18883, 1639, 408, 18883, 13, 3166, 18883, 1639, 1053, 260, 11178, 13, 3166, 349, 6227, 1053, 7084, 29892, 7084, 29911, 29895, 13, 3166, 18883, 1639, 1053, 934, 15901, 408, 285, 29881, 13, 3166, 18883, 1639, 1053, 2643, 1884, 408, 286, 29890, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 12655, 408, 7442, 13, 5215, 13850, 29906, 13, 13, 1990, 14839, 29898, 11178, 29889, 4308, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3847, 353, 6213, 1125, 13, 4706, 18883, 29889, 4308, 17255, 2344, 12035, 1311, 29892, 3847, 29897, 13, 13, 4706, 1583, 29889, 3560, 353, 3847, 13, 4706, 1583, 29889, 2492, 29918, 2084, 353, 6629, 13, 4706, 1583, 29889, 7620, 29918, 2084, 353, 6629, 13, 13, 4706, 1583, 29889, 2557, 29900, 353, 18883, 29889, 4308, 29898, 1311, 29892, 289, 29881, 353, 29871, 29896, 29900, 29897, 13, 4706, 1583, 29889, 2557, 29900, 29889, 4058, 580, 13, 4706, 1583, 29889, 2084, 29918, 1643, 353, 18883, 29889, 4775, 29898, 1311, 29889, 2557, 29900, 29892, 1426, 353, 27255, 13, 4706, 1583, 29889, 2084, 29918, 1643, 29889, 4058, 29898, 2975, 2433, 1563, 1495, 13, 4706, 1583, 29889, 23721, 344, 3125, 353, 18883, 29889, 3125, 29898, 1311, 29889, 2557, 29900, 29892, 1426, 353, 525, 29933, 798, 344, 742, 1899, 353, 1583, 29889, 3150, 1445, 29897, 13, 4706, 1583, 29889, 23721, 344, 3125, 29889, 4058, 29898, 2975, 353, 525, 1563, 1495, 13, 4706, 1583, 29889, 23165, 29918, 1707, 353, 18883, 29889, 2928, 9037, 580, 13, 4706, 1583, 29889, 23165, 353, 18883, 29889, 17185, 29898, 1311, 29892, 515, 29918, 29922, 29896, 29892, 304, 29922, 29906, 29900, 29892, 7769, 29922, 525, 22672, 742, 2286, 353, 1583, 29889, 23165, 29918, 1707, 29892, 1899, 353, 1583, 29889, 23165, 29918, 15033, 29897, 13, 4706, 1583, 29889, 23165, 29889, 4058, 29898, 29886, 3714, 353, 29871, 29896, 29900, 29897, 13, 13, 4706, 1583, 29889, 1484, 3125, 353, 18883, 29889, 3125, 29898, 1311, 29892, 1426, 353, 525, 28939, 742, 1899, 353, 1583, 29889, 1484, 29892, 2920, 353, 29871, 29906, 29900, 29897, 13, 4706, 1583, 29889, 1484, 3125, 29889, 4058, 29898, 29886, 3714, 353, 29871, 29896, 29900, 29897, 13, 13, 4706, 1583, 29889, 1202, 3125, 353, 18883, 29889, 3125, 29898, 1311, 29892, 1426, 353, 525, 2528, 18320, 742, 1899, 353, 1583, 29889, 1202, 29918, 6203, 29892, 2920, 353, 29871, 29906, 29900, 29897, 13, 4706, 1583, 29889, 1202, 3125, 29889, 4058, 29898, 29886, 3714, 353, 29871, 29896, 29900, 29897, 13, 13, 4706, 1583, 29889, 7620, 3125, 353, 18883, 29889, 3125, 29898, 1311, 29892, 1426, 353, 525, 11371, 408, 856, 742, 1899, 353, 1583, 29889, 7620, 1445, 29892, 2920, 353, 29871, 29906, 29900, 29897, 13, 4706, 1583, 29889, 7620, 3125, 29889, 4058, 29898, 29886, 3714, 353, 29871, 29896, 29900, 29897, 13, 13, 13, 4706, 1583, 29889, 3502, 29918, 791, 353, 29871, 29896, 13, 4706, 1583, 29889, 10611, 29918, 2311, 353, 29871, 29896, 13, 268, 13, 1678, 822, 10675, 29898, 1311, 29892, 1741, 1125, 13, 4706, 3017, 29918, 12692, 353, 12305, 29946, 29955, 29953, 29900, 29946, 29906, 29908, 4706, 13, 13, 4706, 921, 29896, 29892, 343, 29896, 353, 313, 1741, 29889, 29916, 448, 1583, 29889, 10611, 29918, 2311, 10353, 313, 1741, 29889, 29891, 448, 1583, 29889, 10611, 29918, 2311, 1723, 13, 4706, 921, 29906, 29892, 343, 29906, 353, 313, 1741, 29889, 29916, 718, 1583, 29889, 10611, 29918, 2311, 10353, 313, 1741, 29889, 29891, 718, 1583, 29889, 10611, 29918, 2311, 1723, 13, 4706, 363, 921, 297, 3464, 29898, 29916, 29896, 29892, 921, 29906, 29974, 29896, 29897, 584, 13, 9651, 363, 343, 297, 3464, 29898, 29891, 29896, 29892, 343, 29906, 718, 29871, 29896, 1125, 13, 18884, 1583, 29889, 3027, 29918, 13168, 29961, 29891, 3816, 29916, 3816, 29900, 29962, 353, 1583, 29889, 3502, 29918, 791, 13, 18884, 1583, 29889, 3027, 29918, 13168, 29961, 29891, 3816, 29916, 3816, 29896, 29962, 353, 1583, 29889, 3502, 29918, 791, 13, 18884, 1583, 29889, 3027, 29918, 13168, 29961, 29891, 3816, 29916, 3816, 29906, 29962, 353, 1583, 29889, 3502, 29918, 791, 13, 13, 4706, 1583, 29889, 15257, 29889, 3258, 29918, 10611, 29898, 921, 29896, 29892, 343, 29896, 29892, 921, 29906, 29892, 343, 29906, 29892, 5445, 353, 3017, 29918, 12692, 1723, 13, 268, 13, 1678, 822, 788, 29918, 6203, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3502, 29918, 791, 4619, 29871, 29896, 13, 268, 13, 1678, 822, 23889, 29918, 15033, 29898, 1311, 29892, 1741, 1125, 13, 4706, 1583, 29889, 10611, 29918, 2311, 353, 1583, 29889, 23165, 29918, 1707, 29889, 657, 580, 13, 4706, 396, 1596, 29898, 1311, 29889, 23165, 29918, 1707, 29889, 657, 3101, 13, 13, 1678, 822, 748, 29898, 1311, 1125, 13, 4706, 565, 313, 2435, 29898, 1311, 29889, 2492, 29918, 2084, 29897, 1275, 29871, 29900, 1125, 13, 9651, 286, 29890, 29889, 4294, 3888, 877, 3782, 1967, 4629, 742, 525, 12148, 3347, 344, 385, 1967, 304, 367, 620, 1891, 1495, 13, 9651, 736, 13, 4706, 396, 10153, 353, 14770, 29889, 326, 949, 29898, 1311, 29889, 2492, 29918, 2084, 29897, 13, 4706, 10153, 353, 7084, 29911, 29895, 29889, 25971, 2940, 29898, 2940, 29889, 3150, 29898, 1311, 29889, 2492, 29918, 2084, 876, 13, 13, 4706, 1283, 4278, 353, 18883, 29889, 29911, 1991, 955, 580, 13, 4706, 1283, 4278, 29889, 3257, 29898, 1311, 29889, 2492, 29918, 2084, 29889, 5451, 11219, 1495, 14352, 29896, 2314, 13, 4706, 1283, 4278, 29889, 19156, 877, 29995, 29879, 29916, 29995, 29879, 29915, 1273, 313, 2492, 29889, 2103, 580, 29974, 29896, 29900, 29892, 10153, 29889, 3545, 580, 29974, 29896, 29900, 876, 13, 4706, 1583, 29889, 3027, 29918, 13168, 353, 7442, 29889, 3298, 359, 3552, 2492, 29889, 3545, 3285, 10153, 29889, 2103, 3285, 29871, 29941, 876, 13, 4706, 1583, 29889, 15257, 353, 18883, 29889, 21960, 29898, 2696, 4278, 29892, 2920, 29922, 2492, 29889, 2103, 3285, 3171, 29922, 2492, 29889, 3545, 3285, 13, 462, 259, 5139, 2103, 29922, 29900, 29892, 12141, 27996, 2264, 29922, 29900, 29897, 13, 4706, 1583, 29889, 15257, 29889, 4058, 29898, 18837, 29922, 5574, 29897, 13, 4706, 1583, 29889, 15257, 29889, 2492, 353, 10153, 29871, 396, 19152, 3407, 297, 1206, 445, 775, 338, 1925, 964, 263, 740, 29889, 13, 4706, 1583, 29889, 15257, 29889, 3258, 29918, 3027, 29898, 29900, 29892, 29871, 29900, 29892, 1967, 29922, 2492, 29892, 17360, 29922, 11178, 29889, 29940, 29956, 29897, 13, 4706, 1583, 29889, 15257, 29889, 5355, 29898, 9872, 29933, 29896, 29899, 29924, 8194, 28341, 1583, 29889, 29886, 2365, 1723, 13, 4706, 1283, 4278, 29889, 3396, 7888, 580, 13, 13, 1678, 822, 1722, 1445, 29898, 1311, 1125, 13, 4706, 1583, 29889, 2492, 29918, 2084, 353, 285, 29881, 29889, 1278, 3150, 9507, 580, 13, 4706, 1583, 29889, 2084, 29918, 1643, 29889, 2917, 29898, 726, 353, 1583, 29889, 2492, 29918, 2084, 29897, 29871, 13, 13, 1678, 822, 4078, 1445, 29898, 1311, 1125, 13, 4706, 1583, 29889, 7620, 29918, 2084, 353, 285, 29881, 29889, 1278, 7620, 294, 9507, 580, 13, 4706, 565, 7431, 29898, 1311, 29889, 7620, 29918, 2084, 29897, 1275, 29871, 29900, 584, 13, 9651, 286, 29890, 29889, 4294, 3888, 877, 29954, 573, 12551, 742, 525, 12148, 2367, 263, 12551, 2224, 1495, 13, 9651, 736, 13, 13, 4706, 13850, 29906, 29889, 326, 3539, 29898, 1311, 29889, 7620, 29918, 2084, 29892, 1583, 29889, 3027, 29918, 13168, 29897, 13, 4706, 411, 1722, 29898, 1311, 29889, 7620, 29918, 2084, 7503, 29899, 29946, 10062, 4286, 29876, 2272, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 9651, 7442, 29889, 7620, 29898, 29888, 29892, 7442, 29889, 2378, 29898, 1311, 29889, 3027, 29918, 13168, 876, 29871, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 3876, 353, 18883, 29889, 29911, 29895, 580, 13, 1678, 3876, 29889, 19156, 877, 29995, 29879, 29916, 29995, 29879, 29915, 1273, 313, 29946, 29900, 29900, 29892, 29871, 29941, 29900, 29900, 876, 13, 308, 13, 1678, 1410, 29875, 353, 14839, 29898, 4632, 29897, 13, 1678, 1410, 29875, 29889, 4058, 580, 13, 1678, 3876, 29889, 3396, 7888, 580, 2 ]
msticpy/data/drivers/__init__.py
kubajir/msticpy
1
151340
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Data provider sub-package.""" import importlib from typing import Union from ..query_defns import DataEnvironment # flake8: noqa: F403 from .driver_base import DriverBase from ..._version import VERSION __version__ = VERSION _ENVIRONMENT_DRIVERS = { DataEnvironment.LogAnalytics: ("kql_driver", "KqlDriver"), DataEnvironment.AzureSecurityCenter: ("kql_driver", "KqlDriver"), DataEnvironment.SecurityGraph: ("security_graph_driver", "SecurityGraphDriver"), DataEnvironment.Kusto: ("kusto_driver", "KustoDriver"), DataEnvironment.MDATP: ("mdatp_driver", "MDATPDriver"), DataEnvironment.MDE: ("mdatp_driver", "MDATPDriver"), DataEnvironment.LocalData: ("local_data_driver", "LocalDataDriver"), DataEnvironment.Splunk: ("splunk_driver", "SplunkDriver"), DataEnvironment.Mordor: ("mordor_driver", "MordorDriver"), DataEnvironment.Sumologic: ("sumologic_driver", "SumologicDriver"), DataEnvironment.ResourceGraph: ("resource_graph_driver", "ResourceGraphDriver"), DataEnvironment.M365D: ("mdatp_driver", "MDATPDriver"), } def import_driver(data_environment: DataEnvironment) -> type: """Import driver class for a data environment.""" mod_name, cls_name = _ENVIRONMENT_DRIVERS.get(data_environment, (None, None)) if not (mod_name and cls_name): raise ValueError( f"No driver available for environment {data_environment.name}.", "Possible values are:", ", ".join(env.name for env in _ENVIRONMENT_DRIVERS), ) imp_module = importlib.import_module( f"msticpy.data.drivers.{mod_name}", package="msticpy" ) return getattr(imp_module, cls_name)
[ 1, 396, 448, 2683, 2683, 2683, 2683, 1378, 13, 29937, 14187, 1266, 313, 29883, 29897, 7783, 15025, 29889, 2178, 10462, 21676, 29889, 13, 29937, 10413, 21144, 1090, 278, 341, 1806, 19245, 29889, 2823, 19245, 29889, 3945, 297, 278, 2060, 3876, 363, 13, 29937, 19405, 2472, 29889, 13, 29937, 448, 2683, 2683, 2683, 2683, 1378, 29899, 13, 15945, 29908, 1469, 13113, 1014, 29899, 5113, 1213, 15945, 13, 5215, 1053, 1982, 13, 3166, 19229, 1053, 7761, 13, 13, 3166, 6317, 1972, 29918, 1753, 1983, 1053, 3630, 18649, 13, 13, 29937, 17422, 446, 29947, 29901, 694, 25621, 29901, 383, 29946, 29900, 29941, 13, 3166, 869, 9465, 29918, 3188, 1053, 26391, 5160, 13, 13, 3166, 2023, 29918, 3259, 1053, 478, 1001, 13381, 13, 13, 1649, 3259, 1649, 353, 478, 1001, 13381, 13, 13, 29918, 25838, 8193, 1164, 13780, 29918, 29928, 3960, 5348, 29903, 353, 426, 13, 1678, 3630, 18649, 29889, 3403, 21067, 22026, 29901, 4852, 29895, 1519, 29918, 9465, 613, 376, 29968, 1519, 12376, 4968, 13, 1678, 3630, 18649, 29889, 28413, 13228, 13409, 29901, 4852, 29895, 1519, 29918, 9465, 613, 376, 29968, 1519, 12376, 4968, 13, 1678, 3630, 18649, 29889, 13228, 9527, 29901, 4852, 8926, 29918, 4262, 29918, 9465, 613, 376, 13228, 9527, 12376, 4968, 13, 1678, 3630, 18649, 29889, 29968, 23065, 29901, 4852, 29895, 23065, 29918, 9465, 613, 376, 29968, 23065, 12376, 4968, 13, 1678, 3630, 18649, 29889, 5773, 1299, 29925, 29901, 4852, 3487, 271, 29886, 29918, 9465, 613, 376, 5773, 1299, 29925, 12376, 4968, 13, 1678, 3630, 18649, 29889, 29924, 2287, 29901, 4852, 3487, 271, 29886, 29918, 9465, 613, 376, 5773, 1299, 29925, 12376, 4968, 13, 1678, 3630, 18649, 29889, 7717, 1469, 29901, 4852, 2997, 29918, 1272, 29918, 9465, 613, 376, 7717, 1469, 12376, 4968, 13, 1678, 3630, 18649, 29889, 29903, 572, 2960, 29901, 4852, 23579, 2960, 29918, 9465, 613, 376, 29903, 572, 2960, 12376, 4968, 13, 1678, 3630, 18649, 29889, 29924, 536, 272, 29901, 4852, 29885, 536, 272, 29918, 9465, 613, 376, 29924, 536, 272, 12376, 4968, 13, 1678, 3630, 18649, 29889, 11139, 1189, 293, 29901, 4852, 2083, 1189, 293, 29918, 9465, 613, 376, 11139, 1189, 293, 12376, 4968, 13, 1678, 3630, 18649, 29889, 6848, 9527, 29901, 4852, 10314, 29918, 4262, 29918, 9465, 613, 376, 6848, 9527, 12376, 4968, 13, 1678, 3630, 18649, 29889, 29924, 29941, 29953, 29945, 29928, 29901, 4852, 3487, 271, 29886, 29918, 9465, 613, 376, 5773, 1299, 29925, 12376, 4968, 13, 29913, 13, 13, 13, 1753, 1053, 29918, 9465, 29898, 1272, 29918, 20944, 29901, 3630, 18649, 29897, 1599, 1134, 29901, 13, 1678, 9995, 17518, 7156, 770, 363, 263, 848, 5177, 1213, 15945, 13, 1678, 878, 29918, 978, 29892, 1067, 29879, 29918, 978, 353, 903, 25838, 8193, 1164, 13780, 29918, 29928, 3960, 5348, 29903, 29889, 657, 29898, 1272, 29918, 20944, 29892, 313, 8516, 29892, 6213, 876, 13, 13, 1678, 565, 451, 313, 1545, 29918, 978, 322, 1067, 29879, 29918, 978, 1125, 13, 4706, 12020, 7865, 2392, 29898, 13, 9651, 285, 29908, 3782, 7156, 3625, 363, 5177, 426, 1272, 29918, 20944, 29889, 978, 1836, 613, 13, 9651, 376, 9135, 1687, 1819, 526, 29901, 613, 13, 9651, 9162, 11393, 7122, 29898, 6272, 29889, 978, 363, 8829, 297, 903, 25838, 8193, 1164, 13780, 29918, 29928, 3960, 5348, 29903, 511, 13, 4706, 1723, 13, 13, 1678, 2411, 29918, 5453, 353, 1053, 1982, 29889, 5215, 29918, 5453, 29898, 13, 4706, 285, 29908, 29885, 303, 293, 2272, 29889, 1272, 29889, 24477, 874, 29889, 29912, 1545, 29918, 978, 17671, 3577, 543, 29885, 303, 293, 2272, 29908, 13, 1678, 1723, 13, 1678, 736, 679, 5552, 29898, 6574, 29918, 5453, 29892, 1067, 29879, 29918, 978, 29897, 13, 2 ]
app.py
skrzypak/soaf
0
79492
<filename>app.py import glob import shutil import subprocess import os import sys import argparse # Read and save metadata from file def exiftool_metadata(path): metadata = {} exifToolPath = 'exifTool.exe' ''' use Exif tool to get the metadata ''' process = subprocess.Popen( [ exifToolPath, path ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True ) ''' get the tags in dict ''' for tag in process.stdout: tag = tag.strip() key = tag[:tag.find(':')].strip() value = tag[tag.find(':') + 1:].strip() metadata[key] = value return metadata class File: def __init__(self, path): self.metadata = exiftool_metadata(path) def _get_file_metadata(self, key, no=''): if key in self.metadata: return self.metadata[key] else: return no def copyCore(self, source, dst_dir: str, copy_duplicate=False): logs = [] # if value of metadata not exists - folder name no_metadata = 'none' date = File._get_file_metadata(self, 'Date/Time Original') if date == '': date = File._get_file_metadata(self, 'Create Date', no_metadata) mime_type = File._get_file_metadata(self, 'MIME Type', no_metadata) dst_dir += f'''/{mime_type[:mime_type.find('/')]}/{date[:4]}/{date[5:7]}''' filename = File._get_file_metadata(self, 'File Name') f_name = filename dst = dst_dir + '/' + filename # File with the same name exists in dst. If source and dst have same size then determines 'copy_exists' if os.path.isfile(dst): i = 0 f_pth = File(dst) if_same_size: bool = f_pth._get_file_metadata("File Size") == File._get_file_metadata(self, 'File Size') if (not if_same_size) or copy_duplicate: while os.path.isfile(dst): filename = f'''{f_name[:f_name.find('.')]}_D{str(i)}.{File._get_file_metadata(self, 'File Type Extension')}''' dst = f'''{dst_dir}/{filename}''' i = i + 1 if if_same_size: logs.append(f"Warning: file already exists but I must copy all files" f" [copy_duplicate={copy_duplicate}], so I try do it ...") else: logs.append(f"Warning: file already exists but have other size, so I try copy it ...") else: logs.append(f"Warning: file already duplicate [copy_exists={copy_duplicate}]." f"\nCopy aboard: {source} -> {dst}") return logs try: if not os.path.isdir(dst_dir): os.makedirs(dst_dir) logs.append(f"New directory created: {dst_dir}") shutil.copy(source, dst) logs.append(f'''Copy done: {source} -> {dst}''') except Exception as e: logs.append(f'''Copy error [{e}]: {source} -> {dst}''') return logs def main(): # Arguments from console parser = argparse.ArgumentParser() parser.add_argument('-s', help="Obligatory: source directory path") parser.add_argument('-d', help="Obligatory: destination folder path") parser.add_argument('-e', help="Obligatory: copy duplicate files (T/True/F/False)") args = parser.parse_args(sys.argv[1:]) # Setup variable source_dir = args.s dst_dir = args.d df = { "T": True, "TRUE": True, "F": False, "FALSE": False } try: copy_duplicate = df.get(args.e.upper(), False) except AttributeError: copy_duplicate = False print(f"app.py: error: unrecognized arguments. Use -h or --help to see options") exit(1) # Number of log l_lpm = 0 # source_dir = 'C:/Users' # dst_dir = 'C:/Users' # copy_duplicate = False for f_inx, source in enumerate(glob.glob(source_dir + '/**/*.*', recursive=True)): try: f = File(source) print("----------") for log in f.copyCore(source, dst_dir, copy_duplicate): l_lpm = l_lpm + 1 print(f'''{str(l_lpm)}.{f_inx + 1}) {log}''') except Exception as e: print(f'Copy error [{e}]: {source}') if __name__ == '__main__': main()
[ 1, 529, 9507, 29958, 932, 29889, 2272, 13, 5215, 13149, 13, 5215, 528, 4422, 13, 5215, 1014, 5014, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 1852, 5510, 13, 13, 13, 29937, 7523, 322, 4078, 15562, 515, 934, 13, 1753, 429, 361, 10154, 29918, 19635, 29898, 2084, 1125, 13, 1678, 15562, 353, 6571, 13, 1678, 429, 361, 12229, 2605, 353, 525, 735, 361, 12229, 29889, 8097, 29915, 13, 1678, 14550, 671, 1222, 361, 5780, 304, 679, 278, 15562, 14550, 13, 1678, 1889, 353, 1014, 5014, 29889, 29925, 3150, 29898, 13, 4706, 518, 13, 9651, 429, 361, 12229, 2605, 29892, 13, 9651, 2224, 13, 4706, 21251, 13, 4706, 27591, 29922, 1491, 5014, 29889, 2227, 4162, 29892, 13, 4706, 380, 20405, 29922, 1491, 5014, 29889, 1254, 3970, 2692, 29892, 13, 4706, 15968, 29918, 1482, 9012, 29922, 5574, 13, 1678, 1723, 13, 1678, 14550, 679, 278, 8282, 297, 9657, 14550, 13, 1678, 363, 4055, 297, 1889, 29889, 25393, 29901, 13, 4706, 4055, 353, 4055, 29889, 17010, 580, 13, 4706, 1820, 353, 4055, 7503, 4039, 29889, 2886, 877, 29901, 1495, 1822, 17010, 580, 13, 4706, 995, 353, 4055, 29961, 4039, 29889, 2886, 877, 29901, 1495, 718, 29871, 29896, 29901, 1822, 17010, 580, 13, 4706, 15562, 29961, 1989, 29962, 353, 995, 13, 1678, 736, 15562, 13, 13, 13, 1990, 3497, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2224, 1125, 13, 4706, 1583, 29889, 19635, 353, 429, 361, 10154, 29918, 19635, 29898, 2084, 29897, 13, 13, 1678, 822, 903, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 1820, 29892, 694, 2433, 29374, 13, 4706, 565, 1820, 297, 1583, 29889, 19635, 29901, 13, 9651, 736, 1583, 29889, 19635, 29961, 1989, 29962, 13, 4706, 1683, 29901, 13, 9651, 736, 694, 13, 13, 1678, 822, 3509, 9203, 29898, 1311, 29892, 2752, 29892, 29743, 29918, 3972, 29901, 851, 29892, 3509, 29918, 20908, 5926, 29922, 8824, 1125, 13, 13, 4706, 10748, 353, 5159, 13, 4706, 396, 565, 995, 310, 15562, 451, 4864, 448, 4138, 1024, 13, 4706, 694, 29918, 19635, 353, 525, 9290, 29915, 13, 4706, 2635, 353, 3497, 3032, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 525, 2539, 29914, 2481, 8533, 1495, 13, 4706, 565, 2635, 1275, 525, 2396, 13, 9651, 2635, 353, 3497, 3032, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 525, 4391, 4712, 742, 694, 29918, 19635, 29897, 13, 13, 4706, 286, 603, 29918, 1853, 353, 3497, 3032, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 525, 29924, 8890, 5167, 742, 694, 29918, 19635, 29897, 13, 4706, 29743, 29918, 3972, 4619, 285, 12008, 19248, 29885, 603, 29918, 1853, 7503, 29885, 603, 29918, 1853, 29889, 2886, 11219, 1495, 29962, 6822, 29912, 1256, 7503, 29946, 29962, 6822, 29912, 1256, 29961, 29945, 29901, 29955, 12258, 12008, 13, 13, 4706, 10422, 353, 3497, 3032, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 525, 2283, 4408, 1495, 13, 4706, 285, 29918, 978, 353, 10422, 13, 4706, 29743, 353, 29743, 29918, 3972, 718, 8207, 29915, 718, 10422, 13, 13, 4706, 396, 3497, 411, 278, 1021, 1024, 4864, 297, 29743, 29889, 960, 2752, 322, 29743, 505, 1021, 2159, 769, 3683, 1475, 525, 8552, 29918, 9933, 29915, 13, 4706, 565, 2897, 29889, 2084, 29889, 275, 1445, 29898, 22992, 1125, 13, 9651, 474, 353, 29871, 29900, 13, 9651, 285, 29918, 29886, 386, 353, 3497, 29898, 22992, 29897, 13, 9651, 565, 29918, 17642, 29918, 2311, 29901, 6120, 353, 285, 29918, 29886, 386, 3032, 657, 29918, 1445, 29918, 19635, 703, 2283, 21179, 1159, 1275, 3497, 3032, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 525, 2283, 21179, 1495, 13, 9651, 565, 313, 1333, 565, 29918, 17642, 29918, 2311, 29897, 470, 3509, 29918, 20908, 5926, 29901, 13, 18884, 1550, 2897, 29889, 2084, 29889, 275, 1445, 29898, 22992, 1125, 13, 462, 1678, 10422, 353, 285, 12008, 29912, 29888, 29918, 978, 7503, 29888, 29918, 978, 29889, 2886, 12839, 1495, 29962, 2403, 29928, 29912, 710, 29898, 29875, 29512, 29912, 2283, 3032, 657, 29918, 1445, 29918, 19635, 29898, 1311, 29892, 525, 2283, 5167, 7338, 2673, 1495, 29913, 12008, 13, 462, 1678, 29743, 353, 285, 12008, 29912, 22992, 29918, 3972, 6822, 29912, 9507, 29913, 12008, 13, 462, 1678, 474, 353, 474, 718, 29871, 29896, 13, 18884, 565, 565, 29918, 17642, 29918, 2311, 29901, 13, 462, 1678, 10748, 29889, 4397, 29898, 29888, 29908, 22709, 29901, 934, 2307, 4864, 541, 306, 1818, 3509, 599, 2066, 29908, 13, 462, 18884, 285, 29908, 518, 8552, 29918, 20908, 5926, 3790, 8552, 29918, 20908, 5926, 29913, 1402, 577, 306, 1018, 437, 372, 2023, 1159, 13, 18884, 1683, 29901, 13, 462, 1678, 10748, 29889, 4397, 29898, 29888, 29908, 22709, 29901, 934, 2307, 4864, 541, 505, 916, 2159, 29892, 577, 306, 1018, 3509, 372, 2023, 1159, 13, 13, 9651, 1683, 29901, 13, 18884, 10748, 29889, 4397, 29898, 29888, 29908, 22709, 29901, 934, 2307, 7929, 518, 8552, 29918, 9933, 3790, 8552, 29918, 20908, 5926, 6525, 1213, 29871, 13, 462, 9651, 285, 26732, 29876, 11882, 633, 29877, 538, 29901, 426, 4993, 29913, 1599, 426, 22992, 27195, 13, 18884, 736, 10748, 13, 13, 4706, 1018, 29901, 13, 9651, 565, 451, 2897, 29889, 2084, 29889, 275, 3972, 29898, 22992, 29918, 3972, 1125, 13, 18884, 2897, 29889, 29885, 12535, 12935, 29898, 22992, 29918, 3972, 29897, 13, 18884, 10748, 29889, 4397, 29898, 29888, 29908, 4373, 3884, 2825, 29901, 426, 22992, 29918, 3972, 27195, 13, 9651, 528, 4422, 29889, 8552, 29898, 4993, 29892, 29743, 29897, 13, 9651, 10748, 29889, 4397, 29898, 29888, 12008, 11882, 2309, 29901, 426, 4993, 29913, 1599, 426, 22992, 29913, 4907, 1495, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 10748, 29889, 4397, 29898, 29888, 12008, 11882, 1059, 15974, 29872, 29913, 5387, 426, 4993, 29913, 1599, 29871, 426, 22992, 29913, 4907, 1495, 13, 13, 4706, 736, 10748, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 396, 11842, 9331, 515, 2991, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29879, 742, 1371, 543, 29949, 2204, 335, 7606, 29901, 2752, 3884, 2224, 1159, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29881, 742, 1371, 543, 29949, 2204, 335, 7606, 29901, 12551, 4138, 2224, 1159, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29872, 742, 1371, 543, 29949, 2204, 335, 7606, 29901, 3509, 7929, 2066, 313, 29911, 29914, 5574, 29914, 29943, 29914, 8824, 25760, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 29898, 9675, 29889, 19218, 29961, 29896, 29901, 2314, 13, 13, 1678, 396, 3789, 786, 2286, 13, 1678, 2752, 29918, 3972, 353, 6389, 29889, 29879, 13, 1678, 29743, 29918, 3972, 353, 6389, 29889, 29881, 13, 1678, 4489, 353, 426, 13, 4706, 376, 29911, 1115, 5852, 29892, 13, 4706, 376, 20652, 1115, 5852, 29892, 13, 4706, 376, 29943, 1115, 7700, 29892, 13, 4706, 376, 25717, 1115, 7700, 13, 1678, 500, 13, 1678, 1018, 29901, 13, 4706, 3509, 29918, 20908, 5926, 353, 4489, 29889, 657, 29898, 5085, 29889, 29872, 29889, 21064, 3285, 7700, 29897, 13, 1678, 5174, 23833, 2392, 29901, 13, 4706, 3509, 29918, 20908, 5926, 353, 7700, 13, 4706, 1596, 29898, 29888, 29908, 932, 29889, 2272, 29901, 1059, 29901, 443, 29423, 1891, 6273, 29889, 4803, 448, 29882, 470, 1192, 8477, 304, 1074, 3987, 1159, 13, 4706, 6876, 29898, 29896, 29897, 13, 13, 1678, 396, 9681, 310, 1480, 13, 1678, 301, 29918, 29880, 3358, 353, 29871, 29900, 13, 13, 1678, 396, 2752, 29918, 3972, 353, 525, 29907, 8419, 5959, 29915, 13, 1678, 396, 29743, 29918, 3972, 353, 525, 29907, 8419, 5959, 29915, 13, 1678, 396, 3509, 29918, 20908, 5926, 353, 7700, 13, 13, 1678, 363, 285, 29918, 14668, 29892, 2752, 297, 26985, 29898, 23705, 29889, 23705, 29898, 4993, 29918, 3972, 718, 525, 7918, 5515, 5575, 742, 16732, 29922, 5574, 22164, 13, 4706, 1018, 29901, 13, 9651, 285, 353, 3497, 29898, 4993, 29897, 13, 9651, 1596, 703, 28400, 1159, 13, 9651, 363, 1480, 297, 285, 29889, 8552, 9203, 29898, 4993, 29892, 29743, 29918, 3972, 29892, 3509, 29918, 20908, 5926, 1125, 13, 18884, 301, 29918, 29880, 3358, 353, 301, 29918, 29880, 3358, 718, 29871, 29896, 13, 18884, 1596, 29898, 29888, 12008, 29912, 710, 29898, 29880, 29918, 29880, 3358, 29512, 29912, 29888, 29918, 14668, 718, 29871, 29896, 1800, 426, 1188, 29913, 4907, 1495, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1596, 29898, 29888, 29915, 11882, 1059, 15974, 29872, 29913, 5387, 426, 4993, 29913, 1495, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
manage-downloads.py
hackers-terabit/download-hygeine
1
87710
#!/usr/bin/python2.7 #manage-downloads - adds/removes downloads to the catalogue #TODO: # test it all \0/ import os,json,sys import hashlib,uuid from downloadhygeine import DownloadHygeine,Util,crypto color={"green":"\33[92m","blue":"\33[96m","red":"\33[31m","yellow":"\33[93m","white":"\33[98m"} def add(dh): download={} fname='' download["uuid"]=str(uuid.uuid4()) download["name"]=raw_input("Name for this download: ") download["category"]=raw_input("What category is this download under?: ") download["type"]=raw_input("What type of a download is this? (e.g.:torrent,iso,tar,img,avi,etc...): ") torrent=dh.util.yesno_choice("Is this a bittorrent download?: ") if torrent: download["torrent"]=1 else: download["torrent"]=0 while True: download["url"]="" retry=False if retry==False: download["url"]=raw_input(color["white"]+"Enter the primary URL for this download (This will be used to download and calculate the hash of the downloaded file):") fname,success=dh.fetch(download["url"]) if not os.path.exists(fname) or os.path.getsize(fname)<1: print(color["red"]+"It seems downloading this file to: "+fname+" Has failed\nLet's try this again.") if dh.util.yesno_choice(color["yellow"]+"Use the same url as before ("+download["url"]+")?")==True: retry=False else: break if len(download["url"])<0: print(color["red"]+"Unable to find a valid download URL,exiting...") return #whoa!? else: if dh.util.yesno_choice(color["white"]+"Are there other accompanying meta-files that should be downloaded? (example: .asc gpg detached signature,hash data,readme,etc...) : "): metafiles=[] download["getmeta"]=0 print(color["yellow"]+"Enter the URLs for these additonal meta-files,separated by a new line. enter 'eof' without quotes when done. Keep in mind the validity of these URLs will not be checked at this time.") while True: entry=raw_input().strip().split(" ") if entry[0].strip().lower() =='eof': break elif len(entry[0])>0: metafiles.append(entry[0]) if len(metafiles)>0: download["getmeta"]=1 download["metafiles"]=metafiles else: download["getmeta"]=0 print(color["blue"]+">") hl=set() for algo in hashlib.algorithms_available: if algo in ["sha512","sha256","whirlpool","ripemd160"]: hl.add(hashlib.new(algo)) with open(fname,"rb") as f: sofar=0 total=os.path.getsize(fname) while True: block=f.read(65536) if len(block)<1: break else: sofar+=len(block) sys.stdout.write("\rRead so far:\t"+str(sofar/(total/100.00))[:5].ljust(5," ")+"\%") for h in hl: h.update(block) print("\n") for h in hl: digest=h.hexdigest() print("\t Calculated "+h.name+" digest:\t "+digest) download[h.name]=digest mirrors=[] if dh.util.yesno_choice("Will this download use mirrors?"): suffix=raw_input(color["yellow"]+"What is the suffix to be used across all mirrors?\nExample: A suffix of '/mirrors/project/iso/someos.iso' for a mirror 'https://www.fancymirror.co.example/opensource/mirrors' will result in a download URL 'https://www.fancymirror.co.example/opensource/mirrors/mirrors/project/iso/someos.iso'\n:") print(color["yellow"]+"Enter a list of mirrors with the format 'Mirrorname <url>' (example:superfastmirror https://secureserver.com.example/)\nEnter just 'EOF' without quotes when done:") while True: entry=raw_input().strip().split(" ") if entry[0].strip().lower() =='eof': break if len(entry) <2 or len(entry[0])<1 or len(entry[len(entry)-1])<1: print(color["red"]+"Invalid entry, please be sure to specify the mirror name and the URL") continue else: mirrors.append({"mirrorname":entry[0].strip(),"url":entry[1].strip()+suffix.strip()}) if len(mirrors)>0: download["mirrors"]=mirrors if (dh.util.yesno_choice("Have you verified the authenticity of the downloaded file '"+fname+"' ? (such as with GPG validation)?") and dh.util.yesno_choice("Sign this download? ")): content=json.dumps(download,sort_keys=True) exported=dh.crypto.sign_and_export(content) exportme=json.dumps(exported,indent=4,sort_keys=True) with open(dh.conf["localclone"]+"/"+download["name"]+".json","w+") as df: df.write(exportme) def remove(dh): dh.load_catalog() download_choice=dh.pick() for e in dh.catalog: if "uuid" in e and e["uuid"]==download_choice: print(color["green"]+"Download name: "+e["name"]) print(color["green"]+"Category: "+e["category"]) print(color["yellow"]+"File type: "+e["type"]) print(color["blue"]+"Download URL: "+e["url"]) if dh.util.yesno_choice(color["yellow"]+"Remove this download catalog entry? "): os.remove(dh.conf["localclone"]+"/"+e["name"]+".json") def gitupdate(dh): success=False print(color["yellow"]+"Synchronizing download catalog...") if os.path.exists(dh.conf["localclone"]): os.chdir(dh.conf["localclone"]) if dh.util.call(["git","add","*"])!=0: print(color["red"]+"Error running 'git add *' to update the local clone. Please fix this manually.") success=False else: if dh.util.call(["git","commit","-m","Sync catalog changes","*"])!=0: print(color["red"]+"Error running 'git commit -m 'Sync catalog changes' . Please fix this manually.") success=False else: if dh.util.call(["git","push","-u","origin","master"])!=0: print(color["red"]+"Error running 'git push -u origin master' . Please fix this manually.") success=False else: success=True if success==True: print(color["blue"]+"Updated your catalog changes to the preset git repository") return success def update(dh,uuid=None): dh.load_catalog() download_choice=dh.pick(uuid=uuid) for e in dh.catalog: if "uuid" in e and e["uuid"]==download_choice: dh.crypto.showkey(e["siginfo"]) print(color["green"]+"Download name: "+e["name"]) print(color["green"]+"Category: "+e["category"]) print(color["yellow"]+"File type: "+e["type"]) print(color["blue"]+"Download URL: "+e["url"]) params=[] for p in e: if not str(p).strip() in ["siginfo"]: params.append(p) params.append("Done") while True: choice=dh.util.numeric_choice(color["yellow"]+"Please select a paramter to update for "+e["name"]+".Select 'Done' when finished: ",params) if choice=="Done": break else: print(color["yellow"]+"Current value for "+choice+":\n"+str(e[choice])) e[choice]=raw_input("["+e["name"]+"] Please enter a new value for '"+choice+"' : ") if dh.util.yesno_choice("Now that you've updated '"+e["name"]+"', Would you like to re-download the file and update it's hash values? ")==True: while True: fname=dh.fetch(e["url"]) if not os.path.exists(fname) or os.path.getsize(fname)<1: print("It seems downloading this file to: "+fname+" Has failed\nLet's try this again.") else: break hl=set() for algo in hashlib.algorithms_available: if algo in ["sha512","sha256","whirlpool","ripemd160"]: hl.add(hashlib.new(algo)) with open(fname,"rb") as f: sofar=0 total=os.path.getsize(fname) while True: block=f.read(65536) if len(block)<1: break else: sofar+=len(block) sys.stdout.write("\rRead so far:\t"+str(sofar/(total/100.00))[:5].ljust(5," ")+"\%") for h in hl: h.update(block) print("\n") for h in hl: digest=h.hexdigest() print("\t Calculated "+h.name+" digest:\t "+digest) e[h.name]=digest if (dh.util.yesno_choice("Have you verified the autenticity of the hashes for the download '"+e["name"]+"' ? (such as with GPG validation)?") and dh.util.yesno_choice("Sign this download? ")): exportme=json.dumps(dh.crypto.sign_and_export(json.dumps(e,sort_keys=True)),indent=4,sort_keys=True) with open(dh.conf["localclone"]+"/"+e["name"]+".json","w+") as df: df.write(exportme) break def fork(dh): dh.load_catalog() download_choice=dh.pick() if None is download_choice or len(dh.catalog)<0 or len(download_choice)<0: print(color["yellow"]+"Current download catalog is empty,nothing to fork.") return for e in dh.catalog: if "uuid" in e and e["uuid"]==download_choice: dh.crypto.showkey(e["siginfo"]) print(color["green"]+"Download name: "+e["name"]) print(color["green"]+"Category: "+e["category"]) print(color["yellow"]+"File type: "+e["type"]) print(color["blue"]+"Download URL: "+e["url"]) e["name"]=raw_input("Forking '"+e["name"]+"' Please enter a new name: ") e["uuid"]=str(uuid.uuid4()) exportme=json.dumps(dh.crypto.sign_and_export(json.dumps(e,sort_keys=True)),indent=4,sort_keys=True) with open(dh.conf["localclone"]+"/"+e["name"]+".json","w+") as df: df.write(exportme) dh.load_catalog() update(dh,e["uuid"]) def main(): dh=DownloadHygeine() if not dh.init_env(): print("Critical error initializing. Exiting immediately.") sys.exit(1) if not dh.util.yesno_choice("Do you have commit priviledge for the currently configured git repository? "+dh.conf["localclone"]+"\n Remote repository:'"+dh.conf["gitrepo"]+"' ?"): if dh.util.yesno_choice("Things will break if we continue to change the currently configured repository.\nIn order to avoid that, should we configure a new repository? (This new repository will be managed by you!) "): dh.conf["gitrepo"]=raw_input("Enter the remote URL that will be used to synchronize this new repository: ") if dh.util.yesno_choice("Use a different local directory for this new catalog? (Warning: if you pick no,the current contents of "+dh.conf["localclone"]+" Will be deleted.): "): dh.conf["localclone"]=dh.util.numeric_choice_flexible("Where should the download catalogue be stored?",[os.getenv('HOME')+"/Downloads/downloadhygeine-catalog",os.getenv('HOME')+"/downloadhygeine-catalog"]) dh.util.call(["rm","-rfv",dh.conf["localclone"]]) #wipe out the current catalog. if dh.util.call(["git","init",dh.conf["localclone"]])!=0: print(color["red"]+"Error initializing the chosen git repository of the download catalog. Please make sure the local clone directory '"+dh.conf["localclone"]+"' can be created by git and whether your internet connection is allowing access to your chosen git repository.") print(color["red"]+"Alternatively, please adjust your configuration to relfect any system or network changes.") sys.exit(1) else: os.chdir(dh.conf["localclone"]) if dh.util.call(["git","remote","add","origin",dh.conf["gitrepo"]])!=0: print(color["red"]+"Failed to run 'git remote add origin "+dh.conf["gitrepo"]+"' . Please fix this manually.") sys.exit(1) else: if dh.util.call(["git","fetch"])!=0: print(color["red"]+"Failed to run 'git fetch' . Please fix this manually.") sys.exit(1) else: if dh.util.call(["git","checkout","master"])!=0: print(color["red"]+"Failed to run 'git checkout master' . Please fix this manually.") sys.exit(1) else: print(color["red"]+"Sorry, you cannot manage a catalog(git repository) without being able to commit to it") sys.exit(1) with open(dh.util.pickpath(dh.config_paths),"w+") as cf: cf.write(json.dumps(dh.conf,indent=4,sort_keys=True)) while True: dh.gitsync() choice=dh.util.numeric_choice("What would you like to do?",["Add","Remove","Update","Fork","List","Exit"]) if choice=="Add": add(dh) elif choice=="Remove": remove(dh) elif choice=="Update": update(dh) elif choice=="Fork": fork(dh) elif choice=="List": dh.load_catalog() dh.dump_catalog() elif choice=="Exit": break gitupdate(dh) if __name__ == "__main__": main()
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 29906, 29889, 29955, 13, 29937, 1171, 482, 29899, 10382, 29879, 448, 12778, 29914, 1745, 586, 267, 5142, 29879, 304, 278, 16653, 434, 13, 29937, 4986, 3970, 29901, 13, 29937, 12, 1688, 372, 599, 320, 29900, 29914, 13, 13, 5215, 2897, 29892, 3126, 29892, 9675, 13, 5215, 6608, 1982, 29892, 25118, 13, 13, 3166, 5142, 5819, 479, 457, 1053, 25553, 26322, 479, 457, 29892, 7270, 29892, 29883, 17929, 13, 13, 2780, 3790, 29908, 12692, 4710, 29905, 29941, 29941, 29961, 29929, 29906, 29885, 3284, 9539, 4710, 29905, 29941, 29941, 29961, 29929, 29953, 29885, 3284, 1127, 4710, 29905, 29941, 29941, 29961, 29941, 29896, 29885, 3284, 29136, 4710, 29905, 29941, 29941, 29961, 29929, 29941, 29885, 3284, 10921, 4710, 29905, 29941, 29941, 29961, 29929, 29947, 29885, 9092, 13, 13, 1753, 788, 29898, 12744, 1125, 13, 12, 10382, 3790, 29913, 13, 12, 29888, 978, 2433, 29915, 13, 12, 13, 12, 10382, 3366, 25118, 3108, 29922, 710, 29898, 25118, 29889, 25118, 29946, 3101, 13, 12, 10382, 3366, 978, 3108, 29922, 1610, 29918, 2080, 703, 1170, 363, 445, 5142, 29901, 16521, 13, 12, 10382, 3366, 7320, 3108, 29922, 1610, 29918, 2080, 703, 5618, 7663, 338, 445, 5142, 1090, 25825, 16521, 13, 12, 10382, 3366, 1853, 3108, 29922, 1610, 29918, 2080, 703, 5618, 1134, 310, 263, 5142, 338, 445, 29973, 313, 29872, 29889, 29887, 4898, 7345, 7771, 29892, 10718, 29892, 12637, 29892, 2492, 29892, 17345, 29892, 7070, 856, 1125, 16521, 13, 13, 12, 13, 12, 7345, 7771, 29922, 12744, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 3624, 445, 263, 289, 986, 272, 7771, 5142, 25825, 16521, 13, 12, 361, 4842, 7771, 29901, 13, 12, 12, 10382, 3366, 7345, 7771, 3108, 29922, 29896, 13, 12, 2870, 29901, 13, 12, 12, 10382, 3366, 7345, 7771, 3108, 29922, 29900, 13, 12, 8000, 5852, 29901, 12, 13, 12, 12, 10382, 3366, 2271, 3108, 13776, 13, 12, 12, 276, 2202, 29922, 8824, 13, 12, 12, 361, 337, 2202, 1360, 8824, 29901, 13, 12, 12, 12, 10382, 3366, 2271, 3108, 29922, 1610, 29918, 2080, 29898, 2780, 3366, 10921, 3108, 13578, 10399, 278, 7601, 3988, 363, 445, 5142, 313, 4013, 674, 367, 1304, 304, 5142, 322, 8147, 278, 6608, 310, 278, 16532, 934, 1125, 1159, 13, 12, 12, 29888, 978, 29892, 8698, 29922, 12744, 29889, 9155, 29898, 10382, 3366, 2271, 20068, 13, 12, 12, 361, 451, 2897, 29889, 2084, 29889, 9933, 29898, 29888, 978, 29897, 470, 2897, 29889, 2084, 29889, 657, 2311, 29898, 29888, 978, 29897, 29966, 29896, 29901, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 3112, 2444, 28536, 445, 934, 304, 29901, 15691, 29888, 978, 13578, 11699, 5229, 29905, 29876, 12024, 29915, 29879, 1018, 445, 1449, 23157, 13, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 29898, 2780, 3366, 29136, 3108, 13578, 11403, 278, 1021, 3142, 408, 1434, 4852, 29974, 10382, 3366, 2271, 3108, 29974, 1159, 29973, 1159, 1360, 5574, 29901, 13, 12, 12, 12, 12, 276, 2202, 29922, 8824, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 8690, 13, 12, 361, 7431, 29898, 10382, 3366, 2271, 20068, 29966, 29900, 29901, 13, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 2525, 519, 304, 1284, 263, 2854, 5142, 3988, 29892, 735, 11407, 856, 1159, 13, 12, 12, 2457, 396, 15970, 29874, 29991, 29973, 13, 12, 2870, 29901, 13, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 29898, 2780, 3366, 10921, 3108, 13578, 17506, 727, 916, 10259, 1384, 292, 12700, 29899, 5325, 393, 881, 367, 16532, 29973, 313, 4773, 29901, 869, 6151, 330, 4061, 1439, 3791, 12608, 29892, 8568, 848, 29892, 949, 1004, 29892, 7070, 11410, 584, 376, 1125, 13, 12, 12, 12, 7299, 5325, 29922, 2636, 13, 12, 12, 12, 10382, 3366, 657, 7299, 3108, 29922, 29900, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 10399, 278, 24295, 363, 1438, 788, 277, 7177, 12700, 29899, 5325, 29892, 25048, 630, 491, 263, 716, 1196, 29889, 3896, 525, 29872, 974, 29915, 1728, 11839, 746, 2309, 29889, 19152, 297, 3458, 278, 2854, 537, 310, 1438, 24295, 674, 451, 367, 7120, 472, 445, 931, 23157, 13, 12, 12, 12, 8000, 5852, 29901, 13, 12, 12, 12, 12, 8269, 29922, 1610, 29918, 2080, 2141, 17010, 2141, 5451, 703, 16521, 13, 12, 12, 12, 12, 361, 6251, 29961, 29900, 1822, 17010, 2141, 13609, 580, 1275, 29915, 29872, 974, 2396, 13, 12, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 12, 23681, 7431, 29898, 8269, 29961, 29900, 2314, 29958, 29900, 29901, 13, 12, 12, 12, 12, 12, 7299, 5325, 29889, 4397, 29898, 8269, 29961, 29900, 2314, 13, 12, 12, 12, 361, 7431, 29898, 7299, 5325, 15410, 29900, 29901, 13, 12, 12, 12, 12, 10382, 3366, 657, 7299, 3108, 29922, 29896, 12, 12, 13, 12, 12, 12, 12, 10382, 3366, 7299, 5325, 3108, 29922, 7299, 5325, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 10382, 3366, 657, 7299, 3108, 29922, 29900, 13, 12, 12, 12, 13, 12, 2158, 29898, 2780, 3366, 9539, 3108, 29974, 1013, 1159, 12, 12, 13, 12, 4415, 29922, 842, 580, 13, 12, 1454, 24673, 297, 6608, 1982, 29889, 9564, 12404, 29918, 16515, 29901, 13, 12, 12, 361, 24673, 297, 6796, 17051, 29945, 29896, 29906, 3284, 17051, 29906, 29945, 29953, 3284, 1332, 5168, 10109, 3284, 6472, 331, 29881, 29896, 29953, 29900, 3108, 29901, 13, 12, 12, 12, 4415, 29889, 1202, 29898, 8568, 1982, 29889, 1482, 29898, 284, 1484, 876, 13, 12, 2541, 1722, 29898, 29888, 978, 1699, 6050, 1159, 408, 285, 29901, 13, 12, 12, 578, 15641, 29922, 29900, 13, 12, 12, 7827, 29922, 359, 29889, 2084, 29889, 657, 2311, 29898, 29888, 978, 29897, 13, 12, 12, 8000, 5852, 29901, 13, 12, 12, 12, 1271, 29922, 29888, 29889, 949, 29898, 29953, 29945, 29945, 29941, 29953, 29897, 13, 12, 12, 12, 361, 7431, 29898, 1271, 29897, 29966, 29896, 29901, 13, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 578, 15641, 23661, 2435, 29898, 1271, 29897, 13, 12, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 14182, 29878, 6359, 577, 2215, 3583, 29873, 17969, 710, 29898, 578, 15641, 14571, 7827, 29914, 29896, 29900, 29900, 29889, 29900, 29900, 876, 7503, 29945, 1822, 29880, 5143, 29898, 29945, 1699, 376, 7240, 29908, 8958, 1159, 12, 13, 12, 12, 12, 1454, 298, 297, 298, 29880, 29901, 13, 12, 12, 12, 12, 29882, 29889, 5504, 29898, 1271, 29897, 13, 12, 2158, 14182, 29876, 1159, 12, 12, 12, 13, 12, 1454, 298, 297, 298, 29880, 29901, 13, 12, 12, 7501, 342, 29922, 29882, 29889, 20970, 7501, 342, 580, 13, 12, 12, 2158, 14182, 29873, 20535, 630, 15691, 29882, 29889, 978, 13578, 4697, 342, 3583, 29873, 15691, 7501, 342, 29897, 13, 12, 12, 10382, 29961, 29882, 29889, 978, 13192, 7501, 342, 13, 12, 13, 12, 11038, 729, 29879, 29922, 2636, 13, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 12984, 445, 5142, 671, 19571, 29879, 3026, 1125, 13, 12, 12, 2146, 600, 861, 29922, 1610, 29918, 2080, 29898, 2780, 3366, 29136, 3108, 13578, 5618, 338, 278, 25557, 304, 367, 1304, 4822, 599, 19571, 29879, 29973, 29905, 29876, 14023, 29901, 319, 25557, 310, 8207, 11038, 729, 29879, 29914, 4836, 29914, 10718, 29914, 5372, 359, 29889, 10718, 29915, 363, 263, 19571, 525, 991, 597, 1636, 29889, 29888, 4564, 962, 381, 729, 29889, 1111, 29889, 4773, 29914, 22156, 1167, 29914, 11038, 729, 29879, 29915, 674, 1121, 297, 263, 5142, 3988, 525, 991, 597, 1636, 29889, 29888, 4564, 962, 381, 729, 29889, 1111, 29889, 4773, 29914, 22156, 1167, 29914, 11038, 729, 29879, 29914, 11038, 729, 29879, 29914, 4836, 29914, 10718, 29914, 5372, 359, 29889, 10718, 12764, 29876, 29901, 1159, 13, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 10399, 263, 1051, 310, 19571, 29879, 411, 278, 3402, 525, 29924, 381, 729, 978, 529, 2271, 16299, 313, 4773, 29901, 9136, 11255, 11038, 729, 2045, 597, 3471, 1973, 261, 369, 29889, 510, 29889, 4773, 29914, 2144, 29876, 10399, 925, 525, 29923, 9800, 29915, 1728, 11839, 746, 2309, 29901, 1159, 13, 12, 12, 8000, 5852, 29901, 13, 12, 12, 12, 8269, 29922, 1610, 29918, 2080, 2141, 17010, 2141, 5451, 703, 16521, 13, 12, 12, 12, 361, 6251, 29961, 29900, 1822, 17010, 2141, 13609, 580, 1275, 29915, 29872, 974, 2396, 13, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 12, 13, 12, 12, 12, 361, 7431, 29898, 8269, 29897, 529, 29906, 470, 7431, 29898, 8269, 29961, 29900, 2314, 29966, 29896, 470, 7431, 29898, 8269, 29961, 2435, 29898, 8269, 6817, 29896, 2314, 29966, 29896, 29901, 13, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 13919, 6251, 29892, 3113, 367, 1854, 304, 6084, 278, 19571, 1024, 322, 278, 3988, 1159, 13, 12, 12, 12, 12, 19878, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 11038, 729, 29879, 29889, 4397, 3319, 29908, 11038, 729, 978, 1115, 8269, 29961, 29900, 1822, 17010, 3285, 29908, 2271, 1115, 8269, 29961, 29896, 1822, 17010, 580, 29974, 2146, 600, 861, 29889, 17010, 580, 1800, 13, 12, 361, 7431, 29898, 11038, 729, 29879, 15410, 29900, 29901, 13, 12, 12, 10382, 3366, 11038, 729, 29879, 3108, 29922, 11038, 729, 29879, 13, 12, 361, 313, 12744, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 25559, 366, 26834, 278, 15585, 537, 310, 278, 16532, 934, 525, 17969, 29888, 978, 13578, 29915, 1577, 313, 14565, 408, 411, 402, 16903, 8845, 6877, 1159, 322, 29871, 13, 12, 12, 12744, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 10140, 445, 5142, 29973, 376, 22164, 12, 13, 12, 12, 3051, 29922, 3126, 29889, 29881, 17204, 29898, 10382, 29892, 6605, 29918, 8149, 29922, 5574, 29897, 13, 12, 12, 15843, 287, 29922, 12744, 29889, 29883, 17929, 29889, 4530, 29918, 392, 29918, 15843, 29898, 3051, 29897, 13, 12, 12, 15843, 1004, 29922, 3126, 29889, 29881, 17204, 29898, 15843, 287, 29892, 12860, 29922, 29946, 29892, 6605, 29918, 8149, 29922, 5574, 29897, 12, 13, 12, 12, 2541, 1722, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 12975, 29974, 10382, 3366, 978, 3108, 29974, 1642, 3126, 3284, 29893, 29974, 1159, 408, 4489, 29901, 13, 12, 12, 12, 2176, 29889, 3539, 29898, 15843, 1004, 29897, 13, 12, 12, 13, 1753, 3349, 29898, 12744, 1125, 13, 12, 12744, 29889, 1359, 29918, 28045, 580, 13, 12, 10382, 29918, 16957, 29922, 12744, 29889, 23945, 580, 13, 12, 1454, 321, 297, 270, 29882, 29889, 28045, 29901, 13, 12, 12, 361, 376, 25118, 29908, 297, 321, 322, 321, 3366, 25118, 3108, 1360, 10382, 29918, 16957, 29901, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 12692, 3108, 13578, 22954, 1024, 29901, 15691, 29872, 3366, 978, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 12692, 3108, 13578, 10900, 29901, 15691, 29872, 3366, 7320, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 2283, 1134, 29901, 15691, 29872, 3366, 1853, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 9539, 3108, 13578, 22954, 3988, 29901, 15691, 29872, 3366, 2271, 20068, 12, 12, 12, 12, 13, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 29898, 2780, 3366, 29136, 3108, 13578, 15941, 445, 5142, 16653, 6251, 29973, 376, 1125, 13, 12, 12, 12, 12, 359, 29889, 5992, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 12975, 29974, 29872, 3366, 978, 3108, 29974, 1642, 3126, 1159, 13, 12, 12, 12, 12, 13, 1753, 6315, 5504, 29898, 12744, 1125, 13, 12, 8698, 29922, 8824, 13, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 29903, 9524, 5281, 5142, 16653, 856, 1159, 12, 13, 12, 361, 2897, 29889, 2084, 29889, 9933, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 1125, 13, 12, 12, 359, 29889, 305, 3972, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 20068, 13, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 1202, 3284, 29930, 20068, 19216, 29900, 29901, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 2392, 2734, 525, 5559, 788, 334, 29915, 304, 2767, 278, 1887, 17432, 29889, 3529, 2329, 445, 7522, 23157, 13, 12, 12, 12, 8698, 29922, 8824, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 15060, 3284, 29899, 29885, 3284, 21077, 16653, 3620, 3284, 29930, 20068, 19216, 29900, 29901, 13, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 2392, 2734, 525, 5559, 9063, 448, 29885, 525, 21077, 16653, 3620, 29915, 869, 3529, 2329, 445, 7522, 23157, 12, 13, 12, 12, 12, 12, 8698, 29922, 8824, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 5910, 3284, 29899, 29884, 3284, 12574, 3284, 6207, 20068, 19216, 29900, 29901, 13, 12, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 2392, 2734, 525, 5559, 5503, 448, 29884, 3978, 5835, 29915, 869, 3529, 2329, 445, 7522, 23157, 12, 13, 12, 12, 12, 12, 12, 8698, 29922, 8824, 13, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 8698, 29922, 5574, 13, 12, 361, 2551, 1360, 5574, 29901, 13, 12, 12, 2158, 29898, 2780, 3366, 9539, 3108, 13578, 29248, 596, 16653, 3620, 304, 278, 2225, 300, 6315, 9810, 1159, 13, 12, 12, 13, 12, 2457, 2551, 13, 12, 12, 12, 12, 12, 12, 13, 1753, 2767, 29898, 12744, 29892, 25118, 29922, 8516, 1125, 13, 12, 12744, 29889, 1359, 29918, 28045, 580, 13, 12, 10382, 29918, 16957, 29922, 12744, 29889, 23945, 29898, 25118, 29922, 25118, 29897, 13, 12, 12, 12, 13, 12, 1454, 321, 297, 270, 29882, 29889, 28045, 29901, 13, 12, 12, 361, 376, 25118, 29908, 297, 321, 322, 321, 3366, 25118, 3108, 1360, 10382, 29918, 16957, 29901, 13, 12, 12, 12, 12744, 29889, 29883, 17929, 29889, 4294, 1989, 29898, 29872, 3366, 18816, 3888, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 12692, 3108, 13578, 22954, 1024, 29901, 15691, 29872, 3366, 978, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 12692, 3108, 13578, 10900, 29901, 15691, 29872, 3366, 7320, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 2283, 1134, 29901, 15691, 29872, 3366, 1853, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 9539, 3108, 13578, 22954, 3988, 29901, 15691, 29872, 3366, 2271, 20068, 12, 12, 13, 12, 12, 12, 13, 12, 12, 12, 7529, 29922, 2636, 13, 12, 12, 12, 1454, 282, 297, 321, 29901, 13, 12, 12, 12, 12, 361, 451, 851, 29898, 29886, 467, 17010, 580, 297, 6796, 18816, 3888, 3108, 29901, 13, 12, 12, 12, 12, 12, 7529, 29889, 4397, 29898, 29886, 29897, 13, 12, 12, 12, 7529, 29889, 4397, 703, 25632, 1159, 13, 12, 12, 12, 8000, 5852, 29901, 12, 12, 13, 12, 12, 12, 12, 16957, 29922, 12744, 29889, 4422, 29889, 21574, 29918, 16957, 29898, 2780, 3366, 29136, 3108, 13578, 12148, 1831, 263, 1828, 357, 304, 2767, 363, 15691, 29872, 3366, 978, 3108, 29974, 1642, 3549, 525, 25632, 29915, 746, 7743, 29901, 9162, 7529, 29897, 13, 12, 12, 12, 12, 361, 7348, 26359, 25632, 1115, 13, 12, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 7583, 995, 363, 15691, 16957, 29974, 1115, 29905, 29876, 17969, 710, 29898, 29872, 29961, 16957, 12622, 13, 12, 12, 12, 12, 12, 29872, 29961, 16957, 13192, 1610, 29918, 2080, 703, 3366, 29974, 29872, 3366, 978, 3108, 29974, 3108, 3529, 3896, 263, 716, 995, 363, 525, 17969, 16957, 13578, 29915, 584, 16521, 13, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 10454, 393, 366, 29915, 345, 4784, 525, 17969, 29872, 3366, 978, 3108, 13578, 742, 10878, 366, 763, 304, 337, 29899, 10382, 278, 934, 322, 2767, 372, 29915, 29879, 6608, 1819, 29973, 16521, 1360, 5574, 29901, 13, 12, 12, 12, 12, 8000, 5852, 29901, 12, 13, 12, 12, 12, 12, 12, 29888, 978, 29922, 12744, 29889, 9155, 29898, 29872, 3366, 2271, 20068, 13, 12, 12, 12, 12, 12, 361, 451, 2897, 29889, 2084, 29889, 9933, 29898, 29888, 978, 29897, 470, 2897, 29889, 2084, 29889, 657, 2311, 29898, 29888, 978, 29897, 29966, 29896, 29901, 13, 12, 12, 12, 12, 12, 12, 2158, 703, 3112, 2444, 28536, 445, 934, 304, 29901, 15691, 29888, 978, 13578, 11699, 5229, 29905, 29876, 12024, 29915, 29879, 1018, 445, 1449, 23157, 13, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12, 4415, 29922, 842, 580, 13, 12, 12, 12, 12, 1454, 24673, 297, 6608, 1982, 29889, 9564, 12404, 29918, 16515, 29901, 13, 12, 12, 12, 12, 12, 361, 24673, 297, 6796, 17051, 29945, 29896, 29906, 3284, 17051, 29906, 29945, 29953, 3284, 1332, 5168, 10109, 3284, 6472, 331, 29881, 29896, 29953, 29900, 3108, 29901, 13, 12, 12, 12, 12, 12, 12, 4415, 29889, 1202, 29898, 8568, 1982, 29889, 1482, 29898, 284, 1484, 876, 13, 12, 12, 12, 12, 2541, 1722, 29898, 29888, 978, 1699, 6050, 1159, 408, 285, 29901, 13, 12, 12, 12, 12, 12, 578, 15641, 29922, 29900, 13, 12, 12, 12, 12, 12, 7827, 29922, 359, 29889, 2084, 29889, 657, 2311, 29898, 29888, 978, 29897, 13, 12, 12, 12, 12, 12, 8000, 5852, 29901, 13, 12, 12, 12, 12, 12, 12, 1271, 29922, 29888, 29889, 949, 29898, 29953, 29945, 29945, 29941, 29953, 29897, 13, 12, 12, 12, 12, 12, 12, 361, 7431, 29898, 1271, 29897, 29966, 29896, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 578, 15641, 23661, 2435, 29898, 1271, 29897, 13, 12, 12, 12, 12, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 14182, 29878, 6359, 577, 2215, 3583, 29873, 17969, 710, 29898, 578, 15641, 14571, 7827, 29914, 29896, 29900, 29900, 29889, 29900, 29900, 876, 7503, 29945, 1822, 29880, 5143, 29898, 29945, 1699, 376, 7240, 29908, 8958, 1159, 12, 13, 12, 12, 12, 12, 12, 12, 1454, 298, 297, 298, 29880, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 29882, 29889, 5504, 29898, 1271, 29897, 13, 12, 12, 12, 12, 2158, 14182, 29876, 1159, 12, 12, 12, 13, 12, 12, 12, 12, 1454, 298, 297, 298, 29880, 29901, 13, 12, 12, 12, 12, 12, 7501, 342, 29922, 29882, 29889, 20970, 7501, 342, 580, 13, 12, 12, 12, 12, 12, 2158, 14182, 29873, 20535, 630, 15691, 29882, 29889, 978, 13578, 4697, 342, 3583, 29873, 15691, 7501, 342, 29897, 13, 12, 12, 12, 12, 12, 29872, 29961, 29882, 29889, 978, 13192, 7501, 342, 13, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12, 12, 13, 12, 12, 12, 361, 313, 12744, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 25559, 366, 26834, 278, 1120, 4173, 537, 310, 278, 6608, 267, 363, 278, 5142, 525, 17969, 29872, 3366, 978, 3108, 13578, 29915, 1577, 313, 14565, 408, 411, 402, 16903, 8845, 6877, 1159, 322, 29871, 12, 12, 13, 12, 12, 12, 12, 12744, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 10140, 445, 5142, 29973, 376, 22164, 12, 13, 12, 12, 12, 12, 13, 12, 12, 12, 12, 15843, 1004, 29922, 3126, 29889, 29881, 17204, 29898, 12744, 29889, 29883, 17929, 29889, 4530, 29918, 392, 29918, 15843, 29898, 3126, 29889, 29881, 17204, 29898, 29872, 29892, 6605, 29918, 8149, 29922, 5574, 8243, 12860, 29922, 29946, 29892, 6605, 29918, 8149, 29922, 5574, 29897, 12, 13, 12, 12, 12, 12, 2541, 1722, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 12975, 29974, 29872, 3366, 978, 3108, 29974, 1642, 3126, 3284, 29893, 29974, 1159, 408, 4489, 29901, 13, 12, 12, 12, 12, 12, 2176, 29889, 3539, 29898, 15843, 1004, 29897, 13, 12, 12, 12, 8690, 12, 12, 12, 12, 12, 12, 12, 13, 12, 13, 1753, 27350, 29898, 12744, 1125, 13, 12, 12744, 29889, 1359, 29918, 28045, 580, 13, 12, 10382, 29918, 16957, 29922, 12744, 29889, 23945, 580, 13, 12, 361, 6213, 338, 5142, 29918, 16957, 470, 7431, 29898, 12744, 29889, 28045, 29897, 29966, 29900, 470, 7431, 29898, 10382, 29918, 16957, 29897, 29966, 29900, 29901, 13, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 7583, 5142, 16653, 338, 4069, 29892, 28450, 304, 27350, 23157, 13, 12, 12, 2457, 13, 12, 12, 12, 13, 12, 1454, 321, 297, 270, 29882, 29889, 28045, 29901, 13, 12, 12, 361, 376, 25118, 29908, 297, 321, 322, 321, 3366, 25118, 3108, 1360, 10382, 29918, 16957, 29901, 13, 12, 12, 12, 12744, 29889, 29883, 17929, 29889, 4294, 1989, 29898, 29872, 3366, 18816, 3888, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 12692, 3108, 13578, 22954, 1024, 29901, 15691, 29872, 3366, 978, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 12692, 3108, 13578, 10900, 29901, 15691, 29872, 3366, 7320, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 29136, 3108, 13578, 2283, 1134, 29901, 15691, 29872, 3366, 1853, 20068, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 9539, 3108, 13578, 22954, 3988, 29901, 15691, 29872, 3366, 2271, 20068, 13, 12, 12, 12, 29872, 3366, 978, 3108, 29922, 1610, 29918, 2080, 703, 29943, 548, 292, 525, 17969, 29872, 3366, 978, 3108, 13578, 29915, 3529, 3896, 263, 716, 1024, 29901, 16521, 13, 12, 12, 12, 29872, 3366, 25118, 3108, 29922, 710, 29898, 25118, 29889, 25118, 29946, 3101, 13, 13, 12, 12, 12, 15843, 1004, 29922, 3126, 29889, 29881, 17204, 29898, 12744, 29889, 29883, 17929, 29889, 4530, 29918, 392, 29918, 15843, 29898, 3126, 29889, 29881, 17204, 29898, 29872, 29892, 6605, 29918, 8149, 29922, 5574, 8243, 12860, 29922, 29946, 29892, 6605, 29918, 8149, 29922, 5574, 29897, 12, 13, 12, 12, 12, 2541, 1722, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 12975, 29974, 29872, 3366, 978, 3108, 29974, 1642, 3126, 3284, 29893, 29974, 1159, 408, 4489, 29901, 13, 12, 12, 12, 12, 2176, 29889, 3539, 29898, 15843, 1004, 29897, 13, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12744, 29889, 1359, 29918, 28045, 580, 12, 12, 13, 12, 12, 12, 5504, 29898, 12744, 29892, 29872, 3366, 25118, 20068, 13, 12, 12, 12, 13, 1753, 1667, 7295, 13, 12, 12744, 29922, 22954, 26322, 479, 457, 580, 13, 12, 361, 451, 270, 29882, 29889, 2344, 29918, 6272, 7295, 13, 12, 12, 12, 2158, 703, 29907, 768, 936, 1059, 2847, 5281, 29889, 1222, 11407, 7389, 23157, 13, 12, 12, 12, 9675, 29889, 13322, 29898, 29896, 29897, 13, 12, 361, 451, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 6132, 366, 505, 9063, 5999, 2356, 479, 363, 278, 5279, 13252, 6315, 9810, 29973, 15691, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 29905, 29876, 5240, 866, 9810, 11283, 17969, 12744, 29889, 5527, 3366, 5559, 20095, 3108, 13578, 29915, 1577, 29908, 1125, 13, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 1349, 886, 674, 2867, 565, 591, 6773, 304, 1735, 278, 5279, 13252, 9810, 7790, 29876, 797, 1797, 304, 4772, 393, 29892, 881, 591, 10822, 263, 716, 9810, 29973, 313, 4013, 716, 9810, 674, 367, 8745, 491, 366, 14366, 376, 1125, 13, 12, 12, 12, 12744, 29889, 5527, 3366, 5559, 20095, 3108, 29922, 1610, 29918, 2080, 703, 10399, 278, 7592, 3988, 393, 674, 367, 1304, 304, 12231, 675, 445, 716, 9810, 29901, 16521, 13, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 3582, 1217, 29918, 16957, 703, 11403, 263, 1422, 1887, 3884, 363, 445, 716, 16653, 29973, 313, 22709, 29901, 565, 366, 5839, 694, 29892, 1552, 1857, 8118, 310, 15691, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 2811, 367, 11132, 9575, 376, 1125, 13, 12, 12, 12, 12, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 29922, 12744, 29889, 4422, 29889, 21574, 29918, 16957, 29918, 16041, 1821, 703, 11921, 881, 278, 5142, 16653, 434, 367, 6087, 29973, 613, 29961, 359, 29889, 657, 6272, 877, 17353, 1495, 13578, 29914, 6767, 18132, 29914, 10382, 5819, 479, 457, 29899, 28045, 613, 359, 29889, 657, 6272, 877, 17353, 1495, 13578, 29914, 10382, 5819, 479, 457, 29899, 28045, 20068, 13, 12, 12, 12, 12744, 29889, 4422, 29889, 4804, 29898, 3366, 1758, 3284, 29899, 9600, 29894, 613, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 2314, 396, 4353, 412, 714, 278, 1857, 16653, 29889, 13, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 2344, 613, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 2314, 19216, 29900, 29901, 13, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 2392, 2847, 5281, 278, 10434, 6315, 9810, 310, 278, 5142, 16653, 29889, 3529, 1207, 1854, 278, 1887, 17432, 3884, 525, 17969, 12744, 29889, 5527, 3366, 2997, 16513, 3108, 13578, 29915, 508, 367, 2825, 491, 6315, 322, 3692, 596, 8986, 3957, 338, 14372, 2130, 304, 596, 10434, 6315, 9810, 23157, 13, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 2499, 725, 6703, 29892, 3113, 10365, 596, 5285, 304, 1104, 3647, 738, 1788, 470, 3564, 3620, 23157, 13, 12, 12, 12, 12, 9675, 29889, 13322, 29898, 29896, 29897, 13, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 359, 29889, 305, 3972, 29898, 12744, 29889, 5527, 3366, 2997, 16513, 20068, 13, 12, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 16674, 3284, 1202, 3284, 12574, 613, 12744, 29889, 5527, 3366, 5559, 20095, 3108, 2314, 19216, 29900, 29901, 13, 12, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 17776, 304, 1065, 525, 5559, 7592, 788, 3978, 15691, 12744, 29889, 5527, 3366, 5559, 20095, 3108, 13578, 29915, 869, 3529, 2329, 445, 7522, 23157, 13, 12, 12, 12, 12, 12, 9675, 29889, 13322, 29898, 29896, 29897, 13, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 9155, 20068, 19216, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 17776, 304, 1065, 525, 5559, 6699, 29915, 869, 3529, 2329, 445, 7522, 23157, 13, 12, 12, 12, 12, 12, 12, 9675, 29889, 13322, 29898, 29896, 29897, 13, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 361, 270, 29882, 29889, 4422, 29889, 4804, 29898, 3366, 5559, 3284, 3198, 449, 3284, 6207, 20068, 19216, 29900, 29901, 13, 12, 12, 12, 12, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 17776, 304, 1065, 525, 5559, 24808, 5835, 29915, 869, 3529, 2329, 445, 7522, 23157, 13, 12, 12, 12, 12, 12, 12, 12, 9675, 29889, 13322, 29898, 29896, 29897, 13, 12, 12, 12, 12, 12, 12, 13, 12, 12, 12, 12, 12, 12, 12, 12, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 2158, 29898, 2780, 3366, 1127, 3108, 13578, 29903, 3818, 29892, 366, 2609, 10933, 263, 16653, 29898, 5559, 9810, 29897, 1728, 1641, 2221, 304, 9063, 304, 372, 1159, 13, 12, 12, 12, 9675, 29889, 13322, 29898, 29896, 29897, 13, 12, 12, 12, 13, 12, 12, 12, 2541, 1722, 29898, 12744, 29889, 4422, 29889, 23945, 2084, 29898, 12744, 29889, 2917, 29918, 24772, 511, 29908, 29893, 29974, 1159, 408, 274, 29888, 29901, 13, 12, 12, 12, 12, 6854, 29889, 3539, 29898, 3126, 29889, 29881, 17204, 29898, 12744, 29889, 5527, 29892, 12860, 29922, 29946, 29892, 6605, 29918, 8149, 29922, 5574, 876, 13, 12, 8000, 5852, 29901, 12, 12, 13, 12, 12, 12744, 29889, 29887, 1169, 2720, 580, 12, 12, 13, 12, 12, 16957, 29922, 12744, 29889, 4422, 29889, 21574, 29918, 16957, 703, 5618, 723, 366, 763, 304, 437, 29973, 613, 3366, 2528, 3284, 15941, 3284, 6422, 3284, 29943, 548, 3284, 1293, 3284, 24365, 20068, 13, 12, 12, 361, 7348, 26359, 2528, 1115, 13, 12, 12, 12, 1202, 29898, 12744, 29897, 13, 12, 12, 23681, 7348, 26359, 15941, 1115, 13, 12, 12, 12, 5992, 29898, 12744, 29897, 13, 12, 12, 23681, 7348, 26359, 6422, 1115, 13, 12, 12, 12, 5504, 29898, 12744, 29897, 13, 12, 12, 23681, 7348, 26359, 29943, 548, 1115, 13, 12, 12, 12, 29888, 548, 29898, 12744, 29897, 13, 12, 12, 23681, 7348, 26359, 1293, 1115, 13, 12, 12, 12, 12744, 29889, 1359, 29918, 28045, 580, 13, 12, 12, 12, 12744, 29889, 15070, 29918, 28045, 580, 12, 13, 12, 12, 23681, 7348, 26359, 24365, 1115, 13, 12, 12, 12, 8690, 12, 13, 12, 12, 5559, 5504, 29898, 12744, 29897, 12, 13, 12, 12, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 12, 3396, 580, 13, 2 ]
009_special_pythagorean_triplet.py
fbcom/project-euler
0
76309
<gh_stars>0 #!/usr/bin/env python # -*- coding: utf-8 -*- # # A Solution to "Special Pythagorean triplet" – Project Euler Problem No. 9 # by <NAME> # # Sourcecode: https://github.com/fbcom/project-euler # Problem statement: https://projecteuler.net/problem=9 # def isPythagoreanTriple(a, b, c): if a < b < c: return a**2 + b**2 == c**2 return False def findTipleHavingSum(sum): # small problem size -> brute force it for a in range(1, sum): for b in range(a, sum - a + 1): for c in range(b, sum - b + 1): if a+b+c == sum: if isPythagoreanTriple(a, b, c): return (a, b, c) sum = 1000 triple = findTipleHavingSum(sum) print "Triple:", triple print "Solution:", reduce(lambda product, factor: product * factor, triple)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 13, 29937, 319, 24380, 304, 376, 24780, 349, 1541, 351, 487, 273, 21954, 29873, 29908, 785, 8010, 382, 8584, 11583, 1939, 29889, 29871, 29929, 13, 29937, 491, 529, 5813, 29958, 13, 29937, 13, 29937, 7562, 401, 29901, 2045, 597, 3292, 29889, 510, 29914, 14943, 510, 29914, 4836, 29899, 29872, 8584, 13, 29937, 11583, 3229, 29901, 2045, 597, 4836, 29872, 8584, 29889, 1212, 29914, 17199, 29922, 29929, 13, 29937, 13, 13, 13, 1753, 338, 29925, 1541, 351, 487, 273, 29565, 552, 29898, 29874, 29892, 289, 29892, 274, 1125, 13, 1678, 565, 263, 529, 289, 529, 274, 29901, 13, 4706, 736, 263, 1068, 29906, 718, 289, 1068, 29906, 1275, 274, 1068, 29906, 13, 1678, 736, 7700, 13, 13, 13, 1753, 1284, 29911, 29875, 552, 29950, 5555, 11139, 29898, 2083, 1125, 13, 1678, 396, 2319, 1108, 2159, 1599, 1506, 1082, 4889, 372, 13, 1678, 363, 263, 297, 3464, 29898, 29896, 29892, 2533, 1125, 13, 4706, 363, 289, 297, 3464, 29898, 29874, 29892, 2533, 448, 263, 718, 29871, 29896, 1125, 13, 9651, 363, 274, 297, 3464, 29898, 29890, 29892, 2533, 448, 289, 718, 29871, 29896, 1125, 13, 18884, 565, 263, 29974, 29890, 29974, 29883, 1275, 2533, 29901, 13, 462, 1678, 565, 338, 29925, 1541, 351, 487, 273, 29565, 552, 29898, 29874, 29892, 289, 29892, 274, 1125, 13, 462, 4706, 736, 313, 29874, 29892, 289, 29892, 274, 29897, 13, 13, 2083, 353, 29871, 29896, 29900, 29900, 29900, 13, 3626, 552, 353, 1284, 29911, 29875, 552, 29950, 5555, 11139, 29898, 2083, 29897, 13, 2158, 376, 29565, 552, 29901, 613, 21954, 13, 2158, 376, 13296, 918, 29901, 613, 10032, 29898, 2892, 3234, 29892, 7329, 29901, 3234, 334, 7329, 29892, 21954, 29897, 13, 2 ]
dataset/ADS_Dataset_generator_2.py
pravk03/responsible_ai_hackathon
0
113225
#!/usr/bin/env python # coding: utf-8 # <b> Run below cells from the folder that contains ads16_dataset/ unzipped </b> # In[1]: import pandas as pd import glob import pathlib import re # In[2]: pd.set_option('display.max_colwidth', -1) # In[3]: # Global constants g_userPart1PathPrefix = "./ads16-dataset/ADS16_Benchmark_part1/ADS16_Benchmark_part1/Corpus/Corpus/" g_userPart2PathPrefix = "./ads16-dataset/ADS16_Benchmark_part2/ADS16_Benchmark_part2/Corpus/Corpus/" g_userIdPrefix = "U0" g_adsPart1PathPrefix = "./ads16-dataset/ADS16_Benchmark_part1/ADS16_Benchmark_part1/Ads/Ads/" g_adsPart2PathPrefix = "./ads16-dataset/ADS16_Benchmark_part2/ADS16_Benchmark_part2/Ads/Ads/" # # UDFs # ## UDFs for generating Users Dataset # In[4]: def generate_data_User( pathPrefix, userId ): completePath = pathPrefix + userId + "/" # INF infFile = userId + "-INF.csv" userInf_df = pd.read_csv(completePath + infFile, delimiter=";") # Pref prefFile = userId + "-PREF.csv" userPref_df = pd.read_csv(completePath + prefFile, delimiter=";") user_df = pd.concat([userInf_df, userPref_df], axis=1) # Pos posFile = userId + "-IM-POS.csv" userPos_df = pd.read_csv(completePath + posFile, delimiter=";") userPos_df = userPos_df.iloc[1:] userPos_df.reset_index(drop=True, inplace=True) user_df = pd.concat([user_df, userPos_df], axis=1) # Neg negFile = userId + "-IM-NEG.csv" userNeg_df = pd.read_csv(completePath + negFile, delimiter=";") userNeg_df = userNeg_df.iloc[1:] userNeg_df.reset_index(drop=True, inplace=True) user_df = pd.concat([user_df, userNeg_df], axis=1) user_df.insert(0, "UserId", userId, True) # user_df = user_df.set_index('UserId') # user_df.info() return user_df # In[5]: def generate_data_partUsers( usersPartPathPrefix, startRange, endRange ): partUsers_df = pd.DataFrame() for i in range(startRange, endRange): thisUserIdNum = str(i) thisUserId = g_userIdPrefix + thisUserIdNum.zfill(3) # print(thisUserId) thisUser_df = generate_data_User(usersPartPathPrefix, thisUserId) partUsers_df = partUsers_df.append(thisUser_df, sort=True) partUsers_df.set_index('UserId') return partUsers_df # In[6]: def generate_data_allUsers(): allUsers_df = pd.DataFrame() part1Users_df = generate_data_partUsers(g_userPart1PathPrefix, 1, 61) allUsers_df = allUsers_df.append(part1Users_df, sort=True) part2Users_df = generate_data_partUsers(g_userPart2PathPrefix, 61, 121) allUsers_df = allUsers_df.append(part2Users_df, sort=True) return allUsers_df # ## UDFs for generating Ads Dataset # In[7]: def generate_data_adCats(): adCatsLst = [['01', "Clothing & Shoes", 16], ['02', "Automotive", 15], ['03', "Baby Products", 15], ['04', "Health & Beauty", 15], ['05', "Media (BMVD)", 15], ['06', "Consumer Electronics", 15], ['07', "Console & Video Games", 15], ['08', "DIY & Tools", 15], ['09', "Garden & Outdoor living", 15], ['10', "Grocery", 15], ['11', "Kitchen & Home", 15], ['12', "Betting", 15], ['13', "Jewellery & Watches", 15], ['14', "Musical Instruments", 15], ['15', "Office Products", 15], ['16', "Pet Supplies", 15], ['17', "Computer Software", 15], ['18', "Sports & Outdoors", 15], ['19', "Toys & Games", 15], ['20', "Dating Sites", 15] ] adCats_df = pd.DataFrame(adCatsLst, columns =['AdCatId', 'AdCatName', 'AdCatNumAds']) return adCats_df # In[8]: import re def atoi(text): return int(text) if text.isdigit() else text def natural_keys(text): return [ atoi(c) for c in re.split(r'(\d+)',text.split('/')[-1].split('.')[0]) ] def generate_data_partAds( adsPartPathPrefix, startRange, endRange ): partAds_df = pd.DataFrame() partAdsRows = [] for i in range(startRange, endRange): iStr = str(i) adsFiles = pathlib.Path(adsPartPathPrefix + iStr + "/").glob("*.png") adsFileStrLst = [] for adsFile in adsFiles: adsFileStr = str(adsFile) adsFileStrLst.append(adsFileStr) adsFileStrLst.sort(key=natural_keys) for adsFileStr in adsFileStrLst: adId = adsFileStr.split('/')[-1].split('.')[0] adId = "A" + iStr.zfill(2) + "_" + adId.zfill(2) # print(adId, adsFileStr) partAdsRows.append([adId, adsFileStr]) partAds_df = pd.DataFrame(partAdsRows, columns =['AdId', 'AdFilePath']) partAds_df.set_index('AdId') return partAds_df # In[9]: # DEBUG def generate_data_allAds(): allAds_df = pd.DataFrame() part1Ads_df = generate_data_partAds(g_adsPart1PathPrefix, 1, 11) allAds_df = allAds_df.append(part1Ads_df, sort=True) part2Ads_df = generate_data_partAds(g_adsPart2PathPrefix, 11, 21) allAds_df = allAds_df.append(part2Ads_df, sort=True) allAds_df = allAds_df.set_index('AdId') return allAds_df # ## UDFs for generating Ratings Dataset # In[10]: def df_crossjoin(df1, df2): df1['_tmpkey'] = 1 df2['_tmpkey'] = 1 res = pd.merge(df1, df2, on='_tmpkey').drop('_tmpkey', axis=1) res.index = pd.MultiIndex.from_product((df1.index, df2.index)) df1.drop('_tmpkey', axis=1, inplace=True) df2.drop('_tmpkey', axis=1, inplace=True) return res # In[11]: # TODO: Move this UDF to top UDFs section def generate_data_RatingsPerUser( pathPrefix, userId ): completePath = pathPrefix + userId + "/" data = "" rtFile = userId + "-RT.csv" rtNewFile = userId + "-RT-NEW.csv" with open(completePath + rtFile) as file: data = file.read().replace("\"", "") with open(completePath + rtNewFile,"w") as file: file.write(data) my_cols = [str(i) for i in range(300)] data3 = pd.read_csv(completePath + rtNewFile, sep=";|,", names=my_cols, header=None, engine="python") data3 = data3.iloc[2:] data3.reset_index(drop = True, inplace = True) for i in range(20): index = str(i) data3[index] = data3[index].astype('float64') data3 = data3.transpose() return data3 # In[12]: def generate_data_RatingsPartUsers( usersPartPathPrefix, startRange, endRange ): partUsers_df = pd.DataFrame() for i in range(startRange, endRange): thisUserIdNum = str(i) thisUserId = g_userIdPrefix + thisUserIdNum.zfill(3) # print(thisUserId) thisUser_df = generate_data_RatingsPerUser(usersPartPathPrefix, thisUserId) partUsers_df = partUsers_df.append(thisUser_df, sort=True) # partUsers_df.set_index('UserId') return partUsers_df # In[13]: def generate_data_RatingsAllUsers(): allUsers_df = pd.DataFrame() part1Users_df = generate_data_RatingsPartUsers(g_userPart1PathPrefix, 1, 61) allUsers_df = allUsers_df.append(part1Users_df, sort=True) part2Users_df = generate_data_RatingsPartUsers(g_userPart2PathPrefix, 61, 121) allUsers_df = allUsers_df.append(part2Users_df, sort=True) return allUsers_df # # Generate datasets # ## Generate Users dataset # In[14]: allUsers_df = generate_data_allUsers() allUsers_df = allUsers_df.set_index('UserId') # In[15]: allUsers_df.head() # In[16]: allUsers_df.info() # In[17]: allUsers_df.to_csv("AllUsers.csv", index=True) # ## Generate Ads Categories Dataset # In[18]: adCats_df = generate_data_adCats() adCats_df = adCats_df.set_index('AdCatId') # In[19]: adCats_df.head() # In[20]: adCats_df.info() # In[21]: adCats_df.to_csv("AdCats.csv", index=True) # ## Generate Ads Dataset # In[22]: allAds_df = generate_data_allAds() # In[23]: allAds_df.info() # In[24]: allAds_df.head() # In[25]: allAds_df.to_csv("AllAds.csv", index=True) # ## Generate Users\*Ads Dataset # In[26]: allUsers_And_Ads_df = df_crossjoin(allUsers_df, allAds_df) # In[27]: allUsers_And_Ads_df.info() # In[28]: allUsers_And_Ads_df = allUsers_And_Ads_df.reset_index() allUsers_And_Ads_df.rename(columns={'level_0':'UserId'}, inplace=True) allUsers_And_Ads_df.rename(columns={'level_1':'AdId'}, inplace=True) allUsers_And_Ads_df.head(302) # In[29]: allUsers_And_Ads_df.to_csv("AllUsers_And_Ads.csv", index=False) # ## Generate UsersRatings Dataset # In[30]: allUsersRatings_df = generate_data_RatingsAllUsers() # In[31]: allUsersRatings_df.rename(columns={0:'Rating'}, inplace=True) # In[32]: allUsersRatings_df.info() # In[33]: allUsersRatings_df.head(301) # ## Generate Final Dataset # In[34]: allUsers_And_Ads_df.head() # In[35]: allUsersRatings_df.head() # In[36]: allUsers_And_Ads_df.reset_index(drop=True, inplace=True) allUsersRatings_df.reset_index(drop=True, inplace=True) allUsers_Ads_Ratings_df = pd.concat([allUsers_And_Ads_df, allUsersRatings_df], axis=1) # In[37]: allUsers_Ads_Ratings_df.info() # In[38]: allUsers_Ads_Ratings_df.head(5) # In[39]: allUsers_Ads_Ratings_df.to_csv("AllUsers_Ads_Ratings_df.csv", index=False) # # Scratchpad # In[ ]:
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 13, 29937, 529, 29890, 29958, 7525, 2400, 9101, 515, 278, 4138, 393, 3743, 594, 29879, 29896, 29953, 29918, 24713, 29914, 443, 2526, 2986, 1533, 29890, 29958, 13, 13, 29937, 512, 29961, 29896, 5387, 13, 13, 13, 5215, 11701, 408, 10518, 13, 5215, 13149, 13, 5215, 2224, 1982, 13, 5215, 337, 13, 13, 13, 29937, 512, 29961, 29906, 5387, 13, 13, 13, 15926, 29889, 842, 29918, 3385, 877, 4990, 29889, 3317, 29918, 1054, 2103, 742, 448, 29896, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 5387, 13, 13, 13, 29937, 12002, 17727, 13, 29887, 29918, 1792, 7439, 29896, 2605, 23095, 353, 376, 6904, 7925, 29896, 29953, 29899, 24713, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29896, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29896, 29914, 12521, 13364, 29914, 12521, 13364, 12975, 13, 29887, 29918, 1792, 7439, 29906, 2605, 23095, 353, 376, 6904, 7925, 29896, 29953, 29899, 24713, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29906, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29906, 29914, 12521, 13364, 29914, 12521, 13364, 12975, 13, 29887, 29918, 29721, 23095, 353, 376, 29965, 29900, 29908, 13, 13, 29887, 29918, 7925, 7439, 29896, 2605, 23095, 353, 376, 6904, 7925, 29896, 29953, 29899, 24713, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29896, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29896, 29914, 3253, 29879, 29914, 3253, 29879, 12975, 13, 29887, 29918, 7925, 7439, 29906, 2605, 23095, 353, 376, 6904, 7925, 29896, 29953, 29899, 24713, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29906, 29914, 3035, 29903, 29896, 29953, 29918, 20841, 16580, 29918, 1595, 29906, 29914, 3253, 29879, 29914, 3253, 29879, 12975, 13, 13, 13, 29937, 396, 501, 4037, 29879, 13, 13, 29937, 444, 501, 4037, 29879, 363, 14655, 23861, 13373, 24541, 13, 13, 29937, 512, 29961, 29946, 5387, 13, 13, 13, 1753, 5706, 29918, 1272, 29918, 2659, 29898, 2224, 23095, 29892, 1404, 1204, 29871, 1125, 13, 1678, 4866, 2605, 353, 2224, 23095, 718, 1404, 1204, 718, 5591, 29908, 13, 268, 13, 1678, 396, 2672, 29943, 13, 1678, 3041, 2283, 353, 1404, 1204, 718, 11663, 24065, 29889, 7638, 29908, 13, 1678, 1404, 25433, 29918, 2176, 353, 10518, 29889, 949, 29918, 7638, 29898, 8835, 2605, 718, 3041, 2283, 29892, 28552, 543, 29936, 1159, 13, 268, 13, 1678, 396, 27611, 13, 1678, 758, 29888, 2283, 353, 1404, 1204, 718, 11663, 15094, 29943, 29889, 7638, 29908, 13, 1678, 1404, 29925, 999, 29918, 2176, 353, 10518, 29889, 949, 29918, 7638, 29898, 8835, 2605, 718, 758, 29888, 2283, 29892, 28552, 543, 29936, 1159, 13, 268, 13, 1678, 1404, 29918, 2176, 353, 10518, 29889, 17685, 4197, 1792, 25433, 29918, 2176, 29892, 1404, 29925, 999, 29918, 2176, 1402, 9685, 29922, 29896, 29897, 13, 268, 13, 1678, 396, 10321, 13, 1678, 926, 2283, 353, 1404, 1204, 718, 11663, 7833, 29899, 24815, 29889, 7638, 29908, 13, 1678, 1404, 9135, 29918, 2176, 353, 10518, 29889, 949, 29918, 7638, 29898, 8835, 2605, 718, 926, 2283, 29892, 28552, 543, 29936, 1159, 13, 1678, 1404, 9135, 29918, 2176, 353, 1404, 9135, 29918, 2176, 29889, 309, 542, 29961, 29896, 17531, 13, 1678, 1404, 9135, 29918, 2176, 29889, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29892, 297, 6689, 29922, 5574, 29897, 13, 1678, 1404, 29918, 2176, 353, 10518, 29889, 17685, 4197, 1792, 29918, 2176, 29892, 1404, 9135, 29918, 2176, 1402, 9685, 29922, 29896, 29897, 13, 13, 1678, 396, 12610, 13, 1678, 3480, 2283, 353, 1404, 1204, 718, 11663, 7833, 29899, 8186, 29954, 29889, 7638, 29908, 13, 1678, 1404, 29940, 387, 29918, 2176, 353, 10518, 29889, 949, 29918, 7638, 29898, 8835, 2605, 718, 3480, 2283, 29892, 28552, 543, 29936, 1159, 13, 1678, 1404, 29940, 387, 29918, 2176, 353, 1404, 29940, 387, 29918, 2176, 29889, 309, 542, 29961, 29896, 17531, 13, 1678, 1404, 29940, 387, 29918, 2176, 29889, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29892, 297, 6689, 29922, 5574, 29897, 13, 1678, 1404, 29918, 2176, 353, 10518, 29889, 17685, 4197, 1792, 29918, 2176, 29892, 1404, 29940, 387, 29918, 2176, 1402, 9685, 29922, 29896, 29897, 13, 13, 1678, 1404, 29918, 2176, 29889, 7851, 29898, 29900, 29892, 376, 2659, 1204, 613, 1404, 1204, 29892, 5852, 29897, 13, 1678, 396, 1404, 29918, 2176, 353, 1404, 29918, 2176, 29889, 842, 29918, 2248, 877, 2659, 1204, 1495, 13, 1678, 396, 1404, 29918, 2176, 29889, 3888, 580, 13, 268, 13, 1678, 736, 1404, 29918, 2176, 13, 13, 13, 29937, 512, 29961, 29945, 5387, 13, 13, 13, 1753, 5706, 29918, 1272, 29918, 1595, 5959, 29898, 4160, 7439, 2605, 23095, 29892, 1369, 6069, 29892, 1095, 6069, 29871, 1125, 13, 1678, 760, 5959, 29918, 2176, 353, 10518, 29889, 17271, 580, 13, 268, 13, 1678, 363, 474, 297, 3464, 29898, 2962, 6069, 29892, 1095, 6069, 1125, 13, 4706, 445, 2659, 1204, 8009, 353, 851, 29898, 29875, 29897, 13, 4706, 445, 2659, 1204, 353, 330, 29918, 29721, 23095, 718, 445, 2659, 1204, 8009, 29889, 29920, 5589, 29898, 29941, 29897, 13, 4706, 396, 1596, 29898, 1366, 2659, 1204, 29897, 13, 4706, 445, 2659, 29918, 2176, 353, 5706, 29918, 1272, 29918, 2659, 29898, 7193, 7439, 2605, 23095, 29892, 445, 2659, 1204, 29897, 13, 4706, 760, 5959, 29918, 2176, 353, 760, 5959, 29918, 2176, 29889, 4397, 29898, 1366, 2659, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 4706, 760, 5959, 29918, 2176, 29889, 842, 29918, 2248, 877, 2659, 1204, 1495, 13, 308, 13, 1678, 736, 760, 5959, 29918, 2176, 13, 13, 13, 29937, 512, 29961, 29953, 5387, 13, 13, 13, 1753, 5706, 29918, 1272, 29918, 497, 5959, 7295, 13, 1678, 599, 5959, 29918, 2176, 353, 10518, 29889, 17271, 580, 13, 13, 1678, 760, 29896, 5959, 29918, 2176, 353, 5706, 29918, 1272, 29918, 1595, 5959, 29898, 29887, 29918, 1792, 7439, 29896, 2605, 23095, 29892, 29871, 29896, 29892, 29871, 29953, 29896, 29897, 13, 1678, 599, 5959, 29918, 2176, 353, 599, 5959, 29918, 2176, 29889, 4397, 29898, 1595, 29896, 5959, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 13, 1678, 760, 29906, 5959, 29918, 2176, 353, 5706, 29918, 1272, 29918, 1595, 5959, 29898, 29887, 29918, 1792, 7439, 29906, 2605, 23095, 29892, 29871, 29953, 29896, 29892, 29871, 29896, 29906, 29896, 29897, 13, 1678, 599, 5959, 29918, 2176, 353, 599, 5959, 29918, 2176, 29889, 4397, 29898, 1595, 29906, 5959, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 13, 1678, 736, 599, 5959, 29918, 2176, 13, 13, 13, 29937, 444, 501, 4037, 29879, 363, 14655, 2087, 29879, 13373, 24541, 13, 13, 29937, 512, 29961, 29955, 5387, 13, 13, 13, 1753, 5706, 29918, 1272, 29918, 328, 29907, 1446, 7295, 13, 1678, 594, 29907, 1446, 29931, 303, 353, 518, 1839, 29900, 29896, 742, 376, 6821, 6046, 669, 17550, 267, 613, 29871, 29896, 29953, 1402, 13, 462, 6024, 29900, 29906, 742, 376, 28451, 327, 573, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29941, 742, 376, 29933, 10798, 10969, 29879, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29946, 742, 376, 3868, 4298, 669, 19618, 29891, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29945, 742, 376, 10572, 313, 29933, 29924, 10699, 19123, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29953, 742, 376, 13696, 4680, 28251, 1199, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29955, 742, 376, 20008, 669, 13987, 12482, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29947, 742, 376, 4571, 29979, 669, 27564, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29900, 29929, 742, 376, 29954, 7879, 669, 4451, 17433, 8471, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29900, 742, 376, 29954, 10198, 708, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29896, 742, 376, 29968, 23213, 669, 8778, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29906, 742, 376, 29933, 300, 1259, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29941, 742, 376, 29967, 809, 514, 708, 669, 24274, 267, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29946, 742, 376, 14958, 936, 2799, 582, 1860, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29945, 742, 376, 27247, 10969, 29879, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29953, 742, 376, 29925, 300, 9179, 3687, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29955, 742, 376, 20606, 261, 18540, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29947, 742, 376, 29903, 4011, 669, 4451, 1867, 943, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29896, 29929, 742, 376, 1762, 952, 669, 12482, 613, 29871, 29896, 29945, 1402, 13, 462, 6024, 29906, 29900, 742, 376, 29928, 1218, 317, 3246, 613, 29871, 29896, 29945, 29962, 13, 18884, 4514, 29871, 13, 1678, 594, 29907, 1446, 29918, 2176, 353, 10518, 29889, 17271, 29898, 328, 29907, 1446, 29931, 303, 29892, 4341, 353, 1839, 3253, 9694, 1204, 742, 525, 3253, 9694, 1170, 742, 525, 3253, 9694, 8009, 3253, 29879, 11287, 13, 1678, 736, 594, 29907, 1446, 29918, 2176, 13, 13, 13, 29937, 512, 29961, 29947, 5387, 13, 13, 13, 5215, 337, 13, 13, 1753, 472, 7768, 29898, 726, 1125, 13, 1678, 736, 938, 29898, 726, 29897, 565, 1426, 29889, 275, 26204, 580, 1683, 1426, 13, 13, 1753, 5613, 29918, 8149, 29898, 726, 1125, 13, 1678, 736, 518, 472, 7768, 29898, 29883, 29897, 363, 274, 297, 337, 29889, 5451, 29898, 29878, 29915, 1194, 29881, 28135, 742, 726, 29889, 5451, 11219, 1495, 14352, 29896, 1822, 5451, 12839, 29861, 29900, 2314, 4514, 13, 13, 1753, 5706, 29918, 1272, 29918, 1595, 3253, 29879, 29898, 594, 29879, 7439, 2605, 23095, 29892, 1369, 6069, 29892, 1095, 6069, 29871, 1125, 13, 1678, 760, 3253, 29879, 29918, 2176, 353, 10518, 29889, 17271, 580, 13, 1678, 760, 3253, 29879, 10661, 353, 5159, 13, 268, 13, 1678, 363, 474, 297, 3464, 29898, 2962, 6069, 29892, 1095, 6069, 1125, 13, 4706, 474, 5015, 353, 851, 29898, 29875, 29897, 13, 4706, 594, 29879, 10547, 353, 2224, 1982, 29889, 2605, 29898, 7925, 7439, 2605, 23095, 718, 474, 5015, 718, 5591, 2564, 23705, 703, 10521, 2732, 1159, 13, 4706, 594, 29879, 2283, 5015, 29931, 303, 353, 5159, 13, 4706, 363, 594, 29879, 2283, 297, 594, 29879, 10547, 29901, 13, 9651, 594, 29879, 2283, 5015, 353, 851, 29898, 7925, 2283, 29897, 13, 9651, 594, 29879, 2283, 5015, 29931, 303, 29889, 4397, 29898, 7925, 2283, 5015, 29897, 13, 4706, 594, 29879, 2283, 5015, 29931, 303, 29889, 6605, 29898, 1989, 29922, 25047, 29918, 8149, 29897, 13, 268, 13, 4706, 363, 594, 29879, 2283, 5015, 297, 594, 29879, 2283, 5015, 29931, 303, 29901, 13, 9651, 594, 1204, 353, 594, 29879, 2283, 5015, 29889, 5451, 11219, 1495, 14352, 29896, 1822, 5451, 12839, 29861, 29900, 29962, 13, 9651, 594, 1204, 353, 376, 29909, 29908, 718, 29871, 474, 5015, 29889, 29920, 5589, 29898, 29906, 29897, 718, 11119, 29908, 718, 594, 1204, 29889, 29920, 5589, 29898, 29906, 29897, 13, 4706, 396, 1678, 1596, 29898, 328, 1204, 29892, 594, 29879, 2283, 5015, 29897, 13, 9651, 760, 3253, 29879, 10661, 29889, 4397, 4197, 328, 1204, 29892, 594, 29879, 2283, 5015, 2314, 13, 308, 13, 1678, 760, 3253, 29879, 29918, 2176, 353, 10518, 29889, 17271, 29898, 1595, 3253, 29879, 10661, 29892, 4341, 353, 1839, 3253, 1204, 742, 525, 3253, 2283, 2605, 11287, 13, 1678, 760, 3253, 29879, 29918, 2176, 29889, 842, 29918, 2248, 877, 3253, 1204, 1495, 13, 308, 13, 1678, 736, 760, 3253, 29879, 29918, 2176, 13, 13, 13, 29937, 512, 29961, 29929, 5387, 13, 13, 13, 29937, 21681, 13, 13, 1753, 5706, 29918, 1272, 29918, 497, 3253, 29879, 7295, 13, 1678, 599, 3253, 29879, 29918, 2176, 353, 10518, 29889, 17271, 580, 13, 268, 13, 1678, 760, 29896, 3253, 29879, 29918, 2176, 353, 5706, 29918, 1272, 29918, 1595, 3253, 29879, 29898, 29887, 29918, 7925, 7439, 29896, 2605, 23095, 29892, 29871, 29896, 29892, 29871, 29896, 29896, 29897, 13, 1678, 599, 3253, 29879, 29918, 2176, 353, 599, 3253, 29879, 29918, 2176, 29889, 4397, 29898, 1595, 29896, 3253, 29879, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 13, 1678, 760, 29906, 3253, 29879, 29918, 2176, 353, 5706, 29918, 1272, 29918, 1595, 3253, 29879, 29898, 29887, 29918, 7925, 7439, 29906, 2605, 23095, 29892, 29871, 29896, 29896, 29892, 29871, 29906, 29896, 29897, 13, 1678, 599, 3253, 29879, 29918, 2176, 353, 599, 3253, 29879, 29918, 2176, 29889, 4397, 29898, 1595, 29906, 3253, 29879, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 13, 1678, 599, 3253, 29879, 29918, 2176, 353, 599, 3253, 29879, 29918, 2176, 29889, 842, 29918, 2248, 877, 3253, 1204, 1495, 13, 1678, 736, 599, 3253, 29879, 29918, 2176, 13, 13, 13, 29937, 444, 501, 4037, 29879, 363, 14655, 17450, 886, 13373, 24541, 13, 13, 29937, 512, 29961, 29896, 29900, 5387, 13, 13, 13, 1753, 4489, 29918, 19128, 7122, 29898, 2176, 29896, 29892, 4489, 29906, 1125, 13, 1678, 4489, 29896, 1839, 29918, 7050, 1989, 2033, 353, 29871, 29896, 13, 1678, 4489, 29906, 1839, 29918, 7050, 1989, 2033, 353, 29871, 29896, 13, 13, 1678, 620, 353, 10518, 29889, 14634, 29898, 2176, 29896, 29892, 4489, 29906, 29892, 373, 2433, 29918, 7050, 1989, 2824, 8865, 877, 29918, 7050, 1989, 742, 9685, 29922, 29896, 29897, 13, 1678, 620, 29889, 2248, 353, 10518, 29889, 15329, 3220, 29889, 3166, 29918, 4704, 3552, 2176, 29896, 29889, 2248, 29892, 4489, 29906, 29889, 2248, 876, 13, 13, 1678, 4489, 29896, 29889, 8865, 877, 29918, 7050, 1989, 742, 9685, 29922, 29896, 29892, 297, 6689, 29922, 5574, 29897, 13, 1678, 4489, 29906, 29889, 8865, 877, 29918, 7050, 1989, 742, 9685, 29922, 29896, 29892, 297, 6689, 29922, 5574, 29897, 13, 13, 1678, 736, 620, 13, 13, 13, 29937, 512, 29961, 29896, 29896, 5387, 13, 13, 13, 29937, 14402, 29901, 25249, 445, 501, 4037, 304, 2246, 501, 4037, 29879, 4004, 13, 1753, 5706, 29918, 1272, 29918, 29934, 271, 886, 5894, 2659, 29898, 2224, 23095, 29892, 1404, 1204, 29871, 1125, 13, 1678, 4866, 2605, 353, 2224, 23095, 718, 1404, 1204, 718, 5591, 29908, 13, 13, 1678, 848, 353, 5124, 13, 1678, 364, 29873, 2283, 353, 1404, 1204, 718, 11663, 13079, 29889, 7638, 29908, 13, 1678, 364, 29873, 4373, 2283, 353, 1404, 1204, 718, 11663, 13079, 29899, 28577, 29889, 7638, 29908, 13, 268, 13, 1678, 411, 1722, 29898, 8835, 2605, 718, 364, 29873, 2283, 29897, 408, 934, 29901, 13, 4706, 848, 353, 934, 29889, 949, 2141, 6506, 703, 5931, 613, 20569, 13, 13, 1678, 411, 1722, 29898, 8835, 2605, 718, 364, 29873, 4373, 2283, 1699, 29893, 1159, 408, 934, 29901, 13, 4706, 934, 29889, 3539, 29898, 1272, 29897, 13, 13, 1678, 590, 29918, 22724, 353, 518, 710, 29898, 29875, 29897, 363, 474, 297, 3464, 29898, 29941, 29900, 29900, 4638, 13, 1678, 848, 29941, 353, 10518, 29889, 949, 29918, 7638, 29898, 8835, 2605, 718, 364, 29873, 4373, 2283, 29892, 16345, 543, 29936, 29989, 29892, 613, 2983, 29922, 1357, 29918, 22724, 29892, 4839, 29922, 8516, 29892, 6012, 543, 4691, 1159, 13, 1678, 848, 29941, 353, 848, 29941, 29889, 309, 542, 29961, 29906, 17531, 13, 1678, 848, 29941, 29889, 12071, 29918, 2248, 29898, 8865, 353, 5852, 29892, 297, 6689, 353, 5852, 29897, 13, 268, 13, 1678, 363, 474, 297, 3464, 29898, 29906, 29900, 1125, 13, 4706, 2380, 353, 851, 29898, 29875, 29897, 13, 4706, 848, 29941, 29961, 2248, 29962, 353, 848, 29941, 29961, 2248, 1822, 579, 668, 877, 7411, 29953, 29946, 1495, 13, 268, 13, 1678, 848, 29941, 353, 848, 29941, 29889, 3286, 4220, 580, 13, 308, 13, 1678, 736, 848, 29941, 13, 13, 13, 29937, 512, 29961, 29896, 29906, 5387, 13, 13, 13, 1753, 5706, 29918, 1272, 29918, 29934, 271, 886, 7439, 5959, 29898, 4160, 7439, 2605, 23095, 29892, 1369, 6069, 29892, 1095, 6069, 29871, 1125, 13, 1678, 760, 5959, 29918, 2176, 353, 10518, 29889, 17271, 580, 13, 268, 13, 1678, 363, 474, 297, 3464, 29898, 2962, 6069, 29892, 1095, 6069, 1125, 13, 4706, 445, 2659, 1204, 8009, 353, 851, 29898, 29875, 29897, 13, 4706, 445, 2659, 1204, 353, 330, 29918, 29721, 23095, 718, 445, 2659, 1204, 8009, 29889, 29920, 5589, 29898, 29941, 29897, 13, 4706, 396, 1596, 29898, 1366, 2659, 1204, 29897, 13, 4706, 445, 2659, 29918, 2176, 353, 5706, 29918, 1272, 29918, 29934, 271, 886, 5894, 2659, 29898, 7193, 7439, 2605, 23095, 29892, 445, 2659, 1204, 29897, 13, 4706, 760, 5959, 29918, 2176, 353, 760, 5959, 29918, 2176, 29889, 4397, 29898, 1366, 2659, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 4706, 396, 760, 5959, 29918, 2176, 29889, 842, 29918, 2248, 877, 2659, 1204, 1495, 13, 308, 13, 1678, 736, 760, 5959, 29918, 2176, 13, 13, 13, 29937, 512, 29961, 29896, 29941, 5387, 13, 13, 13, 1753, 5706, 29918, 1272, 29918, 29934, 271, 886, 3596, 5959, 7295, 13, 1678, 599, 5959, 29918, 2176, 353, 10518, 29889, 17271, 580, 13, 13, 1678, 760, 29896, 5959, 29918, 2176, 353, 5706, 29918, 1272, 29918, 29934, 271, 886, 7439, 5959, 29898, 29887, 29918, 1792, 7439, 29896, 2605, 23095, 29892, 29871, 29896, 29892, 29871, 29953, 29896, 29897, 13, 1678, 599, 5959, 29918, 2176, 353, 599, 5959, 29918, 2176, 29889, 4397, 29898, 1595, 29896, 5959, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 13, 1678, 760, 29906, 5959, 29918, 2176, 353, 5706, 29918, 1272, 29918, 29934, 271, 886, 7439, 5959, 29898, 29887, 29918, 1792, 7439, 29906, 2605, 23095, 29892, 29871, 29953, 29896, 29892, 29871, 29896, 29906, 29896, 29897, 13, 1678, 599, 5959, 29918, 2176, 353, 599, 5959, 29918, 2176, 29889, 4397, 29898, 1595, 29906, 5959, 29918, 2176, 29892, 2656, 29922, 5574, 29897, 13, 13, 1678, 736, 599, 5959, 29918, 2176, 13, 13, 13, 29937, 396, 3251, 403, 20035, 13, 13, 29937, 444, 3251, 403, 23861, 8783, 13, 13, 29937, 512, 29961, 29896, 29946, 5387, 13, 13, 13, 497, 5959, 29918, 2176, 353, 5706, 29918, 1272, 29918, 497, 5959, 580, 13, 497, 5959, 29918, 2176, 353, 599, 5959, 29918, 2176, 29889, 842, 29918, 2248, 877, 2659, 1204, 1495, 13, 13, 13, 29937, 512, 29961, 29896, 29945, 5387, 13, 13, 13, 497, 5959, 29918, 2176, 29889, 2813, 580, 13, 13, 13, 29937, 512, 29961, 29896, 29953, 5387, 13, 13, 13, 497, 5959, 29918, 2176, 29889, 3888, 580, 13, 13, 13, 29937, 512, 29961, 29896, 29955, 5387, 13, 13, 13, 497, 5959, 29918, 2176, 29889, 517, 29918, 7638, 703, 3596, 5959, 29889, 7638, 613, 2380, 29922, 5574, 29897, 13, 13, 13, 29937, 444, 3251, 403, 2087, 29879, 315, 14404, 13373, 24541, 13, 13, 29937, 512, 29961, 29896, 29947, 5387, 13, 13, 13, 328, 29907, 1446, 29918, 2176, 353, 5706, 29918, 1272, 29918, 328, 29907, 1446, 580, 13, 328, 29907, 1446, 29918, 2176, 353, 594, 29907, 1446, 29918, 2176, 29889, 842, 29918, 2248, 877, 3253, 9694, 1204, 1495, 13, 13, 13, 29937, 512, 29961, 29896, 29929, 5387, 13, 13, 13, 328, 29907, 1446, 29918, 2176, 29889, 2813, 580, 13, 13, 13, 29937, 512, 29961, 29906, 29900, 5387, 13, 13, 13, 328, 29907, 1446, 29918, 2176, 29889, 3888, 580, 13, 13, 13, 29937, 512, 29961, 29906, 29896, 5387, 13, 13, 13, 328, 29907, 1446, 29918, 2176, 29889, 517, 29918, 7638, 703, 3253, 29907, 1446, 29889, 7638, 613, 2380, 29922, 5574, 29897, 13, 13, 13, 29937, 444, 3251, 403, 2087, 29879, 13373, 24541, 13, 13, 29937, 512, 29961, 29906, 29906, 5387, 13, 13, 13, 497, 3253, 29879, 29918, 2176, 353, 5706, 29918, 1272, 29918, 497, 3253, 29879, 580, 13, 13, 13, 29937, 512, 29961, 29906, 29941, 5387, 13, 13, 13, 497, 3253, 29879, 29918, 2176, 29889, 3888, 580, 13, 13, 13, 29937, 512, 29961, 29906, 29946, 5387, 13, 13, 13, 497, 3253, 29879, 29918, 2176, 29889, 2813, 580, 13, 13, 13, 29937, 512, 29961, 29906, 29945, 5387, 13, 13, 13, 497, 3253, 29879, 29918, 2176, 29889, 517, 29918, 7638, 703, 3596, 3253, 29879, 29889, 7638, 613, 2380, 29922, 5574, 29897, 13, 13, 13, 29937, 444, 3251, 403, 23861, 29905, 29930, 3253, 29879, 13373, 24541, 13, 13, 29937, 512, 29961, 29906, 29953, 5387, 13, 13, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 353, 4489, 29918, 19128, 7122, 29898, 497, 5959, 29918, 2176, 29892, 599, 3253, 29879, 29918, 2176, 29897, 13, 13, 13, 29937, 512, 29961, 29906, 29955, 5387, 13, 13, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 3888, 580, 13, 13, 13, 29937, 512, 29961, 29906, 29947, 5387, 13, 13, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 353, 599, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 12071, 29918, 2248, 580, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 1267, 420, 29898, 13099, 3790, 29915, 5563, 29918, 29900, 22099, 2659, 1204, 16675, 297, 6689, 29922, 5574, 29897, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 1267, 420, 29898, 13099, 3790, 29915, 5563, 29918, 29896, 22099, 3253, 1204, 16675, 297, 6689, 29922, 5574, 29897, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 2813, 29898, 29941, 29900, 29906, 29897, 13, 13, 13, 29937, 512, 29961, 29906, 29929, 5387, 13, 13, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 517, 29918, 7638, 703, 3596, 5959, 29918, 2855, 29918, 3253, 29879, 29889, 7638, 613, 2380, 29922, 8824, 29897, 13, 13, 13, 29937, 444, 3251, 403, 23861, 29934, 271, 886, 13373, 24541, 13, 13, 29937, 512, 29961, 29941, 29900, 5387, 13, 13, 13, 497, 5959, 29934, 271, 886, 29918, 2176, 353, 5706, 29918, 1272, 29918, 29934, 271, 886, 3596, 5959, 580, 13, 13, 13, 29937, 512, 29961, 29941, 29896, 5387, 13, 13, 13, 497, 5959, 29934, 271, 886, 29918, 2176, 29889, 1267, 420, 29898, 13099, 3790, 29900, 11283, 29934, 1218, 16675, 297, 6689, 29922, 5574, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29906, 5387, 13, 13, 13, 497, 5959, 29934, 271, 886, 29918, 2176, 29889, 3888, 580, 13, 13, 13, 29937, 512, 29961, 29941, 29941, 5387, 13, 13, 13, 497, 5959, 29934, 271, 886, 29918, 2176, 29889, 2813, 29898, 29941, 29900, 29896, 29897, 13, 13, 13, 29937, 444, 3251, 403, 9550, 13373, 24541, 13, 13, 29937, 512, 29961, 29941, 29946, 5387, 13, 13, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 2813, 580, 13, 13, 13, 29937, 512, 29961, 29941, 29945, 5387, 13, 13, 13, 497, 5959, 29934, 271, 886, 29918, 2176, 29889, 2813, 580, 13, 13, 13, 29937, 512, 29961, 29941, 29953, 5387, 13, 13, 13, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29889, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29892, 297, 6689, 29922, 5574, 29897, 13, 497, 5959, 29934, 271, 886, 29918, 2176, 29889, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29892, 297, 6689, 29922, 5574, 29897, 13, 497, 5959, 29918, 3253, 29879, 29918, 29934, 271, 886, 29918, 2176, 353, 10518, 29889, 17685, 4197, 497, 5959, 29918, 2855, 29918, 3253, 29879, 29918, 2176, 29892, 599, 5959, 29934, 271, 886, 29918, 2176, 1402, 9685, 29922, 29896, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29955, 5387, 13, 13, 13, 497, 5959, 29918, 3253, 29879, 29918, 29934, 271, 886, 29918, 2176, 29889, 3888, 580, 13, 13, 13, 29937, 512, 29961, 29941, 29947, 5387, 13, 13, 13, 497, 5959, 29918, 3253, 29879, 29918, 29934, 271, 886, 29918, 2176, 29889, 2813, 29898, 29945, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29929, 5387, 13, 13, 13, 497, 5959, 29918, 3253, 29879, 29918, 29934, 271, 886, 29918, 2176, 29889, 517, 29918, 7638, 703, 3596, 5959, 29918, 3253, 29879, 29918, 29934, 271, 886, 29918, 2176, 29889, 7638, 613, 2380, 29922, 8824, 29897, 13, 13, 13, 29937, 396, 2522, 29878, 905, 8305, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 13, 13, 2 ]
Backend/issue.py
SXH7/Library-Management
2
143578
<gh_stars>1-10 import mysql.connector as i from datetime import datetime log=i.connect(host="localhost",user="root",password="<PASSWORD>",database="library") def viewissues(): c=log.cursor() c.execute("select * from issue") result= c.fetchall() for row in result: print(row) print("\n") def issuebook(): iid=input("Enter issue ID:") mmid=input("Enter member id:") bc=input("Enter the book code:") B=(bc,) c=log.cursor() sql=("select B_Avilable from books where B_ID=%s") c.execute(sql,B) res=c.fetchall() if 'Y' in res[0]: adate=input("Enter book issue date (MM-DD-YYYY):") bdate=input("Enter due date(MM-DD-YYYY):") idate=datetime.strptime(adate, '%m-%d-%Y') duedate=datetime.strptime(bdate, '%m-%d-%Y') data=(iid,mmid,bc,idate,duedate) sq=("insert into issue values(%s,%s,%s,%s,%s)") c=log.cursor() c.execute(sq,data) log.commit() print("Book issued successfully!") data=(B) sq=("update books set B_Avilable= replace(B_Avilable, 'Y','N') where B_ID=%s") c=log.cursor() c.execute(sq,data) log.commit() else: print("Either book isnt avilable or code is wrong:") issuebook() def bookupdate(): bc=input("Enter book id:") B=(bc,) data=(B) sq=("update books set B_Avilable= replace(B_Avilable, 'N','Y') where B_ID=%s") c=log.cursor() c.execute(sq,data) log.commit()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 5749, 29889, 11958, 2801, 408, 474, 13, 3166, 12865, 1053, 12865, 13, 13, 13, 1188, 29922, 29875, 29889, 6915, 29898, 3069, 543, 7640, 613, 1792, 543, 4632, 613, 5630, 543, 29966, 25711, 17013, 28341, 9803, 543, 5258, 1159, 13, 13, 13, 1753, 1776, 12175, 7295, 13, 13, 1678, 274, 29922, 1188, 29889, 18127, 580, 13, 1678, 274, 29889, 7978, 703, 2622, 334, 515, 2228, 1159, 13, 1678, 1121, 29922, 274, 29889, 9155, 497, 580, 13, 1678, 363, 1948, 297, 1121, 29901, 13, 4706, 1596, 29898, 798, 29897, 13, 4706, 1596, 14182, 29876, 1159, 13, 13, 1753, 2228, 2909, 7295, 13, 1678, 474, 333, 29922, 2080, 703, 10399, 2228, 3553, 29901, 1159, 13, 1678, 5654, 333, 29922, 2080, 703, 10399, 4509, 1178, 29901, 1159, 13, 1678, 289, 29883, 29922, 2080, 703, 10399, 278, 3143, 775, 29901, 1159, 13, 268, 13, 1678, 350, 7607, 12328, 29892, 29897, 13, 13, 1678, 274, 29922, 1188, 29889, 18127, 580, 13, 1678, 4576, 29922, 703, 2622, 350, 29918, 12810, 309, 519, 515, 8277, 988, 350, 29918, 1367, 16328, 29879, 1159, 13, 1678, 274, 29889, 7978, 29898, 2850, 29892, 29933, 29897, 13, 1678, 620, 29922, 29883, 29889, 9155, 497, 580, 13, 268, 13, 1678, 565, 525, 29979, 29915, 297, 620, 29961, 29900, 5387, 13, 4706, 594, 403, 29922, 2080, 703, 10399, 3143, 2228, 2635, 313, 7428, 29899, 7858, 29899, 14995, 14995, 1125, 1159, 13, 4706, 289, 1256, 29922, 2080, 703, 10399, 2861, 2635, 29898, 7428, 29899, 7858, 29899, 14995, 14995, 1125, 1159, 13, 4706, 1178, 403, 29922, 12673, 29889, 710, 415, 603, 29898, 328, 403, 29892, 14210, 29885, 19222, 29881, 19222, 29979, 1495, 13, 4706, 868, 287, 403, 29922, 12673, 29889, 710, 415, 603, 29898, 29890, 1256, 29892, 14210, 29885, 19222, 29881, 19222, 29979, 1495, 13, 308, 13, 4706, 848, 7607, 29875, 333, 29892, 4317, 333, 29892, 12328, 29892, 333, 403, 29892, 700, 287, 403, 29897, 13, 4706, 18074, 29922, 703, 7851, 964, 2228, 1819, 29414, 29879, 24163, 29879, 24163, 29879, 24163, 29879, 24163, 29879, 25760, 13, 308, 13, 4706, 274, 29922, 1188, 29889, 18127, 580, 13, 4706, 274, 29889, 7978, 29898, 3044, 29892, 1272, 29897, 13, 4706, 1480, 29889, 15060, 580, 13, 4706, 1596, 703, 10967, 16610, 8472, 29991, 1159, 13, 308, 13, 308, 13, 4706, 848, 7607, 29933, 29897, 13, 4706, 18074, 29922, 703, 5504, 8277, 731, 350, 29918, 12810, 309, 519, 29922, 5191, 29898, 29933, 29918, 12810, 309, 519, 29892, 525, 29979, 3788, 29940, 1495, 988, 350, 29918, 1367, 16328, 29879, 1159, 13, 4706, 274, 29922, 1188, 29889, 18127, 580, 13, 4706, 274, 29889, 7978, 29898, 3044, 29892, 1272, 29897, 13, 4706, 1480, 29889, 15060, 580, 13, 1678, 1683, 29901, 13, 4706, 1596, 703, 29923, 2121, 3143, 338, 593, 1029, 309, 519, 470, 775, 338, 2743, 29901, 1159, 13, 4706, 2228, 2909, 580, 13, 13, 1753, 3143, 5504, 7295, 13, 1678, 289, 29883, 29922, 2080, 703, 10399, 3143, 1178, 29901, 1159, 13, 1678, 350, 7607, 12328, 29892, 29897, 13, 1678, 848, 7607, 29933, 29897, 13, 1678, 18074, 29922, 703, 5504, 8277, 731, 350, 29918, 12810, 309, 519, 29922, 5191, 29898, 29933, 29918, 12810, 309, 519, 29892, 525, 29940, 3788, 29979, 1495, 988, 350, 29918, 1367, 16328, 29879, 1159, 13, 1678, 274, 29922, 1188, 29889, 18127, 580, 13, 1678, 274, 29889, 7978, 29898, 3044, 29892, 1272, 29897, 13, 1678, 1480, 29889, 15060, 580, 13, 13, 13, 2 ]
segment_classifier/keras_lstm.py
liuhongbing1220/fundanNLP_task
0
81165
<reponame>liuhongbing1220/fundanNLP_task #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 31 09:49:27 2019 @author: liuhongbing """ import pandas as pd import numpy as np from collections import Counter import matplotlib.pyplot as plt import re import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from sklearn.model_selection import train_test_split from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense ,Embedding,Activation from tensorflow.keras.layers import LSTM from tensorflow.keras.preprocessing import sequence import io root = "/Users/liuhongbing/Documents/tensorflow/data/sentiment-analysis-on-movie-reviews/" def dataCleaning(totalText): total=[] for i in totalText: temp=i.lower() temp=re.sub('[^a-zA-Z]',' ',temp) tempArr=[j for j in temp.strip().split('\t') if isinstance(j,str)] tstr=' '.join(tempArr) total.append(tstr) return total def getTest(name): data=pd.read_csv(name,delimiter='\t') totalText=data['Phrase'] totalText=dataCleaning(totalText) return totalText def loadData(name): data=pd.read_csv(name,delimiter='\t') totalText=data['Phrase'] totalText=dataCleaning(totalText) totalLabel=data['Sentiment'] return totalText,totalLabel def load_vectors(fname): fin = io.open(fname, 'r', encoding='utf-8', newline='\n', errors='ignore') n, d = map(int, fin.readline().split()) data = {} for line in fin: tokens = line.rstrip().split(' ') data[tokens[0]] = [float(tokens[i]) for i in range(1, len(tokens))] return data def getWordVector(word2VecSum, word2index, embedding_dim): embedding_weight = np.zeros((len(word2index)+1, embedding_dim)) for word,index in word2index.items(): try: embedding_weight[index, :] = word2VecSum[word] except KeyError: pass return embedding_weight word2vecSum = load_vectors('/Users/liuhongbing/Documents/tensorflow/fudanNLP/word_to_vector/wiki-news-300d-1M.vec') # #def calc_sim_word(word1, word2): # if (word1 not in word2vecSum) | (word2 not in word2vecSum): # return "word not in wordvec" # else: # vec1 = word2vecSum[word1] # vec2 = word2vecSum[word2] # return np.dot(vec1, vec2) totalText,totalLabel = loadData(root+"train.tsv") testText = getTest(root+"test.tsv") train_tokenizer = Tokenizer() train_tokenizer.fit_on_texts(totalText) train_sequences = train_tokenizer.texts_to_sequences(totalText) test_sequences = train_tokenizer.texts_to_sequences(testText) # 获得所有tokens的长度 num_tokens = [ len(tokens) for tokens in train_sequences ] num_tokens = np.array(num_tokens) print(len(num_tokens)) #输出 156060 # 平均tokens的长度 print('mean',np.mean(num_tokens)) # 最长的评价tokens的长度 print('max',np.max(num_tokens)) # 最长的评价tokens的长度 print('min',np.min(num_tokens)) plt.hist((num_tokens), bins = 50) plt.ylabel('number of tokens') plt.xlabel('length of tokens') plt.title('Distribution of tokens length') plt.show() ''' 3sigma原则 ''' max_tokens = np.mean(num_tokens) + 3 * np.std(num_tokens) max_tokens = int(max_tokens) max_tokens # 取tokens的长度为19时,大约93%的样本被涵盖 #np.sum( num_tokens < max_tokens ) / len(num_tokens) train_Data=pad_sequences(train_sequences,maxlen=48) test_Data = pad_sequences(test_sequences,maxlen=48) columns = ['feat_'+str(i) for i in range(48)] train_Data2 = train_Data.copy() train_Data2 = pd.DataFrame(train_Data2) train_Data2.columns = columns train_Data2['label'] = totalLabel train_Data2.to_csv(root+"data_result.csv", index=None) train_label=tf.keras.utils.to_categorical(totalLabel,5) data_train, data_test, label_train, label_test = train_test_split(train_Data,train_label, test_size = 0.2) max_features=len(train_tokenizer.index_word)+1 max_len=48 #这个是要和前面padding时的长度一致 epochs = 5 #训练次数 emb_dim = 300 #128代表embedding层的向量维度 batch_size=80 #这是指定批量的大小 model = Sequential() embedding_weight = getWordVector(word2vecSum,train_tokenizer.word_index, emb_dim) embedding_weight_copy = embedding_weight.copy() #import pickle #with open(root+"tikenizer_word_index.pkl", 'wb') as f: # pickle.dump(train_tokenizer.word_index, f) ## 15126*128 ##model.add(Embedding(max_features,emb_dim, mask_zero=True)) model.add(Embedding(max_features,emb_dim, weights=[embedding_weight], trainable=False, mask_zero=True)) ## 【(128+64)*64+64】*4 model.add(LSTM(64,dropout=0.4, recurrent_dropout=0.4,return_sequences=True)) ## 【(64+32)*32+32】*4 model.add(LSTM(32,dropout=0.5, recurrent_dropout=0.5,return_sequences=False)) ## 32*5 + 5 model.add(Dense(5, activation='softmax')) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) print(model.summary()) model.fit(data_train,label_train,batch_size=batch_size,epochs=epochs,validation_data=(data_test,label_test)) model.evaluate(data_test, label_test) # #print("start saver test submission") #y_pred=model.predict_classes(test_Data) # #sub_file = pd.read_csv(root + 'sampleSubmission.csv', sep=',') #sub_file.Sentiment=y_pred #sub_file.to_csv('Submission_2.csv',index=False) model.save('/Users/liuhongbing/Documents/tensorflow/fudanNLP/model_2.h5')
[ 1, 529, 276, 1112, 420, 29958, 492, 16099, 549, 10549, 29896, 29906, 29906, 29900, 29914, 27159, 273, 29940, 13208, 29918, 7662, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 11169, 2610, 29871, 29941, 29896, 29871, 29900, 29929, 29901, 29946, 29929, 29901, 29906, 29955, 29871, 29906, 29900, 29896, 29929, 13, 13, 29992, 8921, 29901, 619, 16099, 549, 10549, 13, 15945, 29908, 13, 13, 5215, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 3166, 16250, 1053, 315, 5336, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 337, 13, 5215, 26110, 408, 15886, 13, 3166, 26110, 29889, 3946, 294, 29889, 1457, 19170, 29889, 726, 1053, 25159, 3950, 13, 3166, 26110, 29889, 3946, 294, 29889, 1457, 19170, 29889, 16506, 1053, 17132, 29918, 6831, 2063, 13, 3166, 2071, 19668, 29889, 4299, 29918, 21731, 1053, 7945, 29918, 1688, 29918, 5451, 13, 3166, 26110, 29889, 3946, 294, 29889, 9794, 1053, 922, 339, 2556, 13, 3166, 26110, 29889, 3946, 294, 29889, 29277, 1053, 360, 1947, 1919, 6026, 2580, 8497, 29892, 21786, 362, 13, 3166, 26110, 29889, 3946, 294, 29889, 29277, 1053, 365, 1254, 29924, 13, 3166, 26110, 29889, 3946, 294, 29889, 1457, 19170, 1053, 5665, 13, 5215, 12013, 13, 13, 13, 4632, 353, 5591, 5959, 29914, 492, 16099, 549, 10549, 29914, 20128, 29914, 29056, 29914, 1272, 29914, 18616, 2073, 29899, 15916, 29899, 265, 29899, 27362, 29899, 276, 7406, 12975, 13, 13, 13, 1753, 848, 29907, 14044, 292, 29898, 7827, 1626, 1125, 13, 1678, 3001, 29922, 2636, 13, 1678, 363, 474, 297, 3001, 1626, 29901, 13, 4706, 5694, 29922, 29875, 29889, 13609, 580, 13, 4706, 5694, 29922, 276, 29889, 1491, 877, 22896, 29874, 29899, 25265, 29899, 29999, 29962, 3788, 13420, 7382, 29897, 13, 4706, 5694, 16401, 11759, 29926, 363, 432, 297, 5694, 29889, 17010, 2141, 5451, 28909, 29873, 1495, 565, 338, 8758, 29898, 29926, 29892, 710, 4638, 965, 13, 4706, 260, 710, 2433, 15300, 7122, 29898, 7382, 16401, 29897, 13, 4706, 3001, 29889, 4397, 29898, 29873, 710, 29897, 13, 1678, 736, 3001, 965, 13, 13, 13, 1753, 679, 3057, 29898, 978, 1125, 268, 13, 13, 1678, 848, 29922, 15926, 29889, 949, 29918, 7638, 29898, 978, 29892, 6144, 19657, 2433, 29905, 29873, 1495, 13, 1678, 3001, 1626, 29922, 1272, 1839, 29925, 1092, 559, 2033, 13, 1678, 3001, 1626, 29922, 1272, 29907, 14044, 292, 29898, 7827, 1626, 29897, 13, 1678, 736, 3001, 1626, 13, 13, 13, 1753, 2254, 1469, 29898, 978, 1125, 268, 13, 1678, 848, 29922, 15926, 29889, 949, 29918, 7638, 29898, 978, 29892, 6144, 19657, 2433, 29905, 29873, 1495, 13, 1678, 3001, 1626, 29922, 1272, 1839, 29925, 1092, 559, 2033, 13, 1678, 3001, 1626, 29922, 1272, 29907, 14044, 292, 29898, 7827, 1626, 29897, 13, 1678, 3001, 4775, 29922, 1272, 1839, 29903, 296, 2073, 2033, 13, 1678, 736, 3001, 1626, 29892, 7827, 4775, 308, 13, 13, 1753, 2254, 29918, 345, 14359, 29898, 29888, 978, 1125, 13, 1678, 1436, 353, 12013, 29889, 3150, 29898, 29888, 978, 29892, 525, 29878, 742, 8025, 2433, 9420, 29899, 29947, 742, 25899, 2433, 29905, 29876, 742, 4436, 2433, 17281, 1495, 13, 1678, 302, 29892, 270, 353, 2910, 29898, 524, 29892, 1436, 29889, 949, 1220, 2141, 5451, 3101, 13, 1678, 848, 353, 6571, 13, 1678, 363, 1196, 297, 1436, 29901, 13, 4706, 18897, 353, 1196, 29889, 29878, 17010, 2141, 5451, 877, 25710, 13, 4706, 848, 29961, 517, 12360, 29961, 29900, 5262, 353, 518, 7411, 29898, 517, 12360, 29961, 29875, 2314, 363, 474, 297, 3464, 29898, 29896, 29892, 7431, 29898, 517, 12360, 28166, 13, 1678, 736, 848, 13, 13, 13, 1753, 679, 14463, 12877, 29898, 1742, 29906, 25987, 11139, 29892, 1734, 29906, 2248, 29892, 23655, 29918, 6229, 1125, 13, 268, 13, 1678, 23655, 29918, 7915, 353, 7442, 29889, 3298, 359, 3552, 2435, 29898, 1742, 29906, 2248, 7240, 29896, 29892, 23655, 29918, 6229, 876, 13, 1678, 363, 1734, 29892, 2248, 297, 1734, 29906, 2248, 29889, 7076, 7295, 13, 4706, 1018, 29901, 13, 9651, 23655, 29918, 7915, 29961, 2248, 29892, 584, 29962, 353, 1734, 29906, 25987, 11139, 29961, 1742, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 1209, 13, 308, 13, 1678, 736, 23655, 29918, 7915, 13, 308, 13, 13, 1742, 29906, 2003, 11139, 353, 2254, 29918, 345, 14359, 11219, 5959, 29914, 492, 16099, 549, 10549, 29914, 20128, 29914, 29056, 29914, 29888, 566, 273, 29940, 13208, 29914, 1742, 29918, 517, 29918, 8111, 29914, 4594, 29899, 15753, 29899, 29941, 29900, 29900, 29881, 29899, 29896, 29924, 29889, 2003, 1495, 13, 13, 13, 29937, 13, 29937, 1753, 22235, 29918, 3601, 29918, 1742, 29898, 1742, 29896, 29892, 1734, 29906, 1125, 13, 29937, 1678, 565, 313, 1742, 29896, 451, 297, 1734, 29906, 2003, 11139, 29897, 891, 313, 1742, 29906, 451, 297, 1734, 29906, 2003, 11139, 1125, 13, 29937, 4706, 736, 376, 1742, 451, 297, 1734, 2003, 29908, 13, 29937, 1678, 1683, 29901, 13, 29937, 4706, 9649, 29896, 353, 1734, 29906, 2003, 11139, 29961, 1742, 29896, 29962, 13, 29937, 4706, 9649, 29906, 353, 1734, 29906, 2003, 11139, 29961, 1742, 29906, 29962, 13, 29937, 4706, 736, 7442, 29889, 6333, 29898, 2003, 29896, 29892, 9649, 29906, 29897, 13, 308, 13, 7827, 1626, 29892, 7827, 4775, 353, 2254, 1469, 29898, 4632, 13578, 14968, 29889, 1372, 29894, 1159, 13, 1688, 1626, 353, 679, 3057, 29898, 4632, 13578, 1688, 29889, 1372, 29894, 1159, 13, 13, 13, 14968, 29918, 6979, 3950, 353, 25159, 3950, 580, 13, 14968, 29918, 6979, 3950, 29889, 9202, 29918, 265, 29918, 726, 29879, 29898, 7827, 1626, 29897, 13, 13, 14968, 29918, 6831, 2063, 353, 7945, 29918, 6979, 3950, 29889, 726, 29879, 29918, 517, 29918, 6831, 2063, 29898, 7827, 1626, 29897, 13, 1688, 29918, 6831, 2063, 353, 7945, 29918, 6979, 3950, 29889, 726, 29879, 29918, 517, 29918, 6831, 2063, 29898, 1688, 1626, 29897, 13, 13, 29937, 29871, 31024, 31050, 30744, 30417, 517, 12360, 30210, 31143, 30898, 13, 1949, 29918, 517, 12360, 353, 518, 7431, 29898, 517, 12360, 29897, 363, 18897, 297, 7945, 29918, 6831, 2063, 4514, 13, 1949, 29918, 517, 12360, 353, 7442, 29889, 2378, 29898, 1949, 29918, 517, 12360, 29897, 13, 2158, 29898, 2435, 29898, 1949, 29918, 517, 12360, 876, 13, 29937, 31573, 30544, 259, 29896, 29945, 29953, 29900, 29953, 29900, 13, 29937, 29871, 30606, 232, 160, 138, 517, 12360, 30210, 31143, 30898, 13, 2158, 877, 12676, 742, 9302, 29889, 12676, 29898, 1949, 29918, 517, 12360, 876, 13, 29937, 29871, 30878, 31143, 30210, 235, 178, 135, 231, 190, 186, 517, 12360, 30210, 31143, 30898, 13, 2158, 877, 3317, 742, 9302, 29889, 3317, 29898, 1949, 29918, 517, 12360, 876, 13, 29937, 29871, 30878, 31143, 30210, 235, 178, 135, 231, 190, 186, 517, 12360, 30210, 31143, 30898, 13, 2158, 877, 1195, 742, 9302, 29889, 1195, 29898, 1949, 29918, 517, 12360, 876, 13, 13, 572, 29873, 29889, 29882, 391, 3552, 1949, 29918, 517, 12360, 511, 289, 1144, 353, 29871, 29945, 29900, 29897, 13, 572, 29873, 29889, 29891, 1643, 877, 4537, 310, 18897, 1495, 13, 572, 29873, 29889, 29916, 1643, 877, 2848, 310, 18897, 1495, 13, 572, 29873, 29889, 3257, 877, 13398, 3224, 310, 18897, 3309, 1495, 13, 572, 29873, 29889, 4294, 580, 13, 13, 12008, 13, 29941, 3754, 30667, 31403, 13, 12008, 13, 3317, 29918, 517, 12360, 353, 7442, 29889, 12676, 29898, 1949, 29918, 517, 12360, 29897, 718, 29871, 29941, 334, 7442, 29889, 4172, 29898, 1949, 29918, 517, 12360, 29897, 13, 3317, 29918, 517, 12360, 353, 938, 29898, 3317, 29918, 517, 12360, 29897, 13, 3317, 29918, 517, 12360, 13, 29937, 29871, 30683, 517, 12360, 30210, 31143, 30898, 30573, 29896, 29929, 30594, 30214, 30257, 234, 189, 169, 29929, 29941, 29995, 30210, 31819, 30346, 31407, 233, 185, 184, 234, 158, 153, 13, 29937, 9302, 29889, 2083, 29898, 954, 29918, 517, 12360, 529, 4236, 29918, 517, 12360, 1723, 847, 7431, 29898, 1949, 29918, 517, 12360, 29897, 13, 13, 14968, 29918, 1469, 29922, 8305, 29918, 6831, 2063, 29898, 14968, 29918, 6831, 2063, 29892, 3317, 2435, 29922, 29946, 29947, 29897, 13, 1688, 29918, 1469, 353, 17132, 29918, 6831, 2063, 29898, 1688, 29918, 6831, 2063, 29892, 3317, 2435, 29922, 29946, 29947, 29897, 13, 13, 13099, 353, 6024, 1725, 271, 29918, 18717, 710, 29898, 29875, 29897, 363, 474, 297, 3464, 29898, 29946, 29947, 4638, 13, 13, 14968, 29918, 1469, 29906, 353, 7945, 29918, 1469, 29889, 8552, 580, 13, 14968, 29918, 1469, 29906, 353, 10518, 29889, 17271, 29898, 14968, 29918, 1469, 29906, 29897, 13, 14968, 29918, 1469, 29906, 29889, 13099, 353, 4341, 13, 14968, 29918, 1469, 29906, 1839, 1643, 2033, 353, 3001, 4775, 13, 13, 14968, 29918, 1469, 29906, 29889, 517, 29918, 7638, 29898, 4632, 13578, 1272, 29918, 2914, 29889, 7638, 613, 2380, 29922, 8516, 29897, 13, 13, 14968, 29918, 1643, 29922, 13264, 29889, 3946, 294, 29889, 13239, 29889, 517, 29918, 29883, 20440, 936, 29898, 7827, 4775, 29892, 29945, 29897, 13, 13, 1272, 29918, 14968, 29892, 848, 29918, 1688, 29892, 3858, 29918, 14968, 29892, 3858, 29918, 1688, 353, 7945, 29918, 1688, 29918, 5451, 29898, 14968, 29918, 1469, 29892, 14968, 29918, 1643, 29892, 1243, 29918, 2311, 353, 29871, 29900, 29889, 29906, 29897, 13, 13, 13, 13, 13, 3317, 29918, 22100, 29922, 2435, 29898, 14968, 29918, 6979, 3950, 29889, 2248, 29918, 1742, 7240, 29896, 13, 3317, 29918, 2435, 29922, 29946, 29947, 29871, 396, 30810, 30502, 30392, 30698, 30503, 30658, 30806, 12791, 30594, 30210, 31143, 30898, 30287, 235, 138, 183, 13, 1022, 2878, 29879, 353, 29871, 29945, 29871, 396, 235, 177, 176, 234, 190, 134, 30936, 30354, 13, 1590, 29918, 6229, 353, 29871, 29941, 29900, 29900, 396, 29896, 29906, 29947, 30690, 30746, 17987, 8497, 232, 180, 133, 30210, 31331, 31180, 234, 190, 183, 30898, 13, 16175, 29918, 2311, 29922, 29947, 29900, 259, 396, 30810, 30392, 31084, 30495, 233, 140, 188, 31180, 30210, 30257, 30446, 13, 13, 13, 4299, 353, 922, 339, 2556, 580, 13, 13, 17987, 8497, 29918, 7915, 353, 679, 14463, 12877, 29898, 1742, 29906, 2003, 11139, 29892, 14968, 29918, 6979, 3950, 29889, 1742, 29918, 2248, 29892, 7232, 29918, 6229, 29897, 13, 17987, 8497, 29918, 7915, 29918, 8552, 353, 23655, 29918, 7915, 29889, 8552, 580, 13, 13, 13, 29937, 5215, 5839, 280, 13, 29937, 2541, 1722, 29898, 4632, 13578, 29873, 14004, 3950, 29918, 1742, 29918, 2248, 29889, 29886, 6321, 613, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 29937, 1678, 5839, 280, 29889, 15070, 29898, 14968, 29918, 6979, 3950, 29889, 1742, 29918, 2248, 29892, 285, 29897, 13, 2277, 259, 29896, 29945, 29896, 29906, 29953, 29930, 29896, 29906, 29947, 13, 13, 13, 2277, 4299, 29889, 1202, 29898, 6026, 2580, 8497, 29898, 3317, 29918, 22100, 29892, 1590, 29918, 6229, 29892, 11105, 29918, 9171, 29922, 5574, 876, 13, 4299, 29889, 1202, 29898, 6026, 2580, 8497, 29898, 3317, 29918, 22100, 29892, 1590, 29918, 6229, 29892, 18177, 11759, 17987, 8497, 29918, 7915, 1402, 7945, 519, 29922, 8824, 29892, 11105, 29918, 9171, 29922, 5574, 876, 13, 2277, 29871, 31478, 30419, 29896, 29906, 29947, 29974, 29953, 29946, 30409, 29930, 29953, 29946, 29974, 29953, 29946, 31472, 29930, 29946, 13, 4299, 29889, 1202, 29898, 29931, 1254, 29924, 29898, 29953, 29946, 29892, 8865, 449, 29922, 29900, 29889, 29946, 29892, 1162, 1264, 29918, 8865, 449, 29922, 29900, 29889, 29946, 29892, 2457, 29918, 6831, 2063, 29922, 5574, 876, 13, 2277, 29871, 31478, 30419, 29953, 29946, 29974, 29941, 29906, 30409, 29930, 29941, 29906, 29974, 29941, 29906, 31472, 29930, 29946, 13, 4299, 29889, 1202, 29898, 29931, 1254, 29924, 29898, 29941, 29906, 29892, 8865, 449, 29922, 29900, 29889, 29945, 29892, 1162, 1264, 29918, 8865, 449, 29922, 29900, 29889, 29945, 29892, 2457, 29918, 6831, 2063, 29922, 8824, 876, 13, 13, 2277, 29871, 29941, 29906, 29930, 29945, 718, 29871, 29945, 13, 4299, 29889, 1202, 29898, 29928, 1947, 29898, 29945, 29892, 26229, 2433, 2695, 3317, 8785, 13, 4299, 29889, 12198, 29898, 6758, 2433, 29883, 20440, 936, 29918, 19128, 296, 14441, 742, 5994, 3950, 2433, 328, 314, 742, 21556, 29922, 1839, 562, 2764, 4135, 11287, 13, 13, 2158, 29898, 4299, 29889, 7727, 3101, 13, 4299, 29889, 9202, 29898, 1272, 29918, 14968, 29892, 1643, 29918, 14968, 29892, 16175, 29918, 2311, 29922, 16175, 29918, 2311, 29892, 1022, 2878, 29879, 29922, 1022, 2878, 29879, 29892, 18157, 29918, 1272, 7607, 1272, 29918, 1688, 29892, 1643, 29918, 1688, 876, 13, 13, 4299, 29889, 24219, 403, 29898, 1272, 29918, 1688, 29892, 3858, 29918, 1688, 29897, 13, 29937, 13, 29937, 2158, 703, 2962, 872, 369, 1243, 29240, 1159, 13, 29937, 29891, 29918, 11965, 29922, 4299, 29889, 27711, 29918, 13203, 29898, 1688, 29918, 1469, 29897, 13, 29937, 13, 29937, 1491, 29918, 1445, 353, 10518, 29889, 949, 29918, 7638, 29898, 4632, 718, 525, 11249, 4035, 6737, 29889, 7638, 742, 16345, 29922, 742, 1495, 13, 29937, 1491, 29918, 1445, 29889, 29903, 296, 2073, 29922, 29891, 29918, 11965, 13, 29937, 1491, 29918, 1445, 29889, 517, 29918, 7638, 877, 4035, 6737, 29918, 29906, 29889, 7638, 742, 2248, 29922, 8824, 29897, 13, 13, 4299, 29889, 7620, 11219, 5959, 29914, 492, 16099, 549, 10549, 29914, 20128, 29914, 29056, 29914, 29888, 566, 273, 29940, 13208, 29914, 4299, 29918, 29906, 29889, 29882, 29945, 1495, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 2 ]
Python3-Learn/even_odd_mayankgoyal.py
nikhiljain-413/Hacktoberfest2021_beginner
65
163595
""" Name : Even odd Author : [<NAME>) [https://github.com/mayankgoyal-13] """ num = int(input("Enter your number: ")) if num % 2 == 0: print('The given number is even') else: print('The given number is odd')
[ 1, 9995, 13, 1170, 584, 7753, 7736, 13, 13720, 584, 518, 29966, 5813, 12948, 518, 991, 597, 3292, 29889, 510, 29914, 13029, 804, 1484, 4605, 29899, 29896, 29941, 29962, 13, 15945, 29908, 13, 1949, 353, 938, 29898, 2080, 703, 10399, 596, 1353, 29901, 376, 876, 13, 361, 954, 1273, 29871, 29906, 1275, 29871, 29900, 29901, 13, 1678, 1596, 877, 1576, 2183, 1353, 338, 1584, 1495, 13, 2870, 29901, 13, 1678, 1596, 877, 1576, 2183, 1353, 338, 7736, 1495, 13, 2 ]
main.py
RowitZou/Lexicon-nn
134
64975
<gh_stars>100-1000 # -*- coding: utf-8 -*- # @Author: <NAME> # @Last Modified by: <NAME>, Contact: <EMAIL> import time import sys import argparse import random import torch import gc import pickle import os import torch.autograd as autograd import torch.optim as optim import numpy as np from utils.metric import get_ner_fmeasure from model.LGN import Graph from utils.data import Data def str2bool(v): if isinstance(v, bool): return v if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError('Boolean value expected.') def lr_decay(optimizer, epoch, decay_rate, init_lr): lr = init_lr * ((1-decay_rate)**epoch) print( " Learning rate is setted as:", lr) for param_group in optimizer.param_groups: if param_group['name'] == 'aggr': param_group['lr'] = lr * 2. else: param_group['lr'] = lr return optimizer def data_initialization(data, word_file, train_file, dev_file, test_file): data.build_word_file(word_file) if train_file: data.build_alphabet(train_file) data.build_word_alphabet(train_file) if dev_file: data.build_alphabet(dev_file) data.build_word_alphabet(dev_file) if test_file: data.build_alphabet(test_file) data.build_word_alphabet(test_file) return data def predict_check(pred_variable, gold_variable, mask_variable): pred = pred_variable.cpu().data.numpy() gold = gold_variable.cpu().data.numpy() mask = mask_variable.cpu().data.numpy() overlaped = (pred == gold) right_token = np.sum(overlaped * mask) total_token = mask.sum() return right_token, total_token def recover_label(pred_variable, gold_variable, mask_variable, label_alphabet): batch_size = gold_variable.size(0) seq_len = gold_variable.size(1) mask = mask_variable.cpu().data.numpy() pred_tag = pred_variable.cpu().data.numpy() gold_tag = gold_variable.cpu().data.numpy() pred_label = [] gold_label = [] for idx in range(batch_size): pred = [label_alphabet.get_instance(pred_tag[idx][idy]) for idy in range(seq_len) if mask[idx][idy] != 0] gold = [label_alphabet.get_instance(gold_tag[idx][idy]) for idy in range(seq_len) if mask[idx][idy] != 0] assert(len(pred)==len(gold)) pred_label.append(pred) gold_label.append(gold) return pred_label, gold_label def print_args(args): print("CONFIG SUMMARY:") print(" Batch size: %s" % (args.batch_size)) print(" If use GPU: %s" % (args.use_gpu)) print(" If use CRF: %s" % (args.use_crf)) print(" Epoch number: %s" % (args.num_epoch)) print(" Learning rate: %s" % (args.lr)) print(" L2 normalization rate: %s" % (args.weight_decay)) print(" If use edge embedding: %s" % (args.use_edge)) print(" If use global node: %s" % (args.use_global)) print(" Bidirectional digraph: %s" % (args.bidirectional)) print(" Update step number: %s" % (args.iters)) print(" Attention dropout rate: %s" % (args.tf_drop_rate)) print(" Embedding dropout rate: %s" % (args.emb_drop_rate)) print(" Hidden state dimension: %s" % (args.hidden_dim)) print(" Learning rate decay ratio: %s" % (args.lr_decay)) print(" Aggregation module dropout rate: %s" % (args.cell_drop_rate)) print(" Head number of attention: %s" % (args.num_head)) print(" Head dimension of attention: %s" % (args.head_dim)) print("CONFIG SUMMARY END.") sys.stdout.flush() def evaluate(data, args, model, name): if name == "train": instances = data.train_Ids elif name == "dev": instances = data.dev_Ids elif name == 'test': instances = data.test_Ids elif name == 'raw': instances = data.raw_Ids else: print("Error: wrong evaluate name,", name) exit(0) pred_results = [] gold_results = [] # set model in eval model model.eval() batch_size = args.batch_size start_time = time.time() train_num = len(instances) total_batch = train_num // batch_size + 1 for batch_id in range(total_batch): start = batch_id*batch_size end = (batch_id+1)*batch_size if end > train_num: end = train_num instance = instances[start:end] if not instance: continue word_list, batch_char, batch_label, mask = batchify_with_label(instance, args.use_gpu) _, tag_seq = model(word_list, batch_char, mask) pred_label, gold_label = recover_label(tag_seq, batch_label, mask, data.label_alphabet) pred_results += pred_label gold_results += gold_label decode_time = time.time() - start_time speed = len(instances) / decode_time acc, p, r, f = get_ner_fmeasure(gold_results, pred_results) return speed, acc, p, r, f, pred_results def batchify_with_label(input_batch_list, gpu): batch_size = len(input_batch_list) chars = [sent[0] for sent in input_batch_list] words = [sent[1] for sent in input_batch_list] labels = [sent[2] for sent in input_batch_list] sent_lengths = torch.LongTensor(list(map(len, chars))) max_sent_len = sent_lengths.max() char_seq_tensor = autograd.Variable(torch.zeros((batch_size, max_sent_len))).long() label_seq_tensor = autograd.Variable(torch.zeros((batch_size, max_sent_len))).long() mask = autograd.Variable(torch.zeros((batch_size, max_sent_len))).byte() for idx, (seq, label, seq_len) in enumerate(zip(chars, labels, sent_lengths)): char_seq_tensor[idx, :seq_len] = torch.LongTensor(seq) label_seq_tensor[idx, :seq_len] = torch.LongTensor(label) mask[idx, :seq_len] = torch.Tensor([1] * int(seq_len)) if gpu: char_seq_tensor = char_seq_tensor.cuda() label_seq_tensor = label_seq_tensor.cuda() mask = mask.cuda() return words, char_seq_tensor, label_seq_tensor, mask def train(data, args, saved_model_path): print( "Training model...") model = Graph(data, args) if args.use_gpu: model = model.cuda() print('# generated parameters:', sum(param.numel() for param in model.parameters())) print( "Finished built model.") best_dev_epoch = 0 best_dev_f = -1 best_dev_p = -1 best_dev_r = -1 best_test_f = -1 best_test_p = -1 best_test_r = -1 # Initialize the optimizer aggr_module_params = [] other_module_params = [] for m_name in model._modules: m = model._modules[m_name] if isinstance(m, torch.nn.ModuleList): for p in m.parameters(): if p.requires_grad: aggr_module_params.append(p) else: for p in m.parameters(): if p.requires_grad: other_module_params.append(p) optimizer = optim.Adam([ {"params": (aggr_module_params), "name": "aggr"}, {"params": (other_module_params), "name": "other"} ], lr=args.lr, weight_decay=args.weight_decay ) for idx in range(args.num_epoch): epoch_start = time.time() temp_start = epoch_start print(("Epoch: %s/%s" %(idx, args.num_epoch))) optimizer = lr_decay(optimizer, idx, args.lr_decay, args.lr) sample_loss = 0 batch_loss = 0 total_loss = 0 right_token = 0 whole_token = 0 random.shuffle(data.train_Ids) # set model in train model model.train() model.zero_grad() batch_size = args.batch_size train_num = len(data.train_Ids) total_batch = train_num // batch_size + 1 for batch_id in range(total_batch): # Get one batch-sized instance start = batch_id * batch_size end = (batch_id + 1) * batch_size if end > train_num: end = train_num instance = data.train_Ids[start:end] if not instance: continue word_list, batch_char, batch_label, mask = batchify_with_label(instance, args.use_gpu) loss, tag_seq = model(word_list, batch_char, mask, batch_label) right, whole = predict_check(tag_seq, batch_label, mask) right_token += right whole_token += whole sample_loss += loss.data total_loss += loss.data batch_loss += loss if end % 500 == 0: temp_time = time.time() temp_cost = temp_time - temp_start temp_start = temp_time print((" Instance: %s; Time: %.2fs; loss: %.4f; acc: %s/%s=%.4f" % (end, temp_cost, sample_loss, right_token, whole_token, (right_token+0.)/whole_token))) sys.stdout.flush() sample_loss = 0 if end % args.batch_size == 0: batch_loss.backward() optimizer.step() model.zero_grad() batch_loss = 0 temp_time = time.time() temp_cost = temp_time - temp_start print((" Instance: %s; Time: %.2fs; loss: %.4f; acc: %s/%s=%.4f" % (end, temp_cost, sample_loss, right_token, whole_token, (right_token+0.)/whole_token))) epoch_finish = time.time() epoch_cost = epoch_finish - epoch_start print(("Epoch: %s training finished. Time: %.2fs, speed: %.2fst/s, total loss: %s" % (idx, epoch_cost, train_num/epoch_cost, total_loss))) # dev speed, acc, dev_p, dev_r, dev_f, _ = evaluate(data, args, model, "dev") dev_finish = time.time() dev_cost = dev_finish - epoch_finish print(("Dev: time: %.2fs, speed: %.2fst/s; acc: %.4f, p: %.4f, r: %.4f, f: %.4f" % (dev_cost, speed, acc, dev_p, dev_r, dev_f))) # test speed, acc, test_p, test_r, test_f, _ = evaluate(data, args, model, "test") test_finish = time.time() test_cost = test_finish - dev_finish print(("Test: time: %.2fs, speed: %.2fst/s; acc: %.4f, p: %.4f, r: %.4f, f: %.4f" % (test_cost, speed, acc, test_p, test_r, test_f))) if dev_f > best_dev_f: print("Exceed previous best f score: %.4f" % best_dev_f) torch.save(model.state_dict(), saved_model_path + "_best") best_dev_p = dev_p best_dev_r = dev_r best_dev_f = dev_f best_dev_epoch = idx + 1 best_test_p = test_p best_test_r = test_r best_test_f = test_f model_idx_path = saved_model_path + "_" + str(idx) torch.save(model.state_dict(), model_idx_path) with open(saved_model_path + "_result.txt", "a") as file: file.write(model_idx_path + '\n') file.write("Dev score: %.4f, r: %.4f, f: %.4f\n" % (dev_p, dev_r, dev_f)) file.write("Test score: %.4f, r: %.4f, f: %.4f\n\n" % (test_p, test_r, test_f)) file.close() print("Best dev epoch: %d" % best_dev_epoch) print("Best dev score: p: %.4f, r: %.4f, f: %.4f" % (best_dev_p, best_dev_r, best_dev_f)) print("Best test score: p: %.4f, r: %.4f, f: %.4f" % (best_test_p, best_test_r, best_test_f)) gc.collect() with open(saved_model_path + "_result.txt", "a") as file: file.write("Best epoch: %d" % best_dev_epoch + '\n') file.write("Best Dev score: %.4f, r: %.4f, f: %.4f\n" % (best_dev_p, best_dev_r, best_dev_f)) file.write("Test score: %.4f, r: %.4f, f: %.4f\n\n" % (best_test_p, best_test_r, best_test_f)) file.close() with open(saved_model_path + "_best_HP.config", "wb") as file: pickle.dump(args, file) def load_model_decode(model_dir, data, args, name): model_dir = model_dir + "_best" print("Load Model from file: ", model_dir) model = Graph(data, args) model.load_state_dict(torch.load(model_dir)) # load model need consider if the model trained in GPU and load in CPU, or vice versa if args.use_gpu: model = model.cuda() print(("Decode %s data ..." % name)) start_time = time.time() speed, acc, p, r, f, pred_results = evaluate(data, args, model, name) end_time = time.time() time_cost = end_time - start_time print(("%s: time:%.2fs, speed:%.2fst/s; acc: %.4f, p: %.4f, r: %.4f, f: %.4f" % (name, time_cost, speed, acc, p, r, f))) return pred_results if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--status', choices=['train', 'test', 'decode'], help='Function status.', default='train') parser.add_argument('--use_gpu', type=str2bool, default=True) parser.add_argument('--train', help='Training set.', default='data/onto4ner.cn/train.char.bmes') parser.add_argument('--dev', help='Developing set.', default='data/onto4ner.cn/dev.char.bmes') parser.add_argument('--test', help='Testing set.', default='data/onto4ner.cn/test.char.bmes') parser.add_argument('--raw', help='Raw file for decoding.') parser.add_argument('--output', help='Output results for decoding.') parser.add_argument('--saved_set', help='Path of saved data set.', default='data/onto4ner.cn/saved.dset') parser.add_argument('--saved_model', help='Path of saved model.', default="saved_model/model_onto4ner") parser.add_argument('--char_emb', help='Path of character embedding file.', default="data/gigaword_chn.all.a2b.uni.ite50.vec") parser.add_argument('--word_emb', help='Path of word embedding file.', default="data/ctb.50d.vec") parser.add_argument('--use_crf', type=str2bool, default=True) parser.add_argument('--use_edge', type=str2bool, default=True, help='If use lexicon embeddings (edge embeddings).') parser.add_argument('--use_global', type=str2bool, default=True, help='If use the global node.') parser.add_argument('--bidirectional', type=str2bool, default=True, help='If use bidirectional digraph.') parser.add_argument('--seed', help='Random seed', default=1023, type=int) parser.add_argument('--batch_size', help='Batch size.', default=1, type=int) parser.add_argument('--num_epoch',default=100, type=int, help="Epoch number.") parser.add_argument('--iters', default=4, type=int, help='The number of Graph iterations.') parser.add_argument('--hidden_dim', default=50, type=int, help='Hidden state size.') parser.add_argument('--num_head', default=10, type=int, help='Number of transformer head.') parser.add_argument('--head_dim', default=20, type=int, help='Head dimension of transformer.') parser.add_argument('--tf_drop_rate', default=0.1, type=float, help='Transformer dropout rate.') parser.add_argument('--emb_drop_rate', default=0.5, type=float, help='Embedding dropout rate.') parser.add_argument('--cell_drop_rate', default=0.2, type=float, help='Aggregation module dropout rate.') parser.add_argument('--word_alphabet_size', type=int, help='Word alphabet size.') parser.add_argument('--char_alphabet_size', type=int, help='Char alphabet size.') parser.add_argument('--label_alphabet_size', type=int, help='Label alphabet size.') parser.add_argument('--char_dim', type=int, help='Char embedding size.') parser.add_argument('--word_dim', type=int, help='Word embedding size.') parser.add_argument('--lr', type=float, default=2e-05) parser.add_argument('--lr_decay', type=float, default=0) parser.add_argument('--weight_decay', type=float, default=0) args = parser.parse_args() status = args.status.lower() seed_num = args.seed random.seed(seed_num) torch.manual_seed(seed_num) np.random.seed(seed_num) train_file = args.train dev_file = args.dev test_file = args.test raw_file = args.raw output_file = args.output saved_set_path = args.saved_set saved_model_path = args.saved_model char_file = args.char_emb word_file = args.word_emb if status == 'train': if os.path.exists(saved_set_path): print('Loading saved data set...') with open(saved_set_path, 'rb') as f: data = pickle.load(f) else: data = Data() data_initialization(data, word_file, train_file, dev_file, test_file) data.generate_instance_with_words(train_file, 'train') data.generate_instance_with_words(dev_file, 'dev') data.generate_instance_with_words(test_file, 'test') data.build_char_pretrain_emb(char_file) data.build_word_pretrain_emb(word_file) if saved_set_path is not None: print('Dumping data...') with open(saved_set_path, 'wb') as f: pickle.dump(data, f) data.show_data_summary() args.word_alphabet_size = data.word_alphabet.size() args.char_alphabet_size = data.char_alphabet.size() args.label_alphabet_size = data.label_alphabet.size() args.char_dim = data.char_emb_dim args.word_dim = data.word_emb_dim print_args(args) train(data, args, saved_model_path) elif status == 'test': assert not (test_file is None) if os.path.exists(saved_set_path): print('Loading saved data set...') with open(saved_set_path, 'rb') as f: data = pickle.load(f) else: print("Cannot find saved data set: ", saved_set_path) exit(0) data.generate_instance_with_words(test_file, 'test') with open(saved_model_path + "_best_HP.config", "rb") as f: args = pickle.load(f) data.show_data_summary() print_args(args) load_model_decode(saved_model_path, data, args, "test") elif status == 'decode': assert not (raw_file is None or output_file is None) if os.path.exists(saved_set_path): print('Loading saved data set...') with open(saved_set_path, 'rb') as f: data = pickle.load(f) else: print("Cannot find saved data set: ", saved_set_path) exit(0) data.generate_instance_with_words(raw_file, 'raw') with open(saved_model_path + "_best_HP.config", "rb") as f: args = pickle.load(f) data.show_data_summary() print_args(args) decode_results = load_model_decode(saved_model_path, data, args, "raw") data.write_decoded_results(output_file, decode_results, 'raw') else: print("Invalid argument! Please use valid arguments! (train/test/decode)")
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 732, 13720, 29901, 529, 5813, 29958, 13, 29937, 732, 8897, 3382, 2164, 491, 29901, 259, 529, 5813, 10202, 1678, 22387, 29901, 529, 26862, 6227, 29958, 13, 13, 5215, 931, 13, 5215, 10876, 13, 5215, 1852, 5510, 13, 5215, 4036, 13, 5215, 4842, 305, 13, 5215, 330, 29883, 13, 5215, 5839, 280, 13, 5215, 2897, 13, 5215, 4842, 305, 29889, 1300, 468, 3665, 408, 1120, 468, 3665, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 5215, 12655, 408, 7442, 13, 3166, 3667, 29879, 29889, 16414, 1053, 679, 29918, 1089, 29918, 29888, 26658, 13, 3166, 1904, 29889, 29931, 20728, 1053, 12367, 13, 3166, 3667, 29879, 29889, 1272, 1053, 3630, 13, 13, 13, 1753, 851, 29906, 11227, 29898, 29894, 1125, 13, 1678, 565, 338, 8758, 29898, 29894, 29892, 6120, 1125, 13, 539, 736, 325, 13, 1678, 565, 325, 29889, 13609, 580, 297, 6702, 3582, 742, 525, 3009, 742, 525, 29873, 742, 525, 29891, 742, 525, 29896, 29374, 13, 4706, 736, 5852, 13, 1678, 25342, 325, 29889, 13609, 580, 297, 6702, 1217, 742, 525, 4541, 742, 525, 29888, 742, 525, 29876, 742, 525, 29900, 29374, 13, 4706, 736, 7700, 13, 1678, 1683, 29901, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 877, 18146, 995, 3806, 29889, 1495, 13, 13, 13, 1753, 301, 29878, 29918, 7099, 388, 29898, 20640, 3950, 29892, 21502, 305, 29892, 20228, 29918, 10492, 29892, 2069, 29918, 29212, 1125, 13, 1678, 301, 29878, 353, 2069, 29918, 29212, 334, 5135, 29896, 29899, 7099, 388, 29918, 10492, 29897, 1068, 1022, 2878, 29897, 13, 1678, 1596, 29898, 376, 29257, 6554, 338, 3604, 287, 408, 29901, 613, 301, 29878, 29897, 13, 1678, 363, 1828, 29918, 2972, 297, 5994, 3950, 29889, 3207, 29918, 13155, 29901, 13, 4706, 565, 1828, 29918, 2972, 1839, 978, 2033, 1275, 525, 351, 629, 2396, 13, 9651, 1828, 29918, 2972, 1839, 29212, 2033, 353, 301, 29878, 334, 29871, 29906, 29889, 13, 4706, 1683, 29901, 13, 9651, 1828, 29918, 2972, 1839, 29212, 2033, 353, 301, 29878, 13, 1678, 736, 5994, 3950, 13, 13, 13, 1753, 848, 29918, 11228, 2133, 29898, 1272, 29892, 1734, 29918, 1445, 29892, 7945, 29918, 1445, 29892, 2906, 29918, 1445, 29892, 1243, 29918, 1445, 1125, 13, 13, 1678, 848, 29889, 4282, 29918, 1742, 29918, 1445, 29898, 1742, 29918, 1445, 29897, 13, 13, 1678, 565, 7945, 29918, 1445, 29901, 13, 4706, 848, 29889, 4282, 29918, 284, 17416, 29898, 14968, 29918, 1445, 29897, 13, 4706, 848, 29889, 4282, 29918, 1742, 29918, 284, 17416, 29898, 14968, 29918, 1445, 29897, 13, 1678, 565, 2906, 29918, 1445, 29901, 13, 4706, 848, 29889, 4282, 29918, 284, 17416, 29898, 3359, 29918, 1445, 29897, 13, 4706, 848, 29889, 4282, 29918, 1742, 29918, 284, 17416, 29898, 3359, 29918, 1445, 29897, 13, 1678, 565, 1243, 29918, 1445, 29901, 13, 4706, 848, 29889, 4282, 29918, 284, 17416, 29898, 1688, 29918, 1445, 29897, 13, 4706, 848, 29889, 4282, 29918, 1742, 29918, 284, 17416, 29898, 1688, 29918, 1445, 29897, 13, 1678, 736, 848, 13, 13, 13, 1753, 8500, 29918, 3198, 29898, 11965, 29918, 11918, 29892, 7684, 29918, 11918, 29892, 11105, 29918, 11918, 1125, 13, 13, 1678, 4450, 353, 4450, 29918, 11918, 29889, 21970, 2141, 1272, 29889, 23749, 580, 13, 1678, 7684, 353, 7684, 29918, 11918, 29889, 21970, 2141, 1272, 29889, 23749, 580, 13, 1678, 11105, 353, 11105, 29918, 11918, 29889, 21970, 2141, 1272, 29889, 23749, 580, 13, 1678, 25457, 287, 353, 313, 11965, 1275, 7684, 29897, 13, 1678, 1492, 29918, 6979, 353, 7442, 29889, 2083, 29898, 957, 6984, 287, 334, 11105, 29897, 13, 1678, 3001, 29918, 6979, 353, 11105, 29889, 2083, 580, 13, 1678, 736, 1492, 29918, 6979, 29892, 3001, 29918, 6979, 13, 13, 13, 1753, 9792, 29918, 1643, 29898, 11965, 29918, 11918, 29892, 7684, 29918, 11918, 29892, 11105, 29918, 11918, 29892, 3858, 29918, 284, 17416, 1125, 13, 13, 1678, 9853, 29918, 2311, 353, 7684, 29918, 11918, 29889, 2311, 29898, 29900, 29897, 13, 1678, 19359, 29918, 2435, 353, 7684, 29918, 11918, 29889, 2311, 29898, 29896, 29897, 13, 1678, 11105, 353, 11105, 29918, 11918, 29889, 21970, 2141, 1272, 29889, 23749, 580, 13, 1678, 4450, 29918, 4039, 353, 4450, 29918, 11918, 29889, 21970, 2141, 1272, 29889, 23749, 580, 13, 1678, 7684, 29918, 4039, 353, 7684, 29918, 11918, 29889, 21970, 2141, 1272, 29889, 23749, 580, 13, 1678, 4450, 29918, 1643, 353, 5159, 13, 1678, 7684, 29918, 1643, 353, 5159, 13, 13, 1678, 363, 22645, 297, 3464, 29898, 16175, 29918, 2311, 1125, 13, 4706, 4450, 353, 518, 1643, 29918, 284, 17416, 29889, 657, 29918, 8758, 29898, 11965, 29918, 4039, 29961, 13140, 3816, 333, 29891, 2314, 363, 1178, 29891, 297, 3464, 29898, 11762, 29918, 2435, 29897, 565, 11105, 29961, 13140, 3816, 333, 29891, 29962, 2804, 29871, 29900, 29962, 13, 4706, 7684, 353, 518, 1643, 29918, 284, 17416, 29889, 657, 29918, 8758, 29898, 29887, 1025, 29918, 4039, 29961, 13140, 3816, 333, 29891, 2314, 363, 1178, 29891, 297, 3464, 29898, 11762, 29918, 2435, 29897, 565, 11105, 29961, 13140, 3816, 333, 29891, 29962, 2804, 29871, 29900, 29962, 13, 4706, 4974, 29898, 2435, 29898, 11965, 29897, 1360, 2435, 29898, 29887, 1025, 876, 13, 4706, 4450, 29918, 1643, 29889, 4397, 29898, 11965, 29897, 13, 4706, 7684, 29918, 1643, 29889, 4397, 29898, 29887, 1025, 29897, 13, 13, 1678, 736, 4450, 29918, 1643, 29892, 7684, 29918, 1643, 13, 13, 13, 1753, 1596, 29918, 5085, 29898, 5085, 1125, 13, 1678, 1596, 703, 25903, 22753, 1529, 13207, 29901, 1159, 13, 1678, 1596, 703, 268, 350, 905, 2159, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 16175, 29918, 2311, 876, 13, 1678, 1596, 703, 268, 960, 671, 22796, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1509, 29918, 29887, 3746, 876, 13, 1678, 1596, 703, 268, 960, 671, 15600, 29943, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1509, 29918, 7283, 29888, 876, 13, 1678, 1596, 703, 268, 382, 1129, 305, 29871, 1353, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1949, 29918, 1022, 2878, 876, 13, 1678, 1596, 703, 268, 29257, 6554, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 29212, 876, 13, 1678, 1596, 703, 268, 365, 29906, 4226, 2133, 6554, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 7915, 29918, 7099, 388, 876, 13, 1678, 1596, 703, 268, 960, 671, 7636, 23655, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1509, 29918, 12864, 876, 13, 1678, 1596, 703, 268, 960, 29871, 671, 29871, 5534, 29871, 2943, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1509, 29918, 10945, 876, 13, 1678, 1596, 703, 268, 350, 333, 8684, 284, 4697, 1140, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 23883, 8684, 284, 876, 13, 1678, 1596, 703, 268, 10318, 259, 4331, 29871, 1353, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 277, 414, 876, 13, 1678, 1596, 703, 268, 6212, 2509, 29871, 5768, 449, 259, 6554, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 13264, 29918, 8865, 29918, 10492, 876, 13, 1678, 1596, 703, 268, 2812, 2580, 8497, 29871, 5768, 449, 259, 6554, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1590, 29918, 8865, 29918, 10492, 876, 13, 1678, 1596, 703, 268, 379, 4215, 29871, 2106, 259, 9927, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 10892, 29918, 6229, 876, 13, 1678, 1596, 703, 268, 29257, 6554, 20228, 11959, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 29212, 29918, 7099, 388, 876, 13, 1678, 1596, 703, 268, 319, 26127, 362, 3883, 5768, 449, 6554, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 3729, 29918, 8865, 29918, 10492, 876, 13, 1678, 1596, 703, 268, 12252, 1678, 1353, 259, 310, 259, 8570, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 1949, 29918, 2813, 876, 13, 1678, 1596, 703, 268, 12252, 29871, 9927, 259, 310, 29871, 8570, 29901, 1273, 29879, 29908, 1273, 313, 5085, 29889, 2813, 29918, 6229, 876, 13, 1678, 1596, 703, 25903, 22753, 1529, 13207, 11056, 23157, 13, 1678, 10876, 29889, 25393, 29889, 23126, 580, 13, 13, 13, 1753, 14707, 29898, 1272, 29892, 6389, 29892, 1904, 29892, 1024, 1125, 13, 1678, 565, 1024, 1275, 376, 14968, 1115, 13, 4706, 8871, 353, 848, 29889, 14968, 29918, 21943, 13, 1678, 25342, 1024, 1275, 376, 3359, 1115, 13, 4706, 8871, 353, 848, 29889, 3359, 29918, 21943, 13, 1678, 25342, 1024, 1275, 525, 1688, 2396, 13, 4706, 8871, 353, 848, 29889, 1688, 29918, 21943, 13, 1678, 25342, 1024, 1275, 525, 1610, 2396, 13, 4706, 8871, 353, 848, 29889, 1610, 29918, 21943, 13, 1678, 1683, 29901, 13, 4706, 1596, 703, 2392, 29901, 2743, 14707, 1024, 29892, 613, 1024, 29897, 13, 4706, 6876, 29898, 29900, 29897, 13, 13, 1678, 4450, 29918, 9902, 353, 5159, 13, 1678, 7684, 29918, 9902, 353, 5159, 13, 13, 1678, 396, 731, 1904, 297, 19745, 1904, 13, 1678, 1904, 29889, 14513, 580, 13, 1678, 9853, 29918, 2311, 353, 6389, 29889, 16175, 29918, 2311, 13, 1678, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 1678, 7945, 29918, 1949, 353, 7431, 29898, 2611, 2925, 29897, 13, 1678, 3001, 29918, 16175, 353, 7945, 29918, 1949, 849, 9853, 29918, 2311, 718, 29871, 29896, 13, 13, 1678, 363, 9853, 29918, 333, 297, 3464, 29898, 7827, 29918, 16175, 1125, 13, 4706, 1369, 353, 9853, 29918, 333, 29930, 16175, 29918, 2311, 13, 4706, 1095, 353, 313, 16175, 29918, 333, 29974, 29896, 11877, 16175, 29918, 2311, 13, 4706, 565, 1095, 1405, 7945, 29918, 1949, 29901, 13, 9651, 1095, 353, 7945, 29918, 1949, 13, 4706, 2777, 353, 8871, 29961, 2962, 29901, 355, 29962, 13, 4706, 565, 451, 2777, 29901, 13, 9651, 6773, 13, 13, 4706, 1734, 29918, 1761, 29892, 9853, 29918, 3090, 29892, 9853, 29918, 1643, 29892, 11105, 353, 9853, 1598, 29918, 2541, 29918, 1643, 29898, 8758, 29892, 6389, 29889, 1509, 29918, 29887, 3746, 29897, 13, 4706, 17117, 4055, 29918, 11762, 353, 1904, 29898, 1742, 29918, 1761, 29892, 9853, 29918, 3090, 29892, 11105, 29897, 13, 13, 4706, 4450, 29918, 1643, 29892, 7684, 29918, 1643, 353, 9792, 29918, 1643, 29898, 4039, 29918, 11762, 29892, 9853, 29918, 1643, 29892, 11105, 29892, 848, 29889, 1643, 29918, 284, 17416, 29897, 13, 13, 4706, 4450, 29918, 9902, 4619, 4450, 29918, 1643, 13, 4706, 7684, 29918, 9902, 4619, 7684, 29918, 1643, 13, 13, 1678, 21822, 29918, 2230, 353, 931, 29889, 2230, 580, 448, 1369, 29918, 2230, 13, 1678, 6210, 353, 7431, 29898, 2611, 2925, 29897, 847, 21822, 29918, 2230, 13, 13, 1678, 1035, 29892, 282, 29892, 364, 29892, 285, 353, 679, 29918, 1089, 29918, 29888, 26658, 29898, 29887, 1025, 29918, 9902, 29892, 4450, 29918, 9902, 29897, 13, 1678, 736, 6210, 29892, 1035, 29892, 282, 29892, 364, 29892, 285, 29892, 4450, 29918, 9902, 13, 13, 13, 1753, 9853, 1598, 29918, 2541, 29918, 1643, 29898, 2080, 29918, 16175, 29918, 1761, 29892, 330, 3746, 1125, 13, 13, 1678, 9853, 29918, 2311, 353, 7431, 29898, 2080, 29918, 16175, 29918, 1761, 29897, 13, 1678, 22524, 353, 518, 18616, 29961, 29900, 29962, 363, 2665, 297, 1881, 29918, 16175, 29918, 1761, 29962, 13, 1678, 3838, 353, 518, 18616, 29961, 29896, 29962, 363, 2665, 297, 1881, 29918, 16175, 29918, 1761, 29962, 13, 1678, 11073, 353, 518, 18616, 29961, 29906, 29962, 363, 2665, 297, 1881, 29918, 16175, 29918, 1761, 29962, 13, 13, 1678, 2665, 29918, 2848, 29879, 353, 4842, 305, 29889, 8208, 29911, 6073, 29898, 1761, 29898, 1958, 29898, 2435, 29892, 22524, 4961, 13, 1678, 4236, 29918, 18616, 29918, 2435, 353, 2665, 29918, 2848, 29879, 29889, 3317, 580, 13, 1678, 1373, 29918, 11762, 29918, 20158, 353, 1120, 468, 3665, 29889, 16174, 29898, 7345, 305, 29889, 3298, 359, 3552, 16175, 29918, 2311, 29892, 4236, 29918, 18616, 29918, 2435, 876, 467, 5426, 580, 13, 1678, 3858, 29918, 11762, 29918, 20158, 353, 1120, 468, 3665, 29889, 16174, 29898, 7345, 305, 29889, 3298, 359, 3552, 16175, 29918, 2311, 29892, 4236, 29918, 18616, 29918, 2435, 876, 467, 5426, 580, 13, 1678, 11105, 353, 1120, 468, 3665, 29889, 16174, 29898, 7345, 305, 29889, 3298, 359, 3552, 16175, 29918, 2311, 29892, 4236, 29918, 18616, 29918, 2435, 876, 467, 10389, 580, 13, 13, 1678, 363, 22645, 29892, 313, 11762, 29892, 3858, 29892, 19359, 29918, 2435, 29897, 297, 26985, 29898, 7554, 29898, 305, 1503, 29892, 11073, 29892, 2665, 29918, 2848, 29879, 22164, 13, 4706, 1373, 29918, 11762, 29918, 20158, 29961, 13140, 29892, 584, 11762, 29918, 2435, 29962, 353, 4842, 305, 29889, 8208, 29911, 6073, 29898, 11762, 29897, 13, 4706, 3858, 29918, 11762, 29918, 20158, 29961, 13140, 29892, 584, 11762, 29918, 2435, 29962, 353, 4842, 305, 29889, 8208, 29911, 6073, 29898, 1643, 29897, 13, 4706, 11105, 29961, 13140, 29892, 584, 11762, 29918, 2435, 29962, 353, 4842, 305, 29889, 29911, 6073, 4197, 29896, 29962, 334, 938, 29898, 11762, 29918, 2435, 876, 13, 13, 1678, 565, 330, 3746, 29901, 13, 4706, 1373, 29918, 11762, 29918, 20158, 353, 1373, 29918, 11762, 29918, 20158, 29889, 29883, 6191, 580, 13, 4706, 3858, 29918, 11762, 29918, 20158, 353, 3858, 29918, 11762, 29918, 20158, 29889, 29883, 6191, 580, 13, 4706, 11105, 353, 11105, 29889, 29883, 6191, 580, 13, 13, 1678, 736, 3838, 29892, 1373, 29918, 11762, 29918, 20158, 29892, 3858, 29918, 11762, 29918, 20158, 29892, 11105, 13, 13, 13, 1753, 7945, 29898, 1272, 29892, 6389, 29892, 7160, 29918, 4299, 29918, 2084, 1125, 13, 13, 1678, 1596, 29898, 376, 5323, 2827, 1904, 856, 1159, 13, 1678, 1904, 353, 12367, 29898, 1272, 29892, 6389, 29897, 13, 1678, 565, 6389, 29889, 1509, 29918, 29887, 3746, 29901, 13, 4706, 1904, 353, 1904, 29889, 29883, 6191, 580, 13, 1678, 1596, 14237, 5759, 4128, 29901, 742, 2533, 29898, 3207, 29889, 1949, 295, 580, 363, 1828, 297, 1904, 29889, 16744, 22130, 13, 1678, 1596, 29898, 376, 12881, 3276, 4240, 1904, 23157, 13, 13, 1678, 1900, 29918, 3359, 29918, 1022, 2878, 353, 29871, 29900, 13, 1678, 1900, 29918, 3359, 29918, 29888, 353, 448, 29896, 13, 1678, 1900, 29918, 3359, 29918, 29886, 353, 448, 29896, 13, 1678, 1900, 29918, 3359, 29918, 29878, 353, 448, 29896, 13, 13, 1678, 1900, 29918, 1688, 29918, 29888, 353, 448, 29896, 13, 1678, 1900, 29918, 1688, 29918, 29886, 353, 448, 29896, 13, 1678, 1900, 29918, 1688, 29918, 29878, 353, 448, 29896, 13, 13, 1678, 396, 25455, 278, 5994, 3950, 13, 1678, 946, 629, 29918, 5453, 29918, 7529, 353, 5159, 13, 1678, 916, 29918, 5453, 29918, 7529, 353, 5159, 13, 1678, 363, 286, 29918, 978, 297, 1904, 3032, 7576, 29901, 13, 4706, 286, 353, 1904, 3032, 7576, 29961, 29885, 29918, 978, 29962, 13, 4706, 565, 338, 8758, 29898, 29885, 29892, 4842, 305, 29889, 15755, 29889, 7355, 1293, 1125, 13, 9651, 363, 282, 297, 286, 29889, 16744, 7295, 13, 18884, 565, 282, 29889, 276, 339, 2658, 29918, 5105, 29901, 13, 462, 1678, 946, 629, 29918, 5453, 29918, 7529, 29889, 4397, 29898, 29886, 29897, 13, 4706, 1683, 29901, 13, 9651, 363, 282, 297, 286, 29889, 16744, 7295, 13, 18884, 565, 282, 29889, 276, 339, 2658, 29918, 5105, 29901, 13, 462, 1678, 916, 29918, 5453, 29918, 7529, 29889, 4397, 29898, 29886, 29897, 13, 13, 1678, 5994, 3950, 353, 5994, 29889, 3253, 314, 4197, 13, 9651, 8853, 7529, 1115, 313, 351, 629, 29918, 5453, 29918, 7529, 511, 376, 978, 1115, 376, 351, 629, 10758, 13, 9651, 8853, 7529, 1115, 313, 1228, 29918, 5453, 29918, 7529, 511, 376, 978, 1115, 376, 1228, 9092, 13, 4706, 21251, 13, 4706, 301, 29878, 29922, 5085, 29889, 29212, 29892, 13, 4706, 7688, 29918, 7099, 388, 29922, 5085, 29889, 7915, 29918, 7099, 388, 13, 1678, 1723, 13, 13, 1678, 363, 22645, 297, 3464, 29898, 5085, 29889, 1949, 29918, 1022, 2878, 1125, 13, 4706, 21502, 305, 29918, 2962, 353, 931, 29889, 2230, 580, 13, 4706, 5694, 29918, 2962, 353, 21502, 305, 29918, 2962, 13, 4706, 1596, 29898, 703, 29923, 1129, 305, 29901, 1273, 29879, 22584, 29879, 29908, 1273, 29898, 13140, 29892, 6389, 29889, 1949, 29918, 1022, 2878, 4961, 13, 4706, 5994, 3950, 353, 301, 29878, 29918, 7099, 388, 29898, 20640, 3950, 29892, 22645, 29892, 6389, 29889, 29212, 29918, 7099, 388, 29892, 6389, 29889, 29212, 29897, 13, 4706, 4559, 29918, 6758, 353, 29871, 29900, 13, 4706, 9853, 29918, 6758, 353, 29871, 29900, 13, 4706, 3001, 29918, 6758, 353, 29871, 29900, 13, 4706, 1492, 29918, 6979, 353, 29871, 29900, 13, 4706, 3353, 29918, 6979, 353, 29871, 29900, 13, 4706, 4036, 29889, 845, 21897, 29898, 1272, 29889, 14968, 29918, 21943, 29897, 13, 4706, 396, 731, 1904, 297, 7945, 1904, 13, 4706, 1904, 29889, 14968, 580, 13, 4706, 1904, 29889, 9171, 29918, 5105, 580, 13, 4706, 9853, 29918, 2311, 353, 6389, 29889, 16175, 29918, 2311, 13, 4706, 7945, 29918, 1949, 353, 7431, 29898, 1272, 29889, 14968, 29918, 21943, 29897, 13, 4706, 3001, 29918, 16175, 353, 7945, 29918, 1949, 849, 9853, 29918, 2311, 718, 29871, 29896, 13, 13, 4706, 363, 9853, 29918, 333, 297, 3464, 29898, 7827, 29918, 16175, 1125, 13, 9651, 396, 3617, 697, 9853, 29899, 29879, 1891, 2777, 13, 9651, 1369, 353, 9853, 29918, 333, 334, 9853, 29918, 2311, 13, 9651, 1095, 353, 313, 16175, 29918, 333, 718, 29871, 29896, 29897, 334, 9853, 29918, 2311, 13, 9651, 565, 1095, 1405, 7945, 29918, 1949, 29901, 13, 18884, 1095, 353, 7945, 29918, 1949, 13, 9651, 2777, 353, 848, 29889, 14968, 29918, 21943, 29961, 2962, 29901, 355, 29962, 13, 9651, 565, 451, 2777, 29901, 13, 18884, 6773, 13, 13, 9651, 1734, 29918, 1761, 29892, 9853, 29918, 3090, 29892, 9853, 29918, 1643, 29892, 11105, 353, 9853, 1598, 29918, 2541, 29918, 1643, 29898, 8758, 29892, 6389, 29889, 1509, 29918, 29887, 3746, 29897, 13, 9651, 6410, 29892, 4055, 29918, 11762, 353, 1904, 29898, 1742, 29918, 1761, 29892, 9853, 29918, 3090, 29892, 11105, 29892, 9853, 29918, 1643, 29897, 13, 9651, 1492, 29892, 3353, 353, 8500, 29918, 3198, 29898, 4039, 29918, 11762, 29892, 9853, 29918, 1643, 29892, 11105, 29897, 13, 9651, 1492, 29918, 6979, 4619, 1492, 13, 9651, 3353, 29918, 6979, 4619, 3353, 13, 9651, 4559, 29918, 6758, 4619, 6410, 29889, 1272, 13, 9651, 3001, 29918, 6758, 4619, 6410, 29889, 1272, 13, 9651, 9853, 29918, 6758, 4619, 6410, 13, 13, 9651, 565, 1095, 1273, 29871, 29945, 29900, 29900, 1275, 29871, 29900, 29901, 13, 18884, 5694, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 18884, 5694, 29918, 18253, 353, 5694, 29918, 2230, 448, 5694, 29918, 2962, 13, 18884, 5694, 29918, 2962, 353, 5694, 29918, 2230, 13, 18884, 1596, 29898, 703, 268, 2799, 749, 29901, 1273, 29879, 29936, 5974, 29901, 18695, 29906, 5847, 29936, 6410, 29901, 18695, 29946, 29888, 29936, 1035, 29901, 1273, 29879, 22584, 29879, 29922, 15543, 29946, 29888, 29908, 1273, 13, 462, 539, 313, 355, 29892, 5694, 29918, 18253, 29892, 4559, 29918, 6758, 29892, 1492, 29918, 6979, 29892, 3353, 29918, 6979, 29892, 313, 1266, 29918, 6979, 29974, 29900, 1846, 29914, 15970, 280, 29918, 6979, 4961, 13, 18884, 10876, 29889, 25393, 29889, 23126, 580, 13, 18884, 4559, 29918, 6758, 353, 29871, 29900, 13, 9651, 565, 1095, 1273, 6389, 29889, 16175, 29918, 2311, 1275, 29871, 29900, 29901, 13, 18884, 9853, 29918, 6758, 29889, 1627, 1328, 580, 13, 18884, 5994, 3950, 29889, 10568, 580, 13, 18884, 1904, 29889, 9171, 29918, 5105, 580, 13, 18884, 9853, 29918, 6758, 353, 29871, 29900, 13, 13, 4706, 5694, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 4706, 5694, 29918, 18253, 353, 5694, 29918, 2230, 448, 5694, 29918, 2962, 13, 4706, 1596, 29898, 703, 268, 2799, 749, 29901, 1273, 29879, 29936, 5974, 29901, 18695, 29906, 5847, 29936, 6410, 29901, 18695, 29946, 29888, 29936, 1035, 29901, 1273, 29879, 22584, 29879, 29922, 15543, 29946, 29888, 29908, 1273, 13, 1669, 313, 355, 29892, 5694, 29918, 18253, 29892, 4559, 29918, 6758, 29892, 1492, 29918, 6979, 29892, 3353, 29918, 6979, 29892, 313, 1266, 29918, 6979, 29974, 29900, 1846, 29914, 15970, 280, 29918, 6979, 4961, 13, 4706, 21502, 305, 29918, 4951, 728, 353, 931, 29889, 2230, 580, 13, 4706, 21502, 305, 29918, 18253, 353, 21502, 305, 29918, 4951, 728, 448, 21502, 305, 29918, 2962, 13, 4706, 1596, 29898, 703, 29923, 1129, 305, 29901, 1273, 29879, 6694, 7743, 29889, 5974, 29901, 18695, 29906, 5847, 29892, 6210, 29901, 18695, 29906, 29888, 303, 29914, 29879, 29892, 29871, 3001, 6410, 29901, 1273, 29879, 29908, 1273, 13, 1669, 313, 13140, 29892, 21502, 305, 29918, 18253, 29892, 7945, 29918, 1949, 29914, 1022, 2878, 29918, 18253, 29892, 3001, 29918, 6758, 4961, 13, 13, 4706, 396, 2906, 13, 4706, 6210, 29892, 1035, 29892, 2906, 29918, 29886, 29892, 2906, 29918, 29878, 29892, 2906, 29918, 29888, 29892, 903, 353, 14707, 29898, 1272, 29892, 6389, 29892, 1904, 29892, 376, 3359, 1159, 13, 4706, 2906, 29918, 4951, 728, 353, 931, 29889, 2230, 580, 13, 4706, 2906, 29918, 18253, 353, 2906, 29918, 4951, 728, 448, 21502, 305, 29918, 4951, 728, 13, 13, 4706, 1596, 29898, 703, 16618, 29901, 931, 29901, 18695, 29906, 5847, 29892, 6210, 29901, 18695, 29906, 29888, 303, 29914, 29879, 29936, 1035, 29901, 18695, 29946, 29888, 29892, 282, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29908, 1273, 13, 1669, 313, 3359, 29918, 18253, 29892, 6210, 29892, 1035, 29892, 2906, 29918, 29886, 29892, 2906, 29918, 29878, 29892, 2906, 29918, 29888, 4961, 13, 13, 4706, 396, 1243, 13, 4706, 6210, 29892, 1035, 29892, 1243, 29918, 29886, 29892, 1243, 29918, 29878, 29892, 1243, 29918, 29888, 29892, 903, 353, 14707, 29898, 1272, 29892, 6389, 29892, 1904, 29892, 376, 1688, 1159, 13, 4706, 1243, 29918, 4951, 728, 353, 931, 29889, 2230, 580, 13, 4706, 1243, 29918, 18253, 353, 1243, 29918, 4951, 728, 448, 2906, 29918, 4951, 728, 13, 13, 4706, 1596, 29898, 703, 3057, 29901, 931, 29901, 18695, 29906, 5847, 29892, 6210, 29901, 18695, 29906, 29888, 303, 29914, 29879, 29936, 1035, 29901, 18695, 29946, 29888, 29892, 282, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29908, 1273, 13, 1669, 313, 1688, 29918, 18253, 29892, 6210, 29892, 1035, 29892, 1243, 29918, 29886, 29892, 1243, 29918, 29878, 29892, 1243, 29918, 29888, 4961, 13, 13, 4706, 565, 2906, 29918, 29888, 1405, 1900, 29918, 3359, 29918, 29888, 29901, 13, 9651, 1596, 703, 1252, 3947, 3517, 1900, 285, 8158, 29901, 18695, 29946, 29888, 29908, 1273, 1900, 29918, 3359, 29918, 29888, 29897, 13, 9651, 4842, 305, 29889, 7620, 29898, 4299, 29889, 3859, 29918, 8977, 3285, 7160, 29918, 4299, 29918, 2084, 718, 11119, 13318, 1159, 13, 9651, 1900, 29918, 3359, 29918, 29886, 353, 2906, 29918, 29886, 13, 9651, 1900, 29918, 3359, 29918, 29878, 353, 2906, 29918, 29878, 13, 9651, 1900, 29918, 3359, 29918, 29888, 353, 2906, 29918, 29888, 13, 9651, 1900, 29918, 3359, 29918, 1022, 2878, 353, 22645, 718, 29871, 29896, 13, 9651, 1900, 29918, 1688, 29918, 29886, 353, 1243, 29918, 29886, 13, 9651, 1900, 29918, 1688, 29918, 29878, 353, 1243, 29918, 29878, 13, 9651, 1900, 29918, 1688, 29918, 29888, 353, 1243, 29918, 29888, 13, 13, 4706, 1904, 29918, 13140, 29918, 2084, 353, 7160, 29918, 4299, 29918, 2084, 718, 11119, 29908, 718, 851, 29898, 13140, 29897, 13, 4706, 4842, 305, 29889, 7620, 29898, 4299, 29889, 3859, 29918, 8977, 3285, 1904, 29918, 13140, 29918, 2084, 29897, 13, 4706, 411, 1722, 29898, 17314, 29918, 4299, 29918, 2084, 718, 11119, 2914, 29889, 3945, 613, 376, 29874, 1159, 408, 934, 29901, 13, 9651, 934, 29889, 3539, 29898, 4299, 29918, 13140, 29918, 2084, 718, 11297, 29876, 1495, 13, 9651, 934, 29889, 3539, 703, 16618, 8158, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29905, 29876, 29908, 1273, 313, 3359, 29918, 29886, 29892, 2906, 29918, 29878, 29892, 2906, 29918, 29888, 876, 13, 9651, 934, 29889, 3539, 703, 3057, 8158, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29905, 29876, 29905, 29876, 29908, 1273, 313, 1688, 29918, 29886, 29892, 1243, 29918, 29878, 29892, 1243, 29918, 29888, 876, 13, 9651, 934, 29889, 5358, 580, 13, 13, 4706, 1596, 703, 25353, 2906, 21502, 305, 29901, 1273, 29881, 29908, 1273, 1900, 29918, 3359, 29918, 1022, 2878, 29897, 13, 4706, 1596, 703, 25353, 2906, 8158, 29901, 282, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29908, 1273, 313, 13318, 29918, 3359, 29918, 29886, 29892, 1900, 29918, 3359, 29918, 29878, 29892, 1900, 29918, 3359, 29918, 29888, 876, 13, 4706, 1596, 703, 25353, 1243, 8158, 29901, 282, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29908, 1273, 313, 13318, 29918, 1688, 29918, 29886, 29892, 1900, 29918, 1688, 29918, 29878, 29892, 1900, 29918, 1688, 29918, 29888, 876, 13, 13, 4706, 330, 29883, 29889, 15914, 580, 13, 13, 1678, 411, 1722, 29898, 17314, 29918, 4299, 29918, 2084, 718, 11119, 2914, 29889, 3945, 613, 376, 29874, 1159, 408, 934, 29901, 13, 4706, 934, 29889, 3539, 703, 25353, 21502, 305, 29901, 1273, 29881, 29908, 1273, 1900, 29918, 3359, 29918, 1022, 2878, 718, 11297, 29876, 1495, 13, 4706, 934, 29889, 3539, 703, 25353, 9481, 8158, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29905, 29876, 29908, 1273, 313, 13318, 29918, 3359, 29918, 29886, 29892, 1900, 29918, 3359, 29918, 29878, 29892, 1900, 29918, 3359, 29918, 29888, 876, 13, 4706, 934, 29889, 3539, 703, 3057, 8158, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29905, 29876, 29905, 29876, 29908, 1273, 313, 13318, 29918, 1688, 29918, 29886, 29892, 1900, 29918, 1688, 29918, 29878, 29892, 1900, 29918, 1688, 29918, 29888, 876, 13, 4706, 934, 29889, 5358, 580, 13, 13, 1678, 411, 1722, 29898, 17314, 29918, 4299, 29918, 2084, 718, 11119, 13318, 29918, 3954, 29889, 2917, 613, 376, 29893, 29890, 1159, 408, 934, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 5085, 29892, 934, 29897, 13, 13, 13, 1753, 2254, 29918, 4299, 29918, 13808, 29898, 4299, 29918, 3972, 29892, 848, 29892, 6389, 29892, 1024, 1125, 13, 1678, 1904, 29918, 3972, 353, 1904, 29918, 3972, 718, 11119, 13318, 29908, 13, 1678, 1596, 703, 5896, 8125, 515, 934, 29901, 9162, 1904, 29918, 3972, 29897, 13, 1678, 1904, 353, 12367, 29898, 1272, 29892, 6389, 29897, 13, 1678, 1904, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 7345, 305, 29889, 1359, 29898, 4299, 29918, 3972, 876, 13, 13, 1678, 396, 2254, 1904, 817, 2050, 565, 278, 1904, 16370, 297, 22796, 322, 2254, 297, 10808, 29892, 470, 11289, 1224, 29874, 13, 1678, 565, 6389, 29889, 1509, 29918, 29887, 3746, 29901, 13, 4706, 1904, 353, 1904, 29889, 29883, 6191, 580, 13, 13, 1678, 1596, 29898, 703, 2772, 401, 1273, 29879, 848, 2023, 29908, 1273, 1024, 876, 13, 1678, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 1678, 6210, 29892, 1035, 29892, 282, 29892, 364, 29892, 285, 29892, 4450, 29918, 9902, 353, 14707, 29898, 1272, 29892, 6389, 29892, 1904, 29892, 1024, 29897, 13, 1678, 1095, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 1678, 931, 29918, 18253, 353, 1095, 29918, 2230, 448, 1369, 29918, 2230, 13, 1678, 1596, 29898, 11702, 29879, 29901, 931, 29901, 15543, 29906, 5847, 29892, 6210, 29901, 15543, 29906, 29888, 303, 29914, 29879, 29936, 1035, 29901, 18695, 29946, 29888, 29892, 282, 29901, 18695, 29946, 29888, 29892, 364, 29901, 18695, 29946, 29888, 29892, 285, 29901, 18695, 29946, 29888, 29908, 1273, 13, 965, 313, 978, 29892, 931, 29918, 18253, 29892, 6210, 29892, 1035, 29892, 282, 29892, 364, 29892, 285, 4961, 13, 13, 1678, 736, 4450, 29918, 9902, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 4882, 742, 19995, 29922, 1839, 14968, 742, 525, 1688, 742, 525, 13808, 7464, 1371, 2433, 6678, 4660, 29889, 742, 2322, 2433, 14968, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1509, 29918, 29887, 3746, 742, 1134, 29922, 710, 29906, 11227, 29892, 2322, 29922, 5574, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 14968, 742, 1371, 2433, 5323, 2827, 731, 29889, 742, 2322, 2433, 1272, 29914, 10268, 29946, 1089, 29889, 18038, 29914, 14968, 29889, 3090, 29889, 29890, 4467, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3359, 742, 1371, 2433, 21956, 292, 731, 29889, 742, 2322, 2433, 1272, 29914, 10268, 29946, 1089, 29889, 18038, 29914, 3359, 29889, 3090, 29889, 29890, 4467, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1688, 742, 1371, 2433, 3057, 292, 731, 29889, 742, 2322, 2433, 1272, 29914, 10268, 29946, 1089, 29889, 18038, 29914, 1688, 29889, 3090, 29889, 29890, 4467, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1610, 742, 1371, 2433, 22131, 934, 363, 1602, 3689, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 4905, 742, 1371, 2433, 6466, 2582, 363, 1602, 3689, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 17314, 29918, 842, 742, 1371, 2433, 2605, 310, 7160, 848, 731, 29889, 742, 2322, 2433, 1272, 29914, 10268, 29946, 1089, 29889, 18038, 29914, 17314, 29889, 29881, 842, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 17314, 29918, 4299, 742, 1371, 2433, 2605, 310, 7160, 1904, 29889, 742, 2322, 543, 17314, 29918, 4299, 29914, 4299, 29918, 10268, 29946, 1089, 1159, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3090, 29918, 1590, 742, 1371, 2433, 2605, 310, 2931, 23655, 934, 29889, 742, 2322, 543, 1272, 29914, 29887, 335, 1450, 536, 29918, 3049, 29889, 497, 29889, 29874, 29906, 29890, 29889, 3909, 29889, 568, 29945, 29900, 29889, 2003, 1159, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1742, 29918, 1590, 742, 1371, 2433, 2605, 310, 1734, 23655, 934, 29889, 742, 2322, 543, 1272, 29914, 312, 29890, 29889, 29945, 29900, 29881, 29889, 2003, 1159, 13, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1509, 29918, 7283, 29888, 742, 1134, 29922, 710, 29906, 11227, 29892, 2322, 29922, 5574, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1509, 29918, 12864, 742, 1134, 29922, 710, 29906, 11227, 29892, 2322, 29922, 5574, 29892, 1371, 2433, 3644, 671, 19566, 4144, 8297, 29881, 886, 313, 12864, 8297, 29881, 886, 467, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1509, 29918, 10945, 742, 1134, 29922, 710, 29906, 11227, 29892, 2322, 29922, 5574, 29892, 1371, 2433, 3644, 671, 278, 5534, 2943, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 23883, 8684, 284, 742, 1134, 29922, 710, 29906, 11227, 29892, 2322, 29922, 5574, 29892, 1371, 2433, 3644, 671, 21000, 8684, 284, 4697, 1140, 29889, 1495, 13, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 26776, 742, 1371, 2433, 17875, 16717, 742, 2322, 29922, 29896, 29900, 29906, 29941, 29892, 1134, 29922, 524, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 16175, 29918, 2311, 742, 1371, 2433, 23145, 2159, 29889, 742, 2322, 29922, 29896, 29892, 1134, 29922, 524, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1949, 29918, 1022, 2878, 742, 4381, 29922, 29896, 29900, 29900, 29892, 1134, 29922, 524, 29892, 1371, 543, 29923, 1129, 305, 1353, 23157, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 277, 414, 742, 2322, 29922, 29946, 29892, 1134, 29922, 524, 29892, 1371, 2433, 1576, 1353, 310, 12367, 24372, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 10892, 29918, 6229, 742, 2322, 29922, 29945, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 25108, 2106, 2159, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1949, 29918, 2813, 742, 2322, 29922, 29896, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 4557, 310, 4327, 261, 2343, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 2813, 29918, 6229, 742, 2322, 29922, 29906, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 5494, 9927, 310, 4327, 261, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 13264, 29918, 8865, 29918, 10492, 742, 2322, 29922, 29900, 29889, 29896, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 13372, 261, 5768, 449, 6554, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1590, 29918, 8865, 29918, 10492, 742, 2322, 29922, 29900, 29889, 29945, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 6026, 2580, 8497, 5768, 449, 6554, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3729, 29918, 8865, 29918, 10492, 742, 2322, 29922, 29900, 29889, 29906, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 29909, 26127, 362, 3883, 5768, 449, 6554, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1742, 29918, 284, 17416, 29918, 2311, 742, 1134, 29922, 524, 29892, 1371, 2433, 14463, 22968, 2159, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3090, 29918, 284, 17416, 29918, 2311, 742, 1134, 29922, 524, 29892, 1371, 2433, 5914, 22968, 2159, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1643, 29918, 284, 17416, 29918, 2311, 742, 1134, 29922, 524, 29892, 1371, 2433, 4775, 22968, 2159, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3090, 29918, 6229, 742, 1134, 29922, 524, 29892, 1371, 2433, 5914, 23655, 2159, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1742, 29918, 6229, 742, 1134, 29922, 524, 29892, 1371, 2433, 14463, 23655, 2159, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29212, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29906, 29872, 29899, 29900, 29945, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29212, 29918, 7099, 388, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 7915, 29918, 7099, 388, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29897, 13, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 1678, 4660, 353, 6389, 29889, 4882, 29889, 13609, 580, 13, 1678, 16717, 29918, 1949, 353, 6389, 29889, 26776, 13, 1678, 4036, 29889, 26776, 29898, 26776, 29918, 1949, 29897, 13, 1678, 4842, 305, 29889, 11288, 29918, 26776, 29898, 26776, 29918, 1949, 29897, 13, 1678, 7442, 29889, 8172, 29889, 26776, 29898, 26776, 29918, 1949, 29897, 13, 13, 1678, 7945, 29918, 1445, 353, 6389, 29889, 14968, 13, 1678, 2906, 29918, 1445, 353, 6389, 29889, 3359, 13, 1678, 1243, 29918, 1445, 353, 6389, 29889, 1688, 13, 1678, 10650, 29918, 1445, 353, 6389, 29889, 1610, 13, 1678, 1962, 29918, 1445, 353, 6389, 29889, 4905, 13, 1678, 7160, 29918, 842, 29918, 2084, 353, 6389, 29889, 17314, 29918, 842, 13, 1678, 7160, 29918, 4299, 29918, 2084, 353, 6389, 29889, 17314, 29918, 4299, 13, 1678, 1373, 29918, 1445, 353, 6389, 29889, 3090, 29918, 1590, 13, 1678, 1734, 29918, 1445, 353, 6389, 29889, 1742, 29918, 1590, 13, 13, 1678, 565, 4660, 1275, 525, 14968, 2396, 13, 4706, 565, 2897, 29889, 2084, 29889, 9933, 29898, 17314, 29918, 842, 29918, 2084, 1125, 13, 9651, 1596, 877, 23456, 7160, 848, 731, 856, 1495, 13, 9651, 411, 1722, 29898, 17314, 29918, 842, 29918, 2084, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 18884, 848, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 1683, 29901, 13, 9651, 848, 353, 3630, 580, 13, 9651, 848, 29918, 11228, 2133, 29898, 1272, 29892, 1734, 29918, 1445, 29892, 7945, 29918, 1445, 29892, 2906, 29918, 1445, 29892, 1243, 29918, 1445, 29897, 13, 9651, 848, 29889, 17158, 29918, 8758, 29918, 2541, 29918, 9303, 29898, 14968, 29918, 1445, 29892, 525, 14968, 1495, 13, 9651, 848, 29889, 17158, 29918, 8758, 29918, 2541, 29918, 9303, 29898, 3359, 29918, 1445, 29892, 525, 3359, 1495, 13, 9651, 848, 29889, 17158, 29918, 8758, 29918, 2541, 29918, 9303, 29898, 1688, 29918, 1445, 29892, 525, 1688, 1495, 13, 9651, 848, 29889, 4282, 29918, 3090, 29918, 1457, 14968, 29918, 1590, 29898, 3090, 29918, 1445, 29897, 13, 9651, 848, 29889, 4282, 29918, 1742, 29918, 1457, 14968, 29918, 1590, 29898, 1742, 29918, 1445, 29897, 13, 9651, 565, 7160, 29918, 842, 29918, 2084, 338, 451, 6213, 29901, 13, 18884, 1596, 877, 29928, 3427, 292, 848, 856, 1495, 13, 18884, 411, 1722, 29898, 17314, 29918, 842, 29918, 2084, 29892, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 462, 1678, 5839, 280, 29889, 15070, 29898, 1272, 29892, 285, 29897, 13, 4706, 848, 29889, 4294, 29918, 1272, 29918, 7727, 580, 13, 4706, 6389, 29889, 1742, 29918, 284, 17416, 29918, 2311, 353, 848, 29889, 1742, 29918, 284, 17416, 29889, 2311, 580, 13, 4706, 6389, 29889, 3090, 29918, 284, 17416, 29918, 2311, 353, 848, 29889, 3090, 29918, 284, 17416, 29889, 2311, 580, 13, 4706, 6389, 29889, 1643, 29918, 284, 17416, 29918, 2311, 353, 848, 29889, 1643, 29918, 284, 17416, 29889, 2311, 580, 13, 4706, 6389, 29889, 3090, 29918, 6229, 353, 848, 29889, 3090, 29918, 1590, 29918, 6229, 13, 4706, 6389, 29889, 1742, 29918, 6229, 353, 848, 29889, 1742, 29918, 1590, 29918, 6229, 13, 4706, 1596, 29918, 5085, 29898, 5085, 29897, 13, 4706, 7945, 29898, 1272, 29892, 6389, 29892, 7160, 29918, 4299, 29918, 2084, 29897, 13, 13, 1678, 25342, 4660, 1275, 525, 1688, 2396, 13, 4706, 4974, 451, 313, 1688, 29918, 1445, 338, 6213, 29897, 13, 4706, 565, 2897, 29889, 2084, 29889, 9933, 29898, 17314, 29918, 842, 29918, 2084, 1125, 13, 9651, 1596, 877, 23456, 7160, 848, 731, 856, 1495, 13, 9651, 411, 1722, 29898, 17314, 29918, 842, 29918, 2084, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 18884, 848, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 1683, 29901, 13, 9651, 1596, 703, 29089, 1284, 7160, 848, 731, 29901, 9162, 7160, 29918, 842, 29918, 2084, 29897, 13, 9651, 6876, 29898, 29900, 29897, 13, 4706, 848, 29889, 17158, 29918, 8758, 29918, 2541, 29918, 9303, 29898, 1688, 29918, 1445, 29892, 525, 1688, 1495, 13, 4706, 411, 1722, 29898, 17314, 29918, 4299, 29918, 2084, 718, 11119, 13318, 29918, 3954, 29889, 2917, 613, 376, 6050, 1159, 408, 285, 29901, 13, 9651, 6389, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 848, 29889, 4294, 29918, 1272, 29918, 7727, 580, 13, 4706, 1596, 29918, 5085, 29898, 5085, 29897, 13, 4706, 2254, 29918, 4299, 29918, 13808, 29898, 17314, 29918, 4299, 29918, 2084, 29892, 848, 29892, 6389, 29892, 376, 1688, 1159, 13, 13, 1678, 25342, 4660, 1275, 525, 13808, 2396, 13, 4706, 4974, 451, 313, 1610, 29918, 1445, 338, 6213, 470, 1962, 29918, 1445, 338, 6213, 29897, 13, 4706, 565, 2897, 29889, 2084, 29889, 9933, 29898, 17314, 29918, 842, 29918, 2084, 1125, 13, 9651, 1596, 877, 23456, 7160, 848, 731, 856, 1495, 13, 9651, 411, 1722, 29898, 17314, 29918, 842, 29918, 2084, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 18884, 848, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 1683, 29901, 13, 9651, 1596, 703, 29089, 1284, 7160, 848, 731, 29901, 9162, 7160, 29918, 842, 29918, 2084, 29897, 13, 9651, 6876, 29898, 29900, 29897, 13, 4706, 848, 29889, 17158, 29918, 8758, 29918, 2541, 29918, 9303, 29898, 1610, 29918, 1445, 29892, 525, 1610, 1495, 13, 4706, 411, 1722, 29898, 17314, 29918, 4299, 29918, 2084, 718, 11119, 13318, 29918, 3954, 29889, 2917, 613, 376, 6050, 1159, 408, 285, 29901, 13, 9651, 6389, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 848, 29889, 4294, 29918, 1272, 29918, 7727, 580, 13, 4706, 1596, 29918, 5085, 29898, 5085, 29897, 13, 4706, 21822, 29918, 9902, 353, 2254, 29918, 4299, 29918, 13808, 29898, 17314, 29918, 4299, 29918, 2084, 29892, 848, 29892, 6389, 29892, 376, 1610, 1159, 13, 4706, 848, 29889, 3539, 29918, 7099, 6797, 29918, 9902, 29898, 4905, 29918, 1445, 29892, 21822, 29918, 9902, 29892, 525, 1610, 1495, 13, 1678, 1683, 29901, 13, 4706, 1596, 703, 13919, 2980, 29991, 3529, 671, 2854, 6273, 29991, 313, 14968, 29914, 1688, 29914, 13808, 25760, 13, 2 ]
generate_character_pair_counts.py
Anima108/malwareAnalysis-midtermproject
0
133762
<gh_stars>0 #!/usr/bin/python ############################################### # This script computes char co-occurence within # alexa's top 1-million web domains. # The co-occurence counts, probability and # log(probability) and stored in a json doc. ############################################### import json import math file = 'alexa-top-1m.csv' def bigrams(input_list): return zip(input_list, input_list[1:]) pairs = {} line_count = 0 with open(file, 'r') as fi: for line in fi: # keep track of progress line_count += 1 # extract ranking arr = line.split(',') ranking = arr[0] # extract basedomain basedomain = arr[1].split('.')[0] # sometimes basedomain is made up of 2 or more words with hyphens between, we split them on the hyphen to obtain 'words' # e.g. my-malicious-domain.com, x-site.com etc. words = basedomain.split('-') # for each domain 'word' greater than 1 character # obtain character pairs for word in words: if len(word) > 1: b = bigrams(word) #combine bigram char pairs and maintain count for char_tuple in b: pair = char_tuple[0] + char_tuple[1] if pair in pairs: pairs[pair] += 1 else: pairs[pair] = 1 # now that we have pairs, compute sum of all pair combinations # for example: #if pairs['go'] = 4, pairs['im'] = 5, pairs['to'] = 9 then total_pairs = 18. total_pairs = sum(pairs.values()) print (total_pairs) # calculate probability for each pair of letters update the dict value with a dict of following format # we use logarithm base 10 because later we would need to multiple pairwise to obtain an overall probability # however, instead of multiplying small floats we add their logarithms as # log(xy) = log(x) + log(y) # # key = { count: 2000, # probability: 0.00008580898447093862, # log: -4.605170185988091 # } for k,v in pairs.items(): # probability = val / total_pairs probability = float(v) / total_pairs pairs[k] = { 'count': v, 'probability': probability, 'log': round(math.log10(probability), 5) } # finally add total_pairs to dict. useful to calculate pair counts later pairs['total_pairs'] = total_pairs j = json.dumps(pairs) with open('character_pair_probabilities.json', 'w') as fo: fo.write(j) exit()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 13, 13, 13383, 13383, 7346, 4136, 2277, 29937, 13, 29937, 910, 2471, 2912, 267, 1373, 1302, 29899, 542, 2764, 663, 2629, 13, 29937, 263, 2506, 29874, 29915, 29879, 2246, 29871, 29896, 29899, 19958, 291, 1856, 21904, 29889, 13, 29937, 450, 1302, 29899, 542, 2764, 663, 18139, 29892, 6976, 322, 29871, 13, 29937, 1480, 29898, 22795, 3097, 29897, 322, 6087, 297, 263, 4390, 1574, 29889, 13, 13383, 13383, 7346, 4136, 2277, 29937, 13, 13, 5215, 4390, 13, 5215, 5844, 13, 1445, 353, 525, 744, 17367, 29899, 3332, 29899, 29896, 29885, 29889, 7638, 29915, 13, 13, 13, 1753, 289, 4481, 2232, 29898, 2080, 29918, 1761, 1125, 13, 12, 2457, 14319, 29898, 2080, 29918, 1761, 29892, 1881, 29918, 1761, 29961, 29896, 29901, 2314, 13, 13, 29886, 7121, 353, 6571, 13, 13, 1220, 29918, 2798, 353, 29871, 29900, 13, 13, 2541, 1722, 29898, 1445, 29892, 525, 29878, 1495, 408, 5713, 29901, 13, 12, 1454, 1196, 297, 5713, 29901, 13, 12, 12, 29937, 3013, 5702, 310, 6728, 13, 12, 12, 1220, 29918, 2798, 4619, 29871, 29896, 13, 13, 12, 12, 29937, 6597, 24034, 13, 12, 12, 2749, 353, 1196, 29889, 5451, 29317, 1495, 13, 12, 12, 661, 9292, 353, 3948, 29961, 29900, 29962, 13, 13, 12, 12, 29937, 6597, 2729, 290, 475, 13, 12, 12, 6707, 290, 475, 353, 3948, 29961, 29896, 1822, 5451, 12839, 29861, 29900, 29962, 13, 13, 12, 12, 29937, 6041, 2729, 290, 475, 338, 1754, 701, 310, 29871, 29906, 470, 901, 3838, 411, 7498, 561, 575, 1546, 29892, 591, 6219, 963, 373, 278, 7498, 9789, 304, 4017, 525, 9303, 29915, 13, 12, 12, 29937, 321, 29889, 29887, 29889, 590, 29899, 5156, 14803, 29899, 7247, 29889, 510, 29892, 921, 29899, 2746, 29889, 510, 2992, 29889, 13, 12, 12, 9303, 353, 2729, 290, 475, 29889, 5451, 877, 29899, 1495, 13, 13, 12, 12, 29937, 363, 1269, 5354, 525, 1742, 29915, 7621, 1135, 29871, 29896, 2931, 13, 12, 12, 29937, 4017, 2931, 11000, 13, 12, 12, 1454, 1734, 297, 3838, 29901, 13, 12, 12, 12, 361, 7431, 29898, 1742, 29897, 1405, 29871, 29896, 29901, 13, 12, 12, 12, 12, 29890, 353, 289, 4481, 2232, 29898, 1742, 29897, 13, 13, 12, 12, 12, 12, 29937, 17743, 457, 4802, 2572, 1373, 11000, 322, 7344, 2302, 29871, 13, 12, 12, 12, 12, 1454, 1373, 29918, 23583, 297, 289, 29901, 13, 12, 12, 12, 12, 12, 18784, 353, 1373, 29918, 23583, 29961, 29900, 29962, 718, 1373, 29918, 23583, 29961, 29896, 29962, 13, 12, 12, 12, 12, 12, 361, 5101, 297, 11000, 29901, 13, 12, 12, 12, 12, 12, 12, 29886, 7121, 29961, 18784, 29962, 4619, 29871, 29896, 13, 12, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 12, 29886, 7121, 29961, 18784, 29962, 353, 29871, 29896, 13, 13, 29937, 1286, 393, 591, 505, 11000, 29892, 10272, 2533, 310, 599, 5101, 18240, 13, 29937, 363, 1342, 29901, 13, 29937, 361, 11000, 1839, 1484, 2033, 353, 29871, 29946, 29892, 11000, 1839, 326, 2033, 353, 29871, 29945, 29892, 11000, 1839, 517, 2033, 353, 29871, 29929, 769, 3001, 29918, 29886, 7121, 353, 29871, 29896, 29947, 29889, 13, 13, 7827, 29918, 29886, 7121, 353, 2533, 29898, 29886, 7121, 29889, 5975, 3101, 13, 2158, 313, 7827, 29918, 29886, 7121, 29897, 13, 13, 29937, 8147, 6976, 363, 1269, 5101, 310, 8721, 2767, 278, 9657, 995, 411, 263, 9657, 310, 1494, 3402, 13, 29937, 591, 671, 1480, 23830, 29885, 2967, 29871, 29896, 29900, 1363, 2678, 591, 723, 817, 304, 2999, 5101, 3538, 304, 4017, 385, 12463, 6976, 13, 29937, 3138, 29892, 2012, 310, 6674, 5890, 2319, 5685, 1446, 591, 788, 1009, 1480, 23830, 1516, 408, 13, 29937, 1480, 29898, 3594, 29897, 353, 1480, 29898, 29916, 29897, 718, 1480, 29898, 29891, 29897, 13, 29937, 13, 29937, 1820, 353, 426, 2302, 29901, 29871, 29906, 29900, 29900, 29900, 29892, 29871, 13, 29937, 12, 12, 29871, 6976, 29901, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29947, 29945, 29947, 29900, 29947, 29929, 29947, 29946, 29946, 29955, 29900, 29929, 29941, 29947, 29953, 29906, 29892, 29871, 13, 29937, 12, 12, 29871, 1480, 29901, 448, 29946, 29889, 29953, 29900, 29945, 29896, 29955, 29900, 29896, 29947, 29945, 29929, 29947, 29947, 29900, 29929, 29896, 13, 29937, 12, 12, 29913, 13, 13, 1454, 413, 29892, 29894, 297, 11000, 29889, 7076, 7295, 13, 12, 29937, 6976, 353, 659, 847, 3001, 29918, 29886, 7121, 13, 12, 22795, 3097, 353, 5785, 29898, 29894, 29897, 847, 3001, 29918, 29886, 7121, 13, 12, 29886, 7121, 29961, 29895, 29962, 353, 426, 29871, 13, 12, 12, 12, 12, 29915, 2798, 2396, 325, 29892, 13, 12, 12, 12, 12, 29915, 22795, 3097, 2396, 6976, 29892, 13, 12, 12, 12, 12, 29915, 1188, 2396, 4513, 29898, 755, 29889, 1188, 29896, 29900, 29898, 22795, 3097, 511, 29871, 29945, 29897, 13, 12, 12, 12, 29913, 13, 13, 29937, 7146, 788, 3001, 29918, 29886, 7121, 304, 9657, 29889, 5407, 304, 8147, 5101, 18139, 2678, 13, 29886, 7121, 1839, 7827, 29918, 29886, 7121, 2033, 353, 3001, 29918, 29886, 7121, 13, 13, 29926, 353, 4390, 29889, 29881, 17204, 29898, 29886, 7121, 29897, 13, 13, 2541, 1722, 877, 18609, 29918, 18784, 29918, 22795, 11614, 29889, 3126, 742, 525, 29893, 1495, 408, 1701, 29901, 13, 12, 1181, 29889, 3539, 29898, 29926, 29897, 13, 13, 13322, 580, 13, 13, 2 ]
nasbench301/surrogate_models/bananas/bananas_src/darts/arch.py
Basvanstein/nasbench301
55
198419
import numpy as np import sys import os sys.path.append(os.path.expanduser('~/darts/cnn')) #from train_class import Train OPS = ['max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5' ] NUM_VERTICES = 4 INPUT_1 = 'c_k-2' INPUT_2 = 'c_k-1' class Arch: def __init__(self, arch): self.arch = arch def serialize(self): return self.arch def query(self, epochs=50): trainer = Train() val_losses, test_losses = trainer.main(self.arch, epochs=epochs) val_loss = 100 - np.mean(val_losses) test_loss = 100 - test_losses[-1] return val_loss, test_loss @classmethod def random_arch(cls): # output a uniformly random architecture spec # from the DARTS repository # https://github.com/quark0/darts normal = [] reduction = [] for i in range(NUM_VERTICES): ops = np.random.choice(range(len(OPS)), NUM_VERTICES) #input nodes for conv nodes_in_normal = np.random.choice(range(i+2), 2, replace=False) #input nodes for reduce nodes_in_reduce = np.random.choice(range(i+2), 2, replace=False) normal.extend([(nodes_in_normal[0], ops[0]), (nodes_in_normal[1], ops[1])]) reduction.extend([(nodes_in_reduce[0], ops[2]), (nodes_in_reduce[1], ops[3])]) return (normal, reduction) def mutate(self, edits): """ mutate a single arch """ # first convert tuple to array so that it is mutable mutation = [] for cell in self.arch: mutation.append([]) for pair in cell: mutation[-1].append([]) for num in pair: mutation[-1][-1].append(num) #make mutations for _ in range(edits): cell = np.random.choice(2) pair = np.random.choice(len(OPS)) num = np.random.choice(2) if num == 1: mutation[cell][pair][num] = np.random.choice(len(OPS)) else: inputs = pair // 2 + 2 choice = np.random.choice(inputs) if pair % 2 == 0 and mutation[cell][pair+1][num] != choice: mutation[cell][pair][num] = choice elif pair % 2 != 0 and mutation[cell][pair-1][num] != choice: mutation[cell][pair][num] = choice return mutation def get_paths(self): """ return all paths from input to output """ path_builder = [[[], [], [], []], [[], [], [], [], ]] paths = [[], []] for i, cell in enumerate(self.arch): for j in range(len(OPS)): if cell[j][0] == 0: path = [INPUT_1, OPS[cell[j][1]]] path_builder[i][j//2].append(path) paths[i].append(path) elif cell[j][0] == 1: path = [INPUT_2, OPS[cell[j][1]]] path_builder[i][j//2].append(path) paths[i].append(path) else: for path in path_builder[i][cell[j][0] - 2]: path = [*path, OPS[cell[j][1]]] path_builder[i][j//2].append(path) paths[i].append(path) # check if there are paths of length >=5 contains_long_path = [False, False] if max([len(path) for path in paths[0]]) >= 5: contains_long_path[0] = True if max([len(path) for path in paths[1]]) >= 5: contains_long_path[1] = True return paths, contains_long_path def get_path_indices(self, long_paths=True): """ compute the index of each path There are 4 * (8^0 + ... + 8^4) paths total If long_paths = False, we give a single boolean to all paths of size 4, so there are only 4 * (1 + 8^0 + ... + 8^3) paths """ paths, contains_long_path = self.get_paths() normal_paths, reduce_paths = paths num_ops = len(OPS) """ Compute the max number of paths per input per cell. Since there are two cells and two inputs per cell, total paths = 4 * max_paths """ if not long_paths: max_paths = 1 + sum([num_ops ** i for i in range(NUM_VERTICES)]) else: max_paths = sum([num_ops ** i for i in range(NUM_VERTICES + 1)]) path_indices = [] # set the base index based on the cell and the input for i, paths in enumerate((normal_paths, reduce_paths)): for path in paths: index = i * 2 * max_paths if path[0] == INPUT_2: index += max_paths # recursively compute the index of the path for j in range(NUM_VERTICES + 1): if j == len(path) - 1: path_indices.append(index) break elif j == (NUM_VERTICES - 1) and not long_paths: path_indices.append(2 * (i + 1) * max_paths - 1) break else: index += num_ops ** j * (OPS.index(path[j + 1]) + 1) return (tuple(path_indices), contains_long_path) def encode_paths(self, long_paths=True): # output one-hot encoding of paths path_indices, _ = self.get_path_indices(long_paths=long_paths) num_ops = len(OPS) if not long_paths: max_paths = 1 + sum([num_ops ** i for i in range(NUM_VERTICES)]) else: max_paths = sum([num_ops ** i for i in range(NUM_VERTICES + 1)]) path_encoding = np.zeros(4 * max_paths) for index in path_indices: path_encoding[index] = 1 return path_encoding def path_distance(self, other): # compute the distance between two architectures # by comparing their path encodings return np.sum(np.array(self.encode_paths() != np.array(other.encode_paths())))
[ 1, 1053, 12655, 408, 7442, 13, 5215, 10876, 13, 5215, 2897, 13, 13, 9675, 29889, 2084, 29889, 4397, 29898, 359, 29889, 2084, 29889, 18837, 1792, 877, 20038, 29881, 5708, 29914, 29883, 15755, 8785, 13, 29937, 3166, 7945, 29918, 1990, 1053, 28186, 13, 13, 4590, 29903, 353, 6024, 3317, 29918, 10109, 29918, 29941, 29916, 29941, 742, 13, 4706, 525, 485, 29887, 29918, 10109, 29918, 29941, 29916, 29941, 742, 13, 4706, 525, 11014, 29918, 6915, 742, 13, 4706, 525, 19570, 29918, 20580, 29918, 29941, 29916, 29941, 742, 13, 4706, 525, 19570, 29918, 20580, 29918, 29945, 29916, 29945, 742, 13, 4706, 525, 29881, 309, 29918, 20580, 29918, 29941, 29916, 29941, 742, 13, 4706, 525, 29881, 309, 29918, 20580, 29918, 29945, 29916, 29945, 29915, 13, 4706, 4514, 13, 13967, 29918, 5348, 29911, 2965, 2890, 353, 29871, 29946, 13, 1177, 12336, 29918, 29896, 353, 525, 29883, 29918, 29895, 29899, 29906, 29915, 13, 1177, 12336, 29918, 29906, 353, 525, 29883, 29918, 29895, 29899, 29896, 29915, 13, 13, 13, 1990, 2595, 29901, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3190, 1125, 13, 4706, 1583, 29889, 1279, 353, 3190, 13, 13, 1678, 822, 28755, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 1279, 13, 13, 1678, 822, 2346, 29898, 1311, 29892, 21502, 12168, 29922, 29945, 29900, 1125, 13, 4706, 1020, 4983, 353, 28186, 580, 13, 4706, 659, 29918, 6758, 267, 29892, 1243, 29918, 6758, 267, 353, 1020, 4983, 29889, 3396, 29898, 1311, 29889, 1279, 29892, 21502, 12168, 29922, 1022, 2878, 29879, 29897, 13, 4706, 659, 29918, 6758, 353, 29871, 29896, 29900, 29900, 448, 7442, 29889, 12676, 29898, 791, 29918, 6758, 267, 29897, 13, 4706, 1243, 29918, 6758, 353, 29871, 29896, 29900, 29900, 448, 1243, 29918, 6758, 267, 14352, 29896, 29962, 308, 13, 4706, 736, 659, 29918, 6758, 29892, 1243, 29918, 6758, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 4036, 29918, 1279, 29898, 25932, 1125, 13, 4706, 396, 1962, 263, 26018, 4036, 11258, 1580, 13, 4706, 396, 515, 278, 360, 8322, 29903, 9810, 13, 4706, 396, 2045, 597, 3292, 29889, 510, 29914, 339, 935, 29900, 29914, 29881, 5708, 13, 13, 4706, 4226, 353, 5159, 13, 4706, 20376, 353, 5159, 13, 4706, 363, 474, 297, 3464, 29898, 13967, 29918, 5348, 29911, 2965, 2890, 1125, 13, 9651, 288, 567, 353, 7442, 29889, 8172, 29889, 16957, 29898, 3881, 29898, 2435, 29898, 4590, 29903, 8243, 28019, 29918, 5348, 29911, 2965, 2890, 29897, 13, 13, 9651, 396, 2080, 7573, 363, 7602, 13, 9651, 7573, 29918, 262, 29918, 8945, 353, 7442, 29889, 8172, 29889, 16957, 29898, 3881, 29898, 29875, 29974, 29906, 511, 29871, 29906, 29892, 5191, 29922, 8824, 29897, 13, 9651, 396, 2080, 7573, 363, 10032, 13, 9651, 7573, 29918, 262, 29918, 17469, 353, 7442, 29889, 8172, 29889, 16957, 29898, 3881, 29898, 29875, 29974, 29906, 511, 29871, 29906, 29892, 5191, 29922, 8824, 29897, 13, 13, 9651, 4226, 29889, 21843, 4197, 29898, 18010, 29918, 262, 29918, 8945, 29961, 29900, 1402, 288, 567, 29961, 29900, 11724, 313, 18010, 29918, 262, 29918, 8945, 29961, 29896, 1402, 288, 567, 29961, 29896, 2314, 2314, 13, 9651, 20376, 29889, 21843, 4197, 29898, 18010, 29918, 262, 29918, 17469, 29961, 29900, 1402, 288, 567, 29961, 29906, 11724, 313, 18010, 29918, 262, 29918, 17469, 29961, 29896, 1402, 288, 567, 29961, 29941, 2314, 2314, 13, 13, 4706, 736, 313, 8945, 29892, 20376, 29897, 13, 13, 1678, 822, 5478, 403, 29898, 1311, 29892, 1226, 1169, 1125, 13, 4706, 9995, 5478, 403, 263, 2323, 3190, 9995, 13, 4706, 396, 937, 3588, 18761, 304, 1409, 577, 393, 372, 338, 26691, 13, 4706, 5478, 362, 353, 5159, 13, 4706, 363, 3038, 297, 1583, 29889, 1279, 29901, 13, 9651, 5478, 362, 29889, 4397, 4197, 2314, 13, 9651, 363, 5101, 297, 3038, 29901, 13, 18884, 5478, 362, 14352, 29896, 1822, 4397, 4197, 2314, 13, 18884, 363, 954, 297, 5101, 29901, 13, 462, 1678, 5478, 362, 14352, 29896, 3816, 29899, 29896, 1822, 4397, 29898, 1949, 29897, 13, 13, 4706, 396, 5675, 5478, 800, 13, 4706, 363, 903, 297, 3464, 29898, 287, 1169, 1125, 13, 9651, 3038, 353, 7442, 29889, 8172, 29889, 16957, 29898, 29906, 29897, 13, 9651, 5101, 353, 7442, 29889, 8172, 29889, 16957, 29898, 2435, 29898, 4590, 29903, 876, 13, 9651, 954, 353, 7442, 29889, 8172, 29889, 16957, 29898, 29906, 29897, 13, 9651, 565, 954, 1275, 29871, 29896, 29901, 13, 18884, 5478, 362, 29961, 3729, 3816, 18784, 3816, 1949, 29962, 353, 7442, 29889, 8172, 29889, 16957, 29898, 2435, 29898, 4590, 29903, 876, 13, 9651, 1683, 29901, 13, 18884, 10970, 353, 5101, 849, 29871, 29906, 718, 29871, 29906, 13, 18884, 7348, 353, 7442, 29889, 8172, 29889, 16957, 29898, 2080, 29879, 29897, 13, 18884, 565, 5101, 1273, 29871, 29906, 1275, 29871, 29900, 322, 5478, 362, 29961, 3729, 3816, 18784, 29974, 29896, 3816, 1949, 29962, 2804, 7348, 29901, 13, 462, 1678, 5478, 362, 29961, 3729, 3816, 18784, 3816, 1949, 29962, 353, 7348, 13, 18884, 25342, 5101, 1273, 29871, 29906, 2804, 29871, 29900, 322, 5478, 362, 29961, 3729, 3816, 18784, 29899, 29896, 3816, 1949, 29962, 2804, 7348, 29901, 13, 462, 1678, 5478, 362, 29961, 3729, 3816, 18784, 3816, 1949, 29962, 353, 7348, 13, 462, 539, 13, 4706, 736, 5478, 362, 13, 13, 1678, 822, 679, 29918, 24772, 29898, 1311, 1125, 13, 4706, 9995, 736, 599, 10898, 515, 1881, 304, 1962, 9995, 13, 13, 4706, 2224, 29918, 16409, 353, 5519, 29961, 1402, 19997, 19997, 5159, 1402, 5519, 1402, 19997, 19997, 19997, 29588, 13, 4706, 10898, 353, 5519, 1402, 5159, 29962, 13, 13, 4706, 363, 474, 29892, 3038, 297, 26985, 29898, 1311, 29889, 1279, 1125, 13, 9651, 363, 432, 297, 3464, 29898, 2435, 29898, 4590, 29903, 22164, 13, 795, 565, 3038, 29961, 29926, 3816, 29900, 29962, 1275, 29871, 29900, 29901, 13, 462, 29871, 2224, 353, 518, 1177, 12336, 29918, 29896, 29892, 6418, 29903, 29961, 3729, 29961, 29926, 3816, 29896, 5262, 29962, 13, 462, 29871, 2224, 29918, 16409, 29961, 29875, 3816, 29926, 458, 29906, 1822, 4397, 29898, 2084, 29897, 13, 462, 29871, 10898, 29961, 29875, 1822, 4397, 29898, 2084, 29897, 13, 795, 25342, 3038, 29961, 29926, 3816, 29900, 29962, 1275, 29871, 29896, 29901, 13, 462, 29871, 2224, 353, 518, 1177, 12336, 29918, 29906, 29892, 6418, 29903, 29961, 3729, 29961, 29926, 3816, 29896, 5262, 29962, 13, 462, 29871, 2224, 29918, 16409, 29961, 29875, 3816, 29926, 458, 29906, 1822, 4397, 29898, 2084, 29897, 13, 462, 29871, 10898, 29961, 29875, 1822, 4397, 29898, 2084, 29897, 13, 795, 1683, 29901, 13, 462, 29871, 363, 2224, 297, 2224, 29918, 16409, 29961, 29875, 3816, 3729, 29961, 29926, 3816, 29900, 29962, 448, 29871, 29906, 5387, 13, 462, 418, 2224, 353, 518, 29930, 2084, 29892, 6418, 29903, 29961, 3729, 29961, 29926, 3816, 29896, 5262, 29962, 13, 462, 418, 2224, 29918, 16409, 29961, 29875, 3816, 29926, 458, 29906, 1822, 4397, 29898, 2084, 29897, 13, 462, 418, 10898, 29961, 29875, 1822, 4397, 29898, 2084, 29897, 13, 13, 4706, 396, 1423, 565, 727, 526, 10898, 310, 3309, 6736, 29945, 13, 4706, 3743, 29918, 5426, 29918, 2084, 353, 518, 8824, 29892, 7700, 29962, 13, 4706, 565, 4236, 4197, 2435, 29898, 2084, 29897, 363, 2224, 297, 10898, 29961, 29900, 24960, 6736, 29871, 29945, 29901, 13, 9651, 3743, 29918, 5426, 29918, 2084, 29961, 29900, 29962, 353, 5852, 13, 4706, 565, 4236, 4197, 2435, 29898, 2084, 29897, 363, 2224, 297, 10898, 29961, 29896, 24960, 6736, 29871, 29945, 29901, 13, 9651, 3743, 29918, 5426, 29918, 2084, 29961, 29896, 29962, 353, 5852, 13, 13, 4706, 736, 10898, 29892, 3743, 29918, 5426, 29918, 2084, 13, 13, 1678, 822, 679, 29918, 2084, 29918, 513, 1575, 29898, 1311, 29892, 1472, 29918, 24772, 29922, 5574, 1125, 13, 4706, 9995, 13, 4706, 10272, 278, 2380, 310, 1269, 2224, 13, 4706, 1670, 526, 29871, 29946, 334, 313, 29947, 29985, 29900, 718, 2023, 718, 29871, 29947, 29985, 29946, 29897, 10898, 3001, 13, 4706, 960, 1472, 29918, 24772, 353, 7700, 29892, 591, 2367, 263, 2323, 7223, 304, 599, 10898, 310, 13, 4706, 2159, 29871, 29946, 29892, 577, 727, 526, 871, 29871, 29946, 334, 313, 29896, 718, 29871, 29947, 29985, 29900, 718, 2023, 718, 29871, 29947, 29985, 29941, 29897, 10898, 13, 4706, 9995, 13, 4706, 10898, 29892, 3743, 29918, 5426, 29918, 2084, 353, 1583, 29889, 657, 29918, 24772, 580, 13, 4706, 4226, 29918, 24772, 29892, 10032, 29918, 24772, 353, 10898, 13, 4706, 954, 29918, 3554, 353, 7431, 29898, 4590, 29903, 29897, 13, 4706, 9995, 13, 4706, 11796, 29872, 278, 4236, 1353, 310, 10898, 639, 1881, 639, 3038, 29889, 13, 4706, 4001, 727, 526, 1023, 9101, 322, 1023, 10970, 639, 3038, 29892, 29871, 13, 4706, 3001, 10898, 353, 29871, 29946, 334, 4236, 29918, 24772, 13, 4706, 9995, 13, 4706, 565, 451, 1472, 29918, 24772, 29901, 13, 9651, 4236, 29918, 24772, 353, 29871, 29896, 718, 2533, 4197, 1949, 29918, 3554, 3579, 474, 363, 474, 297, 3464, 29898, 13967, 29918, 5348, 29911, 2965, 2890, 29897, 2314, 13, 4706, 1683, 29901, 13, 9651, 4236, 29918, 24772, 353, 2533, 4197, 1949, 29918, 3554, 3579, 474, 363, 474, 297, 3464, 29898, 13967, 29918, 5348, 29911, 2965, 2890, 718, 29871, 29896, 29897, 2314, 268, 13, 4706, 2224, 29918, 513, 1575, 353, 5159, 13, 13, 4706, 396, 731, 278, 2967, 2380, 2729, 373, 278, 3038, 322, 278, 1881, 13, 4706, 363, 474, 29892, 10898, 297, 26985, 3552, 8945, 29918, 24772, 29892, 10032, 29918, 24772, 22164, 13, 9651, 363, 2224, 297, 10898, 29901, 13, 18884, 2380, 353, 474, 334, 29871, 29906, 334, 4236, 29918, 24772, 13, 18884, 565, 2224, 29961, 29900, 29962, 1275, 2672, 12336, 29918, 29906, 29901, 13, 462, 1678, 2380, 4619, 4236, 29918, 24772, 13, 13, 18884, 396, 8304, 3598, 10272, 278, 2380, 310, 278, 2224, 13, 18884, 363, 432, 297, 3464, 29898, 13967, 29918, 5348, 29911, 2965, 2890, 718, 29871, 29896, 1125, 13, 462, 1678, 565, 432, 1275, 7431, 29898, 2084, 29897, 448, 29871, 29896, 29901, 13, 462, 4706, 2224, 29918, 513, 1575, 29889, 4397, 29898, 2248, 29897, 13, 462, 4706, 2867, 13, 462, 1678, 25342, 432, 1275, 313, 13967, 29918, 5348, 29911, 2965, 2890, 448, 29871, 29896, 29897, 322, 451, 1472, 29918, 24772, 29901, 13, 462, 4706, 2224, 29918, 513, 1575, 29889, 4397, 29898, 29906, 334, 313, 29875, 718, 29871, 29896, 29897, 334, 4236, 29918, 24772, 448, 29871, 29896, 29897, 13, 462, 4706, 2867, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 2380, 4619, 954, 29918, 3554, 3579, 432, 334, 313, 4590, 29903, 29889, 2248, 29898, 2084, 29961, 29926, 718, 29871, 29896, 2314, 718, 29871, 29896, 29897, 13, 13, 4706, 736, 313, 23583, 29898, 2084, 29918, 513, 1575, 511, 3743, 29918, 5426, 29918, 2084, 29897, 13, 13, 1678, 822, 19750, 29918, 24772, 29898, 1311, 29892, 1472, 29918, 24772, 29922, 5574, 1125, 13, 4706, 396, 1962, 697, 29899, 8711, 8025, 310, 10898, 13, 4706, 2224, 29918, 513, 1575, 29892, 903, 353, 1583, 29889, 657, 29918, 2084, 29918, 513, 1575, 29898, 5426, 29918, 24772, 29922, 5426, 29918, 24772, 29897, 13, 4706, 954, 29918, 3554, 353, 7431, 29898, 4590, 29903, 29897, 13, 13, 4706, 565, 451, 1472, 29918, 24772, 29901, 13, 9651, 4236, 29918, 24772, 353, 29871, 29896, 718, 2533, 4197, 1949, 29918, 3554, 3579, 474, 363, 474, 297, 3464, 29898, 13967, 29918, 5348, 29911, 2965, 2890, 29897, 2314, 13, 4706, 1683, 29901, 13, 9651, 4236, 29918, 24772, 353, 2533, 4197, 1949, 29918, 3554, 3579, 474, 363, 474, 297, 3464, 29898, 13967, 29918, 5348, 29911, 2965, 2890, 718, 29871, 29896, 29897, 2314, 268, 13, 13, 4706, 2224, 29918, 22331, 353, 7442, 29889, 3298, 359, 29898, 29946, 334, 4236, 29918, 24772, 29897, 13, 4706, 363, 2380, 297, 2224, 29918, 513, 1575, 29901, 13, 9651, 2224, 29918, 22331, 29961, 2248, 29962, 353, 29871, 29896, 13, 4706, 736, 2224, 29918, 22331, 13, 13, 1678, 822, 2224, 29918, 19244, 29898, 1311, 29892, 916, 1125, 13, 4706, 396, 10272, 278, 5418, 1546, 1023, 6956, 1973, 13, 4706, 396, 491, 17420, 1009, 2224, 2094, 397, 886, 13, 4706, 736, 7442, 29889, 2083, 29898, 9302, 29889, 2378, 29898, 1311, 29889, 12508, 29918, 24772, 580, 2804, 7442, 29889, 2378, 29898, 1228, 29889, 12508, 29918, 24772, 580, 4961, 13, 13, 13, 13, 13, 13, 2 ]
locale/pot/api/core/_autosummary/pyvista-Light-exponent-1.py
tkoyama010/pyvista-doc-translations
4
143373
<reponame>tkoyama010/pyvista-doc-translations # Plot three planes lit by three spotlights with exponents of 1, # 2 and 5. The one with the lowest exponent has the broadest # beam. # import pyvista as pv plotter = pv.Plotter(lighting='none') for offset, exponent in zip([0, 1.5, 3], [1, 2, 5]): _ = plotter.add_mesh(pv.Plane((offset, 0, 0)), color='white') light = pv.Light(position=(offset, 0, 0.1), focal_point=(offset, 0, 0)) light.exponent = exponent light.positional = True light.cone_angle = 80 plotter.add_light(light) plotter.view_xy() plotter.show()
[ 1, 529, 276, 1112, 420, 29958, 29873, 2901, 29891, 3304, 29900, 29896, 29900, 29914, 2272, 29894, 2079, 29899, 1514, 29899, 3286, 29880, 800, 13, 29937, 18399, 2211, 3814, 267, 11872, 491, 2211, 9758, 4366, 29879, 411, 429, 9340, 310, 29871, 29896, 29892, 13, 29937, 29871, 29906, 322, 29871, 29945, 29889, 29871, 450, 697, 411, 278, 19604, 28869, 756, 278, 7300, 342, 13, 29937, 22913, 29889, 13, 29937, 13, 5215, 11451, 29894, 2079, 408, 282, 29894, 13, 5317, 357, 353, 282, 29894, 29889, 20867, 357, 29898, 4366, 292, 2433, 9290, 1495, 13, 1454, 9210, 29892, 28869, 297, 14319, 4197, 29900, 29892, 29871, 29896, 29889, 29945, 29892, 29871, 29941, 1402, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29945, 29962, 1125, 13, 1678, 903, 353, 6492, 357, 29889, 1202, 29918, 4467, 29882, 29898, 29886, 29894, 29889, 3247, 1662, 3552, 10289, 29892, 29871, 29900, 29892, 29871, 29900, 8243, 2927, 2433, 10921, 1495, 13, 1678, 3578, 353, 282, 29894, 29889, 20769, 29898, 3283, 7607, 10289, 29892, 29871, 29900, 29892, 29871, 29900, 29889, 29896, 511, 12789, 284, 29918, 3149, 7607, 10289, 29892, 29871, 29900, 29892, 29871, 29900, 876, 13, 1678, 3578, 29889, 735, 3296, 353, 28869, 13, 1678, 3578, 29889, 1066, 3245, 353, 5852, 13, 1678, 3578, 29889, 535, 29872, 29918, 2521, 353, 29871, 29947, 29900, 13, 1678, 6492, 357, 29889, 1202, 29918, 4366, 29898, 4366, 29897, 13, 5317, 357, 29889, 1493, 29918, 3594, 580, 13, 5317, 357, 29889, 4294, 580, 13, 2 ]
code/cleantools.py
MarkCHarris/ames_housing_regression
1
118199
<reponame>MarkCHarris/ames_housing_regression ############# DEPENDENCIES ############## import numpy as np import pandas as pd ############# TOOLS FOR EXAMINING DATA FRAMES ############## def info_frame(df): """ Given a DataFrame, gets the name, type, and number of NaN values for each column and stores this information in a new DataFrame. """ info = pd.DataFrame([[col, df[col].dtype, df[col].isna().sum()] for col in df], columns=['name', 'type', 'num_nans']) return info def count_nan(df): """ Given a DataFrame, gets the name of each column and the number of NaN values in it. Returns this information in a new DataFrame, sorted by number of NaN values. Leaves out any columns that have no NaN values. If no NaN values found, returns an empty DataFrame. """ null_counts = df.isna().sum().sort_values(ascending=False) i = 0 if null_counts[i] == 0: return pd.DataFrame(None) while i < len(null_counts): if null_counts[i] != 0: i += 1 else: return pd.DataFrame(zip(null_counts.index[:i], null_counts[:i])) return pd.DataFrame(zip(null_counts.index[:i], null_counts[:i])) def find_non_numeric(in_col): """ Finds each unique entry in an iterable that cannot be typecast as float and returns a list of those entries. """ non_nums = [] for item in in_col: try: float(item) except: if item not in non_nums: non_nums.append(item) return non_nums ############# TOOLS FOR MODIFYING DATA FRAMES ############## def df_cols_to_snake_case(df): """ Given a DataFrame, converts column titles from separate words to snake_case. Will not work on CamelCase. """ return df.rename(mapper={col : col.lower().replace(' ', '_') for col in df.columns}, axis=1) def convert_to_float(in_item, non_numeric_fill=np.nan): """ Converts any input that can be typecast as numeric input to a float. non_numeric_fill specifies what to return if the input cannot be cast as float. Default np.nan. """ try: return float(in_item) except: return non_numeric_fill
[ 1, 529, 276, 1112, 420, 29958, 9802, 3210, 2749, 275, 29914, 1280, 29918, 29882, 681, 292, 29918, 276, 11476, 13, 7346, 4136, 29937, 5012, 29925, 11794, 1430, 8426, 2890, 835, 7346, 2277, 29937, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 13, 7346, 4136, 29937, 7495, 5607, 29903, 15842, 8528, 5194, 1177, 4214, 360, 8254, 383, 4717, 2303, 29903, 835, 7346, 2277, 29937, 13, 13, 1753, 5235, 29918, 2557, 29898, 2176, 1125, 13, 268, 13, 1678, 9995, 13, 1678, 11221, 263, 3630, 4308, 29892, 4947, 278, 1024, 29892, 1134, 29892, 322, 1353, 310, 18780, 1819, 363, 1269, 1897, 322, 14422, 445, 2472, 297, 263, 716, 3630, 4308, 29889, 13, 1678, 9995, 13, 13, 1678, 5235, 353, 10518, 29889, 17271, 4197, 29961, 1054, 29892, 4489, 29961, 1054, 1822, 29881, 1853, 29892, 4489, 29961, 1054, 1822, 275, 1056, 2141, 2083, 580, 29962, 363, 784, 297, 4489, 1402, 13, 462, 539, 4341, 29922, 1839, 978, 742, 525, 1853, 742, 525, 1949, 29918, 29876, 550, 11287, 13, 13, 1678, 736, 5235, 13, 13, 1753, 2302, 29918, 13707, 29898, 2176, 1125, 13, 268, 13, 1678, 9995, 13, 1678, 11221, 263, 3630, 4308, 29892, 4947, 278, 1024, 310, 1269, 1897, 322, 278, 1353, 310, 18780, 1819, 297, 372, 29889, 13, 1678, 16969, 445, 2472, 297, 263, 716, 3630, 4308, 29892, 12705, 491, 1353, 310, 18780, 1819, 29889, 13, 1678, 951, 5989, 714, 738, 4341, 393, 505, 694, 18780, 1819, 29889, 13, 1678, 960, 694, 18780, 1819, 1476, 29892, 3639, 385, 4069, 3630, 4308, 29889, 13, 1678, 9995, 13, 268, 13, 1678, 1870, 29918, 2798, 29879, 353, 4489, 29889, 275, 1056, 2141, 2083, 2141, 6605, 29918, 5975, 29898, 6151, 2548, 29922, 8824, 29897, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 565, 1870, 29918, 2798, 29879, 29961, 29875, 29962, 1275, 29871, 29900, 29901, 13, 4706, 736, 10518, 29889, 17271, 29898, 8516, 29897, 13, 1678, 1550, 474, 529, 7431, 29898, 4304, 29918, 2798, 29879, 1125, 13, 4706, 565, 1870, 29918, 2798, 29879, 29961, 29875, 29962, 2804, 29871, 29900, 29901, 13, 9651, 474, 4619, 29871, 29896, 13, 4706, 1683, 29901, 13, 9651, 736, 10518, 29889, 17271, 29898, 7554, 29898, 4304, 29918, 2798, 29879, 29889, 2248, 7503, 29875, 1402, 1870, 29918, 2798, 29879, 7503, 29875, 12622, 13, 1678, 736, 10518, 29889, 17271, 29898, 7554, 29898, 4304, 29918, 2798, 29879, 29889, 2248, 7503, 29875, 1402, 1870, 29918, 2798, 29879, 7503, 29875, 12622, 13, 13, 1753, 1284, 29918, 5464, 29918, 21574, 29898, 262, 29918, 1054, 1125, 13, 268, 13, 1678, 9995, 13, 1678, 10987, 29879, 1269, 5412, 6251, 297, 385, 4256, 519, 393, 2609, 367, 1134, 4384, 408, 5785, 322, 3639, 263, 1051, 310, 1906, 9976, 29889, 13, 1678, 9995, 13, 268, 13, 1678, 1661, 29918, 1949, 29879, 353, 5159, 13, 1678, 363, 2944, 297, 297, 29918, 1054, 29901, 13, 4706, 1018, 29901, 13, 9651, 5785, 29898, 667, 29897, 13, 4706, 5174, 29901, 13, 9651, 565, 2944, 451, 297, 1661, 29918, 1949, 29879, 29901, 13, 18884, 1661, 29918, 1949, 29879, 29889, 4397, 29898, 667, 29897, 13, 1678, 736, 1661, 29918, 1949, 29879, 13, 13, 7346, 4136, 29937, 7495, 5607, 29903, 15842, 16999, 4571, 29943, 29979, 4214, 360, 8254, 383, 4717, 2303, 29903, 835, 7346, 2277, 29937, 13, 13, 1753, 4489, 29918, 22724, 29918, 517, 29918, 29879, 21040, 29918, 4878, 29898, 2176, 1125, 13, 268, 13, 1678, 9995, 13, 1678, 11221, 263, 3630, 4308, 29892, 29436, 1897, 17735, 515, 5004, 3838, 304, 269, 21040, 29918, 4878, 29889, 13, 1678, 2811, 451, 664, 373, 5500, 295, 8259, 29889, 13, 1678, 9995, 13, 268, 13, 1678, 736, 4489, 29889, 1267, 420, 29898, 655, 2496, 3790, 1054, 584, 784, 29889, 13609, 2141, 6506, 877, 13420, 22868, 1495, 363, 784, 297, 4489, 29889, 13099, 1118, 9685, 29922, 29896, 29897, 13, 13, 1753, 3588, 29918, 517, 29918, 7411, 29898, 262, 29918, 667, 29892, 1661, 29918, 21574, 29918, 5589, 29922, 9302, 29889, 13707, 1125, 13, 268, 13, 1678, 9995, 13, 1678, 1281, 369, 1372, 738, 1881, 393, 508, 367, 1134, 4384, 408, 16985, 1881, 304, 263, 5785, 29889, 13, 1678, 1661, 29918, 21574, 29918, 5589, 1580, 11057, 825, 304, 736, 565, 278, 1881, 2609, 367, 4320, 408, 5785, 29889, 29871, 13109, 7442, 29889, 13707, 29889, 13, 1678, 9995, 13, 268, 13, 1678, 1018, 29901, 13, 4706, 736, 5785, 29898, 262, 29918, 667, 29897, 13, 1678, 5174, 29901, 13, 4706, 736, 1661, 29918, 21574, 29918, 5589, 2 ]
utils/models/densevoxel/parts.py
bhklab/ptl-oar-segmentation
3
77215
import torch import torch.nn as nn # from torchsummary import summary # from lib.medzoo.BaseModelClass import BaseModel """ Implementation od DenseVoxelNet based on https://arxiv.org/abs/1708.00573 Hyperparameters used: batch size = 3 weight decay = 0.0005 momentum = 0.9 lr = 0.05 """ def init_weights(m): """ The weights were randomly initialized with a Gaussian distribution (µ = 0, σ = 0.01) """ torch.seed(777) # for reproducibility classname = m.__class__.__name__ if classname.find('Conv') != -1 or classname.find('BatchNorm') != -1: m.weight.data.normal_(0.00, 0.01) class DenseLayer(nn.Sequential): def __init__(self, num_input_features, growth_rate, bn_size, drop_rate=0.2): super(DenseLayer, self).__init__() self.add_module('norm1', nn.BatchNorm3d(num_input_features)), self.add_module('relu1', nn.LeakyReLU(0.1, inplace=True)), self.add_module('conv1', nn.Conv3d(num_input_features, bn_size * growth_rate, kernel_size=3, stride=1, padding=1, bias=False)), self.drop_rate = drop_rate if self.drop_rate > 0: self.drop_layer = nn.Dropout(p=self.drop_rate) def forward(self, x): new_features = super(DenseLayer, self).forward(x) if self.drop_rate > 0: new_features = self.drop_layer(new_features) return torch.cat([x, new_features], 1) class DenseBlock(nn.Sequential): """ to keep the spatial dims o=i, this formula is applied o = [i + 2*p - k - (k-1)*(d-1)]/s + 1 """ def __init__(self, num_layers, num_input_features, bn_size, growth_rate, drop_rate=0.2): super(DenseBlock, self).__init__() for i in range(num_layers): layer = DenseLayer(num_input_features + i * growth_rate, growth_rate, bn_size, drop_rate) self.add_module('denselayer%d' % (i + 1), layer) class Transition(nn.Module): def __init__(self, num_input_features, num_output_features): super(Transition, self).__init__() norm = nn.BatchNorm3d(num_input_features) relu = nn.LeakyReLU(0.1, inplace=True) conv3d = nn.Conv3d(num_input_features, num_output_features, kernel_size=1, padding=0, stride=1) self.conv = nn.Sequential(norm, relu, conv3d) self.max_pool = nn.MaxPool3d(kernel_size=2, stride=2) def forward(self, x): k = self.conv(x) y = self.max_pool(k) return y, k class Upsampling(nn.Sequential): """ For transpose conv o = output, p = padding, k = kernel_size, s = stride, d = dilation o = (i -1)*s - 2*p + k + output_padding = (i-1)*2 +2 = 2*i """ def __init__(self, input_features, out_features): super(Upsampling, self).__init__() self.tr_conv1_features = 128 # defined in the paper self.tr_conv2_features = out_features self.add_module('norm', nn.BatchNorm3d(input_features)) self.add_module('relu', nn.LeakyReLU(0.1, inplace=True)) self.add_module('conv', nn.Conv3d(input_features, input_features, kernel_size=1, stride=1, padding=0, bias=False)) # Transposed convolutions must be un-padded? self.add_module('transp_conv_1', nn.ConvTranspose3d(input_features, self.tr_conv1_features, kernel_size=2, padding=0, output_padding=0, stride=2)) self.add_module('transp_conv_2', nn.ConvTranspose3d(self.tr_conv1_features, self.tr_conv2_features, kernel_size=2, padding=0, output_padding=0, stride=2))
[ 1, 1053, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 29937, 515, 4842, 305, 7727, 1053, 15837, 13, 29937, 515, 4303, 29889, 2168, 2502, 29877, 29889, 5160, 3195, 2385, 1053, 7399, 3195, 13, 13, 15945, 29908, 13, 1888, 14607, 2413, 360, 1947, 29963, 2251, 295, 6779, 2729, 373, 2045, 597, 279, 26560, 29889, 990, 29914, 6897, 29914, 29896, 29955, 29900, 29947, 29889, 29900, 29900, 29945, 29955, 29941, 13, 26322, 546, 16744, 1304, 29901, 13, 16175, 2159, 353, 29871, 29941, 13, 7915, 20228, 353, 29871, 29900, 29889, 29900, 29900, 29900, 29945, 13, 29885, 2932, 398, 353, 29871, 29900, 29889, 29929, 13, 29212, 353, 29871, 29900, 29889, 29900, 29945, 13, 15945, 29908, 13, 13, 13, 1753, 2069, 29918, 705, 5861, 29898, 29885, 1125, 13, 1678, 9995, 13, 1678, 450, 18177, 892, 20459, 16601, 411, 263, 22477, 4978, 313, 30263, 353, 29871, 29900, 29892, 29871, 30164, 353, 29871, 29900, 29889, 29900, 29896, 29897, 13, 1678, 9995, 13, 1678, 4842, 305, 29889, 26776, 29898, 29955, 29955, 29955, 29897, 29871, 396, 363, 9483, 455, 29890, 1793, 13, 1678, 770, 978, 353, 286, 17255, 1990, 1649, 17255, 978, 1649, 13, 1678, 565, 770, 978, 29889, 2886, 877, 1168, 29894, 1495, 2804, 448, 29896, 470, 770, 978, 29889, 2886, 877, 23145, 29940, 555, 1495, 2804, 448, 29896, 29901, 13, 4706, 286, 29889, 7915, 29889, 1272, 29889, 8945, 23538, 29900, 29889, 29900, 29900, 29892, 29871, 29900, 29889, 29900, 29896, 29897, 13, 13, 13, 1990, 360, 1947, 14420, 29898, 15755, 29889, 16941, 2556, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 954, 29918, 2080, 29918, 22100, 29892, 14321, 29918, 10492, 29892, 289, 29876, 29918, 2311, 29892, 5768, 29918, 10492, 29922, 29900, 29889, 29906, 1125, 13, 4706, 2428, 29898, 29928, 1947, 14420, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 12324, 29896, 742, 302, 29876, 29889, 23145, 29940, 555, 29941, 29881, 29898, 1949, 29918, 2080, 29918, 22100, 8243, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 2674, 29884, 29896, 742, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 29900, 29889, 29896, 29892, 297, 6689, 29922, 5574, 8243, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 20580, 29896, 742, 302, 29876, 29889, 1168, 29894, 29941, 29881, 29898, 1949, 29918, 2080, 29918, 22100, 29892, 289, 29876, 29918, 2311, 334, 13, 462, 462, 965, 14321, 29918, 10492, 29892, 8466, 29918, 2311, 29922, 29941, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29896, 29892, 24003, 29922, 8824, 8243, 13, 13, 4706, 1583, 29889, 8865, 29918, 10492, 353, 5768, 29918, 10492, 13, 4706, 565, 1583, 29889, 8865, 29918, 10492, 1405, 29871, 29900, 29901, 13, 9651, 1583, 29889, 8865, 29918, 13148, 353, 302, 29876, 29889, 15063, 449, 29898, 29886, 29922, 1311, 29889, 8865, 29918, 10492, 29897, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 13, 4706, 716, 29918, 22100, 353, 2428, 29898, 29928, 1947, 14420, 29892, 1583, 467, 11333, 29898, 29916, 29897, 13, 4706, 565, 1583, 29889, 8865, 29918, 10492, 1405, 29871, 29900, 29901, 13, 9651, 716, 29918, 22100, 353, 1583, 29889, 8865, 29918, 13148, 29898, 1482, 29918, 22100, 29897, 13, 4706, 736, 4842, 305, 29889, 4117, 4197, 29916, 29892, 716, 29918, 22100, 1402, 29871, 29896, 29897, 13, 13, 13, 1990, 360, 1947, 7445, 29898, 15755, 29889, 16941, 2556, 1125, 13, 1678, 9995, 13, 1678, 304, 3013, 278, 18652, 3964, 29879, 288, 29922, 29875, 29892, 445, 7063, 338, 7436, 13, 1678, 288, 353, 518, 29875, 718, 29871, 29906, 29930, 29886, 448, 413, 448, 313, 29895, 29899, 29896, 11877, 29898, 29881, 29899, 29896, 4638, 29914, 29879, 718, 29871, 29896, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 954, 29918, 29277, 29892, 954, 29918, 2080, 29918, 22100, 29892, 289, 29876, 29918, 2311, 29892, 14321, 29918, 10492, 29892, 5768, 29918, 10492, 29922, 29900, 29889, 29906, 1125, 13, 4706, 2428, 29898, 29928, 1947, 7445, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 363, 474, 297, 3464, 29898, 1949, 29918, 29277, 1125, 13, 9651, 7546, 353, 360, 1947, 14420, 29898, 1949, 29918, 2080, 29918, 22100, 718, 474, 334, 14321, 29918, 10492, 29892, 14321, 29918, 10492, 29892, 289, 29876, 29918, 2311, 29892, 5768, 29918, 10492, 29897, 13, 9651, 1583, 29889, 1202, 29918, 5453, 877, 21518, 295, 2747, 29995, 29881, 29915, 1273, 313, 29875, 718, 29871, 29896, 511, 7546, 29897, 13, 13, 13, 1990, 4103, 654, 29898, 15755, 29889, 7355, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 954, 29918, 2080, 29918, 22100, 29892, 954, 29918, 4905, 29918, 22100, 1125, 13, 4706, 2428, 29898, 4300, 654, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 6056, 353, 302, 29876, 29889, 23145, 29940, 555, 29941, 29881, 29898, 1949, 29918, 2080, 29918, 22100, 29897, 13, 4706, 1104, 29884, 353, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 29900, 29889, 29896, 29892, 297, 6689, 29922, 5574, 29897, 13, 4706, 7602, 29941, 29881, 353, 302, 29876, 29889, 1168, 29894, 29941, 29881, 29898, 1949, 29918, 2080, 29918, 22100, 29892, 954, 29918, 4905, 29918, 22100, 29892, 13, 462, 965, 8466, 29918, 2311, 29922, 29896, 29892, 7164, 29922, 29900, 29892, 380, 2426, 29922, 29896, 29897, 13, 4706, 1583, 29889, 20580, 353, 302, 29876, 29889, 16941, 2556, 29898, 12324, 29892, 1104, 29884, 29892, 7602, 29941, 29881, 29897, 13, 4706, 1583, 29889, 3317, 29918, 10109, 353, 302, 29876, 29889, 7976, 11426, 29941, 29881, 29898, 17460, 29918, 2311, 29922, 29906, 29892, 380, 2426, 29922, 29906, 29897, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 13, 4706, 413, 353, 1583, 29889, 20580, 29898, 29916, 29897, 13, 4706, 343, 353, 1583, 29889, 3317, 29918, 10109, 29898, 29895, 29897, 13, 4706, 736, 343, 29892, 413, 13, 13, 13, 1990, 501, 567, 314, 10335, 29898, 15755, 29889, 16941, 2556, 1125, 13, 1678, 9995, 13, 1678, 1152, 1301, 4220, 7602, 13, 1678, 288, 353, 1962, 29892, 282, 353, 7164, 29892, 413, 353, 8466, 29918, 2311, 29892, 269, 353, 380, 2426, 29892, 270, 353, 270, 8634, 13, 1678, 288, 353, 313, 29875, 448, 29896, 11877, 29879, 448, 29871, 29906, 29930, 29886, 718, 413, 718, 1962, 29918, 12791, 353, 313, 29875, 29899, 29896, 11877, 29906, 718, 29906, 353, 29871, 29906, 29930, 29875, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1881, 29918, 22100, 29892, 714, 29918, 22100, 1125, 13, 4706, 2428, 29898, 29965, 567, 314, 10335, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 509, 29918, 20580, 29896, 29918, 22100, 353, 29871, 29896, 29906, 29947, 29871, 396, 3342, 297, 278, 5650, 13, 4706, 1583, 29889, 509, 29918, 20580, 29906, 29918, 22100, 353, 714, 29918, 22100, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 12324, 742, 302, 29876, 29889, 23145, 29940, 555, 29941, 29881, 29898, 2080, 29918, 22100, 876, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 2674, 29884, 742, 302, 29876, 29889, 3226, 557, 29891, 1123, 29931, 29965, 29898, 29900, 29889, 29896, 29892, 297, 6689, 29922, 5574, 876, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 20580, 742, 302, 29876, 29889, 1168, 29894, 29941, 29881, 29898, 2080, 29918, 22100, 29892, 1881, 29918, 22100, 29892, 13, 462, 462, 3986, 8466, 29918, 2311, 29922, 29896, 29892, 380, 2426, 29922, 29896, 29892, 7164, 29922, 29900, 29892, 24003, 29922, 8824, 876, 13, 13, 4706, 396, 4103, 4752, 26851, 29879, 1818, 367, 443, 29899, 29886, 23959, 29973, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 3286, 29886, 29918, 20580, 29918, 29896, 742, 13, 462, 4706, 302, 29876, 29889, 1168, 29894, 4300, 4220, 29941, 29881, 29898, 2080, 29918, 22100, 29892, 1583, 29889, 509, 29918, 20580, 29896, 29918, 22100, 29892, 8466, 29918, 2311, 29922, 29906, 29892, 7164, 29922, 29900, 29892, 13, 462, 462, 965, 1962, 29918, 12791, 29922, 29900, 29892, 380, 2426, 29922, 29906, 876, 13, 4706, 1583, 29889, 1202, 29918, 5453, 877, 3286, 29886, 29918, 20580, 29918, 29906, 742, 13, 462, 4706, 302, 29876, 29889, 1168, 29894, 4300, 4220, 29941, 29881, 29898, 1311, 29889, 509, 29918, 20580, 29896, 29918, 22100, 29892, 1583, 29889, 509, 29918, 20580, 29906, 29918, 22100, 29892, 8466, 29918, 2311, 29922, 29906, 29892, 7164, 29922, 29900, 29892, 13, 462, 462, 965, 1962, 29918, 12791, 29922, 29900, 29892, 380, 2426, 29922, 29906, 876, 13, 2 ]
werckercli/tests/test_metrics.py
wercker/DEPRECATED-wercker-cli
1
92829
import mock from mock import ANY import requests from werckercli.metrics import track_application_startup, default_command_name from werckercli.tests import TestCase track_command_usage_path = "werckercli.metrics.track_command_usage" class MetricsTests(TestCase): def test_track_application_startup_fails_silently_on_ConnectionError(self): err = requests.ConnectionError() the_method = mock.Mock(side_effect=err) with mock.patch(track_command_usage_path, the_method) as puts: try: track_application_startup() except requests.ConnectionError: self.fail("track_application_startup didn't fail silently") def test_track_application_startup_calls_track_command_usage(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: the_method.assert_called_once() @mock.patch("sys.argv", ['main.py']) def test_track_application_startup_uses_default_command_on_empty_arg(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: track_application_startup() the_method.assert_called_with(default_command_name, ANY) @mock.patch("sys.argv", ['main.py', 'validate']) def test_track_application_startup_passes_command_from_sys_args(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: track_application_startup() the_method.assert_called_with('validate', ANY) @mock.patch("sys.argv", [None, 'validate']) def test_track_application_startup_handles_missing_script_arg(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: track_application_startup() @mock.patch("sys.argv", [None, 'validate']) def test_track_application_startup_handles_missing_script_arg(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: track_application_startup() @mock.patch("sys.argv", [None, 'validate', 'foo', 'bar']) def test_track_application_startup_passes_args(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: track_application_startup() expected_args = ['foo', 'bar'] the_method.assert_called_with(ANY, expected_args) @mock.patch("sys.argv", [None, 'validate']) def test_track_application_startup_passes_None_for_missing_arguments(self): the_method = mock.Mock() with mock.patch(track_command_usage_path, the_method) as puts: track_application_startup() expected_args = None the_method.assert_called_with(ANY, expected_args)
[ 1, 1053, 11187, 13, 3166, 11187, 1053, 13764, 29979, 13, 5215, 7274, 13, 3166, 2949, 4937, 11303, 29889, 2527, 10817, 1053, 5702, 29918, 6214, 29918, 2962, 786, 29892, 2322, 29918, 6519, 29918, 978, 13, 13, 3166, 2949, 4937, 11303, 29889, 21150, 1053, 4321, 8259, 13, 13, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 353, 376, 556, 4937, 11303, 29889, 2527, 10817, 29889, 11294, 29918, 6519, 29918, 21125, 29908, 13, 13, 13, 1990, 4737, 10817, 24376, 29898, 3057, 8259, 1125, 13, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 29888, 2234, 29918, 25590, 2705, 29918, 265, 29918, 5350, 2392, 29898, 1311, 1125, 13, 4706, 4589, 353, 7274, 29889, 5350, 2392, 580, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 29898, 2975, 29918, 15987, 29922, 3127, 29897, 13, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 1018, 29901, 13, 18884, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 9651, 5174, 7274, 29889, 5350, 2392, 29901, 13, 18884, 1583, 29889, 14057, 703, 11294, 29918, 6214, 29918, 2962, 786, 3282, 29915, 29873, 4418, 4047, 2705, 1159, 13, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 29883, 4293, 29918, 11294, 29918, 6519, 29918, 21125, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 278, 29918, 5696, 29889, 9294, 29918, 13998, 29918, 10646, 580, 13, 13, 1678, 732, 17640, 29889, 5041, 703, 9675, 29889, 19218, 613, 6024, 3396, 29889, 2272, 11287, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 6394, 29918, 4381, 29918, 6519, 29918, 265, 29918, 6310, 29918, 1191, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 13, 9651, 278, 29918, 5696, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 4381, 29918, 6519, 29918, 978, 29892, 13764, 29979, 29897, 13, 13, 1678, 732, 17640, 29889, 5041, 703, 9675, 29889, 19218, 613, 6024, 3396, 29889, 2272, 742, 525, 15480, 11287, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 3364, 267, 29918, 6519, 29918, 3166, 29918, 9675, 29918, 5085, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 13, 9651, 278, 29918, 5696, 29889, 9294, 29918, 13998, 29918, 2541, 877, 15480, 742, 13764, 29979, 29897, 13, 13, 1678, 732, 17640, 29889, 5041, 703, 9675, 29889, 19218, 613, 518, 8516, 29892, 525, 15480, 11287, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 3179, 793, 29918, 27259, 29918, 2154, 29918, 1191, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 13, 1678, 732, 17640, 29889, 5041, 703, 9675, 29889, 19218, 613, 518, 8516, 29892, 525, 15480, 11287, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 3179, 793, 29918, 27259, 29918, 2154, 29918, 1191, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 13, 1678, 732, 17640, 29889, 5041, 703, 9675, 29889, 19218, 613, 518, 8516, 29892, 525, 15480, 742, 525, 5431, 742, 525, 1646, 11287, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 3364, 267, 29918, 5085, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 13, 9651, 3806, 29918, 5085, 353, 6024, 5431, 742, 525, 1646, 2033, 13, 9651, 278, 29918, 5696, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 2190, 29979, 29892, 3806, 29918, 5085, 29897, 13, 13, 1678, 732, 17640, 29889, 5041, 703, 9675, 29889, 19218, 613, 518, 8516, 29892, 525, 15480, 11287, 13, 1678, 822, 1243, 29918, 11294, 29918, 6214, 29918, 2962, 786, 29918, 3364, 267, 29918, 8516, 29918, 1454, 29918, 27259, 29918, 25699, 29898, 1311, 1125, 13, 4706, 278, 29918, 5696, 353, 11187, 29889, 18680, 580, 13, 4706, 411, 11187, 29889, 5041, 29898, 11294, 29918, 6519, 29918, 21125, 29918, 2084, 29892, 278, 29918, 5696, 29897, 408, 15223, 29901, 13, 9651, 5702, 29918, 6214, 29918, 2962, 786, 580, 13, 13, 9651, 3806, 29918, 5085, 353, 6213, 13, 9651, 278, 29918, 5696, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 2190, 29979, 29892, 3806, 29918, 5085, 29897, 13, 2 ]
selfdrive/can/can_define.py
matthewklinko/openpilot
4
141582
<gh_stars>1-10 from collections import defaultdict from selfdrive.can.libdbc_py import libdbc, ffi class CANDefine(object): def __init__(self, dbc_name): self.dv = defaultdict(dict) self.dbc_name = dbc_name self.dbc = libdbc.dbc_lookup(dbc_name) num_vals = self.dbc[0].num_vals self.address_to_msg_name = {} num_msgs = self.dbc[0].num_msgs for i in range(num_msgs): msg = self.dbc[0].msgs[i] name = ffi.string(msg.name) address = msg.address self.address_to_msg_name[address] = name for i in range(num_vals): val = self.dbc[0].vals[i] sgname = ffi.string(val.name) address = val.address def_val = ffi.string(val.def_val) #separate definition/value pairs def_val = def_val.split() values = [int(v) for v in def_val[::2]] defs = def_val[1::2] if address not in self.dv: self.dv[address] = {} msgname = self.address_to_msg_name[address] self.dv[msgname] = {} # two ways to lookup: address or msg name self.dv[address][sgname] = {v: d for v, d in zip(values, defs)} #build dict self.dv[msgname][sgname] = self.dv[address][sgname]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 16250, 1053, 2322, 8977, 13, 3166, 1583, 21594, 29889, 3068, 29889, 1982, 11140, 29918, 2272, 1053, 4303, 11140, 29892, 285, 7241, 13, 13, 1990, 315, 2190, 3206, 457, 29898, 3318, 1125, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 4833, 29883, 29918, 978, 1125, 13, 1678, 1583, 29889, 29881, 29894, 353, 2322, 8977, 29898, 8977, 29897, 13, 1678, 1583, 29889, 11140, 29918, 978, 353, 4833, 29883, 29918, 978, 13, 1678, 1583, 29889, 11140, 353, 4303, 11140, 29889, 11140, 29918, 20401, 29898, 11140, 29918, 978, 29897, 13, 13, 1678, 954, 29918, 791, 29879, 353, 1583, 29889, 11140, 29961, 29900, 1822, 1949, 29918, 791, 29879, 13, 13, 1678, 1583, 29889, 7328, 29918, 517, 29918, 7645, 29918, 978, 353, 6571, 13, 1678, 954, 29918, 1516, 3174, 353, 1583, 29889, 11140, 29961, 29900, 1822, 1949, 29918, 1516, 3174, 13, 1678, 363, 474, 297, 3464, 29898, 1949, 29918, 1516, 3174, 1125, 13, 418, 10191, 353, 1583, 29889, 11140, 29961, 29900, 1822, 1516, 3174, 29961, 29875, 29962, 13, 418, 1024, 353, 285, 7241, 29889, 1807, 29898, 7645, 29889, 978, 29897, 13, 418, 3211, 353, 10191, 29889, 7328, 13, 418, 1583, 29889, 7328, 29918, 517, 29918, 7645, 29918, 978, 29961, 7328, 29962, 353, 1024, 13, 13, 1678, 363, 474, 297, 3464, 29898, 1949, 29918, 791, 29879, 1125, 13, 418, 659, 353, 1583, 29889, 11140, 29961, 29900, 1822, 791, 29879, 29961, 29875, 29962, 13, 13, 418, 269, 29887, 978, 353, 285, 7241, 29889, 1807, 29898, 791, 29889, 978, 29897, 13, 418, 3211, 353, 659, 29889, 7328, 13, 418, 822, 29918, 791, 353, 285, 7241, 29889, 1807, 29898, 791, 29889, 1753, 29918, 791, 29897, 13, 13, 418, 396, 25048, 403, 5023, 29914, 1767, 11000, 13, 418, 822, 29918, 791, 353, 822, 29918, 791, 29889, 5451, 580, 13, 418, 1819, 353, 518, 524, 29898, 29894, 29897, 363, 325, 297, 822, 29918, 791, 29961, 1057, 29906, 5262, 13, 418, 822, 29879, 353, 822, 29918, 791, 29961, 29896, 1057, 29906, 29962, 13, 13, 418, 565, 3211, 451, 297, 1583, 29889, 29881, 29894, 29901, 13, 4706, 1583, 29889, 29881, 29894, 29961, 7328, 29962, 353, 6571, 13, 4706, 10191, 978, 353, 1583, 29889, 7328, 29918, 517, 29918, 7645, 29918, 978, 29961, 7328, 29962, 13, 4706, 1583, 29889, 29881, 29894, 29961, 7645, 978, 29962, 353, 6571, 13, 13, 418, 396, 1023, 5837, 304, 16280, 29901, 3211, 470, 10191, 1024, 13, 418, 1583, 29889, 29881, 29894, 29961, 7328, 3816, 5311, 978, 29962, 353, 426, 29894, 29901, 270, 363, 325, 29892, 270, 297, 14319, 29898, 5975, 29892, 822, 29879, 2915, 396, 4282, 9657, 13, 418, 1583, 29889, 29881, 29894, 29961, 7645, 978, 3816, 5311, 978, 29962, 353, 1583, 29889, 29881, 29894, 29961, 7328, 3816, 5311, 978, 29962, 13, 2 ]
graphics/ground.py
bdemin/M113_Visualization
0
68962
<reponame>bdemin/M113_Visualization import numpy as np from vtk import vtkLookupTable, vtkUnsignedCharArray, vtkNamedColors, \ vtkCellLocator, vtkPoints, mutable, vtkParametricSpline, vtkParametricFunctionSource, \ vtkPolyDataMapper, vtkActor def visualize_elevation(PolyData): # Create colormap bounds = 6*[0.0] PolyData.GetBounds(bounds) # Find min and max z minz = bounds[4] maxz = bounds[5] colorLookupTable = vtkLookupTable() colorLookupTable.SetTableRange(minz, maxz) colorLookupTable.Build() # Generate the colors for each point based on elevation colors = vtkUnsignedCharArray() colors.SetNumberOfComponents(3) colors.SetName("Colors") for i in range(0, PolyData.GetNumberOfPoints()): p= 3*[0.0] PolyData.GetPoint(i,p) dcolor = 3*[0.0] colorLookupTable.GetColor(p[2], dcolor) color=3*[0.0] for j in range(0,3): color[j] = int(255.0 * dcolor[j]) colors.InsertNextTypedTuple(color) # Assign colors to the vtkPolyData PolyData.GetPointData().SetScalars(colors) def get_soil_color(soil_type_key, colors_dict): # Function that returns the defined color for a specific soil type if soil_type_key in colors_dict: return colors_dict[soil_type_key] return (255,255,255) # If undefined, return white color def visualize_soil(PolyData, soil_type_array): # Assign colors to the ground based on input soil type array # Create a color dictionary colors = vtkNamedColors() colors_dict = { 0: colors.HTMLColorToRGB('DarkKhaki'), 1: colors.HTMLColorToRGB('Wheat'), 2: colors.HTMLColorToRGB('BurlyWood'), 3: colors.HTMLColorToRGB('SandyBrown'), 4: colors.HTMLColorToRGB('Khaki'), 5: colors.HTMLColorToRGB('DarkOliveGreen'), 6: colors.HTMLColorToRGB('DarkGreen')} m, n = soil_type_array.shape soil_color_map = vtkUnsignedCharArray() soil_color_map.SetNumberOfComponents(3) soil_color_map.SetName("Colors") for i in range(m-1): for j in range(n-1): for _ in range(6): soil_color_map.InsertNextTypedTuple(get_soil_color(soil_type_array[i,j], colors_dict)) # Assign colors to the vtkPolyData PolyData.GetPointData().SetScalars(soil_color_map) def generate_perlin_noise_2d(size, res): # Return Perlin Noise def factors(n): from functools import reduce return list(reduce(list.__add__, ([i, n//i] for i in range(1, int(n**0.5) + 1) if n % i == 0))) def f(t): return 6*t**5 - 15*t**4 + 10*t**3 m_factors = sorted(factors(size[0])) n_factors = sorted(factors(size[1])) m_mid_index = (len(m_factors) - 1) // 2 n_mid_index = (len(n_factors) - 1) // 2 res = (m_factors[m_mid_index], n_factors[n_mid_index]) delta = (res[0] / size[0], res[1] / size[1]) d = (size[0] // res[0], size[1] // res[1]) grid = np.mgrid[0:res[0]:delta[0],0:res[1]:delta[1]].transpose(1, 2, 0) % 1 # Gradients angles = 2*np.pi*np.random.rand(res[0]+1, res[1]+1) gradients = np.dstack((np.cos(angles), np.sin(angles))) g00 = gradients[0:-1,0:-1].repeat(d[0], 0).repeat(d[1], 1) g10 = gradients[1: ,0:-1].repeat(d[0], 0).repeat(d[1], 1) g01 = gradients[0:-1,1: ].repeat(d[0], 0).repeat(d[1], 1) g11 = gradients[1: ,1: ].repeat(d[0], 0).repeat(d[1], 1) # Ramps n00 = np.sum(np.dstack((grid[:,:,0] , grid[:,:,1] )) * g00, 2) n10 = np.sum(np.dstack((grid[:,:,0]-1, grid[:,:,1] )) * g10, 2) n01 = np.sum(np.dstack((grid[:,:,0] , grid[:,:,1]-1)) * g01, 2) n11 = np.sum(np.dstack((grid[:,:,0]-1, grid[:,:,1]-1)) * g11, 2) # Interpolation t = f(grid) n0 = n00*(1-t[:,:,0]) + t[:,:,0]*n10 n1 = n01*(1-t[:,:,0]) + t[:,:,0]*n11 return np.sqrt(2)*((1-t[:,:,1])*n0 + t[:,:,1]*n1) def perlin2D(m): from scipy.interpolate import interp2d s = np.zeros((m,m)) # Prepare output image (size: m x m) w = m i = 0 while w > 3: i = i + 1 # d = interp2(randn([m,m]), i-1, 'spline') x = i y = i z = np.random.randn(m,m) d = interp2d(x,y,z, kind='spline') s = s + i * d[1:m, 1:m] w = w - np.ceil(w/2 - 1) s = (s - min(min(s[:,:]))) / (max(max(s[:,:])) - min(min(s[:,:]))) return s def create_soil_type_arr(size): # Create an array of different soil types scatterd randomly using Perlin Noise np.random.seed(1) noise = generate_perlin_noise_2d((size), (10, 10)) # Get perlin noise soil_type_arr = np.zeros(size) num_soil_types = 3 # Define how many soil types (colors) should be set arr_min = noise.min() soil_type_step = (noise.max() - arr_min)/num_soil_types # Fill array with different soil types for k in range(num_soil_types): for i in range(size[0]): for j in range(size[1]): if (noise[i,j] <= arr_min + (k+1)*soil_type_step) and (arr_min + k*soil_type_step <= noise[i,j]): soil_type_arr[i,j] = k return soil_type_arr def get_spline_actor(surface_data, chassis_cg_path, surface_bounds): # Iterate over chassis CG points and create a spline which marks the driving path. # Return the spline as a vtkActor for being added later to the renderer. # Update the pipeline so that vtkCellLocator finds cells surface_data.Update() # Define a cellLocator to be able to compute intersections between lines # and the surface locator = vtkCellLocator() locator.SetDataSet(surface_data.GetOutput()) locator.BuildLocator() tolerance = 0.01 # Set intersection searching tolerance # Make a list of points. Each point is the intersection of a vertical line # defined by p1 and p2 and the surface. points = vtkPoints() for chassis_cg in chassis_cg_path: p1 = [chassis_cg[0], chassis_cg[1], surface_bounds[4]] p2 = [chassis_cg[0], chassis_cg[1], surface_bounds[5]] t = mutable(0) pos = [0.0, 0.0, 0.0] pcoords = [0.0, 0.0, 0.0] subId = mutable(0) locator.IntersectWithLine(p1, p2, tolerance, t, pos, pcoords, subId) # Add a slight offset in z pos[2] += 0.05 # Add the x, y, z position of the intersection points.InsertNextPoint(pos) # Create a spline and add the pointsoi spline = vtkParametricSpline() spline.SetPoints(points) spline_function = vtkParametricFunctionSource() spline_function.SetUResolution(len(chassis_cg_path)) spline_function.SetParametricFunction(spline) # Map the spline spline_mapper = vtkPolyDataMapper() spline_mapper.SetInputConnection(spline_function.GetOutputPort()) # Define the line actor spline_actor = vtkActor() spline_actor.SetMapper(spline_mapper) spline_actor.GetProperty().SetColor([0,0.7,0]) spline_actor.GetProperty().SetLineWidth(10) return spline_actor
[ 1, 529, 276, 1112, 420, 29958, 29890, 311, 1195, 29914, 29924, 29896, 29896, 29941, 29918, 16227, 2133, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 325, 11178, 1053, 325, 11178, 14959, 786, 3562, 29892, 325, 11178, 25807, 12961, 5914, 2588, 29892, 325, 11178, 22175, 1625, 943, 29892, 320, 13, 1678, 325, 11178, 4617, 3524, 1061, 29892, 325, 11178, 20325, 29892, 26691, 29892, 325, 11178, 4736, 300, 2200, 29903, 572, 457, 29892, 325, 11178, 4736, 300, 2200, 6678, 4435, 29892, 320, 13, 4706, 325, 11178, 7713, 29891, 1469, 19968, 29892, 325, 11178, 29909, 2801, 13, 13, 13, 1753, 7604, 675, 29918, 29872, 2608, 362, 29898, 7713, 29891, 1469, 1125, 13, 1678, 396, 6204, 784, 555, 481, 13, 1678, 13451, 353, 29871, 29953, 29930, 29961, 29900, 29889, 29900, 29962, 13, 1678, 21755, 1469, 29889, 2577, 18526, 29898, 23687, 29897, 13, 13, 1678, 396, 10987, 1375, 322, 4236, 503, 13, 1678, 1375, 29920, 353, 13451, 29961, 29946, 29962, 13, 1678, 4236, 29920, 353, 13451, 29961, 29945, 29962, 13, 13, 1678, 2927, 14959, 786, 3562, 353, 325, 11178, 14959, 786, 3562, 580, 13, 1678, 2927, 14959, 786, 3562, 29889, 2697, 3562, 6069, 29898, 1195, 29920, 29892, 4236, 29920, 29897, 13, 1678, 2927, 14959, 786, 3562, 29889, 8893, 580, 13, 13, 1678, 396, 3251, 403, 278, 11955, 363, 1269, 1298, 2729, 373, 11858, 362, 13, 1678, 11955, 353, 325, 11178, 25807, 12961, 5914, 2588, 580, 13, 1678, 11955, 29889, 2697, 4557, 2776, 25503, 29898, 29941, 29897, 13, 1678, 11955, 29889, 2697, 1170, 703, 1625, 943, 1159, 13, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 21755, 1469, 29889, 2577, 4557, 2776, 20325, 580, 1125, 13, 4706, 282, 29922, 29871, 29941, 29930, 29961, 29900, 29889, 29900, 29962, 13, 4706, 21755, 1469, 29889, 2577, 5228, 29898, 29875, 29892, 29886, 29897, 13, 13, 4706, 270, 2780, 353, 29871, 29941, 29930, 29961, 29900, 29889, 29900, 29962, 13, 4706, 2927, 14959, 786, 3562, 29889, 2577, 3306, 29898, 29886, 29961, 29906, 1402, 270, 2780, 29897, 13, 13, 4706, 2927, 29922, 29941, 29930, 29961, 29900, 29889, 29900, 29962, 13, 4706, 363, 432, 297, 3464, 29898, 29900, 29892, 29941, 1125, 13, 9651, 2927, 29961, 29926, 29962, 353, 938, 29898, 29906, 29945, 29945, 29889, 29900, 334, 270, 2780, 29961, 29926, 2314, 13, 13, 4706, 11955, 29889, 17491, 9190, 24933, 287, 23215, 552, 29898, 2780, 29897, 13, 13, 1678, 396, 4007, 647, 11955, 304, 278, 325, 11178, 7713, 29891, 1469, 13, 1678, 21755, 1469, 29889, 2577, 5228, 1469, 2141, 2697, 29636, 1503, 29898, 27703, 29897, 13, 13, 13, 13, 1753, 679, 29918, 578, 309, 29918, 2780, 29898, 578, 309, 29918, 1853, 29918, 1989, 29892, 11955, 29918, 8977, 1125, 13, 1678, 396, 6680, 393, 3639, 278, 3342, 2927, 363, 263, 2702, 22473, 1134, 13, 1678, 565, 22473, 29918, 1853, 29918, 1989, 297, 11955, 29918, 8977, 29901, 13, 4706, 736, 11955, 29918, 8977, 29961, 578, 309, 29918, 1853, 29918, 1989, 29962, 13, 1678, 736, 313, 29906, 29945, 29945, 29892, 29906, 29945, 29945, 29892, 29906, 29945, 29945, 29897, 396, 960, 7580, 29892, 736, 4796, 2927, 13, 13, 13, 1753, 7604, 675, 29918, 578, 309, 29898, 7713, 29891, 1469, 29892, 22473, 29918, 1853, 29918, 2378, 1125, 13, 1678, 396, 4007, 647, 11955, 304, 278, 5962, 2729, 373, 1881, 22473, 1134, 1409, 13, 13, 1678, 396, 6204, 263, 2927, 8600, 13, 1678, 11955, 353, 325, 11178, 22175, 1625, 943, 580, 13, 1678, 11955, 29918, 8977, 353, 426, 13, 308, 29900, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29928, 935, 29968, 29882, 9940, 5477, 13, 308, 29896, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29956, 354, 271, 5477, 13, 308, 29906, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29933, 332, 368, 29956, 2092, 5477, 13, 308, 29941, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29903, 13910, 29933, 4708, 5477, 13, 308, 29946, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29968, 29882, 9940, 5477, 13, 308, 29945, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29928, 935, 29949, 9258, 24599, 5477, 13, 308, 29953, 29901, 11955, 29889, 7020, 3306, 1762, 28212, 877, 29928, 935, 24599, 1495, 29913, 13, 13, 1678, 286, 29892, 302, 353, 22473, 29918, 1853, 29918, 2378, 29889, 12181, 13, 1678, 22473, 29918, 2780, 29918, 1958, 353, 325, 11178, 25807, 12961, 5914, 2588, 580, 13, 1678, 22473, 29918, 2780, 29918, 1958, 29889, 2697, 4557, 2776, 25503, 29898, 29941, 29897, 13, 1678, 22473, 29918, 2780, 29918, 1958, 29889, 2697, 1170, 703, 1625, 943, 1159, 13, 13, 1678, 363, 474, 297, 3464, 29898, 29885, 29899, 29896, 1125, 13, 4706, 363, 432, 297, 3464, 29898, 29876, 29899, 29896, 1125, 13, 9651, 363, 903, 297, 3464, 29898, 29953, 1125, 13, 18884, 22473, 29918, 2780, 29918, 1958, 29889, 17491, 9190, 24933, 287, 23215, 552, 29898, 657, 29918, 578, 309, 29918, 2780, 29898, 578, 309, 29918, 1853, 29918, 2378, 29961, 29875, 29892, 29926, 1402, 11955, 29918, 8977, 876, 13, 13, 1678, 396, 4007, 647, 11955, 304, 278, 325, 11178, 7713, 29891, 1469, 13, 1678, 21755, 1469, 29889, 2577, 5228, 1469, 2141, 2697, 29636, 1503, 29898, 578, 309, 29918, 2780, 29918, 1958, 29897, 13, 13, 13, 1753, 5706, 29918, 546, 1915, 29918, 1217, 895, 29918, 29906, 29881, 29898, 2311, 29892, 620, 1125, 13, 1678, 396, 7106, 2431, 1915, 1939, 895, 13, 268, 13, 1678, 822, 13879, 29898, 29876, 1125, 13, 4706, 515, 2090, 312, 8789, 1053, 10032, 13, 4706, 736, 1051, 29898, 17469, 29898, 1761, 17255, 1202, 1649, 29892, 13, 462, 1678, 9310, 29875, 29892, 302, 458, 29875, 29962, 363, 474, 297, 3464, 29898, 29896, 29892, 938, 29898, 29876, 1068, 29900, 29889, 29945, 29897, 718, 29871, 29896, 29897, 565, 302, 1273, 474, 1275, 29871, 29900, 4961, 13, 13, 1678, 822, 285, 29898, 29873, 1125, 13, 4706, 736, 29871, 29953, 29930, 29873, 1068, 29945, 448, 29871, 29896, 29945, 29930, 29873, 1068, 29946, 718, 29871, 29896, 29900, 29930, 29873, 1068, 29941, 13, 268, 13, 1678, 286, 29918, 17028, 943, 353, 12705, 29898, 17028, 943, 29898, 2311, 29961, 29900, 12622, 13, 1678, 302, 29918, 17028, 943, 353, 12705, 29898, 17028, 943, 29898, 2311, 29961, 29896, 12622, 13, 1678, 286, 29918, 6563, 29918, 2248, 353, 313, 2435, 29898, 29885, 29918, 17028, 943, 29897, 448, 29871, 29896, 29897, 849, 29871, 29906, 13, 1678, 302, 29918, 6563, 29918, 2248, 353, 313, 2435, 29898, 29876, 29918, 17028, 943, 29897, 448, 29871, 29896, 29897, 849, 29871, 29906, 13, 1678, 620, 353, 313, 29885, 29918, 17028, 943, 29961, 29885, 29918, 6563, 29918, 2248, 1402, 302, 29918, 17028, 943, 29961, 29876, 29918, 6563, 29918, 2248, 2314, 13, 268, 13, 1678, 19471, 353, 313, 690, 29961, 29900, 29962, 847, 2159, 29961, 29900, 1402, 620, 29961, 29896, 29962, 847, 2159, 29961, 29896, 2314, 13, 1678, 270, 353, 313, 2311, 29961, 29900, 29962, 849, 620, 29961, 29900, 1402, 2159, 29961, 29896, 29962, 849, 620, 29961, 29896, 2314, 13, 1678, 6856, 353, 7442, 29889, 29885, 7720, 29961, 29900, 29901, 690, 29961, 29900, 5387, 4181, 29961, 29900, 1402, 29900, 29901, 690, 29961, 29896, 5387, 4181, 29961, 29896, 29962, 1822, 3286, 4220, 29898, 29896, 29892, 29871, 29906, 29892, 29871, 29900, 29897, 1273, 29871, 29896, 13, 1678, 396, 19295, 10070, 13, 1678, 23619, 353, 29871, 29906, 29930, 9302, 29889, 1631, 29930, 9302, 29889, 8172, 29889, 9502, 29898, 690, 29961, 29900, 10062, 29896, 29892, 620, 29961, 29896, 10062, 29896, 29897, 13, 1678, 4656, 10070, 353, 7442, 29889, 29881, 1429, 3552, 9302, 29889, 3944, 29898, 19536, 511, 7442, 29889, 5223, 29898, 19536, 4961, 13, 1678, 330, 29900, 29900, 353, 4656, 10070, 29961, 29900, 13018, 29896, 29892, 29900, 13018, 29896, 1822, 14358, 29898, 29881, 29961, 29900, 1402, 29871, 29900, 467, 14358, 29898, 29881, 29961, 29896, 1402, 29871, 29896, 29897, 13, 1678, 330, 29896, 29900, 353, 4656, 10070, 29961, 29896, 29901, 29871, 1919, 29900, 13018, 29896, 1822, 14358, 29898, 29881, 29961, 29900, 1402, 29871, 29900, 467, 14358, 29898, 29881, 29961, 29896, 1402, 29871, 29896, 29897, 13, 1678, 330, 29900, 29896, 353, 4656, 10070, 29961, 29900, 13018, 29896, 29892, 29896, 29901, 259, 1822, 14358, 29898, 29881, 29961, 29900, 1402, 29871, 29900, 467, 14358, 29898, 29881, 29961, 29896, 1402, 29871, 29896, 29897, 13, 1678, 330, 29896, 29896, 353, 4656, 10070, 29961, 29896, 29901, 29871, 1919, 29896, 29901, 259, 1822, 14358, 29898, 29881, 29961, 29900, 1402, 29871, 29900, 467, 14358, 29898, 29881, 29961, 29896, 1402, 29871, 29896, 29897, 13, 1678, 396, 8292, 567, 13, 1678, 302, 29900, 29900, 353, 7442, 29889, 2083, 29898, 9302, 29889, 29881, 1429, 3552, 7720, 7503, 29892, 29901, 29892, 29900, 29962, 29871, 1919, 6856, 7503, 29892, 29901, 29892, 29896, 29962, 259, 876, 334, 330, 29900, 29900, 29892, 29871, 29906, 29897, 13, 1678, 302, 29896, 29900, 353, 7442, 29889, 2083, 29898, 9302, 29889, 29881, 1429, 3552, 7720, 7503, 29892, 29901, 29892, 29900, 29962, 29899, 29896, 29892, 6856, 7503, 29892, 29901, 29892, 29896, 29962, 259, 876, 334, 330, 29896, 29900, 29892, 29871, 29906, 29897, 13, 1678, 302, 29900, 29896, 353, 7442, 29889, 2083, 29898, 9302, 29889, 29881, 1429, 3552, 7720, 7503, 29892, 29901, 29892, 29900, 29962, 29871, 1919, 6856, 7503, 29892, 29901, 29892, 29896, 29962, 29899, 29896, 876, 334, 330, 29900, 29896, 29892, 29871, 29906, 29897, 13, 1678, 302, 29896, 29896, 353, 7442, 29889, 2083, 29898, 9302, 29889, 29881, 1429, 3552, 7720, 7503, 29892, 29901, 29892, 29900, 29962, 29899, 29896, 29892, 6856, 7503, 29892, 29901, 29892, 29896, 29962, 29899, 29896, 876, 334, 330, 29896, 29896, 29892, 29871, 29906, 29897, 13, 1678, 396, 4124, 3733, 362, 13, 1678, 260, 353, 285, 29898, 7720, 29897, 13, 1678, 302, 29900, 353, 302, 29900, 29900, 16395, 29896, 29899, 29873, 7503, 29892, 29901, 29892, 29900, 2314, 718, 260, 7503, 29892, 29901, 29892, 29900, 14178, 29876, 29896, 29900, 13, 1678, 302, 29896, 353, 302, 29900, 29896, 16395, 29896, 29899, 29873, 7503, 29892, 29901, 29892, 29900, 2314, 718, 260, 7503, 29892, 29901, 29892, 29900, 14178, 29876, 29896, 29896, 13, 1678, 736, 7442, 29889, 3676, 29898, 29906, 11877, 3552, 29896, 29899, 29873, 7503, 29892, 29901, 29892, 29896, 2314, 29930, 29876, 29900, 718, 260, 7503, 29892, 29901, 29892, 29896, 14178, 29876, 29896, 29897, 13, 13, 13, 1753, 639, 1915, 29906, 29928, 29898, 29885, 1125, 13, 1678, 515, 4560, 2272, 29889, 1639, 3733, 403, 1053, 1006, 29886, 29906, 29881, 13, 1678, 269, 353, 7442, 29889, 3298, 359, 3552, 29885, 29892, 29885, 876, 396, 349, 3445, 598, 1962, 1967, 313, 2311, 29901, 286, 921, 286, 29897, 13, 1678, 281, 353, 286, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 1550, 281, 1405, 29871, 29941, 29901, 13, 4706, 474, 353, 474, 718, 29871, 29896, 13, 4706, 396, 270, 353, 1006, 29886, 29906, 29898, 9502, 29876, 4197, 29885, 29892, 29885, 11724, 474, 29899, 29896, 29892, 525, 23579, 457, 1495, 13, 4706, 921, 353, 474, 13, 4706, 343, 353, 474, 13, 4706, 503, 353, 7442, 29889, 8172, 29889, 9502, 29876, 29898, 29885, 29892, 29885, 29897, 13, 4706, 270, 353, 1006, 29886, 29906, 29881, 29898, 29916, 29892, 29891, 29892, 29920, 29892, 2924, 2433, 23579, 457, 1495, 13, 4706, 269, 353, 269, 718, 474, 334, 270, 29961, 29896, 29901, 29885, 29892, 29871, 29896, 29901, 29885, 29962, 13, 4706, 281, 353, 281, 448, 7442, 29889, 27696, 29898, 29893, 29914, 29906, 448, 29871, 29896, 29897, 13, 13, 1678, 269, 353, 313, 29879, 448, 1375, 29898, 1195, 29898, 29879, 7503, 29892, 17531, 4961, 847, 313, 3317, 29898, 3317, 29898, 29879, 7503, 29892, 29901, 12622, 448, 1375, 29898, 1195, 29898, 29879, 7503, 29892, 17531, 4961, 13, 13, 1678, 736, 269, 13, 13, 13, 1753, 1653, 29918, 578, 309, 29918, 1853, 29918, 2749, 29898, 2311, 1125, 13, 1678, 396, 6204, 385, 1409, 310, 1422, 22473, 4072, 14801, 29881, 20459, 773, 2431, 1915, 1939, 895, 13, 13, 1678, 7442, 29889, 8172, 29889, 26776, 29898, 29896, 29897, 13, 1678, 11462, 353, 5706, 29918, 546, 1915, 29918, 1217, 895, 29918, 29906, 29881, 3552, 2311, 511, 313, 29896, 29900, 29892, 29871, 29896, 29900, 876, 396, 3617, 639, 1915, 11462, 13, 1678, 22473, 29918, 1853, 29918, 2749, 353, 7442, 29889, 3298, 359, 29898, 2311, 29897, 13, 13, 1678, 954, 29918, 578, 309, 29918, 8768, 353, 29871, 29941, 396, 22402, 920, 1784, 22473, 4072, 313, 27703, 29897, 881, 367, 731, 13, 1678, 3948, 29918, 1195, 353, 11462, 29889, 1195, 580, 13, 1678, 22473, 29918, 1853, 29918, 10568, 353, 313, 1217, 895, 29889, 3317, 580, 448, 3948, 29918, 1195, 6802, 1949, 29918, 578, 309, 29918, 8768, 13, 268, 13, 1678, 396, 383, 453, 1409, 411, 1422, 22473, 4072, 13, 1678, 363, 413, 297, 3464, 29898, 1949, 29918, 578, 309, 29918, 8768, 1125, 13, 4706, 363, 474, 297, 3464, 29898, 2311, 29961, 29900, 29962, 1125, 13, 9651, 363, 432, 297, 3464, 29898, 2311, 29961, 29896, 29962, 1125, 13, 18884, 565, 313, 1217, 895, 29961, 29875, 29892, 29926, 29962, 5277, 3948, 29918, 1195, 718, 313, 29895, 29974, 29896, 11877, 578, 309, 29918, 1853, 29918, 10568, 29897, 322, 313, 2749, 29918, 1195, 718, 413, 29930, 578, 309, 29918, 1853, 29918, 10568, 5277, 11462, 29961, 29875, 29892, 29926, 29962, 1125, 13, 462, 1678, 22473, 29918, 1853, 29918, 2749, 29961, 29875, 29892, 29926, 29962, 353, 413, 13, 13, 1678, 736, 22473, 29918, 1853, 29918, 2749, 13, 13, 1753, 679, 29918, 23579, 457, 29918, 7168, 29898, 7610, 2161, 29918, 1272, 29892, 521, 465, 275, 29918, 29883, 29887, 29918, 2084, 29892, 7101, 29918, 23687, 1125, 13, 1678, 396, 20504, 403, 975, 521, 465, 275, 8446, 3291, 322, 1653, 263, 8536, 457, 607, 17997, 278, 19500, 2224, 29889, 13, 1678, 396, 7106, 278, 8536, 457, 408, 263, 325, 11178, 29909, 2801, 363, 1641, 2715, 2678, 304, 278, 4050, 261, 29889, 13, 13, 1678, 396, 10318, 278, 16439, 577, 393, 325, 11178, 4617, 3524, 1061, 14061, 9101, 13, 1678, 7101, 29918, 1272, 29889, 6422, 580, 13, 13, 1678, 396, 22402, 263, 3038, 3524, 1061, 304, 367, 2221, 304, 10272, 1006, 27117, 1546, 3454, 13, 1678, 396, 322, 278, 7101, 13, 1678, 1180, 1061, 353, 325, 11178, 4617, 3524, 1061, 580, 13, 1678, 1180, 1061, 29889, 2697, 28449, 29898, 7610, 2161, 29918, 1272, 29889, 2577, 6466, 3101, 13, 1678, 1180, 1061, 29889, 8893, 3524, 1061, 580, 13, 13, 1678, 20341, 749, 353, 29871, 29900, 29889, 29900, 29896, 396, 3789, 17686, 11975, 20341, 749, 29871, 13, 13, 1678, 396, 8561, 263, 1051, 310, 3291, 29889, 7806, 1298, 338, 278, 17686, 310, 263, 11408, 1196, 13, 1678, 396, 3342, 491, 282, 29896, 322, 282, 29906, 322, 278, 7101, 29889, 13, 1678, 3291, 353, 325, 11178, 20325, 580, 13, 1678, 363, 521, 465, 275, 29918, 29883, 29887, 297, 521, 465, 275, 29918, 29883, 29887, 29918, 2084, 29901, 13, 4706, 282, 29896, 353, 518, 305, 465, 275, 29918, 29883, 29887, 29961, 29900, 1402, 521, 465, 275, 29918, 29883, 29887, 29961, 29896, 1402, 7101, 29918, 23687, 29961, 29946, 5262, 13, 4706, 282, 29906, 353, 518, 305, 465, 275, 29918, 29883, 29887, 29961, 29900, 1402, 521, 465, 275, 29918, 29883, 29887, 29961, 29896, 1402, 7101, 29918, 23687, 29961, 29945, 5262, 13, 13, 4706, 260, 353, 26691, 29898, 29900, 29897, 13, 4706, 926, 353, 518, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29962, 13, 4706, 282, 1111, 4339, 353, 518, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29962, 13, 4706, 1014, 1204, 353, 26691, 29898, 29900, 29897, 13, 4706, 1180, 1061, 29889, 4074, 8803, 3047, 3542, 29898, 29886, 29896, 29892, 282, 29906, 29892, 20341, 749, 29892, 260, 29892, 926, 29892, 282, 1111, 4339, 29892, 1014, 1204, 29897, 13, 13, 4706, 396, 3462, 263, 7248, 9210, 297, 503, 13, 4706, 926, 29961, 29906, 29962, 4619, 29871, 29900, 29889, 29900, 29945, 13, 308, 13, 4706, 396, 3462, 278, 921, 29892, 343, 29892, 503, 2602, 310, 278, 17686, 13, 4706, 3291, 29889, 17491, 9190, 5228, 29898, 1066, 29897, 13, 13, 1678, 396, 6204, 263, 8536, 457, 322, 788, 278, 1298, 578, 29875, 13, 1678, 8536, 457, 353, 325, 11178, 4736, 300, 2200, 29903, 572, 457, 580, 13, 1678, 8536, 457, 29889, 2697, 20325, 29898, 9748, 29897, 13, 1678, 8536, 457, 29918, 2220, 353, 325, 11178, 4736, 300, 2200, 6678, 4435, 580, 13, 1678, 8536, 457, 29918, 2220, 29889, 2697, 29965, 12375, 918, 29898, 2435, 29898, 305, 465, 275, 29918, 29883, 29887, 29918, 2084, 876, 13, 1678, 8536, 457, 29918, 2220, 29889, 2697, 4736, 300, 2200, 6678, 29898, 23579, 457, 29897, 13, 13, 1678, 396, 7315, 278, 8536, 457, 13, 1678, 8536, 457, 29918, 655, 2496, 353, 325, 11178, 7713, 29891, 1469, 19968, 580, 13, 1678, 8536, 457, 29918, 655, 2496, 29889, 2697, 4290, 5350, 29898, 23579, 457, 29918, 2220, 29889, 2577, 6466, 2290, 3101, 13, 13, 1678, 396, 22402, 278, 1196, 11339, 13, 1678, 8536, 457, 29918, 7168, 353, 325, 11178, 29909, 2801, 580, 13, 1678, 8536, 457, 29918, 7168, 29889, 2697, 19968, 29898, 23579, 457, 29918, 655, 2496, 29897, 13, 1678, 8536, 457, 29918, 7168, 29889, 2577, 4854, 2141, 2697, 3306, 4197, 29900, 29892, 29900, 29889, 29955, 29892, 29900, 2314, 13, 1678, 8536, 457, 29918, 7168, 29889, 2577, 4854, 2141, 2697, 3542, 6110, 29898, 29896, 29900, 29897, 13, 268, 13, 1678, 736, 8536, 457, 29918, 7168, 13, 2 ]
what_can_i_cook/urls.py
s-maibuecher/what_can_i_cook
0
1318
from django.urls import path from what_can_i_cook.views import WCICFilterView, WCICResultView app_name = "wcic" urlpatterns = [ path("", WCICFilterView.as_view(), name="wcic-start"), path("results/", WCICResultView.as_view(), name="wcic-results"), ]
[ 1, 515, 9557, 29889, 26045, 1053, 2224, 13, 13, 3166, 825, 29918, 3068, 29918, 29875, 29918, 15108, 29889, 7406, 1053, 399, 29907, 2965, 5072, 1043, 29892, 399, 29907, 2965, 3591, 1043, 13, 13, 932, 29918, 978, 353, 376, 29893, 29883, 293, 29908, 13, 13, 13, 2271, 11037, 29879, 353, 518, 13, 1678, 2224, 703, 613, 399, 29907, 2965, 5072, 1043, 29889, 294, 29918, 1493, 3285, 1024, 543, 29893, 29883, 293, 29899, 2962, 4968, 13, 1678, 2224, 703, 9902, 29914, 613, 399, 29907, 2965, 3591, 1043, 29889, 294, 29918, 1493, 3285, 1024, 543, 29893, 29883, 293, 29899, 9902, 4968, 13, 29962, 13, 13, 2 ]
tests/functional/CrudTests.py
idle-code/ContextShell
0
141475
<gh_stars>0 import unittest from tests.functional.ShellTestsBase import NodeTreeTestsBase from tests.functional.TestExecutor import script_test class CrudTestsBase(NodeTreeTestsBase): pass class CreateTests(CrudTestsBase): @script_test def test_create(self): """ $ .: create foo $ .: contains foo True """ @script_test def test_create_many_parts(self): """ $ .: create foo.bar $ .: contains foo.bar True """ @unittest.skip("Check when type system will be working") @script_test def test_create_int_type(self): """ $ .: create.int i 3 $ .i: get 3 """ class ContainsTests(CrudTestsBase): @script_test def test_nonexistent(self): """ $ .: contains unknown False """ class GetTests(CrudTestsBase): @script_test def test_get_existing(self): """ $ .: create foo 1 $ .foo: get 1 """ @script_test def test_get_nonexistent(self): """ $ .foo: get NameError: '.foo' doesn't exists """ class SetTests(CrudTestsBase): @script_test def test_set_existing(self): """ $ .: create foo 1 $ .foo: set 2 $ .foo: get 2 """ @script_test def test_set_nonexistent(self): """ $ .foo: set 1 NameError: '.foo' doesn't exists """ @script_test def test_set_no_new_value(self): """ $ .: create foo 1 $ .foo: set TypeError: set_action() missing 1 required positional argument: 'new_value' """ @script_test def test_set_different_type(self): """ $ .: create foo 2 $ .foo: set "rabarbar" TypeError: Cannot assign value with type 'str' to 'int' node """ class ListTests(CrudTestsBase): @script_test def test_list_empty(self): """ $ .: create foo $ .foo: list """ @script_test def test_list_in_creation_order(self): """ $ .: create foo.Z_first $ .: create foo.A_second $ .foo: list Z_first A_second """ @script_test def test_list_only_attributes(self): """ $ .: create .test.@attr $ .: create .test.key $ .test: list.attributes @attr """ @script_test def test_list_all(self): """ $ .: create .test.@attr $ .: create .test.key $ .test: list.all @attr key """ @script_test def test_list_only_normal(self): """ $ .: create .test.@attr $ .: create .test.key $ .test: list key """ @script_test def test_list_actions(self): """ $ .: list.actions create contains get set list remove find """ class RemoveTests(CrudTestsBase): @script_test def test_remove_existing(self): """ $ .: create foo $ .foo: remove $ .: contains foo False """ @script_test def test_remove_nonexistent(self): """ $ .foo: remove NameError: '.foo' doesn't exists """
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 443, 27958, 13, 13, 3166, 6987, 29889, 2220, 284, 29889, 16037, 24376, 5160, 1053, 9071, 9643, 24376, 5160, 13, 3166, 6987, 29889, 2220, 284, 29889, 3057, 13366, 1053, 2471, 29918, 1688, 13, 13, 13, 1990, 6781, 566, 24376, 5160, 29898, 4247, 9643, 24376, 5160, 1125, 13, 1678, 1209, 13, 13, 13, 1990, 6204, 24376, 29898, 20647, 566, 24376, 5160, 1125, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 3258, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 13, 4706, 395, 869, 29901, 3743, 7953, 13, 4706, 5852, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 3258, 29918, 13011, 29918, 20895, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 29889, 1646, 13, 4706, 395, 869, 29901, 3743, 7953, 29889, 1646, 13, 4706, 5852, 13, 4706, 9995, 13, 13, 1678, 732, 348, 27958, 29889, 11014, 703, 5596, 746, 1134, 1788, 674, 367, 1985, 1159, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 3258, 29918, 524, 29918, 1853, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 29889, 524, 474, 29871, 29941, 13, 4706, 395, 869, 29875, 29901, 679, 13, 308, 29941, 13, 4706, 9995, 13, 13, 13, 1990, 2866, 2708, 24376, 29898, 20647, 566, 24376, 5160, 1125, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 9290, 29916, 9696, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 3743, 9815, 13, 4706, 7700, 13, 4706, 9995, 13, 13, 13, 1990, 3617, 24376, 29898, 20647, 566, 24376, 5160, 1125, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 657, 29918, 735, 15423, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 29871, 29896, 13, 4706, 395, 869, 5431, 29901, 679, 13, 308, 29896, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 657, 29918, 9290, 29916, 9696, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 5431, 29901, 679, 13, 4706, 4408, 2392, 29901, 15300, 5431, 29915, 1838, 29915, 29873, 4864, 13, 4706, 9995, 13, 13, 13, 1990, 3789, 24376, 29898, 20647, 566, 24376, 5160, 1125, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 842, 29918, 735, 15423, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 29871, 29896, 13, 4706, 395, 869, 5431, 29901, 731, 29871, 29906, 13, 4706, 395, 869, 5431, 29901, 679, 13, 308, 29906, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 842, 29918, 9290, 29916, 9696, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 5431, 29901, 731, 29871, 29896, 13, 4706, 4408, 2392, 29901, 15300, 5431, 29915, 1838, 29915, 29873, 4864, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 842, 29918, 1217, 29918, 1482, 29918, 1767, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 29871, 29896, 13, 4706, 395, 869, 5431, 29901, 731, 13, 4706, 20948, 29901, 731, 29918, 2467, 580, 4567, 29871, 29896, 3734, 2602, 284, 2980, 29901, 525, 1482, 29918, 1767, 29915, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 842, 29918, 29881, 15622, 29918, 1853, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 29871, 29906, 13, 4706, 395, 869, 5431, 29901, 731, 376, 336, 1646, 1646, 29908, 13, 4706, 20948, 29901, 15808, 3566, 995, 411, 1134, 525, 710, 29915, 304, 525, 524, 29915, 2943, 13, 4706, 9995, 13, 13, 13, 1990, 2391, 24376, 29898, 20647, 566, 24376, 5160, 1125, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 1761, 29918, 6310, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 13, 4706, 395, 869, 5431, 29901, 1051, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 1761, 29918, 262, 29918, 1037, 362, 29918, 2098, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 29889, 29999, 29918, 4102, 13, 4706, 395, 869, 29901, 1653, 7953, 29889, 29909, 29918, 7496, 13, 4706, 395, 869, 5431, 29901, 1051, 13, 4706, 796, 29918, 4102, 13, 4706, 319, 29918, 7496, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 1761, 29918, 6194, 29918, 15697, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 869, 1688, 21240, 5552, 13, 4706, 395, 869, 29901, 1653, 869, 1688, 29889, 1989, 13, 4706, 395, 869, 1688, 29901, 1051, 29889, 15697, 13, 4706, 732, 5552, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 1761, 29918, 497, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 869, 1688, 21240, 5552, 13, 4706, 395, 869, 29901, 1653, 869, 1688, 29889, 1989, 13, 4706, 395, 869, 1688, 29901, 1051, 29889, 497, 13, 4706, 732, 5552, 13, 4706, 1820, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 1761, 29918, 6194, 29918, 8945, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 869, 1688, 21240, 5552, 13, 4706, 395, 869, 29901, 1653, 869, 1688, 29889, 1989, 13, 4706, 395, 869, 1688, 29901, 1051, 13, 4706, 1820, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 1761, 29918, 7387, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1051, 29889, 7387, 13, 4706, 1653, 13, 4706, 3743, 13, 4706, 679, 13, 4706, 731, 13, 4706, 1051, 13, 4706, 3349, 13, 4706, 1284, 13, 4706, 9995, 13, 13, 13, 1990, 15154, 24376, 29898, 20647, 566, 24376, 5160, 1125, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 5992, 29918, 735, 15423, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 29901, 1653, 7953, 13, 4706, 395, 869, 5431, 29901, 3349, 13, 4706, 395, 869, 29901, 3743, 7953, 13, 4706, 7700, 13, 4706, 9995, 13, 13, 1678, 732, 2154, 29918, 1688, 13, 1678, 822, 1243, 29918, 5992, 29918, 9290, 29916, 9696, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 395, 869, 5431, 29901, 3349, 13, 4706, 4408, 2392, 29901, 15300, 5431, 29915, 1838, 29915, 29873, 4864, 13, 4706, 9995, 13, 2 ]
app/web/book.py
Marticles/BookCrossing
2
102368
from flask import jsonify,request ,current_app, url_for, render_template, flash from app.view_models.trade import TradeInfo from app.forms.book import SearchForm from app.libs.helper import is_isbn_or_key from app.models.shupiao_book import ShuPiaoBook from app.view_models.book import BookViewModel,BookCollection from . import web import json from flask_login import current_user from app.models.gift import Gift from app.models.wish import Wish @web.route('/book/search/') def search(): """ q:普通关键字orISBN号 page """ form = SearchForm(request.args) books = BookCollection() #参数校验 if form.validate(): q = form.q.data.strip() page = form.page.data isbn_or_key = is_isbn_or_key(q) shupiao_book = ShuPiaoBook() if isbn_or_key == 'isbn': shupiao_book.search_by_isbn(q) else: shupiao_book.search_by_keyword(q,page) #dict转str books.fill(shupiao_book,q) #return json.dumps(books, default = lambda o: o.__dict__) #return json.dumps(books),200,{'content-type':'application/json'} else : flash('搜索关键字错误') #return jsonify(form.errors) return render_template('search_result.html',books=books,form=form) @web.route('/book/<isbn>/detail') def book_detail(isbn): has_in_gifts = False has_in_wishes = False # 取书籍详情数据 shupiao_book = ShuPiaoBook() shupiao_book.search_by_isbn(isbn) book = BookViewModel(shupiao_book.first) if current_user.is_authenticated: if Gift.query.filter_by(uid=current_user.id, isbn=isbn, launched=False).first(): has_in_gifts = True if Wish.query.filter_by(uid=current_user.id, isbn=isbn, launched=False).first(): has_in_wishes = True trade_gifts = Gift.query.filter_by(isbn=isbn, launched=False).all() trade_wishes = Wish.query.filter_by(isbn=isbn, launched=False).all() trade_gifts_model = TradeInfo(trade_gifts) trade_wishes_model = TradeInfo(trade_wishes) return render_template('book_detail.html', book=book, wishes=trade_wishes_model, gifts=trade_gifts_model, has_in_wishes=has_in_wishes, has_in_gifts=has_in_gifts) ''' @web.route('/hello') def hello(): return 'hello' ''' ''' @web.route('/test') def test(): r = { 'name':'XXXX', 'age':'18' } flash('[q,a,c]',category = 'q') flash('aaaaaa',category = 'a') return render_template('test.html',data =r) '''
[ 1, 515, 29784, 1053, 4390, 1598, 29892, 3827, 1919, 3784, 29918, 932, 29892, 3142, 29918, 1454, 29892, 4050, 29918, 6886, 29892, 11013, 13, 3166, 623, 29889, 1493, 29918, 9794, 29889, 3018, 311, 1053, 27226, 3401, 13, 3166, 623, 29889, 9514, 29889, 2909, 1053, 11856, 2500, 13, 3166, 623, 29889, 10254, 29889, 20907, 1053, 338, 29918, 275, 11197, 29918, 272, 29918, 1989, 13, 3166, 623, 29889, 9794, 29889, 845, 786, 29653, 29918, 2909, 1053, 1383, 29884, 29925, 29653, 10967, 13, 3166, 623, 29889, 1493, 29918, 9794, 29889, 2909, 1053, 6726, 15166, 29892, 10967, 7196, 13, 3166, 869, 1053, 1856, 29871, 13, 5215, 4390, 13, 13, 3166, 29784, 29918, 7507, 1053, 1857, 29918, 1792, 13, 3166, 623, 29889, 9794, 29889, 29887, 2027, 1053, 402, 2027, 13, 3166, 623, 29889, 9794, 29889, 29893, 728, 1053, 399, 728, 13, 13, 29992, 2676, 29889, 13134, 11219, 2909, 29914, 4478, 29914, 1495, 13, 1753, 2740, 7295, 13, 1678, 9995, 13, 1678, 3855, 29901, 233, 156, 177, 30768, 31057, 236, 151, 177, 30578, 272, 8587, 30850, 13, 1678, 1813, 13, 1678, 9995, 13, 1678, 883, 353, 11856, 2500, 29898, 3827, 29889, 5085, 29897, 13, 1678, 8277, 353, 6726, 7196, 580, 13, 1678, 396, 31125, 30354, 31071, 236, 173, 143, 13, 13, 1678, 565, 883, 29889, 15480, 7295, 13, 4706, 3855, 353, 883, 29889, 29939, 29889, 1272, 29889, 17010, 580, 13, 4706, 1813, 353, 883, 29889, 3488, 29889, 1272, 13, 4706, 338, 11197, 29918, 272, 29918, 1989, 353, 338, 29918, 275, 11197, 29918, 272, 29918, 1989, 29898, 29939, 29897, 13, 4706, 528, 786, 29653, 29918, 2909, 353, 1383, 29884, 29925, 29653, 10967, 580, 13, 13, 4706, 565, 338, 11197, 29918, 272, 29918, 1989, 1275, 525, 275, 11197, 2396, 13, 9651, 528, 786, 29653, 29918, 2909, 29889, 4478, 29918, 1609, 29918, 275, 11197, 29898, 29939, 29897, 13, 4706, 1683, 29901, 13, 9651, 528, 786, 29653, 29918, 2909, 29889, 4478, 29918, 1609, 29918, 26766, 29898, 29939, 29892, 3488, 29897, 13, 13, 4706, 396, 8977, 31415, 710, 13, 4706, 8277, 29889, 5589, 29898, 845, 786, 29653, 29918, 2909, 29892, 29939, 29897, 13, 4706, 396, 2457, 4390, 29889, 29881, 17204, 29898, 12733, 29892, 2322, 353, 14013, 288, 29901, 288, 17255, 8977, 1649, 29897, 13, 4706, 396, 2457, 4390, 29889, 29881, 17204, 29898, 12733, 511, 29906, 29900, 29900, 29892, 10998, 3051, 29899, 1853, 22099, 6214, 29914, 3126, 10827, 13, 13, 1678, 1683, 584, 13, 4706, 11013, 877, 233, 147, 159, 31836, 31057, 236, 151, 177, 30578, 31745, 235, 178, 178, 1495, 13, 4706, 396, 2457, 4390, 1598, 29898, 689, 29889, 12523, 29897, 13, 1678, 736, 4050, 29918, 6886, 877, 4478, 29918, 2914, 29889, 1420, 742, 12733, 29922, 12733, 29892, 689, 29922, 689, 29897, 13, 13, 13, 29992, 2676, 29889, 13134, 11219, 2909, 29914, 29966, 275, 11197, 20690, 16432, 1495, 13, 1753, 3143, 29918, 16432, 29898, 275, 11197, 1125, 13, 1678, 756, 29918, 262, 29918, 29887, 17741, 353, 7700, 13, 1678, 756, 29918, 262, 29918, 29893, 17006, 353, 7700, 13, 13, 1678, 396, 29871, 30683, 31900, 234, 180, 144, 235, 178, 169, 30993, 30354, 30763, 13, 1678, 528, 786, 29653, 29918, 2909, 353, 1383, 29884, 29925, 29653, 10967, 580, 13, 1678, 528, 786, 29653, 29918, 2909, 29889, 4478, 29918, 1609, 29918, 275, 11197, 29898, 275, 11197, 29897, 13, 1678, 3143, 353, 6726, 15166, 29898, 845, 786, 29653, 29918, 2909, 29889, 4102, 29897, 13, 13, 1678, 565, 1857, 29918, 1792, 29889, 275, 29918, 27218, 630, 29901, 13, 4706, 565, 402, 2027, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 5416, 29922, 3784, 29918, 1792, 29889, 333, 29892, 338, 11197, 29922, 275, 11197, 29892, 13, 462, 18884, 15241, 29922, 8824, 467, 4102, 7295, 13, 9651, 756, 29918, 262, 29918, 29887, 17741, 353, 5852, 13, 4706, 565, 399, 728, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 5416, 29922, 3784, 29918, 1792, 29889, 333, 29892, 338, 11197, 29922, 275, 11197, 29892, 13, 462, 18884, 15241, 29922, 8824, 467, 4102, 7295, 13, 9651, 756, 29918, 262, 29918, 29893, 17006, 353, 5852, 13, 13, 1678, 11302, 29918, 29887, 17741, 353, 402, 2027, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 275, 11197, 29922, 275, 11197, 29892, 15241, 29922, 8824, 467, 497, 580, 13, 1678, 11302, 29918, 29893, 17006, 353, 399, 728, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 275, 11197, 29922, 275, 11197, 29892, 15241, 29922, 8824, 467, 497, 580, 13, 13, 1678, 11302, 29918, 29887, 17741, 29918, 4299, 353, 27226, 3401, 29898, 3018, 311, 29918, 29887, 17741, 29897, 13, 1678, 11302, 29918, 29893, 17006, 29918, 4299, 353, 27226, 3401, 29898, 3018, 311, 29918, 29893, 17006, 29897, 13, 13, 1678, 736, 4050, 29918, 6886, 877, 2909, 29918, 16432, 29889, 1420, 742, 3143, 29922, 2909, 29892, 28688, 29922, 3018, 311, 29918, 29893, 17006, 29918, 4299, 29892, 13, 462, 965, 330, 17741, 29922, 3018, 311, 29918, 29887, 17741, 29918, 4299, 29892, 756, 29918, 262, 29918, 29893, 17006, 29922, 5349, 29918, 262, 29918, 29893, 17006, 29892, 756, 29918, 262, 29918, 29887, 17741, 29922, 5349, 29918, 262, 29918, 29887, 17741, 29897, 13, 12008, 13, 29992, 2676, 29889, 13134, 11219, 12199, 1495, 13, 1753, 22172, 7295, 13, 1678, 736, 525, 12199, 29915, 13, 12008, 13, 13, 12008, 13, 29992, 2676, 29889, 13134, 11219, 1688, 1495, 13, 1753, 1243, 7295, 13, 1678, 364, 353, 426, 13, 4706, 525, 978, 22099, 19165, 742, 13, 4706, 525, 482, 22099, 29896, 29947, 29915, 13, 1678, 500, 13, 1678, 11013, 877, 29961, 29939, 29892, 29874, 29892, 29883, 29962, 742, 7320, 353, 525, 29939, 1495, 13, 1678, 11013, 877, 27137, 7340, 742, 7320, 353, 525, 29874, 1495, 13, 13, 1678, 736, 4050, 29918, 6886, 877, 1688, 29889, 1420, 742, 1272, 353, 29878, 29897, 13, 12008, 2 ]
sort-array-by-parity-ii/sort-array-by-parity-ii.py
Atri10/Leet-code---Atri_Patel
1
1608496
<gh_stars>1-10 class Solution: def sortArrayByParityII(self, nums: List[int]) -> List[int]: ans = [] even = 0 odd = 1 for i in nums: if i%2==0:ans.insert(even,i);even +=2 else:ans.insert(odd,i);odd +=2 return ans
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 24380, 29901, 13, 1678, 822, 2656, 2588, 2059, 2177, 537, 2687, 29898, 1311, 29892, 954, 29879, 29901, 2391, 29961, 524, 2314, 1599, 2391, 29961, 524, 5387, 13, 4706, 6063, 353, 5159, 13, 4706, 1584, 353, 29871, 29900, 13, 4706, 7736, 353, 29871, 29896, 13, 4706, 363, 474, 297, 954, 29879, 29901, 13, 9651, 565, 474, 29995, 29906, 1360, 29900, 29901, 550, 29889, 7851, 29898, 11884, 29892, 29875, 416, 11884, 4619, 29906, 13, 9651, 1683, 29901, 550, 29889, 7851, 29898, 22861, 29892, 29875, 416, 22861, 4619, 29906, 13, 4706, 736, 6063, 2 ]
aoc/2015/p18-2.py
neizod/problems
1
1609200
<gh_stars>1-10 #!/usr/bin/env python3 def fix_corner(grid): for y in [0, -1]: for x in [0, -1]: grid[y][x] = True def surround(grid, x, y): for dy in [-1, 0, 1]: for dx in [-1, 0, 1]: if (dx, dy) == (0, 0): continue if 0 <= x+dx < len(grid[0]) and 0 <= y+dy < len(grid): yield grid[y+dy][x+dx] def increment(grid): new_grid = [[None for _ in range(len(grid[0]))] for _ in range(len(grid))] for y, line in enumerate(grid): for x, current in enumerate(line): if current: new_grid[y][x] = sum(surround(grid, x, y)) in {2, 3} else: new_grid[y][x] = sum(surround(grid, x, y)) == 3 fix_corner(new_grid) return new_grid def main(): steps = 100 grid = [[c == '#' for c in input().strip()] for _ in range(100)] fix_corner(grid) for i in range(steps): grid = increment(grid) print(sum(i for line in grid for i in line)) if __name__ == '__main__': main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 13, 1753, 2329, 29918, 2616, 1089, 29898, 7720, 1125, 13, 1678, 363, 343, 297, 518, 29900, 29892, 448, 29896, 5387, 13, 4706, 363, 921, 297, 518, 29900, 29892, 448, 29896, 5387, 13, 9651, 6856, 29961, 29891, 3816, 29916, 29962, 353, 5852, 13, 13, 13, 1753, 8388, 618, 29898, 7720, 29892, 921, 29892, 343, 1125, 13, 1678, 363, 13475, 297, 21069, 29896, 29892, 29871, 29900, 29892, 29871, 29896, 5387, 13, 4706, 363, 15414, 297, 21069, 29896, 29892, 29871, 29900, 29892, 29871, 29896, 5387, 13, 9651, 565, 313, 8235, 29892, 13475, 29897, 1275, 313, 29900, 29892, 29871, 29900, 1125, 13, 18884, 6773, 13, 9651, 565, 29871, 29900, 5277, 921, 29974, 8235, 529, 7431, 29898, 7720, 29961, 29900, 2314, 322, 29871, 29900, 5277, 343, 29974, 4518, 529, 7431, 29898, 7720, 1125, 13, 18884, 7709, 6856, 29961, 29891, 29974, 4518, 3816, 29916, 29974, 8235, 29962, 13, 13, 13, 1753, 11924, 29898, 7720, 1125, 13, 1678, 716, 29918, 7720, 353, 5519, 8516, 363, 903, 297, 3464, 29898, 2435, 29898, 7720, 29961, 29900, 12622, 29962, 363, 903, 297, 3464, 29898, 2435, 29898, 7720, 28166, 13, 1678, 363, 343, 29892, 1196, 297, 26985, 29898, 7720, 1125, 13, 4706, 363, 921, 29892, 1857, 297, 26985, 29898, 1220, 1125, 13, 9651, 565, 1857, 29901, 13, 18884, 716, 29918, 7720, 29961, 29891, 3816, 29916, 29962, 353, 2533, 29898, 29879, 1038, 618, 29898, 7720, 29892, 921, 29892, 343, 876, 297, 426, 29906, 29892, 29871, 29941, 29913, 13, 9651, 1683, 29901, 13, 18884, 716, 29918, 7720, 29961, 29891, 3816, 29916, 29962, 353, 2533, 29898, 29879, 1038, 618, 29898, 7720, 29892, 921, 29892, 343, 876, 1275, 29871, 29941, 13, 1678, 2329, 29918, 2616, 1089, 29898, 1482, 29918, 7720, 29897, 13, 1678, 736, 716, 29918, 7720, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 6576, 353, 29871, 29896, 29900, 29900, 13, 1678, 6856, 353, 5519, 29883, 1275, 16321, 29915, 363, 274, 297, 1881, 2141, 17010, 580, 29962, 363, 903, 297, 3464, 29898, 29896, 29900, 29900, 4638, 13, 1678, 2329, 29918, 2616, 1089, 29898, 7720, 29897, 13, 1678, 363, 474, 297, 3464, 29898, 24530, 1125, 13, 4706, 6856, 353, 11924, 29898, 7720, 29897, 13, 1678, 1596, 29898, 2083, 29898, 29875, 363, 1196, 297, 6856, 363, 474, 297, 1196, 876, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
edb/edgeql/compiler/inference/cardinality.py
ambv/edgedb
4
179926
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from __future__ import annotations from typing import * import enum import functools from edb import errors from edb.edgeql import qltypes from edb.schema import objtypes as s_objtypes from edb.schema import pointers as s_pointers from edb.ir import ast as irast from edb.ir import utils as irutils from .. import context if TYPE_CHECKING: from edb.schema import constraints as s_constr AT_MOST_ONE = qltypes.Cardinality.AT_MOST_ONE ONE = qltypes.Cardinality.ONE MANY = qltypes.Cardinality.MANY AT_LEAST_ONE = qltypes.Cardinality.AT_LEAST_ONE class CardinalityBound(int, enum.Enum): '''This enum is used to perform some of the cardinality operations.''' ZERO = 0 ONE = 1 MANY = 2 def as_required(self) -> bool: return self is CB_ONE def as_schema_cardinality(self) -> qltypes.SchemaCardinality: if self is CB_MANY: return qltypes.SchemaCardinality.MANY else: return qltypes.SchemaCardinality.ONE @classmethod def from_required(cls, required: bool) -> CardinalityBound: return CB_ONE if required else CB_ZERO @classmethod def from_schema_value( cls, card: qltypes.SchemaCardinality ) -> CardinalityBound: if card is qltypes.SchemaCardinality.MANY: return CB_MANY else: return CB_ONE CB_ZERO = CardinalityBound.ZERO CB_ONE = CardinalityBound.ONE CB_MANY = CardinalityBound.MANY def _card_to_bounds( card: qltypes.Cardinality ) -> Tuple[CardinalityBound, CardinalityBound]: lower, upper = card.to_schema_value() return ( CardinalityBound.from_required(lower), CardinalityBound.from_schema_value(upper), ) def _bounds_to_card( lower: CardinalityBound, upper: CardinalityBound, ) -> qltypes.Cardinality: return qltypes.Cardinality.from_schema_value( lower.as_required(), upper.as_schema_cardinality(), ) def _get_set_scope( ir_set: irast.Set, scope_tree: irast.ScopeTreeNode) -> irast.ScopeTreeNode: if ir_set.path_scope_id: new_scope = scope_tree.root.find_by_unique_id(ir_set.path_scope_id) if new_scope is None: raise errors.InternalServerError( f'dangling scope pointer to node with uid' f':{ir_set.path_scope_id} in {ir_set!r}' ) else: new_scope = scope_tree return new_scope def cartesian_cardinality( args: Iterable[qltypes.Cardinality], ) -> qltypes.Cardinality: '''Cardinality of Cartesian product of multiple args.''' card = list(zip(*(_card_to_bounds(a) for a in args))) if card: lower, upper = card return _bounds_to_card(min(lower), max(upper)) else: # no args is indicative of a empty set return AT_MOST_ONE def max_cardinality( args: Iterable[qltypes.Cardinality], ) -> qltypes.Cardinality: '''Maximum lower and upper bound of specified cardinalities.''' card = list(zip(*(_card_to_bounds(a) for a in args))) if card: lower, upper = card return _bounds_to_card(max(lower), max(upper)) else: # no args is indicative of a empty set return AT_MOST_ONE def _union_cardinality( args: Iterable[qltypes.Cardinality], ) -> qltypes.Cardinality: '''Cardinality of UNION of multiple args.''' card = list(zip(*(_card_to_bounds(a) for a in args))) if card: lower, upper = card return _bounds_to_card( max(lower), CB_MANY if len(upper) > 1 else upper[0], ) else: # no args is indicative of a empty set return AT_MOST_ONE def _coalesce_cardinality( args: Iterable[qltypes.Cardinality], ) -> qltypes.Cardinality: '''Cardinality of ?? of multiple args.''' card = list(zip(*(_card_to_bounds(a) for a in args))) if card: lower, upper = card return _bounds_to_card(max(lower), max(upper)) else: # no args is indicative of a empty set return AT_MOST_ONE def _common_cardinality( args: Iterable[irast.Base], scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return cartesian_cardinality( infer_cardinality( a, scope_tree=scope_tree, singletons=singletons, env=env ) for a in args ) @functools.singledispatch def _infer_cardinality( ir: irast.Expr, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: raise ValueError(f'infer_cardinality: cannot handle {ir!r}') @_infer_cardinality.register def __infer_none( ir: None, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: # Here for debugging purposes. raise ValueError('invalid infer_cardinality(None, schema) call') @_infer_cardinality.register def __infer_statement( ir: irast.Statement, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return infer_cardinality( ir.expr, scope_tree=scope_tree, singletons=singletons, env=env) @_infer_cardinality.register def __infer_config_insert( ir: irast.ConfigInsert, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return infer_cardinality( ir.expr, scope_tree=scope_tree, singletons=singletons, env=env) @_infer_cardinality.register def __infer_emptyset( ir: irast.EmptySet, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return AT_MOST_ONE @_infer_cardinality.register def __infer_typeref( ir: irast.TypeRef, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return AT_MOST_ONE @_infer_cardinality.register def __infer_type_introspection( ir: irast.TypeIntrospection, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return ONE def _find_visible( ir: irast.Set, scope_tree: irast.ScopeTreeNode, env: context.Environment, ) -> Optional[irast.ScopeTreeNode]: parent_fence = scope_tree.parent_fence if parent_fence is not None: if scope_tree.namespaces: path_id = ir.path_id.strip_namespace(scope_tree.namespaces) else: path_id = ir.path_id return parent_fence.find_visible(path_id) else: return None @_infer_cardinality.register def __infer_set( ir: irast.Set, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.path_id in singletons: return ONE if (node := _find_visible(ir, scope_tree, env)) is not None: return AT_MOST_ONE if node.optional else ONE rptr = ir.rptr if rptr is not None: rptrref = rptr.ptrref if isinstance(rptrref, irast.TypeIntersectionPointerRef): ind_prefix, ind_ptrs = irutils.collapse_type_intersection(ir) new_scope = _get_set_scope(ir, scope_tree) if ind_prefix.rptr is None: prefix_card = infer_cardinality( ind_prefix, scope_tree=new_scope, singletons=singletons, env=env, ) return cartesian_cardinality([prefix_card, AT_MOST_ONE]) else: # Expression before type intersection is a path, # i.e Foo.<bar[IS Type]. In this case we must # take possible intersection specialization of the # link union into account. # We're basically restating the body of this function # in this block, but with extra conditions. if _find_visible(ind_prefix, new_scope, env) is not None: return AT_MOST_ONE else: rptr_spec: Set[irast.PointerRef] = set() for ind_ptr in ind_ptrs: rptr_spec.update(ind_ptr.ptrref.rptr_specialization) rptr_spec_card = _union_cardinality( s.dir_cardinality for s in rptr_spec) base_card = infer_cardinality( rptr.source, scope_tree=new_scope, singletons=singletons, env=env, ) # The resulting cardinality is the cartesian # product of the base to which the type # intersection is applied and the cardinality due # to type intersection itself. return cartesian_cardinality([base_card, rptr_spec_card]) else: if rptrref.union_components: # We use cartesian cardinality instead of union cardinality # because the union of pointers in this context is disjoint # in a sense that for any specific source only a given union # component is used. rptrref_card = cartesian_cardinality( c.dir_cardinality for c in rptrref.union_components ) else: rptrref_card = rptrref.dir_cardinality if rptrref_card.is_single(): new_scope = _get_set_scope(ir, scope_tree) source_card = infer_cardinality( rptr.source, scope_tree=new_scope, singletons=singletons, env=env, ) return cartesian_cardinality((source_card, rptrref_card)) else: return MANY elif ir.expr is not None: new_scope = _get_set_scope(ir, scope_tree) return infer_cardinality( ir.expr, scope_tree=new_scope, singletons=singletons, env=env, ) else: return MANY @_infer_cardinality.register def __infer_func_call( ir: irast.FunctionCall, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: # the cardinality of the function call depends on the cardinality # of non-SET_OF arguments AND the cardinality of the function # return value SET_OF = qltypes.TypeModifier.SET_OF if ir.typemod is SET_OF: return MANY else: args = [] # process positional args for arg, typemod in zip(ir.args, ir.params_typemods): if typemod is not SET_OF: args.append(arg.expr) if args: return _common_cardinality( args, scope_tree=scope_tree, singletons=singletons, env=env, ) else: if ir.typemod is qltypes.TypeModifier.OPTIONAL: return AT_MOST_ONE else: return ONE @_infer_cardinality.register def __infer_oper_call( ir: irast.OperatorCall, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.func_shortname == 'std::UNION': # UNION needs to "add up" cardinalities. return _union_cardinality( infer_cardinality( a.expr, scope_tree=scope_tree, singletons=singletons, env=env ) for a in ir.args ) elif ir.func_shortname == 'std::??': # Coalescing takes the maximum of both lower and upper bounds. return _coalesce_cardinality( infer_cardinality( a.expr, scope_tree=scope_tree, singletons=singletons, env=env ) for a in ir.args ) else: args: List[irast.Base] = [] all_optional = False if ir.typemod is qltypes.TypeModifier.SET_OF: # this is DISTINCT and IF..ELSE args = [a.expr for a in ir.args] else: all_optional = True for arg, typemod in zip(ir.args, ir.params_typemods): if typemod is not qltypes.TypeModifier.SET_OF: all_optional &= typemod is qltypes.TypeModifier.OPTIONAL args.append(arg.expr) if args: card = _common_cardinality( args, scope_tree=scope_tree, singletons=singletons, env=env, ) if all_optional: # An operator that has all optional arguments and # doesn't return a SET OF returns at least ONE result # (we currently don't have operators that return # OPTIONAL). So we upgrade the lower bound. _, upper = _card_to_bounds(card) card = _bounds_to_card(CB_ONE, upper) return card else: return AT_MOST_ONE @_infer_cardinality.register def __infer_const( ir: irast.BaseConstant, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return ONE @_infer_cardinality.register def __infer_param( ir: irast.Parameter, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return ONE if ir.required else AT_MOST_ONE @_infer_cardinality.register def __infer_const_set( ir: irast.ConstantSet, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return ONE if len(ir.elements) == 1 else AT_LEAST_ONE @_infer_cardinality.register def __infer_typecheckop( ir: irast.TypeCheckOp, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return infer_cardinality( ir.left, scope_tree=scope_tree, singletons=singletons, env=env, ) @_infer_cardinality.register def __infer_typecast( ir: irast.TypeCast, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return infer_cardinality( ir.expr, scope_tree=scope_tree, singletons=singletons, env=env, ) def _is_ptr_or_self_ref( ir_expr: irast.Base, result_expr: irast.Set, env: context.Environment, ) -> bool: if not isinstance(ir_expr, irast.Set): return False else: ir_set = ir_expr srccls = env.set_types[result_expr] return ( isinstance(srccls, s_objtypes.ObjectType) and ir_set.expr is None and (env.set_types[ir_set] == srccls or ( ir_set.rptr is not None and srccls.getptr( env.schema, ir_set.rptr.ptrref.shortname.name) is not None )) ) def extract_filters( result_set: irast.Set, filter_set: irast.Set, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, *, # When strict=False, ignore any clauses in the filter_set we don't # care about. If True, return None if any exist. strict: bool = False, ) -> Optional[Sequence[Tuple[s_pointers.Pointer, irast.Set]]]: schema = env.schema scope_tree = _get_set_scope(filter_set, scope_tree) ptr: s_pointers.Pointer expr = filter_set.expr if isinstance(expr, irast.OperatorCall): if expr.func_shortname == 'std::=': left, right = (a.expr for a in expr.args) op_card = _common_cardinality( [left, right], scope_tree=scope_tree, singletons=singletons, env=env, ) result_stype = env.set_types[result_set] if op_card.is_multi(): pass elif _is_ptr_or_self_ref(left, result_set, env): if infer_cardinality( right, scope_tree=scope_tree, singletons=singletons, env=env, ).is_single(): left_stype = env.set_types[left] if left_stype == result_stype: assert isinstance(left_stype, s_objtypes.ObjectType) _ptr = left_stype.getptr(schema, 'id') else: _ptr = env.schema.get(left.rptr.ptrref.name) assert isinstance(_ptr, s_pointers.Pointer) ptr = _ptr return [(ptr, right)] elif _is_ptr_or_self_ref(right, result_set, env): if infer_cardinality( left, scope_tree=scope_tree, singletons=singletons, env=env, ).is_single(): right_stype = env.set_types[right] if right_stype == result_stype: assert isinstance(right_stype, s_objtypes.ObjectType) _ptr = right_stype.getptr(schema, 'id') else: _ptr = env.schema.get(right.rptr.ptrref.name) assert isinstance(_ptr, s_pointers.Pointer) ptr = _ptr return [(ptr, right)] elif expr.func_shortname == 'std::AND': left, right = (a.expr for a in expr.args) left_filters = extract_filters( result_set, left, scope_tree, singletons, env ) right_filters = extract_filters( result_set, right, scope_tree, singletons, env ) ptr_filters: List[Tuple[s_pointers.Pointer, irast.Set]] = [] if left_filters is not None: ptr_filters.extend(left_filters) elif strict: return None if right_filters is not None: ptr_filters.extend(right_filters) elif strict: return None return ptr_filters return None def _analyse_filter_clause( result_set: irast.Set, result_card: qltypes.Cardinality, filter_clause: irast.Set, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: schema = env.schema filtered_ptrs = extract_filters( result_set, filter_clause, scope_tree, singletons, env) if filtered_ptrs: exclusive_constr: s_constr.Constraint = schema.get('std::exclusive') for ptr, _ in filtered_ptrs: ptr = ptr.get_nearest_non_derived_parent(env.schema) is_unique = ( ptr.is_id_pointer(schema) or any(c.issubclass(schema, exclusive_constr) for c in ptr.get_constraints(schema).objects(schema)) ) if is_unique: # Bingo, got an equality filter on a link with a # unique constraint return AT_MOST_ONE return result_card def _infer_stmt_cardinality( result_set: irast.Set, filter_clause: Optional[irast.Set], scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: result_card = infer_cardinality( result_set, scope_tree=scope_tree, singletons=singletons, env=env, ) if result_card.is_single() or filter_clause is None: return result_card return _analyse_filter_clause( result_set, result_card, filter_clause, scope_tree, singletons, env) @_infer_cardinality.register def __infer_select_stmt( ir: irast.SelectStmt, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.cardinality: return ir.cardinality else: if (ir.limit is not None and isinstance(ir.limit.expr, irast.IntegerConstant) and ir.limit.expr.value == '1'): # Explicit LIMIT 1 clause. stmt_card = AT_MOST_ONE else: stmt_card = _infer_stmt_cardinality( ir.result, ir.where, scope_tree=scope_tree, singletons=singletons, env=env, ) if ir.iterator_stmt: iter_card = infer_cardinality( ir.iterator_stmt, scope_tree=scope_tree, singletons=singletons, env=env, ) stmt_card = cartesian_cardinality((stmt_card, iter_card)) return stmt_card @_infer_cardinality.register def __infer_insert_stmt( ir: irast.InsertStmt, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.cardinality: return ir.cardinality else: if ir.iterator_stmt: # XXX: is this branch ever invoked? return infer_cardinality( ir.iterator_stmt, scope_tree=scope_tree, singletons=singletons, env=env, ) else: # INSERT without a FOR is always a singleton. return ONE @_infer_cardinality.register def __infer_update_stmt( ir: irast.UpdateStmt, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.cardinality: return ir.cardinality else: stmt_card = _infer_stmt_cardinality( ir.subject, ir.where, scope_tree=scope_tree, singletons=singletons, env=env, ) if ir.iterator_stmt: iter_card = infer_cardinality( ir.iterator_stmt, scope_tree=scope_tree, singletons=singletons, env=env, ) stmt_card = cartesian_cardinality((stmt_card, iter_card)) return stmt_card @_infer_cardinality.register def __infer_delete_stmt( ir: irast.DeleteStmt, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.cardinality: return ir.cardinality else: stmt_card = _infer_stmt_cardinality( ir.subject, None, singletons=singletons, scope_tree=scope_tree, env=env, ) if ir.iterator_stmt: iter_card = infer_cardinality( ir.iterator_stmt, scope_tree=scope_tree, singletons=singletons, env=env, ) stmt_card = cartesian_cardinality((stmt_card, iter_card)) return stmt_card @_infer_cardinality.register def __infer_stmt( ir: irast.Stmt, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: if ir.cardinality: return ir.cardinality else: return infer_cardinality( ir.result, scope_tree=scope_tree, singletons=singletons, env=env, ) @_infer_cardinality.register def __infer_slice( ir: irast.SliceIndirection, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: # slice indirection cardinality depends on the cardinality of # the base expression and the slice index expressions args = [ir.expr] if ir.start is not None: args.append(ir.start) if ir.stop is not None: args.append(ir.stop) return _common_cardinality( args, scope_tree=scope_tree, singletons=singletons, env=env, ) @_infer_cardinality.register def __infer_index( ir: irast.IndexIndirection, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: # index indirection cardinality depends on both the cardinality of # the base expression and the index expression return _common_cardinality( [ir.expr, ir.index], scope_tree=scope_tree, singletons=singletons, env=env, ) @_infer_cardinality.register def __infer_array( ir: irast.Array, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return _common_cardinality( ir.elements, scope_tree=scope_tree, singletons=singletons, env=env, ) @_infer_cardinality.register def __infer_tuple( ir: irast.Tuple, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId], env: context.Environment, ) -> qltypes.Cardinality: return _common_cardinality( [el.val for el in ir.elements], scope_tree=scope_tree, singletons=singletons, env=env, ) def infer_cardinality( ir: irast.Base, *, scope_tree: irast.ScopeTreeNode, singletons: Collection[irast.PathId] = (), env: context.Environment, ) -> qltypes.Cardinality: result = env.inferred_cardinality.get((ir, scope_tree)) if result is not None: return result result = _infer_cardinality( ir, scope_tree=scope_tree, singletons=singletons, env=env, ) if result not in {AT_MOST_ONE, ONE, MANY, AT_LEAST_ONE}: raise errors.QueryError( 'could not determine the cardinality of ' 'set produced by expression', context=ir.context) env.inferred_cardinality[ir, scope_tree] = result return result def is_subset_cardinality( card0: qltypes.Cardinality, card1: qltypes.Cardinality ) -> bool: '''Determine if card0 is a subset of card1.''' l0, u0 = _card_to_bounds(card0) l1, u1 = _card_to_bounds(card1) return l0 >= l1 and u0 <= u1
[ 1, 396, 13, 29937, 910, 2752, 934, 338, 760, 310, 278, 21086, 4051, 1722, 2752, 2060, 29889, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29900, 29947, 29899, 6338, 26494, 7264, 9266, 29889, 322, 278, 21086, 4051, 15717, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 29937, 13, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 25495, 13, 3166, 19229, 1053, 334, 13, 13, 5215, 14115, 13, 5215, 2090, 312, 8789, 13, 13, 3166, 1226, 29890, 1053, 4436, 13, 13, 3166, 1226, 29890, 29889, 12864, 1519, 1053, 29871, 1519, 8768, 13, 13, 3166, 1226, 29890, 29889, 11010, 1053, 5446, 8768, 408, 269, 29918, 5415, 8768, 13, 3166, 1226, 29890, 29889, 11010, 1053, 12589, 408, 269, 29918, 17226, 29879, 13, 13, 3166, 1226, 29890, 29889, 381, 1053, 8717, 408, 3805, 579, 13, 3166, 1226, 29890, 29889, 381, 1053, 3667, 29879, 408, 3805, 13239, 13, 13, 3166, 6317, 1053, 3030, 13, 13, 361, 323, 6959, 29918, 3210, 16658, 4214, 29901, 13, 1678, 515, 1226, 29890, 29889, 11010, 1053, 11938, 408, 269, 29918, 535, 710, 13, 13, 13, 1299, 29918, 29924, 3718, 29918, 12413, 353, 29871, 1519, 8768, 29889, 13200, 979, 537, 29889, 1299, 29918, 29924, 3718, 29918, 12413, 13, 12413, 353, 29871, 1519, 8768, 29889, 13200, 979, 537, 29889, 12413, 13, 27616, 29979, 353, 29871, 1519, 8768, 29889, 13200, 979, 537, 29889, 27616, 29979, 13, 1299, 29918, 1307, 28938, 29918, 12413, 353, 29871, 1519, 8768, 29889, 13200, 979, 537, 29889, 1299, 29918, 1307, 28938, 29918, 12413, 13, 13, 13, 1990, 9160, 979, 537, 17109, 29898, 524, 29892, 14115, 29889, 16854, 1125, 13, 1678, 14550, 4013, 14115, 338, 1304, 304, 2189, 777, 310, 278, 21008, 537, 6931, 29889, 12008, 13, 1678, 796, 1001, 29949, 353, 29871, 29900, 13, 1678, 6732, 29923, 353, 29871, 29896, 13, 1678, 341, 2190, 29979, 353, 29871, 29906, 13, 13, 1678, 822, 408, 29918, 12403, 29898, 1311, 29897, 1599, 6120, 29901, 13, 4706, 736, 1583, 338, 315, 29933, 29918, 12413, 13, 13, 1678, 822, 408, 29918, 11010, 29918, 7543, 979, 537, 29898, 1311, 29897, 1599, 29871, 1519, 8768, 29889, 12763, 13200, 979, 537, 29901, 13, 4706, 565, 1583, 338, 315, 29933, 29918, 27616, 29979, 29901, 13, 9651, 736, 29871, 1519, 8768, 29889, 12763, 13200, 979, 537, 29889, 27616, 29979, 13, 4706, 1683, 29901, 13, 9651, 736, 29871, 1519, 8768, 29889, 12763, 13200, 979, 537, 29889, 12413, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 12403, 29898, 25932, 29892, 3734, 29901, 6120, 29897, 1599, 9160, 979, 537, 17109, 29901, 13, 4706, 736, 315, 29933, 29918, 12413, 565, 3734, 1683, 315, 29933, 29918, 29999, 1001, 29949, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 11010, 29918, 1767, 29898, 13, 4706, 1067, 29879, 29892, 13, 4706, 5881, 29901, 29871, 1519, 8768, 29889, 12763, 13200, 979, 537, 13, 1678, 1723, 1599, 9160, 979, 537, 17109, 29901, 13, 4706, 565, 5881, 338, 29871, 1519, 8768, 29889, 12763, 13200, 979, 537, 29889, 27616, 29979, 29901, 13, 9651, 736, 315, 29933, 29918, 27616, 29979, 13, 4706, 1683, 29901, 13, 9651, 736, 315, 29933, 29918, 12413, 13, 13, 13, 21685, 29918, 29999, 1001, 29949, 353, 9160, 979, 537, 17109, 29889, 29999, 1001, 29949, 13, 21685, 29918, 12413, 353, 9160, 979, 537, 17109, 29889, 12413, 13, 21685, 29918, 27616, 29979, 353, 9160, 979, 537, 17109, 29889, 27616, 29979, 13, 13, 13, 1753, 903, 7543, 29918, 517, 29918, 23687, 29898, 13, 1678, 5881, 29901, 29871, 1519, 8768, 29889, 13200, 979, 537, 13, 29897, 1599, 12603, 552, 29961, 13200, 979, 537, 17109, 29892, 9160, 979, 537, 17109, 5387, 13, 1678, 5224, 29892, 7568, 353, 5881, 29889, 517, 29918, 11010, 29918, 1767, 580, 13, 1678, 736, 313, 13, 4706, 9160, 979, 537, 17109, 29889, 3166, 29918, 12403, 29898, 13609, 511, 13, 4706, 9160, 979, 537, 17109, 29889, 3166, 29918, 11010, 29918, 1767, 29898, 21064, 511, 13, 1678, 1723, 13, 13, 13, 1753, 903, 23687, 29918, 517, 29918, 7543, 29898, 13, 1678, 5224, 29901, 9160, 979, 537, 17109, 29892, 13, 1678, 7568, 29901, 9160, 979, 537, 17109, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 29871, 1519, 8768, 29889, 13200, 979, 537, 29889, 3166, 29918, 11010, 29918, 1767, 29898, 13, 4706, 5224, 29889, 294, 29918, 12403, 3285, 13, 4706, 7568, 29889, 294, 29918, 11010, 29918, 7543, 979, 537, 3285, 13, 1678, 1723, 13, 13, 13, 1753, 903, 657, 29918, 842, 29918, 6078, 29898, 13, 4706, 3805, 29918, 842, 29901, 3805, 579, 29889, 2697, 29892, 13, 4706, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29897, 1599, 3805, 579, 29889, 15289, 9643, 4247, 29901, 13, 13, 1678, 565, 3805, 29918, 842, 29889, 2084, 29918, 6078, 29918, 333, 29901, 13, 4706, 716, 29918, 6078, 353, 6874, 29918, 8336, 29889, 4632, 29889, 2886, 29918, 1609, 29918, 13092, 29918, 333, 29898, 381, 29918, 842, 29889, 2084, 29918, 6078, 29918, 333, 29897, 13, 4706, 565, 716, 29918, 6078, 338, 6213, 29901, 13, 9651, 12020, 4436, 29889, 16491, 6004, 2392, 29898, 13, 18884, 285, 29915, 29881, 574, 1847, 6874, 4879, 304, 2943, 411, 318, 333, 29915, 13, 18884, 285, 2396, 29912, 381, 29918, 842, 29889, 2084, 29918, 6078, 29918, 333, 29913, 297, 426, 381, 29918, 842, 29991, 29878, 10162, 13, 9651, 1723, 13, 1678, 1683, 29901, 13, 4706, 716, 29918, 6078, 353, 6874, 29918, 8336, 13, 13, 1678, 736, 716, 29918, 6078, 13, 13, 13, 1753, 7774, 18970, 29918, 7543, 979, 537, 29898, 13, 1678, 6389, 29901, 20504, 519, 29961, 1519, 8768, 29889, 13200, 979, 537, 1402, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 14550, 13200, 979, 537, 310, 12370, 18970, 3234, 310, 2999, 6389, 29889, 12008, 13, 13, 1678, 5881, 353, 1051, 29898, 7554, 10456, 7373, 7543, 29918, 517, 29918, 23687, 29898, 29874, 29897, 363, 263, 297, 6389, 4961, 13, 1678, 565, 5881, 29901, 13, 4706, 5224, 29892, 7568, 353, 5881, 13, 4706, 736, 903, 23687, 29918, 517, 29918, 7543, 29898, 1195, 29898, 13609, 511, 4236, 29898, 21064, 876, 13, 1678, 1683, 29901, 13, 4706, 396, 694, 6389, 338, 4221, 1230, 310, 263, 4069, 731, 13, 4706, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 1753, 4236, 29918, 7543, 979, 537, 29898, 13, 1678, 6389, 29901, 20504, 519, 29961, 1519, 8768, 29889, 13200, 979, 537, 1402, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 14550, 7976, 12539, 5224, 322, 7568, 3216, 310, 6790, 21008, 1907, 29889, 12008, 13, 13, 1678, 5881, 353, 1051, 29898, 7554, 10456, 7373, 7543, 29918, 517, 29918, 23687, 29898, 29874, 29897, 363, 263, 297, 6389, 4961, 13, 1678, 565, 5881, 29901, 13, 4706, 5224, 29892, 7568, 353, 5881, 13, 4706, 736, 903, 23687, 29918, 517, 29918, 7543, 29898, 3317, 29898, 13609, 511, 4236, 29898, 21064, 876, 13, 1678, 1683, 29901, 13, 4706, 396, 694, 6389, 338, 4221, 1230, 310, 263, 4069, 731, 13, 4706, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 1753, 903, 13094, 29918, 7543, 979, 537, 29898, 13, 1678, 6389, 29901, 20504, 519, 29961, 1519, 8768, 29889, 13200, 979, 537, 1402, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 14550, 13200, 979, 537, 310, 25919, 310, 2999, 6389, 29889, 12008, 13, 13, 1678, 5881, 353, 1051, 29898, 7554, 10456, 7373, 7543, 29918, 517, 29918, 23687, 29898, 29874, 29897, 363, 263, 297, 6389, 4961, 13, 1678, 565, 5881, 29901, 13, 4706, 5224, 29892, 7568, 353, 5881, 13, 4706, 736, 903, 23687, 29918, 517, 29918, 7543, 29898, 13, 9651, 4236, 29898, 13609, 511, 13, 9651, 315, 29933, 29918, 27616, 29979, 565, 7431, 29898, 21064, 29897, 1405, 29871, 29896, 1683, 7568, 29961, 29900, 1402, 13, 4706, 1723, 13, 1678, 1683, 29901, 13, 4706, 396, 694, 6389, 338, 4221, 1230, 310, 263, 4069, 731, 13, 4706, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 1753, 903, 1111, 2122, 346, 29918, 7543, 979, 537, 29898, 13, 1678, 6389, 29901, 20504, 519, 29961, 1519, 8768, 29889, 13200, 979, 537, 1402, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 14550, 13200, 979, 537, 310, 13626, 310, 2999, 6389, 29889, 12008, 13, 13, 1678, 5881, 353, 1051, 29898, 7554, 10456, 7373, 7543, 29918, 517, 29918, 23687, 29898, 29874, 29897, 363, 263, 297, 6389, 4961, 13, 1678, 565, 5881, 29901, 13, 4706, 5224, 29892, 7568, 353, 5881, 13, 4706, 736, 903, 23687, 29918, 517, 29918, 7543, 29898, 3317, 29898, 13609, 511, 4236, 29898, 21064, 876, 13, 1678, 1683, 29901, 13, 4706, 396, 694, 6389, 338, 4221, 1230, 310, 263, 4069, 731, 13, 4706, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 1753, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 1678, 6389, 29901, 20504, 519, 29961, 381, 579, 29889, 5160, 1402, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 7774, 18970, 29918, 7543, 979, 537, 29898, 13, 4706, 10115, 29918, 7543, 979, 537, 29898, 13, 9651, 263, 29892, 13, 9651, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 9651, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 9651, 8829, 29922, 6272, 13, 4706, 1723, 363, 263, 297, 6389, 13, 1678, 1723, 13, 13, 13, 29992, 7692, 312, 8789, 29889, 2976, 839, 275, 5041, 13, 1753, 903, 262, 571, 29918, 7543, 979, 537, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 21176, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 12020, 7865, 2392, 29898, 29888, 29915, 262, 571, 29918, 7543, 979, 537, 29901, 2609, 4386, 426, 381, 29991, 29878, 29913, 1495, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 9290, 29898, 13, 1678, 3805, 29901, 6213, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 396, 2266, 363, 13490, 11976, 29889, 13, 1678, 12020, 7865, 2392, 877, 20965, 10115, 29918, 7543, 979, 537, 29898, 8516, 29892, 10938, 29897, 1246, 1495, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 20788, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 14473, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 4706, 3805, 29889, 13338, 29892, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 8829, 29922, 6272, 29897, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 2917, 29918, 7851, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 3991, 17491, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 4706, 3805, 29889, 13338, 29892, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 8829, 29922, 6272, 29897, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 26153, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 8915, 2697, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 22449, 406, 29888, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 1542, 5620, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 1853, 29918, 524, 1883, 27988, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 1542, 2928, 1883, 27988, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 6732, 29923, 13, 13, 13, 1753, 903, 2886, 29918, 12872, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 28379, 29961, 381, 579, 29889, 15289, 9643, 4247, 5387, 13, 1678, 3847, 29918, 29888, 663, 353, 6874, 29918, 8336, 29889, 3560, 29918, 29888, 663, 13, 1678, 565, 3847, 29918, 29888, 663, 338, 451, 6213, 29901, 13, 4706, 565, 6874, 29918, 8336, 29889, 7039, 22459, 29901, 13, 9651, 2224, 29918, 333, 353, 3805, 29889, 2084, 29918, 333, 29889, 17010, 29918, 22377, 29898, 6078, 29918, 8336, 29889, 7039, 22459, 29897, 13, 4706, 1683, 29901, 13, 9651, 2224, 29918, 333, 353, 3805, 29889, 2084, 29918, 333, 13, 13, 4706, 736, 3847, 29918, 29888, 663, 29889, 2886, 29918, 12872, 29898, 2084, 29918, 333, 29897, 13, 1678, 1683, 29901, 13, 4706, 736, 6213, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 842, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 2084, 29918, 333, 297, 1809, 1026, 787, 29901, 13, 4706, 736, 6732, 29923, 13, 1678, 565, 313, 3177, 3490, 903, 2886, 29918, 12872, 29898, 381, 29892, 6874, 29918, 8336, 29892, 8829, 876, 338, 451, 6213, 29901, 13, 4706, 736, 15531, 29918, 29924, 3718, 29918, 12413, 565, 2943, 29889, 25253, 1683, 6732, 29923, 13, 13, 1678, 364, 7414, 353, 3805, 29889, 29878, 7414, 13, 1678, 565, 364, 7414, 338, 451, 6213, 29901, 13, 13, 4706, 364, 7414, 999, 353, 364, 7414, 29889, 7414, 999, 13, 4706, 565, 338, 8758, 29898, 29878, 7414, 999, 29892, 3805, 579, 29889, 1542, 4074, 2042, 14516, 5620, 1125, 13, 9651, 1399, 29918, 13506, 29892, 1399, 29918, 415, 2288, 353, 3805, 13239, 29889, 27756, 29918, 1853, 29918, 1639, 2042, 29898, 381, 29897, 13, 9651, 716, 29918, 6078, 353, 903, 657, 29918, 842, 29918, 6078, 29898, 381, 29892, 6874, 29918, 8336, 29897, 13, 9651, 565, 1399, 29918, 13506, 29889, 29878, 7414, 338, 6213, 29901, 13, 18884, 10944, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 462, 1678, 1399, 29918, 13506, 29892, 13, 462, 1678, 6874, 29918, 8336, 29922, 1482, 29918, 6078, 29892, 13, 462, 1678, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 462, 1678, 8829, 29922, 6272, 29892, 13, 18884, 1723, 13, 13, 18884, 736, 7774, 18970, 29918, 7543, 979, 537, 4197, 13506, 29918, 7543, 29892, 15531, 29918, 29924, 3718, 29918, 12413, 2314, 13, 9651, 1683, 29901, 13, 18884, 396, 21444, 1434, 1134, 17686, 338, 263, 2224, 29892, 13, 18884, 396, 474, 29889, 29872, 13679, 19423, 1646, 29961, 3235, 5167, 1822, 29871, 512, 445, 1206, 591, 1818, 13, 18884, 396, 2125, 1950, 17686, 4266, 2133, 310, 278, 13, 18884, 396, 1544, 9833, 964, 3633, 29889, 13, 18884, 396, 1334, 29915, 276, 8830, 1791, 1218, 278, 3573, 310, 445, 740, 13, 18884, 396, 297, 445, 2908, 29892, 541, 411, 4805, 5855, 29889, 13, 18884, 565, 903, 2886, 29918, 12872, 29898, 513, 29918, 13506, 29892, 716, 29918, 6078, 29892, 8829, 29897, 338, 451, 6213, 29901, 13, 462, 1678, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 18884, 1683, 29901, 13, 462, 1678, 364, 7414, 29918, 6550, 29901, 3789, 29961, 381, 579, 29889, 14516, 5620, 29962, 353, 731, 580, 13, 462, 1678, 363, 1399, 29918, 7414, 297, 1399, 29918, 415, 2288, 29901, 13, 462, 4706, 364, 7414, 29918, 6550, 29889, 5504, 29898, 513, 29918, 7414, 29889, 7414, 999, 29889, 29878, 7414, 29918, 18732, 2133, 29897, 13, 13, 462, 1678, 364, 7414, 29918, 6550, 29918, 7543, 353, 903, 13094, 29918, 7543, 979, 537, 29898, 13, 462, 4706, 269, 29889, 3972, 29918, 7543, 979, 537, 363, 269, 297, 364, 7414, 29918, 6550, 29897, 13, 462, 1678, 2967, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 462, 4706, 364, 7414, 29889, 4993, 29892, 13, 462, 4706, 6874, 29918, 8336, 29922, 1482, 29918, 6078, 29892, 13, 462, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 462, 4706, 8829, 29922, 6272, 29892, 13, 462, 1678, 1723, 13, 13, 462, 1678, 396, 450, 9819, 21008, 537, 338, 278, 7774, 18970, 13, 462, 1678, 396, 3234, 310, 278, 2967, 304, 607, 278, 1134, 13, 462, 1678, 396, 17686, 338, 7436, 322, 278, 21008, 537, 2861, 13, 462, 1678, 396, 304, 1134, 17686, 3528, 29889, 13, 462, 1678, 736, 7774, 18970, 29918, 7543, 979, 537, 4197, 3188, 29918, 7543, 29892, 364, 7414, 29918, 6550, 29918, 7543, 2314, 13, 13, 4706, 1683, 29901, 13, 9651, 565, 364, 7414, 999, 29889, 13094, 29918, 14036, 29901, 13, 18884, 396, 1334, 671, 7774, 18970, 21008, 537, 2012, 310, 9833, 21008, 537, 13, 18884, 396, 1363, 278, 9833, 310, 12589, 297, 445, 3030, 338, 766, 12090, 13, 18884, 396, 297, 263, 4060, 393, 363, 738, 2702, 2752, 871, 263, 2183, 9833, 13, 18884, 396, 4163, 338, 1304, 29889, 13, 18884, 364, 7414, 999, 29918, 7543, 353, 7774, 18970, 29918, 7543, 979, 537, 29898, 13, 462, 1678, 274, 29889, 3972, 29918, 7543, 979, 537, 363, 274, 297, 364, 7414, 999, 29889, 13094, 29918, 14036, 13, 18884, 1723, 13, 9651, 1683, 29901, 13, 18884, 364, 7414, 999, 29918, 7543, 353, 364, 7414, 999, 29889, 3972, 29918, 7543, 979, 537, 13, 13, 9651, 565, 364, 7414, 999, 29918, 7543, 29889, 275, 29918, 14369, 7295, 13, 18884, 716, 29918, 6078, 353, 903, 657, 29918, 842, 29918, 6078, 29898, 381, 29892, 6874, 29918, 8336, 29897, 13, 18884, 2752, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 462, 1678, 364, 7414, 29889, 4993, 29892, 13, 462, 1678, 6874, 29918, 8336, 29922, 1482, 29918, 6078, 29892, 13, 462, 1678, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 462, 1678, 8829, 29922, 6272, 29892, 13, 18884, 1723, 13, 18884, 736, 7774, 18970, 29918, 7543, 979, 537, 3552, 4993, 29918, 7543, 29892, 364, 7414, 999, 29918, 7543, 876, 13, 9651, 1683, 29901, 13, 18884, 736, 341, 2190, 29979, 13, 1678, 25342, 3805, 29889, 13338, 338, 451, 6213, 29901, 13, 4706, 716, 29918, 6078, 353, 903, 657, 29918, 842, 29918, 6078, 29898, 381, 29892, 6874, 29918, 8336, 29897, 13, 4706, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 9651, 3805, 29889, 13338, 29892, 13, 9651, 6874, 29918, 8336, 29922, 1482, 29918, 6078, 29892, 13, 9651, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 9651, 8829, 29922, 6272, 29892, 13, 4706, 1723, 13, 1678, 1683, 29901, 13, 4706, 736, 341, 2190, 29979, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 9891, 29918, 4804, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 6678, 5594, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 396, 278, 21008, 537, 310, 278, 740, 1246, 7111, 373, 278, 21008, 537, 13, 1678, 396, 310, 1661, 29899, 10490, 29918, 9800, 6273, 5300, 278, 21008, 537, 310, 278, 740, 13, 1678, 396, 736, 995, 13, 1678, 11368, 29918, 9800, 353, 29871, 1519, 8768, 29889, 1542, 2111, 3709, 29889, 10490, 29918, 9800, 13, 1678, 565, 3805, 29889, 22449, 331, 397, 338, 11368, 29918, 9800, 29901, 13, 4706, 736, 341, 2190, 29979, 13, 1678, 1683, 29901, 13, 4706, 6389, 353, 5159, 13, 4706, 396, 1889, 2602, 284, 6389, 13, 4706, 363, 1852, 29892, 2393, 331, 397, 297, 14319, 29898, 381, 29889, 5085, 29892, 3805, 29889, 7529, 29918, 22449, 331, 19653, 1125, 13, 9651, 565, 2393, 331, 397, 338, 451, 11368, 29918, 9800, 29901, 13, 18884, 6389, 29889, 4397, 29898, 1191, 29889, 13338, 29897, 13, 13, 4706, 565, 6389, 29901, 13, 9651, 736, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 18884, 6389, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 4706, 1683, 29901, 13, 9651, 565, 3805, 29889, 22449, 331, 397, 338, 29871, 1519, 8768, 29889, 1542, 2111, 3709, 29889, 14094, 2725, 1964, 29901, 13, 18884, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 9651, 1683, 29901, 13, 18884, 736, 6732, 29923, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 3372, 29918, 4804, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 26486, 5594, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 9891, 29918, 12759, 978, 1275, 525, 4172, 1057, 3904, 2725, 2396, 13, 4706, 396, 25919, 4225, 304, 376, 1202, 701, 29908, 21008, 1907, 29889, 13, 4706, 736, 903, 13094, 29918, 7543, 979, 537, 29898, 13, 9651, 10115, 29918, 7543, 979, 537, 29898, 13, 18884, 263, 29889, 13338, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 13, 9651, 1723, 363, 263, 297, 3805, 29889, 5085, 13, 4706, 1723, 13, 1678, 25342, 3805, 29889, 9891, 29918, 12759, 978, 1275, 525, 4172, 1057, 8773, 2396, 13, 4706, 396, 3189, 2122, 3277, 4893, 278, 7472, 310, 1716, 5224, 322, 7568, 13451, 29889, 13, 4706, 736, 903, 1111, 2122, 346, 29918, 7543, 979, 537, 29898, 13, 9651, 10115, 29918, 7543, 979, 537, 29898, 13, 18884, 263, 29889, 13338, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 13, 9651, 1723, 363, 263, 297, 3805, 29889, 5085, 13, 4706, 1723, 13, 1678, 1683, 29901, 13, 4706, 6389, 29901, 2391, 29961, 381, 579, 29889, 5160, 29962, 353, 5159, 13, 4706, 599, 29918, 25253, 353, 7700, 13, 13, 4706, 565, 3805, 29889, 22449, 331, 397, 338, 29871, 1519, 8768, 29889, 1542, 2111, 3709, 29889, 10490, 29918, 9800, 29901, 13, 9651, 396, 445, 338, 360, 9047, 28852, 322, 10762, 636, 6670, 1660, 13, 9651, 6389, 353, 518, 29874, 29889, 13338, 363, 263, 297, 3805, 29889, 5085, 29962, 13, 4706, 1683, 29901, 13, 9651, 599, 29918, 25253, 353, 5852, 13, 9651, 363, 1852, 29892, 2393, 331, 397, 297, 14319, 29898, 381, 29889, 5085, 29892, 3805, 29889, 7529, 29918, 22449, 331, 19653, 1125, 13, 18884, 565, 2393, 331, 397, 338, 451, 29871, 1519, 8768, 29889, 1542, 2111, 3709, 29889, 10490, 29918, 9800, 29901, 13, 462, 1678, 599, 29918, 25253, 7878, 2393, 331, 397, 338, 29871, 1519, 8768, 29889, 1542, 2111, 3709, 29889, 14094, 2725, 1964, 13, 462, 1678, 6389, 29889, 4397, 29898, 1191, 29889, 13338, 29897, 13, 13, 4706, 565, 6389, 29901, 13, 9651, 5881, 353, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 18884, 6389, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 9651, 565, 599, 29918, 25253, 29901, 13, 18884, 396, 530, 5455, 393, 756, 599, 13136, 6273, 322, 13, 18884, 396, 1838, 29915, 29873, 736, 263, 11368, 8079, 3639, 472, 3203, 6732, 29923, 1121, 13, 18884, 396, 313, 705, 5279, 1016, 29915, 29873, 505, 12768, 393, 736, 13, 18884, 396, 6418, 29911, 2725, 1964, 467, 1105, 591, 14955, 278, 5224, 3216, 29889, 13, 18884, 17117, 7568, 353, 903, 7543, 29918, 517, 29918, 23687, 29898, 7543, 29897, 13, 18884, 5881, 353, 903, 23687, 29918, 517, 29918, 7543, 29898, 21685, 29918, 12413, 29892, 7568, 29897, 13, 13, 9651, 736, 5881, 13, 4706, 1683, 29901, 13, 9651, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 3075, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 5160, 12075, 424, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 6732, 29923, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 3207, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 9329, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 6732, 29923, 565, 3805, 29889, 12403, 1683, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 3075, 29918, 842, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 12075, 424, 2697, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 6732, 29923, 565, 7431, 29898, 381, 29889, 17664, 29897, 1275, 29871, 29896, 1683, 15531, 29918, 1307, 28938, 29918, 12413, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 1853, 3198, 459, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 1542, 5596, 11746, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 4706, 3805, 29889, 1563, 29892, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 1853, 4384, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 1542, 15738, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 4706, 3805, 29889, 13338, 29892, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 13, 1753, 903, 275, 29918, 7414, 29918, 272, 29918, 1311, 29918, 999, 29898, 13, 1678, 3805, 29918, 13338, 29901, 3805, 579, 29889, 5160, 29892, 13, 1678, 1121, 29918, 13338, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 6120, 29901, 13, 1678, 565, 451, 338, 8758, 29898, 381, 29918, 13338, 29892, 3805, 579, 29889, 2697, 1125, 13, 4706, 736, 7700, 13, 1678, 1683, 29901, 13, 4706, 3805, 29918, 842, 353, 3805, 29918, 13338, 13, 4706, 27236, 617, 3137, 353, 8829, 29889, 842, 29918, 8768, 29961, 2914, 29918, 13338, 29962, 13, 13, 4706, 736, 313, 13, 9651, 338, 8758, 29898, 21935, 617, 3137, 29892, 269, 29918, 5415, 8768, 29889, 2061, 1542, 29897, 322, 13, 9651, 3805, 29918, 842, 29889, 13338, 338, 6213, 322, 13, 9651, 313, 6272, 29889, 842, 29918, 8768, 29961, 381, 29918, 842, 29962, 1275, 27236, 617, 3137, 470, 313, 13, 18884, 3805, 29918, 842, 29889, 29878, 7414, 338, 451, 6213, 322, 13, 18884, 27236, 617, 3137, 29889, 657, 7414, 29898, 13, 462, 1678, 8829, 29889, 11010, 29892, 13, 462, 1678, 3805, 29918, 842, 29889, 29878, 7414, 29889, 7414, 999, 29889, 12759, 978, 29889, 978, 29897, 338, 451, 6213, 13, 632, 876, 13, 4706, 1723, 13, 13, 13, 1753, 6597, 29918, 26705, 29898, 13, 1678, 1121, 29918, 842, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 4175, 29918, 842, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 1678, 334, 29892, 13, 1678, 396, 1932, 9406, 29922, 8824, 29892, 11455, 738, 3711, 6394, 297, 278, 4175, 29918, 842, 591, 1016, 29915, 29873, 13, 1678, 396, 2562, 1048, 29889, 960, 5852, 29892, 736, 6213, 565, 738, 1863, 29889, 13, 1678, 9406, 29901, 6120, 353, 7700, 29892, 13, 29897, 1599, 28379, 29961, 20529, 29961, 23215, 552, 29961, 29879, 29918, 17226, 29879, 29889, 14516, 29892, 3805, 579, 29889, 2697, 5262, 5387, 13, 13, 1678, 10938, 353, 8829, 29889, 11010, 13, 1678, 6874, 29918, 8336, 353, 903, 657, 29918, 842, 29918, 6078, 29898, 4572, 29918, 842, 29892, 6874, 29918, 8336, 29897, 13, 13, 1678, 23246, 29901, 269, 29918, 17226, 29879, 29889, 14516, 13, 13, 1678, 22010, 353, 4175, 29918, 842, 29889, 13338, 13, 1678, 565, 338, 8758, 29898, 13338, 29892, 3805, 579, 29889, 26486, 5594, 1125, 13, 4706, 565, 22010, 29889, 9891, 29918, 12759, 978, 1275, 525, 4172, 1057, 29922, 2396, 13, 9651, 2175, 29892, 1492, 353, 313, 29874, 29889, 13338, 363, 263, 297, 22010, 29889, 5085, 29897, 13, 13, 9651, 1015, 29918, 7543, 353, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 18884, 518, 1563, 29892, 1492, 1402, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 9651, 1121, 29918, 303, 668, 353, 8829, 29889, 842, 29918, 8768, 29961, 2914, 29918, 842, 29962, 13, 13, 9651, 565, 1015, 29918, 7543, 29889, 275, 29918, 9910, 7295, 13, 18884, 1209, 13, 13, 9651, 25342, 903, 275, 29918, 7414, 29918, 272, 29918, 1311, 29918, 999, 29898, 1563, 29892, 1121, 29918, 842, 29892, 8829, 1125, 13, 18884, 565, 10115, 29918, 7543, 979, 537, 29898, 13, 462, 1678, 1492, 29892, 13, 462, 1678, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 462, 1678, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 462, 1678, 8829, 29922, 6272, 29892, 13, 18884, 13742, 275, 29918, 14369, 7295, 13, 462, 1678, 2175, 29918, 303, 668, 353, 8829, 29889, 842, 29918, 8768, 29961, 1563, 29962, 13, 462, 1678, 565, 2175, 29918, 303, 668, 1275, 1121, 29918, 303, 668, 29901, 13, 462, 4706, 4974, 338, 8758, 29898, 1563, 29918, 303, 668, 29892, 269, 29918, 5415, 8768, 29889, 2061, 1542, 29897, 13, 462, 4706, 903, 7414, 353, 2175, 29918, 303, 668, 29889, 657, 7414, 29898, 11010, 29892, 525, 333, 1495, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 903, 7414, 353, 8829, 29889, 11010, 29889, 657, 29898, 1563, 29889, 29878, 7414, 29889, 7414, 999, 29889, 978, 29897, 13, 13, 462, 1678, 4974, 338, 8758, 7373, 7414, 29892, 269, 29918, 17226, 29879, 29889, 14516, 29897, 13, 462, 1678, 23246, 353, 903, 7414, 13, 13, 462, 1678, 736, 17288, 7414, 29892, 1492, 4638, 13, 13, 9651, 25342, 903, 275, 29918, 7414, 29918, 272, 29918, 1311, 29918, 999, 29898, 1266, 29892, 1121, 29918, 842, 29892, 8829, 1125, 13, 18884, 565, 10115, 29918, 7543, 979, 537, 29898, 13, 462, 1678, 2175, 29892, 13, 462, 1678, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 462, 1678, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 462, 1678, 8829, 29922, 6272, 29892, 13, 18884, 13742, 275, 29918, 14369, 7295, 13, 462, 1678, 1492, 29918, 303, 668, 353, 8829, 29889, 842, 29918, 8768, 29961, 1266, 29962, 13, 462, 1678, 565, 1492, 29918, 303, 668, 1275, 1121, 29918, 303, 668, 29901, 13, 462, 4706, 4974, 338, 8758, 29898, 1266, 29918, 303, 668, 29892, 269, 29918, 5415, 8768, 29889, 2061, 1542, 29897, 13, 462, 4706, 903, 7414, 353, 1492, 29918, 303, 668, 29889, 657, 7414, 29898, 11010, 29892, 525, 333, 1495, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 903, 7414, 353, 8829, 29889, 11010, 29889, 657, 29898, 1266, 29889, 29878, 7414, 29889, 7414, 999, 29889, 978, 29897, 13, 13, 462, 1678, 4974, 338, 8758, 7373, 7414, 29892, 269, 29918, 17226, 29879, 29889, 14516, 29897, 13, 462, 1678, 23246, 353, 903, 7414, 13, 13, 462, 1678, 736, 17288, 7414, 29892, 1492, 4638, 13, 13, 4706, 25342, 22010, 29889, 9891, 29918, 12759, 978, 1275, 525, 4172, 1057, 9468, 2396, 13, 9651, 2175, 29892, 1492, 353, 313, 29874, 29889, 13338, 363, 263, 297, 22010, 29889, 5085, 29897, 13, 13, 9651, 2175, 29918, 26705, 353, 6597, 29918, 26705, 29898, 13, 18884, 1121, 29918, 842, 29892, 2175, 29892, 6874, 29918, 8336, 29892, 1809, 1026, 787, 29892, 8829, 13, 9651, 1723, 13, 9651, 1492, 29918, 26705, 353, 6597, 29918, 26705, 29898, 13, 18884, 1121, 29918, 842, 29892, 1492, 29892, 6874, 29918, 8336, 29892, 1809, 1026, 787, 29892, 8829, 13, 9651, 1723, 13, 13, 9651, 23246, 29918, 26705, 29901, 2391, 29961, 23215, 552, 29961, 29879, 29918, 17226, 29879, 29889, 14516, 29892, 3805, 579, 29889, 2697, 5262, 353, 5159, 13, 9651, 565, 2175, 29918, 26705, 338, 451, 6213, 29901, 13, 18884, 23246, 29918, 26705, 29889, 21843, 29898, 1563, 29918, 26705, 29897, 13, 9651, 25342, 9406, 29901, 13, 18884, 736, 6213, 13, 9651, 565, 1492, 29918, 26705, 338, 451, 6213, 29901, 13, 18884, 23246, 29918, 26705, 29889, 21843, 29898, 1266, 29918, 26705, 29897, 13, 9651, 25342, 9406, 29901, 13, 18884, 736, 6213, 13, 13, 9651, 736, 23246, 29918, 26705, 13, 13, 1678, 736, 6213, 13, 13, 13, 1753, 903, 24209, 344, 29918, 4572, 29918, 16398, 1509, 29898, 13, 1678, 1121, 29918, 842, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 1121, 29918, 7543, 29901, 29871, 1519, 8768, 29889, 13200, 979, 537, 29892, 13, 1678, 4175, 29918, 16398, 1509, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 13, 1678, 10938, 353, 8829, 29889, 11010, 13, 1678, 22289, 29918, 415, 2288, 353, 6597, 29918, 26705, 29898, 13, 4706, 1121, 29918, 842, 29892, 4175, 29918, 16398, 1509, 29892, 6874, 29918, 8336, 29892, 1809, 1026, 787, 29892, 8829, 29897, 13, 13, 1678, 565, 22289, 29918, 415, 2288, 29901, 13, 4706, 29192, 29918, 535, 710, 29901, 269, 29918, 535, 710, 29889, 21529, 353, 10938, 29889, 657, 877, 4172, 1057, 735, 7009, 573, 1495, 13, 13, 4706, 363, 23246, 29892, 903, 297, 22289, 29918, 415, 2288, 29901, 13, 9651, 23246, 353, 23246, 29889, 657, 29918, 28502, 342, 29918, 5464, 29918, 672, 2347, 29918, 3560, 29898, 6272, 29889, 11010, 29897, 13, 9651, 338, 29918, 13092, 353, 313, 13, 18884, 23246, 29889, 275, 29918, 333, 29918, 17226, 29898, 11010, 29897, 470, 13, 18884, 738, 29898, 29883, 29889, 790, 431, 1990, 29898, 11010, 29892, 29192, 29918, 535, 710, 29897, 13, 462, 1678, 363, 274, 297, 23246, 29889, 657, 29918, 13646, 29879, 29898, 11010, 467, 12650, 29898, 11010, 876, 13, 9651, 1723, 13, 9651, 565, 338, 29918, 13092, 29901, 13, 18884, 396, 350, 20191, 29892, 2355, 385, 17193, 4175, 373, 263, 1544, 411, 263, 13, 18884, 396, 5412, 7276, 13, 18884, 736, 15531, 29918, 29924, 3718, 29918, 12413, 13, 13, 1678, 736, 1121, 29918, 7543, 13, 13, 13, 1753, 903, 262, 571, 29918, 17868, 29918, 7543, 979, 537, 29898, 13, 1678, 1121, 29918, 842, 29901, 3805, 579, 29889, 2697, 29892, 13, 1678, 4175, 29918, 16398, 1509, 29901, 28379, 29961, 381, 579, 29889, 2697, 1402, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 1121, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 4706, 1121, 29918, 842, 29892, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 1678, 565, 1121, 29918, 7543, 29889, 275, 29918, 14369, 580, 470, 4175, 29918, 16398, 1509, 338, 6213, 29901, 13, 4706, 736, 1121, 29918, 7543, 13, 13, 1678, 736, 903, 24209, 344, 29918, 4572, 29918, 16398, 1509, 29898, 13, 4706, 1121, 29918, 842, 29892, 1121, 29918, 7543, 29892, 4175, 29918, 16398, 1509, 29892, 6874, 29918, 8336, 29892, 1809, 1026, 787, 29892, 8829, 29897, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 2622, 29918, 17868, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 3549, 855, 4378, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 7543, 979, 537, 29901, 13, 4706, 736, 3805, 29889, 7543, 979, 537, 13, 1678, 1683, 29901, 13, 4706, 565, 313, 381, 29889, 13400, 338, 451, 6213, 322, 13, 18884, 338, 8758, 29898, 381, 29889, 13400, 29889, 13338, 29892, 3805, 579, 29889, 7798, 12075, 424, 29897, 322, 13, 18884, 3805, 29889, 13400, 29889, 13338, 29889, 1767, 1275, 525, 29896, 29374, 13, 9651, 396, 12027, 4019, 27848, 29871, 29896, 11845, 29889, 13, 9651, 380, 4378, 29918, 7543, 353, 15531, 29918, 29924, 3718, 29918, 12413, 13, 4706, 1683, 29901, 13, 9651, 380, 4378, 29918, 7543, 353, 903, 262, 571, 29918, 17868, 29918, 7543, 979, 537, 29898, 13, 18884, 3805, 29889, 2914, 29892, 13, 18884, 3805, 29889, 3062, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 13, 4706, 565, 3805, 29889, 17609, 29918, 17868, 29901, 13, 9651, 4256, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 18884, 3805, 29889, 17609, 29918, 17868, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 9651, 380, 4378, 29918, 7543, 353, 7774, 18970, 29918, 7543, 979, 537, 3552, 17868, 29918, 7543, 29892, 4256, 29918, 7543, 876, 13, 13, 4706, 736, 380, 4378, 29918, 7543, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 7851, 29918, 17868, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 17491, 855, 4378, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 7543, 979, 537, 29901, 13, 4706, 736, 3805, 29889, 7543, 979, 537, 13, 1678, 1683, 29901, 13, 4706, 565, 3805, 29889, 17609, 29918, 17868, 29901, 13, 9651, 396, 22615, 29901, 338, 445, 5443, 3926, 22336, 29973, 13, 9651, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 18884, 3805, 29889, 17609, 29918, 17868, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 4706, 1683, 29901, 13, 9651, 396, 14482, 1728, 263, 15842, 338, 2337, 263, 27130, 29889, 13, 9651, 736, 6732, 29923, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 5504, 29918, 17868, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 6422, 855, 4378, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 7543, 979, 537, 29901, 13, 4706, 736, 3805, 29889, 7543, 979, 537, 13, 1678, 1683, 29901, 13, 4706, 380, 4378, 29918, 7543, 353, 903, 262, 571, 29918, 17868, 29918, 7543, 979, 537, 29898, 13, 9651, 3805, 29889, 16009, 29892, 13, 9651, 3805, 29889, 3062, 29892, 13, 9651, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 9651, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 9651, 8829, 29922, 6272, 29892, 13, 4706, 1723, 13, 13, 4706, 565, 3805, 29889, 17609, 29918, 17868, 29901, 13, 9651, 4256, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 18884, 3805, 29889, 17609, 29918, 17868, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 9651, 380, 4378, 29918, 7543, 353, 7774, 18970, 29918, 7543, 979, 537, 3552, 17868, 29918, 7543, 29892, 4256, 29918, 7543, 876, 13, 13, 4706, 736, 380, 4378, 29918, 7543, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 8143, 29918, 17868, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 12498, 855, 4378, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 7543, 979, 537, 29901, 13, 4706, 736, 3805, 29889, 7543, 979, 537, 13, 1678, 1683, 29901, 13, 4706, 380, 4378, 29918, 7543, 353, 903, 262, 571, 29918, 17868, 29918, 7543, 979, 537, 29898, 13, 9651, 3805, 29889, 16009, 29892, 13, 9651, 6213, 29892, 13, 9651, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 9651, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 9651, 8829, 29922, 6272, 29892, 13, 4706, 1723, 13, 13, 4706, 565, 3805, 29889, 17609, 29918, 17868, 29901, 13, 9651, 4256, 29918, 7543, 353, 10115, 29918, 7543, 979, 537, 29898, 13, 18884, 3805, 29889, 17609, 29918, 17868, 29892, 13, 18884, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 18884, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 18884, 8829, 29922, 6272, 29892, 13, 9651, 1723, 13, 9651, 380, 4378, 29918, 7543, 353, 7774, 18970, 29918, 7543, 979, 537, 3552, 17868, 29918, 7543, 29892, 4256, 29918, 7543, 876, 13, 13, 4706, 736, 380, 4378, 29918, 7543, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 17868, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 855, 4378, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 565, 3805, 29889, 7543, 979, 537, 29901, 13, 4706, 736, 3805, 29889, 7543, 979, 537, 13, 1678, 1683, 29901, 13, 4706, 736, 10115, 29918, 7543, 979, 537, 29898, 13, 9651, 3805, 29889, 2914, 29892, 13, 9651, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 9651, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 9651, 8829, 29922, 6272, 29892, 13, 4706, 1723, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 18337, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 29903, 5897, 2568, 8684, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 396, 22780, 1399, 8684, 21008, 537, 7111, 373, 278, 21008, 537, 310, 13, 1678, 396, 278, 2967, 4603, 322, 278, 22780, 2380, 12241, 13, 1678, 6389, 353, 518, 381, 29889, 13338, 29962, 13, 1678, 565, 3805, 29889, 2962, 338, 451, 6213, 29901, 13, 4706, 6389, 29889, 4397, 29898, 381, 29889, 2962, 29897, 13, 1678, 565, 3805, 29889, 9847, 338, 451, 6213, 29901, 13, 4706, 6389, 29889, 4397, 29898, 381, 29889, 9847, 29897, 13, 13, 1678, 736, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 4706, 6389, 29892, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 2248, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 3220, 2568, 8684, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 396, 2380, 1399, 8684, 21008, 537, 7111, 373, 1716, 278, 21008, 537, 310, 13, 1678, 396, 278, 2967, 4603, 322, 278, 2380, 4603, 13, 1678, 736, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 4706, 518, 381, 29889, 13338, 29892, 3805, 29889, 2248, 1402, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 2378, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 2588, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 4706, 3805, 29889, 17664, 29892, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 13, 29992, 29918, 262, 571, 29918, 7543, 979, 537, 29889, 9573, 13, 1753, 4770, 262, 571, 29918, 23583, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 23215, 552, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 1402, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 736, 903, 9435, 29918, 7543, 979, 537, 29898, 13, 4706, 518, 295, 29889, 791, 363, 560, 297, 3805, 29889, 17664, 1402, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 13, 1753, 10115, 29918, 7543, 979, 537, 29898, 13, 1678, 3805, 29901, 3805, 579, 29889, 5160, 29892, 13, 1678, 334, 29892, 13, 1678, 6874, 29918, 8336, 29901, 3805, 579, 29889, 15289, 9643, 4247, 29892, 13, 1678, 1809, 1026, 787, 29901, 14348, 29961, 381, 579, 29889, 2605, 1204, 29962, 353, 313, 511, 13, 1678, 8829, 29901, 3030, 29889, 18649, 29892, 13, 29897, 1599, 29871, 1519, 8768, 29889, 13200, 979, 537, 29901, 13, 1678, 1121, 353, 8829, 29889, 262, 14373, 29918, 7543, 979, 537, 29889, 657, 3552, 381, 29892, 6874, 29918, 8336, 876, 13, 1678, 565, 1121, 338, 451, 6213, 29901, 13, 4706, 736, 1121, 13, 13, 1678, 1121, 353, 903, 262, 571, 29918, 7543, 979, 537, 29898, 13, 4706, 3805, 29892, 13, 4706, 6874, 29918, 8336, 29922, 6078, 29918, 8336, 29892, 13, 4706, 1809, 1026, 787, 29922, 2976, 1026, 787, 29892, 13, 4706, 8829, 29922, 6272, 29892, 13, 1678, 1723, 13, 13, 1678, 565, 1121, 451, 297, 426, 1299, 29918, 29924, 3718, 29918, 12413, 29892, 6732, 29923, 29892, 341, 2190, 29979, 29892, 15531, 29918, 1307, 28938, 29918, 12413, 6177, 13, 4706, 12020, 4436, 29889, 3010, 2392, 29898, 13, 9651, 525, 26680, 451, 8161, 278, 21008, 537, 310, 525, 13, 9651, 525, 842, 7371, 491, 4603, 742, 13, 9651, 3030, 29922, 381, 29889, 4703, 29897, 13, 13, 1678, 8829, 29889, 262, 14373, 29918, 7543, 979, 537, 29961, 381, 29892, 6874, 29918, 8336, 29962, 353, 1121, 13, 13, 1678, 736, 1121, 13, 13, 13, 1753, 338, 29918, 6484, 29918, 7543, 979, 537, 29898, 13, 1678, 5881, 29900, 29901, 29871, 1519, 8768, 29889, 13200, 979, 537, 29892, 13, 1678, 5881, 29896, 29901, 29871, 1519, 8768, 29889, 13200, 979, 537, 13, 29897, 1599, 6120, 29901, 13, 1678, 14550, 6362, 837, 457, 565, 5881, 29900, 338, 263, 11306, 310, 5881, 29896, 29889, 12008, 13, 1678, 301, 29900, 29892, 318, 29900, 353, 903, 7543, 29918, 517, 29918, 23687, 29898, 7543, 29900, 29897, 13, 1678, 301, 29896, 29892, 318, 29896, 353, 903, 7543, 29918, 517, 29918, 23687, 29898, 7543, 29896, 29897, 13, 13, 1678, 736, 301, 29900, 6736, 301, 29896, 322, 318, 29900, 5277, 318, 29896, 13, 2 ]
mafia_tally/config.py
auscompgeek/mafia-tally
0
142949
<filename>mafia_tally/config.py import json import os from typing import Dict, Set import werkzeug.security config_dir = os.path.join(os.path.dirname(__file__), '..', 'config') get_path = lambda filename: os.path.join(config_dir, filename) day_config_file = get_path('day.json') access_token_file = get_path('access_token.txt') players_file = get_path('players.txt') admin_passhash_file = get_path('passhash.txt') group_id: int = 328346913872436 # lol let's hardcode this post_id: int day_id: int cutoff: str players: Set[str] pics: Dict[str, str] def get_access_token() -> str: with open(access_token_file) as f: return f.read().strip() def get_passhash() -> str: with open(admin_passhash_file) as f: return f.read().strip() def check_admin_password(password: str) -> bool: return werkzeug.security.check_password_hash(get_passhash(), password) def load_day_config(): global post_id global day_id global cutoff with open(day_config_file) as f: day_info = json.load(f) post_id = day_info['post_id'] day_id = day_info['day_id'] cutoff = day_info['cutoff'] def get_players() -> Set[str]: with open(players_file) as f: return set(map(str.strip, f)) def load_players(): global players players = get_players() def load_pics(): global pics with open(get_path('pics.json')) as f: pics = json.load(f) def load(): load_day_config() load_players() load_pics() def save_day_config(): with open(day_config_file, 'w') as f: json.dump( {'post_id': post_id, 'day_id': day_id, 'cutoff': cutoff}, f, indent='\t' ) def save_players(): with open(players_file, 'w') as f: print(*players, sep='\n', file=f) def save(): save_day_config() save_players() load()
[ 1, 529, 9507, 29958, 655, 29888, 423, 29918, 29873, 635, 29914, 2917, 29889, 2272, 13, 5215, 4390, 13, 5215, 2897, 13, 3166, 19229, 1053, 360, 919, 29892, 3789, 13, 13, 5215, 23085, 13289, 29889, 8926, 13, 13, 2917, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 511, 525, 636, 742, 525, 2917, 1495, 13, 657, 29918, 2084, 353, 14013, 10422, 29901, 2897, 29889, 2084, 29889, 7122, 29898, 2917, 29918, 3972, 29892, 10422, 29897, 13, 3250, 29918, 2917, 29918, 1445, 353, 679, 29918, 2084, 877, 3250, 29889, 3126, 1495, 13, 5943, 29918, 6979, 29918, 1445, 353, 679, 29918, 2084, 877, 5943, 29918, 6979, 29889, 3945, 1495, 13, 1456, 414, 29918, 1445, 353, 679, 29918, 2084, 877, 1456, 414, 29889, 3945, 1495, 13, 6406, 29918, 3364, 8568, 29918, 1445, 353, 679, 29918, 2084, 877, 3364, 8568, 29889, 3945, 1495, 13, 13, 2972, 29918, 333, 29901, 938, 353, 29871, 29941, 29906, 29947, 29941, 29946, 29953, 29929, 29896, 29941, 29947, 29955, 29906, 29946, 29941, 29953, 29871, 396, 301, 324, 1235, 29915, 29879, 2898, 401, 445, 13, 2490, 29918, 333, 29901, 938, 13, 3250, 29918, 333, 29901, 938, 13, 7582, 2696, 29901, 851, 13, 1456, 414, 29901, 3789, 29961, 710, 29962, 13, 29886, 1199, 29901, 360, 919, 29961, 710, 29892, 851, 29962, 13, 13, 13, 1753, 679, 29918, 5943, 29918, 6979, 580, 1599, 851, 29901, 13, 1678, 411, 1722, 29898, 5943, 29918, 6979, 29918, 1445, 29897, 408, 285, 29901, 13, 4706, 736, 285, 29889, 949, 2141, 17010, 580, 13, 13, 13, 1753, 679, 29918, 3364, 8568, 580, 1599, 851, 29901, 13, 1678, 411, 1722, 29898, 6406, 29918, 3364, 8568, 29918, 1445, 29897, 408, 285, 29901, 13, 4706, 736, 285, 29889, 949, 2141, 17010, 580, 13, 13, 13, 1753, 1423, 29918, 6406, 29918, 5630, 29898, 5630, 29901, 851, 29897, 1599, 6120, 29901, 13, 1678, 736, 23085, 13289, 29889, 8926, 29889, 3198, 29918, 5630, 29918, 8568, 29898, 657, 29918, 3364, 8568, 3285, 4800, 29897, 13, 13, 13, 1753, 2254, 29918, 3250, 29918, 2917, 7295, 13, 1678, 5534, 1400, 29918, 333, 13, 1678, 5534, 2462, 29918, 333, 13, 1678, 5534, 5700, 2696, 13, 13, 1678, 411, 1722, 29898, 3250, 29918, 2917, 29918, 1445, 29897, 408, 285, 29901, 13, 4706, 2462, 29918, 3888, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 1678, 1400, 29918, 333, 353, 2462, 29918, 3888, 1839, 2490, 29918, 333, 2033, 13, 1678, 2462, 29918, 333, 353, 2462, 29918, 3888, 1839, 3250, 29918, 333, 2033, 13, 1678, 5700, 2696, 353, 2462, 29918, 3888, 1839, 7582, 2696, 2033, 13, 13, 13, 1753, 679, 29918, 1456, 414, 580, 1599, 3789, 29961, 710, 5387, 13, 1678, 411, 1722, 29898, 1456, 414, 29918, 1445, 29897, 408, 285, 29901, 13, 4706, 736, 731, 29898, 1958, 29898, 710, 29889, 17010, 29892, 285, 876, 13, 13, 13, 1753, 2254, 29918, 1456, 414, 7295, 13, 1678, 5534, 10769, 13, 1678, 10769, 353, 679, 29918, 1456, 414, 580, 13, 13, 13, 1753, 2254, 29918, 29886, 1199, 7295, 13, 1678, 5534, 282, 1199, 13, 1678, 411, 1722, 29898, 657, 29918, 2084, 877, 29886, 1199, 29889, 3126, 8785, 408, 285, 29901, 13, 4706, 282, 1199, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 13, 1753, 2254, 7295, 13, 1678, 2254, 29918, 3250, 29918, 2917, 580, 13, 1678, 2254, 29918, 1456, 414, 580, 13, 1678, 2254, 29918, 29886, 1199, 580, 13, 13, 13, 1753, 4078, 29918, 3250, 29918, 2917, 7295, 13, 1678, 411, 1722, 29898, 3250, 29918, 2917, 29918, 1445, 29892, 525, 29893, 1495, 408, 285, 29901, 13, 4706, 4390, 29889, 15070, 29898, 13, 9651, 11117, 2490, 29918, 333, 2396, 1400, 29918, 333, 29892, 525, 3250, 29918, 333, 2396, 2462, 29918, 333, 29892, 525, 7582, 2696, 2396, 5700, 2696, 1118, 285, 29892, 29536, 2433, 29905, 29873, 29915, 13, 4706, 1723, 13, 13, 13, 1753, 4078, 29918, 1456, 414, 7295, 13, 1678, 411, 1722, 29898, 1456, 414, 29918, 1445, 29892, 525, 29893, 1495, 408, 285, 29901, 13, 4706, 1596, 10456, 1456, 414, 29892, 16345, 2433, 29905, 29876, 742, 934, 29922, 29888, 29897, 13, 13, 13, 1753, 4078, 7295, 13, 1678, 4078, 29918, 3250, 29918, 2917, 580, 13, 1678, 4078, 29918, 1456, 414, 580, 13, 13, 13, 1359, 580, 13, 2 ]
Algorithms/Opt2_Algorithm/main.py
varshneypratyaksh2017/TSP_Using_AI
1
113215
import time from Algorithms.Opt2_Algorithm.algorithm import Opt2 # 2Opt Algorithm requires no configurations def opt2Algorithm(): opt2 = Opt2() startTime = time.time() route, _ = opt2.findSolution() endTime = time.time() time_taken = endTime - startTime solution = route distance = opt2.getDistance() return solution, distance, time_taken
[ 1, 1053, 931, 13, 3166, 11545, 12404, 29889, 20624, 29906, 29918, 22461, 4540, 29889, 20567, 1053, 20693, 29906, 13, 13, 13, 29937, 29871, 29906, 20624, 29068, 6858, 694, 22920, 13, 1753, 3523, 29906, 22461, 4540, 7295, 13, 13, 1678, 3523, 29906, 353, 20693, 29906, 580, 13, 13, 1678, 1369, 2481, 353, 931, 29889, 2230, 580, 13, 1678, 5782, 29892, 903, 353, 3523, 29906, 29889, 2886, 13296, 918, 580, 13, 1678, 1095, 2481, 353, 931, 29889, 2230, 580, 13, 13, 1678, 931, 29918, 29873, 9424, 353, 1095, 2481, 448, 1369, 2481, 13, 1678, 1650, 353, 5782, 13, 1678, 5418, 353, 3523, 29906, 29889, 657, 27469, 580, 13, 13, 1678, 736, 1650, 29892, 5418, 29892, 931, 29918, 29873, 9424, 13, 2 ]
wsgi.py
ObjectionTheory/rover-voice-integration
0
1601249
import flask import json import requests import time from rover import Rover application = flask.Flask(__name__) print("Started") rovers = {1: Rover(1)} currentRover = 1 @application.route('/') def getStatus(): print("Hello? Can anyone hear me?") return "Hello, I am running...:" @application.route('/control', methods=['GET']) def controller(): global rovers req = flask.request.args roverid = int(req.get("roverid")) if roverid not in rovers.keys(): rovers[roverid] = Rover(roverid) rovers[roverid].updateData( req.get("left"), req.get("right"), req.get("duration"), req.get("claw") ) res = "Moved!" return res @application.route('/getcommands', methods=['GET']) def returnCommand(): global rovers req = flask.request.args print(req) roverid = int(req.get("roverid")) print(rovers[roverid].postData(reset=False)) if roverid not in rovers.keys(): rovers[roverid] = Rover(roverid) res = rovers[roverid].postData() if req.get("kill"): del rovers[roverid] return return flask.jsonify(res) @application.route('/webhooks', methods=['POST']) def webhook(): req = flask.request.get_json(silent=True, force=True) res = processRequest(req) return flask.jsonify(res) def processRequest(req): global rovers, currentRover print("Request:") print(json.dumps(req, indent=4)) action = req["result"]["action"] if action == "sallyForth": moveRover(req, 255, 255) res = speech("Sallying forth!") elif action == "turn": direction = req["result"]["parameters"]["direction"] if direction == "left": moveRover(req, -255, 255) res = speech("Turning left!") elif direction == "right": moveRover(req, 255, -255) res = speech("Turning right!") elif action == "retreat": moveRover(req, -255, -255) res = speech("Going back!") elif action == "halt": moveRover(req, 0, 0) res = speech("Stopping!") elif action == "openClaw": rovers[currentRover].claw = 0 res = speech("Opening the claw!") elif action == "closeClaw": rovers[currentRover].claw = 1 res = speech("Closing the claw!") elif action == "lightPreset": lights = req.get("result").get("parameters").get("lightSel") rovers[currentRover].lightPreset = int(lights) + 1 res = speech("Lights set to preset "+ lights + ".") elif action == "clearLights": rovers[currentRover].lightPreset = 1 res = speech("Lights cleared.") elif action == "setLights": hue = req.get("results").get("parameters").get("hue") brightness = req.get("results").get("parameters").get("brightness") rovers[currentRover].setLights(hue, brightness) res = speech("Lights configured!") elif action == "setRover": currentRover = req.get("result").get("parameters").get("roverid") if currentRover not in rovers: rovers[currentRover] = Rover(currentRover) print(rovers) res = speech("Set rover " + str(currentRover) + " to be active!") elif action == "numberOfRovers": if len(rovers) == 1: res = speech("There is 1 rover connected to the server.") else: res = speech("There are " + str(len(rovers)) + " connected to the server.") elif action == "activeRovers": activeRovers = 0 for rover in rovers.values(): if rover.isMoving(): activeRovers += 1 if activeRovers == 1: activeSpeech = "There is 1 rover moving at the moment." else: activeSpeech = "There are " + str(activeRovers) + " rovers moving at the moment." if len(rovers)-activeRovers == 1: stoppedSpeech = "There is 1 inactive rover." else: stoppedSpeech = "There are " + str(len(rovers)-activeRovers) + " inactive rovers." res = speech(activeSpeech + "\n" + stoppedSpeech) else: res = speech("Oops, I didn't get that...") return res def moveRover(req, left, right): global rovers, currentRover travelTime = 2 roverid = currentRover if req["result"]["parameters"].get("duration"): duration = req["result"]["parameters"]["duration"] if duration["unit"] == "s": travelTime = duration["amount"] elif duration["unit"] == "min": travelTime = duration["amount"] * 60 print(roverid, rovers.keys()) if roverid in rovers.keys(): print(roverid) rovers[roverid].updateData(left, right, travelTime) def speech(speech): return { "speech": speech, "displayText": speech, "source": "webhookdata" } if __name__ == '__main__': application.run()
[ 1, 1053, 29784, 13, 5215, 4390, 13, 5215, 7274, 13, 5215, 931, 13, 3166, 696, 369, 1053, 390, 957, 13, 13, 6214, 353, 29784, 29889, 8754, 1278, 22168, 978, 1649, 29897, 13, 2158, 703, 4763, 287, 1159, 13, 307, 874, 353, 426, 29896, 29901, 390, 957, 29898, 29896, 2915, 13, 3784, 29934, 957, 353, 29871, 29896, 13, 13, 13, 29992, 6214, 29889, 13134, 11219, 1495, 13, 1753, 679, 5709, 7295, 13, 1678, 1596, 703, 10994, 29973, 1815, 5019, 8293, 592, 29973, 1159, 13, 1678, 736, 376, 10994, 29892, 306, 626, 2734, 856, 6160, 13, 13, 29992, 6214, 29889, 13134, 11219, 6451, 742, 3519, 29922, 1839, 7194, 11287, 13, 1753, 4701, 7295, 13, 1678, 5534, 696, 874, 13, 1678, 12428, 353, 29784, 29889, 3827, 29889, 5085, 13, 268, 13, 1678, 696, 369, 333, 353, 938, 29898, 7971, 29889, 657, 703, 307, 369, 333, 5783, 13, 1678, 565, 696, 369, 333, 451, 297, 696, 874, 29889, 8149, 7295, 13, 4706, 696, 874, 29961, 307, 369, 333, 29962, 353, 390, 957, 29898, 307, 369, 333, 29897, 13, 13, 1678, 696, 874, 29961, 307, 369, 333, 1822, 5504, 1469, 29898, 13, 4706, 12428, 29889, 657, 703, 1563, 4968, 13, 4706, 12428, 29889, 657, 703, 1266, 4968, 13, 4706, 12428, 29889, 657, 703, 19708, 4968, 13, 4706, 12428, 29889, 657, 703, 29883, 10653, 1159, 13, 1678, 1723, 13, 13, 1678, 620, 353, 376, 29924, 8238, 3850, 13, 1678, 736, 620, 13, 13, 13, 29992, 6214, 29889, 13134, 11219, 657, 26381, 742, 3519, 29922, 1839, 7194, 11287, 13, 1753, 736, 6255, 7295, 13, 1678, 5534, 696, 874, 13, 13, 1678, 12428, 353, 29784, 29889, 3827, 29889, 5085, 13, 1678, 1596, 29898, 7971, 29897, 13, 13, 1678, 696, 369, 333, 353, 938, 29898, 7971, 29889, 657, 703, 307, 369, 333, 5783, 13, 1678, 1596, 29898, 307, 874, 29961, 307, 369, 333, 1822, 2490, 1469, 29898, 12071, 29922, 8824, 876, 13, 13, 1678, 565, 696, 369, 333, 451, 297, 696, 874, 29889, 8149, 7295, 13, 4706, 696, 874, 29961, 307, 369, 333, 29962, 353, 390, 957, 29898, 307, 369, 333, 29897, 13, 13, 1678, 620, 353, 696, 874, 29961, 307, 369, 333, 1822, 2490, 1469, 580, 13, 13, 1678, 565, 12428, 29889, 657, 703, 21174, 29908, 1125, 13, 4706, 628, 696, 874, 29961, 307, 369, 333, 29962, 13, 4706, 736, 13, 13, 1678, 736, 29784, 29889, 3126, 1598, 29898, 690, 29897, 13, 268, 13, 13, 29992, 6214, 29889, 13134, 11219, 2676, 1251, 12117, 742, 3519, 29922, 1839, 5438, 11287, 13, 1753, 1856, 20849, 7295, 13, 268, 13, 1678, 12428, 353, 29784, 29889, 3827, 29889, 657, 29918, 3126, 29898, 25590, 296, 29922, 5574, 29892, 4889, 29922, 5574, 29897, 13, 268, 13, 1678, 620, 353, 1889, 3089, 29898, 7971, 29897, 13, 13, 1678, 736, 29784, 29889, 3126, 1598, 29898, 690, 29897, 13, 13, 1753, 1889, 3089, 29898, 7971, 1125, 13, 1678, 5534, 696, 874, 29892, 1857, 29934, 957, 13, 1678, 1596, 703, 3089, 29901, 1159, 13, 1678, 1596, 29898, 3126, 29889, 29881, 17204, 29898, 7971, 29892, 29536, 29922, 29946, 876, 13, 13, 1678, 3158, 353, 12428, 3366, 2914, 3108, 3366, 2467, 3108, 13, 13, 1678, 565, 3158, 1275, 376, 29879, 635, 29943, 2072, 1115, 13, 4706, 4337, 29934, 957, 29898, 7971, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29897, 13, 4706, 620, 353, 12032, 703, 29903, 635, 292, 11483, 29991, 1159, 13, 13, 1678, 25342, 3158, 1275, 376, 685, 1115, 13, 4706, 5305, 353, 12428, 3366, 2914, 3108, 3366, 16744, 3108, 3366, 20845, 3108, 13, 4706, 565, 5305, 1275, 376, 1563, 1115, 13, 9651, 4337, 29934, 957, 29898, 7971, 29892, 448, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29897, 13, 9651, 620, 353, 12032, 703, 27407, 292, 2175, 29991, 1159, 13, 4706, 25342, 5305, 1275, 376, 1266, 1115, 13, 9651, 4337, 29934, 957, 29898, 7971, 29892, 29871, 29906, 29945, 29945, 29892, 448, 29906, 29945, 29945, 29897, 13, 9651, 620, 353, 12032, 703, 27407, 292, 1492, 29991, 1159, 13, 13, 1678, 25342, 3158, 1275, 376, 2267, 276, 271, 1115, 13, 4706, 4337, 29934, 957, 29898, 7971, 29892, 448, 29906, 29945, 29945, 29892, 448, 29906, 29945, 29945, 29897, 13, 4706, 620, 353, 12032, 703, 8120, 292, 1250, 29991, 1159, 13, 268, 13, 1678, 25342, 3158, 1275, 376, 10647, 1115, 13, 4706, 4337, 29934, 957, 29898, 7971, 29892, 29871, 29900, 29892, 29871, 29900, 29897, 13, 4706, 620, 353, 12032, 703, 20754, 3262, 29991, 1159, 13, 268, 13, 1678, 25342, 3158, 1275, 376, 3150, 29907, 10653, 1115, 13, 4706, 696, 874, 29961, 3784, 29934, 957, 1822, 29883, 10653, 353, 29871, 29900, 13, 4706, 620, 353, 12032, 703, 6585, 292, 278, 3711, 29893, 29991, 1159, 13, 268, 13, 1678, 25342, 3158, 1275, 376, 5358, 29907, 10653, 1115, 13, 4706, 696, 874, 29961, 3784, 29934, 957, 1822, 29883, 10653, 353, 29871, 29896, 13, 4706, 620, 353, 12032, 703, 29907, 5409, 292, 278, 3711, 29893, 29991, 1159, 13, 13, 1678, 25342, 3158, 1275, 376, 4366, 29925, 12071, 1115, 13, 4706, 26068, 353, 12428, 29889, 657, 703, 2914, 2564, 657, 703, 16744, 2564, 657, 703, 4366, 29903, 295, 1159, 13, 4706, 696, 874, 29961, 3784, 29934, 957, 1822, 4366, 29925, 12071, 353, 938, 29898, 4366, 29879, 29897, 718, 29871, 29896, 13, 4706, 620, 353, 12032, 703, 29931, 5861, 731, 304, 2225, 300, 15691, 26068, 718, 11393, 1159, 13, 268, 13, 1678, 25342, 3158, 1275, 376, 8551, 29931, 5861, 1115, 13, 4706, 696, 874, 29961, 3784, 29934, 957, 1822, 4366, 29925, 12071, 353, 29871, 29896, 13, 4706, 620, 353, 12032, 703, 29931, 5861, 24639, 23157, 13, 13, 1678, 25342, 3158, 1275, 376, 842, 29931, 5861, 1115, 13, 4706, 298, 434, 353, 12428, 29889, 657, 703, 9902, 2564, 657, 703, 16744, 2564, 657, 703, 29882, 434, 1159, 13, 4706, 11785, 2264, 353, 12428, 29889, 657, 703, 9902, 2564, 657, 703, 16744, 2564, 657, 703, 1182, 523, 2264, 1159, 13, 4706, 696, 874, 29961, 3784, 29934, 957, 1822, 842, 29931, 5861, 29898, 29882, 434, 29892, 11785, 2264, 29897, 13, 4706, 620, 353, 12032, 703, 29931, 5861, 13252, 29991, 1159, 29871, 13, 13, 1678, 25342, 3158, 1275, 376, 842, 29934, 957, 1115, 13, 4706, 1857, 29934, 957, 353, 12428, 29889, 657, 703, 2914, 2564, 657, 703, 16744, 2564, 657, 703, 307, 369, 333, 1159, 13, 4706, 565, 1857, 29934, 957, 451, 297, 696, 874, 29901, 13, 9651, 696, 874, 29961, 3784, 29934, 957, 29962, 353, 390, 957, 29898, 3784, 29934, 957, 29897, 13, 4706, 1596, 29898, 307, 874, 29897, 13, 4706, 620, 353, 12032, 703, 2697, 696, 369, 376, 718, 851, 29898, 3784, 29934, 957, 29897, 718, 376, 304, 367, 6136, 29991, 1159, 13, 268, 13, 1678, 25342, 3158, 1275, 376, 4537, 2776, 9588, 874, 1115, 13, 4706, 565, 7431, 29898, 307, 874, 29897, 1275, 29871, 29896, 29901, 13, 9651, 620, 353, 12032, 703, 8439, 338, 29871, 29896, 696, 369, 6631, 304, 278, 1923, 23157, 13, 4706, 1683, 29901, 13, 9651, 620, 353, 12032, 703, 8439, 526, 376, 718, 851, 29898, 2435, 29898, 307, 874, 876, 718, 376, 6631, 304, 278, 1923, 23157, 13, 268, 13, 1678, 25342, 3158, 1275, 376, 4925, 9588, 874, 1115, 13, 4706, 6136, 9588, 874, 353, 29871, 29900, 13, 4706, 363, 696, 369, 297, 696, 874, 29889, 5975, 7295, 13, 9651, 565, 696, 369, 29889, 275, 29924, 21081, 7295, 13, 18884, 6136, 9588, 874, 4619, 29871, 29896, 13, 13, 4706, 565, 6136, 9588, 874, 1275, 29871, 29896, 29901, 13, 9651, 6136, 10649, 5309, 353, 376, 8439, 338, 29871, 29896, 696, 369, 8401, 472, 278, 3256, 1213, 13, 4706, 1683, 29901, 13, 9651, 6136, 10649, 5309, 353, 376, 8439, 526, 376, 718, 851, 29898, 4925, 9588, 874, 29897, 718, 376, 696, 874, 8401, 472, 278, 3256, 1213, 13, 13, 4706, 565, 7431, 29898, 307, 874, 6817, 4925, 9588, 874, 1275, 29871, 29896, 29901, 13, 9651, 11084, 10649, 5309, 353, 376, 8439, 338, 29871, 29896, 297, 4925, 696, 369, 1213, 13, 4706, 1683, 29901, 13, 9651, 11084, 10649, 5309, 353, 376, 8439, 526, 376, 718, 851, 29898, 2435, 29898, 307, 874, 6817, 4925, 9588, 874, 29897, 718, 376, 297, 4925, 696, 874, 1213, 13, 308, 13, 4706, 620, 353, 12032, 29898, 4925, 10649, 5309, 718, 6634, 29876, 29908, 718, 11084, 10649, 5309, 29897, 13, 13, 1678, 1683, 29901, 13, 4706, 620, 353, 12032, 703, 29949, 3554, 29892, 306, 3282, 29915, 29873, 679, 393, 856, 1159, 13, 13, 1678, 736, 620, 13, 13, 1753, 4337, 29934, 957, 29898, 7971, 29892, 2175, 29892, 1492, 1125, 13, 1678, 5534, 696, 874, 29892, 1857, 29934, 957, 13, 1678, 9850, 2481, 353, 29871, 29906, 13, 1678, 696, 369, 333, 353, 1857, 29934, 957, 13, 13, 1678, 565, 12428, 3366, 2914, 3108, 3366, 16744, 16862, 657, 703, 19708, 29908, 1125, 13, 4706, 14385, 353, 12428, 3366, 2914, 3108, 3366, 16744, 3108, 3366, 19708, 3108, 13, 268, 13, 4706, 565, 14385, 3366, 5441, 3108, 1275, 376, 29879, 1115, 13, 9651, 9850, 2481, 353, 14385, 3366, 14506, 3108, 13, 4706, 25342, 14385, 3366, 5441, 3108, 1275, 376, 1195, 1115, 13, 9651, 9850, 2481, 353, 14385, 3366, 14506, 3108, 334, 29871, 29953, 29900, 13, 268, 13, 1678, 1596, 29898, 307, 369, 333, 29892, 696, 874, 29889, 8149, 3101, 13, 308, 13, 1678, 565, 696, 369, 333, 297, 696, 874, 29889, 8149, 7295, 13, 4706, 1596, 29898, 307, 369, 333, 29897, 13, 4706, 696, 874, 29961, 307, 369, 333, 1822, 5504, 1469, 29898, 1563, 29892, 1492, 29892, 9850, 2481, 29897, 13, 13, 1753, 12032, 29898, 5965, 5309, 1125, 13, 1678, 736, 426, 13, 4706, 376, 5965, 5309, 1115, 12032, 29892, 13, 4706, 376, 4990, 1626, 1115, 12032, 29892, 13, 4706, 376, 4993, 1115, 376, 2676, 20849, 1272, 29908, 13, 1678, 500, 13, 13, 308, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 2280, 29889, 3389, 580, 2 ]
manhattan/backend/rollups.py
cartlogic/manhattan
1
70026
<reponame>cartlogic/manhattan from __future__ import absolute_import, division, print_function """ This module contains some example ``Rollup`` objects, each implementing the interface expected by the Manhattan backend for rollup aggregations. """ import time from datetime import datetime, timedelta import pytz class LocalRollup(object): def __init__(self, tzname): self.tz = pytz.timezone(tzname) def start_date_for(self, timestamp): dt = datetime.utcfromtimestamp(timestamp).replace(tzinfo=pytz.utc) dt_local = dt.astimezone(self.tz).replace(tzinfo=None) return dt_local.date() class LocalDayRollup(LocalRollup): def get_bucket(self, timestamp, history): return time.mktime(self.start_date_for(timestamp).timetuple()) class LocalWeekRollup(LocalRollup): def get_bucket(self, timestamp, history): day = self.start_date_for(timestamp) days_from_sunday = day.isoweekday() % 7 day -= timedelta(days=days_from_sunday) return time.mktime(day.timetuple()) class AllRollup(object): def get_bucket(self, timestamp, history): return 0 class BrowserRollup(object): def browser_from_user_agent(self, user_agent): # FIXME This is a pretty naive and less useful implementation. if 'Chrome' in user_agent: return u'Chrome' elif 'Safari' in user_agent: return u'Safari' elif 'Firefox' in user_agent: return u'Firefox' elif 'MSIE' in user_agent: return u'IE' else: return u'Unknown' def get_bucket(self, timestamp, history): return (history.user_agents and self.browser_from_user_agent(list(history.user_agents)[0]) or u'')
[ 1, 529, 276, 1112, 420, 29958, 13823, 19227, 29914, 1171, 29882, 23586, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 13, 15945, 29908, 13, 4013, 3883, 3743, 777, 1342, 4954, 29934, 3028, 786, 16159, 3618, 29892, 1269, 16049, 278, 13, 13248, 3806, 491, 278, 29093, 23586, 14998, 363, 9679, 786, 11404, 800, 29889, 13, 15945, 29908, 13, 13, 5215, 931, 13, 3166, 12865, 1053, 12865, 29892, 5335, 287, 2554, 13, 13, 5215, 282, 3637, 29920, 13, 13, 13, 1990, 9959, 29934, 3028, 786, 29898, 3318, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 260, 29920, 978, 1125, 13, 4706, 1583, 29889, 17559, 353, 282, 3637, 29920, 29889, 2230, 8028, 29898, 17559, 978, 29897, 13, 13, 1678, 822, 1369, 29918, 1256, 29918, 1454, 29898, 1311, 29892, 14334, 1125, 13, 4706, 11636, 353, 12865, 29889, 329, 29883, 3166, 16394, 29898, 16394, 467, 6506, 29898, 17559, 3888, 29922, 2272, 17559, 29889, 329, 29883, 29897, 13, 4706, 11636, 29918, 2997, 353, 11636, 29889, 579, 603, 8028, 29898, 1311, 29889, 17559, 467, 6506, 29898, 17559, 3888, 29922, 8516, 29897, 13, 4706, 736, 11636, 29918, 2997, 29889, 1256, 580, 13, 13, 13, 1990, 9959, 12742, 29934, 3028, 786, 29898, 7717, 29934, 3028, 786, 1125, 13, 13, 1678, 822, 679, 29918, 21454, 29898, 1311, 29892, 14334, 29892, 4955, 1125, 13, 4706, 736, 931, 29889, 29885, 1193, 603, 29898, 1311, 29889, 2962, 29918, 1256, 29918, 1454, 29898, 16394, 467, 9346, 24120, 552, 3101, 13, 13, 13, 1990, 9959, 22606, 29934, 3028, 786, 29898, 7717, 29934, 3028, 786, 1125, 13, 13, 1678, 822, 679, 29918, 21454, 29898, 1311, 29892, 14334, 29892, 4955, 1125, 13, 4706, 2462, 353, 1583, 29889, 2962, 29918, 1256, 29918, 1454, 29898, 16394, 29897, 13, 4706, 3841, 29918, 3166, 29918, 29879, 870, 388, 353, 2462, 29889, 275, 4657, 1416, 3250, 580, 1273, 29871, 29955, 13, 4706, 2462, 22361, 5335, 287, 2554, 29898, 16700, 29922, 16700, 29918, 3166, 29918, 29879, 870, 388, 29897, 13, 4706, 736, 931, 29889, 29885, 1193, 603, 29898, 3250, 29889, 9346, 24120, 552, 3101, 13, 13, 13, 1990, 2178, 29934, 3028, 786, 29898, 3318, 1125, 13, 13, 1678, 822, 679, 29918, 21454, 29898, 1311, 29892, 14334, 29892, 4955, 1125, 13, 4706, 736, 29871, 29900, 13, 13, 13, 1990, 27088, 29934, 3028, 786, 29898, 3318, 1125, 13, 13, 1678, 822, 4714, 29918, 3166, 29918, 1792, 29918, 14748, 29898, 1311, 29892, 1404, 29918, 14748, 1125, 13, 4706, 396, 383, 6415, 2303, 910, 338, 263, 5051, 1055, 573, 322, 3109, 5407, 5314, 29889, 13, 4706, 565, 525, 1451, 4871, 29915, 297, 1404, 29918, 14748, 29901, 13, 9651, 736, 318, 29915, 1451, 4871, 29915, 13, 4706, 25342, 525, 29903, 2142, 1306, 29915, 297, 1404, 29918, 14748, 29901, 13, 9651, 736, 318, 29915, 29903, 2142, 1306, 29915, 13, 4706, 25342, 525, 18654, 8944, 29915, 297, 1404, 29918, 14748, 29901, 13, 9651, 736, 318, 29915, 18654, 8944, 29915, 13, 4706, 25342, 525, 4345, 8673, 29915, 297, 1404, 29918, 14748, 29901, 13, 9651, 736, 318, 29915, 8673, 29915, 13, 4706, 1683, 29901, 13, 9651, 736, 318, 29915, 14148, 29915, 13, 13, 1678, 822, 679, 29918, 21454, 29898, 1311, 29892, 14334, 29892, 4955, 1125, 13, 4706, 736, 313, 18434, 29889, 1792, 29918, 351, 1237, 322, 13, 18884, 1583, 29889, 15965, 29918, 3166, 29918, 1792, 29918, 14748, 29898, 1761, 29898, 18434, 29889, 1792, 29918, 351, 1237, 9601, 29900, 2314, 470, 13, 18884, 318, 29915, 1495, 13, 2 ]
bluebottle/donations/migrations/0009_auto_20190130_1140.py
jayvdb/bluebottle
0
17281
<reponame>jayvdb/bluebottle<filename>bluebottle/donations/migrations/0009_auto_20190130_1140.py # -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-01-30 10:40 from __future__ import unicode_literals import bluebottle.utils.fields from decimal import Decimal from django.db import migrations, models import django.db.models.deletion import djmoney.models.fields class Migration(migrations.Migration): dependencies = [ ('donations', '0008_auto_20170927_1021'), ] operations = [ migrations.AddField( model_name='donation', name='payout_amount', field=bluebottle.utils.fields.MoneyField(currency_choices="[('EUR', u'Euro')]", decimal_places=2, default=Decimal('0.0'), max_digits=12, verbose_name='Payout amount'), ), migrations.AddField( model_name='donation', name='payout_amount_currency', field=djmoney.models.fields.CurrencyField(choices=[(b'EUR', 'Euro')], default='EUR', editable=False, max_length=3), ), ]
[ 1, 529, 276, 1112, 420, 29958, 29926, 388, 29894, 2585, 29914, 9539, 29890, 1501, 280, 29966, 9507, 29958, 9539, 29890, 1501, 280, 29914, 9176, 800, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29929, 29918, 6921, 29918, 29906, 29900, 29896, 29929, 29900, 29896, 29941, 29900, 29918, 29896, 29896, 29946, 29900, 29889, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 15337, 29871, 29896, 29889, 29896, 29900, 29889, 29947, 373, 29871, 29906, 29900, 29896, 29929, 29899, 29900, 29896, 29899, 29941, 29900, 29871, 29896, 29900, 29901, 29946, 29900, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 5215, 7254, 29890, 1501, 280, 29889, 13239, 29889, 9621, 13, 3166, 13677, 1053, 3826, 3039, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 5215, 9557, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 13, 5215, 270, 21231, 4992, 29889, 9794, 29889, 9621, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 9176, 800, 742, 525, 29900, 29900, 29900, 29947, 29918, 6921, 29918, 29906, 29900, 29896, 29955, 29900, 29929, 29906, 29955, 29918, 29896, 29900, 29906, 29896, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 2528, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 9176, 362, 742, 13, 9651, 1024, 2433, 29886, 1534, 29918, 14506, 742, 13, 9651, 1746, 29922, 9539, 29890, 1501, 280, 29889, 13239, 29889, 9621, 29889, 29924, 4992, 3073, 29898, 26095, 29918, 1859, 1575, 543, 29961, 877, 29923, 4574, 742, 318, 29915, 29923, 2192, 1495, 29962, 613, 13677, 29918, 29886, 6048, 29922, 29906, 29892, 2322, 29922, 23307, 877, 29900, 29889, 29900, 5477, 4236, 29918, 7501, 1169, 29922, 29896, 29906, 29892, 26952, 29918, 978, 2433, 29925, 1534, 5253, 5477, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2528, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 9176, 362, 742, 13, 9651, 1024, 2433, 29886, 1534, 29918, 14506, 29918, 26095, 742, 13, 9651, 1746, 29922, 19776, 29885, 4992, 29889, 9794, 29889, 9621, 29889, 29907, 10880, 3073, 29898, 1859, 1575, 11759, 29898, 29890, 29915, 29923, 4574, 742, 525, 29923, 2192, 1495, 1402, 2322, 2433, 29923, 4574, 742, 3863, 519, 29922, 8824, 29892, 4236, 29918, 2848, 29922, 29941, 511, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
openid.py
DaniilSezonov/AuthServerClient
0
40561
import jwt import requests from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicNumbers from oauth2 import Oauth2, ResponseObject, RemoteUserProfile, OAuthDiscoveryError class OpenID(Oauth2): state_token: str or None = None well_know_path_part: str = ".well-known" # it is path in url to .well-know https://tools.ietf.org/html/rfc5785 openid_conf_path_part = "openid-configuration" # it is path in url to openid configuration auth_server_domain_name: str or None = None _configuration: dict or None = None # https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig was_load_openid_conf: bool = False audience: str or None = None jwk_cert: dict or None = None def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.openid_conf_path_part = kwargs.get("openid_conf_path_part") or self.openid_conf_path_part self.state_token = kwargs.get('state_token') self.jwk_cert = kwargs.get('jwk_cert') self.audience = kwargs.get('audience') @staticmethod def get_jwt_header(token): """ :param token: the token is a jwt (that has name id_token in google notation) :return: dict with key alg (algorithm), kid (key id), typ (token type(JWT always)) """ return jwt.get_unverified_header(token) @staticmethod def jwk_to_rsa(jwk): """ Decoding jwk format to public rsa key carried out by next steps: (jwk['e'] (RSA exponent) and jwk['n'] (RSA modulus) -> decode from base64url to binary -> encode binary to DEC (десятичная)) :param jwk: JSON Web Key https://tools.ietf.org/html/rfc7517 :return: RSA public key as instance of cryptography.hazmat.backends.openssl.rsa._RSAPublicKey """ e = jwk.get('e') # exponent assert e, "jwk must contains the exponent value by key 'e'" n = jwk.get('n') # modulus assert n, "jwk must contains the modulus value by key 'n'" base64_url_exp = jwt.api_jws.base64url_decode(e) base64_url_modulus = jwt.api_jws.base64url_decode(n) dec64_url_exp = int(base64_url_exp.hex(), base=16) dec64_url_modulus = int(base64_url_modulus.hex(), base=16) return RSAPublicNumbers(e=dec64_url_exp, n=dec64_url_modulus).public_key(default_backend()) def get_user_info_by_jwt(self, token, with_verify=True, **options)-> dict: """ :param token: jwt :param with_verify: verify that response is not compromised :param options: if verify is True we need to pass JWK value for verification :return: """ user_info = {} jwk = options.get("jwk") jwt_decode_options = {} audience = options.get('audience') if audience: jwt_decode_options['audience'] = audience elif self.audience: jwt_decode_options['audience'] = self.audience rsa_key = self.jwk_to_rsa(jwk) if with_verify: user_info = jwt.decode(token, key=rsa_key, **jwt_decode_options) else: user_info = jwt.decode(token, verify=False) return user_info def is_state_token_valid(self, state): # todo return self.state_token == state def get_user_profile(self, exchange_code_response: ResponseObject) -> RemoteUserProfile: id_token = exchange_code_response.get('id_token') assert id_token, "Wrong openid response from auth server. " \ "response must contains id_token (with JWT data) field" options = { 'jwk': self.get_jwk_for_jwt(id_token) } return self.get_user_info_by_jwt(id_token, **options) def load_configuration(self, configuration: dict = None): if configuration is None: configuration = self.get_oauth_conf_by_discovery_doc() self._configuration = configuration self.was_load_openid_conf = True def get_oauth_conf_by_discovery_doc(self): discovery_path = f'https://{self.auth_server_domain_name}/{self.well_know_path_part}/{self.openid_conf_path_part}' response = requests.get(url=discovery_path) if response.status_code != 200: raise OAuthDiscoveryError() configuration = response.json() return configuration def get_jwk_for_jwt(self, token): if self.jwk_cert is None: jwt_header = self.get_jwt_header(token) self.load_jwk_by_remote(jwt_header.get('kid')) return self.jwk_cert def load_jwk_by_remote(self, kid: str): """ :param kid: remote key id :return: jwk """ assert kid, "You cant load jwk if key id (kid) is not set" configuration = self.get_configuration() jwks_uri = configuration.get('jwks_uri') certs_response = requests.get(url=jwks_uri).json() for key in certs_response['keys']: if key['kid'] == kid: self.load_jwk(key) break def load_jwk(self, jwk): self.jwk_cert = jwk
[ 1, 1053, 432, 14554, 13, 5215, 7274, 13, 13, 3166, 24941, 5275, 29889, 29882, 834, 2922, 29889, 1627, 1975, 1053, 2322, 29918, 27852, 13, 3166, 24941, 5275, 29889, 29882, 834, 2922, 29889, 9469, 277, 3145, 29889, 294, 962, 16414, 29889, 2288, 29874, 1053, 390, 29903, 3301, 803, 29478, 13, 13, 3166, 288, 5150, 29906, 1053, 438, 5150, 29906, 29892, 13291, 2061, 29892, 5240, 866, 2659, 13909, 29892, 438, 6444, 4205, 11911, 29891, 2392, 13, 13, 13, 1990, 4673, 1367, 29898, 29949, 5150, 29906, 1125, 13, 1678, 2106, 29918, 6979, 29901, 851, 470, 6213, 353, 6213, 13, 1678, 1532, 29918, 28385, 29918, 2084, 29918, 1595, 29901, 851, 353, 11393, 5872, 29899, 5203, 29908, 29871, 396, 372, 338, 2224, 297, 3142, 304, 869, 5872, 29899, 28385, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29945, 29955, 29947, 29945, 13, 1678, 1722, 333, 29918, 5527, 29918, 2084, 29918, 1595, 353, 376, 3150, 333, 29899, 13305, 29908, 29871, 396, 372, 338, 2224, 297, 3142, 304, 1722, 333, 5285, 13, 1678, 4817, 29918, 2974, 29918, 7247, 29918, 978, 29901, 851, 470, 6213, 353, 6213, 13, 13, 1678, 903, 13305, 29901, 9657, 470, 6213, 353, 6213, 29871, 396, 2045, 597, 3150, 333, 29889, 1212, 29914, 5965, 2395, 29914, 3150, 333, 29899, 6915, 29899, 2218, 11911, 29891, 29899, 29896, 29918, 29900, 29889, 1420, 29937, 6980, 3991, 13, 1678, 471, 29918, 1359, 29918, 3150, 333, 29918, 5527, 29901, 6120, 353, 7700, 13, 13, 1678, 20026, 29901, 851, 470, 6213, 353, 6213, 13, 13, 1678, 432, 29893, 29895, 29918, 6327, 29901, 9657, 470, 6213, 353, 6213, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 1583, 29889, 3150, 333, 29918, 5527, 29918, 2084, 29918, 1595, 353, 9049, 5085, 29889, 657, 703, 3150, 333, 29918, 5527, 29918, 2084, 29918, 1595, 1159, 470, 1583, 29889, 3150, 333, 29918, 5527, 29918, 2084, 29918, 1595, 13, 4706, 1583, 29889, 3859, 29918, 6979, 353, 9049, 5085, 29889, 657, 877, 3859, 29918, 6979, 1495, 13, 4706, 1583, 29889, 29926, 29893, 29895, 29918, 6327, 353, 9049, 5085, 29889, 657, 877, 29926, 29893, 29895, 29918, 6327, 1495, 13, 4706, 1583, 29889, 28863, 663, 353, 9049, 5085, 29889, 657, 877, 28863, 663, 1495, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 29926, 14554, 29918, 6672, 29898, 6979, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 5993, 29901, 278, 5993, 338, 263, 432, 14554, 313, 5747, 756, 1024, 1178, 29918, 6979, 297, 5386, 12640, 29897, 13, 4706, 584, 2457, 29901, 9657, 411, 1820, 3093, 313, 20567, 511, 26397, 313, 1989, 1178, 511, 2393, 313, 6979, 1134, 29898, 29967, 17755, 2337, 876, 13, 4706, 9995, 13, 4706, 736, 432, 14554, 29889, 657, 29918, 348, 369, 2164, 29918, 6672, 29898, 6979, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 432, 29893, 29895, 29918, 517, 29918, 2288, 29874, 29898, 29926, 29893, 29895, 1125, 13, 4706, 9995, 13, 4706, 3826, 3689, 432, 29893, 29895, 3402, 304, 970, 364, 4977, 1820, 8988, 714, 491, 2446, 6576, 29901, 13, 4706, 313, 29926, 29893, 29895, 1839, 29872, 2033, 313, 29934, 8132, 28869, 29897, 322, 432, 29893, 29895, 1839, 29876, 2033, 313, 29934, 8132, 878, 14999, 29897, 1599, 21822, 515, 2967, 29953, 29946, 2271, 304, 7581, 1599, 19750, 7581, 304, 5012, 29907, 313, 1216, 1198, 811, 23006, 876, 13, 4706, 584, 3207, 432, 29893, 29895, 29901, 4663, 2563, 7670, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29955, 13, 4706, 584, 2457, 29901, 390, 8132, 970, 1820, 408, 2777, 310, 24941, 5275, 29889, 29882, 834, 2922, 29889, 1627, 1975, 29889, 22156, 2536, 29889, 2288, 29874, 3032, 12445, 3301, 803, 2558, 13, 4706, 9995, 13, 4706, 321, 353, 432, 29893, 29895, 29889, 657, 877, 29872, 1495, 29871, 396, 28869, 13, 4706, 4974, 321, 29892, 376, 29926, 29893, 29895, 1818, 3743, 278, 28869, 995, 491, 1820, 525, 29872, 11838, 13, 13, 4706, 302, 353, 432, 29893, 29895, 29889, 657, 877, 29876, 1495, 29871, 396, 878, 14999, 13, 4706, 4974, 302, 29892, 376, 29926, 29893, 29895, 1818, 3743, 278, 878, 14999, 995, 491, 1820, 525, 29876, 11838, 13, 13, 4706, 2967, 29953, 29946, 29918, 2271, 29918, 4548, 353, 432, 14554, 29889, 2754, 29918, 29926, 5652, 29889, 3188, 29953, 29946, 2271, 29918, 13808, 29898, 29872, 29897, 13, 4706, 2967, 29953, 29946, 29918, 2271, 29918, 1545, 14999, 353, 432, 14554, 29889, 2754, 29918, 29926, 5652, 29889, 3188, 29953, 29946, 2271, 29918, 13808, 29898, 29876, 29897, 13, 13, 4706, 1602, 29953, 29946, 29918, 2271, 29918, 4548, 353, 938, 29898, 3188, 29953, 29946, 29918, 2271, 29918, 4548, 29889, 20970, 3285, 2967, 29922, 29896, 29953, 29897, 13, 4706, 1602, 29953, 29946, 29918, 2271, 29918, 1545, 14999, 353, 938, 29898, 3188, 29953, 29946, 29918, 2271, 29918, 1545, 14999, 29889, 20970, 3285, 2967, 29922, 29896, 29953, 29897, 13, 13, 4706, 736, 390, 29903, 3301, 803, 29478, 29898, 29872, 29922, 7099, 29953, 29946, 29918, 2271, 29918, 4548, 29892, 302, 29922, 7099, 29953, 29946, 29918, 2271, 29918, 1545, 14999, 467, 3597, 29918, 1989, 29898, 4381, 29918, 27852, 3101, 13, 13, 1678, 822, 679, 29918, 1792, 29918, 3888, 29918, 1609, 29918, 29926, 14554, 29898, 1311, 29892, 5993, 29892, 411, 29918, 27902, 29922, 5574, 29892, 3579, 6768, 19969, 9657, 29901, 13, 4706, 9995, 13, 4706, 584, 3207, 5993, 29901, 432, 14554, 13, 4706, 584, 3207, 411, 29918, 27902, 29901, 11539, 393, 2933, 338, 451, 19632, 3368, 13, 4706, 584, 3207, 3987, 29901, 565, 11539, 338, 5852, 591, 817, 304, 1209, 435, 29956, 29968, 995, 363, 1147, 2450, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 1404, 29918, 3888, 353, 6571, 13, 13, 4706, 432, 29893, 29895, 353, 3987, 29889, 657, 703, 29926, 29893, 29895, 1159, 13, 13, 4706, 432, 14554, 29918, 13808, 29918, 6768, 353, 6571, 13, 4706, 20026, 353, 3987, 29889, 657, 877, 28863, 663, 1495, 13, 4706, 565, 20026, 29901, 13, 9651, 432, 14554, 29918, 13808, 29918, 6768, 1839, 28863, 663, 2033, 353, 20026, 13, 4706, 25342, 1583, 29889, 28863, 663, 29901, 13, 9651, 432, 14554, 29918, 13808, 29918, 6768, 1839, 28863, 663, 2033, 353, 1583, 29889, 28863, 663, 13, 13, 4706, 364, 4977, 29918, 1989, 353, 1583, 29889, 29926, 29893, 29895, 29918, 517, 29918, 2288, 29874, 29898, 29926, 29893, 29895, 29897, 13, 13, 4706, 565, 411, 29918, 27902, 29901, 13, 9651, 1404, 29918, 3888, 353, 432, 14554, 29889, 13808, 29898, 6979, 29892, 1820, 29922, 2288, 29874, 29918, 1989, 29892, 3579, 29926, 14554, 29918, 13808, 29918, 6768, 29897, 13, 4706, 1683, 29901, 13, 9651, 1404, 29918, 3888, 353, 432, 14554, 29889, 13808, 29898, 6979, 29892, 11539, 29922, 8824, 29897, 13, 13, 4706, 736, 1404, 29918, 3888, 13, 13, 1678, 822, 338, 29918, 3859, 29918, 6979, 29918, 3084, 29898, 1311, 29892, 2106, 1125, 13, 4706, 396, 10481, 13, 4706, 736, 1583, 29889, 3859, 29918, 6979, 1275, 2106, 13, 13, 1678, 822, 679, 29918, 1792, 29918, 10185, 29898, 1311, 29892, 14523, 29918, 401, 29918, 5327, 29901, 13291, 2061, 29897, 1599, 5240, 866, 2659, 13909, 29901, 13, 4706, 1178, 29918, 6979, 353, 14523, 29918, 401, 29918, 5327, 29889, 657, 877, 333, 29918, 6979, 1495, 13, 4706, 4974, 1178, 29918, 6979, 29892, 376, 29956, 29373, 1722, 333, 2933, 515, 4817, 1923, 29889, 376, 320, 13, 462, 308, 376, 5327, 1818, 3743, 1178, 29918, 6979, 313, 2541, 435, 17755, 848, 29897, 1746, 29908, 13, 4706, 3987, 353, 426, 13, 9651, 525, 29926, 29893, 29895, 2396, 1583, 29889, 657, 29918, 29926, 29893, 29895, 29918, 1454, 29918, 29926, 14554, 29898, 333, 29918, 6979, 29897, 13, 4706, 500, 13, 4706, 736, 1583, 29889, 657, 29918, 1792, 29918, 3888, 29918, 1609, 29918, 29926, 14554, 29898, 333, 29918, 6979, 29892, 3579, 6768, 29897, 13, 13, 1678, 822, 2254, 29918, 13305, 29898, 1311, 29892, 5285, 29901, 9657, 353, 6213, 1125, 13, 4706, 565, 5285, 338, 6213, 29901, 13, 9651, 5285, 353, 1583, 29889, 657, 29918, 23106, 29918, 5527, 29918, 1609, 29918, 2218, 11911, 29891, 29918, 1514, 580, 13, 13, 4706, 1583, 3032, 13305, 353, 5285, 13, 4706, 1583, 29889, 11102, 29918, 1359, 29918, 3150, 333, 29918, 5527, 353, 5852, 13, 13, 1678, 822, 679, 29918, 23106, 29918, 5527, 29918, 1609, 29918, 2218, 11911, 29891, 29918, 1514, 29898, 1311, 1125, 13, 4706, 20699, 29918, 2084, 353, 285, 29915, 991, 597, 29912, 1311, 29889, 5150, 29918, 2974, 29918, 7247, 29918, 978, 6822, 29912, 1311, 29889, 5872, 29918, 28385, 29918, 2084, 29918, 1595, 6822, 29912, 1311, 29889, 3150, 333, 29918, 5527, 29918, 2084, 29918, 1595, 10162, 13, 4706, 2933, 353, 7274, 29889, 657, 29898, 2271, 29922, 2218, 11911, 29891, 29918, 2084, 29897, 13, 13, 4706, 565, 2933, 29889, 4882, 29918, 401, 2804, 29871, 29906, 29900, 29900, 29901, 13, 9651, 12020, 438, 6444, 4205, 11911, 29891, 2392, 580, 13, 13, 4706, 5285, 353, 2933, 29889, 3126, 580, 13, 4706, 736, 5285, 13, 13, 1678, 822, 679, 29918, 29926, 29893, 29895, 29918, 1454, 29918, 29926, 14554, 29898, 1311, 29892, 5993, 1125, 13, 4706, 565, 1583, 29889, 29926, 29893, 29895, 29918, 6327, 338, 6213, 29901, 13, 9651, 432, 14554, 29918, 6672, 353, 1583, 29889, 657, 29918, 29926, 14554, 29918, 6672, 29898, 6979, 29897, 13, 9651, 1583, 29889, 1359, 29918, 29926, 29893, 29895, 29918, 1609, 29918, 16674, 29898, 29926, 14554, 29918, 6672, 29889, 657, 877, 29895, 333, 8785, 13, 4706, 736, 1583, 29889, 29926, 29893, 29895, 29918, 6327, 13, 13, 1678, 822, 2254, 29918, 29926, 29893, 29895, 29918, 1609, 29918, 16674, 29898, 1311, 29892, 26397, 29901, 851, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 26397, 29901, 7592, 1820, 1178, 13, 4706, 584, 2457, 29901, 432, 29893, 29895, 13, 4706, 9995, 13, 4706, 4974, 26397, 29892, 376, 3492, 5107, 2254, 432, 29893, 29895, 565, 1820, 1178, 313, 29895, 333, 29897, 338, 451, 731, 29908, 13, 4706, 5285, 353, 1583, 29889, 657, 29918, 13305, 580, 13, 4706, 432, 29893, 2039, 29918, 5338, 353, 5285, 29889, 657, 877, 29926, 29893, 2039, 29918, 5338, 1495, 13, 4706, 2284, 29879, 29918, 5327, 353, 7274, 29889, 657, 29898, 2271, 29922, 29926, 29893, 2039, 29918, 5338, 467, 3126, 580, 13, 4706, 363, 1820, 297, 2284, 29879, 29918, 5327, 1839, 8149, 2033, 29901, 13, 9651, 565, 1820, 1839, 29895, 333, 2033, 1275, 26397, 29901, 13, 18884, 1583, 29889, 1359, 29918, 29926, 29893, 29895, 29898, 1989, 29897, 13, 18884, 2867, 13, 13, 1678, 822, 2254, 29918, 29926, 29893, 29895, 29898, 1311, 29892, 432, 29893, 29895, 1125, 13, 4706, 1583, 29889, 29926, 29893, 29895, 29918, 6327, 353, 432, 29893, 29895, 13, 2 ]
port_scanner.py
Adel-Charef/scripts
0
112754
from queue import Queue import socket import threading target = "127.0.0.1" queue = Queue() open_ports = [] """ port 80 (HTTP) or port 443 (HTTPS) 21 (FTP), 22 (SSH), 25 (SMTP) """ # connect to a target on a specific port def portscan(port): try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((target, port)) return True except: return False def get_ports(mode): # for standardized ports if mode == 1: for port in range(1, 1024): queue.put(port) # for reserved ports elif mode == 2: for port in range(1, 49152): queue.put(port) # for the most important ports only elif mode == 3: ports = [20, 21, 22, 23, 25, 53, 80, 110, 443] for port in ports: queue.put(port) # to choose our ports manually elif mode == 4: ports = input("Enter your ports (separate by blank): ") ports = ports.split() ports = list(map(int, ports)) for port in ports: queue.put(port) # get the port numbers from the queue, scan them and print the results def worker(): while not queue.empty(): port = queue.get() if portscan(port): print(f"Port {port} is open!") open_ports.append(port) else: print(f"Port {port} is closed!") # let's create start and manage our threads def main(threads, mode): get_ports(mode) thread_list = [] for t in range(threads): thread = threading.Thread(target=worker) thread_list.append(thread) for thread in thread_list: thread.start() for thread in thread_list: thread.join() print("The open ports are:", open_ports) if __name__ == "__main__": main(100, 4)
[ 1, 515, 9521, 1053, 5462, 434, 13, 5215, 9909, 13, 5215, 3244, 292, 13, 13, 5182, 353, 376, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29908, 13, 9990, 353, 5462, 434, 580, 13, 3150, 29918, 4011, 353, 5159, 13, 15945, 29908, 13, 2011, 29871, 29947, 29900, 313, 10493, 29897, 470, 2011, 29871, 29946, 29946, 29941, 313, 10493, 29903, 29897, 29871, 29906, 29896, 313, 29943, 3557, 511, 29871, 29906, 29906, 313, 1799, 29950, 511, 29871, 29906, 29945, 313, 17061, 3557, 29897, 13, 15945, 29908, 13, 29937, 4511, 304, 263, 3646, 373, 263, 2702, 2011, 13, 13, 13, 1753, 2011, 16192, 29898, 637, 1125, 13, 1678, 1018, 29901, 13, 4706, 577, 384, 353, 9909, 29889, 11514, 29898, 11514, 29889, 5098, 29918, 1177, 2544, 29892, 9909, 29889, 6156, 7077, 29918, 1254, 1525, 5194, 29897, 13, 4706, 577, 384, 29889, 6915, 3552, 5182, 29892, 2011, 876, 13, 4706, 736, 5852, 13, 1678, 5174, 29901, 13, 4706, 736, 7700, 13, 13, 13, 1753, 679, 29918, 4011, 29898, 8513, 1125, 13, 1678, 396, 363, 3918, 1891, 16169, 13, 1678, 565, 4464, 1275, 29871, 29896, 29901, 13, 4706, 363, 2011, 297, 3464, 29898, 29896, 29892, 29871, 29896, 29900, 29906, 29946, 1125, 13, 9651, 9521, 29889, 649, 29898, 637, 29897, 13, 1678, 396, 363, 21676, 16169, 13, 1678, 25342, 4464, 1275, 29871, 29906, 29901, 13, 4706, 363, 2011, 297, 3464, 29898, 29896, 29892, 29871, 29946, 29929, 29896, 29945, 29906, 1125, 13, 9651, 9521, 29889, 649, 29898, 637, 29897, 13, 1678, 396, 363, 278, 1556, 4100, 16169, 871, 13, 1678, 25342, 4464, 1275, 29871, 29941, 29901, 13, 4706, 16169, 353, 518, 29906, 29900, 29892, 29871, 29906, 29896, 29892, 29871, 29906, 29906, 29892, 29871, 29906, 29941, 29892, 29871, 29906, 29945, 29892, 29871, 29945, 29941, 29892, 29871, 29947, 29900, 29892, 29871, 29896, 29896, 29900, 29892, 29871, 29946, 29946, 29941, 29962, 13, 4706, 363, 2011, 297, 16169, 29901, 13, 9651, 9521, 29889, 649, 29898, 637, 29897, 13, 1678, 396, 304, 6755, 1749, 16169, 7522, 13, 1678, 25342, 4464, 1275, 29871, 29946, 29901, 13, 4706, 16169, 353, 1881, 703, 10399, 596, 16169, 313, 25048, 403, 491, 9654, 1125, 16521, 13, 4706, 16169, 353, 16169, 29889, 5451, 580, 13, 4706, 16169, 353, 1051, 29898, 1958, 29898, 524, 29892, 16169, 876, 13, 4706, 363, 2011, 297, 16169, 29901, 13, 9651, 9521, 29889, 649, 29898, 637, 29897, 13, 13, 13, 29937, 679, 278, 2011, 3694, 515, 278, 9521, 29892, 12812, 963, 322, 1596, 278, 2582, 13, 1753, 15645, 7295, 13, 1678, 1550, 451, 9521, 29889, 6310, 7295, 13, 4706, 2011, 353, 9521, 29889, 657, 580, 13, 4706, 565, 2011, 16192, 29898, 637, 1125, 13, 9651, 1596, 29898, 29888, 29908, 2290, 426, 637, 29913, 338, 1722, 29991, 1159, 13, 9651, 1722, 29918, 4011, 29889, 4397, 29898, 637, 29897, 13, 4706, 1683, 29901, 13, 9651, 1596, 29898, 29888, 29908, 2290, 426, 637, 29913, 338, 5764, 29991, 1159, 13, 13, 13, 29937, 1235, 29915, 29879, 1653, 1369, 322, 10933, 1749, 9717, 13, 1753, 1667, 29898, 28993, 29892, 4464, 1125, 13, 1678, 679, 29918, 4011, 29898, 8513, 29897, 13, 1678, 3244, 29918, 1761, 353, 5159, 13, 1678, 363, 260, 297, 3464, 29898, 28993, 1125, 13, 4706, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 24602, 29897, 13, 4706, 3244, 29918, 1761, 29889, 4397, 29898, 7097, 29897, 13, 1678, 363, 3244, 297, 3244, 29918, 1761, 29901, 13, 4706, 3244, 29889, 2962, 580, 13, 1678, 363, 3244, 297, 3244, 29918, 1761, 29901, 13, 4706, 3244, 29889, 7122, 580, 13, 13, 1678, 1596, 703, 1576, 1722, 16169, 526, 29901, 613, 1722, 29918, 4011, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 29898, 29896, 29900, 29900, 29892, 29871, 29946, 29897, 13, 2 ]
h/streamer/__init__.py
kevinjalbert/h
1
125717
<filename>h/streamer/__init__.py from h.streamer.tweens import close_db_session_tween_factory __all__ = ["close_db_session_tween_factory"] def includeme(config): config.include("h.streamer.views") config.add_subscriber( "h.streamer.streamer.start", "pyramid.events.ApplicationCreated" )
[ 1, 529, 9507, 29958, 29882, 29914, 5461, 261, 29914, 1649, 2344, 26914, 2272, 13, 3166, 298, 29889, 5461, 261, 29889, 29873, 705, 575, 1053, 3802, 29918, 2585, 29918, 7924, 29918, 29873, 1452, 29918, 14399, 13, 13, 1649, 497, 1649, 353, 6796, 5358, 29918, 2585, 29918, 7924, 29918, 29873, 1452, 29918, 14399, 3108, 13, 13, 13, 1753, 3160, 1004, 29898, 2917, 1125, 13, 1678, 2295, 29889, 2856, 703, 29882, 29889, 5461, 261, 29889, 7406, 1159, 13, 13, 1678, 2295, 29889, 1202, 29918, 1491, 7588, 495, 29898, 13, 4706, 376, 29882, 29889, 5461, 261, 29889, 5461, 261, 29889, 2962, 613, 376, 2272, 2572, 333, 29889, 13604, 29889, 4873, 20399, 29908, 13, 1678, 1723, 13, 2 ]
src/app_contexts/app_factory.py
marcoprado17/flask-bone
0
156656
<filename>src/app_contexts/app_factory.py # !/usr/bin/env python # -*- coding: utf-8 -*- # ====================================================================================================================== # The MIT License (MIT) # ====================================================================================================================== # Copyright (c) 2016 [<NAME> - <EMAIL>] # ====================================================================================================================== import sys if sys.version_info.major < 3: reload(sys) sys.setdefaultencoding('utf8') from flask import Flask, redirect, request, url_for from configs import default_app_config from configs.instance import instance_app_config from configs.instance import unit_test_app_config from extensions import db from flask_bombril.log import log_request def __create_app(configs): static_folder = None for config in configs: if hasattr(config, 'STATIC_FOLDER'): static_folder = config.STATIC_FOLDER app = Flask(__name__, instance_relative_config=True, static_folder=static_folder) for config in configs: app.config.from_object(config) # Initializing extensions from extensions import bcrypt bcrypt.init_app(app) from extensions import db db.init_app(app) from extensions import mail mail.init_app(app) return app def create_app(): app = __create_app([default_app_config, instance_app_config]) @app.route("/") def home_redirect(): return redirect("home") # ================================================================================================================== # # # # # Registering blueprints # ================================================================================================================== # # Components # from blueprints.components.lightly_route_dependent.navbar import navbar_blueprint app.register_blueprint(navbar_blueprint, url_prefix="/navbar") # # Routers # from blueprints.routers.home import home_blueprint app.register_blueprint(home_blueprint, url_prefix="/home") from blueprints.routers.register import register_blueprint app.register_blueprint(register_blueprint, url_prefix="/cadastrar") if app.config["DEBUG"]: from blueprints.routers.debug import debug_blueprint app.register_blueprint(debug_blueprint, url_prefix="/debug") # # Wrappers # from blueprints.wrappers.base import base_blueprint app.register_blueprint(base_blueprint, url_prefix="/base") # # Macros # from macros import macros_blueprint app.register_blueprint(macros_blueprint) # # Email # from email_blueprint import email_blueprint app.register_blueprint(email_blueprint) # ================================================================================================================== # # # # # Registering jinja filters # ================================================================================================================== from flask_bombril.jinja_filters import assert_defined, assert_callable, call, if_filter, is_static, is_toast, get_level app.jinja_env.filters['assert_defined'] = assert_defined app.jinja_env.filters['assert_callable'] = assert_callable app.jinja_env.filters['call'] = call app.jinja_env.filters['if'] = if_filter app.jinja_env.filters['is_static'] = is_static app.jinja_env.filters['is_toast'] = is_toast app.jinja_env.filters['get_level'] = get_level # ================================================================================================================== # # # # # Registering lightly route dependent components context_processors # ================================================================================================================== from blueprints.components.lightly_route_dependent.navbar.navbar_data_provider import navbar_data_provider from r import R @app.context_processor def _(): return dict( get_navbar_data=lambda: navbar_data_provider.get_data(), R=R, ) # ================================================================================================================== # # # # # Configuring Logging # ================================================================================================================== import logging from logging.handlers import TimedRotatingFileHandler handler = TimedRotatingFileHandler( filename=app.config['LOGGING_FILENAME'], when=app.config['LOGGING_WHEN'], interval=app.config['LOGGING_INTERVAL'], backupCount=app.config['LOGGING_BACKUP_COUNT'] ) formatter = logging.Formatter(app.config['LOGGING_FORMAT']) handler.setFormatter(formatter) app.logger.addHandler(handler) # ================================================================================================================== # # # # # Registering 500 error handler # ================================================================================================================== @app.errorhandler(500) def handle_error(error): db.session.rollback() log_request(app.logger.error) return R.string.temp_error_html % dict(href=url_for("home.index")), 500 return app def create_unit_test_app(): app = __create_app([default_app_config, instance_app_config, unit_test_app_config]) return app
[ 1, 529, 9507, 29958, 4351, 29914, 932, 29918, 4703, 29879, 29914, 932, 29918, 14399, 29889, 2272, 13, 29937, 1738, 29914, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 2751, 13, 29937, 450, 341, 1806, 19245, 313, 26349, 29897, 13, 29937, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 2751, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 518, 29966, 5813, 29958, 448, 529, 26862, 6227, 29958, 29962, 13, 29937, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 2751, 13, 5215, 10876, 13, 13, 361, 10876, 29889, 3259, 29918, 3888, 29889, 21355, 529, 29871, 29941, 29901, 13, 1678, 19763, 29898, 9675, 29897, 13, 9675, 29889, 842, 4381, 22331, 877, 9420, 29947, 1495, 13, 13, 3166, 29784, 1053, 2379, 1278, 29892, 6684, 29892, 2009, 29892, 3142, 29918, 1454, 13, 13, 3166, 2295, 29879, 1053, 2322, 29918, 932, 29918, 2917, 13, 3166, 2295, 29879, 29889, 8758, 1053, 2777, 29918, 932, 29918, 2917, 13, 3166, 2295, 29879, 29889, 8758, 1053, 5190, 29918, 1688, 29918, 932, 29918, 2917, 13, 13, 3166, 17752, 1053, 4833, 13, 13, 3166, 29784, 29918, 29890, 290, 1182, 309, 29889, 1188, 1053, 1480, 29918, 3827, 13, 13, 1753, 4770, 3258, 29918, 932, 29898, 2917, 29879, 1125, 13, 1678, 2294, 29918, 12083, 353, 6213, 13, 1678, 363, 2295, 297, 2295, 29879, 29901, 13, 4706, 565, 756, 5552, 29898, 2917, 29892, 525, 17816, 2965, 29918, 29943, 5607, 8032, 29374, 13, 9651, 2294, 29918, 12083, 353, 2295, 29889, 17816, 2965, 29918, 29943, 5607, 8032, 13, 13, 1678, 623, 353, 2379, 1278, 22168, 978, 1649, 29892, 2777, 29918, 22925, 29918, 2917, 29922, 5574, 29892, 2294, 29918, 12083, 29922, 7959, 29918, 12083, 29897, 13, 13, 1678, 363, 2295, 297, 2295, 29879, 29901, 13, 4706, 623, 29889, 2917, 29889, 3166, 29918, 3318, 29898, 2917, 29897, 13, 13, 1678, 396, 17250, 5281, 17752, 13, 1678, 515, 17752, 1053, 289, 29883, 4641, 13, 1678, 289, 29883, 4641, 29889, 2344, 29918, 932, 29898, 932, 29897, 13, 1678, 515, 17752, 1053, 4833, 13, 1678, 4833, 29889, 2344, 29918, 932, 29898, 932, 29897, 13, 1678, 515, 17752, 1053, 10524, 13, 1678, 10524, 29889, 2344, 29918, 932, 29898, 932, 29897, 13, 13, 1678, 736, 623, 13, 13, 13, 1753, 1653, 29918, 932, 7295, 13, 1678, 623, 353, 4770, 3258, 29918, 932, 4197, 4381, 29918, 932, 29918, 2917, 29892, 2777, 29918, 932, 29918, 2917, 2314, 13, 13, 1678, 732, 932, 29889, 13134, 11974, 1159, 13, 1678, 822, 3271, 29918, 17886, 7295, 13, 4706, 736, 6684, 703, 5184, 1159, 13, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 12577, 292, 7254, 2158, 29879, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 396, 13, 1678, 396, 422, 9340, 13, 1678, 396, 13, 1678, 515, 7254, 2158, 29879, 29889, 14036, 29889, 4366, 368, 29918, 13134, 29918, 18980, 29889, 21890, 1053, 6283, 1646, 29918, 9539, 2158, 13, 1678, 623, 29889, 9573, 29918, 9539, 2158, 29898, 21890, 29918, 9539, 2158, 29892, 3142, 29918, 13506, 13802, 21890, 1159, 13, 1678, 396, 13, 1678, 396, 15915, 2153, 13, 1678, 396, 13, 1678, 515, 7254, 2158, 29879, 29889, 27537, 2153, 29889, 5184, 1053, 3271, 29918, 9539, 2158, 13, 1678, 623, 29889, 9573, 29918, 9539, 2158, 29898, 5184, 29918, 9539, 2158, 29892, 3142, 29918, 13506, 13802, 5184, 1159, 13, 1678, 515, 7254, 2158, 29879, 29889, 27537, 2153, 29889, 9573, 1053, 6036, 29918, 9539, 2158, 13, 1678, 623, 29889, 9573, 29918, 9539, 2158, 29898, 9573, 29918, 9539, 2158, 29892, 3142, 29918, 13506, 13802, 29883, 3922, 509, 279, 1159, 13, 1678, 565, 623, 29889, 2917, 3366, 18525, 3108, 29901, 13, 4706, 515, 7254, 2158, 29879, 29889, 27537, 2153, 29889, 8382, 1053, 4744, 29918, 9539, 2158, 13, 4706, 623, 29889, 9573, 29918, 9539, 2158, 29898, 8382, 29918, 9539, 2158, 29892, 3142, 29918, 13506, 13802, 8382, 1159, 13, 1678, 396, 13, 1678, 396, 399, 336, 22437, 13, 1678, 396, 13, 1678, 515, 7254, 2158, 29879, 29889, 29893, 336, 22437, 29889, 3188, 1053, 2967, 29918, 9539, 2158, 13, 1678, 623, 29889, 9573, 29918, 9539, 2158, 29898, 3188, 29918, 9539, 2158, 29892, 3142, 29918, 13506, 13802, 3188, 1159, 13, 1678, 396, 13, 1678, 396, 4326, 1883, 13, 1678, 396, 13, 1678, 515, 5825, 1883, 1053, 5825, 1883, 29918, 9539, 2158, 13, 1678, 623, 29889, 9573, 29918, 9539, 2158, 29898, 8628, 1883, 29918, 9539, 2158, 29897, 13, 1678, 396, 13, 1678, 396, 22608, 13, 1678, 396, 13, 1678, 515, 4876, 29918, 9539, 2158, 1053, 4876, 29918, 9539, 2158, 13, 1678, 623, 29889, 9573, 29918, 9539, 2158, 29898, 5269, 29918, 9539, 2158, 29897, 13, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 12577, 292, 432, 262, 1764, 18094, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 515, 29784, 29918, 29890, 290, 1182, 309, 29889, 28789, 1764, 29918, 26705, 1053, 4974, 29918, 12119, 29892, 4974, 29918, 4804, 519, 29892, 1246, 29892, 565, 29918, 4572, 29892, 338, 29918, 7959, 29892, 338, 29918, 517, 579, 29892, 679, 29918, 5563, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 9294, 29918, 12119, 2033, 353, 4974, 29918, 12119, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 9294, 29918, 4804, 519, 2033, 353, 4974, 29918, 4804, 519, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 4804, 2033, 353, 1246, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 361, 2033, 353, 565, 29918, 4572, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 275, 29918, 7959, 2033, 353, 338, 29918, 7959, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 275, 29918, 517, 579, 2033, 353, 338, 29918, 517, 579, 13, 1678, 623, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 657, 29918, 5563, 2033, 353, 679, 29918, 5563, 13, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 12577, 292, 3578, 368, 5782, 14278, 7117, 3030, 29918, 5014, 943, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 515, 7254, 2158, 29879, 29889, 14036, 29889, 4366, 368, 29918, 13134, 29918, 18980, 29889, 21890, 29889, 21890, 29918, 1272, 29918, 18121, 1053, 6283, 1646, 29918, 1272, 29918, 18121, 13, 1678, 515, 364, 1053, 390, 13, 13, 1678, 732, 932, 29889, 4703, 29918, 26482, 13, 1678, 822, 903, 7295, 13, 4706, 736, 9657, 29898, 13, 9651, 679, 29918, 21890, 29918, 1272, 29922, 2892, 29901, 6283, 1646, 29918, 1272, 29918, 18121, 29889, 657, 29918, 1272, 3285, 13, 9651, 390, 29922, 29934, 29892, 13, 4706, 1723, 13, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 12782, 3864, 4522, 3460, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 1053, 12183, 13, 1678, 515, 12183, 29889, 3179, 9306, 1053, 7870, 287, 21281, 1218, 2283, 4598, 13, 1678, 7834, 353, 7870, 287, 21281, 1218, 2283, 4598, 29898, 13, 4706, 10422, 29922, 932, 29889, 2917, 1839, 14480, 29954, 4214, 29918, 7724, 5813, 7464, 13, 4706, 746, 29922, 932, 29889, 2917, 1839, 14480, 29954, 4214, 29918, 25039, 1430, 7464, 13, 4706, 7292, 29922, 932, 29889, 2917, 1839, 14480, 29954, 4214, 29918, 23845, 8932, 7464, 13, 4706, 16199, 3981, 29922, 932, 29889, 2917, 1839, 14480, 29954, 4214, 29918, 29933, 11375, 4897, 29918, 18736, 2033, 13, 1678, 1723, 13, 1678, 883, 2620, 353, 12183, 29889, 18522, 29898, 932, 29889, 2917, 1839, 14480, 29954, 4214, 29918, 19094, 1299, 11287, 13, 1678, 7834, 29889, 842, 18522, 29898, 689, 2620, 29897, 13, 1678, 623, 29889, 21707, 29889, 1202, 4598, 29898, 13789, 29897, 13, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 12577, 292, 29871, 29945, 29900, 29900, 1059, 7834, 13, 1678, 396, 1275, 9166, 9166, 9166, 9166, 9166, 9166, 9166, 13, 1678, 732, 932, 29889, 2704, 13789, 29898, 29945, 29900, 29900, 29897, 13, 1678, 822, 4386, 29918, 2704, 29898, 2704, 1125, 13, 4706, 4833, 29889, 7924, 29889, 1245, 1627, 580, 13, 4706, 1480, 29918, 3827, 29898, 932, 29889, 21707, 29889, 2704, 29897, 13, 4706, 736, 390, 29889, 1807, 29889, 7382, 29918, 2704, 29918, 1420, 1273, 9657, 29898, 12653, 29922, 2271, 29918, 1454, 703, 5184, 29889, 2248, 1159, 511, 29871, 29945, 29900, 29900, 13, 13, 1678, 736, 623, 13, 13, 13, 1753, 1653, 29918, 5441, 29918, 1688, 29918, 932, 7295, 13, 1678, 623, 353, 4770, 3258, 29918, 932, 4197, 4381, 29918, 932, 29918, 2917, 29892, 2777, 29918, 932, 29918, 2917, 29892, 5190, 29918, 1688, 29918, 932, 29918, 2917, 2314, 13, 13, 1678, 736, 623, 13, 2 ]
VPLVisitor.py
lamhacker/VPL-Compiler
2
163511
# Generated from VPL.g4 by ANTLR 4.7 from antlr4 import * if __name__ is not None and "." in __name__: from .VPLParser import VPLParser else: from VPLParser import VPLParser # This class defines a complete generic visitor for a parse tree produced by VPLParser. class VPLVisitor(ParseTreeVisitor): # Visit a parse tree produced by VPLParser#program. def visitProgram(self, ctx:VPLParser.ProgramContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#function_declaration. def visitFunction_declaration(self, ctx:VPLParser.Function_declarationContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#parameter. def visitParameter(self, ctx:VPLParser.ParameterContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#parameterName. def visitParameterName(self, ctx:VPLParser.ParameterNameContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#multParameterName. def visitMultParameterName(self, ctx:VPLParser.MultParameterNameContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#variable_declaration. def visitVariable_declaration(self, ctx:VPLParser.Variable_declarationContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#condition. def visitCondition(self, ctx:VPLParser.ConditionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#whileloop. def visitWhileloop(self, ctx:VPLParser.WhileloopContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#assign. def visitAssign(self, ctx:VPLParser.AssignContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#noneStatement. def visitNoneStatement(self, ctx:VPLParser.NoneStatementContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#nest_statement. def visitNest_statement(self, ctx:VPLParser.Nest_statementContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#addExpression. def visitAddExpression(self, ctx:VPLParser.AddExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#minusExpression. def visitMinusExpression(self, ctx:VPLParser.MinusExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#multExpression. def visitMultExpression(self, ctx:VPLParser.MultExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#divExpression. def visitDivExpression(self, ctx:VPLParser.DivExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#minExpression. def visitMinExpression(self, ctx:VPLParser.MinExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#parenthesisExpression. def visitParenthesisExpression(self, ctx:VPLParser.ParenthesisExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#idenetExpression. def visitIdenetExpression(self, ctx:VPLParser.IdenetExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#numExpression. def visitNumExpression(self, ctx:VPLParser.NumExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#lessThan. def visitLessThan(self, ctx:VPLParser.LessThanContext): return self.visitChildren(ctx) # Visit a parse tree produced by VPLParser#largeThan. def visitLargeThan(self, ctx:VPLParser.LargeThanContext): return self.visitChildren(ctx) del VPLParser
[ 1, 396, 3251, 630, 515, 478, 7390, 29889, 29887, 29946, 491, 13764, 14632, 29934, 29871, 29946, 29889, 29955, 13, 3166, 3677, 29212, 29946, 1053, 334, 13, 361, 4770, 978, 1649, 338, 451, 6213, 322, 376, 1213, 297, 4770, 978, 1649, 29901, 13, 1678, 515, 869, 29963, 7390, 11726, 1053, 478, 7390, 11726, 13, 2870, 29901, 13, 1678, 515, 478, 7390, 11726, 1053, 478, 7390, 11726, 13, 13, 29937, 910, 770, 17645, 263, 4866, 10035, 27682, 363, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29889, 13, 13, 1990, 478, 7390, 6116, 2105, 29898, 12914, 9643, 6116, 2105, 1125, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 8860, 29889, 13, 1678, 822, 6493, 9283, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 9283, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 2220, 29918, 311, 16544, 362, 29889, 13, 1678, 822, 6493, 6678, 29918, 311, 16544, 362, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 6678, 29918, 311, 16544, 362, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 15501, 29889, 13, 1678, 822, 6493, 9329, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 9329, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 15501, 1170, 29889, 13, 1678, 822, 6493, 9329, 1170, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 9329, 1170, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 4713, 9329, 1170, 29889, 13, 1678, 822, 6493, 6857, 9329, 1170, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 6857, 9329, 1170, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 11918, 29918, 311, 16544, 362, 29889, 13, 1678, 822, 6493, 16174, 29918, 311, 16544, 362, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 16174, 29918, 311, 16544, 362, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 16122, 29889, 13, 1678, 822, 6493, 25255, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 25255, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 8000, 7888, 29889, 13, 1678, 822, 6493, 8809, 488, 7888, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 8809, 488, 7888, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 16645, 29889, 13, 1678, 822, 6493, 7900, 647, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 7900, 647, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 9290, 14473, 29889, 13, 1678, 822, 6493, 8516, 14473, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 8516, 14473, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 17510, 29918, 20788, 29889, 13, 1678, 822, 6493, 29940, 342, 29918, 20788, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 29940, 342, 29918, 20788, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 1202, 10960, 29889, 13, 1678, 822, 6493, 2528, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 2528, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 12254, 10960, 29889, 13, 1678, 822, 6493, 8140, 375, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 8140, 375, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 4713, 10960, 29889, 13, 1678, 822, 6493, 6857, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 6857, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 4563, 10960, 29889, 13, 1678, 822, 6493, 12596, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 12596, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 1195, 10960, 29889, 13, 1678, 822, 6493, 8140, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 8140, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 3560, 29882, 6656, 10960, 29889, 13, 1678, 822, 6493, 2177, 9097, 6656, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 2177, 9097, 6656, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 3615, 300, 10960, 29889, 13, 1678, 822, 6493, 29902, 1145, 300, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 29902, 1145, 300, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 1949, 10960, 29889, 13, 1678, 822, 6493, 8009, 10960, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 8009, 10960, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 2222, 1349, 273, 29889, 13, 1678, 822, 6493, 29931, 404, 1349, 273, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 29931, 404, 1349, 273, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 1678, 396, 5741, 277, 263, 6088, 5447, 7371, 491, 478, 7390, 11726, 29937, 16961, 1349, 273, 29889, 13, 1678, 822, 6493, 24105, 479, 1349, 273, 29898, 1311, 29892, 12893, 29901, 29963, 7390, 11726, 29889, 24105, 479, 1349, 273, 2677, 1125, 13, 4706, 736, 1583, 29889, 1730, 277, 19334, 29898, 13073, 29897, 13, 13, 13, 13, 6144, 478, 7390, 11726, 2 ]
moodle/mod/workshop/__init__.py
Hardikris/moodlepy
0
1600350
from .base import BaseWorkshop __all__ = [ "BaseWorkshop", ]
[ 1, 515, 869, 3188, 1053, 7399, 5531, 19032, 13, 13, 1649, 497, 1649, 353, 518, 13, 1678, 376, 5160, 5531, 19032, 613, 13, 29962, 13, 2 ]
rob599_hw3/scripts/noiser.py
4-legends/Software-for-robotics-rob599
0
65983
#!/usr/bin/env python import rospy import math import numpy as np from sensor_msgs.msg import LaserScan ####################################### # Laser Scan: # Header: Seq, Stamp, frame_id # Angle_min, Angle_max, Angle_Increment, Time_Increment # Scan time, range_min, range_max, ranges, intensities ####################################### class Noise_class: def __init__(self): #rospy.on_shutdown(self.save_csv) self.laser_sub = rospy.Subscriber('/base_scan', LaserScan, self.laser_callback) self.scan_pub = rospy.Publisher('/gaus_err_laser_scan', LaserScan, queue_size= 1) def laser_callback(self, msg): filtered_values = LaserScan() distance = np.array(msg.ranges) filtered_values.header = msg.header filtered_values.angle_increment = msg.angle_increment filtered_values.time_increment = msg.time_increment filtered_values.scan_time = msg.scan_time filtered_values.range_min = msg.range_min filtered_values.range_max = msg.range_max filtered_values.intensities = msg.intensities angle = filtered_values.angle_increment min_angle = msg.angle_min max_angle = msg.angle_max laser_noise_variance = rospy.get_param('laser_noise_variance') if laser_noise_variance <= 0: laser_noise_variance = 0.1 filtered_values_ranges = np.zeros(len(distance)) noise_values_ranges = np.random.normal(loc = 0, scale=laser_noise_variance, size=len(distance)) for i in range(len(distance)): filtered_values_ranges[i] = noise_values_ranges[i]+distance[i] filtered_values.ranges = filtered_values_ranges filtered_values.angle_min = min_angle filtered_values.angle_max = max_angle self.scan_pub.publish(filtered_values) if __name__ == '__main__': rospy.init_node('noiser', anonymous=True) noisy = Noise_class() try: rospy.spin() except KeyboardInterrupt: print("Shutting down")
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 696, 1028, 29891, 13, 5215, 5844, 13, 5215, 12655, 408, 7442, 13, 3166, 23530, 29918, 1516, 3174, 29889, 7645, 1053, 7413, 261, 29083, 13, 13383, 13383, 4136, 2277, 29937, 13, 29937, 7413, 261, 2522, 273, 29901, 29871, 13, 29937, 29871, 12, 7850, 29901, 25981, 29892, 624, 1160, 29892, 3515, 29918, 333, 13, 29937, 29871, 12, 19582, 29918, 1195, 29892, 3218, 280, 29918, 3317, 29892, 3218, 280, 29918, 797, 17053, 29892, 5974, 29918, 797, 17053, 13, 29937, 12, 29083, 931, 29892, 3464, 29918, 1195, 29892, 3464, 29918, 3317, 29892, 20238, 29892, 12838, 1907, 29871, 13, 13383, 13383, 4136, 2277, 29937, 13, 13, 1990, 1939, 895, 29918, 1990, 29901, 13, 12, 1753, 4770, 2344, 12035, 1311, 1125, 13, 12, 12, 29937, 307, 1028, 29891, 29889, 265, 29918, 845, 329, 3204, 29898, 1311, 29889, 7620, 29918, 7638, 29897, 13, 12, 12, 1311, 29889, 3333, 261, 29918, 1491, 353, 696, 1028, 29891, 29889, 4035, 7588, 495, 11219, 3188, 29918, 16192, 742, 7413, 261, 29083, 29892, 1583, 29889, 3333, 261, 29918, 14035, 29897, 13, 12, 12, 1311, 29889, 16192, 29918, 5467, 353, 696, 1028, 29891, 29889, 21076, 1674, 261, 11219, 29887, 1485, 29918, 3127, 29918, 3333, 261, 29918, 16192, 742, 7413, 261, 29083, 29892, 9521, 29918, 2311, 29922, 29871, 29896, 29897, 13, 13, 13, 12, 1753, 1869, 261, 29918, 14035, 29898, 1311, 29892, 10191, 1125, 13, 12, 12, 4572, 287, 29918, 5975, 353, 7413, 261, 29083, 580, 13, 12, 12, 19244, 353, 7442, 29889, 2378, 29898, 7645, 29889, 29878, 6916, 29897, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 6672, 353, 10191, 29889, 6672, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 2521, 29918, 25629, 353, 10191, 29889, 2521, 29918, 25629, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 2230, 29918, 25629, 353, 10191, 29889, 2230, 29918, 25629, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 16192, 29918, 2230, 353, 10191, 29889, 16192, 29918, 2230, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 3881, 29918, 1195, 353, 10191, 29889, 3881, 29918, 1195, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 3881, 29918, 3317, 353, 10191, 29889, 3881, 29918, 3317, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 524, 575, 1907, 353, 10191, 29889, 524, 575, 1907, 13, 12, 12, 2521, 353, 22289, 29918, 5975, 29889, 2521, 29918, 25629, 13, 12, 12, 1195, 29918, 2521, 353, 10191, 29889, 2521, 29918, 1195, 13, 12, 12, 3317, 29918, 2521, 353, 10191, 29889, 2521, 29918, 3317, 13, 12, 12, 13, 12, 12, 3333, 261, 29918, 1217, 895, 29918, 1707, 8837, 353, 696, 1028, 29891, 29889, 657, 29918, 3207, 877, 3333, 261, 29918, 1217, 895, 29918, 1707, 8837, 1495, 13, 12, 12, 361, 1869, 261, 29918, 1217, 895, 29918, 1707, 8837, 5277, 29871, 29900, 29901, 13, 12, 12, 12, 3333, 261, 29918, 1217, 895, 29918, 1707, 8837, 353, 29871, 29900, 29889, 29896, 13, 12, 12, 13, 12, 12, 4572, 287, 29918, 5975, 29918, 29878, 6916, 353, 7442, 29889, 3298, 359, 29898, 2435, 29898, 19244, 876, 13, 12, 12, 1217, 895, 29918, 5975, 29918, 29878, 6916, 353, 7442, 29889, 8172, 29889, 8945, 29898, 2029, 353, 29871, 29900, 29892, 6287, 29922, 3333, 261, 29918, 1217, 895, 29918, 1707, 8837, 29892, 2159, 29922, 2435, 29898, 19244, 876, 13, 13, 12, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 19244, 22164, 13, 12, 12, 12, 4572, 287, 29918, 5975, 29918, 29878, 6916, 29961, 29875, 29962, 353, 11462, 29918, 5975, 29918, 29878, 6916, 29961, 29875, 10062, 19244, 29961, 29875, 29962, 13, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 29878, 6916, 353, 22289, 29918, 5975, 29918, 29878, 6916, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 2521, 29918, 1195, 353, 1375, 29918, 2521, 13, 12, 12, 4572, 287, 29918, 5975, 29889, 2521, 29918, 3317, 353, 4236, 29918, 2521, 13, 12, 12, 1311, 29889, 16192, 29918, 5467, 29889, 23679, 29898, 4572, 287, 29918, 5975, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 12, 307, 1028, 29891, 29889, 2344, 29918, 3177, 877, 1217, 7608, 742, 21560, 29922, 5574, 29897, 13, 12, 1217, 13344, 353, 1939, 895, 29918, 1990, 580, 13, 12, 2202, 29901, 13, 12, 12, 307, 1028, 29891, 29889, 1028, 262, 580, 13, 12, 19499, 7670, 3377, 4074, 6685, 29901, 13, 12, 12, 2158, 703, 2713, 329, 1259, 1623, 1159, 13, 2 ]
openGaussBase/testcase/AI/AI_MODEL/Opengauss_Function_Snapshot_Case0007.py
opengauss-mirror/Yat
0
1610319
<reponame>opengauss-mirror/Yat """ Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details. """ """ Case Type : 智能运维snapshot模块 Case Name : 创建快照后使用linear_regression算子创建model Description : 1.建表并插入数据 2.创建快照 3.创建训练集与测试集 4.查看当前数据表快照 5.查询创建的训练集数据 6.使用linear_regression算子创建model 7.查找系统表 8.预测表数据 9.清理环境 Expect : 1.建表并插入数据成功 2.创建快照成功 3.创建训练集与测试集成功 4.返回当前数据表快照 5.返回创建的训练集数据 6.使用linear_regression算子创建model成功 7.返回创建model的modelname 8.返回预测的表数据 9.清理环境成功 History : """ import os import unittest from testcase.utils.Constant import Constant from testcase.utils.CommonSH import CommonSH from testcase.utils.Logger import Logger class AI(unittest.TestCase): def setUp(self): self.logger = Logger() self.primary_sh = CommonSH('PrimaryDbUser') self.Con = Constant() self.table = 't_snapshot_tab_0007' self.snapshot = '[email protected]' self.snapshot1 = '[email protected]' self.snapshot2 = '[email protected]' self.model = 'm_model_snapshot_0007' def test_ai_snapshot(self): self.logger.info(f'-----{os.path.basename(__file__)} start-----') step = 'step1:建表并插入数据 expect:建表并插入数据成功' self.logger.info(step) create_table = self.primary_sh.execut_db_sql( f'''drop table if exists {self.table}; create table {self.table}(id int,tax int,bedroom int , bath float,price int,size int,lot int ); insert into {self.table} values(1,590,2,1,50000,770,22100), (2,1050,3,2 ,85000,1410,2000),(3,20 ,3,1,22500,1060,3500), (4,870,2,2,90000,1300,17500),(5,1320,3,2,133000,1500,30000), (6,1350,2,1,90500,820,25700),(7,2790,3,2.5,260000,2130,25000), (8,680,2,1,142500,1170,22000),(9,1840,3,2,160000,1500,19000), (10,3680,4,2,240000,2790,20000),(111,660,3,1,87000,1030,17500);''') self.logger.info(create_table) self.assertTrue(self.Con.TABLE_CREATE_SUCCESS in create_table and self.Con.INSERT_SUCCESS_MSG in create_table, "建表并插入数据失败" + step) step = 'step2:创建快照 expect:创建快照成功' self.logger.info(step) create_snapshot = self.primary_sh.execut_db_sql( f'''create snapshot {self.snapshot} as select * from {self.table}; ''') self.logger.info(create_snapshot) self.assertIn(self.snapshot, create_snapshot, "执行失败" + step) step = 'step3:创建训练集与测试集 expect:创建训练集与测试集成功' self.logger.info(step) create_snapshot = self.primary_sh.execut_db_sql( f'''sample snapshot {self.snapshot} stratify by price as _test at ratio .2, as _train at ratio .8 comment is 'training'; ''') self.logger.info(create_snapshot) self.assertIn(self.snapshot1, create_snapshot, "执行失败" + step) self.assertIn(self.snapshot2, create_snapshot, "执行失败" + step) step = 'step4:查看当前数据表快照 expect:返回当前数据表快照' self.logger.info(step) select_snapshot = self.primary_sh.execut_db_sql( f'''select * from db4ai.snapshot;''') self.logger.info(select_snapshot) self.assertIn(self.snapshot, select_snapshot, "执行失败" + step) self.assertIn(self.snapshot1, select_snapshot, "执行失败" + step) self.assertIn(self.snapshot2, select_snapshot, "执行失败" + step) step = 'step5:查询创建的训练集数据 expect:返回创建的训练集数据' self.logger.info(step) select_snapshot = self.primary_sh.execut_db_sql( f'''select * from {self.snapshot1};''') self.logger.info(select_snapshot) self.assertNotIn('(0 rows)', select_snapshot, "执行失败" + step) step = 'step6:使用linear_regression算子创建model;' \ 'expect:使用linear_regression算子创建model成功' self.logger.info(step) create_model = self.primary_sh.execut_db_sql( f'''create model {self.model} using linear_regression features 1,tax,bath,size target price from {self.snapshot1};''') self.logger.info(create_model) self.assertIn('MODEL CREATED. PROCESSED 1', create_model, "执行失败" + step) step = 'step7:查找系统表;expect:返回创建model的modelname' self.logger.info(step) select_model = self.primary_sh.execut_db_sql( f'''select modelname from gs_model_warehouse;''') self.logger.info(select_model) self.assertIn(self.model, select_model, "执行失败" + step) step = 'step8:预测表数据;expect:返回预测的表数据' self.logger.info(step) predict_data = self.primary_sh.execut_db_sql( f'''select predict by {self.model} (features 1,tax,bath,size) from {self.snapshot1};''') self.logger.info(predict_data) self.assertNotIn('(0 rows)', predict_data, "执行失败" + step) def tearDown(self): step = 'step9:清理环境 expect:清理环境成功' self.logger.info(step) clean_environment = self.primary_sh.execut_db_sql(f''' purge snapshot {self.snapshot1}; purge snapshot {self.snapshot2}; purge snapshot {self.snapshot}; drop table {self.table}; drop model {self.model}''') self.logger.info(clean_environment) self.assertIn(self.Con.TABLE_DROP_SUCCESS, clean_environment, "执行失败" + step) self.assertIn(f'{self.snapshot}', clean_environment, "执行失败" + step) self.assertIn(self.snapshot1, clean_environment, "执行失败" + step) self.assertIn(self.snapshot2, clean_environment, "执行失败" + step) self.assertIn('DROP MODEL', clean_environment, "执行失败" + step) self.logger.info(f'-----{os.path.basename(__file__)} end-----')
[ 1, 529, 276, 1112, 420, 29958, 459, 996, 11214, 29899, 11038, 729, 29914, 29979, 271, 13, 15945, 29908, 13, 11882, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29906, 379, 3357, 26599, 8364, 11763, 3189, 1696, 29931, 1594, 29889, 13, 13, 3150, 29954, 11214, 338, 7794, 21144, 1090, 21193, 273, 11323, 29931, 325, 29906, 29889, 13, 3492, 508, 671, 445, 7047, 5034, 304, 278, 4958, 322, 5855, 310, 278, 21193, 273, 11323, 29931, 325, 29906, 29889, 13, 3492, 1122, 4017, 263, 3509, 310, 21193, 273, 11323, 29931, 325, 29906, 472, 29901, 13, 13, 3986, 1732, 597, 506, 1947, 29889, 3944, 695, 29889, 990, 29889, 18038, 29914, 29924, 352, 273, 7024, 29931, 29906, 13, 13, 4690, 3235, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 6732, 13764, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 8079, 13764, 29979, 476, 22255, 29892, 13, 29923, 1806, 4448, 8528, 15094, 1799, 6323, 306, 3580, 5265, 3352, 29892, 2672, 6154, 15789, 4214, 350, 2692, 6058, 27848, 3352, 7495, 405, 1164, 29899, 1177, 15860, 1177, 1692, 13780, 29892, 13, 29924, 1001, 3210, 13566, 2882, 6227, 11937, 6323, 383, 1806, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 29889, 13, 13393, 278, 21193, 273, 11323, 29931, 325, 29906, 363, 901, 4902, 29889, 13, 15945, 29908, 13, 15945, 29908, 13, 8259, 5167, 259, 584, 29871, 31676, 30815, 31894, 234, 190, 183, 29879, 14551, 31382, 232, 160, 154, 13, 8259, 4408, 259, 584, 29871, 31441, 30886, 232, 194, 174, 234, 136, 170, 30822, 30785, 30406, 10660, 29918, 276, 11476, 31565, 30319, 31441, 30886, 4299, 13, 9868, 584, 13, 268, 29896, 29889, 30886, 30746, 31666, 233, 146, 149, 30752, 30354, 30763, 13, 268, 29906, 29889, 31441, 30886, 232, 194, 174, 234, 136, 170, 13, 268, 29941, 29889, 31441, 30886, 235, 177, 176, 234, 190, 134, 30893, 31267, 31851, 31787, 30893, 13, 268, 29946, 29889, 31213, 31811, 30948, 30658, 30354, 30763, 30746, 232, 194, 174, 234, 136, 170, 13, 268, 29945, 29889, 31213, 235, 178, 165, 31441, 30886, 30210, 235, 177, 176, 234, 190, 134, 30893, 30354, 30763, 13, 268, 29953, 29889, 30785, 30406, 10660, 29918, 276, 11476, 31565, 30319, 31441, 30886, 4299, 13, 268, 29955, 29889, 31213, 233, 140, 193, 31185, 31675, 30746, 13, 268, 29947, 29889, 236, 165, 135, 31851, 30746, 30354, 30763, 13, 268, 29929, 29889, 30989, 30687, 234, 145, 178, 232, 165, 134, 13, 1252, 1103, 418, 584, 13, 268, 29896, 29889, 30886, 30746, 31666, 233, 146, 149, 30752, 30354, 30763, 30494, 31134, 13, 268, 29906, 29889, 31441, 30886, 232, 194, 174, 234, 136, 170, 30494, 31134, 13, 268, 29941, 29889, 31441, 30886, 235, 177, 176, 234, 190, 134, 30893, 31267, 31851, 31787, 30893, 30494, 31134, 13, 268, 29946, 29889, 31086, 30742, 30948, 30658, 30354, 30763, 30746, 232, 194, 174, 234, 136, 170, 13, 268, 29945, 29889, 31086, 30742, 31441, 30886, 30210, 235, 177, 176, 234, 190, 134, 30893, 30354, 30763, 13, 268, 29953, 29889, 30785, 30406, 10660, 29918, 276, 11476, 31565, 30319, 31441, 30886, 4299, 30494, 31134, 13, 268, 29955, 29889, 31086, 30742, 31441, 30886, 4299, 30210, 4299, 978, 13, 268, 29947, 29889, 31086, 30742, 236, 165, 135, 31851, 30210, 30746, 30354, 30763, 13, 268, 29929, 29889, 30989, 30687, 234, 145, 178, 232, 165, 134, 30494, 31134, 13, 20570, 268, 584, 13, 15945, 29908, 13, 13, 5215, 2897, 13, 5215, 443, 27958, 13, 3166, 1243, 4878, 29889, 13239, 29889, 12075, 424, 1053, 28601, 13, 3166, 1243, 4878, 29889, 13239, 29889, 18877, 7068, 1053, 13103, 7068, 13, 3166, 1243, 4878, 29889, 13239, 29889, 16363, 1053, 28468, 13, 13, 13, 1990, 319, 29902, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 21707, 353, 28468, 580, 13, 4706, 1583, 29889, 16072, 29918, 845, 353, 13103, 7068, 877, 26666, 10234, 2659, 1495, 13, 4706, 1583, 29889, 1168, 353, 28601, 580, 13, 4706, 1583, 29889, 2371, 353, 525, 29873, 29918, 29879, 14551, 29918, 3891, 29918, 29900, 29900, 29900, 29955, 29915, 13, 4706, 1583, 29889, 29879, 14551, 353, 525, 29879, 29918, 29879, 14551, 29918, 29879, 29896, 29992, 29896, 29889, 29900, 29915, 13, 4706, 1583, 29889, 29879, 14551, 29896, 353, 525, 29879, 29918, 29879, 14551, 29918, 29879, 29896, 29918, 14968, 29992, 29896, 29889, 29900, 29915, 13, 4706, 1583, 29889, 29879, 14551, 29906, 353, 525, 29879, 29918, 29879, 14551, 29918, 29879, 29896, 29918, 1688, 29992, 29896, 29889, 29900, 29915, 13, 4706, 1583, 29889, 4299, 353, 525, 29885, 29918, 4299, 29918, 29879, 14551, 29918, 29900, 29900, 29900, 29955, 29915, 13, 13, 1678, 822, 1243, 29918, 1794, 29918, 29879, 14551, 29898, 1311, 1125, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 29888, 29915, 23648, 29912, 359, 29889, 2084, 29889, 6500, 3871, 22168, 1445, 1649, 2915, 1369, 23648, 1495, 13, 4706, 4331, 353, 525, 10568, 29896, 29901, 30886, 30746, 31666, 233, 146, 149, 30752, 30354, 30763, 2149, 29901, 30886, 30746, 31666, 233, 146, 149, 30752, 30354, 30763, 30494, 31134, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1653, 29918, 2371, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 8865, 1591, 565, 4864, 426, 1311, 29889, 2371, 3400, 13, 9651, 1653, 1591, 426, 1311, 29889, 2371, 2119, 333, 938, 29892, 20725, 938, 29892, 2580, 8345, 938, 1919, 13, 9651, 27683, 5785, 29892, 9175, 938, 29892, 2311, 938, 29892, 8276, 938, 3482, 13, 9651, 4635, 964, 426, 1311, 29889, 2371, 29913, 1819, 29898, 29896, 29892, 29945, 29929, 29900, 29892, 29906, 29892, 29896, 29892, 29945, 29900, 29900, 29900, 29900, 29892, 29955, 29955, 29900, 29892, 29906, 29906, 29896, 29900, 29900, 511, 13, 9651, 313, 29906, 29892, 29896, 29900, 29945, 29900, 29892, 29941, 29892, 29906, 1919, 29947, 29945, 29900, 29900, 29900, 29892, 29896, 29946, 29896, 29900, 29892, 29906, 29900, 29900, 29900, 21336, 29941, 29892, 29906, 29900, 1919, 29941, 29892, 29896, 29892, 29906, 29906, 29945, 29900, 29900, 29892, 29896, 29900, 29953, 29900, 29892, 29941, 29945, 29900, 29900, 511, 13, 9651, 313, 29946, 29892, 29947, 29955, 29900, 29892, 29906, 29892, 29906, 29892, 29929, 29900, 29900, 29900, 29900, 29892, 29896, 29941, 29900, 29900, 29892, 29896, 29955, 29945, 29900, 29900, 21336, 29945, 29892, 29896, 29941, 29906, 29900, 29892, 29941, 29892, 29906, 29892, 29896, 29941, 29941, 29900, 29900, 29900, 29892, 29896, 29945, 29900, 29900, 29892, 29941, 29900, 29900, 29900, 29900, 511, 13, 9651, 313, 29953, 29892, 29896, 29941, 29945, 29900, 29892, 29906, 29892, 29896, 29892, 29929, 29900, 29945, 29900, 29900, 29892, 29947, 29906, 29900, 29892, 29906, 29945, 29955, 29900, 29900, 21336, 29955, 29892, 29906, 29955, 29929, 29900, 29892, 29941, 29892, 29906, 29889, 29945, 29892, 29906, 29953, 29900, 29900, 29900, 29900, 29892, 29906, 29896, 29941, 29900, 29892, 29906, 29945, 29900, 29900, 29900, 511, 13, 9651, 313, 29947, 29892, 29953, 29947, 29900, 29892, 29906, 29892, 29896, 29892, 29896, 29946, 29906, 29945, 29900, 29900, 29892, 29896, 29896, 29955, 29900, 29892, 29906, 29906, 29900, 29900, 29900, 21336, 29929, 29892, 29896, 29947, 29946, 29900, 29892, 29941, 29892, 29906, 29892, 29896, 29953, 29900, 29900, 29900, 29900, 29892, 29896, 29945, 29900, 29900, 29892, 29896, 29929, 29900, 29900, 29900, 511, 13, 9651, 313, 29896, 29900, 29892, 29941, 29953, 29947, 29900, 29892, 29946, 29892, 29906, 29892, 29906, 29946, 29900, 29900, 29900, 29900, 29892, 29906, 29955, 29929, 29900, 29892, 29906, 29900, 29900, 29900, 29900, 21336, 29896, 29896, 29896, 29892, 29953, 29953, 29900, 29892, 29941, 29892, 29896, 29892, 29947, 29955, 29900, 29900, 29900, 29892, 29896, 29900, 29941, 29900, 29892, 29896, 29955, 29945, 29900, 29900, 416, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 3258, 29918, 2371, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1311, 29889, 1168, 29889, 21009, 29918, 27045, 29918, 14605, 26925, 297, 1653, 29918, 2371, 13, 462, 4706, 322, 1583, 29889, 1168, 29889, 19460, 29918, 14605, 26925, 29918, 4345, 29954, 297, 1653, 29918, 2371, 29892, 13, 462, 4706, 376, 30886, 30746, 31666, 233, 146, 149, 30752, 30354, 30763, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29906, 29901, 31441, 30886, 232, 194, 174, 234, 136, 170, 2149, 29901, 31441, 30886, 232, 194, 174, 234, 136, 170, 30494, 31134, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1653, 29918, 29879, 14551, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 3258, 22395, 426, 1311, 29889, 29879, 14551, 29913, 408, 1831, 334, 515, 426, 1311, 29889, 2371, 3400, 13, 9651, 6629, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 3258, 29918, 29879, 14551, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29892, 1653, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29941, 29901, 31441, 30886, 235, 177, 176, 234, 190, 134, 30893, 31267, 31851, 31787, 30893, 2149, 29901, 31441, 30886, 235, 177, 176, 234, 190, 134, 30893, 31267, 31851, 31787, 30893, 30494, 31134, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1653, 29918, 29879, 14551, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 11249, 22395, 426, 1311, 29889, 29879, 14551, 29913, 26742, 1598, 491, 8666, 29871, 13, 9651, 408, 903, 1688, 472, 11959, 869, 29906, 29892, 408, 903, 14968, 472, 11959, 869, 29947, 3440, 338, 525, 26495, 2670, 13, 9651, 6629, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 3258, 29918, 29879, 14551, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29896, 29892, 1653, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29906, 29892, 1653, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29946, 29901, 31213, 31811, 30948, 30658, 30354, 30763, 30746, 232, 194, 174, 234, 136, 170, 2149, 29901, 31086, 30742, 30948, 30658, 30354, 30763, 30746, 232, 194, 174, 234, 136, 170, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1831, 29918, 29879, 14551, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 2622, 334, 515, 4833, 29946, 1794, 29889, 29879, 14551, 29936, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 2622, 29918, 29879, 14551, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29892, 1831, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29896, 29892, 1831, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29906, 29892, 1831, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29945, 29901, 31213, 235, 178, 165, 31441, 30886, 30210, 235, 177, 176, 234, 190, 134, 30893, 30354, 30763, 2149, 29901, 31086, 30742, 31441, 30886, 30210, 235, 177, 176, 234, 190, 134, 30893, 30354, 30763, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1831, 29918, 29879, 14551, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 2622, 334, 515, 426, 1311, 29889, 29879, 14551, 29896, 3400, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 2622, 29918, 29879, 14551, 29897, 13, 4706, 1583, 29889, 9294, 3664, 797, 877, 29898, 29900, 4206, 29897, 742, 1831, 29918, 29879, 14551, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29953, 29901, 30785, 30406, 10660, 29918, 276, 11476, 31565, 30319, 31441, 30886, 4299, 29936, 29915, 320, 13, 1669, 525, 17854, 29901, 30785, 30406, 10660, 29918, 276, 11476, 31565, 30319, 31441, 30886, 4299, 30494, 31134, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1653, 29918, 4299, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 3258, 1904, 426, 1311, 29889, 4299, 29913, 773, 5608, 29918, 276, 11476, 5680, 29871, 13, 632, 29896, 29892, 20725, 29892, 29890, 493, 29892, 2311, 3646, 8666, 515, 426, 1311, 29889, 29879, 14551, 29896, 3400, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 3258, 29918, 4299, 29897, 13, 4706, 1583, 29889, 9294, 797, 877, 20387, 29931, 14602, 29928, 29889, 13756, 27266, 1660, 29928, 29871, 29896, 742, 1653, 29918, 4299, 29892, 13, 462, 418, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29955, 29901, 31213, 233, 140, 193, 31185, 31675, 30746, 29936, 17854, 29901, 31086, 30742, 31441, 30886, 4299, 30210, 4299, 978, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 1831, 29918, 4299, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 2622, 1904, 978, 515, 330, 29879, 29918, 4299, 29918, 2519, 8697, 29936, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 2622, 29918, 4299, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 4299, 29892, 1831, 29918, 4299, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 4706, 4331, 353, 525, 10568, 29947, 29901, 236, 165, 135, 31851, 30746, 30354, 30763, 29936, 17854, 29901, 31086, 30742, 236, 165, 135, 31851, 30210, 30746, 30354, 30763, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 8500, 29918, 1272, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 13, 9651, 285, 12008, 2622, 8500, 491, 426, 1311, 29889, 4299, 29913, 313, 22100, 29871, 29896, 29892, 20725, 29892, 29890, 493, 29892, 2311, 29897, 29871, 13, 9651, 515, 426, 1311, 29889, 29879, 14551, 29896, 3400, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 27711, 29918, 1272, 29897, 13, 4706, 1583, 29889, 9294, 3664, 797, 877, 29898, 29900, 4206, 29897, 742, 8500, 29918, 1272, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 13, 1678, 822, 734, 279, 6767, 29898, 1311, 1125, 13, 4706, 4331, 353, 525, 10568, 29929, 29901, 30989, 30687, 234, 145, 178, 232, 165, 134, 2149, 29901, 30989, 30687, 234, 145, 178, 232, 165, 134, 30494, 31134, 29915, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 10568, 29897, 13, 4706, 5941, 29918, 20944, 353, 1583, 29889, 16072, 29918, 845, 29889, 4258, 329, 29918, 2585, 29918, 2850, 29898, 29888, 12008, 13, 9651, 3708, 479, 22395, 426, 1311, 29889, 29879, 14551, 29896, 3400, 13, 9651, 3708, 479, 22395, 426, 1311, 29889, 29879, 14551, 29906, 3400, 13, 9651, 3708, 479, 22395, 426, 1311, 29889, 29879, 14551, 3400, 13, 9651, 5768, 1591, 426, 1311, 29889, 2371, 3400, 13, 9651, 5768, 1904, 426, 1311, 29889, 4299, 29913, 4907, 1495, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 14941, 29918, 20944, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 1168, 29889, 21009, 29918, 29928, 29366, 29918, 14605, 26925, 29892, 5941, 29918, 20944, 29892, 13, 462, 418, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 29888, 29915, 29912, 1311, 29889, 29879, 14551, 29913, 742, 5941, 29918, 20944, 29892, 13, 462, 418, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29896, 29892, 5941, 29918, 20944, 29892, 13, 462, 418, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 1311, 29889, 29879, 14551, 29906, 29892, 5941, 29918, 20944, 29892, 13, 462, 418, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 9294, 797, 877, 29928, 29366, 16999, 2287, 29931, 742, 5941, 29918, 20944, 29892, 376, 233, 140, 170, 30448, 31369, 31955, 29908, 718, 4331, 29897, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 29888, 29915, 23648, 29912, 359, 29889, 2084, 29889, 6500, 3871, 22168, 1445, 1649, 2915, 1095, 23648, 1495, 13, 2 ]
yearn/scripts/yearn.py
jonesnc/yearn-client
0
126773
import click from yearn.scripts.load import load as script_load @click.group() def cli(): pass @cli.command() @click.argument('path', default='.') @click.option('--scgi', default=None) @click.option('--mount', default=None) # TODO: support multiple mounts def load(path, scgi, mount): click.echo('Loading torrent files...') click.echo(f'Using SCGI: {scgi}') click.echo(f'Using path: {path}') click.echo(f'Using mount: {mount}') script_load(path, scgi, mount)
[ 1, 1053, 2828, 13, 13, 3166, 1629, 29876, 29889, 16713, 29889, 1359, 1053, 2254, 408, 2471, 29918, 1359, 13, 13, 13, 29992, 3808, 29889, 2972, 580, 13, 1753, 9335, 7295, 13, 1678, 1209, 13, 13, 13, 29992, 11303, 29889, 6519, 580, 13, 29992, 3808, 29889, 23516, 877, 2084, 742, 2322, 2433, 29889, 1495, 13, 29992, 3808, 29889, 3385, 877, 489, 1557, 3146, 742, 2322, 29922, 8516, 29897, 13, 29992, 3808, 29889, 3385, 877, 489, 16476, 742, 2322, 29922, 8516, 29897, 29871, 396, 14402, 29901, 2304, 2999, 5766, 29879, 13, 1753, 2254, 29898, 2084, 29892, 885, 3146, 29892, 5766, 1125, 13, 1678, 2828, 29889, 8057, 877, 23456, 4842, 7771, 2066, 856, 1495, 13, 1678, 2828, 29889, 8057, 29898, 29888, 29915, 15156, 317, 11135, 29902, 29901, 426, 1557, 3146, 29913, 1495, 13, 1678, 2828, 29889, 8057, 29898, 29888, 29915, 15156, 2224, 29901, 426, 2084, 29913, 1495, 13, 1678, 2828, 29889, 8057, 29898, 29888, 29915, 15156, 5766, 29901, 426, 16476, 29913, 1495, 13, 1678, 2471, 29918, 1359, 29898, 2084, 29892, 885, 3146, 29892, 5766, 29897, 13, 2 ]
bot coontrol/CollisionControl.py
aritrog/sarathi
3
55412
import BotDecidesPos import numpy as np class Collision_check: def __init__(self): self.m=0.0 self.n=0.0 def load_data(self,bot): tgx,tgy=bot.getTarget() mpx,mpy=bot.getPos() spd=bot.getSpeed() return spd,mpx,mpy,tgx,tgy def checkCollision(self,bot1,bot2): eg = Engine() sp1,x,y,x1,y1=self.load_data(bot1) sp2,a,b,a1,b1=self.load_data(bot2) p=eg.findDist(x,y,x1,y1) q=eg.findDist(a,b,a1,b1) #v1=[sp1*(x-x1)/p,sp1*(y-y1)/p] #v2 = [sp2 * (a - a1) / q, sp2 * (b - b1) / q] #Ax=C, which is the matrix from of the equation on the path of the vehicle s=[[x-x1,y-y1],[a-a1,b-b1]] t=[y*x1-x*y1,b*a1-a*b1] self.m,self.n=eg.eq_StraightLine(s,t) p1=eg.findDist(x,y,self.m,self.n) q1=eg.findDist(a,b,self.m,self.n) eta1=p1/sp1; eta2=q1/sp2; if np.absolute(eta1-eta2)<1 : return True else: return False def getCollisionIndex(self): return self.m,self.n def setCollisionIndex(self,a,b): self.m=a self.n=b
[ 1, 1053, 11273, 6185, 2247, 9135, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 30004, 13, 1990, 13435, 2459, 29918, 3198, 29901, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 1583, 29889, 29885, 29922, 29900, 29889, 29900, 30004, 13, 4706, 1583, 29889, 29876, 29922, 29900, 29889, 29900, 30004, 13, 30004, 13, 30004, 13, 30004, 13, 1678, 822, 2254, 29918, 1272, 29898, 1311, 29892, 7451, 1125, 30004, 13, 4706, 260, 29887, 29916, 29892, 29873, 1927, 29922, 7451, 29889, 657, 8667, 26471, 13, 4706, 286, 1756, 29892, 1526, 29891, 29922, 7451, 29889, 657, 9135, 26471, 13, 4706, 805, 29881, 29922, 7451, 29889, 657, 26539, 26471, 13, 4706, 736, 805, 29881, 29892, 1526, 29916, 29892, 1526, 29891, 29892, 29873, 29887, 29916, 29892, 29873, 1927, 30004, 13, 30004, 13, 1678, 822, 29871, 1423, 28377, 2459, 29898, 1311, 29892, 7451, 29896, 29892, 7451, 29906, 1125, 30004, 13, 4706, 8087, 353, 10863, 26471, 13, 4706, 805, 29896, 29892, 29916, 29892, 29891, 29892, 29916, 29896, 29892, 29891, 29896, 29922, 1311, 29889, 1359, 29918, 1272, 29898, 7451, 29896, 8443, 13, 4706, 805, 29906, 29892, 29874, 29892, 29890, 29892, 29874, 29896, 29892, 29890, 29896, 29922, 1311, 29889, 1359, 29918, 1272, 29898, 7451, 29906, 8443, 13, 4706, 282, 29922, 387, 29889, 2886, 13398, 29898, 29916, 29892, 29891, 29892, 29916, 29896, 29892, 29891, 29896, 8443, 13, 4706, 3855, 29922, 387, 29889, 2886, 13398, 29898, 29874, 29892, 29890, 29892, 29874, 29896, 29892, 29890, 29896, 8443, 13, 4706, 396, 29894, 29896, 11759, 1028, 29896, 16395, 29916, 29899, 29916, 29896, 6802, 29886, 29892, 1028, 29896, 16395, 29891, 29899, 29891, 29896, 6802, 29886, 29962, 30004, 13, 4706, 396, 29894, 29906, 353, 518, 1028, 29906, 334, 313, 29874, 448, 263, 29896, 29897, 847, 3855, 29892, 805, 29906, 334, 313, 29890, 448, 289, 29896, 29897, 847, 3855, 29962, 30004, 13, 4706, 396, 29909, 29916, 29922, 29907, 29892, 607, 338, 278, 4636, 515, 310, 278, 6306, 373, 278, 2224, 310, 278, 19716, 30004, 13, 4706, 269, 29922, 8999, 29916, 29899, 29916, 29896, 29892, 29891, 29899, 29891, 29896, 16272, 29874, 29899, 29874, 29896, 29892, 29890, 29899, 29890, 29896, 5262, 30004, 13, 4706, 260, 11759, 29891, 29930, 29916, 29896, 29899, 29916, 29930, 29891, 29896, 29892, 29890, 29930, 29874, 29896, 29899, 29874, 29930, 29890, 29896, 29962, 30004, 13, 4706, 1583, 29889, 29885, 29892, 1311, 29889, 29876, 29922, 387, 29889, 1837, 29918, 855, 336, 523, 3542, 29898, 29879, 29892, 29873, 8443, 13, 4706, 282, 29896, 29922, 387, 29889, 2886, 13398, 29898, 29916, 29892, 29891, 29892, 1311, 29889, 29885, 29892, 1311, 29889, 29876, 8443, 13, 4706, 3855, 29896, 29922, 387, 29889, 2886, 13398, 29898, 29874, 29892, 29890, 29892, 1311, 29889, 29885, 29892, 1311, 29889, 29876, 8443, 13, 4706, 634, 29874, 29896, 29922, 29886, 29896, 29914, 1028, 29896, 2104, 13, 4706, 634, 29874, 29906, 29922, 29939, 29896, 29914, 1028, 29906, 2104, 13, 4706, 565, 7442, 29889, 23552, 29898, 1187, 29896, 29899, 1187, 29906, 29897, 29966, 29896, 584, 30004, 13, 9651, 736, 5852, 30004, 13, 4706, 1683, 29901, 30004, 13, 9651, 736, 7700, 30004, 13, 30004, 13, 1678, 822, 679, 28377, 2459, 3220, 29898, 1311, 1125, 30004, 13, 4706, 736, 1583, 29889, 29885, 29892, 1311, 29889, 29876, 30004, 13, 30004, 13, 1678, 822, 731, 28377, 2459, 3220, 29898, 1311, 29892, 29874, 29892, 29890, 1125, 30004, 13, 4706, 1583, 29889, 29885, 29922, 29874, 30004, 13, 4706, 1583, 29889, 29876, 29922, 29890, 30004, 13, 2 ]
lib/gstreamer/vaapi/vpp.py
ChipsnMedia/vaapi-fits
0
162450
<filename>lib/gstreamer/vaapi/vpp.py ### ### Copyright (C) 2018-2021 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ### import os import slash from ....lib.gstreamer.vppbase import BaseVppTest from ....lib.gstreamer.util import have_gst_element from ....lib.gstreamer.vaapi.util import map_best_hw_format, mapformat, mapformatu from ....lib.common import get_media, mapRange, mapRangeWithDefault @slash.requires(*have_gst_element("vaapi")) @slash.requires(*have_gst_element("vaapipostproc")) class VppTest(BaseVppTest): def before(self): super().before() os.environ["GST_VAAPI_DRM_DEVICE"] = get_media().render_device vars(self).update(gstvpp = "vaapipostproc") def map_best_hw_format(self, format, hwformats): return map_best_hw_format(format, hwformats) def map_format(self, format): return mapformat(format) def map_formatu(self, format): return mapformatu(format) def gen_vpp_opts(self): opts = "" procamp = dict( brightness = [ -1.0, 0.0, 1.0], contrast = [ 0.0, 1.0, 2.0], hue = [-180.0, 0.0, 180.0], saturation = [ 0.0, 1.0, 2.0], ) if self.vpp_op in procamp: self.mlevel = mapRangeWithDefault( self.level, [0.0, 50.0, 100.0], procamp[self.vpp_op] ) opts += " {vpp_op}={mlevel}" elif self.vpp_op in ["denoise"]: self.mlevel = mapRange(self.level, [0, 100], [0.0, 1.0]) opts += " denoise={mlevel}" elif self.vpp_op in ["sharpen"]: self.mlevel = mapRange(self.level, [0, 100], [-1.0, 1.0]) opts += " sharpen={mlevel}" elif self.vpp_op in ["deinterlace"]: opts += " deinterlace-mode=1 deinterlace-method={mmethod}" elif self.vpp_op in ["transpose"]: opts += " video-direction={direction}" elif self.vpp_op in ["crop"]: opts += " crop-left={left} crop-right={right} crop-top={top} crop-bottom={bottom}" return opts
[ 1, 529, 9507, 29958, 1982, 29914, 29887, 5461, 261, 29914, 1564, 2754, 29914, 29894, 407, 29889, 2272, 13, 2277, 29937, 13, 2277, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29906, 29896, 18555, 15025, 13, 2277, 29937, 13, 2277, 29937, 10937, 29928, 29990, 29899, 29931, 293, 1947, 29899, 12889, 29901, 350, 7230, 29899, 29941, 29899, 20216, 1509, 13, 2277, 29937, 13, 13, 5215, 2897, 13, 5215, 24765, 13, 13, 3166, 13035, 1982, 29889, 29887, 5461, 261, 29889, 29894, 407, 3188, 1053, 7399, 29963, 407, 3057, 13, 3166, 13035, 1982, 29889, 29887, 5461, 261, 29889, 4422, 1053, 505, 29918, 29887, 303, 29918, 5029, 13, 3166, 13035, 1982, 29889, 29887, 5461, 261, 29889, 1564, 2754, 29889, 4422, 1053, 2910, 29918, 13318, 29918, 26828, 29918, 4830, 29892, 2910, 4830, 29892, 2910, 4830, 29884, 13, 3166, 13035, 1982, 29889, 9435, 1053, 679, 29918, 9799, 29892, 2910, 6069, 29892, 2910, 6069, 3047, 4592, 13, 13, 29992, 17057, 29889, 276, 339, 2658, 10456, 17532, 29918, 29887, 303, 29918, 5029, 703, 1564, 2754, 5783, 13, 29992, 17057, 29889, 276, 339, 2658, 10456, 17532, 29918, 29887, 303, 29918, 5029, 703, 1564, 481, 666, 520, 15439, 5783, 13, 1990, 478, 407, 3057, 29898, 5160, 29963, 407, 3057, 1125, 13, 29871, 822, 1434, 29898, 1311, 1125, 13, 1678, 2428, 2141, 11083, 580, 13, 1678, 2897, 29889, 21813, 3366, 29954, 1254, 29918, 29963, 6344, 2227, 29918, 8353, 29924, 29918, 2287, 19059, 3108, 353, 679, 29918, 9799, 2141, 9482, 29918, 10141, 13, 1678, 24987, 29898, 1311, 467, 5504, 29898, 29887, 303, 29894, 407, 353, 376, 1564, 481, 666, 520, 15439, 1159, 13, 13, 29871, 822, 2910, 29918, 13318, 29918, 26828, 29918, 4830, 29898, 1311, 29892, 3402, 29892, 298, 29893, 689, 1446, 1125, 13, 1678, 736, 2910, 29918, 13318, 29918, 26828, 29918, 4830, 29898, 4830, 29892, 298, 29893, 689, 1446, 29897, 13, 13, 29871, 822, 2910, 29918, 4830, 29898, 1311, 29892, 3402, 1125, 13, 1678, 736, 2910, 4830, 29898, 4830, 29897, 13, 13, 29871, 822, 2910, 29918, 4830, 29884, 29898, 1311, 29892, 3402, 1125, 13, 1678, 736, 2910, 4830, 29884, 29898, 4830, 29897, 13, 13, 29871, 822, 2531, 29918, 29894, 407, 29918, 25707, 29898, 1311, 1125, 13, 1678, 29111, 353, 5124, 13, 13, 1678, 9580, 1160, 353, 9657, 29898, 13, 418, 11785, 2264, 29871, 353, 518, 29871, 448, 29896, 29889, 29900, 29892, 1678, 29900, 29889, 29900, 29892, 1678, 29896, 29889, 29900, 1402, 13, 418, 12814, 1678, 353, 518, 1678, 29900, 29889, 29900, 29892, 1678, 29896, 29889, 29900, 29892, 1678, 29906, 29889, 29900, 1402, 13, 418, 298, 434, 308, 353, 21069, 29896, 29947, 29900, 29889, 29900, 29892, 1678, 29900, 29889, 29900, 29892, 29871, 29896, 29947, 29900, 29889, 29900, 1402, 13, 418, 269, 1337, 362, 29871, 353, 518, 1678, 29900, 29889, 29900, 29892, 1678, 29896, 29889, 29900, 29892, 1678, 29906, 29889, 29900, 1402, 13, 1678, 1723, 13, 13, 1678, 565, 1583, 29889, 29894, 407, 29918, 459, 297, 9580, 1160, 29901, 13, 418, 1583, 29889, 29885, 5563, 353, 2910, 6069, 3047, 4592, 29898, 13, 4706, 1583, 29889, 5563, 29892, 518, 29900, 29889, 29900, 29892, 29871, 29945, 29900, 29889, 29900, 29892, 29871, 29896, 29900, 29900, 29889, 29900, 1402, 9580, 1160, 29961, 1311, 29889, 29894, 407, 29918, 459, 29962, 13, 418, 1723, 13, 418, 29111, 4619, 376, 426, 29894, 407, 29918, 459, 29913, 3790, 29885, 5563, 5038, 13, 1678, 25342, 1583, 29889, 29894, 407, 29918, 459, 297, 6796, 1145, 29877, 895, 3108, 29901, 13, 418, 1583, 29889, 29885, 5563, 353, 2910, 6069, 29898, 1311, 29889, 5563, 29892, 518, 29900, 29892, 29871, 29896, 29900, 29900, 1402, 518, 29900, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 2314, 13, 418, 29111, 4619, 376, 972, 29877, 895, 3790, 29885, 5563, 5038, 13, 1678, 25342, 1583, 29889, 29894, 407, 29918, 459, 297, 6796, 845, 279, 2238, 3108, 29901, 13, 418, 1583, 29889, 29885, 5563, 353, 2910, 6069, 29898, 1311, 29889, 5563, 29892, 518, 29900, 29892, 29871, 29896, 29900, 29900, 1402, 21069, 29896, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 2314, 13, 418, 29111, 4619, 376, 528, 279, 2238, 3790, 29885, 5563, 5038, 13, 1678, 25342, 1583, 29889, 29894, 407, 29918, 459, 297, 6796, 311, 1639, 1265, 3108, 29901, 13, 418, 29111, 4619, 376, 316, 1639, 1265, 29899, 8513, 29922, 29896, 316, 1639, 1265, 29899, 5696, 3790, 4317, 959, 5038, 13, 1678, 25342, 1583, 29889, 29894, 407, 29918, 459, 297, 6796, 3286, 4220, 3108, 29901, 13, 418, 29111, 4619, 376, 4863, 29899, 20845, 3790, 20845, 5038, 13, 1678, 25342, 1583, 29889, 29894, 407, 29918, 459, 297, 6796, 29883, 1336, 3108, 29901, 13, 418, 29111, 4619, 376, 274, 1336, 29899, 1563, 3790, 1563, 29913, 274, 1336, 29899, 1266, 3790, 1266, 29913, 274, 1336, 29899, 3332, 3790, 3332, 29913, 274, 1336, 29899, 8968, 3790, 8968, 5038, 13, 13, 1678, 736, 29111, 13, 2 ]
src/start_horovod.py
jakob-ed/pytorch-dist-pos-tagger
0
84265
<reponame>jakob-ed/pytorch-dist-pos-tagger<gh_stars>0 #!/usr/bin/env python import os import random import torch from horovod_adasum.horovod_adasum import HorovodAdaSum MIN_FREQ = int(os.environ['SUSML_MIN_FREQ']) RAND_SEED = int(os.environ['SUSML_RAND_SEED']) NUM_EPOCHS = int(os.environ['SUSML_NUM_EPOCHS']) BATCH_SIZE = int(os.environ['SUSML_BATCH_SIZE']) LR = float(os.environ['SUSML_LR']) PARALLELISM_LEVEL = int(os.environ['SUSML_PARALLELISM_LEVEL']) RAY_PARAMETER_SERVER_STRATEGY = os.environ['RAY_PARAMETER_SERVER_STRATEGY'] random.seed(RAND_SEED) torch.manual_seed(RAND_SEED) torch.backends.cudnn.deterministic = True if __name__ == "__main__": HorovodAdaSum().run()
[ 1, 529, 276, 1112, 420, 29958, 24744, 711, 29899, 287, 29914, 2272, 7345, 305, 29899, 5721, 29899, 1066, 29899, 4039, 914, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 5215, 2897, 13, 5215, 4036, 13, 13, 5215, 4842, 305, 13, 13, 3166, 4029, 586, 397, 29918, 3922, 398, 29889, 2015, 586, 397, 29918, 3922, 398, 1053, 6912, 586, 397, 29909, 1388, 11139, 13, 13, 16173, 29918, 29943, 1525, 29984, 353, 938, 29898, 359, 29889, 21813, 1839, 29903, 3308, 1988, 29918, 16173, 29918, 29943, 1525, 29984, 11287, 13, 29934, 9468, 29918, 1660, 3352, 353, 938, 29898, 359, 29889, 21813, 1839, 29903, 3308, 1988, 29918, 29934, 9468, 29918, 1660, 3352, 11287, 13, 13967, 29918, 29923, 13152, 3210, 29903, 353, 938, 29898, 359, 29889, 21813, 1839, 29903, 3308, 1988, 29918, 13967, 29918, 29923, 13152, 3210, 29903, 11287, 13, 29933, 14789, 29918, 14226, 353, 938, 29898, 359, 29889, 21813, 1839, 29903, 3308, 1988, 29918, 29933, 14789, 29918, 14226, 11287, 13, 29519, 353, 5785, 29898, 359, 29889, 21813, 1839, 29903, 3308, 1988, 29918, 29519, 11287, 13, 16320, 1964, 1307, 29931, 3235, 29924, 29918, 1307, 29963, 6670, 353, 938, 29898, 359, 29889, 21813, 1839, 29903, 3308, 1988, 29918, 16320, 1964, 1307, 29931, 3235, 29924, 29918, 1307, 29963, 6670, 11287, 13, 22800, 29918, 16320, 25797, 4945, 29918, 18603, 29918, 10810, 3040, 29954, 29979, 353, 2897, 29889, 21813, 1839, 22800, 29918, 16320, 25797, 4945, 29918, 18603, 29918, 10810, 3040, 29954, 29979, 2033, 13, 13, 8172, 29889, 26776, 29898, 29934, 9468, 29918, 1660, 3352, 29897, 13, 7345, 305, 29889, 11288, 29918, 26776, 29898, 29934, 9468, 29918, 1660, 3352, 29897, 13, 7345, 305, 29889, 1627, 1975, 29889, 29883, 566, 15755, 29889, 4801, 837, 262, 4695, 353, 5852, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 6912, 586, 397, 29909, 1388, 11139, 2141, 3389, 580, 13, 2 ]
myproject/app/serializer.py
xiaoxiansheng19/data_analysis
0
1606430
#! -*- coding:utf-8 -*- from rest_framework import serializers from .models import Job,File from djcelery.models import TaskMeta class JobSerializer(serializers.ModelSerializer): tasks = serializers.SerializerMethodField() def get_tasks(self, row): # role_obj_list = row.taskmeta.to_dict() # ret = [] # # 获取角色的id和名字 # # 以字典的键值对方式显示 # for item in role_obj_list: # ret.append({"id": item.id, "result": item.result}) return role_obj_list class Meta: model = Job fields = ('id','task_id', 'name', 'runtime', 'taskmeta', 'file','create_date','tasks') # depth = 1 # class TaskMetaSerializer(serializers.ModelSerializer): # # job_set = JobSerializer(many=True) # class Meta: # model = TaskMeta # fields = ('id','task_id', 'status', 'result', 'date_done', 'traceback','hidden','meta') # depth =1
[ 1, 396, 29991, 448, 29930, 29899, 14137, 29901, 9420, 29899, 29947, 448, 29930, 29899, 13, 3166, 1791, 29918, 4468, 1053, 7797, 19427, 13, 3166, 869, 9794, 1053, 17163, 29892, 2283, 13, 3166, 270, 29926, 2242, 708, 29889, 9794, 1053, 9330, 19346, 13, 13, 13, 13, 1990, 17163, 17679, 29898, 15550, 19427, 29889, 3195, 17679, 1125, 13, 1678, 9595, 353, 7797, 19427, 29889, 17679, 4062, 3073, 580, 13, 13, 1678, 822, 679, 29918, 20673, 29898, 1311, 29892, 1948, 1125, 13, 4706, 396, 13, 4706, 6297, 29918, 5415, 29918, 1761, 353, 1948, 29889, 7662, 7299, 29889, 517, 29918, 8977, 580, 13, 4706, 396, 3240, 353, 5159, 13, 4706, 396, 396, 29871, 31024, 30683, 31432, 31085, 30210, 333, 30503, 30548, 30578, 13, 4706, 396, 396, 29871, 30651, 30578, 31259, 30210, 236, 151, 177, 30959, 30783, 30525, 30607, 31542, 30858, 13, 4706, 396, 363, 2944, 297, 6297, 29918, 5415, 29918, 1761, 29901, 13, 4706, 396, 268, 3240, 29889, 4397, 3319, 29908, 333, 1115, 2944, 29889, 333, 29892, 376, 2914, 1115, 2944, 29889, 2914, 1800, 13, 4706, 736, 6297, 29918, 5415, 29918, 1761, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 1904, 353, 17163, 13, 4706, 4235, 353, 6702, 333, 3788, 7662, 29918, 333, 742, 525, 978, 742, 525, 15634, 742, 525, 7662, 7299, 742, 525, 1445, 3788, 3258, 29918, 1256, 3788, 20673, 1495, 13, 4706, 396, 10809, 353, 29871, 29896, 13, 13, 29937, 770, 9330, 19346, 17679, 29898, 15550, 19427, 29889, 3195, 17679, 1125, 13, 29937, 268, 396, 4982, 29918, 842, 353, 17163, 17679, 29898, 13011, 29922, 5574, 29897, 13, 29937, 268, 770, 20553, 29901, 13, 29937, 308, 1904, 353, 9330, 19346, 13, 29937, 308, 4235, 353, 6702, 333, 3788, 7662, 29918, 333, 742, 525, 4882, 742, 525, 2914, 742, 525, 1256, 29918, 15091, 742, 525, 15003, 1627, 3788, 10892, 3788, 7299, 1495, 13, 29937, 308, 10809, 353, 29896, 2 ]
search/serialize/__init__.py
ID2797370/arxiv-search
35
53460
<filename>search/serialize/__init__.py """Provides serialization functions for API responses.""" __all__ = ["JSONSerializer", "as_json", "AtomXMLSerializer", "as_atom"] from search.serialize.json import JSONSerializer, as_json from search.serialize.atom import AtomXMLSerializer, as_atom
[ 1, 529, 9507, 29958, 4478, 29914, 643, 6646, 29914, 1649, 2344, 26914, 2272, 13, 15945, 29908, 1184, 29894, 2247, 7797, 2133, 3168, 363, 3450, 20890, 1213, 15945, 13, 1649, 497, 1649, 353, 6796, 7249, 17679, 613, 376, 294, 29918, 3126, 613, 376, 4178, 290, 9165, 17679, 613, 376, 294, 29918, 8678, 3108, 13, 13, 3166, 2740, 29889, 643, 6646, 29889, 3126, 1053, 4663, 17679, 29892, 408, 29918, 3126, 13, 3166, 2740, 29889, 643, 6646, 29889, 8678, 1053, 2180, 290, 9165, 17679, 29892, 408, 29918, 8678, 13, 2 ]
basicThings/frozenLakeTime.py
ASH1998/RLnew
0
112485
# import gym # env = gym.make('FrozenLake8x8-v0') # env.reset() # for _ in range(10): # env.render() # env.step(env.action_space.sample()) # take a random action # env.close() # from gym import envs # import gym # frozen = gym.make('FrozenLake8x8-v0') # numEpisodes = 10 # for episode in range(numEpisodes): # observation = frozen.reset() # for epochs in range(100): # # frozen.render() # # print(observation) # action = frozen.action_space.sample() # # print(action) # obs, reward, done, info = frozen.step(action) # if done: #this is needed to be changed # print("Episode finished after {} timesteps".format(epochs+1)) # break # frozen.close() import gym import numpy as np import matplotlib.pyplot as plt from tqdm import trange ngames = 1000 percentage = [] scores = [] env = gym.make('FrozenLake8x8-v0') for i in trange(ngames): done = False obs = env.reset() score = 0 while not done: action = env.action_space.sample() obs, reward, done, info = env.step(action=action) score+=reward scores.append(score) if i%10==0: average = np.mean(scores[-10:]) percentage.append(average) plt.plot(percentage) plt.show()
[ 1, 396, 1053, 330, 962, 13, 29937, 8829, 353, 330, 962, 29889, 5675, 877, 29943, 307, 2256, 29931, 1296, 29947, 29916, 29947, 29899, 29894, 29900, 1495, 13, 29937, 8829, 29889, 12071, 580, 13, 29937, 363, 903, 297, 3464, 29898, 29896, 29900, 1125, 13, 29937, 268, 8829, 29889, 9482, 580, 13, 29937, 268, 8829, 29889, 10568, 29898, 6272, 29889, 2467, 29918, 3493, 29889, 11249, 3101, 396, 2125, 263, 4036, 3158, 13, 29937, 8829, 29889, 5358, 580, 13, 13, 13, 13, 13, 29937, 515, 330, 962, 1053, 427, 4270, 13, 29937, 1053, 330, 962, 13, 13, 29937, 14671, 2256, 353, 330, 962, 29889, 5675, 877, 29943, 307, 2256, 29931, 1296, 29947, 29916, 29947, 29899, 29894, 29900, 1495, 13, 13, 29937, 954, 29923, 3334, 2631, 353, 29871, 29896, 29900, 13, 13, 29937, 363, 12720, 297, 3464, 29898, 1949, 29923, 3334, 2631, 1125, 13, 29937, 268, 15500, 353, 14671, 2256, 29889, 12071, 580, 13, 13, 29937, 268, 363, 21502, 12168, 297, 3464, 29898, 29896, 29900, 29900, 1125, 13, 29937, 308, 396, 14671, 2256, 29889, 9482, 580, 13, 29937, 308, 396, 1596, 29898, 26739, 362, 29897, 13, 29937, 308, 3158, 353, 14671, 2256, 29889, 2467, 29918, 3493, 29889, 11249, 580, 13, 29937, 308, 396, 1596, 29898, 2467, 29897, 13, 13, 29937, 308, 20881, 29892, 20751, 29892, 2309, 29892, 5235, 353, 14671, 2256, 29889, 10568, 29898, 2467, 29897, 13, 308, 13, 29937, 308, 565, 2309, 29901, 396, 1366, 338, 4312, 304, 367, 3939, 13, 29937, 632, 1596, 703, 29923, 12907, 7743, 1156, 6571, 5335, 4196, 567, 1642, 4830, 29898, 1022, 2878, 29879, 29974, 29896, 876, 13, 29937, 632, 2867, 13, 13, 29937, 14671, 2256, 29889, 5358, 580, 13, 308, 13, 5215, 330, 962, 13, 5215, 12655, 408, 7442, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 3166, 260, 29939, 18933, 1053, 534, 927, 13, 13, 865, 1280, 353, 29871, 29896, 29900, 29900, 29900, 13, 25376, 482, 353, 5159, 13, 1557, 2361, 353, 5159, 13, 13, 6272, 353, 330, 962, 29889, 5675, 877, 29943, 307, 2256, 29931, 1296, 29947, 29916, 29947, 29899, 29894, 29900, 1495, 13, 13, 1454, 474, 297, 534, 927, 29898, 865, 1280, 1125, 13, 1678, 2309, 353, 7700, 13, 1678, 20881, 353, 8829, 29889, 12071, 580, 13, 13, 1678, 8158, 353, 29871, 29900, 13, 13, 1678, 1550, 451, 2309, 29901, 13, 4706, 3158, 353, 8829, 29889, 2467, 29918, 3493, 29889, 11249, 580, 13, 4706, 20881, 29892, 20751, 29892, 2309, 29892, 5235, 353, 8829, 29889, 10568, 29898, 2467, 29922, 2467, 29897, 13, 4706, 8158, 23661, 276, 1328, 13, 1678, 19435, 29889, 4397, 29898, 13628, 29897, 13, 13, 1678, 565, 474, 29995, 29896, 29900, 1360, 29900, 29901, 13, 4706, 6588, 353, 7442, 29889, 12676, 29898, 1557, 2361, 14352, 29896, 29900, 29901, 2314, 13, 4706, 19649, 29889, 4397, 29898, 12483, 482, 29897, 13, 13, 572, 29873, 29889, 5317, 29898, 25376, 482, 29897, 13, 572, 29873, 29889, 4294, 580, 13, 2 ]
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_radio.py
PascalGuenther/gecko_sdk
82
187755
<reponame>PascalGuenther/gecko_sdk from pyradioconfig.parts.ocelot.calculators.calc_radio import CALC_Radio_ocelot class Calc_Radio_Sol(CALC_Radio_ocelot): def calc_txofdm_reg(self, model): #Read in model vars softmodem_modulator_select = model.vars.softmodem_modulator_select.value if softmodem_modulator_select == model.vars.softmodem_modulator_select.var_enum.IQ_MOD: #This method enables OFDM TX txenbbreg = 1 txenmix = 1 else: txenbbreg = 0 txenmix = 0 #Write the registers self._reg_write(model.vars.RAC_TXOFDM_TXENBBREG, txenbbreg) self._reg_write(model.vars.RAC_TXOFDM_TXENMIX, txenmix) def calc_rx_fefiltoutputsel_reg(self, model): #This method calulates the FEFILTOUTPUTSEL field # Read in model vars demod_select = model.vars.demod_select.value # Calculate the field if demod_select == model.vars.demod_select.var_enum.SOFT_DEMOD: fefiltoutputsel = 1 else: fefiltoutputsel = 0 # Write the register self._reg_write(model.vars.RAC_RX_FEFILTOUTPUTSEL, fefiltoutputsel)
[ 1, 529, 276, 1112, 420, 29958, 29925, 294, 1052, 29954, 8122, 2276, 29914, 479, 27604, 29918, 15348, 13, 3166, 11451, 13399, 2917, 29889, 20895, 29889, 542, 295, 327, 29889, 15807, 4097, 29889, 28667, 29918, 13399, 1053, 315, 1964, 29907, 29918, 21818, 29918, 542, 295, 327, 13, 13, 1990, 3037, 29883, 29918, 21818, 29918, 13296, 29898, 29907, 1964, 29907, 29918, 21818, 29918, 542, 295, 327, 1125, 13, 13, 1678, 822, 22235, 29918, 7508, 974, 18933, 29918, 1727, 29898, 1311, 29892, 1904, 1125, 13, 13, 4706, 396, 6359, 297, 1904, 24987, 13, 4706, 4964, 8513, 29885, 29918, 1545, 9183, 29918, 2622, 353, 1904, 29889, 16908, 29889, 2695, 8513, 29885, 29918, 1545, 9183, 29918, 2622, 29889, 1767, 13, 13, 4706, 565, 4964, 8513, 29885, 29918, 1545, 9183, 29918, 2622, 1275, 1904, 29889, 16908, 29889, 2695, 8513, 29885, 29918, 1545, 9183, 29918, 2622, 29889, 1707, 29918, 18605, 29889, 29902, 29984, 29918, 6720, 29928, 29901, 13, 9651, 396, 4013, 1158, 28936, 8079, 23560, 323, 29990, 13, 9651, 25568, 264, 29890, 1030, 29887, 353, 29871, 29896, 13, 9651, 25568, 264, 28084, 353, 29871, 29896, 13, 4706, 1683, 29901, 13, 9651, 25568, 264, 29890, 1030, 29887, 353, 29871, 29900, 13, 9651, 25568, 264, 28084, 353, 29871, 29900, 13, 13, 4706, 396, 6113, 278, 28975, 13, 4706, 1583, 3032, 1727, 29918, 3539, 29898, 4299, 29889, 16908, 29889, 29934, 2477, 29918, 28627, 9800, 23560, 29918, 28627, 1430, 14388, 18166, 29892, 25568, 264, 29890, 1030, 29887, 29897, 13, 4706, 1583, 3032, 1727, 29918, 3539, 29898, 4299, 29889, 16908, 29889, 29934, 2477, 29918, 28627, 9800, 23560, 29918, 28627, 1430, 29924, 6415, 29892, 25568, 264, 28084, 29897, 13, 13, 1678, 822, 22235, 29918, 17697, 29918, 29888, 1389, 2782, 4905, 2838, 29918, 1727, 29898, 1311, 29892, 1904, 1125, 13, 4706, 396, 4013, 1158, 1208, 352, 1078, 278, 383, 29923, 3738, 29931, 4986, 2692, 12336, 1660, 29931, 1746, 13, 13, 4706, 396, 7523, 297, 1904, 24987, 13, 4706, 1261, 397, 29918, 2622, 353, 1904, 29889, 16908, 29889, 311, 1545, 29918, 2622, 29889, 1767, 13, 13, 4706, 396, 20535, 403, 278, 1746, 13, 4706, 565, 1261, 397, 29918, 2622, 1275, 1904, 29889, 16908, 29889, 311, 1545, 29918, 2622, 29889, 1707, 29918, 18605, 29889, 6156, 7818, 29918, 2287, 6720, 29928, 29901, 13, 9651, 1238, 1777, 29873, 4905, 2838, 353, 29871, 29896, 13, 4706, 1683, 29901, 13, 9651, 1238, 1777, 29873, 4905, 2838, 353, 29871, 29900, 13, 13, 4706, 396, 14350, 278, 6036, 13, 4706, 1583, 3032, 1727, 29918, 3539, 29898, 4299, 29889, 16908, 29889, 29934, 2477, 29918, 29934, 29990, 29918, 16359, 3738, 29931, 4986, 2692, 12336, 1660, 29931, 29892, 1238, 1777, 29873, 4905, 2838, 29897, 13, 2 ]
synergy/scheduler/abstract_state_machine.py
mushkevych/scheduler
15
1615931
<reponame>mushkevych/scheduler<filename>synergy/scheduler/abstract_state_machine.py __author__ = '<NAME>' from datetime import datetime from logging import INFO, WARNING, ERROR from synergy.db.model import job from synergy.db.model.job import Job from synergy.db.error import DuplicateKeyError from synergy.db.dao.unit_of_work_dao import UnitOfWorkDao from synergy.db.dao.job_dao import JobDao from synergy.db.model import unit_of_work from synergy.db.model.unit_of_work import UnitOfWork from synergy.system.mq_transmitter import MqTransmitter from synergy.conf import context from synergy.system.decorator import with_reconnect from synergy.system import time_helper from synergy.scheduler.tree_node import DependentOnSummary class AbstractStateMachine(object): """ Abstract state machine used to host common logic for the rest of registered State Machines """ def __init__(self, logger, timetable, name): self.name = name self.logger = logger self.mq_transmitter = MqTransmitter(self.logger) self.timetable = timetable self.uow_dao = UnitOfWorkDao(self.logger) self.job_dao = JobDao(self.logger) @property def run_on_active_timeperiod(self): """ :return: True if given State Machine allows execution on *live* timeperiod, as opposed to the finished one """ raise NotImplementedError(f'property run_on_active_timeperiod must be implemented by {self.__class__.__name__}') def _log_message(self, level:int, process_name:str, timeperiod:str, msg:str): """ method performs logging into log file and Timetable's tree node""" self.timetable.add_log_entry(process_name, timeperiod, msg) self.logger.log(level, msg) @with_reconnect def _insert_uow(self, process_name, timeperiod, start_timeperiod, end_timeperiod, start_id, end_id): """creates unit_of_work and inserts it into the DB :raise DuplicateKeyError: if unit_of_work with given parameters already exists """ uow = UnitOfWork() uow.process_name = process_name uow.timeperiod = timeperiod uow.start_id = str(start_id) uow.end_id = str(end_id) uow.start_timeperiod = start_timeperiod uow.end_timeperiod = end_timeperiod uow.created_at = datetime.utcnow() uow.submitted_at = datetime.utcnow() uow.source = context.process_context[process_name].source uow.sink = context.process_context[process_name].sink uow.state = unit_of_work.STATE_REQUESTED uow.unit_of_work_type = unit_of_work.TYPE_MANAGED uow.number_of_retries = 0 uow.arguments = context.process_context[process_name].arguments uow.db_id = self.uow_dao.insert(uow) msg = 'Created: UOW {0} for {1}@{2} over [{3}:{4}).'\ .format(uow.db_id, process_name, timeperiod, start_timeperiod, end_timeperiod) self._log_message(INFO, process_name, timeperiod, msg) return uow def _publish_uow(self, uow): self.mq_transmitter.publish_managed_uow(uow) msg = 'Published: UOW {0} for {1}@{2} over [{3}:{4}).'\ .format(uow.db_id, uow.process_name, uow.timeperiod, uow.start_timeperiod, uow.end_timeperiod) self._log_message(INFO, uow.process_name, uow.timeperiod, msg) def insert_and_publish_uow(self, job_record, start_id, end_id): """ method creates and publishes a unit_of_work. it also handles DuplicateKeyError and attempts recovery :return: tuple (uow, is_duplicate) :raise UserWarning: if the recovery from DuplicateKeyError was unsuccessful """ process_name = job_record.process_name timeperiod = job_record.timeperiod start_timeperiod = self.compute_start_timeperiod(job_record.process_name, job_record.timeperiod) end_timeperiod = self.compute_end_timeperiod(job_record.process_name, job_record.timeperiod) try: is_duplicate = False uow = self._insert_uow(process_name, timeperiod, start_timeperiod, end_timeperiod, start_id, end_id) except DuplicateKeyError as e: is_duplicate = True msg = 'Catching up with latest UOW {0}@{1} over [{2}:{3}), because of: {4}' \ .format(process_name, timeperiod, start_timeperiod, end_timeperiod, e) self._log_message(WARNING, process_name, timeperiod, msg) uow = self.uow_dao.recover_from_duplicatekeyerror(e) if not uow: msg = 'PERSISTENT TIER ERROR! Unable to locate UOW for {0}@{1} over [{2}:{3})' \ .format(process_name, timeperiod, start_timeperiod, end_timeperiod) self._log_message(WARNING, process_name, timeperiod, msg) raise UserWarning(msg) if uow.is_canceled: # this UOW was marked for re-processing. recycle it uow.created_at = datetime.utcnow() # reset created_at to bypass GC cancellation logic uow.submitted_at = datetime.utcnow() # reset submitted_at to allow 1 hour free of GC resubmitting del uow.started_at del uow.finished_at del uow.number_of_aggregated_documents del uow.number_of_processed_documents uow.state = unit_of_work.STATE_REQUESTED self.uow_dao.update(uow) # publish the created/recovered/recycled unit_of_work self._publish_uow(uow) return uow, is_duplicate def notify(self, uow): """ method is used by StateMachine's users to provide notifications about change in UOW if applicable, method will update job_record state and Timetable tree node state :assumptions: uow is in [STATE_NOOP, STATE_CANCELED, STATE_PROCESSED] """ pass def compute_start_timeperiod(self, process_name, timeperiod): """ computes lowest *inclusive* timeperiod boundary for job to process for process with time_grouping == 1, it returns given timeperiod with no change for process with time_grouping != 1, it computes first timeperiod, not processed by the previous job run For instance: with time_grouping = 3, QUALIFIER_HOURLY, and timeperiod = 2016042018, the start_timeperiod will be = 2016042016 (computed as 2016042018 - 3 + 1) """ time_grouping = context.process_context[process_name].time_grouping if time_grouping == 1: return timeperiod # step1: translate given timeperiod to the time grouped one process_hierarchy = self.timetable.get_tree(process_name).process_hierarchy timeperiod_dict = process_hierarchy[process_name].timeperiod_dict translated_timeperiod = timeperiod_dict._translate_timeperiod(timeperiod) # step 2: compute previous grouped period # NOTICE: simple `time_helper.increment_timeperiod(time_qualifier, timeperiod)` is insufficient # as it does not address edge cases, such as the last day of the month or the last hour of the day # For instance: with time_grouping=3, QUALIFIER_DAILY, and 2016123100 # the `increment_timeperiod` will yield 2016122800 instead of 2016123100 time_qualifier = context.process_context[process_name].time_qualifier for i in range(1, time_grouping + 1): prev_timeperiod = time_helper.increment_timeperiod(time_qualifier, translated_timeperiod, delta=-i) if prev_timeperiod == timeperiod_dict._translate_timeperiod(prev_timeperiod): # prev_timeperiod is currently at the last grouped timeperiod break # step 3: compute first exclusive timeperiod after the *prev_timeperiod*, # which becomes first inclusive timeperiod for this job run over_the_edge_timeperiod = time_helper.increment_timeperiod(time_qualifier, prev_timeperiod, delta=-1) if prev_timeperiod != timeperiod_dict._translate_timeperiod(over_the_edge_timeperiod): # over_the_edge_timeperiod fell into previous day or month or year # *prev_timeperiod* points to the first month, first day of the month or 00 hour start_timeperiod = prev_timeperiod else: start_timeperiod = self.compute_end_timeperiod(process_name, prev_timeperiod) return start_timeperiod def compute_end_timeperiod(self, process_name, timeperiod): """ computes first *exclusive* timeperiod for job to process """ time_qualifier = context.process_context[process_name].time_qualifier end_timeperiod = time_helper.increment_timeperiod(time_qualifier, timeperiod) return end_timeperiod def _is_noop_timeperiod(self, process_name, timeperiod): """ method verifies if the given timeperiod for given process is valid or falls in-between grouping checkpoints :param process_name: name of the process :param timeperiod: timeperiod to verify :return: False, if given process has no time_grouping set or it is equal to 1. False, if time_grouping is custom but the given timeperiod matches the grouped timeperiod. True, if the timeperiod falls in-between grouping cracks """ time_grouping = context.process_context[process_name].time_grouping if time_grouping == 1: return False process_hierarchy = self.timetable.get_tree(process_name).process_hierarchy timeperiod_dict = process_hierarchy[process_name].timeperiod_dict return timeperiod_dict._translate_timeperiod(timeperiod) != timeperiod def _process_noop_timeperiod(self, job_record): """ method is valid for processes having time_grouping != 1. should a job record fall in-between grouped time milestones, its state should be set to STATE_NOOP without any processing """ job_record.state = job.STATE_NOOP self.job_dao.update(job_record) time_grouping = context.process_context[job_record.process_name].time_grouping msg = 'Job {0}@{1} with time_grouping {2} was transferred to STATE_NOOP' \ .format(job_record.process_name, job_record.timeperiod, time_grouping) self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg) def _process_state_embryo(self, job_record): """ method that takes care of processing job records in STATE_EMBRYO state""" pass def _process_state_in_progress(self, job_record): """ method that takes care of processing job records in STATE_IN_PROGRESS state""" pass def _process_state_final_run(self, job_record): """method takes care of processing job records in STATE_FINAL_RUN state""" uow = self.uow_dao.get_one(job_record.related_unit_of_work) if uow.is_processed: self.update_job(job_record, uow, job.STATE_PROCESSED) elif uow.is_noop: self.update_job(job_record, uow, job.STATE_NOOP) elif uow.is_canceled: self.update_job(job_record, uow, job.STATE_SKIPPED) elif uow.is_invalid: msg = 'Job {0}: UOW for {1}@{2} is in {3}; ' \ 'relying on the Garbage Collector to either recycle or cancel the UOW.' \ .format(job_record.db_id, job_record.process_name, job_record.timeperiod, uow.state) self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg) else: msg = 'Suppressed creating UOW for {0}@{1}; Job is in {2}; uow is in {3}' \ .format(job_record.process_name, job_record.timeperiod, job_record.state, uow.state) self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg) timetable_tree = self.timetable.get_tree(job_record.process_name) timetable_tree.build_tree() def _process_terminal_state(self, job_record): """ method logs a warning message notifying that the job is no longer govern by this state machine """ msg = 'Job {0} for {1}@{2} is in the terminal state {3}, ' \ 'and is no further govern by the State Machine {4}' \ .format(job_record.db_id, job_record.process_name, job_record.timeperiod, job_record.state, self.name) self._log_message(WARNING, job_record.process_name, job_record.timeperiod, msg) def manage_job_with_blocking_children(self, job_record): """ method will trigger job processing only if: - all children are finished (STATE_PROCESSED, STATE_SKIPPED, STATE_NOOP) - all external dependencies are finalized (STATE_PROCESSED, STATE_SKIPPED, STATE_NOOP) """ is_job_finalizable = self.timetable.is_job_record_finalizable(job_record) if is_job_finalizable: self.manage_job(job_record) else: msg = 'Job {0}@{1} is blocked by unprocessed children/dependencies. Waiting another tick' \ .format(job_record.process_name, job_record.timeperiod) self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg) def manage_job_with_blocking_dependencies(self, job_record): """ method will trigger job processing only if: - all dependencies are in [STATE_PROCESSED, STATE_NOOP] NOTICE: method will transfer current job into STATE_SKIPPED if any dependency is in STATE_SKIPPED """ depon_summary = self.timetable.dependent_on_summary(job_record) assert isinstance(depon_summary, DependentOnSummary) if depon_summary.all_processed: self.manage_job(job_record) elif depon_summary.skipped_present: # As soon as among <dependent on> periods are in STATE_SKIPPED # there is very little sense in waiting for them to become STATE_PROCESSED # Skip this timeperiod itself job_record.state = job.STATE_SKIPPED self.job_dao.update(job_record) self.mq_transmitter.publish_job_status(job_record) depon_summary.log_skipped(WARNING) msg = 'Job {0}@{1} is blocked by STATE_SKIPPED dependencies. ' \ 'Transferred the job to STATE_SKIPPED'.format(job_record.process_name, job_record.timeperiod) self._log_message(WARNING, job_record.process_name, job_record.timeperiod, msg) else: depon_summary.log_unprocessed(INFO) msg = 'Job {0}@{1} is blocked by unprocessed dependencies. Waiting another tick' \ .format(job_record.process_name, job_record.timeperiod) self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg) def manage_job(self, job_record): """ method main duty - is to _avoid_ publishing another unit_of_work, if previous was not yet processed In case the State Machine sees that the unit_of_work already exist it could either: - update boundaries of the processing; republish - wait another tick; idle """ assert isinstance(job_record, Job) try: if self._is_noop_timeperiod(job_record.process_name, job_record.timeperiod): self._process_noop_timeperiod(job_record) return if job_record.is_embryo: self._process_state_embryo(job_record) elif job_record.is_in_progress: self._process_state_in_progress(job_record) elif job_record.is_final_run: self._process_state_final_run(job_record) elif job_record.is_skipped: self._process_terminal_state(job_record) elif job_record.is_processed: self._process_terminal_state(job_record) elif job_record.is_noop: self._process_terminal_state(job_record) else: msg = 'Unknown state {0} of the job {1}'.format(job_record.state, job_record.db_id) self._log_message(ERROR, job_record.process_name, job_record.timeperiod, msg) except LookupError as e: job_record.number_of_failures += 1 self.job_dao.update(job_record) self.timetable.skip_if_needed(job_record) msg = 'Increasing fail counter for Job {0}@{1}, because of: {2}' \ .format(job_record.process_name, job_record.timeperiod, e) self._log_message(WARNING, job_record.process_name, job_record.timeperiod, msg) finally: self.mq_transmitter.publish_job_status(job_record) def reprocess_job(self, job_record): """ method marks given job for reprocessing: - if no UOW was bind with the job record - it is transferred to STATE_EMBRYO only - if related UOW was not finished - we mark the UOW as STATE_CANCELED and pass the job record thru the _process_in_progress routine - otherwise job record is passed thru the _process_in_progress routine """ original_job_state = job_record.state job_record.number_of_failures = 0 if not job_record.related_unit_of_work: job_record.state = job.STATE_EMBRYO self.job_dao.update(job_record) else: uow = self.uow_dao.get_one(job_record.related_unit_of_work) if not uow.is_finished: uow.state = unit_of_work.STATE_CANCELED uow.submitted_at = datetime.utcnow() self.uow_dao.update(uow) self._process_state_in_progress(job_record) msg = 'Reprocessed Job {0} for {1}@{2}: state transfer {3} -> {4};' \ .format(job_record.db_id, job_record.process_name, job_record.timeperiod, original_job_state, job_record.state) self._log_message(WARNING, job_record.process_name, job_record.timeperiod, msg) def skip_job(self, job_record): """ method transfers: - given job into STATE_SKIPPED if it is not not in finished state - UOW into STATE_CANCELED if it is not in finished state """ original_job_state = job_record.state if not job_record.is_finished: job_record.state = job.STATE_SKIPPED self.job_dao.update(job_record) if job_record.related_unit_of_work: uow = self.uow_dao.get_one(job_record.related_unit_of_work) if not uow.is_finished: uow.state = unit_of_work.STATE_CANCELED uow.submitted_at = datetime.utcnow() self.uow_dao.update(uow) msg = 'Skipped Job {0} for {1}@{2}: state transfer {3} -> {4};' \ .format(job_record.db_id, job_record.process_name, job_record.timeperiod, original_job_state, job_record.state) self._log_message(WARNING, job_record.process_name, job_record.timeperiod, msg) def create_job(self, process_name, timeperiod): """ method creates a job record in STATE_EMBRYO for given process_name and timeperiod :returns: created job record of type <Job>""" job_record = Job() job_record.state = job.STATE_EMBRYO job_record.timeperiod = timeperiod job_record.process_name = process_name self.job_dao.update(job_record) self.logger.info('Created Job {0} for {1}@{2}' .format(job_record.db_id, job_record.process_name, job_record.timeperiod)) return job_record def update_job(self, job_record, uow, new_state): """ method updates job record with a new unit_of_work and new state""" original_job_state = job_record.state job_record.state = new_state job_record.related_unit_of_work = uow.db_id self.job_dao.update(job_record) msg = 'Updated Job {0} for {1}@{2}: state transfer {3} -> {4};' \ .format(job_record.db_id, job_record.process_name, job_record.timeperiod, original_job_state, new_state) self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg)
[ 1, 529, 276, 1112, 420, 29958, 29885, 1878, 446, 29894, 3376, 29914, 816, 14952, 29966, 9507, 29958, 19274, 261, 1927, 29914, 816, 14952, 29914, 16595, 29918, 3859, 29918, 23523, 29889, 2272, 13, 1649, 8921, 1649, 353, 12801, 5813, 16299, 13, 13, 3166, 12865, 1053, 12865, 13, 3166, 12183, 1053, 15233, 29892, 399, 25614, 29892, 14431, 13, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 4299, 1053, 4982, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 4299, 29889, 9057, 1053, 17163, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 2704, 1053, 18733, 5926, 2558, 2392, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 1388, 29877, 29889, 5441, 29918, 974, 29918, 1287, 29918, 1388, 29877, 1053, 13223, 2776, 5531, 29928, 6241, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 1388, 29877, 29889, 9057, 29918, 1388, 29877, 1053, 17163, 29928, 6241, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 4299, 1053, 5190, 29918, 974, 29918, 1287, 13, 3166, 5222, 261, 1927, 29889, 2585, 29889, 4299, 29889, 5441, 29918, 974, 29918, 1287, 1053, 13223, 2776, 5531, 13, 3166, 5222, 261, 1927, 29889, 5205, 29889, 28466, 29918, 3286, 2415, 357, 1053, 341, 29939, 4300, 2415, 357, 13, 3166, 5222, 261, 1927, 29889, 5527, 1053, 3030, 13, 3166, 5222, 261, 1927, 29889, 5205, 29889, 19557, 1061, 1053, 411, 29918, 276, 6915, 13, 3166, 5222, 261, 1927, 29889, 5205, 1053, 931, 29918, 20907, 13, 3166, 5222, 261, 1927, 29889, 816, 14952, 29889, 8336, 29918, 3177, 1053, 10034, 3906, 2951, 26289, 13, 13, 13, 1990, 25513, 2792, 29076, 29898, 3318, 1125, 13, 1678, 9995, 25513, 2106, 4933, 1304, 304, 3495, 3619, 5900, 363, 278, 1791, 310, 15443, 4306, 17197, 1475, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 17927, 29892, 5335, 300, 519, 29892, 1024, 1125, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 4706, 1583, 29889, 21707, 353, 17927, 13, 4706, 1583, 29889, 28466, 29918, 3286, 2415, 357, 353, 341, 29939, 4300, 2415, 357, 29898, 1311, 29889, 21707, 29897, 13, 4706, 1583, 29889, 9346, 300, 519, 353, 5335, 300, 519, 13, 4706, 1583, 29889, 29884, 340, 29918, 1388, 29877, 353, 13223, 2776, 5531, 29928, 6241, 29898, 1311, 29889, 21707, 29897, 13, 4706, 1583, 29889, 9057, 29918, 1388, 29877, 353, 17163, 29928, 6241, 29898, 1311, 29889, 21707, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1065, 29918, 265, 29918, 4925, 29918, 2230, 19145, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 584, 2457, 29901, 5852, 565, 2183, 4306, 6189, 6511, 8225, 373, 334, 9258, 29930, 931, 19145, 29892, 408, 15869, 304, 278, 7743, 697, 13, 4706, 9995, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 29898, 29888, 29915, 6799, 1065, 29918, 265, 29918, 4925, 29918, 2230, 19145, 1818, 367, 8762, 491, 426, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29913, 1495, 13, 13, 1678, 822, 903, 1188, 29918, 4906, 29898, 1311, 29892, 3233, 29901, 524, 29892, 1889, 29918, 978, 29901, 710, 29892, 931, 19145, 29901, 710, 29892, 10191, 29901, 710, 1125, 13, 4706, 9995, 1158, 23233, 12183, 964, 1480, 934, 322, 7870, 300, 519, 29915, 29879, 5447, 2943, 15945, 29908, 13, 4706, 1583, 29889, 9346, 300, 519, 29889, 1202, 29918, 1188, 29918, 8269, 29898, 5014, 29918, 978, 29892, 931, 19145, 29892, 10191, 29897, 13, 4706, 1583, 29889, 21707, 29889, 1188, 29898, 5563, 29892, 10191, 29897, 13, 13, 1678, 732, 2541, 29918, 276, 6915, 13, 1678, 822, 903, 7851, 29918, 29884, 340, 29898, 1311, 29892, 1889, 29918, 978, 29892, 931, 19145, 29892, 1369, 29918, 2230, 19145, 29892, 1095, 29918, 2230, 19145, 29892, 1369, 29918, 333, 29892, 1095, 29918, 333, 1125, 13, 4706, 9995, 1037, 1078, 5190, 29918, 974, 29918, 1287, 322, 13534, 1372, 372, 964, 278, 6535, 13, 9651, 584, 22692, 18733, 5926, 2558, 2392, 29901, 565, 5190, 29918, 974, 29918, 1287, 411, 2183, 4128, 2307, 4864, 9995, 13, 4706, 318, 340, 353, 13223, 2776, 5531, 580, 13, 4706, 318, 340, 29889, 5014, 29918, 978, 353, 1889, 29918, 978, 13, 4706, 318, 340, 29889, 2230, 19145, 353, 931, 19145, 13, 4706, 318, 340, 29889, 2962, 29918, 333, 353, 851, 29898, 2962, 29918, 333, 29897, 13, 4706, 318, 340, 29889, 355, 29918, 333, 353, 851, 29898, 355, 29918, 333, 29897, 13, 4706, 318, 340, 29889, 2962, 29918, 2230, 19145, 353, 1369, 29918, 2230, 19145, 13, 4706, 318, 340, 29889, 355, 29918, 2230, 19145, 353, 1095, 29918, 2230, 19145, 13, 4706, 318, 340, 29889, 11600, 29918, 271, 353, 12865, 29889, 329, 29883, 3707, 580, 13, 4706, 318, 340, 29889, 1491, 29885, 4430, 29918, 271, 353, 12865, 29889, 329, 29883, 3707, 580, 13, 4706, 318, 340, 29889, 4993, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 4993, 13, 4706, 318, 340, 29889, 29879, 682, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 29879, 682, 13, 4706, 318, 340, 29889, 3859, 353, 5190, 29918, 974, 29918, 1287, 29889, 19713, 29918, 16244, 3352, 13, 4706, 318, 340, 29889, 5441, 29918, 974, 29918, 1287, 29918, 1853, 353, 5190, 29918, 974, 29918, 1287, 29889, 11116, 29918, 1529, 3521, 1692, 29928, 13, 4706, 318, 340, 29889, 4537, 29918, 974, 29918, 2267, 2722, 353, 29871, 29900, 13, 4706, 318, 340, 29889, 25699, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 25699, 13, 4706, 318, 340, 29889, 2585, 29918, 333, 353, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 7851, 29898, 29884, 340, 29897, 13, 13, 4706, 10191, 353, 525, 20399, 29901, 501, 9806, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 29913, 975, 15974, 29941, 6177, 29912, 29946, 7690, 12764, 13, 9651, 869, 4830, 29898, 29884, 340, 29889, 2585, 29918, 333, 29892, 1889, 29918, 978, 29892, 931, 19145, 29892, 1369, 29918, 2230, 19145, 29892, 1095, 29918, 2230, 19145, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 1889, 29918, 978, 29892, 931, 19145, 29892, 10191, 29897, 13, 4706, 736, 318, 340, 13, 13, 1678, 822, 903, 23679, 29918, 29884, 340, 29898, 1311, 29892, 318, 340, 1125, 13, 4706, 1583, 29889, 28466, 29918, 3286, 2415, 357, 29889, 23679, 29918, 25240, 29918, 29884, 340, 29898, 29884, 340, 29897, 13, 4706, 10191, 353, 525, 21076, 3726, 29901, 501, 9806, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 29913, 975, 15974, 29941, 6177, 29912, 29946, 7690, 12764, 13, 9651, 869, 4830, 29898, 29884, 340, 29889, 2585, 29918, 333, 29892, 318, 340, 29889, 5014, 29918, 978, 29892, 318, 340, 29889, 2230, 19145, 29892, 318, 340, 29889, 2962, 29918, 2230, 19145, 29892, 318, 340, 29889, 355, 29918, 2230, 19145, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 318, 340, 29889, 5014, 29918, 978, 29892, 318, 340, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 4635, 29918, 392, 29918, 23679, 29918, 29884, 340, 29898, 1311, 29892, 4982, 29918, 11651, 29892, 1369, 29918, 333, 29892, 1095, 29918, 333, 1125, 13, 4706, 9995, 1158, 10017, 322, 9805, 267, 263, 5190, 29918, 974, 29918, 1287, 29889, 372, 884, 17766, 18733, 5926, 2558, 2392, 322, 14734, 24205, 13, 4706, 584, 2457, 29901, 18761, 313, 29884, 340, 29892, 338, 29918, 20908, 5926, 29897, 13, 4706, 584, 22692, 4911, 22709, 29901, 565, 278, 24205, 515, 18733, 5926, 2558, 2392, 471, 443, 8698, 1319, 13, 4706, 9995, 13, 4706, 1889, 29918, 978, 353, 4982, 29918, 11651, 29889, 5014, 29918, 978, 13, 4706, 931, 19145, 353, 4982, 29918, 11651, 29889, 2230, 19145, 13, 4706, 1369, 29918, 2230, 19145, 353, 1583, 29889, 26017, 29918, 2962, 29918, 2230, 19145, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29897, 13, 4706, 1095, 29918, 2230, 19145, 353, 1583, 29889, 26017, 29918, 355, 29918, 2230, 19145, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 338, 29918, 20908, 5926, 353, 7700, 13, 9651, 318, 340, 353, 1583, 3032, 7851, 29918, 29884, 340, 29898, 5014, 29918, 978, 29892, 931, 19145, 29892, 1369, 29918, 2230, 19145, 29892, 1095, 29918, 2230, 19145, 29892, 1369, 29918, 333, 29892, 1095, 29918, 333, 29897, 13, 4706, 5174, 18733, 5926, 2558, 2392, 408, 321, 29901, 13, 9651, 338, 29918, 20908, 5926, 353, 5852, 13, 9651, 10191, 353, 525, 29907, 905, 292, 701, 411, 9281, 501, 9806, 426, 29900, 29913, 28312, 29896, 29913, 975, 15974, 29906, 6177, 29912, 29941, 9594, 1363, 310, 29901, 426, 29946, 10162, 320, 13, 462, 29871, 869, 4830, 29898, 5014, 29918, 978, 29892, 931, 19145, 29892, 1369, 29918, 2230, 19145, 29892, 1095, 29918, 2230, 19145, 29892, 321, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 1889, 29918, 978, 29892, 931, 19145, 29892, 10191, 29897, 13, 9651, 318, 340, 353, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 3757, 957, 29918, 3166, 29918, 20908, 5926, 1989, 2704, 29898, 29872, 29897, 13, 13, 4706, 565, 451, 318, 340, 29901, 13, 9651, 10191, 353, 525, 13171, 5425, 1254, 3919, 323, 29902, 1001, 14431, 29991, 20065, 304, 26694, 501, 9806, 363, 426, 29900, 29913, 28312, 29896, 29913, 975, 15974, 29906, 6177, 29912, 29941, 1800, 29915, 320, 13, 462, 29871, 869, 4830, 29898, 5014, 29918, 978, 29892, 931, 19145, 29892, 1369, 29918, 2230, 19145, 29892, 1095, 29918, 2230, 19145, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 1889, 29918, 978, 29892, 931, 19145, 29892, 10191, 29897, 13, 9651, 12020, 4911, 22709, 29898, 7645, 29897, 13, 13, 4706, 565, 318, 340, 29889, 275, 29918, 29883, 749, 839, 29901, 13, 9651, 396, 445, 501, 9806, 471, 10902, 363, 337, 29899, 19170, 29889, 1162, 13317, 372, 13, 9651, 318, 340, 29889, 11600, 29918, 271, 353, 12865, 29889, 329, 29883, 3707, 580, 418, 396, 10092, 2825, 29918, 271, 304, 491, 3364, 19983, 508, 22603, 5900, 13, 9651, 318, 340, 29889, 1491, 29885, 4430, 29918, 271, 353, 12865, 29889, 329, 29883, 3707, 580, 1678, 396, 10092, 18397, 29918, 271, 304, 2758, 29871, 29896, 7234, 3889, 310, 19983, 620, 431, 29885, 5367, 13, 9651, 628, 318, 340, 29889, 2962, 287, 29918, 271, 13, 9651, 628, 318, 340, 29889, 4951, 3276, 29918, 271, 13, 9651, 628, 318, 340, 29889, 4537, 29918, 974, 29918, 26193, 630, 29918, 3225, 29879, 13, 9651, 628, 318, 340, 29889, 4537, 29918, 974, 29918, 5014, 287, 29918, 3225, 29879, 13, 9651, 318, 340, 29889, 3859, 353, 5190, 29918, 974, 29918, 1287, 29889, 19713, 29918, 16244, 3352, 13, 9651, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 5504, 29898, 29884, 340, 29897, 13, 13, 4706, 396, 9805, 278, 2825, 29914, 3757, 957, 287, 29914, 276, 8798, 839, 5190, 29918, 974, 29918, 1287, 13, 4706, 1583, 3032, 23679, 29918, 29884, 340, 29898, 29884, 340, 29897, 13, 4706, 736, 318, 340, 29892, 338, 29918, 20908, 5926, 13, 13, 1678, 822, 26051, 29898, 1311, 29892, 318, 340, 1125, 13, 4706, 9995, 1158, 338, 1304, 491, 4306, 29076, 29915, 29879, 4160, 304, 3867, 25913, 1048, 1735, 297, 501, 9806, 13, 4706, 565, 22903, 29892, 1158, 674, 2767, 4982, 29918, 11651, 2106, 322, 7870, 300, 519, 5447, 2943, 2106, 13, 4706, 584, 465, 398, 1980, 29901, 318, 340, 338, 297, 518, 19713, 29918, 6632, 4590, 29892, 6850, 3040, 29918, 29907, 23219, 20566, 29892, 6850, 3040, 29918, 8618, 27266, 1660, 29928, 29962, 9995, 13, 4706, 1209, 13, 13, 1678, 822, 10272, 29918, 2962, 29918, 2230, 19145, 29898, 1311, 29892, 1889, 29918, 978, 29892, 931, 19145, 1125, 13, 4706, 9995, 2912, 267, 19604, 334, 262, 7009, 573, 29930, 931, 19145, 10452, 363, 4982, 304, 1889, 13, 9651, 363, 1889, 411, 931, 29918, 2972, 292, 1275, 29871, 29896, 29892, 372, 3639, 2183, 931, 19145, 411, 694, 1735, 13, 9651, 363, 1889, 411, 931, 29918, 2972, 292, 2804, 29871, 29896, 29892, 372, 2912, 267, 937, 931, 19145, 29892, 451, 19356, 491, 278, 3517, 4982, 1065, 13, 9651, 1152, 2777, 29901, 411, 931, 29918, 2972, 292, 353, 29871, 29941, 29892, 660, 29965, 1964, 29902, 3738, 1001, 29918, 8187, 4219, 29979, 29892, 322, 931, 19145, 353, 29871, 29906, 29900, 29896, 29953, 29900, 29946, 29906, 29900, 29896, 29947, 29892, 13, 9651, 278, 1369, 29918, 2230, 19145, 674, 367, 353, 29871, 29906, 29900, 29896, 29953, 29900, 29946, 29906, 29900, 29896, 29953, 313, 12097, 287, 408, 29871, 29906, 29900, 29896, 29953, 29900, 29946, 29906, 29900, 29896, 29947, 448, 29871, 29941, 718, 29871, 29896, 29897, 13, 4706, 9995, 13, 4706, 931, 29918, 2972, 292, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 2230, 29918, 2972, 292, 13, 4706, 565, 931, 29918, 2972, 292, 1275, 29871, 29896, 29901, 13, 9651, 736, 931, 19145, 13, 13, 4706, 396, 4331, 29896, 29901, 14240, 2183, 931, 19145, 304, 278, 931, 27831, 697, 13, 4706, 1889, 29918, 29882, 631, 12040, 353, 1583, 29889, 9346, 300, 519, 29889, 657, 29918, 8336, 29898, 5014, 29918, 978, 467, 5014, 29918, 29882, 631, 12040, 13, 4706, 931, 19145, 29918, 8977, 353, 1889, 29918, 29882, 631, 12040, 29961, 5014, 29918, 978, 1822, 2230, 19145, 29918, 8977, 13, 4706, 20512, 29918, 2230, 19145, 353, 931, 19145, 29918, 8977, 3032, 21652, 29918, 2230, 19145, 29898, 2230, 19145, 29897, 13, 13, 4706, 396, 4331, 29871, 29906, 29901, 10272, 3517, 27831, 3785, 13, 4706, 396, 6058, 12107, 29901, 2560, 421, 2230, 29918, 20907, 29889, 25629, 29918, 2230, 19145, 29898, 2230, 29918, 15380, 3709, 29892, 931, 19145, 3569, 338, 1663, 29884, 4543, 13, 4706, 396, 308, 408, 372, 947, 451, 3211, 7636, 4251, 29892, 1316, 408, 278, 1833, 2462, 310, 278, 4098, 470, 278, 1833, 7234, 310, 278, 2462, 13, 4706, 396, 1152, 2777, 29901, 411, 931, 29918, 2972, 292, 29922, 29941, 29892, 660, 29965, 1964, 29902, 3738, 1001, 29918, 7698, 6227, 29979, 29892, 322, 29871, 29906, 29900, 29896, 29953, 29896, 29906, 29941, 29896, 29900, 29900, 13, 4706, 396, 278, 421, 25629, 29918, 2230, 19145, 29952, 674, 7709, 29871, 29906, 29900, 29896, 29953, 29896, 29906, 29906, 29947, 29900, 29900, 2012, 310, 29871, 29906, 29900, 29896, 29953, 29896, 29906, 29941, 29896, 29900, 29900, 13, 4706, 931, 29918, 15380, 3709, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 2230, 29918, 15380, 3709, 13, 4706, 363, 474, 297, 3464, 29898, 29896, 29892, 931, 29918, 2972, 292, 718, 29871, 29896, 1125, 13, 9651, 12379, 29918, 2230, 19145, 353, 931, 29918, 20907, 29889, 25629, 29918, 2230, 19145, 29898, 2230, 29918, 15380, 3709, 29892, 20512, 29918, 2230, 19145, 29892, 19471, 10457, 29875, 29897, 13, 9651, 565, 12379, 29918, 2230, 19145, 1275, 931, 19145, 29918, 8977, 3032, 21652, 29918, 2230, 19145, 29898, 16304, 29918, 2230, 19145, 1125, 13, 18884, 396, 12379, 29918, 2230, 19145, 338, 5279, 472, 278, 1833, 27831, 931, 19145, 13, 18884, 2867, 13, 13, 4706, 396, 4331, 29871, 29941, 29901, 10272, 937, 29192, 931, 19145, 1156, 278, 334, 16304, 29918, 2230, 19145, 15966, 13, 4706, 396, 607, 7415, 937, 20978, 573, 931, 19145, 363, 445, 4982, 1065, 13, 4706, 975, 29918, 1552, 29918, 12864, 29918, 2230, 19145, 353, 931, 29918, 20907, 29889, 25629, 29918, 2230, 19145, 29898, 2230, 29918, 15380, 3709, 29892, 12379, 29918, 2230, 19145, 29892, 19471, 10457, 29896, 29897, 13, 4706, 565, 12379, 29918, 2230, 19145, 2804, 931, 19145, 29918, 8977, 3032, 21652, 29918, 2230, 19145, 29898, 957, 29918, 1552, 29918, 12864, 29918, 2230, 19145, 1125, 13, 9651, 396, 975, 29918, 1552, 29918, 12864, 29918, 2230, 19145, 8379, 964, 3517, 2462, 470, 4098, 470, 1629, 13, 9651, 396, 334, 16304, 29918, 2230, 19145, 29930, 3291, 304, 278, 937, 4098, 29892, 937, 2462, 310, 278, 4098, 470, 29871, 29900, 29900, 7234, 13, 9651, 1369, 29918, 2230, 19145, 353, 12379, 29918, 2230, 19145, 13, 4706, 1683, 29901, 13, 9651, 1369, 29918, 2230, 19145, 353, 1583, 29889, 26017, 29918, 355, 29918, 2230, 19145, 29898, 5014, 29918, 978, 29892, 12379, 29918, 2230, 19145, 29897, 13, 13, 4706, 736, 1369, 29918, 2230, 19145, 13, 13, 1678, 822, 10272, 29918, 355, 29918, 2230, 19145, 29898, 1311, 29892, 1889, 29918, 978, 29892, 931, 19145, 1125, 13, 4706, 9995, 2912, 267, 937, 334, 735, 7009, 573, 29930, 931, 19145, 363, 4982, 304, 1889, 9995, 13, 4706, 931, 29918, 15380, 3709, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 2230, 29918, 15380, 3709, 13, 4706, 1095, 29918, 2230, 19145, 353, 931, 29918, 20907, 29889, 25629, 29918, 2230, 19145, 29898, 2230, 29918, 15380, 3709, 29892, 931, 19145, 29897, 13, 4706, 736, 1095, 29918, 2230, 19145, 13, 13, 1678, 822, 903, 275, 29918, 1217, 459, 29918, 2230, 19145, 29898, 1311, 29892, 1889, 29918, 978, 29892, 931, 19145, 1125, 13, 4706, 9995, 1158, 1147, 11057, 565, 278, 2183, 931, 19145, 363, 2183, 1889, 338, 2854, 470, 20074, 297, 29899, 14811, 27270, 1423, 9748, 13, 4706, 584, 3207, 1889, 29918, 978, 29901, 1024, 310, 278, 1889, 13, 4706, 584, 3207, 931, 19145, 29901, 931, 19145, 304, 11539, 13, 4706, 584, 2457, 29901, 7700, 29892, 565, 2183, 1889, 756, 694, 931, 29918, 2972, 292, 731, 470, 372, 338, 5186, 304, 29871, 29896, 29889, 13, 462, 7700, 29892, 565, 931, 29918, 2972, 292, 338, 2888, 541, 278, 2183, 931, 19145, 7087, 278, 27831, 931, 19145, 29889, 13, 462, 5852, 29892, 565, 278, 931, 19145, 20074, 297, 29899, 14811, 27270, 12220, 4684, 13, 4706, 9995, 13, 4706, 931, 29918, 2972, 292, 353, 3030, 29889, 5014, 29918, 4703, 29961, 5014, 29918, 978, 1822, 2230, 29918, 2972, 292, 13, 4706, 565, 931, 29918, 2972, 292, 1275, 29871, 29896, 29901, 13, 9651, 736, 7700, 13, 13, 4706, 1889, 29918, 29882, 631, 12040, 353, 1583, 29889, 9346, 300, 519, 29889, 657, 29918, 8336, 29898, 5014, 29918, 978, 467, 5014, 29918, 29882, 631, 12040, 13, 4706, 931, 19145, 29918, 8977, 353, 1889, 29918, 29882, 631, 12040, 29961, 5014, 29918, 978, 1822, 2230, 19145, 29918, 8977, 13, 4706, 736, 931, 19145, 29918, 8977, 3032, 21652, 29918, 2230, 19145, 29898, 2230, 19145, 29897, 2804, 931, 19145, 13, 13, 1678, 822, 903, 5014, 29918, 1217, 459, 29918, 2230, 19145, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 338, 2854, 363, 10174, 2534, 931, 29918, 2972, 292, 2804, 29871, 29896, 29889, 13, 9651, 881, 263, 4982, 2407, 6416, 297, 29899, 14811, 27831, 931, 2316, 342, 2873, 29892, 13, 9651, 967, 2106, 881, 367, 731, 304, 6850, 3040, 29918, 6632, 4590, 1728, 738, 9068, 9995, 13, 4706, 4982, 29918, 11651, 29889, 3859, 353, 4982, 29889, 19713, 29918, 6632, 4590, 13, 4706, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 13, 4706, 931, 29918, 2972, 292, 353, 3030, 29889, 5014, 29918, 4703, 29961, 9057, 29918, 11651, 29889, 5014, 29918, 978, 1822, 2230, 29918, 2972, 292, 13, 4706, 10191, 353, 525, 11947, 426, 29900, 29913, 28312, 29896, 29913, 411, 931, 29918, 2972, 292, 426, 29906, 29913, 471, 18440, 304, 6850, 3040, 29918, 6632, 4590, 29915, 320, 13, 795, 869, 4830, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 931, 29918, 2972, 292, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 903, 5014, 29918, 3859, 29918, 1590, 719, 29877, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 393, 4893, 2562, 310, 9068, 4982, 6475, 297, 6850, 3040, 29918, 29923, 9486, 13207, 29949, 2106, 15945, 29908, 13, 4706, 1209, 13, 13, 1678, 822, 903, 5014, 29918, 3859, 29918, 262, 29918, 18035, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 393, 4893, 2562, 310, 9068, 4982, 6475, 297, 6850, 3040, 29918, 1177, 29918, 8618, 29954, 26785, 2106, 15945, 29908, 13, 4706, 1209, 13, 13, 1678, 822, 903, 5014, 29918, 3859, 29918, 8394, 29918, 3389, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 5696, 4893, 2562, 310, 9068, 4982, 6475, 297, 6850, 3040, 29918, 29943, 1177, 1964, 29918, 29934, 3904, 2106, 15945, 29908, 13, 4706, 318, 340, 353, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 657, 29918, 650, 29898, 9057, 29918, 11651, 29889, 12817, 29918, 5441, 29918, 974, 29918, 1287, 29897, 13, 4706, 565, 318, 340, 29889, 275, 29918, 5014, 287, 29901, 13, 9651, 1583, 29889, 5504, 29918, 9057, 29898, 9057, 29918, 11651, 29892, 318, 340, 29892, 4982, 29889, 19713, 29918, 8618, 27266, 1660, 29928, 29897, 13, 4706, 25342, 318, 340, 29889, 275, 29918, 1217, 459, 29901, 13, 9651, 1583, 29889, 5504, 29918, 9057, 29898, 9057, 29918, 11651, 29892, 318, 340, 29892, 4982, 29889, 19713, 29918, 6632, 4590, 29897, 13, 4706, 25342, 318, 340, 29889, 275, 29918, 29883, 749, 839, 29901, 13, 9651, 1583, 29889, 5504, 29918, 9057, 29898, 9057, 29918, 11651, 29892, 318, 340, 29892, 4982, 29889, 19713, 29918, 16033, 5690, 29925, 3352, 29897, 13, 4706, 25342, 318, 340, 29889, 275, 29918, 20965, 29901, 13, 9651, 10191, 353, 525, 11947, 426, 29900, 6177, 501, 9806, 363, 426, 29896, 29913, 28312, 29906, 29913, 338, 297, 426, 29941, 3400, 525, 320, 13, 462, 29871, 525, 276, 5890, 373, 278, 7455, 17807, 24930, 272, 304, 2845, 1162, 13317, 470, 12611, 278, 501, 9806, 6169, 320, 13, 462, 29871, 869, 4830, 29898, 9057, 29918, 11651, 29889, 2585, 29918, 333, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 318, 340, 29889, 3859, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 4706, 1683, 29901, 13, 9651, 10191, 353, 525, 20182, 1253, 287, 4969, 501, 9806, 363, 426, 29900, 29913, 28312, 29896, 3400, 17163, 338, 297, 426, 29906, 3400, 318, 340, 338, 297, 426, 29941, 10162, 320, 13, 462, 29871, 869, 4830, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 4982, 29918, 11651, 29889, 3859, 29892, 318, 340, 29889, 3859, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 4706, 5335, 300, 519, 29918, 8336, 353, 1583, 29889, 9346, 300, 519, 29889, 657, 29918, 8336, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29897, 13, 4706, 5335, 300, 519, 29918, 8336, 29889, 4282, 29918, 8336, 580, 13, 13, 1678, 822, 903, 5014, 29918, 8489, 979, 29918, 3859, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 10748, 263, 9177, 2643, 451, 9215, 393, 278, 4982, 338, 694, 5520, 4095, 491, 445, 2106, 4933, 9995, 13, 4706, 10191, 353, 525, 11947, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 29913, 338, 297, 278, 8638, 2106, 426, 29941, 1118, 525, 320, 13, 795, 525, 392, 338, 694, 4340, 4095, 491, 278, 4306, 6189, 426, 29946, 10162, 320, 13, 795, 869, 4830, 29898, 9057, 29918, 11651, 29889, 2585, 29918, 333, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 4982, 29918, 11651, 29889, 3859, 29892, 1583, 29889, 978, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 10933, 29918, 9057, 29918, 2541, 29918, 1271, 292, 29918, 11991, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 674, 7135, 4982, 9068, 871, 565, 29901, 13, 9651, 448, 599, 4344, 526, 7743, 313, 19713, 29918, 8618, 27266, 1660, 29928, 29892, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 29892, 6850, 3040, 29918, 6632, 4590, 29897, 13, 9651, 448, 599, 7029, 9962, 526, 2186, 1891, 313, 19713, 29918, 8618, 27266, 1660, 29928, 29892, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 29892, 6850, 3040, 29918, 6632, 4590, 29897, 9995, 13, 4706, 338, 29918, 9057, 29918, 8394, 13902, 353, 1583, 29889, 9346, 300, 519, 29889, 275, 29918, 9057, 29918, 11651, 29918, 8394, 13902, 29898, 9057, 29918, 11651, 29897, 13, 4706, 565, 338, 29918, 9057, 29918, 8394, 13902, 29901, 13, 9651, 1583, 29889, 1171, 482, 29918, 9057, 29898, 9057, 29918, 11651, 29897, 13, 4706, 1683, 29901, 13, 9651, 10191, 353, 525, 11947, 426, 29900, 29913, 28312, 29896, 29913, 338, 24370, 491, 443, 5014, 287, 4344, 29914, 22594, 29889, 20340, 292, 1790, 16892, 29915, 320, 13, 462, 29871, 869, 4830, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 10933, 29918, 9057, 29918, 2541, 29918, 1271, 292, 29918, 22594, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 674, 7135, 4982, 9068, 871, 565, 29901, 13, 9651, 448, 599, 9962, 526, 297, 518, 19713, 29918, 8618, 27266, 1660, 29928, 29892, 6850, 3040, 29918, 6632, 4590, 29962, 13, 9651, 6058, 12107, 29901, 1158, 674, 6782, 1857, 4982, 964, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 565, 738, 10609, 338, 297, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 9995, 13, 4706, 316, 1112, 29918, 7727, 353, 1583, 29889, 9346, 300, 519, 29889, 18980, 29918, 265, 29918, 7727, 29898, 9057, 29918, 11651, 29897, 13, 4706, 4974, 338, 8758, 29898, 311, 1112, 29918, 7727, 29892, 10034, 3906, 2951, 26289, 29897, 13, 13, 4706, 565, 316, 1112, 29918, 7727, 29889, 497, 29918, 5014, 287, 29901, 13, 9651, 1583, 29889, 1171, 482, 29918, 9057, 29898, 9057, 29918, 11651, 29897, 13, 4706, 25342, 316, 1112, 29918, 7727, 29889, 2574, 2986, 29918, 6338, 29901, 13, 9651, 396, 1094, 4720, 408, 4249, 529, 18980, 373, 29958, 23704, 526, 297, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 13, 9651, 396, 727, 338, 1407, 2217, 4060, 297, 10534, 363, 963, 304, 4953, 6850, 3040, 29918, 8618, 27266, 1660, 29928, 13, 9651, 396, 4971, 666, 445, 931, 19145, 3528, 13, 9651, 4982, 29918, 11651, 29889, 3859, 353, 4982, 29889, 19713, 29918, 16033, 5690, 29925, 3352, 13, 9651, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 9651, 1583, 29889, 28466, 29918, 3286, 2415, 357, 29889, 23679, 29918, 9057, 29918, 4882, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 316, 1112, 29918, 7727, 29889, 1188, 29918, 2574, 2986, 29898, 29956, 25614, 29897, 13, 9651, 10191, 353, 525, 11947, 426, 29900, 29913, 28312, 29896, 29913, 338, 24370, 491, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 9962, 29889, 525, 320, 13, 462, 29871, 525, 4300, 14373, 278, 4982, 304, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 4286, 4830, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 4706, 1683, 29901, 13, 9651, 316, 1112, 29918, 7727, 29889, 1188, 29918, 348, 5014, 287, 29898, 11690, 29897, 13, 9651, 10191, 353, 525, 11947, 426, 29900, 29913, 28312, 29896, 29913, 338, 24370, 491, 443, 5014, 287, 9962, 29889, 20340, 292, 1790, 16892, 29915, 320, 13, 462, 29871, 869, 4830, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 10933, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 1667, 13360, 448, 338, 304, 903, 485, 3398, 29918, 27256, 1790, 5190, 29918, 974, 29918, 1287, 29892, 565, 3517, 471, 451, 3447, 19356, 13, 9651, 512, 1206, 278, 4306, 6189, 18553, 393, 278, 5190, 29918, 974, 29918, 1287, 2307, 1863, 372, 1033, 2845, 29901, 13, 9651, 448, 2767, 24371, 310, 278, 9068, 29936, 23465, 1674, 13, 9651, 448, 4480, 1790, 16892, 29936, 28132, 9995, 13, 4706, 4974, 338, 8758, 29898, 9057, 29918, 11651, 29892, 17163, 29897, 13, 4706, 1018, 29901, 13, 9651, 565, 1583, 3032, 275, 29918, 1217, 459, 29918, 2230, 19145, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 1125, 13, 18884, 1583, 3032, 5014, 29918, 1217, 459, 29918, 2230, 19145, 29898, 9057, 29918, 11651, 29897, 13, 18884, 736, 13, 13, 9651, 565, 4982, 29918, 11651, 29889, 275, 29918, 1590, 719, 29877, 29901, 13, 18884, 1583, 3032, 5014, 29918, 3859, 29918, 1590, 719, 29877, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 25342, 4982, 29918, 11651, 29889, 275, 29918, 262, 29918, 18035, 29901, 13, 18884, 1583, 3032, 5014, 29918, 3859, 29918, 262, 29918, 18035, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 25342, 4982, 29918, 11651, 29889, 275, 29918, 8394, 29918, 3389, 29901, 13, 18884, 1583, 3032, 5014, 29918, 3859, 29918, 8394, 29918, 3389, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 25342, 4982, 29918, 11651, 29889, 275, 29918, 2574, 2986, 29901, 13, 18884, 1583, 3032, 5014, 29918, 8489, 979, 29918, 3859, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 25342, 4982, 29918, 11651, 29889, 275, 29918, 5014, 287, 29901, 13, 18884, 1583, 3032, 5014, 29918, 8489, 979, 29918, 3859, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 25342, 4982, 29918, 11651, 29889, 275, 29918, 1217, 459, 29901, 13, 18884, 1583, 3032, 5014, 29918, 8489, 979, 29918, 3859, 29898, 9057, 29918, 11651, 29897, 13, 13, 9651, 1683, 29901, 13, 18884, 10191, 353, 525, 14148, 2106, 426, 29900, 29913, 310, 278, 4982, 426, 29896, 29913, 4286, 4830, 29898, 9057, 29918, 11651, 29889, 3859, 29892, 4982, 29918, 11651, 29889, 2585, 29918, 333, 29897, 13, 18884, 1583, 3032, 1188, 29918, 4906, 29898, 11432, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 4706, 5174, 7419, 786, 2392, 408, 321, 29901, 13, 9651, 4982, 29918, 11651, 29889, 4537, 29918, 974, 29918, 14057, 1973, 4619, 29871, 29896, 13, 9651, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 9651, 1583, 29889, 9346, 300, 519, 29889, 11014, 29918, 361, 29918, 484, 19226, 29898, 9057, 29918, 11651, 29897, 13, 9651, 10191, 353, 525, 797, 1037, 5832, 4418, 6795, 363, 17163, 426, 29900, 29913, 28312, 29896, 1118, 1363, 310, 29901, 426, 29906, 10162, 320, 13, 462, 29871, 869, 4830, 29898, 9057, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 321, 29897, 13, 9651, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 4706, 7146, 29901, 13, 9651, 1583, 29889, 28466, 29918, 3286, 2415, 357, 29889, 23679, 29918, 9057, 29918, 4882, 29898, 9057, 29918, 11651, 29897, 13, 13, 1678, 822, 337, 5014, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 17997, 2183, 4982, 363, 337, 19170, 29901, 13, 9651, 448, 565, 694, 501, 9806, 471, 7868, 411, 278, 4982, 2407, 448, 372, 338, 18440, 304, 6850, 3040, 29918, 29923, 9486, 13207, 29949, 871, 13, 9651, 448, 565, 4475, 501, 9806, 471, 451, 7743, 448, 591, 2791, 278, 501, 9806, 408, 6850, 3040, 29918, 29907, 23219, 20566, 13, 18884, 322, 1209, 278, 4982, 2407, 266, 582, 278, 903, 5014, 29918, 262, 29918, 18035, 26529, 13, 9651, 448, 6467, 4982, 2407, 338, 4502, 266, 582, 278, 903, 5014, 29918, 262, 29918, 18035, 26529, 9995, 13, 4706, 2441, 29918, 9057, 29918, 3859, 353, 4982, 29918, 11651, 29889, 3859, 13, 4706, 4982, 29918, 11651, 29889, 4537, 29918, 974, 29918, 14057, 1973, 353, 29871, 29900, 13, 13, 4706, 565, 451, 4982, 29918, 11651, 29889, 12817, 29918, 5441, 29918, 974, 29918, 1287, 29901, 13, 9651, 4982, 29918, 11651, 29889, 3859, 353, 4982, 29889, 19713, 29918, 29923, 9486, 13207, 29949, 13, 9651, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 4706, 1683, 29901, 13, 9651, 318, 340, 353, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 657, 29918, 650, 29898, 9057, 29918, 11651, 29889, 12817, 29918, 5441, 29918, 974, 29918, 1287, 29897, 13, 9651, 565, 451, 318, 340, 29889, 275, 29918, 4951, 3276, 29901, 13, 18884, 318, 340, 29889, 3859, 353, 5190, 29918, 974, 29918, 1287, 29889, 19713, 29918, 29907, 23219, 20566, 13, 18884, 318, 340, 29889, 1491, 29885, 4430, 29918, 271, 353, 12865, 29889, 329, 29883, 3707, 580, 13, 18884, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 5504, 29898, 29884, 340, 29897, 13, 9651, 1583, 3032, 5014, 29918, 3859, 29918, 262, 29918, 18035, 29898, 9057, 29918, 11651, 29897, 13, 13, 4706, 10191, 353, 525, 1123, 5014, 287, 17163, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 6177, 2106, 6782, 426, 29941, 29913, 1599, 426, 29946, 3400, 29915, 320, 13, 795, 869, 4830, 29898, 9057, 29918, 11651, 29889, 2585, 29918, 333, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 13, 462, 418, 2441, 29918, 9057, 29918, 3859, 29892, 4982, 29918, 11651, 29889, 3859, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 14383, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 11651, 1125, 13, 4706, 9995, 1158, 1301, 25534, 29901, 13, 9651, 448, 2183, 4982, 964, 6850, 3040, 29918, 16033, 5690, 29925, 3352, 565, 372, 338, 451, 451, 297, 7743, 2106, 13, 9651, 448, 501, 9806, 964, 6850, 3040, 29918, 29907, 23219, 20566, 565, 372, 338, 451, 297, 7743, 2106, 9995, 13, 4706, 2441, 29918, 9057, 29918, 3859, 353, 4982, 29918, 11651, 29889, 3859, 13, 13, 4706, 565, 451, 4982, 29918, 11651, 29889, 275, 29918, 4951, 3276, 29901, 13, 9651, 4982, 29918, 11651, 29889, 3859, 353, 4982, 29889, 19713, 29918, 16033, 5690, 29925, 3352, 13, 9651, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 13, 4706, 565, 4982, 29918, 11651, 29889, 12817, 29918, 5441, 29918, 974, 29918, 1287, 29901, 13, 9651, 318, 340, 353, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 657, 29918, 650, 29898, 9057, 29918, 11651, 29889, 12817, 29918, 5441, 29918, 974, 29918, 1287, 29897, 13, 9651, 565, 451, 318, 340, 29889, 275, 29918, 4951, 3276, 29901, 13, 18884, 318, 340, 29889, 3859, 353, 5190, 29918, 974, 29918, 1287, 29889, 19713, 29918, 29907, 23219, 20566, 13, 18884, 318, 340, 29889, 1491, 29885, 4430, 29918, 271, 353, 12865, 29889, 329, 29883, 3707, 580, 13, 18884, 1583, 29889, 29884, 340, 29918, 1388, 29877, 29889, 5504, 29898, 29884, 340, 29897, 13, 13, 4706, 10191, 353, 525, 29903, 1984, 2986, 17163, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 6177, 2106, 6782, 426, 29941, 29913, 1599, 426, 29946, 3400, 29915, 320, 13, 795, 869, 4830, 29898, 9057, 29918, 11651, 29889, 2585, 29918, 333, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 13, 462, 418, 2441, 29918, 9057, 29918, 3859, 29892, 4982, 29918, 11651, 29889, 3859, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 29956, 25614, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 13, 1678, 822, 1653, 29918, 9057, 29898, 1311, 29892, 1889, 29918, 978, 29892, 931, 19145, 1125, 13, 4706, 9995, 1158, 10017, 263, 4982, 2407, 297, 6850, 3040, 29918, 29923, 9486, 13207, 29949, 363, 2183, 1889, 29918, 978, 322, 931, 19145, 13, 9651, 584, 18280, 29901, 2825, 4982, 2407, 310, 1134, 529, 11947, 11903, 15945, 13, 4706, 4982, 29918, 11651, 353, 17163, 580, 13, 4706, 4982, 29918, 11651, 29889, 3859, 353, 4982, 29889, 19713, 29918, 29923, 9486, 13207, 29949, 13, 4706, 4982, 29918, 11651, 29889, 2230, 19145, 353, 931, 19145, 13, 4706, 4982, 29918, 11651, 29889, 5014, 29918, 978, 353, 1889, 29918, 978, 13, 4706, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 13, 4706, 1583, 29889, 21707, 29889, 3888, 877, 20399, 17163, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 10162, 13, 462, 308, 869, 4830, 29898, 9057, 29918, 11651, 29889, 2585, 29918, 333, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 876, 13, 4706, 736, 4982, 29918, 11651, 13, 13, 1678, 822, 2767, 29918, 9057, 29898, 1311, 29892, 4982, 29918, 11651, 29892, 318, 340, 29892, 716, 29918, 3859, 1125, 13, 4706, 9995, 1158, 11217, 4982, 2407, 411, 263, 716, 5190, 29918, 974, 29918, 1287, 322, 716, 2106, 15945, 29908, 13, 4706, 2441, 29918, 9057, 29918, 3859, 353, 4982, 29918, 11651, 29889, 3859, 13, 4706, 4982, 29918, 11651, 29889, 3859, 353, 716, 29918, 3859, 13, 4706, 4982, 29918, 11651, 29889, 12817, 29918, 5441, 29918, 974, 29918, 1287, 353, 318, 340, 29889, 2585, 29918, 333, 13, 4706, 1583, 29889, 9057, 29918, 1388, 29877, 29889, 5504, 29898, 9057, 29918, 11651, 29897, 13, 13, 4706, 10191, 353, 525, 29248, 17163, 426, 29900, 29913, 363, 426, 29896, 29913, 28312, 29906, 6177, 2106, 6782, 426, 29941, 29913, 1599, 426, 29946, 3400, 29915, 320, 13, 795, 869, 4830, 29898, 9057, 29918, 11651, 29889, 2585, 29918, 333, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 2441, 29918, 9057, 29918, 3859, 29892, 716, 29918, 3859, 29897, 13, 4706, 1583, 3032, 1188, 29918, 4906, 29898, 11690, 29892, 4982, 29918, 11651, 29889, 5014, 29918, 978, 29892, 4982, 29918, 11651, 29889, 2230, 19145, 29892, 10191, 29897, 13, 2 ]
reconstruction_depth_to_3d/open3d/create_point_cloud.py
iwatake2222/opencv_sample
35
160485
import open3d as o3d image_rgb = o3d.io.read_image("image.png") image_depth = o3d.io.read_image("image_depth.png") width = int(image_rgb.get_max_bound()[0]) height = int(image_rgb.get_max_bound()[1]) camera_intrinsic = o3d.camera.PinholeCameraIntrinsic(width=width, height=height, fx=500, fy=500,cx=width/2, cy=height/2) image_rgbd = o3d.geometry.RGBDImage.create_from_color_and_depth(image_rgb, image_depth, convert_rgb_to_intensity=False) pcd = o3d.geometry.PointCloud.create_from_rgbd_image(image_rgbd, camera_intrinsic) pcd.estimate_normals(search_param=o3d.geometry.KDTreeSearchParamHybrid(radius=0.1, max_nn=30)) # Flip it, otherwise the pointcloud will be upside down pcd.transform([[1, 0, 0, 0], [0, -1, 0, 0], [0, 0, -1, 0], [0, 0, 0, 1]]) o3d.visualization.draw_geometries([pcd], width=640, height=480) o3d.io.write_point_cloud("output.ply", pcd)
[ 1, 1053, 1722, 29941, 29881, 408, 288, 29941, 29881, 13, 13, 3027, 29918, 23973, 353, 288, 29941, 29881, 29889, 601, 29889, 949, 29918, 3027, 703, 3027, 29889, 2732, 1159, 13, 3027, 29918, 19488, 353, 288, 29941, 29881, 29889, 601, 29889, 949, 29918, 3027, 703, 3027, 29918, 19488, 29889, 2732, 1159, 13, 2103, 353, 938, 29898, 3027, 29918, 23973, 29889, 657, 29918, 3317, 29918, 9917, 580, 29961, 29900, 2314, 13, 3545, 353, 938, 29898, 3027, 29918, 23973, 29889, 657, 29918, 3317, 29918, 9917, 580, 29961, 29896, 2314, 13, 26065, 29918, 262, 509, 28594, 353, 288, 29941, 29881, 29889, 26065, 29889, 29925, 21307, 280, 20717, 797, 509, 28594, 29898, 2103, 29922, 2103, 29892, 3171, 29922, 3545, 29892, 285, 29916, 29922, 29945, 29900, 29900, 29892, 285, 29891, 29922, 29945, 29900, 29900, 29892, 18904, 29922, 2103, 29914, 29906, 29892, 5094, 29922, 3545, 29914, 29906, 29897, 13, 3027, 29918, 11007, 6448, 353, 288, 29941, 29881, 29889, 19156, 29889, 28212, 29928, 2940, 29889, 3258, 29918, 3166, 29918, 2780, 29918, 392, 29918, 19488, 29898, 3027, 29918, 23973, 29892, 1967, 29918, 19488, 29892, 3588, 29918, 23973, 29918, 517, 29918, 524, 575, 537, 29922, 8824, 29897, 13, 29886, 2252, 353, 288, 29941, 29881, 29889, 19156, 29889, 5228, 20442, 29889, 3258, 29918, 3166, 29918, 11007, 6448, 29918, 3027, 29898, 3027, 29918, 11007, 6448, 29892, 10656, 29918, 262, 509, 28594, 29897, 13, 29886, 2252, 29889, 342, 6490, 29918, 12324, 1338, 29898, 4478, 29918, 3207, 29922, 29877, 29941, 29881, 29889, 19156, 29889, 29968, 29928, 9643, 7974, 4736, 26322, 19515, 29898, 13471, 29922, 29900, 29889, 29896, 29892, 4236, 29918, 15755, 29922, 29941, 29900, 876, 13, 29937, 383, 3466, 372, 29892, 6467, 278, 1298, 9274, 674, 367, 24081, 680, 1623, 13, 29886, 2252, 29889, 9067, 4197, 29961, 29896, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 1402, 518, 29900, 29892, 448, 29896, 29892, 29871, 29900, 29892, 29871, 29900, 1402, 518, 29900, 29892, 29871, 29900, 29892, 448, 29896, 29892, 29871, 29900, 1402, 518, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 24960, 13, 29877, 29941, 29881, 29889, 20119, 2133, 29889, 4012, 29918, 479, 3297, 2722, 4197, 29886, 2252, 1402, 2920, 29922, 29953, 29946, 29900, 29892, 3171, 29922, 29946, 29947, 29900, 29897, 13, 29877, 29941, 29881, 29889, 601, 29889, 3539, 29918, 3149, 29918, 9274, 703, 4905, 29889, 17632, 613, 282, 2252, 29897, 13, 2 ]
geolocator.py
Kugeleis/TeslaInventoryChecker
7
18850
<reponame>Kugeleis/TeslaInventoryChecker import http.client import json from types import SimpleNamespace def get_token(): conn = http.client.HTTPSConnection("www.tesla.com") payload = { "resource": "geocodesvc", "csrf_name": "", "csrf_value": "" } headers = { 'Content-Type': 'application/json' } conn.request("POST", "/inventory/api/v1/refresh_token", json.dumps(payload), headers) res = conn.getresponse() data = res.read() auth = json.loads(data, object_hook=lambda d: SimpleNamespace(**d)) return auth.token def decode_zip(token, zip_code, country_code): conn = http.client.HTTPSConnection("www.tesla.com") payload = { "token": token, "postal_code": zip_code, "country_code": country_code, "csrf_name": "", "csrf_value": "" } headers = { 'Content-Type': 'application/json' } conn.request("POST", "/inventory/api/v1/address", json.dumps(payload), headers) res = conn.getresponse() data = res.read() geo_result = json.loads(data, object_hook=lambda d: SimpleNamespace(**d)) # Example Data: # { # "city": "Montreal", # "stateProvince": "Quebec", # "postalCode": "H1K 3T2", # "countryCode": "CA", # "countryName": "Canada", # "longitude": -73.5614205, # "latitude": 45.60802700000001, # "county": "Montreal", # "stateCode": "QC" # } return geo_result.data
[ 1, 529, 276, 1112, 420, 29958, 29968, 5710, 280, 275, 29914, 29911, 267, 433, 797, 23886, 5596, 261, 13, 5215, 1732, 29889, 4645, 13, 5215, 4390, 13, 3166, 4072, 1053, 12545, 23335, 13, 13, 1753, 679, 29918, 6979, 7295, 13, 1678, 11009, 353, 1732, 29889, 4645, 29889, 10493, 29903, 5350, 703, 1636, 29889, 2167, 433, 29889, 510, 1159, 13, 1678, 20092, 353, 426, 13, 4706, 376, 10314, 1115, 376, 479, 542, 2631, 7071, 613, 13, 4706, 376, 2395, 9600, 29918, 978, 1115, 12633, 13, 4706, 376, 2395, 9600, 29918, 1767, 1115, 5124, 13, 1678, 500, 13, 1678, 9066, 353, 426, 13, 4706, 525, 3916, 29899, 1542, 2396, 525, 6214, 29914, 3126, 29915, 13, 1678, 500, 13, 1678, 11009, 29889, 3827, 703, 5438, 613, 5591, 262, 23886, 29914, 2754, 29914, 29894, 29896, 29914, 22379, 29918, 6979, 613, 4390, 29889, 29881, 17204, 29898, 23813, 511, 9066, 29897, 13, 1678, 620, 353, 11009, 29889, 657, 5327, 580, 13, 1678, 848, 353, 620, 29889, 949, 580, 13, 1678, 4817, 353, 4390, 29889, 18132, 29898, 1272, 29892, 1203, 29918, 20849, 29922, 2892, 270, 29901, 12545, 23335, 29898, 1068, 29881, 876, 13, 1678, 736, 4817, 29889, 6979, 13, 13, 1753, 21822, 29918, 7554, 29898, 6979, 29892, 14319, 29918, 401, 29892, 4234, 29918, 401, 1125, 13, 1678, 11009, 353, 1732, 29889, 4645, 29889, 10493, 29903, 5350, 703, 1636, 29889, 2167, 433, 29889, 510, 1159, 13, 1678, 20092, 353, 426, 13, 4706, 376, 6979, 1115, 5993, 29892, 13, 4706, 376, 2490, 284, 29918, 401, 1115, 14319, 29918, 401, 29892, 13, 4706, 376, 13509, 29918, 401, 1115, 4234, 29918, 401, 29892, 13, 4706, 376, 2395, 9600, 29918, 978, 1115, 12633, 13, 4706, 376, 2395, 9600, 29918, 1767, 1115, 5124, 13, 1678, 500, 13, 1678, 9066, 353, 426, 13, 4706, 525, 3916, 29899, 1542, 2396, 525, 6214, 29914, 3126, 29915, 13, 1678, 500, 13, 1678, 11009, 29889, 3827, 703, 5438, 613, 5591, 262, 23886, 29914, 2754, 29914, 29894, 29896, 29914, 7328, 613, 4390, 29889, 29881, 17204, 29898, 23813, 511, 9066, 29897, 13, 1678, 620, 353, 11009, 29889, 657, 5327, 580, 13, 1678, 848, 353, 620, 29889, 949, 580, 13, 1678, 1737, 29877, 29918, 2914, 353, 4390, 29889, 18132, 29898, 1272, 29892, 1203, 29918, 20849, 29922, 2892, 270, 29901, 12545, 23335, 29898, 1068, 29881, 876, 13, 13, 1678, 396, 8741, 3630, 29901, 13, 1678, 396, 426, 13, 1678, 396, 268, 376, 12690, 1115, 376, 24665, 6370, 613, 13, 1678, 396, 268, 376, 3859, 1184, 29894, 1239, 1115, 376, 8654, 19385, 613, 13, 1678, 396, 268, 376, 2490, 284, 3399, 1115, 376, 29950, 29896, 29968, 29871, 29941, 29911, 29906, 613, 13, 1678, 396, 268, 376, 13509, 3399, 1115, 376, 5454, 613, 13, 1678, 396, 268, 376, 13509, 1170, 1115, 376, 6028, 1114, 613, 13, 1678, 396, 268, 376, 5426, 4279, 1115, 448, 29955, 29941, 29889, 29945, 29953, 29896, 29946, 29906, 29900, 29945, 29892, 13, 1678, 396, 268, 376, 5066, 4279, 1115, 29871, 29946, 29945, 29889, 29953, 29900, 29947, 29900, 29906, 29955, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29892, 13, 1678, 396, 268, 376, 2798, 29891, 1115, 376, 24665, 6370, 613, 13, 1678, 396, 268, 376, 3859, 3399, 1115, 376, 29984, 29907, 29908, 13, 1678, 396, 500, 13, 13, 1678, 736, 1737, 29877, 29918, 2914, 29889, 1272, 2 ]
tests/test_create_account.py
moctarjallo/ebank
0
152881
<filename>tests/test_create_account.py import unittest import pythonapi as api from banking import CreateAccount class TestCreateAccount(unittest.TestCase): def setUp(self): self.create_account = CreateAccount() def test_normal(self): request = api.Request({ 'firstname': 'moctar', 'lastname': 'diallo', 'address': 'medina', 'balance': 400 }) account = self.create_account.execute(request.data) response = api.Response(account) self.assertLess(response.data['code'], 10000) self.assertGreaterEqual(response.data['code'], 1) del response.data['code'] self.assertEqual(response.data, { 'client':{ 'firstname': 'moctar', 'lastname': 'diallo', 'address': 'medina', }, 'balance': 400, }) if __name__ == '__main__': unittest.main()
[ 1, 529, 9507, 29958, 21150, 29914, 1688, 29918, 3258, 29918, 10149, 29889, 2272, 13, 5215, 443, 27958, 13, 13, 5215, 3017, 2754, 408, 7882, 13, 13, 3166, 9124, 292, 1053, 6204, 10601, 13, 13, 1990, 4321, 4391, 10601, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3258, 29918, 10149, 353, 6204, 10601, 580, 13, 13, 1678, 822, 1243, 29918, 8945, 29898, 1311, 1125, 13, 4706, 2009, 353, 7882, 29889, 3089, 3319, 13, 9651, 525, 4102, 978, 2396, 525, 4346, 312, 279, 742, 13, 9651, 525, 4230, 978, 2396, 525, 29881, 616, 417, 742, 13, 9651, 525, 7328, 2396, 525, 2168, 1099, 742, 13, 9651, 525, 5521, 749, 2396, 29871, 29946, 29900, 29900, 13, 4706, 5615, 13, 13, 4706, 3633, 353, 1583, 29889, 3258, 29918, 10149, 29889, 7978, 29898, 3827, 29889, 1272, 29897, 13, 4706, 2933, 353, 7882, 29889, 5103, 29898, 10149, 29897, 13, 13, 4706, 1583, 29889, 9294, 29931, 404, 29898, 5327, 29889, 1272, 1839, 401, 7464, 29871, 29896, 29900, 29900, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 25120, 1008, 9843, 29898, 5327, 29889, 1272, 1839, 401, 7464, 29871, 29896, 29897, 13, 13, 4706, 628, 2933, 29889, 1272, 1839, 401, 2033, 13, 4706, 1583, 29889, 9294, 9843, 29898, 5327, 29889, 1272, 29892, 426, 13, 9651, 525, 4645, 2396, 29912, 13, 18884, 525, 4102, 978, 2396, 525, 4346, 312, 279, 742, 13, 18884, 525, 4230, 978, 2396, 525, 29881, 616, 417, 742, 13, 18884, 525, 7328, 2396, 525, 2168, 1099, 742, 13, 9651, 2981, 13, 9651, 525, 5521, 749, 2396, 29871, 29946, 29900, 29900, 29892, 13, 4706, 5615, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 443, 27958, 29889, 3396, 580, 2 ]
future_annotations.py
asottile/future-annotations
21
114123
import argparse import ast import codecs import encodings import io import sys import tokenize import warnings from typing import Match from typing import Optional from typing import Sequence from typing import Set from typing import Tuple import tokenize_rt def _ast_parse(contents_text: str) -> ast.Module: # intentionally ignore warnings, we might be fixing warning-ridden syntax with warnings.catch_warnings(): warnings.simplefilter('ignore') return ast.parse(contents_text.encode()) def _ast_to_offset(node: ast.expr) -> tokenize_rt.Offset: return tokenize_rt.Offset(node.lineno, node.col_offset) class Visitor(ast.NodeVisitor): def __init__(self) -> None: self.offsets: Set[tokenize_rt.Offset] = set() def visit_AnnAssign(self, node: ast.AnnAssign) -> None: self.offsets.add(_ast_to_offset(node.annotation)) self.generic_visit(node) def visit_FunctionDef(self, node: ast.FunctionDef) -> None: args = [] if hasattr(node.args, 'posonlyargs'): # pragma: no cover (py38+) args.extend(node.args.posonlyargs) args.extend(node.args.args) if node.args.vararg is not None: args.append(node.args.vararg) args.extend(node.args.kwonlyargs) if node.args.kwarg is not None: args.append(node.args.kwarg) for arg in args: if arg.annotation is not None: self.offsets.add(_ast_to_offset(arg.annotation)) if node.returns is not None: self.offsets.add(_ast_to_offset(node.returns)) self.generic_visit(node) utf_8 = encodings.search_function('utf8') def _new_coding_cookie(match: Match[str]) -> str: s = match[0] i = 0 while s[i].isspace(): i += 1 ret = f'{s[:i]}# {"*" * (len(s) - 2 - i)}' assert len(ret) == len(s), (len(ret), len(s)) return ret def decode(b: bytes, errors: str = 'strict') -> Tuple[str, int]: u, length = utf_8.decode(b, errors) # replace encoding cookie so there isn't a recursion problem lines = u.splitlines(True) for idx in (0, 1): if idx >= len(lines): break lines[idx] = tokenize.cookie_re.sub(_new_coding_cookie, lines[idx]) u = ''.join(lines) visitor = Visitor() visitor.visit(_ast_parse(u)) tokens = tokenize_rt.src_to_tokens(u) for i, token in tokenize_rt.reversed_enumerate(tokens): if token.offset in visitor.offsets: # look forward for a `:`, `,`, `=`, ')' depth = 0 j = i + 1 while depth or tokens[j].src not in {':', ',', '=', ')', '\n'}: if tokens[j].src in {'(', '{', '['}: depth += 1 elif tokens[j].src in {')', '}', ']'}: depth -= 1 j += 1 j -= 1 # look backward to delete whitespace / comments / etc. while tokens[j].name in tokenize_rt.NON_CODING_TOKENS: j -= 1 quoted = repr(tokenize_rt.tokens_to_src(tokens[i:j + 1])) tokens[i:j + 1] = [tokenize_rt.Token('STRING', quoted)] return tokenize_rt.tokens_to_src(tokens), length class IncrementalDecoder(codecs.BufferedIncrementalDecoder): def _buffer_decode(self, input, errors, final): # pragma: no cover if final: return decode(input, errors) else: return '', 0 class StreamReader(utf_8.streamreader): """decode is deferred to support better error messages""" _stream = None _decoded = False @property def stream(self): if not self._decoded: text, _ = decode(self._stream.read()) self._stream = io.BytesIO(text.encode('UTF-8')) self._decoded = True return self._stream @stream.setter def stream(self, stream): self._stream = stream self._decoded = False # codec api codec_map = { name: codecs.CodecInfo( name=name, encode=utf_8.encode, decode=decode, incrementalencoder=utf_8.incrementalencoder, incrementaldecoder=IncrementalDecoder, streamreader=StreamReader, streamwriter=utf_8.streamwriter, ) for name in ('future-annotations', 'future_annotations') } def register() -> None: # pragma: no cover codecs.register(codec_map.get) def main(argv: Optional[Sequence[str]] = None) -> int: parser = argparse.ArgumentParser(description='Prints transformed source.') parser.add_argument('filename') args = parser.parse_args(argv) with open(args.filename, 'rb') as f: text, _ = decode(f.read()) getattr(sys.stdout, 'buffer', sys.stdout).write(text.encode('UTF-8')) return 0 if __name__ == '__main__': raise SystemExit(main())
[ 1, 1053, 1852, 5510, 13, 5215, 8717, 13, 5215, 775, 2395, 13, 5215, 2094, 397, 886, 13, 5215, 12013, 13, 5215, 10876, 13, 5215, 5993, 675, 13, 5215, 18116, 13, 3166, 19229, 1053, 14514, 13, 3166, 19229, 1053, 28379, 13, 3166, 19229, 1053, 922, 3910, 13, 3166, 19229, 1053, 3789, 13, 3166, 19229, 1053, 12603, 552, 13, 13, 5215, 5993, 675, 29918, 2273, 13, 13, 13, 1753, 903, 579, 29918, 5510, 29898, 10853, 29918, 726, 29901, 851, 29897, 1599, 8717, 29889, 7355, 29901, 13, 1678, 396, 16392, 635, 11455, 18116, 29892, 591, 1795, 367, 27826, 9177, 29899, 2429, 1145, 5877, 13, 1678, 411, 18116, 29889, 12510, 29918, 25442, 886, 7295, 13, 4706, 18116, 29889, 12857, 4572, 877, 17281, 1495, 13, 4706, 736, 8717, 29889, 5510, 29898, 10853, 29918, 726, 29889, 12508, 3101, 13, 13, 13, 1753, 903, 579, 29918, 517, 29918, 10289, 29898, 3177, 29901, 8717, 29889, 13338, 29897, 1599, 5993, 675, 29918, 2273, 29889, 10302, 29901, 13, 1678, 736, 5993, 675, 29918, 2273, 29889, 10302, 29898, 3177, 29889, 1915, 8154, 29892, 2943, 29889, 1054, 29918, 10289, 29897, 13, 13, 13, 1990, 5741, 2105, 29898, 579, 29889, 4247, 6116, 2105, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 2696, 7224, 29901, 3789, 29961, 6979, 675, 29918, 2273, 29889, 10302, 29962, 353, 731, 580, 13, 13, 1678, 822, 6493, 29918, 2744, 29876, 7900, 647, 29898, 1311, 29892, 2943, 29901, 8717, 29889, 2744, 29876, 7900, 647, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 2696, 7224, 29889, 1202, 7373, 579, 29918, 517, 29918, 10289, 29898, 3177, 29889, 18317, 876, 13, 4706, 1583, 29889, 19206, 29918, 1730, 277, 29898, 3177, 29897, 13, 13, 1678, 822, 6493, 29918, 6678, 3206, 29898, 1311, 29892, 2943, 29901, 8717, 29889, 6678, 3206, 29897, 1599, 6213, 29901, 13, 4706, 6389, 353, 5159, 13, 4706, 565, 756, 5552, 29898, 3177, 29889, 5085, 29892, 525, 1066, 6194, 5085, 29374, 29871, 396, 282, 23929, 29901, 694, 4612, 313, 2272, 29941, 29947, 28135, 13, 9651, 6389, 29889, 21843, 29898, 3177, 29889, 5085, 29889, 1066, 6194, 5085, 29897, 13, 4706, 6389, 29889, 21843, 29898, 3177, 29889, 5085, 29889, 5085, 29897, 13, 4706, 565, 2943, 29889, 5085, 29889, 1707, 1191, 338, 451, 6213, 29901, 13, 9651, 6389, 29889, 4397, 29898, 3177, 29889, 5085, 29889, 1707, 1191, 29897, 13, 4706, 6389, 29889, 21843, 29898, 3177, 29889, 5085, 29889, 11022, 6194, 5085, 29897, 13, 4706, 565, 2943, 29889, 5085, 29889, 11022, 1191, 338, 451, 6213, 29901, 13, 9651, 6389, 29889, 4397, 29898, 3177, 29889, 5085, 29889, 11022, 1191, 29897, 13, 13, 4706, 363, 1852, 297, 6389, 29901, 13, 9651, 565, 1852, 29889, 18317, 338, 451, 6213, 29901, 13, 18884, 1583, 29889, 2696, 7224, 29889, 1202, 7373, 579, 29918, 517, 29918, 10289, 29898, 1191, 29889, 18317, 876, 13, 13, 4706, 565, 2943, 29889, 18280, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 2696, 7224, 29889, 1202, 7373, 579, 29918, 517, 29918, 10289, 29898, 3177, 29889, 18280, 876, 13, 13, 4706, 1583, 29889, 19206, 29918, 1730, 277, 29898, 3177, 29897, 13, 13, 13, 9420, 29918, 29947, 353, 2094, 397, 886, 29889, 4478, 29918, 2220, 877, 9420, 29947, 1495, 13, 13, 13, 1753, 903, 1482, 29918, 29883, 3689, 29918, 21509, 29898, 4352, 29901, 14514, 29961, 710, 2314, 1599, 851, 29901, 13, 1678, 269, 353, 1993, 29961, 29900, 29962, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 1550, 269, 29961, 29875, 1822, 790, 3535, 7295, 13, 4706, 474, 4619, 29871, 29896, 13, 1678, 3240, 353, 285, 29915, 29912, 29879, 7503, 29875, 12258, 29937, 8853, 20605, 334, 313, 2435, 29898, 29879, 29897, 448, 29871, 29906, 448, 474, 2915, 29915, 13, 1678, 4974, 7431, 29898, 2267, 29897, 1275, 7431, 29898, 29879, 511, 313, 2435, 29898, 2267, 511, 7431, 29898, 29879, 876, 13, 1678, 736, 3240, 13, 13, 13, 1753, 21822, 29898, 29890, 29901, 6262, 29892, 4436, 29901, 851, 353, 525, 710, 919, 1495, 1599, 12603, 552, 29961, 710, 29892, 938, 5387, 13, 1678, 318, 29892, 3309, 353, 23616, 29918, 29947, 29889, 13808, 29898, 29890, 29892, 4436, 29897, 13, 13, 1678, 396, 5191, 8025, 15327, 577, 727, 3508, 29915, 29873, 263, 20437, 1108, 13, 1678, 3454, 353, 318, 29889, 5451, 9012, 29898, 5574, 29897, 13, 1678, 363, 22645, 297, 313, 29900, 29892, 29871, 29896, 1125, 13, 4706, 565, 22645, 6736, 7431, 29898, 9012, 1125, 13, 9651, 2867, 13, 4706, 3454, 29961, 13140, 29962, 353, 5993, 675, 29889, 21509, 29918, 276, 29889, 1491, 7373, 1482, 29918, 29883, 3689, 29918, 21509, 29892, 3454, 29961, 13140, 2314, 13, 1678, 318, 353, 525, 4286, 7122, 29898, 9012, 29897, 13, 13, 1678, 27682, 353, 5741, 2105, 580, 13, 1678, 27682, 29889, 1730, 277, 7373, 579, 29918, 5510, 29898, 29884, 876, 13, 13, 1678, 18897, 353, 5993, 675, 29918, 2273, 29889, 4351, 29918, 517, 29918, 517, 12360, 29898, 29884, 29897, 13, 1678, 363, 474, 29892, 5993, 297, 5993, 675, 29918, 2273, 29889, 276, 874, 287, 29918, 15172, 29898, 517, 12360, 1125, 13, 4706, 565, 5993, 29889, 10289, 297, 27682, 29889, 2696, 7224, 29901, 13, 9651, 396, 1106, 6375, 363, 263, 22507, 1673, 421, 29892, 1673, 421, 29922, 1673, 525, 16029, 13, 9651, 10809, 353, 29871, 29900, 13, 9651, 432, 353, 474, 718, 29871, 29896, 13, 9651, 1550, 10809, 470, 18897, 29961, 29926, 1822, 4351, 451, 297, 426, 2396, 742, 13420, 742, 525, 29922, 742, 25710, 742, 11297, 29876, 29915, 6177, 13, 18884, 565, 18897, 29961, 29926, 1822, 4351, 297, 11117, 29317, 22372, 742, 525, 1839, 6177, 13, 462, 1678, 10809, 4619, 29871, 29896, 13, 18884, 25342, 18897, 29961, 29926, 1822, 4351, 297, 426, 1495, 742, 525, 29913, 742, 525, 29962, 29915, 6177, 13, 462, 1678, 10809, 22361, 29871, 29896, 13, 18884, 432, 4619, 29871, 29896, 13, 9651, 432, 22361, 29871, 29896, 13, 13, 9651, 396, 1106, 1250, 1328, 304, 5217, 24358, 847, 6589, 847, 2992, 29889, 13, 9651, 1550, 18897, 29961, 29926, 1822, 978, 297, 5993, 675, 29918, 2273, 29889, 29940, 1164, 29918, 3217, 29928, 4214, 29918, 4986, 29968, 1430, 29903, 29901, 13, 18884, 432, 22361, 29871, 29896, 13, 13, 9651, 23153, 353, 2062, 29898, 6979, 675, 29918, 2273, 29889, 517, 12360, 29918, 517, 29918, 4351, 29898, 517, 12360, 29961, 29875, 29901, 29926, 718, 29871, 29896, 12622, 13, 9651, 18897, 29961, 29875, 29901, 29926, 718, 29871, 29896, 29962, 353, 518, 6979, 675, 29918, 2273, 29889, 6066, 877, 20785, 742, 23153, 4638, 13, 13, 1678, 736, 5993, 675, 29918, 2273, 29889, 517, 12360, 29918, 517, 29918, 4351, 29898, 517, 12360, 511, 3309, 13, 13, 13, 1990, 512, 17053, 284, 6185, 6119, 29898, 401, 2395, 29889, 7701, 287, 797, 17053, 284, 6185, 6119, 1125, 13, 1678, 822, 903, 9040, 29918, 13808, 29898, 1311, 29892, 1881, 29892, 4436, 29892, 2186, 1125, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 4706, 565, 2186, 29901, 13, 9651, 736, 21822, 29898, 2080, 29892, 4436, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 15516, 29871, 29900, 13, 13, 13, 1990, 13763, 6982, 29898, 9420, 29918, 29947, 29889, 5461, 16950, 1125, 13, 1678, 9995, 13808, 338, 316, 14373, 304, 2304, 2253, 1059, 7191, 15945, 29908, 13, 1678, 903, 5461, 353, 6213, 13, 1678, 903, 7099, 6797, 353, 7700, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4840, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 7099, 6797, 29901, 13, 9651, 1426, 29892, 903, 353, 21822, 29898, 1311, 3032, 5461, 29889, 949, 3101, 13, 9651, 1583, 3032, 5461, 353, 12013, 29889, 11207, 5971, 29898, 726, 29889, 12508, 877, 10496, 29899, 29947, 8785, 13, 9651, 1583, 3032, 7099, 6797, 353, 5852, 13, 4706, 736, 1583, 3032, 5461, 13, 13, 1678, 732, 5461, 29889, 842, 357, 13, 1678, 822, 4840, 29898, 1311, 29892, 4840, 1125, 13, 4706, 1583, 3032, 5461, 353, 4840, 13, 4706, 1583, 3032, 7099, 6797, 353, 7700, 13, 13, 13, 29937, 775, 29883, 7882, 13, 13, 401, 29883, 29918, 1958, 353, 426, 13, 1678, 1024, 29901, 775, 2395, 29889, 3399, 29883, 3401, 29898, 13, 4706, 1024, 29922, 978, 29892, 13, 4706, 19750, 29922, 9420, 29918, 29947, 29889, 12508, 29892, 13, 4706, 21822, 29922, 13808, 29892, 13, 4706, 11924, 284, 3977, 6119, 29922, 9420, 29918, 29947, 29889, 25629, 284, 3977, 6119, 29892, 13, 4706, 11924, 284, 7099, 6119, 29922, 797, 17053, 284, 6185, 6119, 29892, 13, 4706, 4840, 16950, 29922, 3835, 6982, 29892, 13, 4706, 4840, 13236, 29922, 9420, 29918, 29947, 29889, 5461, 13236, 29892, 13, 1678, 1723, 13, 1678, 363, 1024, 297, 6702, 29888, 9130, 29899, 6735, 800, 742, 525, 29888, 9130, 29918, 6735, 800, 1495, 13, 29913, 13, 13, 13, 1753, 6036, 580, 1599, 6213, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 1678, 775, 2395, 29889, 9573, 29898, 401, 29883, 29918, 1958, 29889, 657, 29897, 13, 13, 13, 1753, 1667, 29898, 19218, 29901, 28379, 29961, 20529, 29961, 710, 5262, 353, 6213, 29897, 1599, 938, 29901, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 4040, 9466, 27615, 2752, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 9507, 1495, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 29898, 19218, 29897, 13, 13, 1678, 411, 1722, 29898, 5085, 29889, 9507, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 4706, 1426, 29892, 903, 353, 21822, 29898, 29888, 29889, 949, 3101, 13, 1678, 679, 5552, 29898, 9675, 29889, 25393, 29892, 525, 9040, 742, 10876, 29889, 25393, 467, 3539, 29898, 726, 29889, 12508, 877, 10496, 29899, 29947, 8785, 13, 1678, 736, 29871, 29900, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 12020, 2184, 24365, 29898, 3396, 3101, 13, 2 ]
Python Files/preprocessing.py
errohankumar/thesis
0
45163
import os import pandas as pd from datetime import datetime from preprocessing_service import PreProcessingService class PreProcessing(PreProcessingService): """ A class used to automatically scrape CSV files from ENTSOE Transparecny Platform ... Attributes ---------- _preProcessing : str A PreProcessingService instance for handling CSV files _preProcessing2: str A PreProcessingService instance for handling CSV files Methods ------- find_time_column(df) A function to find the timestamp column for a given CSV files start_preprocess() Initializes pre-processing """ def __init__(self): super().__init__() self._preProcessing = PreProcessingService() self._preProcessing2 = PreProcessingService() @staticmethod def find_time_column(df): """Finds the timestamp column for a given dataset. Parameters ---------- df : DataFrame The dataset containing historical-observations Raises ------ ValueError If no timestamp column is found. """ for column in df.get_columns(): try: found = datetime.strptime(df.df[column][0][:10], "%d.%m.%Y") return column except: continue raise ValueError("Timestamp column not found!") @staticmethod def last_date_for_column(df, column_name): """ Return last date of a specific column """ return df[column_name].dropna().index[-1:][0] def start_preprocess(self): """Initiates a sequence of pre-processing tasks """ # Get all the CSV files in the directory file_directory = os.getcwd() + "/download/" file_names = os.listdir(file_directory) actual_columns = ['Solar - Actual Aggregated [MW]', 'Wind Offshore - Actual Aggregated [MW]', 'Wind Onshore - Actual Aggregated [MW]', 'Actual Total Load [MW] - BZN|DE-LU'] forecast_columns = ['Generation - Solar [MW] Day Ahead/ BZN|DE-LU', 'Generation - Wind Offshore [MW] Day Ahead/ BZN|DE-LU', 'Generation - Wind Onshore [MW] Day Ahead/ BZN|DE-LU', 'Day-ahead Total Load Forecast [MW] - BZN|DE-LU'] filter_columns = ['Day-ahead Price [EUR/MWh]', 'Generation - Solar [MW] Day Ahead/ BZN|DE-LU', 'Generation - Wind Offshore [MW] Day Ahead/ BZN|DE-LU', 'Generation - Wind Onshore [MW] Day Ahead/ BZN|DE-LU', 'Solar - Actual Aggregated [MW]', 'Wind Offshore - Actual Aggregated [MW]', 'Wind Onshore - Actual Aggregated [MW]', 'Day-ahead Total Load Forecast [MW] - BZN|DE-LU', 'Actual Total Load [MW] - BZN|DE-LU'] for i in range(0, len(file_names)): # First CSV is used as the main file to combine the rest of the files if i == 0: self._preProcessing.open_csv(file_directory + file_names[i]) # Find time column and set it as index time_column = self.find_time_column(self._preProcessing) self._preProcessing.reformat_time(colname=time_column) self._preProcessing.rename_colname(time_column, "cet_timestamp") self._preProcessing.set_index(colname="cet_timestamp") # Convert arguments (non numeric values) to invalid NAN for j in self._preProcessing.get_columns(): self._preProcessing.df[j] = pd.to_numeric(self._preProcessing.df[j], errors='coerce') # Drop first duplicate self._preProcessing.drop_duplicates(keep="first", inplace=True) # Resample the quarterly values in the 'Total Load' and 'Actual Generation' to hourly if ("Actual" or "Load" or "Forecasts") in file_names[i]: self._preProcessing = self._preProcessing.resample_rows() else: self._preProcessing2.open_csv(file_directory + file_names[i]) # Find time column and set it as index time_column = self.find_time_column(self._preProcessing2) self._preProcessing2.reformat_time(colname=time_column) self._preProcessing2.rename_colname(time_column, "cet_timestamp") self._preProcessing2.set_index(colname="cet_timestamp") # Drop all the columns that are not numeric for column_index in self._preProcessing2.get_columns(): try: float(self._preProcessing2.df[column_index][0]) except: self._preProcessing2.df.drop(columns=column_index, inplace=True) continue # Convert the non-numeric items to Nans # If ‘coerce’, then invalid parsing will be set as NaN. for column_name in self._preProcessing2.get_columns(): self._preProcessing2.df[column_name] = pd.to_numeric(self._preProcessing2.df[column_name], errors='coerce') # To resample quarter hour to hour if present self._preProcessing2 = self._preProcessing2.resample_rows() # concatenate all the columns in one single dataset print(self._preProcessing2.df) self._preProcessing.df = pd.concat([self._preProcessing.df, self._preProcessing2.df], axis=1, sort=False) # Filter and drop all rows with four NAN values (to remove NAN values beyond latest time of available # day-ahead price) self._preProcessing.df = self._preProcessing.df[filter_columns].dropna(thresh=4, axis=0) print(self._preProcessing.df.columns) # Get three month of past observations if len(self._preProcessing.df) >= 2160: self._preProcessing.df = self._preProcessing.df[-2160:] # the missing values in the Actuals can be replaced by the generation forecast # the last date of the actuals column just before the missing values can be replaced with the values from the # last date of the forecast columns for column_name, forecast_column_name in zip(actual_columns, forecast_columns): last_date = self.last_date_for_column(self._preProcessing.df, column_name) self._preProcessing.df[column_name][last_date:] = self._preProcessing.df[forecast_column_name][ last_date:].values # Generate and add 'WeekDays' feature week_day_col = self._preProcessing.df.index.weekday self._preProcessing.df["WeekDays"] = week_day_col # Imputation through a interpolation method called 'cubic' to fulfill forecasting method criteria self._preProcessing = self._preProcessing.interpolate_ts() # Remove forecast columns, since they are not needed anymore self._preProcessing.remove_columns(cols = ['Generation - Solar [MW] Day Ahead/ BZN|DE-LU', 'Generation - Wind Offshore [MW] Day Ahead/ BZN|DE-LU', 'Generation - Wind Onshore [MW] Day Ahead/ BZN|DE-LU', 'Day-ahead Total Load Forecast [MW] - BZN|DE-LU']) self._preProcessing.df.to_csv(os.getcwd() + "/download/final_dataset_kafka.csv")
[ 1, 1053, 2897, 13, 5215, 11701, 408, 10518, 13, 3166, 12865, 1053, 12865, 13, 3166, 758, 19170, 29918, 5509, 1053, 4721, 7032, 292, 3170, 13, 13, 13, 1990, 4721, 7032, 292, 29898, 6572, 7032, 292, 3170, 1125, 13, 1678, 9995, 13, 1678, 319, 770, 1304, 304, 6336, 24559, 412, 16874, 2066, 515, 12524, 29911, 6156, 29923, 4103, 29886, 598, 29883, 1460, 28096, 13, 1678, 2023, 13, 1678, 6212, 5026, 13, 1678, 448, 1378, 29899, 13, 1678, 903, 1457, 7032, 292, 584, 851, 13, 4706, 319, 4721, 7032, 292, 3170, 2777, 363, 11415, 16874, 2066, 13, 1678, 903, 1457, 7032, 292, 29906, 29901, 851, 13, 4706, 319, 4721, 7032, 292, 3170, 2777, 363, 11415, 16874, 2066, 13, 1678, 8108, 29879, 13, 1678, 448, 22158, 13, 1678, 1284, 29918, 2230, 29918, 4914, 29898, 2176, 29897, 13, 4706, 319, 740, 304, 1284, 278, 14334, 1897, 363, 263, 2183, 16874, 2066, 13, 1678, 1369, 29918, 1457, 5014, 580, 13, 4706, 17250, 7093, 758, 29899, 19170, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 3032, 1457, 7032, 292, 353, 4721, 7032, 292, 3170, 580, 13, 4706, 1583, 3032, 1457, 7032, 292, 29906, 353, 4721, 7032, 292, 3170, 580, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 1284, 29918, 2230, 29918, 4914, 29898, 2176, 1125, 13, 4706, 9995, 12542, 29879, 278, 14334, 1897, 363, 263, 2183, 8783, 29889, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 4489, 584, 3630, 4308, 13, 9651, 450, 8783, 6943, 15839, 29899, 26739, 800, 13, 4706, 390, 1759, 267, 13, 4706, 448, 23648, 13, 4706, 7865, 2392, 13, 9651, 960, 694, 14334, 1897, 338, 1476, 29889, 13, 4706, 9995, 13, 13, 4706, 363, 1897, 297, 4489, 29889, 657, 29918, 13099, 7295, 13, 9651, 1018, 29901, 13, 18884, 1476, 353, 12865, 29889, 710, 415, 603, 29898, 2176, 29889, 2176, 29961, 4914, 3816, 29900, 3816, 29901, 29896, 29900, 1402, 11860, 29881, 29889, 29995, 29885, 29889, 29995, 29979, 1159, 13, 18884, 736, 1897, 13, 9651, 5174, 29901, 13, 18884, 6773, 13, 13, 4706, 12020, 7865, 2392, 703, 27939, 1897, 451, 1476, 29991, 1159, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 1833, 29918, 1256, 29918, 1454, 29918, 4914, 29898, 2176, 29892, 1897, 29918, 978, 1125, 13, 4706, 9995, 7106, 1833, 2635, 310, 263, 2702, 1897, 13, 4706, 9995, 13, 13, 4706, 736, 4489, 29961, 4914, 29918, 978, 1822, 8865, 1056, 2141, 2248, 14352, 29896, 29901, 3816, 29900, 29962, 13, 13, 1678, 822, 1369, 29918, 1457, 5014, 29898, 1311, 1125, 13, 4706, 9995, 797, 4812, 1078, 263, 5665, 310, 758, 29899, 19170, 9595, 13, 4706, 9995, 13, 13, 4706, 396, 3617, 599, 278, 16874, 2066, 297, 278, 3884, 13, 4706, 934, 29918, 12322, 353, 2897, 29889, 657, 29883, 9970, 580, 718, 5591, 10382, 12975, 13, 4706, 934, 29918, 7039, 353, 2897, 29889, 1761, 3972, 29898, 1445, 29918, 12322, 29897, 13, 13, 4706, 3935, 29918, 13099, 259, 353, 6024, 29903, 10170, 29871, 448, 3185, 950, 319, 26127, 630, 518, 25365, 29962, 742, 13, 462, 9651, 525, 29956, 513, 5947, 845, 487, 29871, 448, 3185, 950, 319, 26127, 630, 518, 25365, 29962, 742, 13, 462, 9651, 525, 29956, 513, 1551, 845, 487, 29871, 448, 3185, 950, 319, 26127, 630, 518, 25365, 29962, 742, 13, 462, 9651, 525, 2865, 950, 14990, 16012, 518, 25365, 29962, 448, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 2033, 13, 13, 4706, 29821, 579, 29918, 13099, 353, 6024, 5631, 362, 448, 4956, 279, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 9651, 525, 5631, 362, 448, 17311, 5947, 845, 487, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 9651, 525, 5631, 362, 448, 17311, 1551, 845, 487, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 9651, 525, 12742, 29899, 29874, 2813, 14990, 16012, 28297, 4384, 518, 25365, 29962, 448, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 2033, 13, 13, 4706, 4175, 29918, 13099, 353, 29871, 6024, 12742, 29899, 29874, 2813, 20743, 518, 29923, 4574, 29914, 29924, 8809, 29962, 742, 13, 462, 965, 525, 5631, 362, 448, 4956, 279, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 965, 525, 5631, 362, 448, 17311, 5947, 845, 487, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 9651, 525, 5631, 362, 448, 17311, 1551, 845, 487, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 9651, 525, 29903, 10170, 29871, 448, 3185, 950, 319, 26127, 630, 518, 25365, 29962, 742, 13, 462, 9651, 525, 29956, 513, 5947, 845, 487, 29871, 448, 3185, 950, 319, 26127, 630, 518, 25365, 29962, 742, 13, 462, 3986, 525, 29956, 513, 1551, 845, 487, 29871, 448, 3185, 950, 319, 26127, 630, 518, 25365, 29962, 742, 13, 462, 3986, 525, 12742, 29899, 29874, 2813, 14990, 16012, 28297, 4384, 518, 25365, 29962, 448, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 3986, 525, 2865, 950, 14990, 16012, 518, 25365, 29962, 448, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 2033, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 1445, 29918, 7039, 22164, 13, 13, 9651, 396, 3824, 16874, 338, 1304, 408, 278, 1667, 934, 304, 14405, 278, 1791, 310, 278, 2066, 13, 9651, 565, 474, 1275, 29871, 29900, 29901, 13, 18884, 1583, 3032, 1457, 7032, 292, 29889, 3150, 29918, 7638, 29898, 1445, 29918, 12322, 718, 934, 29918, 7039, 29961, 29875, 2314, 13, 13, 18884, 396, 10987, 931, 1897, 322, 731, 372, 408, 2380, 13, 18884, 931, 29918, 4914, 353, 1583, 29889, 2886, 29918, 2230, 29918, 4914, 29898, 1311, 3032, 1457, 7032, 292, 29897, 13, 18884, 1583, 3032, 1457, 7032, 292, 29889, 276, 4830, 29918, 2230, 29898, 1054, 978, 29922, 2230, 29918, 4914, 29897, 13, 18884, 1583, 3032, 1457, 7032, 292, 29889, 1267, 420, 29918, 1054, 978, 29898, 2230, 29918, 4914, 29892, 376, 29883, 300, 29918, 16394, 1159, 13, 18884, 1583, 3032, 1457, 7032, 292, 29889, 842, 29918, 2248, 29898, 1054, 978, 543, 29883, 300, 29918, 16394, 1159, 13, 13, 18884, 396, 14806, 6273, 313, 5464, 16985, 1819, 29897, 304, 8340, 405, 2190, 13, 18884, 363, 432, 297, 1583, 3032, 1457, 7032, 292, 29889, 657, 29918, 13099, 7295, 13, 462, 1678, 1583, 3032, 1457, 7032, 292, 29889, 2176, 29961, 29926, 29962, 353, 10518, 29889, 517, 29918, 21574, 29898, 1311, 3032, 1457, 7032, 292, 29889, 2176, 29961, 29926, 1402, 4436, 2433, 1111, 261, 346, 1495, 13, 13, 18884, 396, 20724, 937, 7929, 13, 18884, 1583, 3032, 1457, 7032, 292, 29889, 8865, 29918, 20908, 15815, 29898, 17462, 543, 4102, 613, 297, 6689, 29922, 5574, 29897, 13, 13, 18884, 396, 2538, 981, 278, 12616, 368, 1819, 297, 278, 525, 11536, 16012, 29915, 322, 525, 2865, 950, 28203, 29915, 304, 7234, 368, 13, 18884, 565, 4852, 2865, 950, 29908, 470, 376, 5896, 29908, 470, 376, 29943, 487, 4384, 29879, 1159, 297, 934, 29918, 7039, 29961, 29875, 5387, 13, 462, 1678, 1583, 3032, 1457, 7032, 292, 353, 1583, 3032, 1457, 7032, 292, 29889, 690, 981, 29918, 5727, 580, 13, 13, 9651, 1683, 29901, 13, 18884, 1583, 3032, 1457, 7032, 292, 29906, 29889, 3150, 29918, 7638, 29898, 1445, 29918, 12322, 718, 934, 29918, 7039, 29961, 29875, 2314, 13, 13, 18884, 396, 10987, 931, 1897, 322, 731, 372, 408, 2380, 13, 18884, 931, 29918, 4914, 353, 1583, 29889, 2886, 29918, 2230, 29918, 4914, 29898, 1311, 3032, 1457, 7032, 292, 29906, 29897, 13, 18884, 1583, 3032, 1457, 7032, 292, 29906, 29889, 276, 4830, 29918, 2230, 29898, 1054, 978, 29922, 2230, 29918, 4914, 29897, 13, 18884, 1583, 3032, 1457, 7032, 292, 29906, 29889, 1267, 420, 29918, 1054, 978, 29898, 2230, 29918, 4914, 29892, 376, 29883, 300, 29918, 16394, 1159, 13, 18884, 1583, 3032, 1457, 7032, 292, 29906, 29889, 842, 29918, 2248, 29898, 1054, 978, 543, 29883, 300, 29918, 16394, 1159, 13, 13, 18884, 396, 20724, 599, 278, 4341, 393, 526, 451, 16985, 13, 18884, 363, 1897, 29918, 2248, 297, 1583, 3032, 1457, 7032, 292, 29906, 29889, 657, 29918, 13099, 7295, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 5785, 29898, 1311, 3032, 1457, 7032, 292, 29906, 29889, 2176, 29961, 4914, 29918, 2248, 3816, 29900, 2314, 13, 462, 1678, 5174, 29901, 13, 462, 4706, 1583, 3032, 1457, 7032, 292, 29906, 29889, 2176, 29889, 8865, 29898, 13099, 29922, 4914, 29918, 2248, 29892, 297, 6689, 29922, 5574, 29897, 13, 462, 4706, 6773, 13, 13, 18884, 396, 14806, 278, 1661, 29899, 21574, 4452, 304, 405, 550, 13, 18884, 396, 960, 5129, 1111, 261, 346, 30010, 29892, 769, 8340, 13755, 674, 367, 731, 408, 18780, 29889, 13, 18884, 363, 1897, 29918, 978, 297, 1583, 3032, 1457, 7032, 292, 29906, 29889, 657, 29918, 13099, 7295, 13, 462, 1678, 1583, 3032, 1457, 7032, 292, 29906, 29889, 2176, 29961, 4914, 29918, 978, 29962, 353, 10518, 29889, 517, 29918, 21574, 29898, 1311, 3032, 1457, 7032, 292, 29906, 29889, 2176, 29961, 4914, 29918, 978, 1402, 13, 462, 462, 462, 462, 308, 4436, 2433, 1111, 261, 346, 1495, 13, 13, 18884, 396, 1763, 620, 981, 12616, 7234, 304, 7234, 565, 2198, 13, 18884, 1583, 3032, 1457, 7032, 292, 29906, 353, 1583, 3032, 1457, 7032, 292, 29906, 29889, 690, 981, 29918, 5727, 580, 13, 13, 18884, 396, 16125, 403, 599, 278, 4341, 297, 697, 2323, 8783, 13, 18884, 1596, 29898, 1311, 3032, 1457, 7032, 292, 29906, 29889, 2176, 29897, 13, 18884, 1583, 3032, 1457, 7032, 292, 29889, 2176, 353, 10518, 29889, 17685, 4197, 1311, 3032, 1457, 7032, 292, 29889, 2176, 29892, 1583, 3032, 1457, 7032, 292, 29906, 29889, 2176, 1402, 9685, 29922, 29896, 29892, 13, 462, 462, 462, 259, 2656, 29922, 8824, 29897, 13, 13, 4706, 396, 19916, 322, 5768, 599, 4206, 411, 3023, 405, 2190, 1819, 313, 517, 3349, 405, 2190, 1819, 8724, 9281, 931, 310, 3625, 13, 4706, 396, 2462, 29899, 29874, 2813, 8666, 29897, 13, 13, 4706, 1583, 3032, 1457, 7032, 292, 29889, 2176, 353, 1583, 3032, 1457, 7032, 292, 29889, 2176, 29961, 4572, 29918, 13099, 1822, 8865, 1056, 29898, 386, 3781, 29922, 29946, 29892, 9685, 29922, 29900, 29897, 13, 4706, 1596, 29898, 1311, 3032, 1457, 7032, 292, 29889, 2176, 29889, 13099, 29897, 13, 4706, 396, 3617, 2211, 4098, 310, 4940, 13917, 13, 4706, 565, 7431, 29898, 1311, 3032, 1457, 7032, 292, 29889, 2176, 29897, 6736, 29871, 29906, 29896, 29953, 29900, 29901, 13, 9651, 1583, 3032, 1457, 7032, 292, 29889, 2176, 353, 1583, 3032, 1457, 7032, 292, 29889, 2176, 14352, 29906, 29896, 29953, 29900, 17531, 13, 13, 4706, 396, 278, 4567, 1819, 297, 278, 3185, 27101, 508, 367, 8611, 491, 278, 12623, 29821, 579, 13, 4706, 396, 278, 1833, 2635, 310, 278, 3935, 29879, 1897, 925, 1434, 278, 4567, 1819, 508, 367, 8611, 411, 278, 1819, 515, 278, 13, 4706, 396, 1833, 2635, 310, 278, 29821, 579, 4341, 13, 4706, 363, 1897, 29918, 978, 29892, 29821, 579, 29918, 4914, 29918, 978, 297, 14319, 29898, 19304, 29918, 13099, 29892, 29821, 579, 29918, 13099, 1125, 13, 9651, 1833, 29918, 1256, 353, 1583, 29889, 4230, 29918, 1256, 29918, 1454, 29918, 4914, 29898, 1311, 3032, 1457, 7032, 292, 29889, 2176, 29892, 1897, 29918, 978, 29897, 13, 9651, 1583, 3032, 1457, 7032, 292, 29889, 2176, 29961, 4914, 29918, 978, 3816, 4230, 29918, 1256, 17531, 353, 1583, 3032, 1457, 7032, 292, 29889, 2176, 29961, 1079, 4384, 29918, 4914, 29918, 978, 3816, 13, 462, 462, 462, 795, 1833, 29918, 1256, 29901, 1822, 5975, 13, 13, 4706, 396, 3251, 403, 322, 788, 525, 22606, 25991, 29915, 4682, 13, 4706, 4723, 29918, 3250, 29918, 1054, 353, 1583, 3032, 1457, 7032, 292, 29889, 2176, 29889, 2248, 29889, 18448, 3250, 13, 4706, 1583, 3032, 1457, 7032, 292, 29889, 2176, 3366, 22606, 25991, 3108, 353, 4723, 29918, 3250, 29918, 1054, 13, 13, 4706, 396, 1954, 14584, 1549, 263, 29694, 1158, 2000, 525, 29883, 431, 293, 29915, 304, 6095, 5589, 29821, 579, 292, 1158, 16614, 13, 4706, 1583, 3032, 1457, 7032, 292, 353, 1583, 3032, 1457, 7032, 292, 29889, 1639, 3733, 403, 29918, 1372, 580, 13, 13, 4706, 396, 15154, 29821, 579, 4341, 29892, 1951, 896, 526, 451, 4312, 15128, 13, 4706, 1583, 3032, 1457, 7032, 292, 29889, 5992, 29918, 13099, 29898, 22724, 353, 6024, 5631, 362, 448, 4956, 279, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 462, 462, 1678, 525, 5631, 362, 448, 17311, 5947, 845, 487, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 462, 462, 1678, 525, 5631, 362, 448, 17311, 1551, 845, 487, 29871, 518, 25365, 29962, 8373, 319, 2813, 29914, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 742, 13, 462, 462, 462, 1678, 525, 12742, 29899, 29874, 2813, 14990, 16012, 28297, 4384, 518, 25365, 29962, 448, 350, 29999, 29940, 29989, 2287, 29899, 29931, 29965, 11287, 13, 13, 4706, 1583, 3032, 1457, 7032, 292, 29889, 2176, 29889, 517, 29918, 7638, 29898, 359, 29889, 657, 29883, 9970, 580, 718, 5591, 10382, 29914, 8394, 29918, 24713, 29918, 28510, 29889, 7638, 1159, 13, 2 ]
ai2business/kpi_collector/test/test_finance_collector.py
Anselmoo/ai2business
0
147504
"""Test-Enviroment for finance_collector.py""" import pandas as pd from ai2business.kpi_collector import finance_collector as fnc ticker = fnc.FinanceCollector() builder = fnc.DesignerFinanceCollector(["SPY", "AAPL", "MSFT"]) ticker.builder = builder def test_find_chart_history(): ticker.find_chart_histogram() assert type(builder.return_dataframe) == type(pd.DataFrame()) def test_find_isin_code(): ticker.find_isin_code() assert type(builder.return_dict) == type(dict()) def test_find_major_holders_dict(): ticker.find_major_holders() assert type(builder.return_dict) == type(dict()) def test_find_institutional_holders(): ticker.find_institutional_holders() assert type(builder.return_dict) == type(dict()) def test_find_mutualfund_holders(): ticker.find_mutualfund_holders() assert type(builder.return_dict) == type(dict()) def test_find_dividends(): ticker.find_dividends() assert type(builder.return_dict) == type(dict()) def test_find_splits(): ticker.find_splits() assert type(builder.return_dict) == type(dict()) def test_find_actions(): ticker.find_actions() assert type(builder.return_dict) == type(dict()) def test_find_info(): ticker.find_info() assert type(builder.return_dict) == type(dict()) def test_find_calendar(): ticker.find_calendar() assert type(builder.return_dict) == type(dict()) def test_find_recommendation(): ticker.find_recommendations() assert type(builder.return_dict) == type(dict()) def test_find_earnings(): ticker.find_earnings() assert type(builder.return_dict) == type(dict()) def test_find_quarterly_earnings(): ticker.find_quarterly_earnings() assert type(builder.return_dict) == type(dict()) def test_find_financials(): ticker.find_financials() assert type(builder.return_dict) == type(dict()) def test_find_quarterly_financials(): ticker.find_quarterly_financials() assert type(builder.return_dict) == type(dict()) def test_find_balancesheet(): ticker.find_balancesheet() assert type(builder.return_dict) == type(dict()) def test_find_quarterly_balancesheet(): ticker.find_quarterly_balancesheet() assert type(builder.return_dict) == type(dict()) def test_find_cashflow(): ticker.find_cashflow() assert type(builder.return_dict) == type(dict()) def test_find_quarterly_cashflow(): ticker.find_quarterly_cashflow() assert type(builder.return_dict) == type(dict()) def test_find_sustainability(): ticker.find_sustainability() assert type(builder.return_dict) == type(dict()) def test_find_options(): ticker.find_options() assert type(builder.return_dict) == type(dict())
[ 1, 9995, 3057, 29899, 2369, 2405, 2932, 363, 1436, 749, 29918, 15914, 272, 29889, 2272, 15945, 29908, 13, 5215, 11701, 408, 10518, 13, 13, 3166, 7468, 29906, 8262, 3335, 29889, 29895, 1631, 29918, 15914, 272, 1053, 1436, 749, 29918, 15914, 272, 408, 7876, 29883, 13, 13, 29873, 6541, 353, 7876, 29883, 29889, 12881, 749, 28916, 272, 580, 13, 16409, 353, 7876, 29883, 29889, 4002, 21216, 12881, 749, 28916, 272, 29898, 3366, 5550, 29979, 613, 376, 29909, 3301, 29931, 613, 376, 4345, 7818, 20068, 13, 29873, 6541, 29889, 16409, 353, 12856, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 15425, 29918, 18434, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 15425, 29918, 29882, 391, 13342, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 1272, 2557, 29897, 1275, 1134, 29898, 15926, 29889, 17271, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 275, 262, 29918, 401, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 275, 262, 29918, 401, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 21355, 29918, 8948, 414, 29918, 8977, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 21355, 29918, 8948, 414, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 2611, 5008, 284, 29918, 8948, 414, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 2611, 5008, 284, 29918, 8948, 414, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 6149, 950, 27159, 29918, 8948, 414, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 6149, 950, 27159, 29918, 8948, 414, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 29881, 3640, 1975, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 29881, 3640, 1975, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 23579, 1169, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 23579, 1169, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 7387, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 7387, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 3888, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 3888, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 23392, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 23392, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 276, 2055, 355, 362, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 276, 2055, 355, 800, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 799, 11753, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 799, 11753, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 339, 4254, 368, 29918, 799, 11753, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 339, 4254, 368, 29918, 799, 11753, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 4951, 8463, 1338, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 4951, 8463, 1338, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 339, 4254, 368, 29918, 4951, 8463, 1338, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 339, 4254, 368, 29918, 4951, 8463, 1338, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 5521, 2925, 4155, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 5521, 2925, 4155, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 339, 4254, 368, 29918, 5521, 2925, 4155, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 339, 4254, 368, 29918, 5521, 2925, 4155, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 29883, 1161, 1731, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 29883, 1161, 1731, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 339, 4254, 368, 29918, 29883, 1161, 1731, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 339, 4254, 368, 29918, 29883, 1161, 1731, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 29879, 504, 475, 3097, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 29879, 504, 475, 3097, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 13, 13, 1753, 1243, 29918, 2886, 29918, 6768, 7295, 13, 1678, 260, 6541, 29889, 2886, 29918, 6768, 580, 13, 1678, 4974, 1134, 29898, 16409, 29889, 2457, 29918, 8977, 29897, 1275, 1134, 29898, 8977, 3101, 13, 2 ]
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
0
4945
""" transforms.py is for shape-preserving functions. """ import numpy as np def shift(values: np.ndarray, periods: int, axis: int, fill_value) -> np.ndarray: new_values = values if periods == 0 or values.size == 0: return new_values.copy() # make sure array sent to np.roll is c_contiguous f_ordered = values.flags.f_contiguous if f_ordered: new_values = new_values.T axis = new_values.ndim - axis - 1 if new_values.size: new_values = np.roll( new_values, np.intp(periods), axis=axis, ) axis_indexer = [slice(None)] * values.ndim if periods > 0: axis_indexer[axis] = slice(None, periods) else: axis_indexer[axis] = slice(periods, None) new_values[tuple(axis_indexer)] = fill_value # restore original order if f_ordered: new_values = new_values.T return new_values
[ 1, 9995, 30004, 13, 9067, 29879, 29889, 2272, 338, 363, 8267, 29899, 4569, 29530, 3168, 22993, 13, 15945, 19451, 13, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 30004, 13, 30004, 13, 1753, 9500, 29898, 5975, 29901, 7442, 29889, 299, 2378, 29892, 23704, 29901, 938, 29892, 9685, 29901, 938, 29892, 5445, 29918, 1767, 29897, 1599, 7442, 29889, 299, 2378, 29901, 30004, 13, 1678, 716, 29918, 5975, 353, 1819, 30004, 13, 30004, 13, 1678, 565, 23704, 1275, 29871, 29900, 470, 1819, 29889, 2311, 1275, 29871, 29900, 29901, 30004, 13, 4706, 736, 716, 29918, 5975, 29889, 8552, 26471, 13, 30004, 13, 1678, 396, 1207, 1854, 1409, 2665, 304, 7442, 29889, 1245, 338, 274, 29918, 1285, 5526, 681, 30004, 13, 1678, 285, 29918, 21693, 353, 1819, 29889, 15764, 29889, 29888, 29918, 1285, 5526, 681, 30004, 13, 1678, 565, 285, 29918, 21693, 29901, 30004, 13, 4706, 716, 29918, 5975, 353, 716, 29918, 5975, 29889, 29911, 30004, 13, 4706, 9685, 353, 716, 29918, 5975, 29889, 299, 326, 448, 9685, 448, 29871, 29896, 30004, 13, 30004, 13, 1678, 565, 716, 29918, 5975, 29889, 2311, 29901, 30004, 13, 4706, 716, 29918, 5975, 353, 7442, 29889, 1245, 29898, 30004, 13, 9651, 716, 29918, 5975, 11167, 13, 9651, 7442, 29889, 524, 29886, 29898, 19145, 29879, 511, 30004, 13, 9651, 9685, 29922, 8990, 11167, 13, 4706, 1723, 30004, 13, 30004, 13, 1678, 9685, 29918, 2248, 261, 353, 518, 18337, 29898, 8516, 4638, 334, 1819, 29889, 299, 326, 30004, 13, 1678, 565, 23704, 1405, 29871, 29900, 29901, 30004, 13, 4706, 9685, 29918, 2248, 261, 29961, 8990, 29962, 353, 22780, 29898, 8516, 29892, 23704, 8443, 13, 1678, 1683, 29901, 30004, 13, 4706, 9685, 29918, 2248, 261, 29961, 8990, 29962, 353, 22780, 29898, 19145, 29879, 29892, 6213, 8443, 13, 1678, 716, 29918, 5975, 29961, 23583, 29898, 8990, 29918, 2248, 261, 4638, 353, 5445, 29918, 1767, 30004, 13, 30004, 13, 1678, 396, 17749, 2441, 1797, 30004, 13, 1678, 565, 285, 29918, 21693, 29901, 30004, 13, 4706, 716, 29918, 5975, 353, 716, 29918, 5975, 29889, 29911, 30004, 13, 30004, 13, 1678, 736, 716, 29918, 5975, 30004, 13, 2 ]
fixture/soap.py
AlekseyVR/Python_mantis
0
44631
from suds.client import Client from suds import WebFault from model.project import Project class SoapHelper: def __init__(self, app): self.app = app def can_login(self, username, password): client = Client(self.app.base_url + "api/soap/mantisconnect.php?wsdl") try: client.service.mc_login(username, password) return True except WebFault: return False def get_project_list_user(self, username, password): self.can_login(username, password) client = Client(self.app.base_url + "api/soap/mantisconnect.php?wsdl") try: response = client.service.mc_projects_get_user_accessible(username, password) project_list = [] for element in response: project = Project(id=element.id, name_project=element.name, description_project=element.description) project_list.append(project) return project_list except WebFault: return False
[ 1, 515, 5053, 29879, 29889, 4645, 1053, 12477, 13, 3166, 5053, 29879, 1053, 2563, 29943, 1292, 13, 3166, 1904, 29889, 4836, 1053, 8010, 13, 13, 1990, 1105, 481, 10739, 29901, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 623, 1125, 13, 4706, 1583, 29889, 932, 353, 623, 13, 13, 1678, 822, 508, 29918, 7507, 29898, 1311, 29892, 8952, 29892, 4800, 1125, 13, 4706, 3132, 353, 12477, 29898, 1311, 29889, 932, 29889, 3188, 29918, 2271, 718, 376, 2754, 29914, 21993, 29914, 29885, 424, 275, 6915, 29889, 1961, 29973, 29893, 29222, 1159, 13, 4706, 1018, 29901, 13, 9651, 3132, 29889, 5509, 29889, 14047, 29918, 7507, 29898, 6786, 29892, 4800, 29897, 13, 9651, 736, 5852, 13, 4706, 5174, 2563, 29943, 1292, 29901, 13, 9651, 736, 7700, 13, 13, 1678, 822, 679, 29918, 4836, 29918, 1761, 29918, 1792, 29898, 1311, 29892, 8952, 29892, 4800, 1125, 13, 4706, 1583, 29889, 3068, 29918, 7507, 29898, 6786, 29892, 4800, 29897, 13, 4706, 3132, 353, 12477, 29898, 1311, 29889, 932, 29889, 3188, 29918, 2271, 718, 376, 2754, 29914, 21993, 29914, 29885, 424, 275, 6915, 29889, 1961, 29973, 29893, 29222, 1159, 13, 13, 4706, 1018, 29901, 13, 9651, 2933, 353, 3132, 29889, 5509, 29889, 14047, 29918, 16418, 29918, 657, 29918, 1792, 29918, 5943, 1821, 29898, 6786, 29892, 4800, 29897, 13, 9651, 2060, 29918, 1761, 353, 5159, 13, 9651, 363, 1543, 297, 2933, 29901, 13, 18884, 2060, 353, 8010, 29898, 333, 29922, 5029, 29889, 333, 29892, 1024, 29918, 4836, 29922, 5029, 29889, 978, 29892, 6139, 29918, 4836, 29922, 5029, 29889, 8216, 29897, 13, 18884, 2060, 29918, 1761, 29889, 4397, 29898, 4836, 29897, 13, 9651, 736, 2060, 29918, 1761, 13, 4706, 5174, 2563, 29943, 1292, 29901, 13, 9651, 736, 7700, 13, 13, 2 ]
my_weather_api/admin.py
swingthrough/weather-api-task-django
0
155557
from django.contrib import admin from .models import WeatherForecastDay # Register your models here. admin.site.register(WeatherForecastDay)
[ 1, 515, 9557, 29889, 21570, 1053, 4113, 13, 3166, 869, 9794, 1053, 1334, 1624, 29943, 487, 4384, 12742, 13, 13, 29937, 12577, 596, 4733, 1244, 29889, 13, 6406, 29889, 2746, 29889, 9573, 29898, 4806, 1624, 29943, 487, 4384, 12742, 29897, 2 ]
d_dataprocess.py
adamyalei/Property-Graphs-Lab-Assignment
0
164617
import re regex_str = [ r'<[^>]+>', # HTML tags r'(?:@[\w_]+)', # @-mentions r"(?:\#+[\w_]+[\w\'_\-]*[\w_]+)", # hash-tags r'http[s]?://(?:[a-z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-f][0-9a-f]))+', # URLs r'(?:(?:\d+,?)+(?:\.?\d+)?)', # numbers r"(?:[a-z][a-z'\-_]+[a-z])", # words with - and ' r'(?:[\w_]+)', # other words r'(?:\S)' # anything else ] tokens_re = re.compile(r'('+'|'.join(regex_str)+')', re.VERBOSE | re.IGNORECASE) def tokenize(s): return tokens_re.findall(s) def preprocess(s, lowercase=False): tokens = tokenize(s) if lowercase: tokens = [token.lower() for token in tokens] return tokens def extract_keyword_from_title(title): keywords = [] title = str(title) for token in preprocess(title): keywords.append(token) ALL_KEYWORDS.extend(keywords) return keywords ALL_KEYWORDS = [] articles = pd.read_csv('dblp_dump/output_article.csv', delimiter=';', usecols=['key','author','title','year','ee', 'cite', 'mdate','pages','journal','volume'], dtype=str) # Extract Keyword articles['keyword'] = articles['title'].apply(extract_keyword_from_title).str.join('|') # Store keyword ALL_KEYWORDS = pd.DataFrame(ALL_KEYWORDS, columns=["keyword"]).drop_duplicates() articles.to_csv('out/papers.csv', index=None, header=True) ALL_KEYWORDS.to_csv('out/keywords.csv', index=None, header=True)
[ 1, 1053, 337, 13, 13, 13087, 29918, 710, 353, 518, 13, 1678, 364, 29915, 29966, 22896, 29958, 10062, 29958, 742, 396, 4544, 8282, 13, 1678, 364, 29915, 10780, 26984, 7110, 29893, 29918, 10062, 29897, 742, 396, 732, 29899, 358, 1080, 13, 1678, 364, 29908, 10780, 3583, 29937, 29974, 7110, 29893, 29918, 10062, 7110, 29893, 20333, 3187, 29899, 14178, 7110, 29893, 29918, 10062, 19123, 396, 6608, 29899, 11338, 13, 1678, 364, 29915, 1124, 29961, 29879, 29962, 29973, 597, 10780, 10834, 29874, 29899, 29920, 29962, 29989, 29961, 29900, 29899, 29929, 29962, 29989, 29961, 4388, 29918, 29992, 29889, 29987, 29974, 29962, 29989, 29961, 29991, 17710, 1194, 511, 29962, 29989, 10780, 16664, 29961, 29900, 29899, 29929, 29874, 29899, 29888, 3816, 29900, 29899, 29929, 29874, 29899, 29888, 12622, 29974, 742, 396, 24295, 13, 1678, 364, 29915, 10780, 5919, 29973, 3583, 29881, 29974, 29892, 29973, 7240, 10780, 3583, 29889, 29973, 29905, 29881, 29974, 6877, 29897, 742, 396, 3694, 13, 1678, 364, 29908, 10780, 10834, 29874, 29899, 29920, 3816, 29874, 29899, 29920, 12764, 29899, 29918, 10062, 29961, 29874, 29899, 29920, 2314, 613, 396, 3838, 411, 448, 322, 525, 13, 1678, 364, 29915, 10780, 29901, 7110, 29893, 29918, 10062, 29897, 742, 396, 916, 3838, 13, 1678, 364, 29915, 10780, 3583, 29903, 16029, 396, 3099, 1683, 13, 29962, 13, 13, 517, 12360, 29918, 276, 353, 337, 29889, 12198, 29898, 29878, 29915, 877, 23097, 29989, 4286, 7122, 29898, 13087, 29918, 710, 7240, 1495, 742, 337, 29889, 5348, 8456, 1660, 891, 337, 29889, 6259, 6632, 1525, 23487, 29897, 13, 13, 1753, 5993, 675, 29898, 29879, 1125, 13, 1678, 736, 18897, 29918, 276, 29889, 2886, 497, 29898, 29879, 29897, 13, 13, 1753, 758, 5014, 29898, 29879, 29892, 5224, 4878, 29922, 8824, 1125, 13, 1678, 18897, 353, 5993, 675, 29898, 29879, 29897, 13, 1678, 565, 5224, 4878, 29901, 13, 4706, 18897, 353, 518, 6979, 29889, 13609, 580, 363, 5993, 297, 18897, 29962, 13, 1678, 736, 18897, 13, 13, 1753, 6597, 29918, 26766, 29918, 3166, 29918, 3257, 29898, 3257, 1125, 13, 1678, 29361, 353, 5159, 13, 1678, 3611, 353, 851, 29898, 3257, 29897, 13, 1678, 363, 5993, 297, 758, 5014, 29898, 3257, 1125, 13, 4706, 29361, 29889, 4397, 29898, 6979, 29897, 13, 1678, 15149, 29918, 10818, 11686, 8452, 29889, 21843, 29898, 1989, 9303, 29897, 13, 1678, 736, 29361, 13, 13, 9818, 29918, 10818, 11686, 8452, 353, 5159, 13, 13, 18569, 353, 10518, 29889, 949, 29918, 7638, 877, 29881, 2204, 29886, 29918, 15070, 29914, 4905, 29918, 7914, 29889, 7638, 742, 13, 462, 1669, 28552, 2433, 29936, 742, 13, 462, 1669, 671, 22724, 29922, 1839, 1989, 3788, 8921, 3788, 3257, 3788, 6360, 3788, 3905, 742, 525, 2036, 742, 13, 462, 462, 4706, 525, 29885, 1256, 3788, 12292, 3788, 29926, 4659, 3788, 24623, 7464, 26688, 29922, 710, 29897, 13, 13, 29937, 7338, 1461, 7670, 1742, 13, 18569, 1839, 26766, 2033, 353, 7456, 1839, 3257, 13359, 7302, 29898, 21111, 29918, 26766, 29918, 3166, 29918, 3257, 467, 710, 29889, 7122, 877, 29989, 1495, 13, 13, 29937, 14491, 13553, 13, 9818, 29918, 10818, 11686, 8452, 353, 10518, 29889, 17271, 29898, 9818, 29918, 10818, 11686, 8452, 29892, 4341, 29922, 3366, 26766, 3108, 467, 8865, 29918, 20908, 15815, 580, 13, 13, 18569, 29889, 517, 29918, 7638, 877, 449, 29914, 29886, 21321, 29889, 7638, 742, 2380, 29922, 8516, 29892, 4839, 29922, 5574, 29897, 13, 9818, 29918, 10818, 11686, 8452, 29889, 517, 29918, 7638, 877, 449, 29914, 1989, 9303, 29889, 7638, 742, 2380, 29922, 8516, 29892, 4839, 29922, 5574, 29897, 13, 2 ]
examples/rsa_client.py
datalogics/flask-oauthprovider
1
170757
from os.path import join, dirname from client import app def fread(fn): with open(join(dirname(__file__), fn), 'r') as f: return f.read().decode("utf-8") app.config["OAUTH_CREDENTIALS"] = { u"rsa_key": fread("mykey.pem"), u"signature_method": u"RSA-SHA1", "signature_type": "body" } app.config["CLIENT_KEY"] = u"<KEY>" app.run(debug=True, port=5001)
[ 1, 515, 2897, 29889, 2084, 1053, 5988, 29892, 4516, 978, 13, 3166, 3132, 1053, 623, 13, 13, 13, 1753, 285, 949, 29898, 9144, 1125, 13, 1678, 411, 1722, 29898, 7122, 29898, 25721, 22168, 1445, 1649, 511, 7876, 511, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 736, 285, 29889, 949, 2141, 13808, 703, 9420, 29899, 29947, 1159, 13, 13, 932, 29889, 2917, 3366, 29949, 20656, 29950, 29918, 29907, 19386, 3919, 25758, 29903, 3108, 353, 426, 13, 1678, 318, 29908, 2288, 29874, 29918, 1989, 1115, 285, 949, 703, 1357, 1989, 29889, 29886, 331, 4968, 13, 1678, 318, 29908, 4530, 1535, 29918, 5696, 1115, 318, 29908, 29934, 8132, 29899, 23498, 29896, 613, 13, 1678, 376, 4530, 1535, 29918, 1853, 1115, 376, 2587, 29908, 13, 29913, 13, 932, 29889, 2917, 3366, 27205, 3919, 29918, 10818, 3108, 353, 318, 29908, 29966, 10818, 11903, 13, 932, 29889, 3389, 29898, 8382, 29922, 5574, 29892, 2011, 29922, 29945, 29900, 29900, 29896, 29897, 13, 2 ]
library/cogs/rss_feed.py
og2701/C-3PO
3
183898
<reponame>og2701/C-3PO<filename>library/cogs/rss_feed.py<gh_stars>1-10 from discord.ext.commands import Cog, command from discord.ext import tasks from discord import Embed, Client from feedparser import parse client = Client() class RSS(Cog): def __init__(self, bot): self.bot = bot self.SWnews.start() @tasks.loop(seconds=3600) async def SWnews(self): nf = parse("https://www.starwars.com/news/feed").entries[0] with open("./data/rss_feed.txt","r") as f: old_feed = f.read() if old_feed != str(nf): with open("./data/rss_feed.txt","w") as f: f.write(str(nf)) Mbed = Embed(colour=0xE5B233, description=nf.summary+f"\n[Link to article]({nf.link})") Mbed.set_author(name=nf.title) Mbed.set_thumbnail(url=nf.media_thumbnail[0]["url"]) Mbed.set_footer(text='Author: '+nf.author+' | Published: '+nf.published) try: await self.stdout.send(embed=Mbed) except AttributeError as exc: print(f"[!] {exc}") @Cog.listener() async def on_ready(self): if not self.bot.ready: self.stdout = self.bot.get_channel(797266342822412338) self.bot.cogs_ready.ready_up("RSS") self.SWnews.start() def setup(bot): bot.add_cog(RSS(bot))
[ 1, 529, 276, 1112, 420, 29958, 468, 29906, 29955, 29900, 29896, 29914, 29907, 29899, 29941, 13152, 29966, 9507, 29958, 5258, 29914, 29883, 12099, 29914, 29878, 893, 29918, 18798, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 2313, 536, 29889, 1062, 29889, 26381, 1053, 315, 468, 29892, 1899, 13, 3166, 2313, 536, 29889, 1062, 1053, 9595, 13, 3166, 2313, 536, 1053, 2812, 2580, 29892, 12477, 13, 13, 3166, 8343, 16680, 1053, 6088, 13, 13, 13, 4645, 353, 12477, 580, 13, 13, 1990, 390, 1799, 29898, 29907, 468, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 9225, 1125, 13, 12, 12, 1311, 29889, 7451, 353, 9225, 13, 12, 12, 1311, 29889, 23066, 15753, 29889, 2962, 580, 13, 13, 13, 12, 29992, 20673, 29889, 7888, 29898, 23128, 29922, 29941, 29953, 29900, 29900, 29897, 13, 12, 12674, 822, 25289, 15753, 29898, 1311, 1125, 13, 13, 12, 12, 29876, 29888, 353, 6088, 703, 991, 597, 1636, 29889, 8508, 29893, 1503, 29889, 510, 29914, 15753, 29914, 18798, 2564, 26586, 29961, 29900, 29962, 13, 13, 12, 12, 2541, 1722, 703, 6904, 1272, 29914, 29878, 893, 29918, 18798, 29889, 3945, 3284, 29878, 1159, 408, 285, 29901, 13, 12, 12, 12, 1025, 29918, 18798, 353, 285, 29889, 949, 580, 13, 12, 12, 13, 12, 12, 361, 2030, 29918, 18798, 2804, 851, 29898, 29876, 29888, 1125, 13, 12, 12, 12, 2541, 1722, 703, 6904, 1272, 29914, 29878, 893, 29918, 18798, 29889, 3945, 3284, 29893, 1159, 408, 285, 29901, 13, 12, 12, 12, 12, 29888, 29889, 3539, 29898, 710, 29898, 29876, 29888, 876, 13, 13, 12, 12, 12, 29924, 2580, 353, 2812, 2580, 29898, 1054, 473, 29922, 29900, 29916, 29923, 29945, 29933, 29906, 29941, 29941, 29892, 6139, 29922, 29876, 29888, 29889, 7727, 29974, 29888, 26732, 29876, 29961, 6595, 304, 4274, 850, 29912, 29876, 29888, 29889, 2324, 1800, 1159, 13, 13, 12, 12, 12, 29924, 2580, 29889, 842, 29918, 8921, 29898, 978, 29922, 29876, 29888, 29889, 3257, 29897, 13, 12, 12, 12, 29924, 2580, 29889, 842, 29918, 386, 21145, 29898, 2271, 29922, 29876, 29888, 29889, 9799, 29918, 386, 21145, 29961, 29900, 29962, 3366, 2271, 20068, 13, 12, 12, 12, 29924, 2580, 29889, 842, 29918, 21720, 29898, 726, 2433, 13720, 29901, 525, 29974, 29876, 29888, 29889, 8921, 23097, 891, 8042, 3726, 29901, 525, 29974, 29876, 29888, 29889, 5467, 3726, 29897, 13, 13, 12, 12, 12, 2202, 29901, 13, 12, 12, 12, 12, 20675, 1583, 29889, 25393, 29889, 6717, 29898, 17987, 29922, 29924, 2580, 29897, 13, 12, 12, 12, 19499, 23833, 2392, 408, 5566, 29901, 13, 12, 12, 12, 12, 2158, 29898, 29888, 29908, 29961, 29991, 29962, 426, 735, 29883, 27195, 13, 13, 12, 29992, 29907, 468, 29889, 25894, 580, 13, 12, 12674, 822, 373, 29918, 2040, 29898, 1311, 1125, 13, 12, 12, 361, 451, 1583, 29889, 7451, 29889, 2040, 29901, 13, 12, 12, 12, 1311, 29889, 25393, 353, 1583, 29889, 7451, 29889, 657, 29918, 12719, 29898, 29955, 29929, 29955, 29906, 29953, 29953, 29941, 29946, 29906, 29947, 29906, 29906, 29946, 29896, 29906, 29941, 29941, 29947, 29897, 13, 12, 12, 12, 1311, 29889, 7451, 29889, 29883, 12099, 29918, 2040, 29889, 2040, 29918, 786, 703, 29934, 1799, 1159, 13, 12, 12, 12, 1311, 29889, 23066, 15753, 29889, 2962, 580, 13, 13, 1753, 6230, 29898, 7451, 1125, 13, 12, 7451, 29889, 1202, 29918, 29883, 468, 29898, 29934, 1799, 29898, 7451, 876, 13, 2 ]
cplcom/moa/device/mcdaq.py
matham/cplcom
0
23791
'''Barst Measurement Computing DAQ Wrapper ========================================== ''' from functools import partial from pybarst.mcdaq import MCDAQChannel from kivy.properties import NumericProperty, ObjectProperty from moa.threads import ScheduledEventLoop from moa.device.digital import ButtonViewPort from cplcom.moa.device import DeviceExceptionBehavior __all__ = ('MCDAQDevice', ) class MCDAQDevice(DeviceExceptionBehavior, ButtonViewPort, ScheduledEventLoop): '''A :class:`moa.device.digital.ButtonViewPort` wrapper around a :class:`pybarst.mcdaq.MCDAQChannel` instance which controls a Switch and Sense 8/8. For this class, :class:`moa.device.digital.ButtonViewPort.dev_map` must be provided upon creation and it's a dict whose keys are the property names and whose values are the Switch and Sense 8/8 channel numbers that the property controls. E.g. for a light switch connected to channel 3 on the Switch and Sense 8/8 output port define the class:: class MyMCDAQDevice(MCDAQDevice): light = BooleanProperty(False) And then create the instance with:: dev = MyMCDAQDevice(dev_map={'light': 3}) And then we can set it high by calling e.g.:: dev.set_state(high=['light']) For an input devices it can defined similarly and the state of the property reflects the value of the port. A switch and sense which has both a input and output device still needs to create two device for each. ''' __settings_attrs__ = ('SAS_chan', ) _read_event = None def _write_callback(self, value, mask, result): self.timestamp = result for idx, name in self.chan_dev_map.iteritems(): if mask & (1 << idx): setattr(self, name, bool(value & (1 << idx))) self.dispatch('on_data_update', self) def _read_callback(self, result, **kwargs): t, val = result self.timestamp = t for idx, name in self.chan_dev_map.iteritems(): setattr(self, name, bool(val & (1 << idx))) self.dispatch('on_data_update', self) def set_state(self, high=[], low=[], **kwargs): if self.activation != 'active': raise TypeError('Can only set state of an active device. Device ' 'is currently "{}"'.format(self.activation)) if 'o' not in self.direction: raise TypeError('Cannot write state for a input device') dev_map = self.dev_map mask = 0 val = 0 for name in high: idx = dev_map[name] val |= (1 << idx) mask |= (1 << idx) for name in low: mask |= (1 << dev_map[name]) self.request_callback( self.chan.write, callback=partial(self._write_callback, val, mask), mask=mask, value=val) def get_state(self): if self.activation != 'active': raise TypeError('Can only read state of an active device. Device ' 'is currently "{}"'.format(self.activation)) if 'i' in self.direction: # happens anyway return self._read_event = self.request_callback( self.chan.read, callback=self._read_callback) def activate(self, *largs, **kwargs): kwargs['state'] = 'activating' if not super(MCDAQDevice, self).activate(*largs, **kwargs): return False self.start_thread() self.chan = MCDAQChannel(chan=self.SAS_chan, server=self.server.server) def finish_activate(*largs): self.activation = 'active' if 'i' in self.direction: self._read_event = self.request_callback( self.chan.read, repeat=True, callback=self._read_callback) self.request_callback(self._start_channel, finish_activate) return True def _start_channel(self): chan = self.chan chan.open_channel() if 'o' in self.direction: chan.write(mask=0xFF, value=0) def deactivate(self, *largs, **kwargs): kwargs['state'] = 'deactivating' if not super(MCDAQDevice, self).deactivate(*largs, **kwargs): return False self.remove_request(self.chan.read, self._read_event) self._read_event = None def finish_deactivate(*largs): self.activation = 'inactive' self.stop_thread() self.request_callback(self._stop_channel, finish_deactivate) return True def _stop_channel(self): if 'o' in self.direction: self.chan.write(mask=0xFF, value=0) if 'i' in self.direction and self.chan.continuous: self.chan.cancel_read(flush=True) chan = ObjectProperty(None) '''The internal :class:`pybarst.mcdaq.MCDAQChannel` instance. It is read only and is automatically created. ''' server = ObjectProperty(None, allownone=True) '''The internal barst :class:`pybarst.core.server.BarstServer`. It must be provided to the instance. ''' SAS_chan = NumericProperty(0) '''The channel number of the Switch & Sense 8/8 as configured in InstaCal. Defaults to zero. '''
[ 1, 14550, 4297, 303, 2191, 3745, 358, 11796, 292, 21330, 29984, 399, 6794, 13, 9166, 9166, 4936, 1360, 13, 12008, 13, 3166, 2090, 312, 8789, 1053, 7687, 13, 3166, 11451, 1646, 303, 29889, 14047, 1388, 29939, 1053, 341, 6530, 29909, 29984, 13599, 13, 13, 3166, 413, 440, 29891, 29889, 11330, 1053, 405, 25099, 4854, 29892, 4669, 4854, 13, 13, 3166, 2730, 29874, 29889, 28993, 1053, 1102, 14989, 2624, 18405, 13, 3166, 2730, 29874, 29889, 10141, 29889, 7501, 2410, 1053, 11025, 1043, 2290, 13, 3166, 274, 572, 510, 29889, 4346, 29874, 29889, 10141, 1053, 21830, 2451, 28100, 13, 13, 1649, 497, 1649, 353, 6702, 29924, 6530, 29909, 29984, 11501, 742, 1723, 13, 13, 13, 1990, 341, 6530, 29909, 29984, 11501, 29898, 11501, 2451, 28100, 29892, 11025, 1043, 2290, 29892, 1102, 14989, 2624, 18405, 1125, 13, 1678, 14550, 29909, 584, 1990, 18078, 4346, 29874, 29889, 10141, 29889, 7501, 2410, 29889, 3125, 1043, 2290, 29952, 14476, 2820, 263, 13, 1678, 584, 1990, 18078, 2272, 1646, 303, 29889, 14047, 1388, 29939, 29889, 29924, 6530, 29909, 29984, 13599, 29952, 2777, 607, 11761, 263, 28176, 13, 1678, 322, 317, 1947, 29871, 29947, 29914, 29947, 29889, 13, 13, 1678, 1152, 445, 770, 29892, 584, 1990, 18078, 4346, 29874, 29889, 10141, 29889, 7501, 2410, 29889, 3125, 1043, 2290, 29889, 3359, 29918, 1958, 29952, 1818, 367, 13, 1678, 4944, 2501, 11265, 322, 372, 29915, 29879, 263, 9657, 5069, 6611, 526, 278, 2875, 2983, 13, 1678, 322, 5069, 1819, 526, 278, 28176, 322, 317, 1947, 29871, 29947, 29914, 29947, 8242, 3694, 393, 278, 13, 1678, 2875, 11761, 29889, 13, 13, 1678, 382, 29889, 29887, 29889, 363, 263, 3578, 4607, 6631, 304, 8242, 29871, 29941, 373, 278, 28176, 322, 317, 1947, 13, 268, 29947, 29914, 29947, 1962, 2011, 4529, 278, 770, 1057, 13, 13, 4706, 770, 1619, 29924, 6530, 29909, 29984, 11501, 29898, 29924, 6530, 29909, 29984, 11501, 1125, 13, 13, 9651, 3578, 353, 11185, 4854, 29898, 8824, 29897, 13, 13, 4706, 1126, 769, 1653, 278, 2777, 411, 1057, 13, 13, 9651, 2906, 353, 1619, 29924, 6530, 29909, 29984, 11501, 29898, 3359, 29918, 1958, 3790, 29915, 4366, 2396, 29871, 29941, 1800, 13, 13, 4706, 1126, 769, 591, 508, 731, 372, 1880, 491, 5432, 321, 29889, 29887, 29889, 1057, 13, 13, 9651, 2906, 29889, 842, 29918, 3859, 29898, 9812, 29922, 1839, 4366, 11287, 13, 13, 1678, 1152, 385, 1881, 9224, 372, 508, 3342, 22829, 322, 278, 2106, 310, 278, 2875, 13, 1678, 9432, 29879, 278, 995, 310, 278, 2011, 29889, 319, 4607, 322, 4060, 607, 756, 1716, 263, 1881, 13, 1678, 322, 1962, 4742, 1603, 4225, 304, 1653, 1023, 4742, 363, 1269, 29889, 13, 1678, 14550, 13, 13, 1678, 4770, 11027, 29918, 5552, 29879, 1649, 353, 6702, 29903, 3289, 29918, 5083, 742, 1723, 13, 13, 1678, 903, 949, 29918, 3696, 353, 6213, 13, 13, 1678, 822, 903, 3539, 29918, 14035, 29898, 1311, 29892, 995, 29892, 11105, 29892, 1121, 1125, 13, 4706, 1583, 29889, 16394, 353, 1121, 13, 4706, 363, 22645, 29892, 1024, 297, 1583, 29889, 5083, 29918, 3359, 29918, 1958, 29889, 1524, 7076, 7295, 13, 9651, 565, 11105, 669, 313, 29896, 3532, 22645, 1125, 13, 18884, 731, 5552, 29898, 1311, 29892, 1024, 29892, 6120, 29898, 1767, 669, 313, 29896, 3532, 22645, 4961, 13, 4706, 1583, 29889, 13369, 877, 265, 29918, 1272, 29918, 5504, 742, 1583, 29897, 13, 13, 1678, 822, 903, 949, 29918, 14035, 29898, 1311, 29892, 1121, 29892, 3579, 19290, 1125, 13, 4706, 260, 29892, 659, 353, 1121, 13, 4706, 1583, 29889, 16394, 353, 260, 13, 4706, 363, 22645, 29892, 1024, 297, 1583, 29889, 5083, 29918, 3359, 29918, 1958, 29889, 1524, 7076, 7295, 13, 9651, 731, 5552, 29898, 1311, 29892, 1024, 29892, 6120, 29898, 791, 669, 313, 29896, 3532, 22645, 4961, 13, 4706, 1583, 29889, 13369, 877, 265, 29918, 1272, 29918, 5504, 742, 1583, 29897, 13, 13, 1678, 822, 731, 29918, 3859, 29898, 1311, 29892, 1880, 11759, 1402, 4482, 11759, 1402, 3579, 19290, 1125, 13, 4706, 565, 1583, 29889, 11236, 362, 2804, 525, 4925, 2396, 13, 9651, 12020, 20948, 877, 6028, 871, 731, 2106, 310, 385, 6136, 4742, 29889, 21830, 525, 13, 462, 9651, 525, 275, 5279, 29850, 5038, 4286, 4830, 29898, 1311, 29889, 11236, 362, 876, 13, 4706, 565, 525, 29877, 29915, 451, 297, 1583, 29889, 20845, 29901, 13, 9651, 12020, 20948, 877, 29089, 2436, 2106, 363, 263, 1881, 4742, 1495, 13, 4706, 2906, 29918, 1958, 353, 1583, 29889, 3359, 29918, 1958, 13, 4706, 11105, 353, 29871, 29900, 13, 4706, 659, 353, 29871, 29900, 13, 4706, 363, 1024, 297, 1880, 29901, 13, 9651, 22645, 353, 2906, 29918, 1958, 29961, 978, 29962, 13, 9651, 659, 891, 29922, 313, 29896, 3532, 22645, 29897, 13, 9651, 11105, 891, 29922, 313, 29896, 3532, 22645, 29897, 13, 4706, 363, 1024, 297, 4482, 29901, 13, 9651, 11105, 891, 29922, 313, 29896, 3532, 2906, 29918, 1958, 29961, 978, 2314, 13, 13, 4706, 1583, 29889, 3827, 29918, 14035, 29898, 13, 9651, 1583, 29889, 5083, 29889, 3539, 29892, 6939, 29922, 3846, 29898, 1311, 3032, 3539, 29918, 14035, 29892, 659, 29892, 11105, 511, 13, 9651, 11105, 29922, 13168, 29892, 995, 29922, 791, 29897, 13, 13, 1678, 822, 679, 29918, 3859, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 11236, 362, 2804, 525, 4925, 2396, 13, 9651, 12020, 20948, 877, 6028, 871, 1303, 2106, 310, 385, 6136, 4742, 29889, 21830, 525, 13, 462, 9651, 525, 275, 5279, 29850, 5038, 4286, 4830, 29898, 1311, 29889, 11236, 362, 876, 13, 4706, 565, 525, 29875, 29915, 297, 1583, 29889, 20845, 29901, 29871, 396, 5930, 8763, 13, 9651, 736, 13, 4706, 1583, 3032, 949, 29918, 3696, 353, 1583, 29889, 3827, 29918, 14035, 29898, 13, 9651, 1583, 29889, 5083, 29889, 949, 29892, 6939, 29922, 1311, 3032, 949, 29918, 14035, 29897, 13, 13, 1678, 822, 5039, 403, 29898, 1311, 29892, 334, 29880, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9049, 5085, 1839, 3859, 2033, 353, 525, 11236, 1218, 29915, 13, 4706, 565, 451, 2428, 29898, 29924, 6530, 29909, 29984, 11501, 29892, 1583, 467, 11236, 403, 10456, 29880, 5085, 29892, 3579, 19290, 1125, 13, 9651, 736, 7700, 13, 4706, 1583, 29889, 2962, 29918, 7097, 580, 13, 4706, 1583, 29889, 5083, 353, 341, 6530, 29909, 29984, 13599, 29898, 5083, 29922, 1311, 29889, 29903, 3289, 29918, 5083, 29892, 1923, 29922, 1311, 29889, 2974, 29889, 2974, 29897, 13, 13, 4706, 822, 8341, 29918, 11236, 403, 10456, 29880, 5085, 1125, 13, 9651, 1583, 29889, 11236, 362, 353, 525, 4925, 29915, 13, 9651, 565, 525, 29875, 29915, 297, 1583, 29889, 20845, 29901, 13, 18884, 1583, 3032, 949, 29918, 3696, 353, 1583, 29889, 3827, 29918, 14035, 29898, 13, 462, 1678, 1583, 29889, 5083, 29889, 949, 29892, 12312, 29922, 5574, 29892, 6939, 29922, 1311, 3032, 949, 29918, 14035, 29897, 13, 4706, 1583, 29889, 3827, 29918, 14035, 29898, 1311, 3032, 2962, 29918, 12719, 29892, 8341, 29918, 11236, 403, 29897, 13, 4706, 736, 5852, 13, 13, 1678, 822, 903, 2962, 29918, 12719, 29898, 1311, 1125, 13, 4706, 521, 273, 353, 1583, 29889, 5083, 13, 4706, 521, 273, 29889, 3150, 29918, 12719, 580, 13, 4706, 565, 525, 29877, 29915, 297, 1583, 29889, 20845, 29901, 13, 9651, 521, 273, 29889, 3539, 29898, 13168, 29922, 29900, 29916, 4198, 29892, 995, 29922, 29900, 29897, 13, 13, 1678, 822, 316, 11236, 403, 29898, 1311, 29892, 334, 29880, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9049, 5085, 1839, 3859, 2033, 353, 525, 311, 11236, 1218, 29915, 13, 4706, 565, 451, 2428, 29898, 29924, 6530, 29909, 29984, 11501, 29892, 1583, 467, 311, 11236, 403, 10456, 29880, 5085, 29892, 3579, 19290, 1125, 13, 9651, 736, 7700, 13, 13, 4706, 1583, 29889, 5992, 29918, 3827, 29898, 1311, 29889, 5083, 29889, 949, 29892, 1583, 3032, 949, 29918, 3696, 29897, 13, 4706, 1583, 3032, 949, 29918, 3696, 353, 6213, 13, 13, 4706, 822, 8341, 29918, 311, 11236, 403, 10456, 29880, 5085, 1125, 13, 9651, 1583, 29889, 11236, 362, 353, 525, 262, 4925, 29915, 13, 9651, 1583, 29889, 9847, 29918, 7097, 580, 13, 4706, 1583, 29889, 3827, 29918, 14035, 29898, 1311, 3032, 9847, 29918, 12719, 29892, 8341, 29918, 311, 11236, 403, 29897, 13, 4706, 736, 5852, 13, 13, 1678, 822, 903, 9847, 29918, 12719, 29898, 1311, 1125, 13, 4706, 565, 525, 29877, 29915, 297, 1583, 29889, 20845, 29901, 13, 9651, 1583, 29889, 5083, 29889, 3539, 29898, 13168, 29922, 29900, 29916, 4198, 29892, 995, 29922, 29900, 29897, 13, 4706, 565, 525, 29875, 29915, 297, 1583, 29889, 20845, 322, 1583, 29889, 5083, 29889, 20621, 681, 29901, 13, 9651, 1583, 29889, 5083, 29889, 20713, 29918, 949, 29898, 23126, 29922, 5574, 29897, 13, 13, 1678, 521, 273, 353, 4669, 4854, 29898, 8516, 29897, 13, 1678, 14550, 1576, 7463, 584, 1990, 18078, 2272, 1646, 303, 29889, 14047, 1388, 29939, 29889, 29924, 6530, 29909, 29984, 13599, 29952, 2777, 29889, 13, 1678, 739, 338, 1303, 871, 322, 338, 6336, 2825, 29889, 13, 1678, 14550, 13, 13, 1678, 1923, 353, 4669, 4854, 29898, 8516, 29892, 599, 776, 650, 29922, 5574, 29897, 13, 1678, 14550, 1576, 7463, 2594, 303, 584, 1990, 18078, 2272, 1646, 303, 29889, 3221, 29889, 2974, 29889, 4297, 303, 6004, 1412, 739, 13, 1678, 1818, 367, 4944, 304, 278, 2777, 29889, 13, 1678, 14550, 13, 13, 1678, 317, 3289, 29918, 5083, 353, 405, 25099, 4854, 29898, 29900, 29897, 13, 1678, 14550, 1576, 8242, 1353, 310, 278, 28176, 669, 317, 1947, 29871, 29947, 29914, 29947, 408, 13252, 297, 2799, 29874, 7856, 29889, 13, 13, 1678, 13109, 29879, 304, 5225, 29889, 13, 1678, 14550, 13, 2 ]
Lib/hTools2/modules/unicode.py
gferreira/hTools2
11
67418
<gh_stars>10-100 # [h] hTools2.modules.unicode from collections import OrderedDict '''Tools to work with Unicode, convert glyph names to hex/unicode etc.''' def clear_unicodes(font): '''Remove unicodes from all glyphs in the font.''' for g in font: g.unicodes = [] font.update() def auto_unicodes(font, custom_unicodes={}): '''Automatically set unicode values for all glyphs in the font.''' clear_unicodes(font) for g in font: if g is not None: auto_unicode(g, custom_unicodes) font.update() def auto_unicode(g, custom_unicodes={}): ''' Automatically set unicode value(s) for the specified glyph. The method uses RoboFab's ``glyph.autoUnicodes()`` function for common glyphs, and complements it with additional values from ``unicodes_extra``. ''' if g.name is not None: # handle 'uni' names if g.name[:3] == "uni" and len(g.name) in [7, 8]: c = g.name g.unicode = int(c.split('uni')[1], 16) # handle extra cases elif g.name in unicodes_extra.keys(): uString = 'uni%s' % unicodes_extra[g.name] g.unicode = unicode_hexstr_to_int(uString) # use auto unicode for everything else elif custom_unicodes.get(g.name) is not None: uString = 'uni%s' % custom_unicodes[g.name] g.unicode = unicode_hexstr_to_int(uString) else: g.autoUnicodes() g.update() #------------------------------ # unicode-to-string conversion #------------------------------ def unicode_int_to_hexstr(intUnicode, _0x=False, uni=False): ''' Converts unicode integers to hexadecimal. See also the reverse function ``unicode_hexstr_to_int``. Note that ``glyph.unicodes`` is a list (a glyph can have many unicodes), so we need to pass the first value only. The optional parameters ``uni`` and ``_0x`` add the respective prefixes. ''' hexUnicode = "%X".lstrip("0x") % intUnicode hexUnicode = "0" * (4 - len(hexUnicode)) + hexUnicode if _0x: return "0x%s" % hexUnicode elif uni: return "uni%s" % hexUnicode return hexUnicode def unicode_hexstr_to_int(hexUnicode, replaceUni=True): ''' Converts a unicode hexadecimal value into an integer. It does exactly the reverse of ``unicode_int_to_hexstr``. ''' if replaceUni: return int(hexUnicode.replace("uni",""), 16) return int(hexUnicode.lstrip("x"), 16) #----------------------------- # additional unicode mappings #----------------------------- #: A dict containing additional `glyphName` to `unicode` mappings. unicodes_extra = { # extended latin lc 'aemacron' : '01E3', 'dotlessj' : '0237', 'schwa' : '0259', 'ymacron' : '0233', 'eszett' : '00DF', # extended latin uc 'AEmacron' : '01E2', 'Schwa' : '018F', 'Uppercaseeszett' : '1E9E', # ligatures 'fi' : 'FB01', 'fl' : 'FB02', 'f_f' : 'FB00', 'f_f_i' : 'FB03', 'f_f_l' : 'FB04', # greek exceptions 'Delta' : '2206', # 0394 'Omega' : '2126', # 03A9 'mu' : '00B5', # 03BC # superiors 'zerosuperior' : '2070', 'onesuperior' : '00B9', 'twosuperior' : '00B2', 'threesuperior' : '00B3', 'foursuperior' : '2074', 'fivesuperior' : '2075', 'sixsuperior' : '2076', 'sevensuperior' : '2077', 'eightsuperior' : '2078', 'ninesuperior' : '2079', # inferiors 'zeroinferior' : '2080', 'oneinferior' : '2081', 'twoinferior' : '2082', 'threeinferior' : '2083', 'fourinferior' : '2084', 'fiveinferior' : '2085', 'sixinferior' : '2086', 'seveninferior' : '2087', 'eightinferior' : '2088', 'nineinferior' : '2089', # spaces 'enspace' : '2002', 'emspace' : '2003', 'nbspace' : '00A0', 'hairspace' : '200A', 'thinspace' : '2009', 'thickspace' : '2004', 'figurespace' : '2007', 'zerowidthspace' : '200B', # combining accents 'gravecomb' : '0300', 'acutecomb' : '0301', 'circumflexcomb' : '0302', 'tildecomb' : '0303', 'dieresiscomb' : '0308', 'dotbelowcomb' : '0323', 'cedillacomb' : '0327', # arrows 'arrowleft' : '2190', 'arrowup' : '2191', 'arrowright' : '2192', 'arrowdown' : '2193', 'arrowleftright' : '2194', 'arrowupdown' : '2195', 'arrowupleft' : '2196', 'arrowupright' : '2197', 'arrowdownright' : '2198', 'arrowdownleft' : '2199', # latin accented lc 'adotbelow' : '1EA1', 'aringacute' : '01FB', 'edotbelow' : '1EB9', 'etilde' : '1EBD', 'gcaron' : '01E7', 'idotbelow' : '1ECB', 'ndotbelow' : '1E47', 'nhookleft' : '0272', 'odotbelow' : '1ECD', 'oogonek' : '01EB', 'sdotbelow' : '1E63', 'udotbelow' : '1EE5', 'ymacron' : '0233', 'ytilde' : '1EF9', # latin accented uc 'Adotbelow' : '1EA0', 'Aringacute' : '01FA', 'Edotbelow' : '1EB8', 'Etilde' : '1EBC', 'Gcaron' : '01E6', 'Idotbelow' : '1ECA', 'Ndotbelow' : '1E46', 'Nhookleft' : '019D', 'Odotbelow' : '1ECC', 'Oogonek' : '01EA', 'Sdotbelow' : '1E62', 'Udotbelow' : '1EE4', 'Ymacron' : '0232', 'Ytilde' : '1EF8', # symbols etc 'bulletoperator' : '2219', 'florin' : '0192', } #----------------------------- # unicode to psNames mappings #----------------------------- #: A dictionary mapping unicode values to psNames. unicode2psnames = { None : '.notdef', 32 : 'space', 33 : 'exclam', 34 : 'quotedbl', 35 : 'numbersign', 36 : 'dollar', 37 : 'percent', 38 : 'ampersand', 39 : 'quotesingle', 40 : 'parenleft', 41 : 'parenright', 42 : 'asterisk', 43 : 'plus', 44 : 'comma', 45 : 'hyphen', 46 : 'period', 47 : 'slash', 48 : 'zero', 49 : 'one', 50 : 'two', 51 : 'three', 52 : 'four', 53 : 'five', 54 : 'six', 55 : 'seven', 56 : 'eight', 57 : 'nine', 58 : 'colon', 59 : 'semicolon', 60 : 'less', 61 : 'equal', 62 : 'greater', 63 : 'question', 64 : 'at', 65 : 'A', 66 : 'B', 67 : 'C', 68 : 'D', 69 : 'E', 70 : 'F', 71 : 'G', 72 : 'H', 73 : 'I', 74 : 'J', 75 : 'K', 76 : 'L', 77 : 'M', 78 : 'N', 79 : 'O', 80 : 'P', 81 : 'Q', 82 : 'R', 83 : 'S', 84 : 'T', 85 : 'U', 86 : 'V', 87 : 'W', 88 : 'X', 89 : 'Y', 90 : 'Z', 91 : 'bracketleft', 92 : 'backslash', 93 : 'bracketright', 94 : 'asciicircum', 95 : 'underscore', 96 : 'grave', 97 : 'a', 98 : 'b', 99 : 'c', 100 : 'd', 101 : 'e', 102 : 'f', 103 : 'g', 104 : 'h', 105 : 'i', 106 : 'j', 107 : 'k', 108 : 'l', 109 : 'm', 110 : 'n', 111 : 'o', 112 : 'p', 113 : 'q', 114 : 'r', 115 : 's', 116 : 't', 117 : 'u', 118 : 'v', 119 : 'w', 120 : 'x', 121 : 'y', 122 : 'z', 123 : 'braceleft', 124 : 'bar', 125 : 'braceright', 126 : 'asciitilde', 161 : 'exclamdown', 162 : 'cent', 163 : 'sterling', 164 : 'currency', 165 : 'yen', 166 : 'brokenbar', 167 : 'section', 168 : 'dieresis', 169 : 'copyright', 170 : 'ordfeminine', 171 : 'guillemotleft', 172 : 'logicalnot', 174 : 'registered', 175 : 'macron', 176 : 'degree', 177 : 'plusminus', 178 : 'twosuperior', 179 : 'threesuperior', 180 : 'acute', 181 : 'mu', 182 : 'paragraph', 183 : 'periodcentered', 184 : 'cedilla', 185 : 'onesuperior', 186 : 'ordmasculine', 187 : 'guillemotright', 188 : 'onequarter', 189 : 'onehalf', 190 : 'threequarters', 191 : 'questiondown', 192 : 'Agrave', 193 : 'Aacute', 194 : 'Acircumflex', 195 : 'Atilde', 196 : 'Adieresis', 197 : 'Aring', 198 : 'AE', 199 : 'Ccedilla', 200 : 'Egrave', 201 : 'Eacute', 202 : 'Ecircumflex', 203 : 'Edieresis', 204 : 'Igrave', 205 : 'Iacute', 206 : 'Icircumflex', 207 : 'Idieresis', 208 : 'Eth', 209 : 'Ntilde', 210 : 'Ograve', 211 : 'Oacute', 212 : 'Ocircumflex', 213 : 'Otilde', 214 : 'Odieresis', 215 : 'multiply', 216 : 'Oslash', 217 : 'Ugrave', 218 : 'Uacute', 219 : 'Ucircumflex', 220 : 'Udieresis', 221 : 'Yacute', 222 : 'Thorn', 223 : 'germandbls', 224 : 'agrave', 225 : 'aacute', 226 : 'acircumflex', 227 : 'atilde', 228 : 'adieresis', 229 : 'aring', 230 : 'ae', 231 : 'ccedilla', 232 : 'egrave', 233 : 'eacute', 234 : 'ecircumflex', 235 : 'edieresis', 236 : 'igrave', 237 : 'iacute', 238 : 'icircumflex', 239 : 'idieresis', 240 : 'eth', 241 : 'ntilde', 242 : 'ograve', 243 : 'oacute', 244 : 'ocircumflex', 245 : 'otilde', 246 : 'odieresis', 247 : 'divide', 248 : 'oslash', 249 : 'ugrave', 250 : 'uacute', 251 : 'ucircumflex', 252 : 'udieresis', 253 : 'yacute', 254 : 'thorn', 255 : 'ydieresis', 256 : 'Amacron', 257 : 'amacron', 258 : 'Abreve', 259 : 'abreve', 260 : 'Aogonek', 261 : 'aogonek', 262 : 'Cacute', 263 : 'cacute', 264 : 'Ccircumflex', 265 : 'ccircumflex', 266 : 'Cdotaccent', 267 : 'cdotaccent', 268 : 'Ccaron', 269 : 'ccaron', 270 : 'Dcaron', 271 : 'dcaron', 272 : 'Dcroat', 273 : 'dcroat', 274 : 'Emacron', 275 : 'emacron', 276 : 'Ebreve', 277 : 'ebreve', 278 : 'Edotaccent', 279 : 'edotaccent', 280 : 'Eogonek', 281 : 'eogonek', 282 : 'Ecaron', 283 : 'ecaron', 284 : 'Gcircumflex', 285 : 'gcircumflex', 286 : 'Gbreve', 287 : 'gbreve', 288 : 'Gdotaccent', 289 : 'gdotaccent', 290 : 'Gcommaaccent', 291 : 'gcommaaccent', 292 : 'Hcircumflex', 293 : 'hcircumflex', 294 : 'Hbar', 295 : 'hbar', 296 : 'Itilde', 297 : 'itilde', 298 : 'Imacron', 299 : 'imacron', 300 : 'Ibreve', 301 : 'ibreve', 302 : 'Iogonek', 303 : 'iogonek', 304 : 'Idotaccent', 305 : 'dotlessi', 306 : 'IJ', 307 : 'ij', 308 : 'Jcircumflex', 309 : 'jcircumflex', 310 : 'Kcommaaccent', 311 : 'kcommaaccent', 312 : 'kgreenlandic', 313 : 'Lacute', 314 : 'lacute', 315 : 'Lcommaaccent', 316 : 'lcommaaccent', 317 : 'Lcaron', 318 : 'lcaron', 319 : 'Ldot', 320 : 'ldot', 321 : 'Lslash', 322 : 'lslash', 323 : 'Nacute', 324 : 'nacute', 325 : 'Ncommaaccent', 326 : 'ncommaaccent', 327 : 'Ncaron', 328 : 'ncaron', 329 : 'napostrophe', 330 : 'Eng', 331 : 'eng', 332 : 'Omacron', 333 : 'omacron', 334 : 'Obreve', 335 : 'obreve', 336 : 'Ohungarumlaut', 337 : 'ohungarumlaut', 338 : 'OE', 339 : 'oe', 340 : 'Racute', 341 : 'racute', 342 : 'Rcommaaccent', 343 : 'rcommaaccent', 344 : 'Rcaron', 345 : 'rcaron', 346 : 'Sacute', 347 : 'sacute', 348 : 'Scircumflex', 349 : 'scircumflex', 350 : 'Scedilla', 351 : 'scedilla', 352 : 'Scaron', 353 : 'scaron', 354 : 'Tcommaaccent', 355 : 'tcommaaccent', 356 : 'Tcaron', 357 : 'tcaron', 358 : 'Tbar', 359 : 'tbar', 360 : 'Utilde', 361 : 'utilde', 362 : 'Umacron', 363 : 'umacron', 364 : 'Ubreve', 365 : 'ubreve', 366 : 'Uring', 367 : 'uring', 368 : 'Uhungarumlaut', 369 : 'uhungarumlaut', 370 : 'Uogonek', 371 : 'uogonek', 372 : 'Wcircumflex', 373 : 'wcircumflex', 374 : 'Ycircumflex', 375 : 'ycircumflex', 376 : 'Ydieresis', 377 : 'Zacute', 378 : 'zacute', 379 : 'Zdotaccent', 380 : 'zdotaccent', 381 : 'Zcaron', 382 : 'zcaron', 402 : 'florin', 508 : 'AEacute', 509 : 'aeacute', 510 : 'Oslashacute', 511 : 'oslashacute', 536 : 'Scommaaccent', 537 : 'scommaaccent', 710 : 'circumflex', 711 : 'caron', 728 : 'breve', 729 : 'dotaccent', 730 : 'ring', 731 : 'ogonek', 732 : 'tilde', 733 : 'hungarumlaut', 894 : 'uni037E', 900 : 'tonos', 901 : 'dieresistonos', 902 : 'Alphatonos', 903 : 'anoteleia', 904 : 'Epsilontonos', 905 : 'Etatonos', 906 : 'Iotatonos', 908 : 'Omicrontonos', 910 : 'Upsilontonos', 911 : 'Omegatonos', 912 : 'iotadieresistonos', 913 : 'Alpha', 914 : 'Beta', 915 : 'Gamma', # 916 : 'Delta', 917 : 'Epsilon', 918 : 'Zeta', 919 : 'Eta', 920 : 'Theta', 921 : 'Iota', 922 : 'Kappa', 923 : 'Lambda', 924 : 'Mu', 925 : 'Nu', 926 : 'Xi', 927 : 'Omicron', 928 : 'Pi', 929 : 'Rho', 931 : 'Sigma', 932 : 'Tau', 933 : 'Upsilon', 934 : 'Phi', 935 : 'Chi', 936 : 'Psi', 937 : 'Omega', 938 : 'Iotadieresis', 939 : 'Upsilondieresis', 940 : 'alphatonos', 941 : 'epsilontonos', 942 : 'etatonos', 943 : 'iotatonos', 944 : 'upsilondieresistonos', 945 : 'alpha', 946 : 'beta', 947 : 'gamma', 948 : 'delta', 949 : 'epsilon', 950 : 'zeta', 951 : 'eta', 952 : 'theta', 953 : 'iota', 954 : 'kappa', 955 : 'lambda', 956 : 'uni03BC', 957 : 'nu', 958 : 'xi', 959 : 'omicron', 960 : 'pi', 961 : 'rho', 962 : 'uni03C2', 963 : 'sigma', 964 : 'tau', 965 : 'upsilon', 966 : 'phi', 967 : 'chi', 968 : 'psi', 969 : 'omega', 970 : 'iotadieresis', 971 : 'upsilondieresis', 972 : 'omicrontonos', 973 : 'upsilontonos', 974 : 'omegatonos', 1025 : 'afii10023', 1026 : 'afii10051', 1027 : 'afii10052', 1028 : 'afii10053', 1029 : 'afii10054', 1030 : 'afii10055', 1031 : 'afii10056', 1032 : 'afii10057', 1033 : 'afii10058', 1034 : 'afii10059', 1035 : 'afii10060', 1036 : 'afii10061', 1038 : 'afii10062', 1039 : 'afii10145', 1040 : 'afii10017', 1041 : 'afii10018', 1042 : 'afii10019', 1043 : 'afii10020', 1044 : 'afii10021', 1045 : 'afii10022', 1046 : 'afii10024', 1047 : 'afii10025', 1048 : 'afii10026', 1049 : 'afii10027', 1050 : 'afii10028', 1051 : 'afii10029', 1052 : 'afii10030', 1053 : 'afii10031', 1054 : 'afii10032', 1055 : 'afii10033', 1056 : 'afii10034', 1057 : 'afii10035', 1058 : 'afii10036', 1059 : 'afii10037', 1060 : 'afii10038', 1061 : 'afii10039', 1062 : 'afii10040', 1063 : 'afii10041', 1064 : 'afii10042', 1065 : 'afii10043', 1066 : 'afii10044', 1067 : 'afii10045', 1068 : 'afii10046', 1069 : 'afii10047', 1070 : 'afii10048', 1071 : 'afii10049', 1072 : 'afii10065', 1073 : 'afii10066', 1074 : 'afii10067', 1075 : 'afii10068', 1076 : 'afii10069', 1077 : 'afii10070', 1078 : 'afii10072', 1079 : 'afii10073', 1080 : 'afii10074', 1081 : 'afii10075', 1082 : 'afii10076', 1083 : 'afii10077', 1084 : 'afii10078', 1085 : 'afii10079', 1086 : 'afii10080', 1087 : 'afii10081', 1088 : 'afii10082', 1089 : 'afii10083', 1090 : 'afii10084', 1091 : 'afii10085', 1092 : 'afii10086', 1093 : 'afii10087', 1094 : 'afii10088', 1095 : 'afii10089', 1096 : 'afii10090', 1097 : 'afii10091', 1098 : 'afii10092', 1099 : 'afii10093', 1100 : 'afii10094', 1101 : 'afii10095', 1102 : 'afii10096', 1103 : 'afii10097', 1105 : 'afii10071', 1106 : 'afii10099', 1107 : 'afii10100', 1108 : 'afii10101', 1109 : 'afii10102', 1110 : 'afii10103', 1111 : 'afii10104', 1112 : 'afii10105', 1113 : 'afii10106', 1114 : 'afii10107', 1115 : 'afii10108', 1116 : 'afii10109', 1118 : 'afii10110', 1119 : 'afii10193', 1168 : 'afii10050', 1169 : 'afii10098', 1241 : 'afii10846', 7808 : 'Wgrave', 7809 : 'wgrave', 7810 : 'Wacute', 7811 : 'wacute', 7812 : 'Wdieresis', 7813 : 'wdieresis', 7922 : 'Ygrave', 7923 : 'ygrave', 8211 : 'endash', 8212 : 'emdash', 8216 : 'quoteleft', 8217 : 'quoteright', 8218 : 'quotesinglbase', 8220 : 'quotedblleft', 8221 : 'quotedblright', 8222 : 'quotedblbase', 8224 : 'dagger', 8225 : 'daggerdbl', 8226 : 'bullet', 8230 : 'ellipsis', 8240 : 'perthousand', 8249 : 'guilsinglleft', 8250 : 'guilsinglright', 8260 : 'fraction', 8304 : 'zerosuperior', 8308 : 'foursuperior', 8309 : 'fivesuperior', 8310 : 'sixsuperior', 8311 : 'sevensuperior', 8312 : 'eightsuperior', 8313 : 'ninesuperior', 8317 : 'parenleftsuperior', 8318 : 'parenrightsuperior', 8320 : 'zeroinferior', 8321 : 'oneinferior', 8322 : 'twoinferior', 8323 : 'threeinferior', 8324 : 'fourinferior', 8325 : 'fiveinferior', 8326 : 'sixinferior', 8327 : 'seveninferior', 8328 : 'eightinferior', 8329 : 'nineinferior', 8333 : 'parenleftinferior', 8334 : 'parenrightinferior', 8364 : 'Euro', 8467 : 'afii61289', 8470 : 'afii61352', 8482 : 'trademark', 8494 : 'estimated', 8706 : 'partialdiff', 8710 : 'uni2206', 8719 : 'product', 8721 : 'summation', 8722 : 'minus', 8730 : 'radical', 8734 : 'infinity', 8747 : 'integral', 8776 : 'approxequal', 8800 : 'notequal', 8804 : 'lessequal', 8805 : 'greaterequal', 9674 : 'lozenge', 57345 : 'f_f_j', 57346 : 'f_j', 61421 : 'uniEFED', 61422 : 'uniEFEE', 61425 : 'uniEFF1', 61426 : 'uniEFF2', 61427 : 'uniEFF3', 61429 : 'uniEFF5', 61431 : 'uniEFF7', 63017 : 'uniF629', 63018 : 'uniF62A', 63019 : 'uniF62B', 63020 : 'uniF62C', 63021 : 'uniF62D', 63022 : 'uniF62E', 63023 : 'uniF62F', 63024 : 'uniF630', 63025 : 'uniF631', 63026 : 'uniF632', 63027 : 'uniF633', 63028 : 'uniF634', 63032 : 'uniF638', 63033 : 'uniF639', 63034 : 'uniF63A', 63035 : 'uniF63B', 63036 : 'uniF63C', 63037 : 'uniF63D', 63038 : 'uniF63E', 63039 : 'uniF63F', 63040 : 'uniF640', 63041 : 'uniF641', 63042 : 'uniF642', 63043 : 'uniF643', 63044 : 'uniF644', 63045 : 'uniF645', 63046 : 'uniF646', 63047 : 'uniF647', 63048 : 'uniF648', 63049 : 'uniF649', 63050 : 'uniF64A', 63051 : 'uniF64B', 63052 : 'uniF64C', 63054 : 'uniF64E', 63055 : 'uniF64F', 63056 : 'uniF650', 63057 : 'uniF651', 63058 : 'uniF652', 63059 : 'uniF653', 63060 : 'uniF654', 63061 : 'uniF655', 63062 : 'uniF656', 63063 : 'uniF657', 63064 : 'uniF658', 63065 : 'uniF659', 63066 : 'uniF65A', 63067 : 'uniF65B', 63068 : 'uniF65C', 63069 : 'uniF65D', 63070 : 'uniF65E', 63071 : 'uniF65F', 63072 : 'uniF660', 63073 : 'uniF661', 63074 : 'uniF662', 63075 : 'uniF663', 63076 : 'uniF664', 63077 : 'uniF665', 63078 : 'uniF666', 63079 : 'uniF667', 63080 : 'uniF668', 63081 : 'uniF669', 63082 : 'uniF66A', 63083 : 'uniF66B', 63084 : 'uniF66C', 63150 : 'uniF6AE', 63151 : 'uniF6AF', 63152 : 'uniF6B0', 63153 : 'uniF6B1', 63154 : 'uniF6B2', 63155 : 'uniF6B3', 63156 : 'uniF6B4', 63157 : 'uniF6B5', 63158 : 'uniF6B6', 63159 : 'uniF6B7', 63160 : 'uniF6B8', 63161 : 'uniF6B9', 63162 : 'uniF6BA', 63163 : 'uniF6BB', 63164 : 'uniF6BC', 63165 : 'uniF6BD', 63171 : 'commaaccent', 63177 : 'Acute', 63178 : 'Caron', 63179 : 'Dieresis', 63180 : 'DieresisAcute', 63181 : 'DieresisGrave', 63182 : 'Grave', 63183 : 'Hungarumlaut', 63184 : 'Macron', 63185 : 'cyrBreve', 63186 : 'cyrFlex', 63187 : 'dblGrave', 63188 : 'cyrbreve', 63189 : 'cyrflex', 63190 : 'dblgrave', 63191 : 'dieresisacute', 63192 : 'dieresisgrave', 63196 : 'uniF6DC', 63199 : 'centinferior', 63200 : 'centsuperior', 63201 : 'commainferior', 63202 : 'commasuperior', 63203 : 'dollarinferior', 63204 : 'dollarsuperior', 63205 : 'hypheninferior', 63206 : 'hyphensuperior', 63207 : 'periodinferior', 63208 : 'periodsuperior', 63280 : 'zerooldstyle', 63281 : 'oneoldstyle', 63282 : 'twooldstyle', 63283 : 'threeoldstyle', 63284 : 'fouroldstyle', 63285 : 'fiveoldstyle', 63286 : 'sixoldstyle', 63287 : 'sevenoldstyle', 63288 : 'eightoldstyle', 63289 : 'nineoldstyle', 64256 : 'ff', 64257 : 'fi', 64258 : 'fl', 64259 : 'ffi', 64260 : 'ffl', } #: A dictionary mapping psNames to unicode values. psnames2unicodes = dict([[v, k] for k, v in unicode2psnames.items()]) #---------------- # unicode ranges #---------------- # https://www.microsoft.com/typography/otspec/os2.htm OS2_unicode_ranges_src = '''\ 0; Basic Latin; 0000; 007F; 1; Latin-1 Supplement; 0080; 00FF; 2; Latin Extended-A; 0100; 017F; 3; Latin Extended-B; 0180; 024F; 4; IPA Extensions; 0250; 02AF; 4; Phonetic Extensions; 1D00; 1D7F; 4; Phonetic Extensions Supplement; 1D80; 1DBF; 5; Spacing Modifier Letters; 02B0; 02FF; 5; Modifier Tone Letters; A700; A71F; 6; Combining Diacritical Marks; 0300; 036F; 6; Combining Diacritical Marks Supplement; 1DC0; 1DFF; 7; Greek and Coptic; 0370; 03FF; 8; Coptic; 2C80; 2CFF; 9; Cyrillic; 0400; 04FF; 9; Cyrillic Supplement; 0500; 052F; 9; Cyrillic Extended-A; 2DE0; 2DFF; 9; Cyrillic Extended-B; A640; A69F; 10; Armenian; 0530; 058F; 11; Hebrew; 0590; 05FF; 12; Vai; A500; A63F; 13; Arabic; 0600; 06FF; 13; Arabic Supplement; 0750; 077F; 14; NKo; 07C0; 07FF; 15; Devanagari; 0900; 097F; 16; Bengali; 0980; 09FF; 17; Gurmukhi; 0A00; 0A7F; 18; Gujarati; 0A80; 0AFF; 19; Oriya; 0B00; 0B7F; 20; Tamil; 0B80; 0BFF; 21; Telugu; 0C00; 0C7F; 22; Kannada; 0C80; 0CFF; 23; Malayalam; 0D00; 0D7F; 24; Thai; 0E00; 0E7F; 25; Lao; 0E80; 0EFF; 26; Georgian; 10A0; 10FF; 26; Georgian Supplement; 2D00; 2D2F; 27; Balinese; 1B00; 1B7F; 28; Hangul Jamo; 1100; 11FF; 29; Latin Extended Additional; 1E00; 1EFF; 29; Latin Extended-C; 2C60; 2C7F; 29; Latin Extended-D; A720; A7FF; 30; Greek Extended; 1F00; 1FFF; 31; General Punctuation; 2000; 206F; 31; Supplemental Punctuation; 2E00; 2E7F; 32; Superscripts And Subscripts; 2070; 209F; 33; Currency Symbols; 20A0; 20CF; 34; Combining Diacritical Marks For Symbols; 20D0; 20FF; 35; Letterlike Symbols; 2100; 214F; 36; Number Forms; 2150; 218F; 37; Arrows; 2190; 21FF; 37; Supplemental Arrows-A; 27F0; 27FF; 37; Supplemental Arrows-B; 2900; 297F; 37; Miscellaneous Symbols and Arrows; 2B00; 2BFF; 38; Mathematical Operators; 2200; 22FF; 38; Supplemental Mathematical Operators; 2A00; 2AFF; 38; Miscellaneous Mathematical Symbols-A; 27C0; 27EF; 38; Miscellaneous Mathematical Symbols-B; 2980; 29FF; 39; Miscellaneous Technical; 2300; 23FF; 40; Control Pictures; 2400; 243F; 41; Optical Character Recognition; 2440; 245F; 42; Enclosed Alphanumerics; 2460; 24FF; 43; Box Drawing; 2500; 257F; 44; Block Elements; 2580; 259F; 45; Geometric Shapes; 25A0; 25FF; 46; Miscellaneous Symbols; 2600; 26FF; 47; Dingbats; 2700; 27BF; 48; CJK Symbols And Punctuation; 3000; 303F; 49; Hiragana; 3040; 309F; 50; Katakana; 30A0; 30FF; 50; Katakana Phonetic Extensions; 31F0; 31FF; 51; Bopomofo; 3100; 312F; 51; Bopomofo Extended; 31A0; 31BF; 52; Hangul Compatibility Jamo; 3130; 318F; 53; Phags-pa; A840; A87F; 54; Enclosed CJK Letters And Months; 3200; 32FF; 55; CJK Compatibility; 3300; 33FF; 56; Hangul Syllables; AC00; D7AF; 57; Non-Plane 0 *; D800; DFFF; 58; Phoenician; 10900; 1091F; 59; CJK Unified Ideographs; 4E00; 9FFF; 59; CJK Radicals Supplement; 2E80; 2EFF; 59; Kangxi Radicals; 2F00; 2FDF; 59; Ideographic Description Characters; 2FF0; 2FFF; 59; CJK Unified Ideographs Extension A; 3400; 4DBF; 59; CJK Unified Ideographs Extension B; 20000; 2A6DF; 59; Kanbun; 3190; 319F; 60; Private Use Area; E000; F8FF; 61; CJK Strokes; 31C0; 31EF; 61; CJK Compatibility Ideographs; F900; FAFF; 61; CJK Compatibility Ideographs Supplement; 2F800; 2FA1F; 62; Alphabetic Presentation Forms; FB00; FB4F; 63; Arabic Presentation Forms-A; FB50; FDFF; 64; Combining Half Marks; FE20; FE2F; 65; Vertical Forms; FE10; FE1F; 65; CJK Compatibility Forms; FE30; FE4F; 66; Small Form Variants; FE50; FE6F; 67; Arabic Presentation Forms-B; FE70; FEFF; 68; Halfwidth And Fullwidth Forms; FF00; FFEF; 69; Specials; FFF0; FFFF; 70; Tibetan; 0F00; 0FFF; 71; Syriac; 0700; 074F; 72; Thaana; 0780; 07BF; 73; Sinhala; 0D80; 0DFF; 74; Myanmar; 1000; 109F; 75; Ethiopic; 1200; 137F; 75; Ethiopic Supplement; 1380; 139F; 75; Ethiopic Extended; 2D80; 2DDF; 76; Cherokee; 13A0; 13FF; 77; Unified Canadian Aboriginal Syllabics; 1400; 167F; 78; Ogham; 1680; 169F; 79; Runic; 16A0; 16FF; 80; Khmer; 1780; 17FF; 80; Khmer Symbols; 19E0; 19FF; 81; Mongolian; 1800; 18AF; 82; Braille Patterns; 2800; 28FF; 83; Yi Syllables; A000; A48F; 83; Yi Radicals; A490; A4CF; 84; Tagalog; 1700; 171F; 84; Hanunoo; 1720; 173F; 84; Buhid; 1740; 175F; 84; Tagbanwa; 1760; 177F; 85; Old Italic; 10300; 1032F; 86; Gothic; 10330; 1034F; 87; Deseret; 10400; 1044F; 88; Byzantine Musical Symbols; 1D000; 1D0FF; 88; Musical Symbols; 1D100; 1D1FF; 88; Ancient Greek Musical Notation; 1D200; 1D24F; 89; Mathematical Alphanumeric Symbols; 1D400; 1D7FF; 90; Private Use (plane 15); FF000; FFFFD; 90; Private Use (plane 16); 100000; 10FFFD; 91; Variation Selectors; FE00; FE0F; 91; Variation Selectors Supplement; E0100; E01EF; 92; Tags; E0000; E007F; 93; Limbu; 1900; 194F; 94; Tai Le; 1950; 197F; 95; New Tai Lue; 1980; 19DF; 96; Buginese; 1A00; 1A1F; 97; Glagolitic; 2C00; 2C5F; 98; Tifinagh; 2D30; 2D7F; 99; Yijing Hexagram Symbols; 4DC0; 4DFF; 100; Syloti Nagri; A800; A82F; 101; Linear B Syllabary; 10000; 1007F; 101; Linear B Ideograms; 10080; 100FF; 101; Aegean Numbers; 10100; 1013F; 102; Ancient Greek Numbers; 10140; 1018F; 103; Ugaritic; 10380; 1039F; 104; Old Persian; 103A0; 103DF; 105; Shavian; 10450; 1047F; 106; Osmanya; 10480; 104AF; 107; Cypriot Syllabary; 10800; 1083F; 108; Kharoshthi; 10A00; 10A5F; 109; Tai Xuan Jing Symbols; 1D300; 1D35F; 110; Cuneiform; 12000; 123FF; 110; Cuneiform Numbers and Punctuation; 12400; 1247F; 111; Counting Rod Numerals; 1D360; 1D37F; 112; Sundanese; 1B80; 1BBF; 113; Lepcha; 1C00; 1C4F; 114; <NAME>; 1C50; 1C7F; 115; Saurashtra; A880; A8DF; 116; <NAME>; A900; A92F; 117; Rejang; A930; A95F; 118; Cham; AA00; AA5F; 119; Ancient Symbols; 10190; 101CF; 120; Phaistos Disc; 101D0; 101FF; 121; Carian; 102A0; 102DF; 121; Lycian; 10280; 1029F; 121; Lydian; 10920; 1093F; 122; <NAME>; 1F030; 1F09F; 122; <NAME>; 1F000; 1F02F; ''' OS2_unicode_ranges = OrderedDict() for line in OS2_unicode_ranges_src.split('\n'): if len(line.split(';')) == 5: bit, unicode_range, block_start, block_end = line.split(';')[:4] OS2_unicode_ranges[unicode_range.strip()] = [int(bit), (block_start.strip(), block_end.strip())]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 518, 29882, 29962, 298, 24183, 29906, 29889, 7576, 29889, 2523, 356, 13, 13, 3166, 16250, 1053, 8170, 287, 21533, 13, 13, 12008, 24183, 304, 664, 411, 23862, 29892, 3588, 330, 27026, 2983, 304, 15090, 29914, 2523, 356, 2992, 29889, 12008, 13, 13, 1753, 2821, 29918, 2523, 2631, 29898, 5657, 1125, 13, 1678, 14550, 15941, 443, 293, 2631, 515, 599, 330, 27026, 29879, 297, 278, 4079, 29889, 12008, 13, 1678, 363, 330, 297, 4079, 29901, 13, 4706, 330, 29889, 2523, 2631, 353, 5159, 13, 1678, 4079, 29889, 5504, 580, 13, 13, 1753, 4469, 29918, 2523, 2631, 29898, 5657, 29892, 2888, 29918, 2523, 2631, 3790, 29913, 1125, 13, 1678, 14550, 28451, 19574, 731, 29104, 1819, 363, 599, 330, 27026, 29879, 297, 278, 4079, 29889, 12008, 13, 1678, 2821, 29918, 2523, 2631, 29898, 5657, 29897, 13, 1678, 363, 330, 297, 4079, 29901, 13, 4706, 565, 330, 338, 451, 6213, 29901, 13, 9651, 4469, 29918, 2523, 356, 29898, 29887, 29892, 2888, 29918, 2523, 2631, 29897, 13, 1678, 4079, 29889, 5504, 580, 13, 13, 1753, 4469, 29918, 2523, 356, 29898, 29887, 29892, 2888, 29918, 2523, 2631, 3790, 29913, 1125, 13, 1678, 14550, 13, 1678, 15854, 19574, 731, 29104, 995, 29898, 29879, 29897, 363, 278, 6790, 330, 27026, 29889, 13, 13, 1678, 450, 1158, 3913, 6417, 29877, 29943, 370, 29915, 29879, 4954, 16808, 561, 29889, 6921, 2525, 293, 2631, 2555, 29952, 740, 363, 3619, 330, 27026, 29879, 29892, 322, 1614, 1860, 372, 411, 5684, 1819, 515, 4954, 2523, 2631, 29918, 17833, 29952, 1412, 13, 13, 1678, 14550, 13, 13, 1678, 565, 330, 29889, 978, 338, 451, 6213, 29901, 13, 13, 4706, 396, 4386, 525, 3909, 29915, 2983, 13, 4706, 565, 330, 29889, 978, 7503, 29941, 29962, 1275, 376, 3909, 29908, 322, 7431, 29898, 29887, 29889, 978, 29897, 297, 518, 29955, 29892, 29871, 29947, 5387, 13, 9651, 274, 353, 330, 29889, 978, 13, 9651, 330, 29889, 2523, 356, 353, 938, 29898, 29883, 29889, 5451, 877, 3909, 29861, 29896, 1402, 29871, 29896, 29953, 29897, 13, 13, 4706, 396, 4386, 4805, 4251, 13, 4706, 25342, 330, 29889, 978, 297, 443, 293, 2631, 29918, 17833, 29889, 8149, 7295, 13, 9651, 318, 1231, 353, 525, 3909, 29995, 29879, 29915, 1273, 443, 293, 2631, 29918, 17833, 29961, 29887, 29889, 978, 29962, 13, 9651, 330, 29889, 2523, 356, 353, 29104, 29918, 20970, 710, 29918, 517, 29918, 524, 29898, 29884, 1231, 29897, 13, 13, 4706, 396, 671, 4469, 29104, 363, 4129, 1683, 13, 4706, 25342, 2888, 29918, 2523, 2631, 29889, 657, 29898, 29887, 29889, 978, 29897, 338, 451, 6213, 29901, 13, 9651, 318, 1231, 353, 525, 3909, 29995, 29879, 29915, 1273, 2888, 29918, 2523, 2631, 29961, 29887, 29889, 978, 29962, 13, 9651, 330, 29889, 2523, 356, 353, 29104, 29918, 20970, 710, 29918, 517, 29918, 524, 29898, 29884, 1231, 29897, 13, 4706, 1683, 29901, 13, 9651, 330, 29889, 6921, 2525, 293, 2631, 580, 13, 13, 4706, 330, 29889, 5504, 580, 13, 13, 29937, 2683, 9072, 489, 13, 29937, 29104, 29899, 517, 29899, 1807, 11301, 13, 29937, 2683, 9072, 489, 13, 13, 1753, 29104, 29918, 524, 29918, 517, 29918, 20970, 710, 29898, 524, 2525, 12858, 29892, 903, 29900, 29916, 29922, 8824, 29892, 443, 29875, 29922, 8824, 1125, 13, 1678, 14550, 13, 1678, 1281, 369, 1372, 29104, 11920, 304, 15090, 1943, 29883, 3039, 29889, 13, 13, 1678, 2823, 884, 278, 11837, 740, 4954, 2523, 356, 29918, 20970, 710, 29918, 517, 29918, 524, 29952, 1412, 13, 13, 1678, 3940, 393, 4954, 16808, 561, 29889, 2523, 2631, 16159, 338, 263, 1051, 313, 29874, 330, 27026, 508, 505, 1784, 443, 293, 2631, 511, 577, 591, 817, 304, 1209, 278, 937, 995, 871, 29889, 13, 13, 1678, 450, 13136, 4128, 4954, 3909, 16159, 322, 4954, 29918, 29900, 29916, 16159, 788, 278, 18067, 10944, 267, 29889, 13, 13, 1678, 14550, 13, 13, 1678, 15090, 2525, 12858, 353, 11860, 29990, 1642, 29880, 17010, 703, 29900, 29916, 1159, 1273, 938, 2525, 12858, 13, 1678, 15090, 2525, 12858, 353, 376, 29900, 29908, 334, 313, 29946, 448, 7431, 29898, 20970, 2525, 12858, 876, 718, 15090, 2525, 12858, 13, 13, 1678, 565, 903, 29900, 29916, 29901, 13, 4706, 736, 376, 29900, 29916, 29995, 29879, 29908, 1273, 15090, 2525, 12858, 13, 1678, 25342, 443, 29875, 29901, 13, 4706, 736, 376, 3909, 29995, 29879, 29908, 1273, 15090, 2525, 12858, 13, 13, 1678, 736, 15090, 2525, 12858, 13, 13, 1753, 29104, 29918, 20970, 710, 29918, 517, 29918, 524, 29898, 20970, 2525, 12858, 29892, 5191, 8110, 29922, 5574, 1125, 13, 1678, 14550, 13, 1678, 1281, 369, 1372, 263, 29104, 15090, 1943, 29883, 3039, 995, 964, 385, 6043, 29889, 13, 13, 1678, 739, 947, 3721, 278, 11837, 310, 4954, 2523, 356, 29918, 524, 29918, 517, 29918, 20970, 710, 29952, 1412, 13, 13, 1678, 14550, 13, 13, 1678, 565, 5191, 8110, 29901, 13, 4706, 736, 938, 29898, 20970, 2525, 12858, 29889, 6506, 703, 3909, 3284, 4968, 29871, 29896, 29953, 29897, 13, 13, 1678, 736, 938, 29898, 20970, 2525, 12858, 29889, 29880, 17010, 703, 29916, 4968, 29871, 29896, 29953, 29897, 13, 13, 29937, 2683, 9072, 29899, 13, 29937, 5684, 29104, 611, 27775, 13, 29937, 2683, 9072, 29899, 13, 13, 29937, 29901, 319, 9657, 6943, 5684, 421, 16808, 561, 1170, 29952, 304, 421, 2523, 356, 29952, 611, 27775, 29889, 13, 2523, 2631, 29918, 17833, 353, 426, 13, 13, 1678, 396, 10410, 25677, 301, 29883, 13, 1678, 525, 29874, 331, 562, 1617, 29915, 4706, 584, 525, 29900, 29896, 29923, 29941, 742, 13, 1678, 525, 6333, 2222, 29926, 29915, 4706, 584, 525, 29900, 29906, 29941, 29955, 742, 13, 1678, 525, 816, 2766, 29915, 965, 584, 525, 29900, 29906, 29945, 29929, 742, 13, 1678, 525, 962, 562, 1617, 29915, 308, 584, 525, 29900, 29906, 29941, 29941, 742, 13, 1678, 525, 16137, 1803, 29915, 3986, 584, 525, 29900, 29900, 4037, 742, 13, 13, 1678, 396, 10410, 25677, 318, 29883, 13, 1678, 525, 29909, 6026, 562, 1617, 29915, 4706, 584, 525, 29900, 29896, 29923, 29906, 742, 13, 1678, 525, 4504, 2766, 29915, 965, 584, 525, 29900, 29896, 29947, 29943, 742, 13, 1678, 525, 26214, 4878, 16137, 1803, 29915, 584, 525, 29896, 29923, 29929, 29923, 742, 13, 13, 1678, 396, 14172, 3698, 13, 1678, 525, 7241, 29915, 795, 584, 525, 18426, 29900, 29896, 742, 13, 1678, 525, 1579, 29915, 795, 584, 525, 18426, 29900, 29906, 742, 13, 1678, 525, 29888, 29918, 29888, 29915, 632, 584, 525, 18426, 29900, 29900, 742, 13, 1678, 525, 29888, 29918, 29888, 29918, 29875, 29915, 965, 584, 525, 18426, 29900, 29941, 742, 13, 1678, 525, 29888, 29918, 29888, 29918, 29880, 29915, 965, 584, 525, 18426, 29900, 29946, 742, 13, 13, 1678, 396, 330, 7285, 15283, 13, 1678, 525, 5268, 29915, 965, 584, 525, 29906, 29906, 29900, 29953, 742, 396, 29871, 29900, 29941, 29929, 29946, 13, 1678, 525, 5981, 29915, 965, 584, 525, 29906, 29896, 29906, 29953, 742, 396, 29871, 29900, 29941, 29909, 29929, 13, 1678, 525, 2589, 29915, 795, 584, 525, 29900, 29900, 29933, 29945, 742, 396, 29871, 29900, 29941, 5371, 13, 13, 1678, 396, 2428, 18930, 13, 1678, 525, 3298, 359, 14805, 1611, 29915, 1678, 584, 525, 29906, 29900, 29955, 29900, 742, 13, 1678, 525, 2873, 14805, 1611, 29915, 268, 584, 525, 29900, 29900, 29933, 29929, 742, 13, 1678, 525, 7516, 359, 14805, 1611, 29915, 268, 584, 525, 29900, 29900, 29933, 29906, 742, 13, 1678, 525, 386, 11003, 14805, 1611, 29915, 259, 584, 525, 29900, 29900, 29933, 29941, 742, 13, 1678, 525, 17823, 9136, 1611, 29915, 1678, 584, 525, 29906, 29900, 29955, 29946, 742, 13, 1678, 525, 29888, 3145, 14805, 1611, 29915, 1678, 584, 525, 29906, 29900, 29955, 29945, 742, 13, 1678, 525, 28319, 9136, 1611, 29915, 268, 584, 525, 29906, 29900, 29955, 29953, 742, 13, 1678, 525, 344, 9852, 14805, 1611, 29915, 259, 584, 525, 29906, 29900, 29955, 29955, 742, 13, 1678, 525, 29872, 523, 9136, 1611, 29915, 259, 584, 525, 29906, 29900, 29955, 29947, 742, 13, 1678, 525, 29876, 1475, 14805, 1611, 29915, 1678, 584, 525, 29906, 29900, 29955, 29929, 742, 13, 13, 1678, 396, 10115, 18930, 13, 1678, 525, 9171, 262, 571, 1611, 29915, 1678, 584, 525, 29906, 29900, 29947, 29900, 742, 13, 1678, 525, 650, 262, 571, 1611, 29915, 268, 584, 525, 29906, 29900, 29947, 29896, 742, 13, 1678, 525, 10184, 262, 571, 1611, 29915, 268, 584, 525, 29906, 29900, 29947, 29906, 742, 13, 1678, 525, 17536, 262, 571, 1611, 29915, 259, 584, 525, 29906, 29900, 29947, 29941, 742, 13, 1678, 525, 17823, 262, 571, 1611, 29915, 1678, 584, 525, 29906, 29900, 29947, 29946, 742, 13, 1678, 525, 20818, 262, 571, 1611, 29915, 1678, 584, 525, 29906, 29900, 29947, 29945, 742, 13, 1678, 525, 28319, 262, 571, 1611, 29915, 268, 584, 525, 29906, 29900, 29947, 29953, 742, 13, 1678, 525, 344, 854, 262, 571, 1611, 29915, 259, 584, 525, 29906, 29900, 29947, 29955, 742, 13, 1678, 525, 29872, 523, 262, 571, 1611, 29915, 259, 584, 525, 29906, 29900, 29947, 29947, 742, 13, 1678, 525, 29876, 457, 262, 571, 1611, 29915, 1678, 584, 525, 29906, 29900, 29947, 29929, 742, 13, 13, 1678, 396, 8162, 13, 1678, 525, 575, 3535, 29915, 308, 584, 525, 29906, 29900, 29900, 29906, 742, 13, 1678, 525, 331, 3493, 29915, 308, 584, 525, 29906, 29900, 29900, 29941, 742, 13, 1678, 525, 9877, 3493, 29915, 308, 584, 525, 29900, 29900, 29909, 29900, 742, 13, 1678, 525, 29882, 1466, 3493, 29915, 539, 584, 525, 29906, 29900, 29900, 29909, 742, 13, 1678, 525, 386, 262, 3493, 29915, 539, 584, 525, 29906, 29900, 29900, 29929, 742, 13, 1678, 525, 27996, 3493, 29915, 418, 584, 525, 29906, 29900, 29900, 29946, 742, 13, 1678, 525, 1003, 1973, 3535, 29915, 268, 584, 525, 29906, 29900, 29900, 29955, 742, 13, 1678, 525, 3298, 340, 1313, 3493, 29915, 29871, 584, 525, 29906, 29900, 29900, 29933, 742, 13, 13, 1678, 396, 29299, 1035, 1237, 13, 1678, 525, 3874, 345, 17743, 29915, 539, 584, 525, 29900, 29941, 29900, 29900, 742, 13, 1678, 525, 562, 1082, 17743, 29915, 539, 584, 525, 29900, 29941, 29900, 29896, 742, 13, 1678, 525, 6034, 398, 16041, 17743, 29915, 29871, 584, 525, 29900, 29941, 29900, 29906, 742, 13, 1678, 525, 5891, 17743, 29915, 539, 584, 525, 29900, 29941, 29900, 29941, 742, 13, 1678, 525, 29881, 631, 6656, 17743, 29915, 1678, 584, 525, 29900, 29941, 29900, 29947, 742, 13, 1678, 525, 6333, 22503, 17743, 29915, 1678, 584, 525, 29900, 29941, 29906, 29941, 742, 13, 1678, 525, 1133, 2911, 17743, 29915, 268, 584, 525, 29900, 29941, 29906, 29955, 742, 13, 13, 1678, 396, 564, 5727, 13, 1678, 525, 2936, 1563, 29915, 632, 584, 525, 29906, 29896, 29929, 29900, 742, 13, 1678, 525, 2936, 786, 29915, 1669, 584, 525, 29906, 29896, 29929, 29896, 742, 13, 1678, 525, 2936, 1266, 29915, 9651, 584, 525, 29906, 29896, 29929, 29906, 742, 13, 1678, 525, 2936, 3204, 29915, 632, 584, 525, 29906, 29896, 29929, 29941, 742, 13, 1678, 525, 2936, 25874, 509, 523, 29915, 4706, 584, 525, 29906, 29896, 29929, 29946, 742, 13, 1678, 525, 2936, 786, 3204, 29915, 965, 584, 525, 29906, 29896, 29929, 29945, 742, 13, 1678, 525, 2936, 29884, 552, 615, 29915, 965, 584, 525, 29906, 29896, 29929, 29953, 742, 13, 1678, 525, 2936, 29884, 558, 523, 29915, 3986, 584, 525, 29906, 29896, 29929, 29955, 742, 13, 1678, 525, 2936, 3204, 1266, 29915, 4706, 584, 525, 29906, 29896, 29929, 29947, 742, 13, 1678, 525, 2936, 3204, 1563, 29915, 308, 584, 525, 29906, 29896, 29929, 29929, 742, 13, 13, 1678, 396, 25677, 1035, 14927, 301, 29883, 13, 1678, 525, 328, 327, 22503, 29915, 632, 584, 525, 29896, 29923, 29909, 29896, 742, 13, 1678, 525, 4362, 562, 1082, 29915, 9651, 584, 525, 29900, 29896, 18426, 742, 13, 1678, 525, 287, 327, 22503, 29915, 632, 584, 525, 29896, 25752, 29929, 742, 13, 1678, 525, 300, 7154, 29915, 18884, 584, 525, 29896, 25752, 29928, 742, 13, 1678, 525, 29887, 4287, 265, 29915, 18884, 584, 525, 29900, 29896, 29923, 29955, 742, 13, 1678, 525, 333, 327, 22503, 29915, 632, 584, 525, 29896, 11206, 29933, 742, 13, 1678, 525, 299, 327, 22503, 29915, 632, 584, 525, 29896, 29923, 29946, 29955, 742, 13, 1678, 525, 29876, 20849, 1563, 29915, 632, 584, 525, 29900, 29906, 29955, 29906, 742, 13, 1678, 525, 25475, 22503, 29915, 632, 584, 525, 29896, 29923, 6530, 742, 13, 1678, 525, 29877, 468, 650, 29895, 29915, 1669, 584, 525, 29900, 29896, 25752, 742, 13, 1678, 525, 4928, 327, 22503, 29915, 632, 584, 525, 29896, 29923, 29953, 29941, 742, 13, 1678, 525, 566, 327, 22503, 29915, 632, 584, 525, 29896, 17896, 29945, 742, 13, 1678, 525, 962, 562, 1617, 29915, 1669, 584, 525, 29900, 29906, 29941, 29941, 742, 13, 1678, 525, 29891, 5891, 29915, 18884, 584, 525, 29896, 29638, 29929, 742, 13, 13, 1678, 396, 25677, 1035, 14927, 318, 29883, 13, 1678, 525, 3253, 327, 22503, 29915, 632, 584, 525, 29896, 29923, 29909, 29900, 742, 13, 1678, 525, 1433, 292, 562, 1082, 29915, 9651, 584, 525, 29900, 29896, 4519, 742, 13, 1678, 525, 3853, 327, 22503, 29915, 632, 584, 525, 29896, 25752, 29947, 742, 13, 1678, 525, 29923, 5891, 29915, 18884, 584, 525, 29896, 29923, 5371, 742, 13, 1678, 525, 29954, 4287, 265, 29915, 18884, 584, 525, 29900, 29896, 29923, 29953, 742, 13, 1678, 525, 1204, 327, 22503, 29915, 632, 584, 525, 29896, 29923, 5454, 742, 13, 1678, 525, 29940, 6333, 22503, 29915, 632, 584, 525, 29896, 29923, 29946, 29953, 742, 13, 1678, 525, 29940, 20849, 1563, 29915, 632, 584, 525, 29900, 29896, 29929, 29928, 742, 13, 1678, 525, 29949, 6333, 22503, 29915, 632, 584, 525, 29896, 29923, 4174, 742, 13, 1678, 525, 29949, 468, 650, 29895, 29915, 1669, 584, 525, 29900, 29896, 29923, 29909, 742, 13, 1678, 525, 29903, 6333, 22503, 29915, 632, 584, 525, 29896, 29923, 29953, 29906, 742, 13, 1678, 525, 29965, 6333, 22503, 29915, 632, 584, 525, 29896, 17896, 29946, 742, 13, 1678, 525, 29979, 8628, 1617, 29915, 1669, 584, 525, 29900, 29906, 29941, 29906, 742, 13, 1678, 525, 29979, 5891, 29915, 18884, 584, 525, 29896, 29638, 29947, 742, 13, 13, 1678, 396, 15072, 2992, 13, 1678, 525, 18850, 6891, 29915, 4706, 584, 525, 29906, 29906, 29896, 29929, 742, 13, 1678, 525, 1579, 272, 262, 29915, 18884, 584, 525, 29900, 29896, 29929, 29906, 742, 13, 13, 29913, 13, 13, 29937, 2683, 9072, 29899, 13, 29937, 29104, 304, 6529, 8659, 611, 27775, 13, 29937, 2683, 9072, 29899, 13, 13, 29937, 29901, 319, 8600, 10417, 29104, 1819, 304, 6529, 8659, 29889, 13, 2523, 356, 29906, 567, 7039, 353, 426, 13, 1678, 6213, 584, 15300, 1333, 1753, 742, 13, 268, 29941, 29906, 584, 525, 3493, 742, 13, 268, 29941, 29941, 584, 525, 735, 15719, 742, 13, 268, 29941, 29946, 584, 525, 339, 5715, 2204, 742, 13, 268, 29941, 29945, 584, 525, 20326, 647, 742, 13, 268, 29941, 29953, 584, 525, 29881, 26810, 742, 13, 268, 29941, 29955, 584, 525, 25376, 742, 13, 268, 29941, 29947, 584, 525, 1160, 414, 392, 742, 13, 268, 29941, 29929, 584, 525, 339, 4769, 292, 280, 742, 13, 268, 29946, 29900, 584, 525, 862, 264, 1563, 742, 13, 268, 29946, 29896, 584, 525, 862, 264, 1266, 742, 13, 268, 29946, 29906, 584, 525, 1901, 3873, 742, 13, 268, 29946, 29941, 584, 525, 11242, 742, 13, 268, 29946, 29946, 584, 525, 510, 655, 742, 13, 268, 29946, 29945, 584, 525, 5819, 9789, 742, 13, 268, 29946, 29953, 584, 525, 19145, 742, 13, 268, 29946, 29955, 584, 525, 17057, 742, 13, 268, 29946, 29947, 584, 525, 9171, 742, 13, 268, 29946, 29929, 584, 525, 650, 742, 13, 268, 29945, 29900, 584, 525, 10184, 742, 13, 268, 29945, 29896, 584, 525, 17536, 742, 13, 268, 29945, 29906, 584, 525, 17823, 742, 13, 268, 29945, 29941, 584, 525, 20818, 742, 13, 268, 29945, 29946, 584, 525, 28319, 742, 13, 268, 29945, 29945, 584, 525, 344, 854, 742, 13, 268, 29945, 29953, 584, 525, 29872, 523, 742, 13, 268, 29945, 29955, 584, 525, 29876, 457, 742, 13, 268, 29945, 29947, 584, 525, 17308, 742, 13, 268, 29945, 29929, 584, 525, 12846, 5283, 265, 742, 13, 268, 29953, 29900, 584, 525, 2222, 742, 13, 268, 29953, 29896, 584, 525, 11745, 742, 13, 268, 29953, 29906, 584, 525, 7979, 1008, 742, 13, 268, 29953, 29941, 584, 525, 12470, 742, 13, 268, 29953, 29946, 584, 525, 271, 742, 13, 268, 29953, 29945, 584, 525, 29909, 742, 13, 268, 29953, 29953, 584, 525, 29933, 742, 13, 268, 29953, 29955, 584, 525, 29907, 742, 13, 268, 29953, 29947, 584, 525, 29928, 742, 13, 268, 29953, 29929, 584, 525, 29923, 742, 13, 268, 29955, 29900, 584, 525, 29943, 742, 13, 268, 29955, 29896, 584, 525, 29954, 742, 13, 268, 29955, 29906, 584, 525, 29950, 742, 13, 268, 29955, 29941, 584, 525, 29902, 742, 13, 268, 29955, 29946, 584, 525, 29967, 742, 13, 268, 29955, 29945, 584, 525, 29968, 742, 13, 268, 29955, 29953, 584, 525, 29931, 742, 13, 268, 29955, 29955, 584, 525, 29924, 742, 13, 268, 29955, 29947, 584, 525, 29940, 742, 13, 268, 29955, 29929, 584, 525, 29949, 742, 13, 268, 29947, 29900, 584, 525, 29925, 742, 13, 268, 29947, 29896, 584, 525, 29984, 742, 13, 268, 29947, 29906, 584, 525, 29934, 742, 13, 268, 29947, 29941, 584, 525, 29903, 742, 13, 268, 29947, 29946, 584, 525, 29911, 742, 13, 268, 29947, 29945, 584, 525, 29965, 742, 13, 268, 29947, 29953, 584, 525, 29963, 742, 13, 268, 29947, 29955, 584, 525, 29956, 742, 13, 268, 29947, 29947, 584, 525, 29990, 742, 13, 268, 29947, 29929, 584, 525, 29979, 742, 13, 268, 29929, 29900, 584, 525, 29999, 742, 13, 268, 29929, 29896, 584, 525, 2634, 3522, 1563, 742, 13, 268, 29929, 29906, 584, 525, 1627, 17057, 742, 13, 268, 29929, 29941, 584, 525, 2634, 3522, 1266, 742, 13, 268, 29929, 29946, 584, 525, 294, 455, 293, 2076, 398, 742, 13, 268, 29929, 29945, 584, 525, 870, 414, 3221, 742, 13, 268, 29929, 29953, 584, 525, 3874, 345, 742, 13, 268, 29929, 29955, 584, 525, 29874, 742, 13, 268, 29929, 29947, 584, 525, 29890, 742, 13, 268, 29929, 29929, 584, 525, 29883, 742, 13, 268, 29896, 29900, 29900, 584, 525, 29881, 742, 13, 268, 29896, 29900, 29896, 584, 525, 29872, 742, 13, 268, 29896, 29900, 29906, 584, 525, 29888, 742, 13, 268, 29896, 29900, 29941, 584, 525, 29887, 742, 13, 268, 29896, 29900, 29946, 584, 525, 29882, 742, 13, 268, 29896, 29900, 29945, 584, 525, 29875, 742, 13, 268, 29896, 29900, 29953, 584, 525, 29926, 742, 13, 268, 29896, 29900, 29955, 584, 525, 29895, 742, 13, 268, 29896, 29900, 29947, 584, 525, 29880, 742, 13, 268, 29896, 29900, 29929, 584, 525, 29885, 742, 13, 268, 29896, 29896, 29900, 584, 525, 29876, 742, 13, 268, 29896, 29896, 29896, 584, 525, 29877, 742, 13, 268, 29896, 29896, 29906, 584, 525, 29886, 742, 13, 268, 29896, 29896, 29941, 584, 525, 29939, 742, 13, 268, 29896, 29896, 29946, 584, 525, 29878, 742, 13, 268, 29896, 29896, 29945, 584, 525, 29879, 742, 13, 268, 29896, 29896, 29953, 584, 525, 29873, 742, 13, 268, 29896, 29896, 29955, 584, 525, 29884, 742, 13, 268, 29896, 29896, 29947, 584, 525, 29894, 742, 13, 268, 29896, 29896, 29929, 584, 525, 29893, 742, 13, 268, 29896, 29906, 29900, 584, 525, 29916, 742, 13, 268, 29896, 29906, 29896, 584, 525, 29891, 742, 13, 268, 29896, 29906, 29906, 584, 525, 29920, 742, 13, 268, 29896, 29906, 29941, 584, 525, 13842, 1563, 742, 13, 268, 29896, 29906, 29946, 584, 525, 1646, 742, 13, 268, 29896, 29906, 29945, 584, 525, 29890, 945, 261, 523, 742, 13, 268, 29896, 29906, 29953, 584, 525, 294, 455, 277, 7154, 742, 13, 268, 29896, 29953, 29896, 584, 525, 735, 15719, 3204, 742, 13, 268, 29896, 29953, 29906, 584, 525, 1760, 742, 13, 268, 29896, 29953, 29941, 584, 525, 2475, 1847, 742, 13, 268, 29896, 29953, 29946, 584, 525, 26095, 742, 13, 268, 29896, 29953, 29945, 584, 525, 11771, 742, 13, 268, 29896, 29953, 29953, 584, 525, 6729, 1717, 1646, 742, 13, 268, 29896, 29953, 29955, 584, 525, 2042, 742, 13, 268, 29896, 29953, 29947, 584, 525, 29881, 631, 6656, 742, 13, 268, 29896, 29953, 29929, 584, 525, 8552, 1266, 742, 13, 268, 29896, 29955, 29900, 584, 525, 536, 29888, 331, 262, 457, 742, 13, 268, 29896, 29955, 29896, 584, 525, 2543, 1924, 14817, 1563, 742, 13, 268, 29896, 29955, 29906, 584, 525, 1188, 936, 1333, 742, 13, 268, 29896, 29955, 29946, 584, 525, 9573, 287, 742, 13, 268, 29896, 29955, 29945, 584, 525, 8628, 1617, 742, 13, 268, 29896, 29955, 29953, 584, 525, 12163, 929, 742, 13, 268, 29896, 29955, 29955, 584, 525, 11242, 12254, 742, 13, 268, 29896, 29955, 29947, 584, 525, 7516, 359, 14805, 1611, 742, 13, 268, 29896, 29955, 29929, 584, 525, 386, 11003, 14805, 1611, 742, 13, 268, 29896, 29947, 29900, 584, 525, 562, 1082, 742, 13, 268, 29896, 29947, 29896, 584, 525, 2589, 742, 13, 268, 29896, 29947, 29906, 584, 525, 26956, 742, 13, 268, 29896, 29947, 29941, 584, 525, 19145, 5064, 287, 742, 13, 268, 29896, 29947, 29946, 584, 525, 1133, 2911, 742, 13, 268, 29896, 29947, 29945, 584, 525, 2873, 14805, 1611, 742, 13, 268, 29896, 29947, 29953, 584, 525, 536, 8247, 1810, 457, 742, 13, 268, 29896, 29947, 29955, 584, 525, 2543, 1924, 14817, 1266, 742, 13, 268, 29896, 29947, 29947, 584, 525, 650, 339, 4254, 742, 13, 268, 29896, 29947, 29929, 584, 525, 650, 24498, 742, 13, 268, 29896, 29929, 29900, 584, 525, 17536, 19252, 742, 13, 268, 29896, 29929, 29896, 584, 525, 12470, 3204, 742, 13, 268, 29896, 29929, 29906, 584, 525, 29909, 3874, 345, 742, 13, 268, 29896, 29929, 29941, 584, 525, 29909, 562, 1082, 742, 13, 268, 29896, 29929, 29946, 584, 525, 29909, 6034, 398, 16041, 742, 13, 268, 29896, 29929, 29945, 584, 525, 29909, 5891, 742, 13, 268, 29896, 29929, 29953, 584, 525, 3253, 631, 6656, 742, 13, 268, 29896, 29929, 29955, 584, 525, 1433, 292, 742, 13, 268, 29896, 29929, 29947, 584, 525, 16036, 742, 13, 268, 29896, 29929, 29929, 584, 525, 29907, 1133, 2911, 742, 13, 268, 29906, 29900, 29900, 584, 525, 29923, 3874, 345, 742, 13, 268, 29906, 29900, 29896, 584, 525, 29923, 562, 1082, 742, 13, 268, 29906, 29900, 29906, 584, 525, 29923, 6034, 398, 16041, 742, 13, 268, 29906, 29900, 29941, 584, 525, 3853, 631, 6656, 742, 13, 268, 29906, 29900, 29946, 584, 525, 29902, 3874, 345, 742, 13, 268, 29906, 29900, 29945, 584, 525, 29902, 562, 1082, 742, 13, 268, 29906, 29900, 29953, 584, 525, 29902, 6034, 398, 16041, 742, 13, 268, 29906, 29900, 29955, 584, 525, 1204, 631, 6656, 742, 13, 268, 29906, 29900, 29947, 584, 525, 29923, 386, 742, 13, 268, 29906, 29900, 29929, 584, 525, 29940, 5891, 742, 13, 268, 29906, 29896, 29900, 584, 525, 29949, 3874, 345, 742, 13, 268, 29906, 29896, 29896, 584, 525, 29949, 562, 1082, 742, 13, 268, 29906, 29896, 29906, 584, 525, 29949, 6034, 398, 16041, 742, 13, 268, 29906, 29896, 29941, 584, 525, 29949, 5891, 742, 13, 268, 29906, 29896, 29946, 584, 525, 29949, 29881, 631, 6656, 742, 13, 268, 29906, 29896, 29945, 584, 525, 18056, 368, 742, 13, 268, 29906, 29896, 29953, 584, 525, 29949, 17057, 742, 13, 268, 29906, 29896, 29955, 584, 525, 29965, 3874, 345, 742, 13, 268, 29906, 29896, 29947, 584, 525, 29965, 562, 1082, 742, 13, 268, 29906, 29896, 29929, 584, 525, 29965, 6034, 398, 16041, 742, 13, 268, 29906, 29906, 29900, 584, 525, 29965, 29881, 631, 6656, 742, 13, 268, 29906, 29906, 29896, 584, 525, 29979, 562, 1082, 742, 13, 268, 29906, 29906, 29906, 584, 525, 1349, 1398, 742, 13, 268, 29906, 29906, 29941, 584, 525, 29887, 837, 392, 2204, 29879, 742, 13, 268, 29906, 29906, 29946, 584, 525, 351, 336, 345, 742, 13, 268, 29906, 29906, 29945, 584, 525, 29874, 562, 1082, 742, 13, 268, 29906, 29906, 29953, 584, 525, 562, 2076, 398, 16041, 742, 13, 268, 29906, 29906, 29955, 584, 525, 271, 7154, 742, 13, 268, 29906, 29906, 29947, 584, 525, 328, 631, 6656, 742, 13, 268, 29906, 29906, 29929, 584, 525, 4362, 742, 13, 268, 29906, 29941, 29900, 584, 525, 3660, 742, 13, 268, 29906, 29941, 29896, 584, 525, 617, 287, 2911, 742, 13, 268, 29906, 29941, 29906, 584, 525, 387, 336, 345, 742, 13, 268, 29906, 29941, 29941, 584, 525, 29872, 562, 1082, 742, 13, 268, 29906, 29941, 29946, 584, 525, 687, 2076, 398, 16041, 742, 13, 268, 29906, 29941, 29945, 584, 525, 287, 631, 6656, 742, 13, 268, 29906, 29941, 29953, 584, 525, 335, 336, 345, 742, 13, 268, 29906, 29941, 29955, 584, 525, 13544, 1082, 742, 13, 268, 29906, 29941, 29947, 584, 525, 293, 2076, 398, 16041, 742, 13, 268, 29906, 29941, 29929, 584, 525, 333, 631, 6656, 742, 13, 268, 29906, 29946, 29900, 584, 525, 621, 742, 13, 268, 29906, 29946, 29896, 584, 525, 593, 7154, 742, 13, 268, 29906, 29946, 29906, 584, 525, 468, 336, 345, 742, 13, 268, 29906, 29946, 29941, 584, 525, 29877, 562, 1082, 742, 13, 268, 29906, 29946, 29946, 584, 525, 542, 2076, 398, 16041, 742, 13, 268, 29906, 29946, 29945, 584, 525, 327, 7154, 742, 13, 268, 29906, 29946, 29953, 584, 525, 397, 631, 6656, 742, 13, 268, 29906, 29946, 29955, 584, 525, 4563, 680, 742, 13, 268, 29906, 29946, 29947, 584, 525, 359, 29880, 1161, 742, 13, 268, 29906, 29946, 29929, 584, 525, 688, 336, 345, 742, 13, 268, 29906, 29945, 29900, 584, 525, 29884, 562, 1082, 742, 13, 268, 29906, 29945, 29896, 584, 525, 1682, 2076, 398, 16041, 742, 13, 268, 29906, 29945, 29906, 584, 525, 566, 631, 6656, 742, 13, 268, 29906, 29945, 29941, 584, 525, 29891, 562, 1082, 742, 13, 268, 29906, 29945, 29946, 584, 525, 386, 1398, 742, 13, 268, 29906, 29945, 29945, 584, 525, 2941, 631, 6656, 742, 13, 268, 29906, 29945, 29953, 584, 525, 6833, 562, 1617, 742, 13, 268, 29906, 29945, 29955, 584, 525, 314, 562, 1617, 742, 13, 268, 29906, 29945, 29947, 584, 525, 29909, 1030, 345, 742, 13, 268, 29906, 29945, 29929, 584, 525, 370, 276, 345, 742, 13, 268, 29906, 29953, 29900, 584, 525, 29909, 468, 650, 29895, 742, 13, 268, 29906, 29953, 29896, 584, 525, 29874, 468, 650, 29895, 742, 13, 268, 29906, 29953, 29906, 584, 525, 29907, 562, 1082, 742, 13, 268, 29906, 29953, 29941, 584, 525, 29883, 562, 1082, 742, 13, 268, 29906, 29953, 29946, 584, 525, 29907, 6034, 398, 16041, 742, 13, 268, 29906, 29953, 29945, 584, 525, 617, 2076, 398, 16041, 742, 13, 268, 29906, 29953, 29953, 584, 525, 29907, 6333, 562, 1760, 742, 13, 268, 29906, 29953, 29955, 584, 525, 3822, 562, 1760, 742, 13, 268, 29906, 29953, 29947, 584, 525, 29907, 4287, 265, 742, 13, 268, 29906, 29953, 29929, 584, 525, 617, 5022, 742, 13, 268, 29906, 29955, 29900, 584, 525, 29928, 4287, 265, 742, 13, 268, 29906, 29955, 29896, 584, 525, 29881, 4287, 265, 742, 13, 268, 29906, 29955, 29906, 584, 525, 29928, 24077, 271, 742, 13, 268, 29906, 29955, 29941, 584, 525, 13891, 307, 271, 742, 13, 268, 29906, 29955, 29946, 584, 525, 6026, 562, 1617, 742, 13, 268, 29906, 29955, 29945, 584, 525, 331, 562, 1617, 742, 13, 268, 29906, 29955, 29953, 584, 525, 29923, 1030, 345, 742, 13, 268, 29906, 29955, 29955, 584, 525, 774, 276, 345, 742, 13, 268, 29906, 29955, 29947, 584, 525, 3853, 327, 562, 1760, 742, 13, 268, 29906, 29955, 29929, 584, 525, 287, 327, 562, 1760, 742, 13, 268, 29906, 29947, 29900, 584, 525, 29923, 468, 650, 29895, 742, 13, 268, 29906, 29947, 29896, 584, 525, 29872, 468, 650, 29895, 742, 13, 268, 29906, 29947, 29906, 584, 525, 29923, 4287, 265, 742, 13, 268, 29906, 29947, 29941, 584, 525, 687, 5022, 742, 13, 268, 29906, 29947, 29946, 584, 525, 29954, 6034, 398, 16041, 742, 13, 268, 29906, 29947, 29945, 584, 525, 29887, 6034, 398, 16041, 742, 13, 268, 29906, 29947, 29953, 584, 525, 29954, 1030, 345, 742, 13, 268, 29906, 29947, 29955, 584, 525, 29887, 1030, 345, 742, 13, 268, 29906, 29947, 29947, 584, 525, 29954, 6333, 562, 1760, 742, 13, 268, 29906, 29947, 29929, 584, 525, 29887, 6333, 562, 1760, 742, 13, 268, 29906, 29929, 29900, 584, 525, 29954, 510, 655, 562, 1760, 742, 13, 268, 29906, 29929, 29896, 584, 525, 29887, 510, 655, 562, 1760, 742, 13, 268, 29906, 29929, 29906, 584, 525, 29950, 6034, 398, 16041, 742, 13, 268, 29906, 29929, 29941, 584, 525, 29882, 6034, 398, 16041, 742, 13, 268, 29906, 29929, 29946, 584, 525, 29950, 1646, 742, 13, 268, 29906, 29929, 29945, 584, 525, 26620, 742, 13, 268, 29906, 29929, 29953, 584, 525, 29902, 5891, 742, 13, 268, 29906, 29929, 29955, 584, 525, 277, 7154, 742, 13, 268, 29906, 29929, 29947, 584, 525, 1888, 562, 1617, 742, 13, 268, 29906, 29929, 29929, 584, 525, 326, 562, 1617, 742, 13, 268, 29941, 29900, 29900, 584, 525, 29902, 1030, 345, 742, 13, 268, 29941, 29900, 29896, 584, 525, 747, 276, 345, 742, 13, 268, 29941, 29900, 29906, 584, 525, 29902, 468, 650, 29895, 742, 13, 268, 29941, 29900, 29941, 584, 525, 29875, 468, 650, 29895, 742, 13, 268, 29941, 29900, 29946, 584, 525, 1204, 327, 562, 1760, 742, 13, 268, 29941, 29900, 29945, 584, 525, 6333, 2222, 29875, 742, 13, 268, 29941, 29900, 29953, 584, 525, 29902, 29967, 742, 13, 268, 29941, 29900, 29955, 584, 525, 823, 742, 13, 268, 29941, 29900, 29947, 584, 525, 29967, 6034, 398, 16041, 742, 13, 268, 29941, 29900, 29929, 584, 525, 29926, 6034, 398, 16041, 742, 13, 268, 29941, 29896, 29900, 584, 525, 29968, 510, 655, 562, 1760, 742, 13, 268, 29941, 29896, 29896, 584, 525, 29895, 510, 655, 562, 1760, 742, 13, 268, 29941, 29896, 29906, 584, 525, 9415, 2733, 1049, 293, 742, 13, 268, 29941, 29896, 29941, 584, 525, 29931, 562, 1082, 742, 13, 268, 29941, 29896, 29946, 584, 525, 4620, 1082, 742, 13, 268, 29941, 29896, 29945, 584, 525, 29931, 510, 655, 562, 1760, 742, 13, 268, 29941, 29896, 29953, 584, 525, 29880, 510, 655, 562, 1760, 742, 13, 268, 29941, 29896, 29955, 584, 525, 29931, 4287, 265, 742, 13, 268, 29941, 29896, 29947, 584, 525, 29880, 4287, 265, 742, 13, 268, 29941, 29896, 29929, 584, 525, 29931, 6333, 742, 13, 268, 29941, 29906, 29900, 584, 525, 430, 327, 742, 13, 268, 29941, 29906, 29896, 584, 525, 29931, 17057, 742, 13, 268, 29941, 29906, 29906, 584, 525, 29880, 17057, 742, 13, 268, 29941, 29906, 29941, 584, 525, 29940, 562, 1082, 742, 13, 268, 29941, 29906, 29946, 584, 525, 29876, 562, 1082, 742, 13, 268, 29941, 29906, 29945, 584, 525, 29940, 510, 655, 562, 1760, 742, 13, 268, 29941, 29906, 29953, 584, 525, 29876, 510, 655, 562, 1760, 742, 13, 268, 29941, 29906, 29955, 584, 525, 29940, 4287, 265, 742, 13, 268, 29941, 29906, 29947, 584, 525, 29876, 4287, 265, 742, 13, 268, 29941, 29906, 29929, 584, 525, 8971, 520, 1336, 354, 742, 13, 268, 29941, 29941, 29900, 584, 525, 8100, 742, 13, 268, 29941, 29941, 29896, 584, 525, 996, 742, 13, 268, 29941, 29941, 29906, 584, 525, 5673, 562, 1617, 742, 13, 268, 29941, 29941, 29941, 584, 525, 290, 562, 1617, 742, 13, 268, 29941, 29941, 29946, 584, 525, 29949, 1030, 345, 742, 13, 268, 29941, 29941, 29945, 584, 525, 7630, 345, 742, 13, 268, 29941, 29941, 29953, 584, 525, 9048, 686, 279, 398, 433, 329, 742, 13, 268, 29941, 29941, 29955, 584, 525, 1148, 686, 279, 398, 433, 329, 742, 13, 268, 29941, 29941, 29947, 584, 525, 29949, 29923, 742, 13, 268, 29941, 29941, 29929, 584, 525, 7297, 742, 13, 268, 29941, 29946, 29900, 584, 525, 29934, 562, 1082, 742, 13, 268, 29941, 29946, 29896, 584, 525, 945, 1082, 742, 13, 268, 29941, 29946, 29906, 584, 525, 29934, 510, 655, 562, 1760, 742, 13, 268, 29941, 29946, 29941, 584, 525, 29878, 510, 655, 562, 1760, 742, 13, 268, 29941, 29946, 29946, 584, 525, 29934, 4287, 265, 742, 13, 268, 29941, 29946, 29945, 584, 525, 2214, 5022, 742, 13, 268, 29941, 29946, 29953, 584, 525, 29903, 562, 1082, 742, 13, 268, 29941, 29946, 29955, 584, 525, 29879, 562, 1082, 742, 13, 268, 29941, 29946, 29947, 584, 525, 4421, 2076, 398, 16041, 742, 13, 268, 29941, 29946, 29929, 584, 525, 1557, 2076, 398, 16041, 742, 13, 268, 29941, 29945, 29900, 584, 525, 29903, 1133, 2911, 742, 13, 268, 29941, 29945, 29896, 584, 525, 29879, 1133, 2911, 742, 13, 268, 29941, 29945, 29906, 584, 525, 29903, 4287, 265, 742, 13, 268, 29941, 29945, 29941, 584, 525, 1557, 5022, 742, 13, 268, 29941, 29945, 29946, 584, 525, 29911, 510, 655, 562, 1760, 742, 13, 268, 29941, 29945, 29945, 584, 525, 29873, 510, 655, 562, 1760, 742, 13, 268, 29941, 29945, 29953, 584, 525, 29911, 4287, 265, 742, 13, 268, 29941, 29945, 29955, 584, 525, 29873, 4287, 265, 742, 13, 268, 29941, 29945, 29947, 584, 525, 29911, 1646, 742, 13, 268, 29941, 29945, 29929, 584, 525, 29873, 1646, 742, 13, 268, 29941, 29953, 29900, 584, 525, 29965, 5891, 742, 13, 268, 29941, 29953, 29896, 584, 525, 4422, 311, 742, 13, 268, 29941, 29953, 29906, 584, 525, 29965, 8628, 1617, 742, 13, 268, 29941, 29953, 29941, 584, 525, 398, 562, 1617, 742, 13, 268, 29941, 29953, 29946, 584, 525, 29965, 1030, 345, 742, 13, 268, 29941, 29953, 29945, 584, 525, 7410, 345, 742, 13, 268, 29941, 29953, 29953, 584, 525, 29965, 5393, 742, 13, 268, 29941, 29953, 29955, 584, 525, 3864, 742, 13, 268, 29941, 29953, 29947, 584, 525, 29965, 18808, 279, 398, 433, 329, 742, 13, 268, 29941, 29953, 29929, 584, 525, 16099, 686, 279, 398, 433, 329, 742, 13, 268, 29941, 29955, 29900, 584, 525, 29965, 468, 650, 29895, 742, 13, 268, 29941, 29955, 29896, 584, 525, 29884, 468, 650, 29895, 742, 13, 268, 29941, 29955, 29906, 584, 525, 29956, 6034, 398, 16041, 742, 13, 268, 29941, 29955, 29941, 584, 525, 29893, 6034, 398, 16041, 742, 13, 268, 29941, 29955, 29946, 584, 525, 29979, 6034, 398, 16041, 742, 13, 268, 29941, 29955, 29945, 584, 525, 29891, 6034, 398, 16041, 742, 13, 268, 29941, 29955, 29953, 584, 525, 29979, 29881, 631, 6656, 742, 13, 268, 29941, 29955, 29955, 584, 525, 29999, 562, 1082, 742, 13, 268, 29941, 29955, 29947, 584, 525, 29920, 562, 1082, 742, 13, 268, 29941, 29955, 29929, 584, 525, 29999, 6333, 562, 1760, 742, 13, 268, 29941, 29947, 29900, 584, 525, 29920, 6333, 562, 1760, 742, 13, 268, 29941, 29947, 29896, 584, 525, 29999, 4287, 265, 742, 13, 268, 29941, 29947, 29906, 584, 525, 29920, 4287, 265, 742, 13, 268, 29946, 29900, 29906, 584, 525, 1579, 272, 262, 742, 13, 268, 29945, 29900, 29947, 584, 525, 16036, 562, 1082, 742, 13, 268, 29945, 29900, 29929, 584, 525, 3660, 562, 1082, 742, 13, 268, 29945, 29896, 29900, 584, 525, 29949, 17057, 562, 1082, 742, 13, 268, 29945, 29896, 29896, 584, 525, 359, 29880, 1161, 562, 1082, 742, 13, 268, 29945, 29941, 29953, 584, 525, 29903, 510, 655, 562, 1760, 742, 13, 268, 29945, 29941, 29955, 584, 525, 29879, 510, 655, 562, 1760, 742, 13, 268, 29955, 29896, 29900, 584, 525, 6034, 398, 16041, 742, 13, 268, 29955, 29896, 29896, 584, 525, 4287, 265, 742, 13, 268, 29955, 29906, 29947, 584, 525, 1030, 345, 742, 13, 268, 29955, 29906, 29929, 584, 525, 6333, 562, 1760, 742, 13, 268, 29955, 29941, 29900, 584, 525, 5393, 742, 13, 268, 29955, 29941, 29896, 584, 525, 468, 650, 29895, 742, 13, 268, 29955, 29941, 29906, 584, 525, 5891, 742, 13, 268, 29955, 29941, 29941, 584, 525, 18808, 279, 398, 433, 329, 742, 13, 268, 29947, 29929, 29946, 584, 525, 3909, 29900, 29941, 29955, 29923, 742, 13, 268, 29929, 29900, 29900, 584, 525, 880, 359, 742, 13, 268, 29929, 29900, 29896, 584, 525, 29881, 631, 267, 391, 265, 359, 742, 13, 268, 29929, 29900, 29906, 584, 525, 2499, 561, 14114, 359, 742, 13, 268, 29929, 29900, 29941, 584, 525, 273, 866, 280, 423, 742, 13, 268, 29929, 29900, 29946, 584, 525, 29923, 567, 309, 609, 265, 359, 742, 13, 268, 29929, 29900, 29945, 584, 525, 29923, 8101, 265, 359, 742, 13, 268, 29929, 29900, 29953, 584, 525, 29902, 327, 14114, 359, 742, 13, 268, 29929, 29900, 29947, 584, 525, 5673, 293, 24416, 265, 359, 742, 13, 268, 29929, 29896, 29900, 584, 525, 29965, 567, 309, 609, 265, 359, 742, 13, 268, 29929, 29896, 29896, 584, 525, 5673, 387, 14114, 359, 742, 13, 268, 29929, 29896, 29906, 584, 525, 24414, 328, 631, 267, 391, 265, 359, 742, 13, 268, 29929, 29896, 29941, 584, 525, 28630, 742, 13, 268, 29929, 29896, 29946, 584, 525, 29933, 1187, 742, 13, 268, 29929, 29896, 29945, 584, 525, 6642, 742, 13, 1678, 396, 29871, 29929, 29896, 29953, 584, 525, 5268, 742, 13, 268, 29929, 29896, 29955, 584, 525, 29923, 3232, 742, 13, 268, 29929, 29896, 29947, 584, 525, 29999, 1187, 742, 13, 268, 29929, 29896, 29929, 584, 525, 29923, 941, 742, 13, 268, 29929, 29906, 29900, 584, 525, 17458, 742, 13, 268, 29929, 29906, 29896, 584, 525, 29902, 4616, 742, 13, 268, 29929, 29906, 29906, 584, 525, 29968, 8055, 742, 13, 268, 29929, 29906, 29941, 584, 525, 9099, 742, 13, 268, 29929, 29906, 29946, 584, 525, 29924, 29884, 742, 13, 268, 29929, 29906, 29945, 584, 525, 29940, 29884, 742, 13, 268, 29929, 29906, 29953, 584, 525, 29990, 29875, 742, 13, 268, 29929, 29906, 29955, 584, 525, 5673, 293, 1617, 742, 13, 268, 29929, 29906, 29947, 584, 525, 12197, 742, 13, 268, 29929, 29906, 29929, 584, 525, 29934, 1251, 742, 13, 268, 29929, 29941, 29896, 584, 525, 10142, 742, 13, 268, 29929, 29941, 29906, 584, 525, 29911, 585, 742, 13, 268, 29929, 29941, 29941, 584, 525, 29965, 3232, 742, 13, 268, 29929, 29941, 29946, 584, 525, 9492, 742, 13, 268, 29929, 29941, 29945, 584, 525, 1451, 29875, 742, 13, 268, 29929, 29941, 29953, 584, 525, 14118, 742, 13, 268, 29929, 29941, 29955, 584, 525, 5981, 742, 13, 268, 29929, 29941, 29947, 584, 525, 29902, 327, 328, 631, 6656, 742, 13, 268, 29929, 29941, 29929, 584, 525, 29965, 567, 309, 898, 631, 6656, 742, 13, 268, 29929, 29946, 29900, 584, 525, 19712, 14114, 359, 742, 13, 268, 29929, 29946, 29896, 584, 525, 8961, 309, 609, 265, 359, 742, 13, 268, 29929, 29946, 29906, 584, 525, 300, 14114, 359, 742, 13, 268, 29929, 29946, 29941, 584, 525, 24414, 14114, 359, 742, 13, 268, 29929, 29946, 29946, 584, 525, 14340, 309, 898, 631, 267, 391, 265, 359, 742, 13, 268, 29929, 29946, 29945, 584, 525, 2312, 742, 13, 268, 29929, 29946, 29953, 584, 525, 3571, 742, 13, 268, 29929, 29946, 29955, 584, 525, 4283, 742, 13, 268, 29929, 29946, 29947, 584, 525, 4181, 742, 13, 268, 29929, 29946, 29929, 584, 525, 5463, 742, 13, 268, 29929, 29945, 29900, 584, 525, 11327, 742, 13, 268, 29929, 29945, 29896, 584, 525, 1187, 742, 13, 268, 29929, 29945, 29906, 584, 525, 3416, 742, 13, 268, 29929, 29945, 29941, 584, 525, 29875, 4616, 742, 13, 268, 29929, 29945, 29946, 584, 525, 9876, 742, 13, 268, 29929, 29945, 29945, 584, 525, 2892, 742, 13, 268, 29929, 29945, 29953, 584, 525, 3909, 29900, 29941, 5371, 742, 13, 268, 29929, 29945, 29955, 584, 525, 3433, 742, 13, 268, 29929, 29945, 29947, 584, 525, 5389, 742, 13, 268, 29929, 29945, 29929, 584, 525, 25426, 1617, 742, 13, 268, 29929, 29953, 29900, 584, 525, 1631, 742, 13, 268, 29929, 29953, 29896, 584, 525, 4650, 742, 13, 268, 29929, 29953, 29906, 584, 525, 3909, 29900, 29941, 29907, 29906, 742, 13, 268, 29929, 29953, 29941, 584, 525, 3754, 742, 13, 268, 29929, 29953, 29946, 584, 525, 4722, 742, 13, 268, 29929, 29953, 29945, 584, 525, 29884, 3232, 742, 13, 268, 29929, 29953, 29953, 584, 525, 2876, 742, 13, 268, 29929, 29953, 29955, 584, 525, 4161, 742, 13, 268, 29929, 29953, 29947, 584, 525, 6134, 742, 13, 268, 29929, 29953, 29929, 584, 525, 4787, 742, 13, 268, 29929, 29955, 29900, 584, 525, 24414, 328, 631, 6656, 742, 13, 268, 29929, 29955, 29896, 584, 525, 14340, 309, 898, 631, 6656, 742, 13, 268, 29929, 29955, 29906, 584, 525, 25426, 24416, 265, 359, 742, 13, 268, 29929, 29955, 29941, 584, 525, 14340, 309, 609, 265, 359, 742, 13, 268, 29929, 29955, 29946, 584, 525, 290, 387, 14114, 359, 742, 13, 268, 29896, 29900, 29906, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29941, 742, 13, 268, 29896, 29900, 29906, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29896, 742, 13, 268, 29896, 29900, 29906, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29906, 742, 13, 268, 29896, 29900, 29906, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29941, 742, 13, 268, 29896, 29900, 29906, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29946, 742, 13, 268, 29896, 29900, 29941, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29945, 742, 13, 268, 29896, 29900, 29941, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29953, 742, 13, 268, 29896, 29900, 29941, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29955, 742, 13, 268, 29896, 29900, 29941, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29947, 742, 13, 268, 29896, 29900, 29941, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29929, 742, 13, 268, 29896, 29900, 29941, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29900, 742, 13, 268, 29896, 29900, 29941, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29896, 742, 13, 268, 29896, 29900, 29941, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29906, 742, 13, 268, 29896, 29900, 29941, 29929, 584, 525, 2142, 2236, 29896, 29900, 29896, 29946, 29945, 742, 13, 268, 29896, 29900, 29946, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29896, 29955, 742, 13, 268, 29896, 29900, 29946, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29896, 29947, 742, 13, 268, 29896, 29900, 29946, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29896, 29929, 742, 13, 268, 29896, 29900, 29946, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29900, 742, 13, 268, 29896, 29900, 29946, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29896, 742, 13, 268, 29896, 29900, 29946, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29906, 742, 13, 268, 29896, 29900, 29946, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29946, 742, 13, 268, 29896, 29900, 29946, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29945, 742, 13, 268, 29896, 29900, 29946, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29953, 742, 13, 268, 29896, 29900, 29946, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29955, 742, 13, 268, 29896, 29900, 29945, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29947, 742, 13, 268, 29896, 29900, 29945, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29906, 29929, 742, 13, 268, 29896, 29900, 29945, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29900, 742, 13, 268, 29896, 29900, 29945, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29896, 742, 13, 268, 29896, 29900, 29945, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29906, 742, 13, 268, 29896, 29900, 29945, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29941, 742, 13, 268, 29896, 29900, 29945, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29946, 742, 13, 268, 29896, 29900, 29945, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29945, 742, 13, 268, 29896, 29900, 29945, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29953, 742, 13, 268, 29896, 29900, 29945, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29955, 742, 13, 268, 29896, 29900, 29953, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29947, 742, 13, 268, 29896, 29900, 29953, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29941, 29929, 742, 13, 268, 29896, 29900, 29953, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29900, 742, 13, 268, 29896, 29900, 29953, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29896, 742, 13, 268, 29896, 29900, 29953, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29906, 742, 13, 268, 29896, 29900, 29953, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29941, 742, 13, 268, 29896, 29900, 29953, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29946, 742, 13, 268, 29896, 29900, 29953, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29945, 742, 13, 268, 29896, 29900, 29953, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29953, 742, 13, 268, 29896, 29900, 29953, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29955, 742, 13, 268, 29896, 29900, 29955, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29947, 742, 13, 268, 29896, 29900, 29955, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29946, 29929, 742, 13, 268, 29896, 29900, 29955, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29945, 742, 13, 268, 29896, 29900, 29955, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29953, 742, 13, 268, 29896, 29900, 29955, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29955, 742, 13, 268, 29896, 29900, 29955, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29947, 742, 13, 268, 29896, 29900, 29955, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29953, 29929, 742, 13, 268, 29896, 29900, 29955, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29900, 742, 13, 268, 29896, 29900, 29955, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29906, 742, 13, 268, 29896, 29900, 29955, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29941, 742, 13, 268, 29896, 29900, 29947, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29946, 742, 13, 268, 29896, 29900, 29947, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29945, 742, 13, 268, 29896, 29900, 29947, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29953, 742, 13, 268, 29896, 29900, 29947, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29955, 742, 13, 268, 29896, 29900, 29947, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29947, 742, 13, 268, 29896, 29900, 29947, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29929, 742, 13, 268, 29896, 29900, 29947, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29900, 742, 13, 268, 29896, 29900, 29947, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29896, 742, 13, 268, 29896, 29900, 29947, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29906, 742, 13, 268, 29896, 29900, 29947, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29941, 742, 13, 268, 29896, 29900, 29929, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29946, 742, 13, 268, 29896, 29900, 29929, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29945, 742, 13, 268, 29896, 29900, 29929, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29953, 742, 13, 268, 29896, 29900, 29929, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29955, 742, 13, 268, 29896, 29900, 29929, 29946, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29947, 742, 13, 268, 29896, 29900, 29929, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29947, 29929, 742, 13, 268, 29896, 29900, 29929, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29900, 742, 13, 268, 29896, 29900, 29929, 29955, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29896, 742, 13, 268, 29896, 29900, 29929, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29906, 742, 13, 268, 29896, 29900, 29929, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29941, 742, 13, 268, 29896, 29896, 29900, 29900, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29946, 742, 13, 268, 29896, 29896, 29900, 29896, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29945, 742, 13, 268, 29896, 29896, 29900, 29906, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29953, 742, 13, 268, 29896, 29896, 29900, 29941, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29955, 742, 13, 268, 29896, 29896, 29900, 29945, 584, 525, 2142, 2236, 29896, 29900, 29900, 29955, 29896, 742, 13, 268, 29896, 29896, 29900, 29953, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29929, 742, 13, 268, 29896, 29896, 29900, 29955, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29900, 742, 13, 268, 29896, 29896, 29900, 29947, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29896, 742, 13, 268, 29896, 29896, 29900, 29929, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29906, 742, 13, 268, 29896, 29896, 29896, 29900, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29941, 742, 13, 268, 29896, 29896, 29896, 29896, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29946, 742, 13, 268, 29896, 29896, 29896, 29906, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29945, 742, 13, 268, 29896, 29896, 29896, 29941, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29953, 742, 13, 268, 29896, 29896, 29896, 29946, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29955, 742, 13, 268, 29896, 29896, 29896, 29945, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29947, 742, 13, 268, 29896, 29896, 29896, 29953, 584, 525, 2142, 2236, 29896, 29900, 29896, 29900, 29929, 742, 13, 268, 29896, 29896, 29896, 29947, 584, 525, 2142, 2236, 29896, 29900, 29896, 29896, 29900, 742, 13, 268, 29896, 29896, 29896, 29929, 584, 525, 2142, 2236, 29896, 29900, 29896, 29929, 29941, 742, 13, 268, 29896, 29896, 29953, 29947, 584, 525, 2142, 2236, 29896, 29900, 29900, 29945, 29900, 742, 13, 268, 29896, 29896, 29953, 29929, 584, 525, 2142, 2236, 29896, 29900, 29900, 29929, 29947, 742, 13, 268, 29896, 29906, 29946, 29896, 584, 525, 2142, 2236, 29896, 29900, 29947, 29946, 29953, 742, 13, 268, 29955, 29947, 29900, 29947, 584, 525, 29956, 3874, 345, 742, 13, 268, 29955, 29947, 29900, 29929, 584, 525, 29893, 3874, 345, 742, 13, 268, 29955, 29947, 29896, 29900, 584, 525, 29956, 562, 1082, 742, 13, 268, 29955, 29947, 29896, 29896, 584, 525, 29893, 562, 1082, 742, 13, 268, 29955, 29947, 29896, 29906, 584, 525, 29956, 29881, 631, 6656, 742, 13, 268, 29955, 29947, 29896, 29941, 584, 525, 9970, 631, 6656, 742, 13, 268, 29955, 29929, 29906, 29906, 584, 525, 29979, 3874, 345, 742, 13, 268, 29955, 29929, 29906, 29941, 584, 525, 29891, 3874, 345, 742, 13, 268, 29947, 29906, 29896, 29896, 584, 525, 355, 1161, 742, 13, 268, 29947, 29906, 29896, 29906, 584, 525, 331, 14592, 742, 13, 268, 29947, 29906, 29896, 29953, 584, 525, 1396, 1563, 742, 13, 268, 29947, 29906, 29896, 29955, 584, 525, 339, 17084, 523, 742, 13, 268, 29947, 29906, 29896, 29947, 584, 525, 339, 4769, 292, 29880, 3188, 742, 13, 268, 29947, 29906, 29906, 29900, 584, 525, 339, 5715, 2204, 1563, 742, 13, 268, 29947, 29906, 29906, 29896, 584, 525, 339, 5715, 2204, 1266, 742, 13, 268, 29947, 29906, 29906, 29906, 584, 525, 339, 5715, 2204, 3188, 742, 13, 268, 29947, 29906, 29906, 29946, 584, 525, 21085, 742, 13, 268, 29947, 29906, 29906, 29945, 584, 525, 21085, 29881, 2204, 742, 13, 268, 29947, 29906, 29906, 29953, 584, 525, 18850, 742, 13, 268, 29947, 29906, 29941, 29900, 584, 525, 5481, 567, 275, 742, 13, 268, 29947, 29906, 29946, 29900, 584, 525, 546, 386, 681, 392, 742, 13, 268, 29947, 29906, 29946, 29929, 584, 525, 2543, 2719, 292, 29880, 1563, 742, 13, 268, 29947, 29906, 29945, 29900, 584, 525, 2543, 2719, 292, 29880, 1266, 742, 13, 268, 29947, 29906, 29953, 29900, 584, 525, 29888, 13857, 742, 13, 268, 29947, 29941, 29900, 29946, 584, 525, 3298, 359, 14805, 1611, 742, 13, 268, 29947, 29941, 29900, 29947, 584, 525, 17823, 9136, 1611, 742, 13, 268, 29947, 29941, 29900, 29929, 584, 525, 29888, 3145, 14805, 1611, 742, 13, 268, 29947, 29941, 29896, 29900, 584, 525, 28319, 9136, 1611, 742, 13, 268, 29947, 29941, 29896, 29896, 584, 525, 344, 9852, 14805, 1611, 742, 13, 268, 29947, 29941, 29896, 29906, 584, 525, 29872, 523, 9136, 1611, 742, 13, 268, 29947, 29941, 29896, 29941, 584, 525, 29876, 1475, 14805, 1611, 742, 13, 268, 29947, 29941, 29896, 29955, 584, 525, 862, 264, 1563, 9136, 1611, 742, 13, 268, 29947, 29941, 29896, 29947, 584, 525, 862, 264, 1266, 9136, 1611, 742, 13, 268, 29947, 29941, 29906, 29900, 584, 525, 9171, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29896, 584, 525, 650, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29906, 584, 525, 10184, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29941, 584, 525, 17536, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29946, 584, 525, 17823, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29945, 584, 525, 20818, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29953, 584, 525, 28319, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29955, 584, 525, 344, 854, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29947, 584, 525, 29872, 523, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29906, 29929, 584, 525, 29876, 457, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29941, 29941, 584, 525, 862, 264, 1563, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29941, 29946, 584, 525, 862, 264, 1266, 262, 571, 1611, 742, 13, 268, 29947, 29941, 29953, 29946, 584, 525, 29923, 2192, 742, 13, 268, 29947, 29946, 29953, 29955, 584, 525, 2142, 2236, 29953, 29896, 29906, 29947, 29929, 742, 13, 268, 29947, 29946, 29955, 29900, 584, 525, 2142, 2236, 29953, 29896, 29941, 29945, 29906, 742, 13, 268, 29947, 29946, 29947, 29906, 584, 525, 3018, 2310, 935, 742, 13, 268, 29947, 29946, 29929, 29946, 584, 525, 342, 326, 630, 742, 13, 268, 29947, 29955, 29900, 29953, 584, 525, 3846, 12765, 742, 13, 268, 29947, 29955, 29896, 29900, 584, 525, 3909, 29906, 29906, 29900, 29953, 742, 13, 268, 29947, 29955, 29896, 29929, 584, 525, 4704, 742, 13, 268, 29947, 29955, 29906, 29896, 584, 525, 2083, 29885, 362, 742, 13, 268, 29947, 29955, 29906, 29906, 584, 525, 12254, 742, 13, 268, 29947, 29955, 29941, 29900, 584, 525, 3665, 936, 742, 13, 268, 29947, 29955, 29941, 29946, 584, 525, 262, 4951, 537, 742, 13, 268, 29947, 29955, 29946, 29955, 584, 525, 14146, 284, 742, 13, 268, 29947, 29955, 29955, 29953, 584, 525, 14850, 11745, 742, 13, 268, 29947, 29947, 29900, 29900, 584, 525, 6812, 15380, 742, 13, 268, 29947, 29947, 29900, 29946, 584, 525, 793, 6831, 284, 742, 13, 268, 29947, 29947, 29900, 29945, 584, 525, 7979, 271, 406, 15380, 742, 13, 268, 29929, 29953, 29955, 29946, 584, 525, 417, 2256, 479, 742, 13, 268, 29945, 29955, 29941, 29946, 29945, 584, 525, 29888, 29918, 29888, 29918, 29926, 742, 13, 268, 29945, 29955, 29941, 29946, 29953, 584, 525, 29888, 29918, 29926, 742, 13, 268, 29953, 29896, 29946, 29906, 29896, 584, 525, 3909, 29638, 3352, 742, 13, 268, 29953, 29896, 29946, 29906, 29906, 584, 525, 3909, 29923, 16359, 29923, 742, 13, 268, 29953, 29896, 29946, 29906, 29945, 584, 525, 3909, 29923, 4198, 29896, 742, 13, 268, 29953, 29896, 29946, 29906, 29953, 584, 525, 3909, 29923, 4198, 29906, 742, 13, 268, 29953, 29896, 29946, 29906, 29955, 584, 525, 3909, 29923, 4198, 29941, 742, 13, 268, 29953, 29896, 29946, 29906, 29929, 584, 525, 3909, 29923, 4198, 29945, 742, 13, 268, 29953, 29896, 29946, 29941, 29896, 584, 525, 3909, 29923, 4198, 29955, 742, 13, 268, 29953, 29941, 29900, 29896, 29955, 584, 525, 3909, 29943, 29953, 29906, 29929, 742, 13, 268, 29953, 29941, 29900, 29896, 29947, 584, 525, 3909, 29943, 29953, 29906, 29909, 742, 13, 268, 29953, 29941, 29900, 29896, 29929, 584, 525, 3909, 29943, 29953, 29906, 29933, 742, 13, 268, 29953, 29941, 29900, 29906, 29900, 584, 525, 3909, 29943, 29953, 29906, 29907, 742, 13, 268, 29953, 29941, 29900, 29906, 29896, 584, 525, 3909, 29943, 29953, 29906, 29928, 742, 13, 268, 29953, 29941, 29900, 29906, 29906, 584, 525, 3909, 29943, 29953, 29906, 29923, 742, 13, 268, 29953, 29941, 29900, 29906, 29941, 584, 525, 3909, 29943, 29953, 29906, 29943, 742, 13, 268, 29953, 29941, 29900, 29906, 29946, 584, 525, 3909, 29943, 29953, 29941, 29900, 742, 13, 268, 29953, 29941, 29900, 29906, 29945, 584, 525, 3909, 29943, 29953, 29941, 29896, 742, 13, 268, 29953, 29941, 29900, 29906, 29953, 584, 525, 3909, 29943, 29953, 29941, 29906, 742, 13, 268, 29953, 29941, 29900, 29906, 29955, 584, 525, 3909, 29943, 29953, 29941, 29941, 742, 13, 268, 29953, 29941, 29900, 29906, 29947, 584, 525, 3909, 29943, 29953, 29941, 29946, 742, 13, 268, 29953, 29941, 29900, 29941, 29906, 584, 525, 3909, 29943, 29953, 29941, 29947, 742, 13, 268, 29953, 29941, 29900, 29941, 29941, 584, 525, 3909, 29943, 29953, 29941, 29929, 742, 13, 268, 29953, 29941, 29900, 29941, 29946, 584, 525, 3909, 29943, 29953, 29941, 29909, 742, 13, 268, 29953, 29941, 29900, 29941, 29945, 584, 525, 3909, 29943, 29953, 29941, 29933, 742, 13, 268, 29953, 29941, 29900, 29941, 29953, 584, 525, 3909, 29943, 29953, 29941, 29907, 742, 13, 268, 29953, 29941, 29900, 29941, 29955, 584, 525, 3909, 29943, 29953, 29941, 29928, 742, 13, 268, 29953, 29941, 29900, 29941, 29947, 584, 525, 3909, 29943, 29953, 29941, 29923, 742, 13, 268, 29953, 29941, 29900, 29941, 29929, 584, 525, 3909, 29943, 29953, 29941, 29943, 742, 13, 268, 29953, 29941, 29900, 29946, 29900, 584, 525, 3909, 29943, 29953, 29946, 29900, 742, 13, 268, 29953, 29941, 29900, 29946, 29896, 584, 525, 3909, 29943, 29953, 29946, 29896, 742, 13, 268, 29953, 29941, 29900, 29946, 29906, 584, 525, 3909, 29943, 29953, 29946, 29906, 742, 13, 268, 29953, 29941, 29900, 29946, 29941, 584, 525, 3909, 29943, 29953, 29946, 29941, 742, 13, 268, 29953, 29941, 29900, 29946, 29946, 584, 525, 3909, 29943, 29953, 29946, 29946, 742, 13, 268, 29953, 29941, 29900, 29946, 29945, 584, 525, 3909, 29943, 29953, 29946, 29945, 742, 13, 268, 29953, 29941, 29900, 29946, 29953, 584, 525, 3909, 29943, 29953, 29946, 29953, 742, 13, 268, 29953, 29941, 29900, 29946, 29955, 584, 525, 3909, 29943, 29953, 29946, 29955, 742, 13, 268, 29953, 29941, 29900, 29946, 29947, 584, 525, 3909, 29943, 29953, 29946, 29947, 742, 13, 268, 29953, 29941, 29900, 29946, 29929, 584, 525, 3909, 29943, 29953, 29946, 29929, 742, 13, 268, 29953, 29941, 29900, 29945, 29900, 584, 525, 3909, 29943, 29953, 29946, 29909, 742, 13, 268, 29953, 29941, 29900, 29945, 29896, 584, 525, 3909, 29943, 29953, 29946, 29933, 742, 13, 268, 29953, 29941, 29900, 29945, 29906, 584, 525, 3909, 29943, 29953, 29946, 29907, 742, 13, 268, 29953, 29941, 29900, 29945, 29946, 584, 525, 3909, 29943, 29953, 29946, 29923, 742, 13, 268, 29953, 29941, 29900, 29945, 29945, 584, 525, 3909, 29943, 29953, 29946, 29943, 742, 13, 268, 29953, 29941, 29900, 29945, 29953, 584, 525, 3909, 29943, 29953, 29945, 29900, 742, 13, 268, 29953, 29941, 29900, 29945, 29955, 584, 525, 3909, 29943, 29953, 29945, 29896, 742, 13, 268, 29953, 29941, 29900, 29945, 29947, 584, 525, 3909, 29943, 29953, 29945, 29906, 742, 13, 268, 29953, 29941, 29900, 29945, 29929, 584, 525, 3909, 29943, 29953, 29945, 29941, 742, 13, 268, 29953, 29941, 29900, 29953, 29900, 584, 525, 3909, 29943, 29953, 29945, 29946, 742, 13, 268, 29953, 29941, 29900, 29953, 29896, 584, 525, 3909, 29943, 29953, 29945, 29945, 742, 13, 268, 29953, 29941, 29900, 29953, 29906, 584, 525, 3909, 29943, 29953, 29945, 29953, 742, 13, 268, 29953, 29941, 29900, 29953, 29941, 584, 525, 3909, 29943, 29953, 29945, 29955, 742, 13, 268, 29953, 29941, 29900, 29953, 29946, 584, 525, 3909, 29943, 29953, 29945, 29947, 742, 13, 268, 29953, 29941, 29900, 29953, 29945, 584, 525, 3909, 29943, 29953, 29945, 29929, 742, 13, 268, 29953, 29941, 29900, 29953, 29953, 584, 525, 3909, 29943, 29953, 29945, 29909, 742, 13, 268, 29953, 29941, 29900, 29953, 29955, 584, 525, 3909, 29943, 29953, 29945, 29933, 742, 13, 268, 29953, 29941, 29900, 29953, 29947, 584, 525, 3909, 29943, 29953, 29945, 29907, 742, 13, 268, 29953, 29941, 29900, 29953, 29929, 584, 525, 3909, 29943, 29953, 29945, 29928, 742, 13, 268, 29953, 29941, 29900, 29955, 29900, 584, 525, 3909, 29943, 29953, 29945, 29923, 742, 13, 268, 29953, 29941, 29900, 29955, 29896, 584, 525, 3909, 29943, 29953, 29945, 29943, 742, 13, 268, 29953, 29941, 29900, 29955, 29906, 584, 525, 3909, 29943, 29953, 29953, 29900, 742, 13, 268, 29953, 29941, 29900, 29955, 29941, 584, 525, 3909, 29943, 29953, 29953, 29896, 742, 13, 268, 29953, 29941, 29900, 29955, 29946, 584, 525, 3909, 29943, 29953, 29953, 29906, 742, 13, 268, 29953, 29941, 29900, 29955, 29945, 584, 525, 3909, 29943, 29953, 29953, 29941, 742, 13, 268, 29953, 29941, 29900, 29955, 29953, 584, 525, 3909, 29943, 29953, 29953, 29946, 742, 13, 268, 29953, 29941, 29900, 29955, 29955, 584, 525, 3909, 29943, 29953, 29953, 29945, 742, 13, 268, 29953, 29941, 29900, 29955, 29947, 584, 525, 3909, 29943, 29953, 29953, 29953, 742, 13, 268, 29953, 29941, 29900, 29955, 29929, 584, 525, 3909, 29943, 29953, 29953, 29955, 742, 13, 268, 29953, 29941, 29900, 29947, 29900, 584, 525, 3909, 29943, 29953, 29953, 29947, 742, 13, 268, 29953, 29941, 29900, 29947, 29896, 584, 525, 3909, 29943, 29953, 29953, 29929, 742, 13, 268, 29953, 29941, 29900, 29947, 29906, 584, 525, 3909, 29943, 29953, 29953, 29909, 742, 13, 268, 29953, 29941, 29900, 29947, 29941, 584, 525, 3909, 29943, 29953, 29953, 29933, 742, 13, 268, 29953, 29941, 29900, 29947, 29946, 584, 525, 3909, 29943, 29953, 29953, 29907, 742, 13, 268, 29953, 29941, 29896, 29945, 29900, 584, 525, 3909, 29943, 29953, 16036, 742, 13, 268, 29953, 29941, 29896, 29945, 29896, 584, 525, 3909, 29943, 29953, 5098, 742, 13, 268, 29953, 29941, 29896, 29945, 29906, 584, 525, 3909, 29943, 29953, 29933, 29900, 742, 13, 268, 29953, 29941, 29896, 29945, 29941, 584, 525, 3909, 29943, 29953, 29933, 29896, 742, 13, 268, 29953, 29941, 29896, 29945, 29946, 584, 525, 3909, 29943, 29953, 29933, 29906, 742, 13, 268, 29953, 29941, 29896, 29945, 29945, 584, 525, 3909, 29943, 29953, 29933, 29941, 742, 13, 268, 29953, 29941, 29896, 29945, 29953, 584, 525, 3909, 29943, 29953, 29933, 29946, 742, 13, 268, 29953, 29941, 29896, 29945, 29955, 584, 525, 3909, 29943, 29953, 29933, 29945, 742, 13, 268, 29953, 29941, 29896, 29945, 29947, 584, 525, 3909, 29943, 29953, 29933, 29953, 742, 13, 268, 29953, 29941, 29896, 29945, 29929, 584, 525, 3909, 29943, 29953, 29933, 29955, 742, 13, 268, 29953, 29941, 29896, 29953, 29900, 584, 525, 3909, 29943, 29953, 29933, 29947, 742, 13, 268, 29953, 29941, 29896, 29953, 29896, 584, 525, 3909, 29943, 29953, 29933, 29929, 742, 13, 268, 29953, 29941, 29896, 29953, 29906, 584, 525, 3909, 29943, 29953, 5688, 742, 13, 268, 29953, 29941, 29896, 29953, 29941, 584, 525, 3909, 29943, 29953, 14388, 742, 13, 268, 29953, 29941, 29896, 29953, 29946, 584, 525, 3909, 29943, 29953, 5371, 742, 13, 268, 29953, 29941, 29896, 29953, 29945, 584, 525, 3909, 29943, 29953, 29121, 742, 13, 268, 29953, 29941, 29896, 29955, 29896, 584, 525, 510, 655, 562, 1760, 742, 13, 268, 29953, 29941, 29896, 29955, 29955, 584, 525, 10644, 1082, 742, 13, 268, 29953, 29941, 29896, 29955, 29947, 584, 525, 29907, 5022, 742, 13, 268, 29953, 29941, 29896, 29955, 29929, 584, 525, 29928, 631, 6656, 742, 13, 268, 29953, 29941, 29896, 29947, 29900, 584, 525, 29928, 631, 6656, 10644, 1082, 742, 13, 268, 29953, 29941, 29896, 29947, 29896, 584, 525, 29928, 631, 6656, 29954, 336, 345, 742, 13, 268, 29953, 29941, 29896, 29947, 29906, 584, 525, 29954, 336, 345, 742, 13, 268, 29953, 29941, 29896, 29947, 29941, 584, 525, 29950, 686, 279, 398, 433, 329, 742, 13, 268, 29953, 29941, 29896, 29947, 29946, 584, 525, 15735, 1617, 742, 13, 268, 29953, 29941, 29896, 29947, 29945, 584, 525, 1270, 29878, 20130, 345, 742, 13, 268, 29953, 29941, 29896, 29947, 29953, 584, 525, 1270, 29878, 29943, 2506, 742, 13, 268, 29953, 29941, 29896, 29947, 29955, 584, 525, 29881, 2204, 29954, 336, 345, 742, 13, 268, 29953, 29941, 29896, 29947, 29947, 584, 525, 1270, 29878, 1030, 345, 742, 13, 268, 29953, 29941, 29896, 29947, 29929, 584, 525, 1270, 9600, 2506, 742, 13, 268, 29953, 29941, 29896, 29929, 29900, 584, 525, 29881, 2204, 3874, 345, 742, 13, 268, 29953, 29941, 29896, 29929, 29896, 584, 525, 29881, 631, 6656, 562, 1082, 742, 13, 268, 29953, 29941, 29896, 29929, 29906, 584, 525, 29881, 631, 6656, 3874, 345, 742, 13, 268, 29953, 29941, 29896, 29929, 29953, 584, 525, 3909, 29943, 29953, 12696, 742, 13, 268, 29953, 29941, 29896, 29929, 29929, 584, 525, 1760, 262, 571, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29900, 584, 525, 29883, 1237, 14805, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29896, 584, 525, 2055, 475, 571, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29906, 584, 525, 2055, 294, 14805, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29941, 584, 525, 29881, 26810, 262, 571, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29946, 584, 525, 29881, 3028, 1503, 14805, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29945, 584, 525, 5819, 9789, 262, 571, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29953, 584, 525, 5819, 561, 575, 14805, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29955, 584, 525, 19145, 262, 571, 1611, 742, 13, 268, 29953, 29941, 29906, 29900, 29947, 584, 525, 19145, 9136, 1611, 742, 13, 268, 29953, 29941, 29906, 29947, 29900, 584, 525, 9171, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29896, 584, 525, 650, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29906, 584, 525, 10184, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29941, 584, 525, 17536, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29946, 584, 525, 29888, 283, 307, 430, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29945, 584, 525, 20818, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29953, 584, 525, 28319, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29955, 584, 525, 344, 854, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29947, 584, 525, 29872, 523, 1025, 3293, 742, 13, 268, 29953, 29941, 29906, 29947, 29929, 584, 525, 29876, 457, 1025, 3293, 742, 13, 268, 29953, 29946, 29906, 29945, 29953, 584, 525, 600, 742, 13, 268, 29953, 29946, 29906, 29945, 29955, 584, 525, 7241, 742, 13, 268, 29953, 29946, 29906, 29945, 29947, 584, 525, 1579, 742, 13, 268, 29953, 29946, 29906, 29945, 29929, 584, 525, 600, 29875, 742, 13, 268, 29953, 29946, 29906, 29953, 29900, 584, 525, 600, 29880, 742, 13, 29913, 13, 13, 29937, 29901, 319, 8600, 10417, 6529, 8659, 304, 29104, 1819, 29889, 13, 567, 7039, 29906, 2523, 2631, 353, 9657, 4197, 29961, 29894, 29892, 413, 29962, 363, 413, 29892, 325, 297, 29104, 29906, 567, 7039, 29889, 7076, 580, 2314, 13, 13, 29937, 2683, 13, 29937, 29104, 20238, 13, 29937, 2683, 13, 13, 29937, 2045, 597, 1636, 29889, 4994, 29889, 510, 29914, 22449, 5275, 29914, 1862, 3135, 29914, 359, 29906, 29889, 13357, 13, 3267, 29906, 29918, 2523, 356, 29918, 29878, 6916, 29918, 4351, 353, 14550, 29905, 13, 29900, 29936, 19219, 13548, 29936, 29871, 29900, 29900, 29900, 29900, 29936, 29871, 29900, 29900, 29955, 29943, 29936, 13, 29896, 29936, 13548, 29899, 29896, 9179, 944, 29936, 29871, 29900, 29900, 29947, 29900, 29936, 29871, 29900, 29900, 4198, 29936, 13, 29906, 29936, 13548, 7338, 2760, 29899, 29909, 29936, 29871, 29900, 29896, 29900, 29900, 29936, 29871, 29900, 29896, 29955, 29943, 29936, 13, 29941, 29936, 13548, 7338, 2760, 29899, 29933, 29936, 29871, 29900, 29896, 29947, 29900, 29936, 29871, 29900, 29906, 29946, 29943, 29936, 13, 29946, 29936, 5641, 29909, 7338, 5580, 29936, 29871, 29900, 29906, 29945, 29900, 29936, 29871, 29900, 29906, 5098, 29936, 13, 29946, 29936, 1963, 265, 7492, 7338, 5580, 29936, 29871, 29896, 29928, 29900, 29900, 29936, 29871, 29896, 29928, 29955, 29943, 29936, 13, 29946, 29936, 1963, 265, 7492, 7338, 5580, 9179, 944, 29936, 29871, 29896, 29928, 29947, 29900, 29936, 29871, 29896, 4051, 29943, 29936, 13, 29945, 29936, 1706, 9390, 3382, 3709, 2803, 2153, 29936, 29871, 29900, 29906, 29933, 29900, 29936, 29871, 29900, 29906, 4198, 29936, 13, 29945, 29936, 3382, 3709, 323, 650, 2803, 2153, 29936, 319, 29955, 29900, 29900, 29936, 319, 29955, 29896, 29943, 29936, 13, 29953, 29936, 422, 2109, 292, 22866, 9695, 936, 4485, 29879, 29936, 29871, 29900, 29941, 29900, 29900, 29936, 29871, 29900, 29941, 29953, 29943, 29936, 13, 29953, 29936, 422, 2109, 292, 22866, 9695, 936, 4485, 29879, 9179, 944, 29936, 29871, 29896, 12696, 29900, 29936, 29871, 29896, 4037, 29943, 29936, 13, 29955, 29936, 12311, 322, 3189, 23000, 29936, 29871, 29900, 29941, 29955, 29900, 29936, 29871, 29900, 29941, 4198, 29936, 13, 29947, 29936, 3189, 23000, 29936, 29871, 29906, 29907, 29947, 29900, 29936, 29871, 29906, 29907, 4198, 29936, 13, 29929, 29936, 315, 4316, 453, 293, 29936, 29871, 29900, 29946, 29900, 29900, 29936, 29871, 29900, 29946, 4198, 29936, 13, 29929, 29936, 315, 4316, 453, 293, 9179, 944, 29936, 29871, 29900, 29945, 29900, 29900, 29936, 29871, 29900, 29945, 29906, 29943, 29936, 13, 29929, 29936, 315, 4316, 453, 293, 7338, 2760, 29899, 29909, 29936, 29871, 29906, 2287, 29900, 29936, 29871, 29906, 4037, 29943, 29936, 13, 29929, 29936, 315, 4316, 453, 293, 7338, 2760, 29899, 29933, 29936, 319, 29953, 29946, 29900, 29936, 319, 29953, 29929, 29943, 29936, 13, 29896, 29900, 29936, 19549, 713, 29936, 29871, 29900, 29945, 29941, 29900, 29936, 29871, 29900, 29945, 29947, 29943, 29936, 13, 29896, 29896, 29936, 18472, 3973, 29936, 29871, 29900, 29945, 29929, 29900, 29936, 29871, 29900, 29945, 4198, 29936, 13, 29896, 29906, 29936, 478, 1794, 29936, 319, 29945, 29900, 29900, 29936, 319, 29953, 29941, 29943, 29936, 13, 29896, 29941, 29936, 10387, 293, 29936, 29871, 29900, 29953, 29900, 29900, 29936, 29871, 29900, 29953, 4198, 29936, 13, 29896, 29941, 29936, 10387, 293, 9179, 944, 29936, 29871, 29900, 29955, 29945, 29900, 29936, 29871, 29900, 29955, 29955, 29943, 29936, 13, 29896, 29946, 29936, 28998, 29877, 29936, 29871, 29900, 29955, 29907, 29900, 29936, 29871, 29900, 29955, 4198, 29936, 13, 29896, 29945, 29936, 897, 3703, 351, 1306, 29936, 29871, 29900, 29929, 29900, 29900, 29936, 29871, 29900, 29929, 29955, 29943, 29936, 13, 29896, 29953, 29936, 20781, 2606, 29936, 29871, 29900, 29929, 29947, 29900, 29936, 29871, 29900, 29929, 4198, 29936, 13, 29896, 29955, 29936, 402, 332, 2589, 29895, 2918, 29936, 29871, 29900, 29909, 29900, 29900, 29936, 29871, 29900, 29909, 29955, 29943, 29936, 13, 29896, 29947, 29936, 2088, 4758, 2219, 29936, 29871, 29900, 29909, 29947, 29900, 29936, 29871, 29900, 29909, 4198, 29936, 13, 29896, 29929, 29936, 11678, 3761, 29936, 29871, 29900, 29933, 29900, 29900, 29936, 29871, 29900, 29933, 29955, 29943, 29936, 13, 29906, 29900, 29936, 323, 1344, 29936, 29871, 29900, 29933, 29947, 29900, 29936, 29871, 29900, 29933, 4198, 29936, 13, 29906, 29896, 29936, 18815, 688, 29884, 29936, 29871, 29900, 29907, 29900, 29900, 29936, 29871, 29900, 29907, 29955, 29943, 29936, 13, 29906, 29906, 29936, 476, 812, 1114, 29936, 29871, 29900, 29907, 29947, 29900, 29936, 29871, 29900, 29907, 4198, 29936, 13, 29906, 29941, 29936, 3792, 388, 284, 314, 29936, 29871, 29900, 29928, 29900, 29900, 29936, 29871, 29900, 29928, 29955, 29943, 29936, 13, 29906, 29946, 29936, 498, 1794, 29936, 29871, 29900, 29923, 29900, 29900, 29936, 29871, 29900, 29923, 29955, 29943, 29936, 13, 29906, 29945, 29936, 997, 29877, 29936, 29871, 29900, 29923, 29947, 29900, 29936, 29871, 29900, 29923, 4198, 29936, 13, 29906, 29953, 29936, 6158, 713, 29936, 29871, 29896, 29900, 29909, 29900, 29936, 29871, 29896, 29900, 4198, 29936, 13, 29906, 29953, 29936, 6158, 713, 9179, 944, 29936, 29871, 29906, 29928, 29900, 29900, 29936, 29871, 29906, 29928, 29906, 29943, 29936, 13, 29906, 29955, 29936, 7392, 8233, 29936, 29871, 29896, 29933, 29900, 29900, 29936, 29871, 29896, 29933, 29955, 29943, 29936, 13, 29906, 29947, 29936, 379, 574, 352, 435, 10178, 29936, 29871, 29896, 29896, 29900, 29900, 29936, 29871, 29896, 29896, 4198, 29936, 13, 29906, 29929, 29936, 13548, 7338, 2760, 3462, 3245, 29936, 29871, 29896, 29923, 29900, 29900, 29936, 29871, 29896, 29923, 4198, 29936, 13, 29906, 29929, 29936, 13548, 7338, 2760, 29899, 29907, 29936, 29871, 29906, 29907, 29953, 29900, 29936, 29871, 29906, 29907, 29955, 29943, 29936, 13, 29906, 29929, 29936, 13548, 7338, 2760, 29899, 29928, 29936, 319, 29955, 29906, 29900, 29936, 319, 29955, 4198, 29936, 13, 29941, 29900, 29936, 12311, 7338, 2760, 29936, 29871, 29896, 29943, 29900, 29900, 29936, 29871, 29896, 4198, 29943, 29936, 13, 29941, 29896, 29936, 4593, 349, 18049, 29884, 362, 29936, 29871, 29906, 29900, 29900, 29900, 29936, 29871, 29906, 29900, 29953, 29943, 29936, 13, 29941, 29896, 29936, 9179, 944, 284, 349, 18049, 29884, 362, 29936, 29871, 29906, 29923, 29900, 29900, 29936, 29871, 29906, 29923, 29955, 29943, 29936, 13, 29941, 29906, 29936, 13786, 414, 924, 29879, 1126, 3323, 16713, 29936, 29871, 29906, 29900, 29955, 29900, 29936, 29871, 29906, 29900, 29929, 29943, 29936, 13, 29941, 29941, 29936, 315, 10880, 23858, 29879, 29936, 29871, 29906, 29900, 29909, 29900, 29936, 29871, 29906, 29900, 9207, 29936, 13, 29941, 29946, 29936, 422, 2109, 292, 22866, 9695, 936, 4485, 29879, 1152, 23858, 29879, 29936, 29871, 29906, 29900, 29928, 29900, 29936, 29871, 29906, 29900, 4198, 29936, 13, 29941, 29945, 29936, 2803, 357, 4561, 23858, 29879, 29936, 29871, 29906, 29896, 29900, 29900, 29936, 29871, 29906, 29896, 29946, 29943, 29936, 13, 29941, 29953, 29936, 9681, 3812, 29879, 29936, 29871, 29906, 29896, 29945, 29900, 29936, 29871, 29906, 29896, 29947, 29943, 29936, 13, 29941, 29955, 29936, 826, 5727, 29936, 29871, 29906, 29896, 29929, 29900, 29936, 29871, 29906, 29896, 4198, 29936, 13, 29941, 29955, 29936, 9179, 944, 284, 826, 5727, 29899, 29909, 29936, 29871, 29906, 29955, 29943, 29900, 29936, 29871, 29906, 29955, 4198, 29936, 13, 29941, 29955, 29936, 9179, 944, 284, 826, 5727, 29899, 29933, 29936, 29871, 29906, 29929, 29900, 29900, 29936, 29871, 29906, 29929, 29955, 29943, 29936, 13, 29941, 29955, 29936, 20929, 3729, 23584, 23858, 29879, 322, 826, 5727, 29936, 29871, 29906, 29933, 29900, 29900, 29936, 29871, 29906, 29933, 4198, 29936, 13, 29941, 29947, 29936, 13486, 936, 6607, 4097, 29936, 29871, 29906, 29906, 29900, 29900, 29936, 29871, 29906, 29906, 4198, 29936, 13, 29941, 29947, 29936, 9179, 944, 284, 13486, 936, 6607, 4097, 29936, 29871, 29906, 29909, 29900, 29900, 29936, 29871, 29906, 29909, 4198, 29936, 13, 29941, 29947, 29936, 20929, 3729, 23584, 13486, 936, 23858, 29879, 29899, 29909, 29936, 29871, 29906, 29955, 29907, 29900, 29936, 29871, 29906, 29955, 29638, 29936, 13, 29941, 29947, 29936, 20929, 3729, 23584, 13486, 936, 23858, 29879, 29899, 29933, 29936, 29871, 29906, 29929, 29947, 29900, 29936, 29871, 29906, 29929, 4198, 29936, 13, 29941, 29929, 29936, 20929, 3729, 23584, 8364, 936, 29936, 29871, 29906, 29941, 29900, 29900, 29936, 29871, 29906, 29941, 4198, 29936, 13, 29946, 29900, 29936, 11264, 26069, 29936, 29871, 29906, 29946, 29900, 29900, 29936, 29871, 29906, 29946, 29941, 29943, 29936, 13, 29946, 29896, 29936, 20693, 936, 26804, 3599, 3811, 654, 29936, 29871, 29906, 29946, 29946, 29900, 29936, 29871, 29906, 29946, 29945, 29943, 29936, 13, 29946, 29906, 29936, 1174, 15603, 838, 16711, 4680, 1199, 29936, 29871, 29906, 29946, 29953, 29900, 29936, 29871, 29906, 29946, 4198, 29936, 13, 29946, 29941, 29936, 11773, 18492, 292, 29936, 29871, 29906, 29945, 29900, 29900, 29936, 29871, 29906, 29945, 29955, 29943, 29936, 13, 29946, 29946, 29936, 15658, 10619, 29879, 29936, 29871, 29906, 29945, 29947, 29900, 29936, 29871, 29906, 29945, 29929, 29943, 29936, 13, 29946, 29945, 29936, 1879, 14066, 1383, 11603, 29936, 29871, 29906, 29945, 29909, 29900, 29936, 29871, 29906, 29945, 4198, 29936, 13, 29946, 29953, 29936, 20929, 3729, 23584, 23858, 29879, 29936, 29871, 29906, 29953, 29900, 29900, 29936, 29871, 29906, 29953, 4198, 29936, 13, 29946, 29955, 29936, 360, 292, 29890, 1446, 29936, 29871, 29906, 29955, 29900, 29900, 29936, 29871, 29906, 29955, 28062, 29936, 13, 29946, 29947, 29936, 315, 29967, 29968, 23858, 29879, 1126, 349, 18049, 29884, 362, 29936, 29871, 29941, 29900, 29900, 29900, 29936, 29871, 29941, 29900, 29941, 29943, 29936, 13, 29946, 29929, 29936, 6324, 1431, 1648, 29936, 29871, 29941, 29900, 29946, 29900, 29936, 29871, 29941, 29900, 29929, 29943, 29936, 13, 29945, 29900, 29936, 476, 532, 29895, 1648, 29936, 29871, 29941, 29900, 29909, 29900, 29936, 29871, 29941, 29900, 4198, 29936, 13, 29945, 29900, 29936, 476, 532, 29895, 1648, 1963, 265, 7492, 7338, 5580, 29936, 29871, 29941, 29896, 29943, 29900, 29936, 29871, 29941, 29896, 4198, 29936, 13, 29945, 29896, 29936, 350, 459, 290, 974, 29877, 29936, 29871, 29941, 29896, 29900, 29900, 29936, 29871, 29941, 29896, 29906, 29943, 29936, 13, 29945, 29896, 29936, 350, 459, 290, 974, 29877, 7338, 2760, 29936, 29871, 29941, 29896, 29909, 29900, 29936, 29871, 29941, 29896, 28062, 29936, 13, 29945, 29906, 29936, 379, 574, 352, 3831, 271, 4127, 435, 10178, 29936, 29871, 29941, 29896, 29941, 29900, 29936, 29871, 29941, 29896, 29947, 29943, 29936, 13, 29945, 29941, 29936, 1963, 810, 29899, 3274, 29936, 319, 29947, 29946, 29900, 29936, 319, 29947, 29955, 29943, 29936, 13, 29945, 29946, 29936, 1174, 15603, 315, 29967, 29968, 2803, 2153, 1126, 23471, 29879, 29936, 29871, 29941, 29906, 29900, 29900, 29936, 29871, 29941, 29906, 4198, 29936, 13, 29945, 29945, 29936, 315, 29967, 29968, 3831, 271, 4127, 29936, 29871, 29941, 29941, 29900, 29900, 29936, 29871, 29941, 29941, 4198, 29936, 13, 29945, 29953, 29936, 379, 574, 352, 8713, 645, 1849, 29936, 14614, 29900, 29900, 29936, 360, 29955, 5098, 29936, 13, 29945, 29955, 29936, 10050, 29899, 3247, 1662, 29871, 29900, 334, 29936, 360, 29947, 29900, 29900, 29936, 360, 4198, 29943, 29936, 13, 29945, 29947, 29936, 21884, 264, 8910, 29936, 29871, 29896, 29900, 29929, 29900, 29900, 29936, 29871, 29896, 29900, 29929, 29896, 29943, 29936, 13, 29945, 29929, 29936, 315, 29967, 29968, 853, 2164, 13001, 1946, 29879, 29936, 29871, 29946, 29923, 29900, 29900, 29936, 29871, 29929, 4198, 29943, 29936, 13, 29945, 29929, 29936, 315, 29967, 29968, 4957, 936, 29879, 9179, 944, 29936, 29871, 29906, 29923, 29947, 29900, 29936, 29871, 29906, 29923, 4198, 29936, 13, 29945, 29929, 29936, 476, 574, 5389, 4957, 936, 29879, 29936, 29871, 29906, 29943, 29900, 29900, 29936, 29871, 29906, 29943, 4037, 29936, 13, 29945, 29929, 29936, 13001, 12122, 12953, 2896, 21706, 29936, 29871, 29906, 4198, 29900, 29936, 29871, 29906, 4198, 29943, 29936, 13, 29945, 29929, 29936, 315, 29967, 29968, 853, 2164, 13001, 1946, 29879, 7338, 2673, 319, 29936, 29871, 29941, 29946, 29900, 29900, 29936, 29871, 29946, 4051, 29943, 29936, 13, 29945, 29929, 29936, 315, 29967, 29968, 853, 2164, 13001, 1946, 29879, 7338, 2673, 350, 29936, 29871, 29906, 29900, 29900, 29900, 29900, 29936, 29871, 29906, 29909, 29953, 4037, 29936, 13, 29945, 29929, 29936, 11720, 29890, 348, 29936, 29871, 29941, 29896, 29929, 29900, 29936, 29871, 29941, 29896, 29929, 29943, 29936, 13, 29953, 29900, 29936, 12230, 4803, 18320, 29936, 382, 29900, 29900, 29900, 29936, 383, 29947, 4198, 29936, 13, 29953, 29896, 29936, 315, 29967, 29968, 624, 307, 10794, 29936, 29871, 29941, 29896, 29907, 29900, 29936, 29871, 29941, 29896, 29638, 29936, 13, 29953, 29896, 29936, 315, 29967, 29968, 3831, 271, 4127, 13001, 1946, 29879, 29936, 383, 29929, 29900, 29900, 29936, 13515, 4198, 29936, 13, 29953, 29896, 29936, 315, 29967, 29968, 3831, 271, 4127, 13001, 1946, 29879, 9179, 944, 29936, 29871, 29906, 29943, 29947, 29900, 29900, 29936, 29871, 29906, 4519, 29896, 29943, 29936, 13, 29953, 29906, 29936, 838, 561, 370, 7492, 4360, 9233, 3812, 29879, 29936, 28816, 29900, 29900, 29936, 28816, 29946, 29943, 29936, 13, 29953, 29941, 29936, 10387, 293, 4360, 9233, 3812, 29879, 29899, 29909, 29936, 28816, 29945, 29900, 29936, 383, 4037, 29943, 29936, 13, 29953, 29946, 29936, 422, 2109, 292, 28144, 4485, 29879, 29936, 383, 29923, 29906, 29900, 29936, 383, 29923, 29906, 29943, 29936, 13, 29953, 29945, 29936, 11198, 936, 3812, 29879, 29936, 383, 29923, 29896, 29900, 29936, 383, 29923, 29896, 29943, 29936, 13, 29953, 29945, 29936, 315, 29967, 29968, 3831, 271, 4127, 3812, 29879, 29936, 383, 29923, 29941, 29900, 29936, 383, 29923, 29946, 29943, 29936, 13, 29953, 29953, 29936, 18285, 3812, 9586, 1934, 29936, 383, 29923, 29945, 29900, 29936, 383, 29923, 29953, 29943, 29936, 13, 29953, 29955, 29936, 10387, 293, 4360, 9233, 3812, 29879, 29899, 29933, 29936, 383, 29923, 29955, 29900, 29936, 383, 29923, 4198, 29936, 13, 29953, 29947, 29936, 28144, 2103, 1126, 14846, 2103, 3812, 29879, 29936, 21379, 29900, 29900, 29936, 383, 16359, 29943, 29936, 13, 29953, 29929, 29936, 5013, 455, 1338, 29936, 383, 4198, 29900, 29936, 383, 4198, 29943, 29936, 13, 29955, 29900, 29936, 19429, 300, 273, 29936, 29871, 29900, 29943, 29900, 29900, 29936, 29871, 29900, 4198, 29943, 29936, 13, 29955, 29896, 29936, 8713, 374, 562, 29936, 29871, 29900, 29955, 29900, 29900, 29936, 29871, 29900, 29955, 29946, 29943, 29936, 13, 29955, 29906, 29936, 498, 29874, 1648, 29936, 29871, 29900, 29955, 29947, 29900, 29936, 29871, 29900, 29955, 28062, 29936, 13, 29955, 29941, 29936, 8882, 29882, 2883, 29936, 29871, 29900, 29928, 29947, 29900, 29936, 29871, 29900, 4037, 29943, 29936, 13, 29955, 29946, 29936, 1619, 273, 3034, 29936, 29871, 29896, 29900, 29900, 29900, 29936, 29871, 29896, 29900, 29929, 29943, 29936, 13, 29955, 29945, 29936, 13772, 21260, 293, 29936, 29871, 29896, 29906, 29900, 29900, 29936, 29871, 29896, 29941, 29955, 29943, 29936, 13, 29955, 29945, 29936, 13772, 21260, 293, 9179, 944, 29936, 29871, 29896, 29941, 29947, 29900, 29936, 29871, 29896, 29941, 29929, 29943, 29936, 13, 29955, 29945, 29936, 13772, 21260, 293, 7338, 2760, 29936, 29871, 29906, 29928, 29947, 29900, 29936, 29871, 29906, 29928, 4037, 29936, 13, 29955, 29953, 29936, 678, 1489, 23137, 29936, 29871, 29896, 29941, 29909, 29900, 29936, 29871, 29896, 29941, 4198, 29936, 13, 29955, 29955, 29936, 853, 2164, 11443, 1976, 13492, 8713, 645, 370, 1199, 29936, 29871, 29896, 29946, 29900, 29900, 29936, 29871, 29896, 29953, 29955, 29943, 29936, 13, 29955, 29947, 29936, 20807, 3391, 29936, 29871, 29896, 29953, 29947, 29900, 29936, 29871, 29896, 29953, 29929, 29943, 29936, 13, 29955, 29929, 29936, 390, 2523, 29936, 29871, 29896, 29953, 29909, 29900, 29936, 29871, 29896, 29953, 4198, 29936, 13, 29947, 29900, 29936, 12217, 1050, 29936, 29871, 29896, 29955, 29947, 29900, 29936, 29871, 29896, 29955, 4198, 29936, 13, 29947, 29900, 29936, 12217, 1050, 23858, 29879, 29936, 29871, 29896, 29929, 29923, 29900, 29936, 29871, 29896, 29929, 4198, 29936, 13, 29947, 29896, 29936, 21952, 324, 713, 29936, 29871, 29896, 29947, 29900, 29900, 29936, 29871, 29896, 29947, 5098, 29936, 13, 29947, 29906, 29936, 5032, 1924, 25860, 29879, 29936, 29871, 29906, 29947, 29900, 29900, 29936, 29871, 29906, 29947, 4198, 29936, 13, 29947, 29941, 29936, 612, 29875, 8713, 645, 1849, 29936, 319, 29900, 29900, 29900, 29936, 319, 29946, 29947, 29943, 29936, 13, 29947, 29941, 29936, 612, 29875, 4957, 936, 29879, 29936, 319, 29946, 29929, 29900, 29936, 319, 29946, 9207, 29936, 13, 29947, 29946, 29936, 10522, 27330, 29936, 29871, 29896, 29955, 29900, 29900, 29936, 29871, 29896, 29955, 29896, 29943, 29936, 13, 29947, 29946, 29936, 7169, 348, 3634, 29936, 29871, 29896, 29955, 29906, 29900, 29936, 29871, 29896, 29955, 29941, 29943, 29936, 13, 29947, 29946, 29936, 5373, 29882, 333, 29936, 29871, 29896, 29955, 29946, 29900, 29936, 29871, 29896, 29955, 29945, 29943, 29936, 13, 29947, 29946, 29936, 10522, 2571, 2766, 29936, 29871, 29896, 29955, 29953, 29900, 29936, 29871, 29896, 29955, 29955, 29943, 29936, 13, 29947, 29945, 29936, 8198, 4041, 293, 29936, 29871, 29896, 29900, 29941, 29900, 29900, 29936, 29871, 29896, 29900, 29941, 29906, 29943, 29936, 13, 29947, 29953, 29936, 22883, 293, 29936, 29871, 29896, 29900, 29941, 29941, 29900, 29936, 29871, 29896, 29900, 29941, 29946, 29943, 29936, 13, 29947, 29955, 29936, 2726, 261, 300, 29936, 29871, 29896, 29900, 29946, 29900, 29900, 29936, 29871, 29896, 29900, 29946, 29946, 29943, 29936, 13, 29947, 29947, 29936, 2648, 29920, 20578, 28554, 23858, 29879, 29936, 29871, 29896, 29928, 29900, 29900, 29900, 29936, 29871, 29896, 29928, 29900, 4198, 29936, 13, 29947, 29947, 29936, 28554, 23858, 29879, 29936, 29871, 29896, 29928, 29896, 29900, 29900, 29936, 29871, 29896, 29928, 29896, 4198, 29936, 13, 29947, 29947, 29936, 530, 15566, 12311, 28554, 2216, 362, 29936, 29871, 29896, 29928, 29906, 29900, 29900, 29936, 29871, 29896, 29928, 29906, 29946, 29943, 29936, 13, 29947, 29929, 29936, 13486, 936, 838, 16711, 25099, 23858, 29879, 29936, 29871, 29896, 29928, 29946, 29900, 29900, 29936, 29871, 29896, 29928, 29955, 4198, 29936, 13, 29929, 29900, 29936, 12230, 4803, 313, 22116, 29871, 29896, 29945, 416, 21379, 29900, 29900, 29900, 29936, 383, 4198, 26453, 29936, 13, 29929, 29900, 29936, 12230, 4803, 313, 22116, 29871, 29896, 29953, 416, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29936, 29871, 29896, 29900, 4198, 26453, 29936, 13, 29929, 29896, 29936, 9586, 362, 7605, 943, 29936, 383, 29923, 29900, 29900, 29936, 383, 29923, 29900, 29943, 29936, 13, 29929, 29896, 29936, 9586, 362, 7605, 943, 9179, 944, 29936, 382, 29900, 29896, 29900, 29900, 29936, 382, 29900, 29896, 29638, 29936, 13, 29929, 29906, 29936, 917, 29936, 382, 29900, 29900, 29900, 29900, 29936, 382, 29900, 29900, 29955, 29943, 29936, 13, 29929, 29941, 29936, 9628, 2423, 29936, 29871, 29896, 29929, 29900, 29900, 29936, 29871, 29896, 29929, 29946, 29943, 29936, 13, 29929, 29946, 29936, 17984, 951, 29936, 29871, 29896, 29929, 29945, 29900, 29936, 29871, 29896, 29929, 29955, 29943, 29936, 13, 29929, 29945, 29936, 1570, 17984, 365, 434, 29936, 29871, 29896, 29929, 29947, 29900, 29936, 29871, 29896, 29929, 4037, 29936, 13, 29929, 29953, 29936, 350, 3851, 968, 29936, 29871, 29896, 29909, 29900, 29900, 29936, 29871, 29896, 29909, 29896, 29943, 29936, 13, 29929, 29955, 29936, 402, 3110, 27298, 293, 29936, 29871, 29906, 29907, 29900, 29900, 29936, 29871, 29906, 29907, 29945, 29943, 29936, 13, 29929, 29947, 29936, 323, 361, 262, 21705, 29936, 29871, 29906, 29928, 29941, 29900, 29936, 29871, 29906, 29928, 29955, 29943, 29936, 13, 29929, 29929, 29936, 612, 823, 292, 379, 735, 14442, 23858, 29879, 29936, 29871, 29946, 12696, 29900, 29936, 29871, 29946, 4037, 29943, 29936, 13, 29896, 29900, 29900, 29936, 19628, 15297, 14461, 374, 29936, 319, 29947, 29900, 29900, 29936, 319, 29947, 29906, 29943, 29936, 13, 29896, 29900, 29896, 29936, 22985, 350, 8713, 645, 370, 653, 29936, 29871, 29896, 29900, 29900, 29900, 29900, 29936, 29871, 29896, 29900, 29900, 29955, 29943, 29936, 13, 29896, 29900, 29896, 29936, 22985, 350, 13001, 468, 25402, 29936, 29871, 29896, 29900, 29900, 29947, 29900, 29936, 29871, 29896, 29900, 29900, 4198, 29936, 13, 29896, 29900, 29896, 29936, 319, 26103, 273, 11848, 2596, 29936, 29871, 29896, 29900, 29896, 29900, 29900, 29936, 29871, 29896, 29900, 29896, 29941, 29943, 29936, 13, 29896, 29900, 29906, 29936, 530, 15566, 12311, 11848, 2596, 29936, 29871, 29896, 29900, 29896, 29946, 29900, 29936, 29871, 29896, 29900, 29896, 29947, 29943, 29936, 13, 29896, 29900, 29941, 29936, 501, 5397, 277, 293, 29936, 29871, 29896, 29900, 29941, 29947, 29900, 29936, 29871, 29896, 29900, 29941, 29929, 29943, 29936, 13, 29896, 29900, 29946, 29936, 8198, 9034, 713, 29936, 29871, 29896, 29900, 29941, 29909, 29900, 29936, 29871, 29896, 29900, 29941, 4037, 29936, 13, 29896, 29900, 29945, 29936, 1383, 485, 713, 29936, 29871, 29896, 29900, 29946, 29945, 29900, 29936, 29871, 29896, 29900, 29946, 29955, 29943, 29936, 13, 29896, 29900, 29953, 29936, 6657, 1171, 3761, 29936, 29871, 29896, 29900, 29946, 29947, 29900, 29936, 29871, 29896, 29900, 29946, 5098, 29936, 13, 29896, 29900, 29955, 29936, 315, 1478, 374, 327, 8713, 645, 370, 653, 29936, 29871, 29896, 29900, 29947, 29900, 29900, 29936, 29871, 29896, 29900, 29947, 29941, 29943, 29936, 13, 29896, 29900, 29947, 29936, 476, 8222, 10578, 386, 29875, 29936, 29871, 29896, 29900, 29909, 29900, 29900, 29936, 29871, 29896, 29900, 29909, 29945, 29943, 29936, 13, 29896, 29900, 29929, 29936, 17984, 1060, 12323, 435, 292, 23858, 29879, 29936, 29871, 29896, 29928, 29941, 29900, 29900, 29936, 29871, 29896, 29928, 29941, 29945, 29943, 29936, 13, 29896, 29896, 29900, 29936, 315, 1540, 5560, 29936, 29871, 29896, 29906, 29900, 29900, 29900, 29936, 29871, 29896, 29906, 29941, 4198, 29936, 13, 29896, 29896, 29900, 29936, 315, 1540, 5560, 11848, 2596, 322, 349, 18049, 29884, 362, 29936, 29871, 29896, 29906, 29946, 29900, 29900, 29936, 29871, 29896, 29906, 29946, 29955, 29943, 29936, 13, 29896, 29896, 29896, 29936, 3917, 292, 7733, 405, 4680, 1338, 29936, 29871, 29896, 29928, 29941, 29953, 29900, 29936, 29871, 29896, 29928, 29941, 29955, 29943, 29936, 13, 29896, 29896, 29906, 29936, 12009, 273, 968, 29936, 29871, 29896, 29933, 29947, 29900, 29936, 29871, 29896, 14388, 29943, 29936, 13, 29896, 29896, 29941, 29936, 951, 29886, 5815, 29936, 29871, 29896, 29907, 29900, 29900, 29936, 29871, 29896, 29907, 29946, 29943, 29936, 13, 29896, 29896, 29946, 29936, 529, 5813, 25867, 29871, 29896, 29907, 29945, 29900, 29936, 29871, 29896, 29907, 29955, 29943, 29936, 13, 29896, 29896, 29945, 29936, 5701, 10939, 400, 336, 29936, 319, 29947, 29947, 29900, 29936, 319, 29947, 4037, 29936, 13, 29896, 29896, 29953, 29936, 529, 5813, 25867, 319, 29929, 29900, 29900, 29936, 319, 29929, 29906, 29943, 29936, 13, 29896, 29896, 29955, 29936, 830, 29926, 574, 29936, 319, 29929, 29941, 29900, 29936, 319, 29929, 29945, 29943, 29936, 13, 29896, 29896, 29947, 29936, 13749, 29936, 22704, 29900, 29900, 29936, 22704, 29945, 29943, 29936, 13, 29896, 29896, 29929, 29936, 530, 15566, 23858, 29879, 29936, 29871, 29896, 29900, 29896, 29929, 29900, 29936, 29871, 29896, 29900, 29896, 9207, 29936, 13, 29896, 29906, 29900, 29936, 1963, 29874, 391, 359, 8565, 29936, 29871, 29896, 29900, 29896, 29928, 29900, 29936, 29871, 29896, 29900, 29896, 4198, 29936, 13, 29896, 29906, 29896, 29936, 1704, 713, 29936, 29871, 29896, 29900, 29906, 29909, 29900, 29936, 29871, 29896, 29900, 29906, 4037, 29936, 13, 29896, 29906, 29896, 29936, 8626, 28445, 29936, 29871, 29896, 29900, 29906, 29947, 29900, 29936, 29871, 29896, 29900, 29906, 29929, 29943, 29936, 13, 29896, 29906, 29896, 29936, 365, 2941, 713, 29936, 29871, 29896, 29900, 29929, 29906, 29900, 29936, 29871, 29896, 29900, 29929, 29941, 29943, 29936, 13, 29896, 29906, 29906, 29936, 529, 5813, 25867, 29871, 29896, 29943, 29900, 29941, 29900, 29936, 29871, 29896, 29943, 29900, 29929, 29943, 29936, 13, 29896, 29906, 29906, 29936, 529, 5813, 25867, 29871, 29896, 29943, 29900, 29900, 29900, 29936, 29871, 29896, 29943, 29900, 29906, 29943, 29936, 13, 12008, 13, 13, 3267, 29906, 29918, 2523, 356, 29918, 29878, 6916, 353, 8170, 287, 21533, 580, 13, 1454, 1196, 297, 6570, 29906, 29918, 2523, 356, 29918, 29878, 6916, 29918, 4351, 29889, 5451, 28909, 29876, 29374, 13, 1678, 565, 7431, 29898, 1220, 29889, 5451, 877, 29936, 8785, 1275, 29871, 29945, 29901, 13, 4706, 2586, 29892, 29104, 29918, 3881, 29892, 2908, 29918, 2962, 29892, 2908, 29918, 355, 353, 1196, 29889, 5451, 877, 29936, 1495, 7503, 29946, 29962, 13, 4706, 6570, 29906, 29918, 2523, 356, 29918, 29878, 6916, 29961, 2523, 356, 29918, 3881, 29889, 17010, 580, 29962, 353, 518, 524, 29898, 2966, 511, 313, 1271, 29918, 2962, 29889, 17010, 3285, 2908, 29918, 355, 29889, 17010, 3101, 29962, 13, 13, 2 ]
darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/installable_package_summary.py
revnav/sandbox
0
75731
<gh_stars>0 # coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class InstallablePackageSummary(object): """ A software package available for install on a managed instance """ def __init__(self, **kwargs): """ Initializes a new InstallablePackageSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this InstallablePackageSummary. :type display_name: str :param name: The value to assign to the name property of this InstallablePackageSummary. :type name: str :param type: The value to assign to the type property of this InstallablePackageSummary. :type type: str :param version: The value to assign to the version property of this InstallablePackageSummary. :type version: str :param architecture: The value to assign to the architecture property of this InstallablePackageSummary. :type architecture: str :param software_sources: The value to assign to the software_sources property of this InstallablePackageSummary. :type software_sources: list[SoftwareSourceId] """ self.swagger_types = { 'display_name': 'str', 'name': 'str', 'type': 'str', 'version': 'str', 'architecture': 'str', 'software_sources': 'list[SoftwareSourceId]' } self.attribute_map = { 'display_name': 'displayName', 'name': 'name', 'type': 'type', 'version': 'version', 'architecture': 'architecture', 'software_sources': 'softwareSources' } self._display_name = None self._name = None self._type = None self._version = None self._architecture = None self._software_sources = None @property def display_name(self): """ **[Required]** Gets the display_name of this InstallablePackageSummary. Package name :return: The display_name of this InstallablePackageSummary. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this InstallablePackageSummary. Package name :param display_name: The display_name of this InstallablePackageSummary. :type: str """ self._display_name = display_name @property def name(self): """ **[Required]** Gets the name of this InstallablePackageSummary. Unique identifier for the package. NOTE - This is not an OCID :return: The name of this InstallablePackageSummary. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this InstallablePackageSummary. Unique identifier for the package. NOTE - This is not an OCID :param name: The name of this InstallablePackageSummary. :type: str """ self._name = name @property def type(self): """ **[Required]** Gets the type of this InstallablePackageSummary. Type of the package :return: The type of this InstallablePackageSummary. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this InstallablePackageSummary. Type of the package :param type: The type of this InstallablePackageSummary. :type: str """ self._type = type @property def version(self): """ **[Required]** Gets the version of this InstallablePackageSummary. Version of the package :return: The version of this InstallablePackageSummary. :rtype: str """ return self._version @version.setter def version(self, version): """ Sets the version of this InstallablePackageSummary. Version of the package :param version: The version of this InstallablePackageSummary. :type: str """ self._version = version @property def architecture(self): """ Gets the architecture of this InstallablePackageSummary. The architecture for which this package was built :return: The architecture of this InstallablePackageSummary. :rtype: str """ return self._architecture @architecture.setter def architecture(self, architecture): """ Sets the architecture of this InstallablePackageSummary. The architecture for which this package was built :param architecture: The architecture of this InstallablePackageSummary. :type: str """ self._architecture = architecture @property def software_sources(self): """ Gets the software_sources of this InstallablePackageSummary. list of software sources that provide the software package :return: The software_sources of this InstallablePackageSummary. :rtype: list[SoftwareSourceId] """ return self._software_sources @software_sources.setter def software_sources(self, software_sources): """ Sets the software_sources of this InstallablePackageSummary. list of software sources that provide the software package :param software_sources: The software_sources of this InstallablePackageSummary. :type: list[SoftwareSourceId] """ self._software_sources = software_sources def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 29892, 29871, 29906, 29900, 29906, 29900, 29892, 15401, 322, 29914, 272, 967, 23736, 1078, 29889, 29871, 2178, 10462, 21676, 29889, 13, 29937, 910, 7047, 338, 14581, 29899, 506, 21144, 304, 366, 1090, 278, 21536, 20894, 790, 573, 19245, 313, 4897, 29931, 29897, 29871, 29896, 29889, 29900, 408, 4318, 472, 2045, 597, 2209, 29889, 11347, 29889, 510, 29914, 506, 11259, 29914, 29884, 572, 470, 13380, 19245, 29871, 29906, 29889, 29900, 408, 4318, 472, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 29889, 887, 1122, 6755, 2845, 19405, 29889, 13, 13, 13, 3166, 288, 455, 29889, 4422, 1053, 20917, 29918, 20620, 29918, 8977, 29892, 405, 12413, 29918, 29903, 3919, 1177, 6670, 29892, 995, 29918, 24622, 29918, 9290, 29918, 272, 29918, 9290, 29918, 29879, 15440, 295, 29871, 396, 694, 25621, 29901, 383, 29946, 29900, 29896, 13, 3166, 288, 455, 29889, 19557, 4097, 1053, 2069, 29918, 4299, 29918, 3859, 29918, 3166, 29918, 19290, 13, 13, 13, 29992, 2344, 29918, 4299, 29918, 3859, 29918, 3166, 29918, 19290, 13, 1990, 16052, 519, 14459, 26289, 29898, 3318, 1125, 13, 1678, 9995, 13, 1678, 319, 7047, 3577, 3625, 363, 2601, 373, 263, 8745, 2777, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 17250, 7093, 263, 716, 16052, 519, 14459, 26289, 1203, 411, 1819, 515, 13553, 6273, 29889, 13, 4706, 450, 1494, 13553, 6273, 526, 6969, 313, 2616, 3636, 292, 304, 278, 679, 2153, 29914, 842, 2153, 310, 445, 770, 1125, 13, 13, 4706, 584, 3207, 2479, 29918, 978, 29901, 13, 9651, 450, 995, 304, 3566, 304, 278, 2479, 29918, 978, 2875, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 2479, 29918, 978, 29901, 851, 13, 13, 4706, 584, 3207, 1024, 29901, 13, 9651, 450, 995, 304, 3566, 304, 278, 1024, 2875, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 1024, 29901, 851, 13, 13, 4706, 584, 3207, 1134, 29901, 13, 9651, 450, 995, 304, 3566, 304, 278, 1134, 2875, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 1134, 29901, 851, 13, 13, 4706, 584, 3207, 1873, 29901, 13, 9651, 450, 995, 304, 3566, 304, 278, 1873, 2875, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 1873, 29901, 851, 13, 13, 4706, 584, 3207, 11258, 29901, 13, 9651, 450, 995, 304, 3566, 304, 278, 11258, 2875, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 11258, 29901, 851, 13, 13, 4706, 584, 3207, 7047, 29918, 29879, 2863, 29901, 13, 9651, 450, 995, 304, 3566, 304, 278, 7047, 29918, 29879, 2863, 2875, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 7047, 29918, 29879, 2863, 29901, 1051, 29961, 6295, 14093, 4435, 1204, 29962, 13, 13, 4706, 9995, 13, 4706, 1583, 29889, 2774, 9921, 29918, 8768, 353, 426, 13, 9651, 525, 4990, 29918, 978, 2396, 525, 710, 742, 13, 9651, 525, 978, 2396, 525, 710, 742, 13, 9651, 525, 1853, 2396, 525, 710, 742, 13, 9651, 525, 3259, 2396, 525, 710, 742, 13, 9651, 525, 25428, 2396, 525, 710, 742, 13, 9651, 525, 20415, 29918, 29879, 2863, 2396, 525, 1761, 29961, 6295, 14093, 4435, 1204, 29962, 29915, 13, 4706, 500, 13, 13, 4706, 1583, 29889, 12715, 29918, 1958, 353, 426, 13, 9651, 525, 4990, 29918, 978, 2396, 525, 4990, 1170, 742, 13, 9651, 525, 978, 2396, 525, 978, 742, 13, 9651, 525, 1853, 2396, 525, 1853, 742, 13, 9651, 525, 3259, 2396, 525, 3259, 742, 13, 9651, 525, 25428, 2396, 525, 25428, 742, 13, 9651, 525, 20415, 29918, 29879, 2863, 2396, 525, 20415, 29903, 2863, 29915, 13, 4706, 500, 13, 13, 4706, 1583, 3032, 4990, 29918, 978, 353, 6213, 13, 4706, 1583, 3032, 978, 353, 6213, 13, 4706, 1583, 3032, 1853, 353, 6213, 13, 4706, 1583, 3032, 3259, 353, 6213, 13, 4706, 1583, 3032, 25428, 353, 6213, 13, 4706, 1583, 3032, 20415, 29918, 29879, 2863, 353, 6213, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2479, 29918, 978, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3579, 29961, 19347, 29962, 1068, 402, 1691, 278, 2479, 29918, 978, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 22029, 1024, 13, 13, 13, 4706, 584, 2457, 29901, 450, 2479, 29918, 978, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 4990, 29918, 978, 13, 13, 1678, 732, 4990, 29918, 978, 29889, 842, 357, 13, 1678, 822, 2479, 29918, 978, 29898, 1311, 29892, 2479, 29918, 978, 1125, 13, 4706, 9995, 13, 4706, 317, 1691, 278, 2479, 29918, 978, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 22029, 1024, 13, 13, 13, 4706, 584, 3207, 2479, 29918, 978, 29901, 450, 2479, 29918, 978, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 1583, 3032, 4990, 29918, 978, 353, 2479, 29918, 978, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1024, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3579, 29961, 19347, 29962, 1068, 402, 1691, 278, 1024, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 853, 1387, 15882, 363, 278, 3577, 29889, 6058, 29923, 448, 910, 338, 451, 385, 438, 29907, 1367, 13, 13, 13, 4706, 584, 2457, 29901, 450, 1024, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 978, 13, 13, 1678, 732, 978, 29889, 842, 357, 13, 1678, 822, 1024, 29898, 1311, 29892, 1024, 1125, 13, 4706, 9995, 13, 4706, 317, 1691, 278, 1024, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 853, 1387, 15882, 363, 278, 3577, 29889, 6058, 29923, 448, 910, 338, 451, 385, 438, 29907, 1367, 13, 13, 13, 4706, 584, 3207, 1024, 29901, 450, 1024, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 1583, 3032, 978, 353, 1024, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1134, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3579, 29961, 19347, 29962, 1068, 402, 1691, 278, 1134, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 5167, 310, 278, 3577, 13, 13, 13, 4706, 584, 2457, 29901, 450, 1134, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 1853, 13, 13, 1678, 732, 1853, 29889, 842, 357, 13, 1678, 822, 1134, 29898, 1311, 29892, 1134, 1125, 13, 4706, 9995, 13, 4706, 317, 1691, 278, 1134, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 5167, 310, 278, 3577, 13, 13, 13, 4706, 584, 3207, 1134, 29901, 450, 1134, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 1583, 3032, 1853, 353, 1134, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1873, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3579, 29961, 19347, 29962, 1068, 402, 1691, 278, 1873, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 10079, 310, 278, 3577, 13, 13, 13, 4706, 584, 2457, 29901, 450, 1873, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 3259, 13, 13, 1678, 732, 3259, 29889, 842, 357, 13, 1678, 822, 1873, 29898, 1311, 29892, 1873, 1125, 13, 4706, 9995, 13, 4706, 317, 1691, 278, 1873, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 10079, 310, 278, 3577, 13, 13, 13, 4706, 584, 3207, 1873, 29901, 450, 1873, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 1583, 3032, 3259, 353, 1873, 13, 13, 1678, 732, 6799, 13, 1678, 822, 11258, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 402, 1691, 278, 11258, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 450, 11258, 363, 607, 445, 3577, 471, 4240, 13, 13, 13, 4706, 584, 2457, 29901, 450, 11258, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 25428, 13, 13, 1678, 732, 25428, 29889, 842, 357, 13, 1678, 822, 11258, 29898, 1311, 29892, 11258, 1125, 13, 4706, 9995, 13, 4706, 317, 1691, 278, 11258, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 450, 11258, 363, 607, 445, 3577, 471, 4240, 13, 13, 13, 4706, 584, 3207, 11258, 29901, 450, 11258, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 1583, 3032, 25428, 353, 11258, 13, 13, 1678, 732, 6799, 13, 1678, 822, 7047, 29918, 29879, 2863, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 402, 1691, 278, 7047, 29918, 29879, 2863, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 1051, 310, 7047, 8974, 393, 3867, 278, 7047, 3577, 13, 13, 13, 4706, 584, 2457, 29901, 450, 7047, 29918, 29879, 2863, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 29878, 1853, 29901, 1051, 29961, 6295, 14093, 4435, 1204, 29962, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 20415, 29918, 29879, 2863, 13, 13, 1678, 732, 20415, 29918, 29879, 2863, 29889, 842, 357, 13, 1678, 822, 7047, 29918, 29879, 2863, 29898, 1311, 29892, 7047, 29918, 29879, 2863, 1125, 13, 4706, 9995, 13, 4706, 317, 1691, 278, 7047, 29918, 29879, 2863, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 1051, 310, 7047, 8974, 393, 3867, 278, 7047, 3577, 13, 13, 13, 4706, 584, 3207, 7047, 29918, 29879, 2863, 29901, 450, 7047, 29918, 29879, 2863, 310, 445, 16052, 519, 14459, 26289, 29889, 13, 4706, 584, 1853, 29901, 1051, 29961, 6295, 14093, 4435, 1204, 29962, 13, 4706, 9995, 13, 4706, 1583, 3032, 20415, 29918, 29879, 2863, 353, 7047, 29918, 29879, 2863, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 20917, 29918, 20620, 29918, 8977, 29898, 1311, 29897, 13, 13, 1678, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 4706, 565, 916, 338, 6213, 29901, 13, 9651, 736, 7700, 13, 13, 4706, 736, 1583, 17255, 8977, 1649, 1275, 916, 17255, 8977, 1649, 13, 13, 1678, 822, 4770, 484, 12035, 1311, 29892, 916, 1125, 13, 4706, 736, 451, 1583, 1275, 916, 13, 2 ]
ngspy/Promotor.py
manuSrep/ngspy
0
42304
#!/usr/bin/python # -*- coding: utf8 -*- """ Functions and classes for handling next generation sequencing data. :author: <NAME> :license: FreeBSD License ---------- Copyright (c) 2016, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ from __future__ import division, absolute_import, unicode_literals, print_function import datetime from .Formats import GFF, GFF3Entry def extractProm(inGFF, name, path, upstram=499, downstream=100, filter={}): """ Extract promotor regions from GFF file as provided by GENCODE: http://www.gencodegenes.org Genes can be filtered by GFF fields and attributes. Results are stored in a new GFF file. Parameters --------- inGFF : GFF The GFF object with a filled dataset. The entries describe the gene regions. From these regions the promoter is extracted. name : basestring The filename of the resulting GFF file. path : basestring The path where to save the results upstream : int Determines how many genes upstream of the TSS shall regarded as promoter. (in front of the gene) downstream : int Determines how many genes downstream of the TSS shall regarded as promoter. (inside the gene) filter : dict Regions in the GFF are only considerd if they match the filter entries. Keys can be any attribute in the GFFEntry. For most tags it is checked if the attribute value is in the filter. For "start" it is checked if the value is higher than the filter. The same is for score. For "end" it is checked if the value is lower than the filter. """ def check_attr(filter_attr, item_attr): for key in filter_attr.keys(): if not item_attr[key] in filter_attr[key]: return False return True if len(inGFF) == 0: raise ValueError("No data in input GFF") outGFF = GFF() outGFF._header_general.append("## Promotors extracted at: " + str(datetime.date.today()) + "\n") for gff in inGFF: # filter if item shall be extracted # shall we filer for seqid if "seqid" in filter: if not gff.seqid in filter["seqid"]: continue if "source" in filter: if not gff.source in filter["source"]: continue if "type" in filter: if not gff.type in filter["type"]: continue if "start" in filter: if not gff.start > filter["start"]: continue if "end" in filter: if not gff.end < filter["end"]: continue if "score" in filter: if gff.score < filter["score"]: continue if "strand" in filter: if not gff.strand in filter["strand"]: continue if "phase" in filter: if not gff.phase in filter["phase"]: continue if "attributes" in filter: if not check_attr(filter["attributes"], gff.attributes): continue seqid = gff.seqid source = "ROI" type = "promotor" strand = gff.strand attributes = {} attributes["ID"] = gff.attributes["ID"] # TSS varies from + and - strands if gff.strand == '-': start = gff.end - downstream end = gff.end + upstram else: # = is assumed for '.' start = gff.start - upstram end = gff.start + downstream entry = GFF3Entry(seqid, source, type, start, end, strand=strand, attributes=attributes) outGFF.append(entry) outGFF.sort() outGFF.write(name, path)
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29947, 448, 29930, 29899, 13, 13, 15945, 29908, 13, 6678, 29879, 322, 4413, 363, 11415, 2446, 12623, 8617, 16750, 848, 29889, 13, 29901, 8921, 29901, 529, 5813, 29958, 13, 29901, 506, 1947, 29901, 12362, 29933, 7230, 13, 13, 29931, 293, 1947, 13, 28400, 13, 11882, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 29892, 529, 5813, 29958, 13, 3596, 10462, 21676, 29889, 13, 9039, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 29892, 411, 470, 1728, 21733, 29892, 13, 598, 21905, 4944, 393, 278, 1494, 5855, 526, 1539, 29901, 13, 29896, 29889, 4367, 391, 3224, 29879, 310, 2752, 775, 1818, 11551, 278, 2038, 3509, 1266, 8369, 29892, 445, 13, 259, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 29889, 13, 29906, 29889, 4367, 391, 3224, 29879, 297, 7581, 883, 1818, 18532, 278, 2038, 3509, 1266, 8369, 29892, 13, 259, 445, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 297, 278, 5106, 13, 259, 322, 29914, 272, 916, 17279, 4944, 411, 278, 4978, 29889, 13, 4690, 3235, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 6770, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 29903, 5300, 8707, 29911, 3960, 29933, 2692, 24125, 376, 3289, 8519, 29908, 5300, 13, 2190, 29979, 8528, 15094, 1799, 6323, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 29892, 2672, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 6093, 306, 3580, 5265, 3352, 13, 29956, 1718, 29934, 13566, 29059, 8079, 341, 1001, 3210, 13566, 2882, 6227, 11937, 5300, 383, 1806, 8186, 1799, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 319, 1525, 13, 23711, 13875, 8890, 29928, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 6323, 8707, 29911, 3960, 29933, 2692, 24125, 20700, 17705, 6181, 13, 22051, 13764, 29979, 22471, 26282, 29892, 2672, 4571, 26282, 29892, 2672, 29907, 1367, 3919, 1964, 29892, 317, 4162, 8426, 1964, 29892, 8528, 29923, 3580, 29931, 19926, 29892, 6323, 8707, 1660, 13356, 3919, 25758, 13, 7698, 1529, 1692, 29903, 313, 1177, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 13756, 29907, 11499, 13780, 8079, 27092, 1254, 1806, 26027, 21947, 29949, 8452, 6323, 13, 6304, 29963, 2965, 2890, 29936, 11247, 1799, 8079, 501, 1660, 29892, 360, 8254, 29892, 6323, 13756, 29943, 1806, 29903, 29936, 6323, 350, 3308, 8895, 1799, 2672, 4945, 29934, 4897, 29911, 2725, 29897, 29832, 8851, 5348, 13, 5454, 17171, 29928, 5300, 6732, 13764, 29979, 6093, 18929, 8079, 17705, 2882, 6227, 11937, 29892, 12317, 2544, 4448, 2672, 8707, 29911, 4717, 1783, 29892, 6850, 3960, 1783, 17705, 2882, 6227, 11937, 29892, 13, 1955, 323, 8476, 313, 1177, 6154, 15789, 4214, 405, 11787, 5265, 24647, 4741, 6323, 438, 29911, 4448, 22119, 1660, 29897, 9033, 3235, 4214, 2672, 13764, 29979, 399, 29909, 29979, 19474, 8079, 6093, 501, 1660, 13, 9800, 3446, 3235, 7791, 7818, 12982, 1525, 29892, 382, 29963, 1430, 10762, 11033, 18118, 1660, 29928, 8079, 6093, 21521, 1799, 8979, 6227, 11937, 8079, 20134, 3210, 21330, 1529, 1692, 29889, 13, 15945, 29908, 13, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 29892, 8380, 29918, 5215, 29892, 29104, 29918, 20889, 1338, 29892, 1596, 29918, 2220, 13, 5215, 12865, 13, 13, 3166, 869, 2500, 1446, 1053, 402, 4198, 29892, 402, 4198, 29941, 9634, 13, 13, 13, 13, 13, 1753, 6597, 18571, 29898, 262, 29954, 4198, 29892, 1024, 29892, 2224, 29892, 701, 710, 314, 29922, 29946, 29929, 29929, 29892, 1623, 5461, 29922, 29896, 29900, 29900, 29892, 4175, 3790, 29913, 1125, 13, 1678, 9995, 13, 1678, 7338, 1461, 2504, 327, 272, 12786, 515, 402, 4198, 934, 408, 4944, 491, 402, 1430, 16524, 29901, 13, 1678, 1732, 597, 1636, 29889, 1885, 401, 1885, 267, 29889, 990, 13, 13, 1678, 5739, 267, 508, 367, 22289, 491, 402, 4198, 4235, 322, 8393, 29889, 17212, 526, 6087, 13, 1678, 297, 263, 716, 402, 4198, 934, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 13, 1678, 297, 29954, 4198, 584, 402, 4198, 13, 4706, 450, 402, 4198, 1203, 411, 263, 10423, 8783, 29889, 450, 9976, 8453, 278, 18530, 13, 4706, 12786, 29889, 3645, 1438, 12786, 278, 2504, 17084, 338, 23892, 29889, 13, 1678, 1024, 584, 2362, 342, 5393, 13, 4706, 450, 10422, 310, 278, 9819, 402, 4198, 934, 29889, 13, 1678, 2224, 584, 2362, 342, 5393, 13, 4706, 450, 2224, 988, 304, 4078, 278, 2582, 13, 1678, 701, 5461, 584, 938, 13, 4706, 5953, 837, 1475, 920, 1784, 2531, 267, 701, 5461, 310, 278, 323, 1799, 4091, 17878, 408, 13, 4706, 2504, 17084, 29889, 313, 262, 4565, 310, 278, 18530, 29897, 13, 1678, 1623, 5461, 584, 938, 13, 4706, 5953, 837, 1475, 920, 1784, 2531, 267, 1623, 5461, 310, 278, 323, 1799, 4091, 17878, 408, 13, 4706, 2504, 17084, 29889, 313, 26102, 278, 18530, 29897, 13, 1678, 4175, 584, 9657, 13, 4706, 2169, 1080, 297, 278, 402, 4198, 526, 871, 2050, 29881, 565, 896, 1993, 278, 4175, 9976, 29889, 13, 4706, 4813, 952, 508, 367, 738, 5352, 297, 278, 402, 4198, 9634, 29889, 1152, 1556, 8282, 372, 338, 7120, 13, 4706, 565, 278, 5352, 995, 338, 297, 278, 4175, 29889, 1152, 376, 2962, 29908, 372, 338, 7120, 565, 13, 4706, 278, 995, 338, 6133, 1135, 278, 4175, 29889, 450, 1021, 338, 363, 8158, 29889, 1152, 376, 355, 29908, 13, 4706, 372, 338, 7120, 565, 278, 995, 338, 5224, 1135, 278, 4175, 29889, 13, 1678, 9995, 13, 1678, 822, 1423, 29918, 5552, 29898, 4572, 29918, 5552, 29892, 2944, 29918, 5552, 1125, 13, 4706, 363, 1820, 297, 4175, 29918, 5552, 29889, 8149, 7295, 13, 9651, 565, 451, 2944, 29918, 5552, 29961, 1989, 29962, 297, 4175, 29918, 5552, 29961, 1989, 5387, 13, 18884, 736, 7700, 13, 4706, 736, 5852, 13, 13, 1678, 565, 7431, 29898, 262, 29954, 4198, 29897, 1275, 29871, 29900, 29901, 13, 4706, 12020, 7865, 2392, 703, 3782, 848, 297, 1881, 402, 4198, 1159, 13, 13, 1678, 714, 29954, 4198, 353, 402, 4198, 580, 13, 1678, 714, 29954, 4198, 3032, 6672, 29918, 17492, 29889, 4397, 703, 2277, 9705, 327, 943, 23892, 472, 29901, 376, 718, 851, 29898, 12673, 29889, 1256, 29889, 27765, 3101, 718, 6634, 29876, 1159, 13, 13, 1678, 363, 330, 600, 297, 297, 29954, 4198, 29901, 13, 4706, 396, 4175, 565, 2944, 4091, 367, 23892, 13, 13, 4706, 396, 4091, 591, 977, 261, 363, 19359, 333, 13, 4706, 565, 376, 11762, 333, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 11762, 333, 297, 4175, 3366, 11762, 333, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 4993, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 4993, 297, 4175, 3366, 4993, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 1853, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 1853, 297, 4175, 3366, 1853, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 2962, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 2962, 1405, 4175, 3366, 2962, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 355, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 355, 529, 4175, 3366, 355, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 13628, 29908, 297, 4175, 29901, 13, 9651, 565, 330, 600, 29889, 13628, 529, 4175, 3366, 13628, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 710, 392, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 710, 392, 297, 4175, 3366, 710, 392, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 21646, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 330, 600, 29889, 21646, 297, 4175, 3366, 21646, 3108, 29901, 13, 18884, 6773, 13, 4706, 565, 376, 15697, 29908, 297, 4175, 29901, 13, 9651, 565, 451, 1423, 29918, 5552, 29898, 4572, 3366, 15697, 12436, 330, 600, 29889, 15697, 1125, 13, 18884, 6773, 13, 13, 4706, 19359, 333, 353, 330, 600, 29889, 11762, 333, 13, 4706, 2752, 353, 376, 1672, 29902, 29908, 13, 4706, 1134, 353, 376, 14032, 327, 272, 29908, 13, 4706, 851, 392, 353, 330, 600, 29889, 710, 392, 13, 4706, 8393, 353, 6571, 13, 4706, 8393, 3366, 1367, 3108, 353, 330, 600, 29889, 15697, 3366, 1367, 3108, 13, 13, 4706, 396, 323, 1799, 722, 583, 515, 718, 322, 448, 851, 4167, 13, 4706, 565, 330, 600, 29889, 710, 392, 1275, 17411, 2396, 13, 9651, 1369, 353, 330, 600, 29889, 355, 448, 1623, 5461, 13, 9651, 1095, 353, 330, 600, 29889, 355, 718, 701, 710, 314, 13, 4706, 1683, 29901, 396, 353, 338, 12023, 363, 525, 6169, 13, 9651, 1369, 353, 330, 600, 29889, 2962, 448, 701, 710, 314, 13, 9651, 1095, 353, 330, 600, 29889, 2962, 718, 1623, 5461, 13, 13, 4706, 6251, 353, 402, 4198, 29941, 9634, 29898, 11762, 333, 29892, 2752, 29892, 1134, 29892, 1369, 29892, 1095, 29892, 851, 392, 29922, 710, 392, 29892, 8393, 29922, 15697, 29897, 13, 4706, 714, 29954, 4198, 29889, 4397, 29898, 8269, 29897, 13, 13, 1678, 714, 29954, 4198, 29889, 6605, 580, 13, 1678, 714, 29954, 4198, 29889, 3539, 29898, 978, 29892, 2224, 29897, 2 ]
ircclient.py
and3rson/notify
0
90703
import socket from select import select from time import sleep class IRCClient(object): def __init__(self, server, port, username, password): # super(Client, self).__init__() self.server = server self.port = port self.username = username self.password = password self.alive = False def send(self, message): self.conn.send(message + '\r\n') def start(self): self.alive = True while self.alive: while not self.connect(): pass self.process() def process(self): while self.alive: i, o, e = select([self.conn], [], [], 1) if self.conn in i: data = filter(None, self.conn.recv(1024).split('\r\n')) if not len(data): return for line in data: self.on_recv(line) def connect(self): try: self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.conn.connect((self.server, self.port)) self.send('NICK {}'.format(self.username)) self.send('PASS {}'.format(self.password)) self.send('USER {u} {u} {u} NotifyClient {u}'.format(u=self.username)) self.alive = True except: sleep(1) return False return True def on_recv(self, line): parts = line.split(' ') if parts[0].lower() == 'ping': self.send('PONG {}'.format(parts[1])) elif parts[1] == '001': self.on_connect() else: self.on_message(line) def on_message(self, line): raise NotImplementedError() def join(self, channel): self.send('JOIN #{}'.format(channel)) def privmsg(self, channel, message): self.send('PRIVMSG #{} {}'.format(channel, message)) def stop(self): self.alive = False print 'See ya!' self.send('QUIT')
[ 1, 1053, 9909, 13, 3166, 1831, 1053, 1831, 13, 3166, 931, 1053, 8709, 13, 13, 13, 1990, 306, 10363, 4032, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1923, 29892, 2011, 29892, 8952, 29892, 4800, 1125, 13, 4706, 396, 2428, 29898, 4032, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 13, 4706, 1583, 29889, 2974, 353, 1923, 13, 4706, 1583, 29889, 637, 353, 2011, 13, 4706, 1583, 29889, 6786, 353, 8952, 13, 4706, 1583, 29889, 5630, 353, 4800, 13, 13, 4706, 1583, 29889, 284, 573, 353, 7700, 13, 13, 1678, 822, 3638, 29898, 1311, 29892, 2643, 1125, 13, 4706, 1583, 29889, 13082, 29889, 6717, 29898, 4906, 718, 11297, 29878, 29905, 29876, 1495, 13, 13, 1678, 822, 1369, 29898, 1311, 1125, 13, 4706, 1583, 29889, 284, 573, 353, 5852, 13, 4706, 1550, 1583, 29889, 284, 573, 29901, 13, 9651, 1550, 451, 1583, 29889, 6915, 7295, 13, 18884, 1209, 13, 9651, 1583, 29889, 5014, 580, 13, 13, 1678, 822, 1889, 29898, 1311, 1125, 13, 4706, 1550, 1583, 29889, 284, 573, 29901, 13, 9651, 474, 29892, 288, 29892, 321, 353, 1831, 4197, 1311, 29889, 13082, 1402, 19997, 19997, 29871, 29896, 29897, 13, 9651, 565, 1583, 29889, 13082, 297, 474, 29901, 13, 18884, 848, 353, 4175, 29898, 8516, 29892, 1583, 29889, 13082, 29889, 3757, 29894, 29898, 29896, 29900, 29906, 29946, 467, 5451, 28909, 29878, 29905, 29876, 8785, 13, 18884, 565, 451, 7431, 29898, 1272, 1125, 13, 462, 1678, 736, 13, 18884, 363, 1196, 297, 848, 29901, 13, 462, 1678, 1583, 29889, 265, 29918, 3757, 29894, 29898, 1220, 29897, 13, 13, 1678, 822, 4511, 29898, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 13082, 353, 9909, 29889, 11514, 29898, 11514, 29889, 5098, 29918, 1177, 2544, 29892, 9909, 29889, 6156, 7077, 29918, 1254, 1525, 5194, 29897, 13, 9651, 1583, 29889, 13082, 29889, 6915, 3552, 1311, 29889, 2974, 29892, 1583, 29889, 637, 876, 13, 13, 9651, 1583, 29889, 6717, 877, 29940, 2965, 29968, 6571, 4286, 4830, 29898, 1311, 29889, 6786, 876, 13, 9651, 1583, 29889, 6717, 877, 25711, 6571, 4286, 4830, 29898, 1311, 29889, 5630, 876, 13, 9651, 1583, 29889, 6717, 877, 11889, 426, 29884, 29913, 426, 29884, 29913, 426, 29884, 29913, 2216, 1598, 4032, 426, 29884, 29913, 4286, 4830, 29898, 29884, 29922, 1311, 29889, 6786, 876, 13, 13, 9651, 1583, 29889, 284, 573, 353, 5852, 13, 4706, 5174, 29901, 13, 9651, 8709, 29898, 29896, 29897, 13, 9651, 736, 7700, 13, 4706, 736, 5852, 13, 13, 1678, 822, 373, 29918, 3757, 29894, 29898, 1311, 29892, 1196, 1125, 13, 4706, 5633, 353, 1196, 29889, 5451, 877, 25710, 13, 4706, 565, 5633, 29961, 29900, 1822, 13609, 580, 1275, 525, 15702, 2396, 13, 9651, 1583, 29889, 6717, 877, 29925, 20614, 6571, 4286, 4830, 29898, 20895, 29961, 29896, 12622, 13, 4706, 25342, 5633, 29961, 29896, 29962, 1275, 525, 29900, 29900, 29896, 2396, 13, 9651, 1583, 29889, 265, 29918, 6915, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 265, 29918, 4906, 29898, 1220, 29897, 13, 13, 1678, 822, 373, 29918, 4906, 29898, 1311, 29892, 1196, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 5988, 29898, 1311, 29892, 8242, 1125, 13, 4706, 1583, 29889, 6717, 877, 29967, 6992, 396, 8875, 4286, 4830, 29898, 12719, 876, 13, 13, 1678, 822, 5999, 7645, 29898, 1311, 29892, 8242, 29892, 2643, 1125, 13, 4706, 1583, 29889, 6717, 877, 29829, 29963, 4345, 29954, 396, 8875, 6571, 4286, 4830, 29898, 12719, 29892, 2643, 876, 13, 13, 1678, 822, 5040, 29898, 1311, 1125, 13, 4706, 1583, 29889, 284, 573, 353, 7700, 13, 4706, 1596, 525, 13393, 9343, 20714, 13, 4706, 1583, 29889, 6717, 877, 13356, 1806, 1495, 13, 2 ]
test/testDecorators.py
redhog/ferenda
18
87187
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * import sys import os import datetime import shutil import tempfile from ferenda.compat import unittest, Mock, MagicMock, patch from ferenda import util from ferenda import DocumentRepository, DocumentStore, Document, DocumentEntry from ferenda.errors import DocumentRemovedError, ParseError # SUT from ferenda.decorators import (timed, parseifneeded, ifneeded, render, handleerror, makedocument, recordlastdownload, downloadmax) class Decorators(unittest.TestCase): def test_timed(self): # Test that a wrapped method... @timed def testfunc(repo,doc): pass # ...passed a particular docrepo and doc mockrepo = Mock() mockdoc = Mock() mockdoc.basefile = "1234" # ...has it's instances logger called... testfunc(mockrepo,mockdoc) call_args = mockrepo.log.info.call_args # ...with the correct method and arguments self.assertEqual(len(call_args[0]), 2) self.assertEqual(call_args[0][0], 'parse OK (%.3f sec)') def test_parseifneeded(self): @parseifneeded def testfunc(repo, basefile): repo.called = True # mockdoc = Mock() # mockdoc.basefile="1234" mockbasefile = "1234" mockrepo = Mock() mockrepo.store.needed = DocumentStore(datadir='fake').needed mockrepo.called = False mockrepo.config.force = False # test 1: Outfile is newer - the parseifneeded decorator # should make sure the actual testfunc code is never reached with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertFalse(mockrepo.called) mockrepo.called = False # test 2: Outfile is older with patch('ferenda.util.outfile_is_newer', return_value=False): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.called = False # test 3: Outfile is newer, but the global force option was set mockrepo.config.force = True with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.config.force = None mockrepo.called = False # test 4: Outfile is newer, but the module parseforce option was set mockrepo.config.parseforce = True with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.called = False def test_ifneeded_parse(self): @ifneeded("parse") def testfunc(repo, basefile): repo.called = True # mockdoc = Mock() # mockdoc.basefile="1234" mockbasefile = "1234" mockrepo = Mock() mockrepo.store.needed = DocumentStore(datadir='fake').needed mockrepo.called = False mockrepo.config.force = False # test 1: Outfile is newer - the ifneeded decorator should # make sure the actual testfunc code is never reached with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertFalse(mockrepo.called) mockrepo.called = False # test 2: Outfile is older with patch('ferenda.util.outfile_is_newer', return_value=False): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.called = False # test 3: Outfile is newer, but the global force option was set mockrepo.config.force = True with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.config.force = None mockrepo.called = False def test_ifneeded_relate(self): @ifneeded("relate") def testfunc(repo, basefile, needed): repo.called = True repo.needed = needed try: datadir = tempfile.mkdtemp() mockbasefile = "1234" mockrepo = Mock() mockrepo.store = DocumentStore(datadir=datadir) mockrepo.called = False mockrepo.config.force = False # create some docentry file in a good place de = DocumentEntry(mockrepo.store.documententry_path("1234")) now = datetime.datetime.now() if hasattr(now, 'timestamp'): # py3 timestamp = now.timestamp() else: import time # this isn't as good as the python3 timestamp() method # because this loses fractions of a second, but it'll # do. timestamp = time.mktime(now.timetuple()) de.indexed_ts = now + datetime.timedelta(seconds=3600) de.indexed_ft = now + datetime.timedelta(seconds=-3600) de.indexed_dep = now + datetime.timedelta(seconds=-3600) de.save() # test 1: Outfile is newer - the ifneeded decorator should # make sure the actual testfunc code is never reached # NOTE: the "relate" branch of DocumentStore.needed # doesn't use outfile_is_newer, so we can't patch that, we # have to create actual files parsedpath = mockrepo.store.parsed_path("1234") util.writefile(parsedpath, "dummy") os.utime(parsedpath, (timestamp, timestamp - 7200)) testfunc(mockrepo, mockbasefile) self.assertFalse(mockrepo.called) mockrepo.called = False # test 2: Outfile is older than the information in the documententry file os.utime(parsedpath, (timestamp, timestamp)) testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) self.assertTrue(mockrepo.needed) self.assertFalse(mockrepo.needed.triples) self.assertFalse(mockrepo.needed.dependencies) self.assertTrue(mockrepo.needed.fulltext) mockrepo.called = False # test 3: Outfile is newer, but the global force option was set os.utime(parsedpath, (timestamp, timestamp - 7200)) mockrepo.config.force = True testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.config.force = None mockrepo.called = False finally: if os.path.exists(datadir): shutil.rmtree(datadir) def test_ifneeded_generate(self): @ifneeded("generate") def testfunc(repo, basefile): repo.called = True mockbasefile = "1234" mockrepo = Mock() mockrepo.store.needed = DocumentStore(datadir='fake').needed mockrepo.called = False mockrepo.config.force = False # test 1: Outfile is newer - the ifneeded decorator should # make sure the actual testfunc code is never reached with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertFalse(mockrepo.called) mockrepo.called = False # test 2: Outfile is older than source file with patch('ferenda.util.outfile_is_newer', return_value=False): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.called = False # FIXME: we could add more tests, eg create a dependency file # and make sure an arbitrary file named in that depfile is # newer then outfile. but the tests in testDocStore.Needed # should cover that pretty well. # test 3: Outfile is newer, but the global force option was set mockrepo.config.force = True with patch('ferenda.util.outfile_is_newer', return_value=True): testfunc(mockrepo, mockbasefile) self.assertTrue(mockrepo.called) mockrepo.config.force = None mockrepo.called = False @patch('ferenda.documentrepository.Graph') def test_render(self,mock_graph): @render def testfunc(repo,doc): pass mockdoc = Mock() mockrepo = MagicMock() mockrepo.store.parsed_path.return_value = "parsed_path.xhtml" with open("parsed_path.xhtml", "w") as fp: fp.write("""<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:dcterms="http://purl.org/dc/terms/"> <head about="http://example.org/doc"> <title property="dcterms:title">Document title</title> </head> <body> <h1>Hello!</h1> </body> </html>""") with open("entry_path.json", "w") as fp: fp.write("""{ "id": "https://lagen.nu/concept/St\\u00e5ende_anbud", "title": "St\\u00e5ende anbud", }""") mockrepo.store.distilled_path.return_value = "distilled_path.xhtml" mockrepo.get_globals.return_value = {'symbol table':'fake'} mockrepo.required_predicates = [] mockrepo.config = MagicMock() mockdoc.meta = MagicMock() # need Magicmock which supports magic funcs like __iter__ bodypart = MagicMock() bodypart.meta = MagicMock() mockdoc.body = [bodypart] mockdoc.meta.__iter__.return_value = [] mockdoc.uri = "http://example.org/doc" mockrepo.store.documententry_path.return_value = None with patch('ferenda.util.ensure_dir', return_value=True): testfunc(mockrepo, mockdoc) # 1 ensure that DocumentRepository.render_xhtml is called with # four arguments mockrepo.render_xhtml.assert_called_with(mockdoc, "parsed_path.xhtml") # 2 ensure that DocumentRepository.create_external_resources # is called with 1 argument mockrepo.create_external_resources.assert_called_with(mockdoc) # 3 ensure that a Graph object is created, its parse and # serialize methods called # FIXME: Why doesn't the patching work?! # self.assertTrue(mock_graph().parse.called) # self.assertTrue(mock_graph().serialize.called) # (4. ensure that a warning gets printed if doc.meta and # distilled_graph do not agree) mock_graph().__iter__.return_value = ['a','b'] mockdoc.meta.__iter__.return_value = ['a','b','c'] mockdoc.meta.serialize.return_value = b"<c>" with patch('ferenda.util.ensure_dir', return_value=True): testfunc(mockrepo, mockdoc) self.assertTrue(mockrepo.log.warning.called) os.remove("parsed_path.xhtml") os.remove("distilled_path.xhtml") os.remove("entry_path.json") def test_handleerror(self): @handleerror def testfunc(repo, doc): if doc.exception: raise doc.exception else: return True mockrepo = Mock() mockrepo.config = MagicMock() # must support __in__() mockdoc = Mock() # 1. should not raise an exception (but should call log.info # and util.robust_remove, and return false) with patch('ferenda.util.robust_remove') as robust_remove: mockdoc.exception = DocumentRemovedError self.assertFalse(testfunc(mockrepo, mockdoc)) self.assertTrue(mockrepo.log.info.called) self.assertTrue(robust_remove.called) # 2. should raise the same exception mockdoc.exception = KeyboardInterrupt with self.assertRaises(KeyboardInterrupt): testfunc(mockrepo, mockdoc) # 3.1 Should raise the same exeption mockdoc.exception = ParseError mockrepo.config.fatalexceptions = True with self.assertRaises(ParseError): testfunc(mockrepo, mockdoc) mockrepo.config.fatalexceptions = None # 3.2 Should not raise an exception (but should call log.error and return false) mockdoc.exception = ParseError self.assertFalse(testfunc(mockrepo, mockdoc)) self.assertTrue(mockrepo.log.error.called) # 4.1 Should raise the same exception mockdoc.exception = Exception mockrepo.config.fatalexceptions = True with self.assertRaises(Exception): testfunc(mockrepo, mockdoc) mockrepo.config.fatalexceptions = None # 4.2 Should not raise an exception mockdoc.exception = Exception self.assertFalse(testfunc(mockrepo, mockdoc)) self.assertTrue(mockrepo.log.error.called) # 5. No exceptions - everything should go fine mockdoc.exception = None self.assertTrue(testfunc(mockrepo, mockdoc)) def test_makedocument(self): @makedocument def testfunc(repo, doc): return doc doc = testfunc(DocumentRepository(), "base/file") self.assertIsInstance(doc, Document) self.assertEqual(doc.basefile, "base/file") def test_recordlastdownload(self): @recordlastdownload def testfunc(repo): pass mockrepo = Mock() with patch('ferenda.decorators.LayeredConfig.write') as mockconf: testfunc(mockrepo) # check that config.lastdownload has been set to a datetime self.assertIsInstance(mockrepo.config.lastdownload, datetime.datetime) # and that LayeredConfig.write has been called self.assertTrue(mockconf.called) def test_downloadmax(self): @downloadmax def testfunc(repo, source): for x in range(100): yield x mockrepo = MagicMock() mockrepo.config.downloadmax = None self.assertEqual(100, len(list(testfunc(mockrepo, None)))) mockrepo.config.downloadmax = 10 mockrepo.config.__contains__.return_value = True self.assertEqual(10, len(list(testfunc(mockrepo, None))))
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 313, 23552, 29918, 5215, 29892, 8542, 29892, 13, 462, 4706, 1596, 29918, 2220, 29892, 29104, 29918, 20889, 1338, 29897, 13, 3166, 4240, 1144, 1053, 334, 13, 13, 5215, 10876, 13, 5215, 2897, 13, 5215, 12865, 13, 5215, 528, 4422, 13, 5215, 5694, 1445, 13, 3166, 6013, 8395, 29889, 12667, 1053, 443, 27958, 29892, 26297, 29892, 26494, 18680, 29892, 13261, 13, 13, 3166, 6013, 8395, 1053, 3667, 13, 3166, 6013, 8395, 1053, 10854, 11481, 29892, 10854, 9044, 29892, 10854, 29892, 10854, 9634, 13, 3166, 6013, 8395, 29889, 12523, 1053, 10854, 7301, 8238, 2392, 29892, 20969, 2392, 13, 29937, 317, 2692, 13, 3166, 6013, 8395, 29889, 19557, 4097, 1053, 313, 9346, 287, 29892, 6088, 361, 484, 19226, 29892, 565, 484, 19226, 29892, 4050, 29892, 4386, 2704, 29892, 13, 462, 18884, 2136, 287, 4463, 29892, 2407, 4230, 10382, 29892, 5142, 3317, 29897, 13, 13, 13, 1990, 3826, 272, 4097, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 1243, 29918, 9346, 287, 29898, 1311, 1125, 13, 4706, 396, 4321, 393, 263, 21021, 1158, 856, 13, 4706, 732, 9346, 287, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 1514, 1125, 13, 9651, 1209, 13, 13, 4706, 396, 2023, 3364, 287, 263, 3153, 437, 1037, 1129, 322, 1574, 13, 4706, 11187, 20095, 353, 26297, 580, 13, 4706, 11187, 1514, 353, 26297, 580, 13, 4706, 11187, 1514, 29889, 3188, 1445, 353, 376, 29896, 29906, 29941, 29946, 29908, 13, 308, 13, 4706, 396, 2023, 5349, 372, 29915, 29879, 8871, 17927, 2000, 856, 13, 4706, 1243, 9891, 29898, 17640, 20095, 29892, 17640, 1514, 29897, 13, 4706, 1246, 29918, 5085, 353, 11187, 20095, 29889, 1188, 29889, 3888, 29889, 4804, 29918, 5085, 13, 13, 4706, 396, 2023, 2541, 278, 1959, 1158, 322, 6273, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 4804, 29918, 5085, 29961, 29900, 11724, 29871, 29906, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 4804, 29918, 5085, 29961, 29900, 3816, 29900, 1402, 525, 5510, 9280, 313, 15543, 29941, 29888, 5226, 29897, 1495, 13, 13, 13, 1678, 822, 1243, 29918, 5510, 361, 484, 19226, 29898, 1311, 1125, 13, 4706, 732, 5510, 361, 484, 19226, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 2967, 1445, 1125, 13, 9651, 13761, 29889, 13998, 353, 5852, 13, 13, 4706, 396, 11187, 1514, 353, 26297, 580, 13, 4706, 396, 11187, 1514, 29889, 3188, 1445, 543, 29896, 29906, 29941, 29946, 29908, 13, 4706, 11187, 3188, 1445, 353, 376, 29896, 29906, 29941, 29946, 29908, 13, 4706, 11187, 20095, 353, 26297, 580, 13, 4706, 11187, 20095, 29889, 8899, 29889, 484, 19226, 353, 10854, 9044, 29898, 4130, 328, 381, 2433, 29888, 1296, 2824, 484, 19226, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 7700, 13, 4706, 396, 1243, 29871, 29896, 29901, 4451, 1445, 338, 20687, 448, 278, 6088, 361, 484, 19226, 10200, 1061, 13, 4706, 396, 881, 1207, 1854, 278, 3935, 1243, 9891, 775, 338, 2360, 7450, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 13, 4706, 1583, 29889, 9294, 8824, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29906, 29901, 4451, 1445, 338, 9642, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 8824, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29941, 29901, 4451, 1445, 338, 20687, 29892, 541, 278, 5534, 4889, 2984, 471, 731, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 5852, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 6213, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29946, 29901, 4451, 1445, 338, 20687, 29892, 541, 278, 3883, 6088, 10118, 2984, 471, 731, 13, 4706, 11187, 20095, 29889, 2917, 29889, 5510, 10118, 353, 5852, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 1678, 822, 1243, 29918, 361, 484, 19226, 29918, 5510, 29898, 1311, 1125, 13, 4706, 732, 361, 484, 19226, 703, 5510, 1159, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 2967, 1445, 1125, 13, 9651, 13761, 29889, 13998, 353, 5852, 13, 13, 4706, 396, 11187, 1514, 353, 26297, 580, 13, 4706, 396, 11187, 1514, 29889, 3188, 1445, 543, 29896, 29906, 29941, 29946, 29908, 13, 4706, 11187, 3188, 1445, 353, 376, 29896, 29906, 29941, 29946, 29908, 13, 4706, 11187, 20095, 353, 26297, 580, 13, 4706, 11187, 20095, 29889, 8899, 29889, 484, 19226, 353, 10854, 9044, 29898, 4130, 328, 381, 2433, 29888, 1296, 2824, 484, 19226, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29896, 29901, 4451, 1445, 338, 20687, 448, 278, 565, 484, 19226, 10200, 1061, 881, 13, 4706, 396, 1207, 1854, 278, 3935, 1243, 9891, 775, 338, 2360, 7450, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 13, 4706, 1583, 29889, 9294, 8824, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29906, 29901, 4451, 1445, 338, 9642, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 8824, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29941, 29901, 4451, 1445, 338, 20687, 29892, 541, 278, 5534, 4889, 2984, 471, 731, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 5852, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 6213, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 1678, 822, 1243, 29918, 361, 484, 19226, 29918, 2674, 403, 29898, 1311, 1125, 13, 4706, 732, 361, 484, 19226, 703, 2674, 403, 1159, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 2967, 1445, 29892, 4312, 1125, 13, 9651, 13761, 29889, 13998, 353, 5852, 13, 9651, 13761, 29889, 484, 19226, 353, 4312, 13, 13, 4706, 1018, 29901, 13, 9651, 1418, 328, 381, 353, 5694, 1445, 29889, 11256, 29881, 7382, 580, 13, 9651, 11187, 3188, 1445, 353, 376, 29896, 29906, 29941, 29946, 29908, 13, 9651, 11187, 20095, 353, 26297, 580, 13, 9651, 11187, 20095, 29889, 8899, 353, 10854, 9044, 29898, 4130, 328, 381, 29922, 4130, 328, 381, 29897, 13, 9651, 11187, 20095, 29889, 13998, 353, 7700, 13, 9651, 11187, 20095, 29889, 2917, 29889, 10118, 353, 7700, 13, 13, 9651, 396, 1653, 777, 1574, 8269, 934, 297, 263, 1781, 2058, 13, 9651, 316, 353, 10854, 9634, 29898, 17640, 20095, 29889, 8899, 29889, 3225, 8269, 29918, 2084, 703, 29896, 29906, 29941, 29946, 5783, 13, 9651, 1286, 353, 12865, 29889, 12673, 29889, 3707, 580, 13, 9651, 565, 756, 5552, 29898, 3707, 29892, 525, 16394, 29374, 396, 11451, 29941, 13, 18884, 14334, 353, 1286, 29889, 16394, 580, 13, 9651, 1683, 29901, 13, 18884, 1053, 931, 13, 18884, 396, 445, 3508, 29915, 29873, 408, 1781, 408, 278, 3017, 29941, 14334, 580, 1158, 13, 18884, 396, 1363, 445, 1232, 267, 5227, 1953, 310, 263, 1473, 29892, 541, 372, 29915, 645, 13, 18884, 396, 437, 29889, 13, 18884, 14334, 353, 931, 29889, 29885, 1193, 603, 29898, 3707, 29889, 9346, 24120, 552, 3101, 29871, 13, 9651, 316, 29889, 2248, 287, 29918, 1372, 353, 1286, 718, 12865, 29889, 9346, 287, 2554, 29898, 23128, 29922, 29941, 29953, 29900, 29900, 29897, 13, 9651, 316, 29889, 2248, 287, 29918, 615, 353, 1286, 718, 12865, 29889, 9346, 287, 2554, 29898, 23128, 10457, 29941, 29953, 29900, 29900, 29897, 13, 9651, 316, 29889, 2248, 287, 29918, 2716, 353, 1286, 718, 12865, 29889, 9346, 287, 2554, 29898, 23128, 10457, 29941, 29953, 29900, 29900, 29897, 13, 9651, 316, 29889, 7620, 580, 13, 13, 9651, 396, 1243, 29871, 29896, 29901, 4451, 1445, 338, 20687, 448, 278, 565, 484, 19226, 10200, 1061, 881, 13, 9651, 396, 1207, 1854, 278, 3935, 1243, 9891, 775, 338, 2360, 7450, 13, 13, 9651, 396, 6058, 29923, 29901, 278, 376, 2674, 403, 29908, 5443, 310, 10854, 9044, 29889, 484, 19226, 13, 9651, 396, 1838, 29915, 29873, 671, 714, 1445, 29918, 275, 29918, 484, 556, 29892, 577, 591, 508, 29915, 29873, 13261, 393, 29892, 591, 13, 9651, 396, 505, 304, 1653, 3935, 2066, 13, 9651, 21213, 2084, 353, 11187, 20095, 29889, 8899, 29889, 862, 8485, 29918, 2084, 703, 29896, 29906, 29941, 29946, 1159, 13, 9651, 3667, 29889, 3539, 1445, 29898, 862, 8485, 2084, 29892, 29871, 376, 29881, 11770, 1159, 13, 9651, 2897, 29889, 329, 603, 29898, 862, 8485, 2084, 29892, 313, 16394, 29892, 14334, 448, 29871, 29955, 29906, 29900, 29900, 876, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 9651, 1583, 29889, 9294, 8824, 29898, 17640, 20095, 29889, 13998, 29897, 13, 9651, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 9651, 396, 1243, 29871, 29906, 29901, 4451, 1445, 338, 9642, 1135, 278, 2472, 297, 278, 1842, 8269, 934, 13, 9651, 2897, 29889, 329, 603, 29898, 862, 8485, 2084, 29892, 313, 16394, 29892, 14334, 876, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 9651, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 9651, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 484, 19226, 29897, 13, 9651, 1583, 29889, 9294, 8824, 29898, 17640, 20095, 29889, 484, 19226, 29889, 3626, 2701, 29897, 13, 9651, 1583, 29889, 9294, 8824, 29898, 17640, 20095, 29889, 484, 19226, 29889, 22594, 29897, 13, 9651, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 484, 19226, 29889, 8159, 726, 29897, 13, 632, 13, 9651, 11187, 20095, 29889, 13998, 353, 7700, 13, 9651, 396, 1243, 29871, 29941, 29901, 4451, 1445, 338, 20687, 29892, 541, 278, 5534, 4889, 2984, 471, 731, 13, 9651, 2897, 29889, 329, 603, 29898, 862, 8485, 2084, 29892, 313, 16394, 29892, 14334, 448, 29871, 29955, 29906, 29900, 29900, 876, 13, 9651, 11187, 20095, 29889, 2917, 29889, 10118, 353, 5852, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 9651, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 9651, 11187, 20095, 29889, 2917, 29889, 10118, 353, 6213, 13, 9651, 11187, 20095, 29889, 13998, 353, 7700, 13, 4706, 7146, 29901, 13, 9651, 565, 2897, 29889, 2084, 29889, 9933, 29898, 4130, 328, 381, 1125, 13, 18884, 528, 4422, 29889, 1758, 8336, 29898, 4130, 328, 381, 29897, 13, 632, 13, 13, 1678, 822, 1243, 29918, 361, 484, 19226, 29918, 17158, 29898, 1311, 1125, 13, 4706, 732, 361, 484, 19226, 703, 17158, 1159, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 2967, 1445, 1125, 13, 9651, 13761, 29889, 13998, 353, 5852, 13, 13, 4706, 11187, 3188, 1445, 353, 376, 29896, 29906, 29941, 29946, 29908, 13, 4706, 11187, 20095, 353, 26297, 580, 13, 4706, 11187, 20095, 29889, 8899, 29889, 484, 19226, 353, 10854, 9044, 29898, 4130, 328, 381, 2433, 29888, 1296, 2824, 484, 19226, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29896, 29901, 4451, 1445, 338, 20687, 448, 278, 565, 484, 19226, 10200, 1061, 881, 13, 4706, 396, 1207, 1854, 278, 3935, 1243, 9891, 775, 338, 2360, 7450, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 13, 4706, 1583, 29889, 9294, 8824, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 1243, 29871, 29906, 29901, 4451, 1445, 338, 9642, 1135, 2752, 934, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 8824, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 4706, 396, 383, 6415, 2303, 29901, 591, 1033, 788, 901, 6987, 29892, 8087, 1653, 263, 10609, 934, 13, 4706, 396, 322, 1207, 1854, 385, 11472, 934, 4257, 297, 393, 1401, 1445, 338, 13, 4706, 396, 20687, 769, 714, 1445, 29889, 541, 278, 6987, 297, 1243, 14526, 9044, 29889, 8139, 19226, 13, 4706, 396, 881, 4612, 393, 5051, 1532, 29889, 13, 13, 4706, 396, 1243, 29871, 29941, 29901, 4451, 1445, 338, 20687, 29892, 541, 278, 5534, 4889, 2984, 471, 731, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 5852, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 449, 1445, 29918, 275, 29918, 484, 556, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 3188, 1445, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 13998, 29897, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10118, 353, 6213, 13, 4706, 11187, 20095, 29889, 13998, 353, 7700, 13, 13, 13, 1678, 732, 5041, 877, 571, 8395, 29889, 3225, 19033, 29889, 9527, 1495, 13, 1678, 822, 1243, 29918, 9482, 29898, 1311, 29892, 17640, 29918, 4262, 1125, 13, 4706, 732, 9482, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 1514, 1125, 13, 9651, 1209, 13, 13, 4706, 11187, 1514, 353, 26297, 580, 13, 4706, 11187, 20095, 353, 26494, 18680, 580, 13, 4706, 11187, 20095, 29889, 8899, 29889, 862, 8485, 29918, 2084, 29889, 2457, 29918, 1767, 353, 376, 862, 8485, 29918, 2084, 29889, 28392, 29908, 13, 4706, 411, 1722, 703, 862, 8485, 29918, 2084, 29889, 28392, 613, 376, 29893, 1159, 408, 285, 29886, 29901, 13, 9651, 285, 29886, 29889, 3539, 703, 15945, 8169, 3134, 1873, 543, 29896, 29889, 29900, 29908, 8025, 543, 9420, 29899, 29947, 18943, 13, 29966, 29991, 21300, 3472, 349, 7466, 27888, 11663, 458, 29956, 29941, 29907, 458, 12972, 29928, 1060, 7020, 29974, 29934, 4037, 29874, 29871, 29896, 29889, 29900, 458, 1430, 29908, 376, 1124, 597, 1636, 29889, 29893, 29941, 29889, 990, 29914, 9802, 3373, 29914, 12972, 29928, 29914, 28392, 29899, 29878, 2176, 29874, 29899, 29896, 29889, 29881, 1594, 1013, 13, 29966, 1420, 9463, 543, 1124, 597, 1636, 29889, 29893, 29941, 29889, 990, 29914, 29896, 29929, 29929, 29929, 29914, 28392, 29908, 9463, 29901, 29881, 312, 837, 29879, 543, 1124, 597, 29886, 2271, 29889, 990, 29914, 13891, 29914, 357, 1516, 29914, 1013, 13, 29871, 529, 2813, 1048, 543, 1124, 597, 4773, 29889, 990, 29914, 1514, 1013, 13, 268, 529, 3257, 2875, 543, 29881, 312, 837, 29879, 29901, 3257, 1013, 6268, 3611, 829, 3257, 29958, 13, 29871, 1533, 2813, 29958, 13, 29871, 529, 2587, 29958, 13, 268, 529, 29882, 29896, 29958, 10994, 29991, 829, 29882, 29896, 29958, 13, 29871, 1533, 2587, 29958, 13, 829, 1420, 11903, 29908, 1159, 13, 4706, 411, 1722, 703, 8269, 29918, 2084, 29889, 3126, 613, 376, 29893, 1159, 408, 285, 29886, 29901, 13, 9651, 285, 29886, 29889, 3539, 703, 15945, 29912, 13, 29871, 376, 333, 1115, 376, 991, 597, 11541, 29889, 3433, 29914, 535, 1547, 29914, 855, 1966, 29884, 29900, 29900, 29872, 29945, 3324, 29918, 273, 15841, 613, 29871, 13, 29871, 376, 3257, 1115, 376, 855, 1966, 29884, 29900, 29900, 29872, 29945, 3324, 385, 15841, 613, 29871, 13, 5038, 29908, 1159, 13, 4706, 11187, 20095, 29889, 8899, 29889, 5721, 24455, 29918, 2084, 29889, 2457, 29918, 1767, 353, 376, 5721, 24455, 29918, 2084, 29889, 28392, 29908, 13, 4706, 11187, 20095, 29889, 657, 29918, 23705, 1338, 29889, 2457, 29918, 1767, 353, 11117, 18098, 1591, 22099, 29888, 1296, 10827, 13, 4706, 11187, 20095, 29889, 12403, 29918, 11965, 293, 1078, 353, 5159, 13, 4706, 11187, 20095, 29889, 2917, 353, 26494, 18680, 580, 13, 4706, 11187, 1514, 29889, 7299, 353, 26494, 18680, 580, 396, 817, 26494, 17640, 607, 11286, 15709, 2090, 2395, 763, 4770, 1524, 1649, 13, 4706, 13004, 1478, 442, 353, 26494, 18680, 580, 13, 4706, 13004, 1478, 442, 29889, 7299, 29871, 353, 26494, 18680, 580, 13, 4706, 11187, 1514, 29889, 2587, 353, 518, 29890, 397, 1478, 442, 29962, 13, 4706, 11187, 1514, 29889, 7299, 17255, 1524, 26914, 2457, 29918, 1767, 353, 5159, 13, 4706, 11187, 1514, 29889, 5338, 353, 376, 1124, 597, 4773, 29889, 990, 29914, 1514, 29908, 13, 4706, 11187, 20095, 29889, 8899, 29889, 3225, 8269, 29918, 2084, 29889, 2457, 29918, 1767, 353, 6213, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 7469, 29918, 3972, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 29897, 13, 308, 13, 4706, 396, 29871, 29896, 9801, 393, 10854, 11481, 29889, 9482, 29918, 28392, 338, 2000, 411, 13, 4706, 396, 3023, 6273, 13, 4706, 11187, 20095, 29889, 9482, 29918, 28392, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 17640, 1514, 29892, 376, 862, 8485, 29918, 2084, 29889, 28392, 1159, 13, 13, 4706, 396, 29871, 29906, 9801, 393, 10854, 11481, 29889, 3258, 29918, 23176, 29918, 13237, 13, 4706, 396, 338, 2000, 411, 29871, 29896, 2980, 13, 4706, 11187, 20095, 29889, 3258, 29918, 23176, 29918, 13237, 29889, 9294, 29918, 13998, 29918, 2541, 29898, 17640, 1514, 29897, 13, 308, 13, 4706, 396, 29871, 29941, 9801, 393, 263, 12367, 1203, 338, 2825, 29892, 967, 6088, 322, 13, 4706, 396, 28755, 3519, 2000, 13, 13, 4706, 396, 383, 6415, 2303, 29901, 3750, 1838, 29915, 29873, 278, 13261, 292, 664, 29973, 29991, 13, 4706, 396, 1583, 29889, 9294, 5574, 29898, 17640, 29918, 4262, 2141, 5510, 29889, 13998, 29897, 13, 4706, 396, 1583, 29889, 9294, 5574, 29898, 17640, 29918, 4262, 2141, 643, 6646, 29889, 13998, 29897, 13, 308, 13, 4706, 396, 313, 29946, 29889, 9801, 393, 263, 9177, 4947, 13350, 565, 1574, 29889, 7299, 322, 13, 4706, 396, 1320, 24455, 29918, 4262, 437, 451, 8661, 29897, 13, 4706, 11187, 29918, 4262, 2141, 1649, 1524, 26914, 2457, 29918, 1767, 353, 6024, 29874, 3788, 29890, 2033, 13, 4706, 11187, 1514, 29889, 7299, 17255, 1524, 26914, 2457, 29918, 1767, 353, 6024, 29874, 3788, 29890, 3788, 29883, 2033, 13, 4706, 11187, 1514, 29889, 7299, 29889, 643, 6646, 29889, 2457, 29918, 1767, 353, 289, 29908, 29966, 29883, 11903, 13, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 7469, 29918, 3972, 742, 736, 29918, 1767, 29922, 5574, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 1188, 29889, 27392, 29889, 13998, 29897, 13, 4706, 2897, 29889, 5992, 703, 862, 8485, 29918, 2084, 29889, 28392, 1159, 13, 4706, 2897, 29889, 5992, 703, 5721, 24455, 29918, 2084, 29889, 28392, 1159, 13, 4706, 2897, 29889, 5992, 703, 8269, 29918, 2084, 29889, 3126, 1159, 13, 13, 1678, 822, 1243, 29918, 8411, 2704, 29898, 1311, 1125, 13, 4706, 732, 8411, 2704, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 1574, 1125, 13, 9651, 565, 1574, 29889, 11739, 29901, 13, 18884, 12020, 1574, 29889, 11739, 13, 9651, 1683, 29901, 13, 18884, 736, 5852, 13, 13, 4706, 11187, 20095, 353, 26297, 580, 13, 4706, 11187, 20095, 29889, 2917, 353, 26494, 18680, 580, 29871, 396, 1818, 2304, 4770, 262, 1649, 580, 13, 4706, 11187, 1514, 353, 26297, 580, 13, 4706, 396, 29871, 29896, 29889, 881, 451, 12020, 385, 3682, 313, 4187, 881, 1246, 1480, 29889, 3888, 13, 4706, 396, 1678, 322, 3667, 29889, 13716, 504, 29918, 5992, 29892, 322, 736, 2089, 29897, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 4422, 29889, 13716, 504, 29918, 5992, 1495, 408, 16424, 29918, 5992, 29901, 13, 9651, 11187, 1514, 29889, 11739, 353, 10854, 7301, 8238, 2392, 13, 9651, 1583, 29889, 9294, 8824, 29898, 1688, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 876, 13, 9651, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 1188, 29889, 3888, 29889, 13998, 29897, 13, 9651, 1583, 29889, 9294, 5574, 29898, 13716, 504, 29918, 5992, 29889, 13998, 29897, 13, 13, 4706, 396, 29871, 29906, 29889, 881, 12020, 278, 1021, 3682, 13, 4706, 11187, 1514, 29889, 11739, 353, 7670, 3377, 4074, 6685, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 2558, 3377, 4074, 6685, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 29897, 13, 13, 4706, 396, 29871, 29941, 29889, 29896, 10575, 12020, 278, 1021, 429, 29872, 683, 13, 4706, 11187, 1514, 29889, 11739, 353, 20969, 2392, 13, 4706, 11187, 20095, 29889, 2917, 29889, 29888, 532, 2506, 1441, 29879, 353, 5852, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 12914, 2392, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 29897, 13, 4706, 11187, 20095, 29889, 2917, 29889, 29888, 532, 2506, 1441, 29879, 353, 6213, 13, 13, 4706, 396, 29871, 29941, 29889, 29906, 10575, 451, 12020, 385, 3682, 313, 4187, 881, 1246, 1480, 29889, 2704, 322, 736, 2089, 29897, 13, 4706, 11187, 1514, 29889, 11739, 353, 20969, 2392, 13, 4706, 1583, 29889, 9294, 8824, 29898, 1688, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 876, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 1188, 29889, 2704, 29889, 13998, 29897, 13, 13, 4706, 396, 29871, 29946, 29889, 29896, 10575, 12020, 278, 1021, 3682, 13, 4706, 11187, 1514, 29889, 11739, 353, 8960, 13, 4706, 11187, 20095, 29889, 2917, 29889, 29888, 532, 2506, 1441, 29879, 353, 5852, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 2451, 1125, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 29897, 13, 4706, 11187, 20095, 29889, 2917, 29889, 29888, 532, 2506, 1441, 29879, 353, 6213, 13, 13, 4706, 396, 29871, 29946, 29889, 29906, 10575, 451, 12020, 385, 3682, 13, 4706, 11187, 1514, 29889, 11739, 353, 8960, 13, 4706, 1583, 29889, 9294, 8824, 29898, 1688, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 876, 13, 4706, 1583, 29889, 9294, 5574, 29898, 17640, 20095, 29889, 1188, 29889, 2704, 29889, 13998, 29897, 13, 13, 4706, 396, 29871, 29945, 29889, 1939, 15283, 448, 4129, 881, 748, 2691, 13, 4706, 11187, 1514, 29889, 11739, 353, 6213, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1688, 9891, 29898, 17640, 20095, 29892, 11187, 1514, 876, 13, 308, 13, 1678, 822, 1243, 29918, 29885, 12535, 4463, 29898, 1311, 1125, 13, 4706, 732, 29885, 12535, 4463, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 1574, 1125, 13, 9651, 736, 1574, 13, 4706, 1574, 353, 1243, 9891, 29898, 6268, 11481, 3285, 376, 3188, 29914, 1445, 1159, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 1514, 29892, 10854, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1514, 29889, 3188, 1445, 29892, 376, 3188, 29914, 1445, 1159, 13, 13, 1678, 822, 1243, 29918, 11651, 4230, 10382, 29898, 1311, 1125, 13, 4706, 732, 11651, 4230, 10382, 13, 4706, 822, 1243, 9891, 29898, 20095, 1125, 13, 9651, 1209, 13, 4706, 11187, 20095, 353, 26297, 580, 13, 4706, 411, 13261, 877, 571, 8395, 29889, 19557, 4097, 29889, 14420, 287, 3991, 29889, 3539, 1495, 408, 11187, 5527, 29901, 13, 9651, 1243, 9891, 29898, 17640, 20095, 29897, 13, 9651, 396, 1423, 393, 2295, 29889, 4230, 10382, 756, 1063, 731, 304, 263, 12865, 13, 9651, 1583, 29889, 9294, 3624, 4998, 29898, 17640, 20095, 29889, 2917, 29889, 4230, 10382, 29892, 13, 462, 462, 29871, 12865, 29889, 12673, 29897, 13, 9651, 396, 322, 393, 365, 2747, 287, 3991, 29889, 3539, 756, 1063, 2000, 13, 9651, 1583, 29889, 9294, 5574, 29898, 17640, 5527, 29889, 13998, 29897, 13, 13, 1678, 822, 1243, 29918, 10382, 3317, 29898, 1311, 1125, 13, 4706, 732, 10382, 3317, 13, 4706, 822, 1243, 9891, 29898, 20095, 29892, 2752, 1125, 13, 9651, 363, 921, 297, 3464, 29898, 29896, 29900, 29900, 1125, 13, 18884, 7709, 921, 13, 4706, 11187, 20095, 353, 26494, 18680, 580, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10382, 3317, 353, 6213, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29896, 29900, 29900, 29892, 7431, 29898, 1761, 29898, 1688, 9891, 29898, 17640, 20095, 29892, 6213, 13697, 13, 13, 4706, 11187, 20095, 29889, 2917, 29889, 10382, 3317, 353, 29871, 29896, 29900, 13, 4706, 11187, 20095, 29889, 2917, 17255, 11516, 26914, 2457, 29918, 1767, 353, 5852, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29896, 29900, 29892, 7431, 29898, 1761, 29898, 1688, 9891, 29898, 17640, 20095, 29892, 6213, 13697, 13, 2 ]
076_Minimum_Window_Substring.py
joshlyman/Josh-LeetCode
0
6090
# Other solution # V2 def minWindow(s, t): need = collections.Counter(t) #hash table to store char frequency missing = len(t) #total number of chars we care start, end = 0, 0 i = 0 for j, char in enumerate(s, 1): #index j from 1 if need[char] > 0: missing -= 1 need[char] -= 1 if missing == 0: #match all chars while i < j and need[s[i]] < 0: #remove chars to find the real start need[s[i]] += 1 i += 1 need[s[i]] += 1 #make sure the first appearing char satisfies need[char]>0 missing += 1 #we missed this first char, so add missing by 1 if end == 0 or j-i < end-start: #update window start, end = i, j i += 1 #update i to start+1 for next window return s[start:end] # Time: O(|S|+|T|) # Space:O(|S|+|T|) # Refer from: # https://leetcode.com/problems/minimum-window-substring/solution/ # Sliding Window # We start with two pointers, leftleft and rightright initially pointing to the first element of the string S. # We use the rightright pointer to expand the window until we get a desirable window i.e. a window that contains all of the characters of T. # Once we have a window with all the characters, we can move the left pointer ahead one by one. If the window is still a desirable one we keep on updating the minimum window size. # If the window is not desirable any more, we repeat step 2 onwards. # The current window is s[i:j] and the result window is s[I:J]. In need[c] I store how many times I # need character c (can be negative) and missing tells how many characters are still missing. # In the loop, first add the new character to the window. Then, if nothing is missing, # remove as much as possible from the window start and then update the result. class Solution: def minWindow(self, s: str, t: str) -> str: m = len(s) n = len(t) if m < n: return '' lt = {} # put t into dict (lt) and count how many # for each char for i in t: if i not in lt: lt[i] = 1 else: lt[i] += 1 # missing is to count how many remaining char needed from substring # finally get candidate substring which satisfy need of t missing = n i = I = J = 0 for j, c in enumerate(s, 1): if c in lt and lt[c] > 0: missing -= 1 if c in lt: # lt can be negative lt[c] -= 1 # i is index of candidate substring, remove as many as char from candidate while i < j and not missing: if not J or j-i < J-I: I, J = i, j if s[i] not in lt: i += 1 continue else: # if lt contains s[i], then # of s[i] +1, might reach to 0 lt[s[i]] += 1 # if > 0, means we need more, then missing +1 if lt[s[i]] > 0: missing += 1 i += 1 return s[I:J] # Time: O(|S|+|T|) # Space:O(|S|+|T|) # Optimized Sliding Window # A small improvement to the above approach can reduce the time complexity of the algorithm to O(2*∣filtered_S∣+∣S∣+∣T∣), # where filtered(S) is the string formed from S by removing all the elements not present in T
[ 1, 29871, 13, 29937, 5901, 1650, 13, 29937, 478, 29906, 13, 13, 1753, 1375, 5907, 29898, 29879, 29892, 260, 1125, 13, 1678, 817, 353, 16250, 29889, 17779, 29898, 29873, 29897, 9651, 396, 8568, 1591, 304, 3787, 1373, 10868, 13, 1678, 4567, 353, 7431, 29898, 29873, 29897, 462, 308, 396, 7827, 1353, 310, 22524, 591, 2562, 13, 1678, 1369, 29892, 1095, 353, 29871, 29900, 29892, 29871, 29900, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 363, 432, 29892, 1373, 297, 26985, 29898, 29879, 29892, 29871, 29896, 1125, 3986, 396, 2248, 432, 515, 29871, 29896, 13, 4706, 565, 817, 29961, 3090, 29962, 1405, 29871, 29900, 29901, 13, 9651, 4567, 22361, 29871, 29896, 13, 4706, 817, 29961, 3090, 29962, 22361, 29871, 29896, 13, 4706, 565, 4567, 1275, 29871, 29900, 29901, 462, 268, 396, 4352, 599, 22524, 13, 9651, 1550, 474, 529, 432, 322, 817, 29961, 29879, 29961, 29875, 5262, 529, 29871, 29900, 29901, 29871, 396, 5992, 22524, 304, 1284, 278, 1855, 1369, 13, 18884, 817, 29961, 29879, 29961, 29875, 5262, 4619, 29871, 29896, 13, 18884, 474, 4619, 29871, 29896, 13, 9651, 817, 29961, 29879, 29961, 29875, 5262, 4619, 29871, 29896, 462, 29871, 396, 5675, 1854, 278, 937, 21534, 1373, 17150, 817, 29961, 3090, 29962, 29958, 29900, 13, 9651, 4567, 4619, 29871, 29896, 462, 268, 396, 705, 13726, 445, 937, 1373, 29892, 577, 788, 4567, 491, 29871, 29896, 13, 9651, 565, 1095, 1275, 29871, 29900, 470, 432, 29899, 29875, 529, 1095, 29899, 2962, 29901, 29871, 396, 5504, 3474, 13, 18884, 1369, 29892, 1095, 353, 474, 29892, 432, 13, 9651, 474, 4619, 29871, 29896, 462, 965, 396, 5504, 474, 304, 1369, 29974, 29896, 363, 2446, 3474, 13, 1678, 736, 269, 29961, 2962, 29901, 355, 29962, 13, 13, 29937, 5974, 29901, 438, 27204, 29903, 29989, 29974, 29989, 29911, 29989, 29897, 13, 29937, 14121, 29901, 29949, 27204, 29903, 29989, 29974, 29989, 29911, 29989, 29897, 13, 13, 29937, 4118, 515, 29901, 13, 29937, 2045, 597, 280, 300, 401, 29889, 510, 29914, 17199, 29879, 29914, 1195, 12539, 29899, 7165, 29899, 20363, 29914, 2929, 918, 29914, 13, 13, 13, 29937, 14866, 4821, 18379, 29871, 13, 13, 29937, 1334, 1369, 411, 1023, 12589, 29892, 2175, 1563, 322, 1492, 1266, 12919, 13330, 304, 278, 937, 1543, 310, 278, 1347, 317, 29889, 13, 29937, 1334, 671, 278, 1492, 1266, 4879, 304, 7985, 278, 3474, 2745, 591, 679, 263, 553, 27797, 3474, 474, 29889, 29872, 29889, 263, 3474, 393, 3743, 599, 310, 278, 4890, 310, 323, 29889, 13, 29937, 9038, 591, 505, 263, 3474, 411, 599, 278, 4890, 29892, 591, 508, 4337, 278, 2175, 4879, 14432, 697, 491, 697, 29889, 960, 278, 3474, 338, 1603, 263, 553, 27797, 697, 591, 3013, 373, 13271, 278, 9212, 3474, 2159, 29889, 13, 29937, 960, 278, 3474, 338, 451, 553, 27797, 738, 901, 29892, 591, 12312, 4331, 29871, 29906, 373, 2935, 29889, 13, 13, 13, 29937, 450, 1857, 3474, 338, 269, 29961, 29875, 29901, 29926, 29962, 322, 278, 1121, 3474, 338, 269, 29961, 29902, 29901, 29967, 1822, 512, 817, 29961, 29883, 29962, 306, 3787, 920, 1784, 3064, 306, 29871, 13, 29937, 817, 2931, 274, 313, 3068, 367, 8178, 29897, 322, 4567, 10603, 920, 1784, 4890, 526, 1603, 4567, 29889, 29871, 13, 29937, 512, 278, 2425, 29892, 937, 788, 278, 716, 2931, 304, 278, 3474, 29889, 1987, 29892, 565, 3078, 338, 4567, 29892, 29871, 13, 29937, 3349, 408, 1568, 408, 1950, 515, 278, 3474, 1369, 322, 769, 2767, 278, 1121, 29889, 13, 13, 1990, 24380, 29901, 13, 1678, 822, 1375, 5907, 29898, 1311, 29892, 269, 29901, 851, 29892, 260, 29901, 851, 29897, 1599, 851, 29901, 29871, 13, 4706, 286, 353, 7431, 29898, 29879, 29897, 13, 4706, 302, 353, 7431, 29898, 29873, 29897, 13, 4706, 565, 286, 529, 302, 29901, 13, 9651, 736, 6629, 13, 4706, 301, 29873, 353, 6571, 13, 308, 13, 4706, 396, 1925, 260, 964, 9657, 313, 1896, 29897, 322, 2302, 920, 1784, 396, 363, 1269, 1373, 29871, 13, 4706, 363, 474, 297, 260, 29901, 13, 9651, 565, 474, 451, 297, 301, 29873, 29901, 13, 18884, 301, 29873, 29961, 29875, 29962, 353, 29871, 29896, 13, 9651, 1683, 29901, 13, 18884, 301, 29873, 29961, 29875, 29962, 4619, 29871, 29896, 13, 308, 13, 4706, 396, 4567, 338, 304, 2302, 920, 1784, 9886, 1373, 4312, 515, 28228, 13, 4706, 396, 7146, 679, 14020, 28228, 607, 15523, 817, 310, 260, 29871, 13, 4706, 4567, 353, 302, 13, 4706, 474, 353, 306, 353, 435, 353, 29871, 29900, 13, 4706, 363, 432, 29892, 274, 297, 26985, 29898, 29879, 29892, 29871, 29896, 1125, 268, 13, 9651, 565, 274, 297, 301, 29873, 322, 301, 29873, 29961, 29883, 29962, 1405, 29871, 29900, 29901, 13, 18884, 4567, 22361, 29871, 29896, 13, 9651, 565, 274, 297, 301, 29873, 29901, 13, 18884, 396, 301, 29873, 508, 367, 8178, 29871, 13, 18884, 301, 29873, 29961, 29883, 29962, 22361, 29871, 29896, 13, 632, 13, 9651, 396, 474, 338, 2380, 310, 14020, 28228, 29892, 3349, 408, 1784, 408, 1373, 515, 14020, 13, 9651, 1550, 474, 529, 432, 322, 451, 4567, 29901, 13, 18884, 565, 451, 435, 470, 432, 29899, 29875, 529, 435, 29899, 29902, 29901, 13, 462, 1678, 306, 29892, 435, 353, 474, 29892, 432, 13, 18884, 565, 269, 29961, 29875, 29962, 451, 297, 301, 29873, 29901, 13, 462, 1678, 474, 4619, 29871, 29896, 13, 462, 1678, 6773, 13, 18884, 1683, 29901, 13, 18884, 396, 565, 301, 29873, 3743, 269, 29961, 29875, 1402, 769, 396, 310, 269, 29961, 29875, 29962, 718, 29896, 29892, 1795, 6159, 304, 29871, 29900, 1678, 13, 462, 1678, 301, 29873, 29961, 29879, 29961, 29875, 5262, 4619, 29871, 29896, 13, 462, 268, 13, 462, 1678, 396, 565, 1405, 29871, 29900, 29892, 2794, 591, 817, 901, 29892, 769, 4567, 718, 29896, 29871, 13, 462, 1678, 565, 301, 29873, 29961, 29879, 29961, 29875, 5262, 1405, 29871, 29900, 29901, 13, 462, 4706, 4567, 4619, 29871, 29896, 13, 462, 1678, 474, 4619, 29871, 29896, 13, 4706, 736, 269, 29961, 29902, 29901, 29967, 29962, 13, 13, 29937, 5974, 29901, 438, 27204, 29903, 29989, 29974, 29989, 29911, 29989, 29897, 13, 29937, 14121, 29901, 29949, 27204, 29903, 29989, 29974, 29989, 29911, 29989, 29897, 13, 13, 13, 13, 29937, 20693, 326, 1891, 14866, 4821, 18379, 29871, 13, 13, 29937, 319, 2319, 20414, 304, 278, 2038, 2948, 508, 10032, 278, 931, 13644, 310, 278, 5687, 304, 438, 29898, 29906, 29930, 31465, 4572, 287, 29918, 29903, 31465, 29974, 31465, 29903, 31465, 29974, 31465, 29911, 31465, 511, 29871, 13, 29937, 988, 22289, 29898, 29903, 29897, 338, 278, 1347, 8429, 515, 317, 491, 11077, 599, 278, 3161, 451, 2198, 297, 323, 13, 13, 13, 2 ]
coreapi/models/company.py
recentfahim/smartbusinessbd
0
191965
<gh_stars>0 from generic.models import BaseModel from django.db import models from .city import City from .country import Country class Company(BaseModel): name = models.CharField(max_length=55) website = models.CharField(max_length=50, null=True, blank=True) email = models.EmailField(max_length=30, null=True, blank=True) address = models.CharField(max_length=100, blank=True, null=True) city = models.ForeignKey(City, on_delete=models.CASCADE, blank=True, null=True) region = models.CharField(max_length=20, blank=True, null=True) postcode = models.IntegerField(blank=True, null=True) country = models.ForeignKey(Country, on_delete=models.CASCADE, blank=True, null=True) phone = models.CharField(max_length=15, null=True, blank=True) fax = models.CharField(max_length=15, null=True, blank=True) image = models.CharField(max_length=50, blank=True, null=True) logo = models.CharField(max_length=50, blank=True, null=True) class Meta: db_table = 'company' verbose_name_plural = 'companies' def __str__(self): return self.name
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 10035, 29889, 9794, 1053, 7399, 3195, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 869, 12690, 1053, 4412, 13, 3166, 869, 13509, 1053, 15456, 13, 13, 13, 1990, 6938, 29898, 5160, 3195, 1125, 13, 1678, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29945, 29897, 13, 1678, 4700, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29900, 29892, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 4876, 353, 4733, 29889, 9823, 3073, 29898, 3317, 29918, 2848, 29922, 29941, 29900, 29892, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 3211, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29900, 29900, 29892, 9654, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 1678, 4272, 353, 4733, 29889, 27755, 2558, 29898, 16885, 29892, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 9654, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 1678, 5120, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29900, 29892, 9654, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 1678, 1400, 401, 353, 4733, 29889, 7798, 3073, 29898, 19465, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 1678, 4234, 353, 4733, 29889, 27755, 2558, 29898, 20779, 29892, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 9654, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 1678, 9008, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29945, 29892, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 285, 1165, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29945, 29892, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 1967, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29900, 29892, 9654, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 1678, 20194, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29900, 29892, 9654, 29922, 5574, 29892, 1870, 29922, 5574, 29897, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 4833, 29918, 2371, 353, 525, 14518, 29915, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 525, 2388, 273, 583, 29915, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 978, 13, 13, 2 ]
circuit_maintenance_parser/data.py
pke11y/circuit-maintenance-parser
0
78155
<gh_stars>0 """Definition of Data classes.""" import logging from typing import List, NamedTuple, Optional, Type, Set import email from pydantic import BaseModel, Extra from circuit_maintenance_parser.constants import EMAIL_HEADER_SUBJECT, EMAIL_HEADER_DATE logger = logging.getLogger(__name__) class DataPart(NamedTuple): """Simplest data unit to be parsed.""" # type is an arbitrary string that is used to match the DataPart to the Parser class, that contains _data_types type: str content: bytes class NotificationData(BaseModel, extra=Extra.forbid): """Base class for Notification Data types.""" data_parts: List[DataPart] = [] def add_data_part(self, data_type: str, data_content: bytes): """Add a DataPart element into the instance data_parts.""" self.data_parts.append(DataPart(data_type, data_content)) @classmethod def init_from_raw( cls: Type["NotificationData"], data_type: str, data_content: bytes ) -> Optional["NotificationData"]: """Initialize the data_parts with only one DataPart object.""" try: return cls(data_parts=[DataPart(data_type, data_content)]) except Exception: # pylint: disable=broad-except logger.exception("Error found initializing data raw: %s, %s", data_type, data_content) return None @classmethod def init_from_email_bytes(cls: Type["NotificationData"], raw_email_bytes: bytes) -> Optional["NotificationData"]: """Initialize the data_parts from an email defined as raw bytes..""" try: raw_email_string = raw_email_bytes.decode("utf-8") email_message = email.message_from_string(raw_email_string) return cls.init_from_emailmessage(email_message) except Exception: # pylint: disable=broad-except logger.exception("Error found initializing data from email raw bytes: %s", raw_email_bytes) return None @classmethod def walk_email(cls, email_message, data_parts): """Recursive walk_email using Set to not duplicate data entries.""" for part in email_message.walk(): if "image" in part.get_content_type(): # Not interested in parsing images/QRs yet continue if "multipart" in part.get_content_type(): for inner_part in part.get_payload(): if isinstance(inner_part, email.message.Message): cls.walk_email(inner_part, data_parts) elif "message/rfc822" in part.get_content_type(): if isinstance(part.get_payload(), email.message.Message): cls.walk_email(part.get_payload(), data_parts) else: data_parts.add(DataPart(part.get_content_type(), part.get_payload(decode=True))) @classmethod def init_from_emailmessage(cls: Type["NotificationData"], email_message) -> Optional["NotificationData"]: """Initialize the data_parts from an email.message.Email object.""" try: data_parts: Set[DataPart] = set() cls.walk_email(email_message, data_parts) # Adding extra headers that are interesting to be parsed data_parts.add( DataPart( EMAIL_HEADER_SUBJECT, # decode_header() handles conversion from RFC2047 ASCII representation of non-ASCII content to # a list of (string, charset) tuples. # make_header() merges these back into a single Header object containing this text # str() gets the simple Unicode representation of the Header. str(email.header.make_header(email.header.decode_header(email_message["Subject"]))).encode(), ) ) data_parts.add(DataPart(EMAIL_HEADER_DATE, email_message["Date"].encode())) # Ensure the data parts are processed in a consistent order return cls(data_parts=sorted(data_parts, key=lambda part: part.type)) except Exception: # pylint: disable=broad-except logger.exception("Error found initializing data from email message: %s", email_message) return None
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 14683, 310, 3630, 4413, 1213, 15945, 13, 5215, 12183, 13, 3166, 19229, 1053, 2391, 29892, 405, 2795, 23215, 552, 29892, 28379, 29892, 5167, 29892, 3789, 13, 13, 5215, 4876, 13, 3166, 282, 2941, 7716, 1053, 7399, 3195, 29892, 7338, 336, 13, 3166, 11369, 29918, 3396, 841, 749, 29918, 16680, 29889, 3075, 1934, 1053, 382, 1529, 6227, 29918, 23252, 1001, 29918, 20633, 17637, 29892, 382, 1529, 6227, 29918, 23252, 1001, 29918, 6248, 13, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 1990, 3630, 7439, 29898, 22175, 23215, 552, 1125, 13, 1678, 9995, 8942, 572, 342, 848, 5190, 304, 367, 21213, 1213, 15945, 13, 13, 1678, 396, 1134, 338, 385, 11472, 1347, 393, 338, 1304, 304, 1993, 278, 3630, 7439, 304, 278, 1459, 643, 770, 29892, 393, 3743, 903, 1272, 29918, 8768, 13, 1678, 1134, 29901, 851, 13, 1678, 2793, 29901, 6262, 13, 13, 13, 1990, 28578, 1469, 29898, 5160, 3195, 29892, 4805, 29922, 18126, 29889, 1454, 23883, 1125, 13, 1678, 9995, 5160, 770, 363, 28578, 3630, 4072, 1213, 15945, 13, 13, 1678, 848, 29918, 20895, 29901, 2391, 29961, 1469, 7439, 29962, 353, 5159, 13, 13, 1678, 822, 788, 29918, 1272, 29918, 1595, 29898, 1311, 29892, 848, 29918, 1853, 29901, 851, 29892, 848, 29918, 3051, 29901, 6262, 1125, 13, 4706, 9995, 2528, 263, 3630, 7439, 1543, 964, 278, 2777, 848, 29918, 20895, 1213, 15945, 13, 4706, 1583, 29889, 1272, 29918, 20895, 29889, 4397, 29898, 1469, 7439, 29898, 1272, 29918, 1853, 29892, 848, 29918, 3051, 876, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 2069, 29918, 3166, 29918, 1610, 29898, 13, 4706, 1067, 29879, 29901, 5167, 3366, 12958, 1469, 12436, 848, 29918, 1853, 29901, 851, 29892, 848, 29918, 3051, 29901, 6262, 13, 1678, 1723, 1599, 28379, 3366, 12958, 1469, 3108, 29901, 13, 4706, 9995, 6644, 6646, 278, 848, 29918, 20895, 411, 871, 697, 3630, 7439, 1203, 1213, 15945, 13, 4706, 1018, 29901, 13, 9651, 736, 1067, 29879, 29898, 1272, 29918, 20895, 11759, 1469, 7439, 29898, 1272, 29918, 1853, 29892, 848, 29918, 3051, 29897, 2314, 13, 4706, 5174, 8960, 29901, 29871, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 9651, 17927, 29889, 11739, 703, 2392, 1476, 2847, 5281, 848, 10650, 29901, 1273, 29879, 29892, 1273, 29879, 613, 848, 29918, 1853, 29892, 848, 29918, 3051, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 2069, 29918, 3166, 29918, 5269, 29918, 13193, 29898, 25932, 29901, 5167, 3366, 12958, 1469, 12436, 10650, 29918, 5269, 29918, 13193, 29901, 6262, 29897, 1599, 28379, 3366, 12958, 1469, 3108, 29901, 13, 4706, 9995, 6644, 6646, 278, 848, 29918, 20895, 515, 385, 4876, 3342, 408, 10650, 6262, 636, 15945, 29908, 13, 4706, 1018, 29901, 13, 9651, 10650, 29918, 5269, 29918, 1807, 353, 10650, 29918, 5269, 29918, 13193, 29889, 13808, 703, 9420, 29899, 29947, 1159, 13, 9651, 4876, 29918, 4906, 353, 4876, 29889, 4906, 29918, 3166, 29918, 1807, 29898, 1610, 29918, 5269, 29918, 1807, 29897, 13, 9651, 736, 1067, 29879, 29889, 2344, 29918, 3166, 29918, 5269, 4906, 29898, 5269, 29918, 4906, 29897, 13, 4706, 5174, 8960, 29901, 29871, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 9651, 17927, 29889, 11739, 703, 2392, 1476, 2847, 5281, 848, 515, 4876, 10650, 6262, 29901, 1273, 29879, 613, 10650, 29918, 5269, 29918, 13193, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 6686, 29918, 5269, 29898, 25932, 29892, 4876, 29918, 4906, 29892, 848, 29918, 20895, 1125, 13, 4706, 9995, 4789, 25397, 6686, 29918, 5269, 773, 3789, 304, 451, 7929, 848, 9976, 1213, 15945, 13, 4706, 363, 760, 297, 4876, 29918, 4906, 29889, 20919, 7295, 13, 9651, 565, 376, 3027, 29908, 297, 760, 29889, 657, 29918, 3051, 29918, 1853, 7295, 13, 18884, 396, 2216, 8852, 297, 13755, 4558, 29914, 29984, 29934, 29879, 3447, 13, 18884, 6773, 13, 13, 9651, 565, 376, 18056, 442, 29908, 297, 760, 29889, 657, 29918, 3051, 29918, 1853, 7295, 13, 18884, 363, 6426, 29918, 1595, 297, 760, 29889, 657, 29918, 23813, 7295, 13, 462, 1678, 565, 338, 8758, 29898, 3993, 29918, 1595, 29892, 4876, 29889, 4906, 29889, 3728, 1125, 13, 462, 4706, 1067, 29879, 29889, 20919, 29918, 5269, 29898, 3993, 29918, 1595, 29892, 848, 29918, 20895, 29897, 13, 9651, 25342, 376, 4906, 29914, 9600, 29883, 29947, 29906, 29906, 29908, 297, 760, 29889, 657, 29918, 3051, 29918, 1853, 7295, 13, 18884, 565, 338, 8758, 29898, 1595, 29889, 657, 29918, 23813, 3285, 4876, 29889, 4906, 29889, 3728, 1125, 13, 462, 1678, 1067, 29879, 29889, 20919, 29918, 5269, 29898, 1595, 29889, 657, 29918, 23813, 3285, 848, 29918, 20895, 29897, 13, 9651, 1683, 29901, 13, 18884, 848, 29918, 20895, 29889, 1202, 29898, 1469, 7439, 29898, 1595, 29889, 657, 29918, 3051, 29918, 1853, 3285, 760, 29889, 657, 29918, 23813, 29898, 13808, 29922, 5574, 4961, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 2069, 29918, 3166, 29918, 5269, 4906, 29898, 25932, 29901, 5167, 3366, 12958, 1469, 12436, 4876, 29918, 4906, 29897, 1599, 28379, 3366, 12958, 1469, 3108, 29901, 13, 4706, 9995, 6644, 6646, 278, 848, 29918, 20895, 515, 385, 4876, 29889, 4906, 29889, 9823, 1203, 1213, 15945, 13, 4706, 1018, 29901, 13, 9651, 848, 29918, 20895, 29901, 3789, 29961, 1469, 7439, 29962, 353, 731, 580, 13, 9651, 1067, 29879, 29889, 20919, 29918, 5269, 29898, 5269, 29918, 4906, 29892, 848, 29918, 20895, 29897, 13, 13, 9651, 396, 18804, 4805, 9066, 393, 526, 8031, 304, 367, 21213, 13, 9651, 848, 29918, 20895, 29889, 1202, 29898, 13, 18884, 3630, 7439, 29898, 13, 462, 1678, 382, 1529, 6227, 29918, 23252, 1001, 29918, 20633, 17637, 29892, 13, 462, 1678, 396, 21822, 29918, 6672, 580, 17766, 11301, 515, 390, 8610, 29906, 29900, 29946, 29955, 27196, 8954, 310, 1661, 29899, 28599, 2687, 2793, 304, 13, 462, 1678, 396, 259, 263, 1051, 310, 313, 1807, 29892, 17425, 29897, 5291, 2701, 29889, 13, 462, 1678, 396, 1207, 29918, 6672, 580, 2778, 2710, 1438, 1250, 964, 263, 2323, 19345, 1203, 6943, 445, 1426, 13, 462, 1678, 396, 851, 580, 4947, 278, 2560, 23862, 8954, 310, 278, 19345, 29889, 13, 462, 1678, 851, 29898, 5269, 29889, 6672, 29889, 5675, 29918, 6672, 29898, 5269, 29889, 6672, 29889, 13808, 29918, 6672, 29898, 5269, 29918, 4906, 3366, 20622, 3108, 876, 467, 12508, 3285, 13, 18884, 1723, 13, 9651, 1723, 13, 9651, 848, 29918, 20895, 29889, 1202, 29898, 1469, 7439, 29898, 26862, 6227, 29918, 23252, 1001, 29918, 6248, 29892, 4876, 29918, 4906, 3366, 2539, 16862, 12508, 22130, 13, 9651, 396, 22521, 545, 278, 848, 5633, 526, 19356, 297, 263, 13747, 1797, 13, 9651, 736, 1067, 29879, 29898, 1272, 29918, 20895, 29922, 24582, 29898, 1272, 29918, 20895, 29892, 1820, 29922, 2892, 760, 29901, 760, 29889, 1853, 876, 13, 4706, 5174, 8960, 29901, 29871, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 9651, 17927, 29889, 11739, 703, 2392, 1476, 2847, 5281, 848, 515, 4876, 2643, 29901, 1273, 29879, 613, 4876, 29918, 4906, 29897, 13, 4706, 736, 6213, 13, 2 ]
doc/epsilon_pretty_printing.py
Jojendersie/Epsilon-Intersection
14
119848
<filename>doc/epsilon_pretty_printing.py import gdb.printing import gdb class EiMatrixPrinter: "Prints ei::Matrix<> type" def __init__(self, val): self.val = val # Does not work: https://stackoverflow.com/questions/26472066/gdb-pretty-printing-returning-string-from-a-childrens-iterator-but-displaye/29752860 def children(self): rows = self.val.type.template_argument(1) cols = self.val.type.template_argument(2) data = self.val["m_data"] for y in range(rows): line = '' for x in range(cols): idx = x+y*cols yield (str(idx), data[idx]) def to_string(self): return 'Matrix' #rows = self.val.type.template_argument(1) #cols = self.val.type.template_argument(2) #ps = '[' #data = self.val["m_data"] #if rows == 1 or cols == 1: # for i in range(rows * cols): # ps += str(data[i]) # if (i+1) != rows*cols: ps += ', ' # if rows > 1: ps += "]'" # else: ps += ']' #else: # for y in range(rows): # for x in range(cols): # ps += "%12.6g" % self.val["m_data"][x+y*cols] # Multiversion line, looks good on hover, but fails in oneline views # if x != cols-1: ps += ' ' # if y != rows-1: ps +=']\n[' # else: ps += ']' #return ps def build_pretty_printer(): pp = gdb.printing.RegexpCollectionPrettyPrinter( "Epsilon Intersection") pp.add_printer('ei::Matrix', '^ei::Matrix.*$', EiMatrixPrinter) return pp
[ 1, 529, 9507, 29958, 1514, 29914, 5463, 29918, 1457, 4349, 29918, 2158, 292, 29889, 2272, 13, 5215, 330, 2585, 29889, 2158, 292, 13, 5215, 330, 2585, 13, 13, 1990, 382, 29875, 14609, 4040, 1639, 29901, 13, 1678, 376, 4040, 9466, 321, 29875, 1057, 14609, 25299, 1134, 29908, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 659, 1125, 13, 4706, 1583, 29889, 791, 353, 659, 13, 13, 1678, 396, 5538, 451, 664, 29901, 2045, 597, 2417, 29889, 510, 29914, 2619, 29914, 29906, 29953, 29946, 29955, 29906, 29900, 29953, 29953, 29914, 29887, 2585, 29899, 1457, 4349, 29899, 2158, 292, 29899, 2457, 292, 29899, 1807, 29899, 3166, 29899, 29874, 29899, 5145, 29878, 575, 29899, 17609, 29899, 4187, 29899, 4990, 29872, 29914, 29906, 29929, 29955, 29945, 29906, 29947, 29953, 29900, 13, 1678, 822, 4344, 29898, 1311, 1125, 13, 4706, 4206, 353, 1583, 29889, 791, 29889, 1853, 29889, 6886, 29918, 23516, 29898, 29896, 29897, 13, 4706, 28730, 353, 1583, 29889, 791, 29889, 1853, 29889, 6886, 29918, 23516, 29898, 29906, 29897, 13, 4706, 848, 353, 1583, 29889, 791, 3366, 29885, 29918, 1272, 3108, 13, 4706, 363, 343, 297, 3464, 29898, 5727, 1125, 13, 9651, 1196, 353, 6629, 13, 9651, 363, 921, 297, 3464, 29898, 22724, 1125, 13, 18884, 22645, 353, 921, 29974, 29891, 29930, 22724, 13, 18884, 7709, 313, 710, 29898, 13140, 511, 848, 29961, 13140, 2314, 13, 13, 1678, 822, 304, 29918, 1807, 29898, 1311, 1125, 13, 4706, 736, 525, 14609, 29915, 13, 4706, 396, 5727, 353, 1583, 29889, 791, 29889, 1853, 29889, 6886, 29918, 23516, 29898, 29896, 29897, 13, 4706, 396, 22724, 353, 1583, 29889, 791, 29889, 1853, 29889, 6886, 29918, 23516, 29898, 29906, 29897, 13, 4706, 396, 567, 353, 525, 1839, 13, 4706, 396, 1272, 353, 1583, 29889, 791, 3366, 29885, 29918, 1272, 3108, 13, 4706, 396, 361, 4206, 1275, 29871, 29896, 470, 28730, 1275, 29871, 29896, 29901, 13, 4706, 396, 1678, 363, 474, 297, 3464, 29898, 5727, 334, 28730, 1125, 13, 4706, 396, 4706, 6529, 4619, 851, 29898, 1272, 29961, 29875, 2314, 13, 4706, 396, 4706, 565, 313, 29875, 29974, 29896, 29897, 2804, 4206, 29930, 22724, 29901, 6529, 4619, 13420, 525, 13, 4706, 396, 1678, 565, 4206, 1405, 29871, 29896, 29901, 6529, 4619, 376, 29962, 11838, 13, 4706, 396, 1678, 1683, 29901, 6529, 4619, 525, 29962, 29915, 13, 4706, 396, 2870, 29901, 13, 4706, 396, 1678, 363, 343, 297, 3464, 29898, 5727, 1125, 13, 4706, 396, 4706, 363, 921, 297, 3464, 29898, 22724, 1125, 13, 4706, 396, 9651, 6529, 4619, 11860, 29896, 29906, 29889, 29953, 29887, 29908, 1273, 1583, 29889, 791, 3366, 29885, 29918, 1272, 3108, 29961, 29916, 29974, 29891, 29930, 22724, 29962, 396, 9683, 1536, 291, 1196, 29892, 3430, 1781, 373, 16758, 29892, 541, 8465, 297, 373, 5570, 8386, 13, 4706, 396, 9651, 565, 921, 2804, 28730, 29899, 29896, 29901, 6529, 4619, 525, 525, 13, 4706, 396, 4706, 565, 343, 2804, 4206, 29899, 29896, 29901, 6529, 4619, 2033, 29905, 29876, 1839, 13, 4706, 396, 4706, 1683, 29901, 6529, 4619, 525, 29962, 29915, 13, 4706, 396, 2457, 6529, 13, 13, 13, 1753, 2048, 29918, 1457, 4349, 29918, 558, 1639, 7295, 13, 1678, 6499, 353, 330, 2585, 29889, 2158, 292, 29889, 4597, 4548, 7196, 6572, 4349, 4040, 1639, 29898, 13, 4706, 376, 29923, 3232, 4124, 2042, 1159, 13, 1678, 6499, 29889, 1202, 29918, 558, 1639, 877, 10096, 1057, 14609, 742, 525, 29985, 10096, 1057, 14609, 5575, 29938, 742, 382, 29875, 14609, 4040, 1639, 29897, 13, 1678, 736, 6499, 2 ]
tests/unit/props/types/test_number.py
manoadamro/jason
0
193348
import pytest from jason import props def test_validate(): props.Number().load(5) def test_loads_int_from_string(): assert props.Number().load("5") == 5 def test_loads_float_from_string(): assert props.Number().load("5.5") == 5.5 def test_not_allow_strings(): with pytest.raises(props.PropertyValidationError): assert props.Number(allow_strings=False).load("5") == 5 def test_accepts_int(): assert props.Number().load(5) == 5 def test_accepts_float(): assert props.Number().load(5.5) == 5.5 def test_too_low(): with pytest.raises(props.PropertyValidationError): props.Number(min_value=10).load(5) def test_too_high(): with pytest.raises(props.PropertyValidationError): props.Number(max_value=10).load(20) def test_nullable(): props.Number(nullable=True).load(None) def test_not_nullable(): with pytest.raises(props.PropertyValidationError): props.Number().load(None) def test_wrong_type(): with pytest.raises(props.PropertyValidationError): props.Number().load("nope") def test_default(): assert props.Number(default=123).load(None) == 123
[ 1, 1053, 11451, 1688, 13, 13, 3166, 432, 1658, 1053, 17761, 13, 13, 13, 1753, 1243, 29918, 15480, 7295, 13, 1678, 17761, 29889, 4557, 2141, 1359, 29898, 29945, 29897, 13, 13, 13, 1753, 1243, 29918, 18132, 29918, 524, 29918, 3166, 29918, 1807, 7295, 13, 1678, 4974, 17761, 29889, 4557, 2141, 1359, 703, 29945, 1159, 1275, 29871, 29945, 13, 13, 13, 1753, 1243, 29918, 18132, 29918, 7411, 29918, 3166, 29918, 1807, 7295, 13, 1678, 4974, 17761, 29889, 4557, 2141, 1359, 703, 29945, 29889, 29945, 1159, 1275, 29871, 29945, 29889, 29945, 13, 13, 13, 1753, 1243, 29918, 1333, 29918, 9536, 29918, 19651, 7295, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 11030, 29889, 4854, 19448, 2392, 1125, 13, 4706, 4974, 17761, 29889, 4557, 29898, 9536, 29918, 19651, 29922, 8824, 467, 1359, 703, 29945, 1159, 1275, 29871, 29945, 13, 13, 13, 1753, 1243, 29918, 16044, 29879, 29918, 524, 7295, 13, 1678, 4974, 17761, 29889, 4557, 2141, 1359, 29898, 29945, 29897, 1275, 29871, 29945, 13, 13, 13, 1753, 1243, 29918, 16044, 29879, 29918, 7411, 7295, 13, 1678, 4974, 17761, 29889, 4557, 2141, 1359, 29898, 29945, 29889, 29945, 29897, 1275, 29871, 29945, 29889, 29945, 13, 13, 13, 1753, 1243, 29918, 517, 29877, 29918, 677, 7295, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 11030, 29889, 4854, 19448, 2392, 1125, 13, 4706, 17761, 29889, 4557, 29898, 1195, 29918, 1767, 29922, 29896, 29900, 467, 1359, 29898, 29945, 29897, 13, 13, 13, 1753, 1243, 29918, 517, 29877, 29918, 9812, 7295, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 11030, 29889, 4854, 19448, 2392, 1125, 13, 4706, 17761, 29889, 4557, 29898, 3317, 29918, 1767, 29922, 29896, 29900, 467, 1359, 29898, 29906, 29900, 29897, 13, 13, 13, 1753, 1243, 29918, 4304, 519, 7295, 13, 1678, 17761, 29889, 4557, 29898, 4304, 519, 29922, 5574, 467, 1359, 29898, 8516, 29897, 13, 13, 13, 1753, 1243, 29918, 1333, 29918, 4304, 519, 7295, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 11030, 29889, 4854, 19448, 2392, 1125, 13, 4706, 17761, 29889, 4557, 2141, 1359, 29898, 8516, 29897, 13, 13, 13, 1753, 1243, 29918, 15866, 549, 29918, 1853, 7295, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 11030, 29889, 4854, 19448, 2392, 1125, 13, 4706, 17761, 29889, 4557, 2141, 1359, 703, 1217, 412, 1159, 13, 13, 13, 1753, 1243, 29918, 4381, 7295, 13, 1678, 4974, 17761, 29889, 4557, 29898, 4381, 29922, 29896, 29906, 29941, 467, 1359, 29898, 8516, 29897, 1275, 29871, 29896, 29906, 29941, 13, 2 ]
outerJoin.py
eyalsus/python-fun
0
43738
import pandas as pd def leftOuterJoin(left_df, right_df, key): right_df['tmp'] = '@' join_df = left_df.merge(right_df[['tmp', key]], how='left', on=key) join_df = join_df[pd.isnull(join_df['tmp'])] join_df.drop('tmp', axis=1, inplace=True) right_df.drop('tmp', axis=1, inplace=True) return join_df def rightOuterJoin(left_df, right_df, key): return leftOuterJoin(right_df, left_df, key) existing_df = pd.DataFrame.from_dict([{'a': 1, 'b':2}, {'a': 11, 'b':22}, {'a': 111, 'b':222}]) new_df = pd.DataFrame.from_dict([{'a': 11, 'c':33}, {'a': 111, 'c':333}, {'a': 1111, 'c':3333}]) key = 'a' print leftOuterJoin(existing_df, new_df, key) print rightOuterJoin(existing_df, new_df, key)
[ 1, 1053, 11701, 408, 10518, 13, 13, 1753, 2175, 3744, 261, 17242, 29898, 1563, 29918, 2176, 29892, 1492, 29918, 2176, 29892, 1820, 1125, 13, 1678, 1492, 29918, 2176, 1839, 7050, 2033, 353, 18803, 29915, 13, 1678, 5988, 29918, 2176, 353, 2175, 29918, 2176, 29889, 14634, 29898, 1266, 29918, 2176, 29961, 1839, 7050, 742, 1820, 20526, 920, 2433, 1563, 742, 373, 29922, 1989, 29897, 13, 1678, 5988, 29918, 2176, 353, 5988, 29918, 2176, 29961, 15926, 29889, 275, 4304, 29898, 7122, 29918, 2176, 1839, 7050, 2033, 4638, 13, 1678, 5988, 29918, 2176, 29889, 8865, 877, 7050, 742, 9685, 29922, 29896, 29892, 297, 6689, 29922, 5574, 29897, 13, 1678, 1492, 29918, 2176, 29889, 8865, 877, 7050, 742, 9685, 29922, 29896, 29892, 297, 6689, 29922, 5574, 29897, 13, 1678, 736, 5988, 29918, 2176, 13, 13, 1753, 1492, 3744, 261, 17242, 29898, 1563, 29918, 2176, 29892, 1492, 29918, 2176, 29892, 1820, 1125, 13, 1678, 736, 2175, 3744, 261, 17242, 29898, 1266, 29918, 2176, 29892, 2175, 29918, 2176, 29892, 1820, 29897, 13, 13, 13, 735, 15423, 29918, 2176, 353, 10518, 29889, 17271, 29889, 3166, 29918, 8977, 4197, 10998, 29874, 2396, 29871, 29896, 29892, 525, 29890, 2396, 29906, 1118, 11117, 29874, 2396, 29871, 29896, 29896, 29892, 525, 29890, 2396, 29906, 29906, 1118, 11117, 29874, 2396, 29871, 29896, 29896, 29896, 29892, 525, 29890, 2396, 29906, 29906, 29906, 29913, 2314, 13, 1482, 29918, 2176, 353, 10518, 29889, 17271, 29889, 3166, 29918, 8977, 4197, 10998, 29874, 2396, 29871, 29896, 29896, 29892, 525, 29883, 2396, 29941, 29941, 1118, 11117, 29874, 2396, 29871, 29896, 29896, 29896, 29892, 525, 29883, 2396, 29941, 29941, 29941, 1118, 11117, 29874, 2396, 29871, 29896, 29896, 29896, 29896, 29892, 525, 29883, 2396, 29941, 29941, 29941, 29941, 29913, 2314, 13, 1989, 353, 525, 29874, 29915, 13, 13, 2158, 2175, 3744, 261, 17242, 29898, 735, 15423, 29918, 2176, 29892, 716, 29918, 2176, 29892, 1820, 29897, 13, 2158, 1492, 3744, 261, 17242, 29898, 735, 15423, 29918, 2176, 29892, 716, 29918, 2176, 29892, 1820, 29897, 13, 2 ]
prml/nn/math/product.py
brunomaga/PRML
11,017
48233
import numpy as np from prml.nn.function import Function class Product(Function): def __init__(self, axis=None, keepdims=False): if isinstance(axis, int): axis = (axis,) elif isinstance(axis, tuple): axis = tuple(sorted(axis)) self.axis = axis self.keepdims = keepdims def _forward(self, x): self.output = np.prod(x, axis=self.axis, keepdims=True) if not self.keepdims: return np.squeeze(self.output) else: return self.output def backward(self, delta, x): if not self.keepdims and self.axis is not None: for ax in self.axis: delta = np.expand_dims(delta, ax) dx = delta * self.output / x return dx def prod(x, axis=None, keepdims=False): """ product of all element in the array Parameters ---------- x : tensor_like input array axis : int, tuple of ints axis or axes along which a product is performed keepdims : bool keep dimensionality or not Returns ------- product : tensor_like product of all element """ return Product(axis=axis, keepdims=keepdims).forward(x)
[ 1, 1053, 12655, 408, 7442, 13, 3166, 544, 828, 29889, 15755, 29889, 2220, 1053, 6680, 13, 13, 13, 1990, 10969, 29898, 6678, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9685, 29922, 8516, 29892, 3013, 6229, 29879, 29922, 8824, 1125, 13, 4706, 565, 338, 8758, 29898, 8990, 29892, 938, 1125, 13, 9651, 9685, 353, 313, 8990, 29892, 29897, 13, 4706, 25342, 338, 8758, 29898, 8990, 29892, 18761, 1125, 13, 9651, 9685, 353, 18761, 29898, 24582, 29898, 8990, 876, 13, 4706, 1583, 29889, 8990, 353, 9685, 13, 4706, 1583, 29889, 17462, 6229, 29879, 353, 3013, 6229, 29879, 13, 13, 1678, 822, 903, 11333, 29898, 1311, 29892, 921, 1125, 13, 4706, 1583, 29889, 4905, 353, 7442, 29889, 10633, 29898, 29916, 29892, 9685, 29922, 1311, 29889, 8990, 29892, 3013, 6229, 29879, 29922, 5574, 29897, 13, 4706, 565, 451, 1583, 29889, 17462, 6229, 29879, 29901, 13, 9651, 736, 7442, 29889, 29879, 802, 29872, 911, 29898, 1311, 29889, 4905, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 1583, 29889, 4905, 13, 13, 1678, 822, 1250, 1328, 29898, 1311, 29892, 19471, 29892, 921, 1125, 13, 4706, 565, 451, 1583, 29889, 17462, 6229, 29879, 322, 1583, 29889, 8990, 338, 451, 6213, 29901, 13, 9651, 363, 4853, 297, 1583, 29889, 8990, 29901, 13, 18884, 19471, 353, 7442, 29889, 18837, 29918, 6229, 29879, 29898, 4181, 29892, 4853, 29897, 13, 4706, 15414, 353, 19471, 334, 1583, 29889, 4905, 847, 921, 13, 4706, 736, 15414, 13, 13, 13, 1753, 11859, 29898, 29916, 29892, 9685, 29922, 8516, 29892, 3013, 6229, 29879, 29922, 8824, 1125, 13, 1678, 9995, 13, 1678, 3234, 310, 599, 1543, 297, 278, 1409, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 921, 584, 12489, 29918, 4561, 13, 4706, 1881, 1409, 13, 1678, 9685, 584, 938, 29892, 18761, 310, 938, 29879, 13, 4706, 9685, 470, 27815, 3412, 607, 263, 3234, 338, 8560, 13, 1678, 3013, 6229, 29879, 584, 6120, 13, 4706, 3013, 22112, 537, 470, 451, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 3234, 584, 12489, 29918, 4561, 13, 4706, 3234, 310, 599, 1543, 13, 1678, 9995, 13, 1678, 736, 10969, 29898, 8990, 29922, 8990, 29892, 3013, 6229, 29879, 29922, 17462, 6229, 29879, 467, 11333, 29898, 29916, 29897, 13, 2 ]
.history/app/scrape_20201229173546.py
Super-Web112/python-scraping-for-hosting
0
47370
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse, JsonResponse from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.common.action_chains import ActionChains from app.models import ItalianName, City import csv import os @login_required(login_url="/login/") def scrape_data(request): scrape_name = request.GET.get('scrape_name', None) start_id = request.GET.get('start_id', None) end_id = request.GET.get('end_id', None) option = webdriver.ChromeOptions() option.add_argument("window-size=1280,800") # option.add_argument("--headless") # Setup wait for later # wait = WebDriverWait(driver, 10) driver = '' url = '' id = int(start_id) while(id <= int(end_id)): csv_file = "csv_files/"+scrape_name+"_"+str(id)+".csv" if os.path.exists(csv_file): os.remove(csv_file) try: CLICK_NEXT_BUTTON = True CLICK_NEXT_BUTTON_NUM = 0; aaaaaaaaaa = 0 while (CLICK_NEXT_BUTTON): driver = webdriver.Chrome(ChromeDriverManager().install(), options=option) driver.set_window_position(0, 0) # driver.set_window_size(0, 0) url = 'https://sfera.sferabit.com/servizi/alboonlineBoot/index.php?id='+str(id) driver.get(url) original_window = driver.current_window_handle # Check we don't have other windows open already assert len(driver.window_handles) == 1 driver.switch_to.window(driver.window_handles[0]) driver.implicitly_wait(10) name_input = driver.find_element(By.ID, 'filtroRagioneSociale') name_input.send_keys(scrape_name) # ActionChains(driver).move_to_element(name_input).key_up('Francesco', name_input).perform() # ActionChains(driver).move_to_element(name_input).send_keys(name_input, 'Francesco').perform() # ActionChains(driver).move_to_element(name_input).key_down(Keys.CONTROL).send_keys('Francesco').key_up(Keys.CONTROL).perform() send_button = driver.find_element(By.CSS_SELECTOR, 'button.btn-primary') ActionChains(driver).move_to_element(send_button).click(send_button).perform() driver.implicitly_wait(10) if (CLICK_NEXT_BUTTON): for i in range(CLICK_NEXT_BUTTON_NUM): next_button = driver.find_elements(By.CSS_SELECTOR, '#risultatoRicerca a')[2] ActionChains(driver).move_to_element(next_button).click(next_button).perform() driver.implicitly_wait(10) pros_num_table = driver.find_element(By.CSS_SELECTOR, '#risultatoRicerca>table') pros_num_td = pros_num_table.find_elements(By.TAG_NAME, 'td')[1].get_attribute('innerHTML').strip().split(' ') pros_now_num = pros_num_td[0].strip() pros_total_num = pros_num_td[2].strip() print(pros_now_num) print(pros_total_num) if(pros_total_num in pros_now_num): CLICK_NEXT_BUTTON = False else: CLICK_NEXT_BUTTON = True modal_buttons = driver.find_elements(By.CSS_SELECTOR, 'button.buttonAnagrafica') for modal_button in modal_buttons: ActionChains(driver).move_to_element(modal_button).click(modal_button).perform() driver.implicitly_wait(30) fonts = driver.find_elements(By.CSS_SELECTOR, '#modalPersona td') address = name = birth = email = pec = tel = phone = '' if(len(fonts) > 5): use_nums = [2, 3, 5] first_pros = [] result_pros = [] for use_num in use_nums: first_pros.extend(fonts[use_num].get_attribute("innerHTML").strip().split("<br>")) for first_pro in first_pros: temp = first_pro.replace("&nbsp;", " ").strip() temp1 = temp.lower() temp_flag = ('foro di appartenenza' in temp1) or (('data' in temp1) and ('nascita' in temp1)) or ('email' in temp1) or ('pec' in temp1) or ('tel' in temp1) or ('cell' in temp1) if(temp_flag): result_pros.append(temp) for result_pro in result_pros: if(":" in result_pro): rows = result_pro.split(":") temp = rows[0].lower() if("foro di appartenenza" in temp): address = rows[1].strip() if("data" in temp): birth = rows[1].strip() if("email" in temp): email = result_pro.split(">")[1].strip()[:-3] if("pec" in temp): pec = result_pro.split(">")[1].strip()[:-3] if("tel" in temp): tel = rows[1].strip() if("cell" in temp): phone = rows[1].strip() name = fonts[1].get_attribute("innerHTML").split("<b>")[1].strip().split("</b>")[0].strip() print(address) print(name) print(birth) print(email) print(pec) print(tel) print(phone) with open(csv_file, mode='a') as employee_file: employee_writer = csv.writer(employee_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL) employee_writer.writerow([address, name, birth, email, pec, tel, phone]) aaaaaaaaaa = aaaaaaaaaa + 1 print(aaaaaaaaaa) close_buttons = driver.find_element(By.CSS_SELECTOR, "button.btn-secondary") driver.implicitly_wait(10) ActionChains(driver).move_to_element(close_buttons).click(close_buttons).perform() driver.implicitly_wait(10) CLICK_NEXT_BUTTON_NUM = CLICK_NEXT_BUTTON_NUM + 1 print(CLICK_NEXT_BUTTON) print(CLICK_NEXT_BUTTON_NUM) driver.implicitly_wait(10) driver.quit() except: driver.quit() print("id="+str(id)+" is not support.") continue finally: # driver.implicitly_wait(10) # driver.quit() id = id + 1 print(str(id)) data = { 'is_taken': 'sdfsdfsdfsdfsdf' } return JsonResponse(data) @login_required(login_url="/login/") def scrape_aaa(request): ItalianName.objects.all().delete() # username = request.GET.get('username', None) option = webdriver.ChromeOptions() option.add_argument("window-size=1280,800") # option.add_argument("--headless") driver = webdriver.Chrome(ChromeDriverManager().install(), options=option) driver.set_window_position(0, 0) driver.get('https://www.nomix.it/nomi-italiani-maschili-e-femminili.php') urls = {'https://www.nomix.it/nomi-italiani-maschili-e-femminili.php', 'https://www.nomix.it/nomi-italiani-lettera-B.php', 'https://www.nomix.it/nomi-italiani-lettera-C.php', 'https://www.nomix.it/nomi-italiani-lettera-D.php', 'https://www.nomix.it/nomi-italiani-lettera-E.php', 'https://www.nomix.it/nomi-italiani-lettera-F.php', 'https://www.nomix.it/nomi-italiani-lettera-G.php', 'https://www.nomix.it/nomi-italiani-lettera-I.php', 'https://www.nomix.it/nomi-italiani-lettera-L.php', 'https://www.nomix.it/nomi-italiani-lettera-M.php', 'https://www.nomix.it/nomi-italiani-lettera-NO.php', 'https://www.nomix.it/nomi-italiani-lettera-PQ.php', 'https://www.nomix.it/nomi-italiani-lettera-R.php', 'https://www.nomix.it/nomi-italiani-lettera-S.php', 'https://www.nomix.it/nomi-italiani-lettera-TUV.php', 'https://www.nomix.it/nomi-italiani-lettera-WZ.php'} for url in urls: driver.get(url) driver.implicitly_wait(10) original_window = driver.current_window_handle # Check we don't have other windows open already assert len(driver.window_handles) == 1 driver.switch_to.window(driver.window_handles[0]) tables = driver.find_elements(By.TAG_NAME, 'table') male_tds = tables[2].find_elements(By.TAG_NAME, 'td') for male_td in male_tds: td_content = male_td.get_attribute('innerHTML') if('<div' not in td_content): if('strong' in td_content): td_content = td_content.replace('&nbsp;', '') td_content = td_content.replace('<strong>', '') td_content = td_content.replace('</strong>', '').strip() else: td_content = td_content.replace('&nbsp;', '') td_content = td_content.strip() print(td_content) italy_name = ItalianName(names_col=td_content, gender_col='male') italy_name.save() # italy_name.names_col = td_content # italy_name.gender_col = 'male' # italy_name.save() male_tds = tables[3].find_elements(By.TAG_NAME, 'td') for male_td in male_tds: td_content = male_td.get_attribute('innerHTML') if('<div' not in td_content): if('strong' in td_content): td_content = td_content.replace('&nbsp;', '') td_content = td_content.replace('<strong>', '') td_content = td_content.replace('</strong>', '').strip() else: td_content = td_content.replace('&nbsp;', '') td_content = td_content.strip() print(td_content) italy_name = ItalianName(names_col=td_content, gender_col='male') italy_name.save() driver.implicitly_wait(10) driver.quit() data = { 'is_taken': 'sdfsdfsdfsdfsdf' } return JsonResponse(data) @login_required(login_url="/login/") def scrape_name(request): # username = request.GET.get('username', None) i = 1080 driver = '' while(i<=1086): try: option = webdriver.ChromeOptions() option.add_argument("window-size=1280,800") # option.add_argument("--headless") driver = webdriver.Chrome(ChromeDriverManager().install(), options=option) driver.get('https://sfera.sferabit.com/servizi/alboonlineBoot/index.php?id='+str(i)) original_window = driver.current_window_handle # Check we don't have other windows open already assert len(driver.window_handles) == 1 driver.switch_to.window(driver.window_handles[0]) name_input = driver.find_element(By.ID, 'filtroRagioneSociale') name_input.send_keys('an') send_button = driver.find_element(By.CSS_SELECTOR, 'button.btn-primary') ActionChains(driver).move_to_element(send_button).click(send_button).perform() driver.implicitly_wait(10) td = driver.find_element(By.CSS_SELECTOR, '#risultatoRicerca>table.table tr>td:last-child').get_attribute('innerHTML') td = td.split(" ")[-2].strip() city = City(url_id=i, city_name=td) city.save() except: print(str(i)+" does not support") finally: i = i + 1 driver.quit() data = { 'is_taken': 'sdfsdfsdfsdfsdf' } return JsonResponse(data)
[ 1, 515, 9557, 29889, 21570, 29889, 5150, 29889, 19557, 4097, 1053, 6464, 29918, 12403, 13, 3166, 9557, 29889, 12759, 7582, 29879, 1053, 4050, 29892, 679, 29918, 3318, 29918, 272, 29918, 29946, 29900, 29946, 29892, 6684, 13, 3166, 9557, 29889, 1124, 1053, 9056, 5103, 29892, 14355, 5103, 13, 13, 3166, 18866, 1053, 1856, 9465, 13, 3166, 1856, 9465, 29918, 12847, 29889, 18114, 1053, 10228, 12376, 3260, 13, 3166, 18866, 29889, 29813, 29889, 5924, 29889, 1481, 1053, 2563, 12376, 15716, 13, 3166, 18866, 29889, 29813, 29889, 5924, 1053, 3806, 29918, 1116, 2187, 408, 17522, 13, 3166, 18866, 29889, 29813, 29889, 9435, 29889, 1609, 1053, 2648, 13, 3166, 18866, 29889, 29813, 29889, 16674, 29889, 705, 915, 944, 1053, 2563, 2642, 13, 3166, 18866, 29889, 29813, 29889, 9435, 29889, 2467, 29918, 305, 2708, 1053, 9123, 1451, 2708, 13, 3166, 623, 29889, 9794, 1053, 10545, 1170, 29892, 4412, 13, 5215, 11799, 13, 5215, 2897, 13, 13, 29992, 7507, 29918, 12403, 29898, 7507, 29918, 2271, 13802, 7507, 29914, 1159, 13, 1753, 24559, 412, 29918, 1272, 29898, 3827, 1125, 13, 1678, 24559, 412, 29918, 978, 353, 2009, 29889, 7194, 29889, 657, 877, 1557, 336, 412, 29918, 978, 742, 6213, 29897, 13, 1678, 1369, 29918, 333, 353, 2009, 29889, 7194, 29889, 657, 877, 2962, 29918, 333, 742, 6213, 29897, 13, 1678, 1095, 29918, 333, 353, 2009, 29889, 7194, 29889, 657, 877, 355, 29918, 333, 742, 6213, 29897, 13, 1678, 2984, 353, 1856, 9465, 29889, 1451, 4871, 5856, 580, 13, 1678, 2984, 29889, 1202, 29918, 23516, 703, 7165, 29899, 2311, 29922, 29896, 29906, 29947, 29900, 29892, 29947, 29900, 29900, 1159, 13, 1678, 396, 2984, 29889, 1202, 29918, 23516, 703, 489, 2813, 2222, 1159, 13, 1678, 396, 3789, 786, 4480, 363, 2678, 13, 1678, 396, 4480, 353, 2563, 12376, 15716, 29898, 9465, 29892, 29871, 29896, 29900, 29897, 13, 268, 13, 1678, 7156, 353, 6629, 13, 1678, 3142, 353, 6629, 13, 1678, 1178, 353, 938, 29898, 2962, 29918, 333, 29897, 13, 1678, 1550, 29898, 333, 5277, 938, 29898, 355, 29918, 333, 22164, 13, 4706, 11799, 29918, 1445, 353, 376, 7638, 29918, 5325, 12975, 29974, 1557, 336, 412, 29918, 978, 13578, 29918, 17969, 710, 29898, 333, 7240, 1642, 7638, 29908, 13, 4706, 565, 2897, 29889, 2084, 29889, 9933, 29898, 7638, 29918, 1445, 1125, 13, 9651, 2897, 29889, 5992, 29898, 7638, 29918, 1445, 29897, 13, 4706, 1018, 29901, 13, 9651, 17332, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 353, 5852, 13, 9651, 17332, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 29918, 13967, 353, 29871, 29900, 29936, 13, 9651, 263, 27137, 27137, 29874, 353, 29871, 29900, 13, 9651, 1550, 313, 6154, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 1125, 13, 18884, 7156, 353, 1856, 9465, 29889, 1451, 4871, 29898, 1451, 4871, 12376, 3260, 2141, 6252, 3285, 3987, 29922, 3385, 29897, 13, 18884, 7156, 29889, 842, 29918, 7165, 29918, 3283, 29898, 29900, 29892, 29871, 29900, 29897, 13, 18884, 396, 7156, 29889, 842, 29918, 7165, 29918, 2311, 29898, 29900, 29892, 29871, 29900, 29897, 13, 18884, 3142, 353, 525, 991, 597, 29879, 571, 29874, 29889, 29879, 571, 370, 277, 29889, 510, 29914, 2140, 10077, 29914, 284, 833, 14627, 20967, 29914, 2248, 29889, 1961, 29973, 333, 2433, 29974, 710, 29898, 333, 29897, 13, 18884, 7156, 29889, 657, 29898, 2271, 29897, 13, 18884, 2441, 29918, 7165, 353, 7156, 29889, 3784, 29918, 7165, 29918, 8411, 13, 18884, 396, 5399, 591, 1016, 29915, 29873, 505, 916, 5417, 1722, 2307, 13, 18884, 4974, 7431, 29898, 9465, 29889, 7165, 29918, 3179, 793, 29897, 1275, 29871, 29896, 13, 18884, 7156, 29889, 15123, 29918, 517, 29889, 7165, 29898, 9465, 29889, 7165, 29918, 3179, 793, 29961, 29900, 2314, 13, 18884, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 18884, 1024, 29918, 2080, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 1367, 29892, 525, 1777, 29873, 307, 29934, 351, 1421, 29903, 542, 4379, 1495, 13, 18884, 1024, 29918, 2080, 29889, 6717, 29918, 8149, 29898, 1557, 336, 412, 29918, 978, 29897, 13, 18884, 396, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 978, 29918, 2080, 467, 1989, 29918, 786, 877, 7675, 778, 1111, 742, 1024, 29918, 2080, 467, 19826, 580, 13, 18884, 396, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 978, 29918, 2080, 467, 6717, 29918, 8149, 29898, 978, 29918, 2080, 29892, 525, 7675, 778, 1111, 2824, 19826, 580, 13, 18884, 396, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 978, 29918, 2080, 467, 1989, 29918, 3204, 29898, 15506, 29889, 22412, 1672, 29931, 467, 6717, 29918, 8149, 877, 7675, 778, 1111, 2824, 1989, 29918, 786, 29898, 15506, 29889, 22412, 1672, 29931, 467, 19826, 580, 13, 18884, 3638, 29918, 3092, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 525, 3092, 29889, 7290, 29899, 16072, 1495, 13, 18884, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 6717, 29918, 3092, 467, 3808, 29898, 6717, 29918, 3092, 467, 19826, 580, 13, 18884, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 462, 13, 18884, 565, 313, 6154, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 1125, 13, 462, 1678, 363, 474, 297, 3464, 29898, 6154, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 29918, 13967, 1125, 13, 462, 4706, 2446, 29918, 3092, 353, 7156, 29889, 2886, 29918, 17664, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 16321, 3780, 499, 1219, 29934, 293, 24340, 263, 29861, 29906, 29962, 13, 462, 4706, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 4622, 29918, 3092, 467, 3808, 29898, 4622, 29918, 3092, 467, 19826, 580, 13, 462, 4706, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 462, 13, 18884, 10791, 29918, 1949, 29918, 2371, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 16321, 3780, 499, 1219, 29934, 293, 24340, 29958, 2371, 1495, 13, 18884, 10791, 29918, 1949, 29918, 1594, 353, 10791, 29918, 1949, 29918, 2371, 29889, 2886, 29918, 17664, 29898, 2059, 29889, 16881, 29918, 5813, 29892, 525, 1594, 29861, 29896, 1822, 657, 29918, 12715, 877, 14742, 2824, 17010, 2141, 5451, 877, 25710, 13, 18884, 10791, 29918, 3707, 29918, 1949, 353, 10791, 29918, 1949, 29918, 1594, 29961, 29900, 1822, 17010, 580, 13, 18884, 10791, 29918, 7827, 29918, 1949, 353, 10791, 29918, 1949, 29918, 1594, 29961, 29906, 1822, 17010, 580, 13, 18884, 1596, 29898, 771, 29879, 29918, 3707, 29918, 1949, 29897, 13, 18884, 1596, 29898, 771, 29879, 29918, 7827, 29918, 1949, 29897, 13, 18884, 565, 29898, 771, 29879, 29918, 7827, 29918, 1949, 297, 10791, 29918, 3707, 29918, 1949, 1125, 13, 462, 1678, 17332, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 353, 7700, 13, 18884, 1683, 29901, 13, 462, 1678, 17332, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 353, 5852, 13, 462, 268, 13, 18884, 13008, 29918, 4187, 7453, 353, 7156, 29889, 2886, 29918, 17664, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 525, 3092, 29889, 3092, 2744, 351, 1929, 983, 1495, 13, 13, 18884, 363, 13008, 29918, 3092, 297, 13008, 29918, 4187, 7453, 29901, 13, 462, 1678, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 15601, 29918, 3092, 467, 3808, 29898, 15601, 29918, 3092, 467, 19826, 580, 13, 462, 1678, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29941, 29900, 29897, 13, 462, 1678, 23849, 353, 7156, 29889, 2886, 29918, 17664, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 16321, 15601, 7435, 29874, 22599, 1495, 13, 462, 1678, 3211, 353, 1024, 353, 12060, 353, 4876, 353, 13209, 353, 13547, 353, 9008, 353, 6629, 13, 462, 1678, 565, 29898, 2435, 29898, 28586, 29897, 1405, 29871, 29945, 1125, 13, 462, 4706, 671, 29918, 1949, 29879, 353, 518, 29906, 29892, 29871, 29941, 29892, 29871, 29945, 29962, 13, 462, 4706, 937, 29918, 771, 29879, 353, 5159, 13, 462, 4706, 1121, 29918, 771, 29879, 353, 5159, 13, 462, 4706, 363, 671, 29918, 1949, 297, 671, 29918, 1949, 29879, 29901, 13, 462, 9651, 937, 29918, 771, 29879, 29889, 21843, 29898, 28586, 29961, 1509, 29918, 1949, 1822, 657, 29918, 12715, 703, 14742, 2564, 17010, 2141, 5451, 28945, 1182, 29958, 5783, 13, 462, 4706, 363, 937, 29918, 771, 297, 937, 29918, 771, 29879, 29901, 13, 462, 9651, 5694, 353, 937, 29918, 771, 29889, 6506, 703, 29987, 14239, 29936, 613, 376, 376, 467, 17010, 580, 13, 462, 9651, 5694, 29896, 353, 5694, 29889, 13609, 580, 13, 462, 9651, 5694, 29918, 15581, 353, 6702, 1454, 29877, 652, 27119, 5723, 29915, 297, 5694, 29896, 29897, 470, 313, 877, 1272, 29915, 297, 5694, 29896, 29897, 322, 6702, 29876, 6151, 2028, 29915, 297, 5694, 29896, 876, 470, 6702, 5269, 29915, 297, 5694, 29896, 29897, 470, 6702, 3135, 29915, 297, 5694, 29896, 29897, 470, 6702, 28497, 29915, 297, 5694, 29896, 29897, 470, 6702, 3729, 29915, 297, 5694, 29896, 29897, 13, 462, 9651, 565, 29898, 7382, 29918, 15581, 1125, 13, 462, 18884, 1121, 29918, 771, 29879, 29889, 4397, 29898, 7382, 29897, 13, 462, 4706, 363, 1121, 29918, 771, 297, 1121, 29918, 771, 29879, 29901, 13, 462, 9651, 565, 703, 6160, 297, 1121, 29918, 771, 1125, 13, 462, 18884, 4206, 353, 1121, 29918, 771, 29889, 5451, 703, 29901, 1159, 13, 462, 18884, 5694, 353, 4206, 29961, 29900, 1822, 13609, 580, 13, 462, 18884, 565, 703, 1454, 29877, 652, 27119, 5723, 29908, 297, 5694, 1125, 13, 462, 462, 1678, 3211, 353, 4206, 29961, 29896, 1822, 17010, 580, 13, 462, 18884, 565, 703, 1272, 29908, 297, 5694, 1125, 13, 462, 462, 1678, 12060, 353, 4206, 29961, 29896, 1822, 17010, 580, 13, 462, 18884, 565, 703, 5269, 29908, 297, 5694, 1125, 13, 462, 462, 1678, 4876, 353, 1121, 29918, 771, 29889, 5451, 703, 29958, 1159, 29961, 29896, 1822, 17010, 580, 7503, 29899, 29941, 29962, 13, 462, 18884, 565, 703, 3135, 29908, 297, 5694, 1125, 13, 462, 462, 1678, 13209, 353, 1121, 29918, 771, 29889, 5451, 703, 29958, 1159, 29961, 29896, 1822, 17010, 580, 7503, 29899, 29941, 29962, 13, 462, 18884, 565, 703, 28497, 29908, 297, 5694, 1125, 13, 462, 462, 1678, 13547, 353, 4206, 29961, 29896, 1822, 17010, 580, 13, 462, 18884, 565, 703, 3729, 29908, 297, 5694, 1125, 13, 462, 462, 1678, 9008, 353, 4206, 29961, 29896, 1822, 17010, 580, 13, 462, 4706, 1024, 353, 23849, 29961, 29896, 1822, 657, 29918, 12715, 703, 14742, 2564, 5451, 28945, 29890, 29958, 1159, 29961, 29896, 1822, 17010, 2141, 5451, 703, 829, 29890, 29958, 1159, 29961, 29900, 1822, 17010, 580, 13, 462, 4706, 1596, 29898, 7328, 29897, 13, 462, 4706, 1596, 29898, 978, 29897, 13, 462, 4706, 1596, 29898, 29890, 7515, 29897, 13, 462, 4706, 1596, 29898, 5269, 29897, 13, 462, 4706, 1596, 29898, 3135, 29897, 13, 462, 4706, 1596, 29898, 28497, 29897, 13, 462, 4706, 1596, 29898, 6710, 29897, 13, 462, 4706, 411, 1722, 29898, 7638, 29918, 1445, 29892, 4464, 2433, 29874, 1495, 408, 19001, 29918, 1445, 29901, 13, 462, 9651, 19001, 29918, 13236, 353, 11799, 29889, 13236, 29898, 26143, 29918, 1445, 29892, 28552, 29922, 742, 742, 14978, 3090, 2433, 29908, 742, 439, 11427, 29922, 7638, 29889, 13356, 2891, 29923, 29918, 16173, 2260, 29931, 29897, 13, 462, 9651, 19001, 29918, 13236, 29889, 13236, 340, 4197, 7328, 29892, 1024, 29892, 12060, 29892, 4876, 29892, 13209, 29892, 13547, 29892, 9008, 2314, 13, 462, 4706, 263, 27137, 27137, 29874, 353, 263, 27137, 27137, 29874, 718, 29871, 29896, 13, 462, 4706, 1596, 29898, 27137, 27137, 7340, 29897, 13, 462, 4706, 3802, 29918, 4187, 7453, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 376, 3092, 29889, 7290, 29899, 7496, 653, 1159, 13, 462, 4706, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 462, 4706, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 5358, 29918, 4187, 7453, 467, 3808, 29898, 5358, 29918, 4187, 7453, 467, 19826, 580, 13, 462, 4706, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 18884, 17332, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 29918, 13967, 353, 17332, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 29918, 13967, 718, 29871, 29896, 13, 18884, 1596, 29898, 6154, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 29897, 13, 18884, 1596, 29898, 6154, 2965, 29968, 29918, 29940, 12194, 29918, 29933, 2692, 29911, 1164, 29918, 13967, 29897, 13, 18884, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 18884, 7156, 29889, 28358, 580, 13, 4706, 5174, 29901, 13, 9651, 7156, 29889, 28358, 580, 13, 9651, 1596, 703, 333, 543, 29974, 710, 29898, 333, 7240, 29908, 338, 451, 2304, 23157, 13, 9651, 6773, 13, 4706, 7146, 29901, 13, 9651, 396, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 9651, 396, 7156, 29889, 28358, 580, 13, 9651, 1178, 353, 1178, 718, 29871, 29896, 13, 9651, 1596, 29898, 710, 29898, 333, 876, 13, 308, 13, 268, 13, 1678, 848, 353, 426, 13, 4706, 525, 275, 29918, 29873, 9424, 2396, 525, 29879, 29069, 29069, 29069, 29069, 2176, 29915, 13, 1678, 500, 13, 1678, 736, 14355, 5103, 29898, 1272, 29897, 13, 13, 13, 29992, 7507, 29918, 12403, 29898, 7507, 29918, 2271, 13802, 7507, 29914, 1159, 13, 1753, 24559, 412, 29918, 7340, 29874, 29898, 3827, 1125, 13, 1678, 10545, 1170, 29889, 12650, 29889, 497, 2141, 8143, 580, 13, 1678, 396, 8952, 353, 2009, 29889, 7194, 29889, 657, 877, 6786, 742, 6213, 29897, 13, 1678, 2984, 353, 1856, 9465, 29889, 1451, 4871, 5856, 580, 13, 1678, 2984, 29889, 1202, 29918, 23516, 703, 7165, 29899, 2311, 29922, 29896, 29906, 29947, 29900, 29892, 29947, 29900, 29900, 1159, 13, 1678, 396, 2984, 29889, 1202, 29918, 23516, 703, 489, 2813, 2222, 1159, 13, 1678, 7156, 353, 1856, 9465, 29889, 1451, 4871, 29898, 1451, 4871, 12376, 3260, 2141, 6252, 3285, 3987, 29922, 3385, 29897, 13, 1678, 7156, 29889, 842, 29918, 7165, 29918, 3283, 29898, 29900, 29892, 29871, 29900, 29897, 13, 1678, 7156, 29889, 657, 877, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 8247, 305, 2638, 29899, 29872, 29899, 29888, 331, 1195, 2638, 29889, 1961, 1495, 13, 1678, 23942, 353, 11117, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 8247, 305, 2638, 29899, 29872, 29899, 29888, 331, 1195, 2638, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29933, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29907, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29928, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29923, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29943, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29954, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29902, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29931, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29924, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 6632, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29925, 29984, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29934, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29903, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29911, 29965, 29963, 29889, 1961, 742, 525, 991, 597, 1636, 29889, 11522, 861, 29889, 277, 29914, 11522, 29875, 29899, 2410, 11727, 29899, 1026, 10120, 29899, 29956, 29999, 29889, 1961, 10827, 13, 1678, 363, 3142, 297, 23942, 29901, 13, 4706, 7156, 29889, 657, 29898, 2271, 29897, 13, 4706, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 4706, 2441, 29918, 7165, 353, 7156, 29889, 3784, 29918, 7165, 29918, 8411, 13, 4706, 396, 5399, 591, 1016, 29915, 29873, 505, 916, 5417, 1722, 2307, 13, 4706, 4974, 7431, 29898, 9465, 29889, 7165, 29918, 3179, 793, 29897, 1275, 29871, 29896, 13, 4706, 7156, 29889, 15123, 29918, 517, 29889, 7165, 29898, 9465, 29889, 7165, 29918, 3179, 793, 29961, 29900, 2314, 13, 4706, 6131, 353, 7156, 29889, 2886, 29918, 17664, 29898, 2059, 29889, 16881, 29918, 5813, 29892, 525, 2371, 1495, 13, 4706, 14263, 29918, 1594, 29879, 353, 6131, 29961, 29906, 1822, 2886, 29918, 17664, 29898, 2059, 29889, 16881, 29918, 5813, 29892, 525, 1594, 1495, 13, 4706, 363, 14263, 29918, 1594, 297, 14263, 29918, 1594, 29879, 29901, 13, 9651, 22599, 29918, 3051, 353, 14263, 29918, 1594, 29889, 657, 29918, 12715, 877, 14742, 1495, 13, 9651, 565, 877, 29966, 4563, 29915, 451, 297, 22599, 29918, 3051, 1125, 13, 18884, 565, 877, 1110, 29915, 297, 22599, 29918, 3051, 1125, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 29987, 14239, 29936, 742, 27255, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 29966, 1110, 29958, 742, 27255, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 829, 1110, 29958, 742, 525, 2824, 17010, 580, 13, 18884, 1683, 29901, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 29987, 14239, 29936, 742, 27255, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 17010, 580, 13, 18884, 1596, 29898, 1594, 29918, 3051, 29897, 13, 18884, 4698, 29891, 29918, 978, 353, 10545, 1170, 29898, 7039, 29918, 1054, 29922, 1594, 29918, 3051, 29892, 23346, 29918, 1054, 2433, 19202, 1495, 13, 18884, 4698, 29891, 29918, 978, 29889, 7620, 580, 13, 18884, 396, 4698, 29891, 29918, 978, 29889, 7039, 29918, 1054, 353, 22599, 29918, 3051, 13, 18884, 396, 4698, 29891, 29918, 978, 29889, 26098, 29918, 1054, 353, 525, 19202, 29915, 13, 18884, 396, 4698, 29891, 29918, 978, 29889, 7620, 580, 13, 4706, 14263, 29918, 1594, 29879, 353, 6131, 29961, 29941, 1822, 2886, 29918, 17664, 29898, 2059, 29889, 16881, 29918, 5813, 29892, 525, 1594, 1495, 13, 4706, 363, 14263, 29918, 1594, 297, 14263, 29918, 1594, 29879, 29901, 13, 9651, 22599, 29918, 3051, 353, 14263, 29918, 1594, 29889, 657, 29918, 12715, 877, 14742, 1495, 13, 9651, 565, 877, 29966, 4563, 29915, 451, 297, 22599, 29918, 3051, 1125, 13, 18884, 565, 877, 1110, 29915, 297, 22599, 29918, 3051, 1125, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 29987, 14239, 29936, 742, 27255, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 29966, 1110, 29958, 742, 27255, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 829, 1110, 29958, 742, 525, 2824, 17010, 580, 13, 18884, 1683, 29901, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 6506, 877, 29987, 14239, 29936, 742, 27255, 13, 462, 1678, 22599, 29918, 3051, 353, 22599, 29918, 3051, 29889, 17010, 580, 13, 18884, 1596, 29898, 1594, 29918, 3051, 29897, 13, 18884, 4698, 29891, 29918, 978, 353, 10545, 1170, 29898, 7039, 29918, 1054, 29922, 1594, 29918, 3051, 29892, 23346, 29918, 1054, 2433, 19202, 1495, 13, 18884, 4698, 29891, 29918, 978, 29889, 7620, 580, 13, 4706, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 1678, 7156, 29889, 28358, 580, 13, 1678, 848, 353, 426, 13, 4706, 525, 275, 29918, 29873, 9424, 2396, 525, 29879, 29069, 29069, 29069, 29069, 2176, 29915, 13, 1678, 500, 13, 1678, 736, 14355, 5103, 29898, 1272, 29897, 13, 29992, 7507, 29918, 12403, 29898, 7507, 29918, 2271, 13802, 7507, 29914, 1159, 13, 1753, 24559, 412, 29918, 978, 29898, 3827, 1125, 13, 1678, 396, 8952, 353, 2009, 29889, 7194, 29889, 657, 877, 6786, 742, 6213, 29897, 13, 1678, 474, 353, 29871, 29896, 29900, 29947, 29900, 13, 1678, 7156, 353, 6629, 13, 1678, 1550, 29898, 29875, 14065, 29896, 29900, 29947, 29953, 1125, 13, 4706, 1018, 29901, 13, 9651, 2984, 353, 1856, 9465, 29889, 1451, 4871, 5856, 580, 13, 9651, 2984, 29889, 1202, 29918, 23516, 703, 7165, 29899, 2311, 29922, 29896, 29906, 29947, 29900, 29892, 29947, 29900, 29900, 1159, 13, 9651, 396, 2984, 29889, 1202, 29918, 23516, 703, 489, 2813, 2222, 1159, 13, 9651, 7156, 353, 1856, 9465, 29889, 1451, 4871, 29898, 1451, 4871, 12376, 3260, 2141, 6252, 3285, 3987, 29922, 3385, 29897, 13, 9651, 7156, 29889, 657, 877, 991, 597, 29879, 571, 29874, 29889, 29879, 571, 370, 277, 29889, 510, 29914, 2140, 10077, 29914, 284, 833, 14627, 20967, 29914, 2248, 29889, 1961, 29973, 333, 2433, 29974, 710, 29898, 29875, 876, 13, 9651, 2441, 29918, 7165, 353, 7156, 29889, 3784, 29918, 7165, 29918, 8411, 13, 9651, 396, 5399, 591, 1016, 29915, 29873, 505, 916, 5417, 1722, 2307, 13, 9651, 4974, 7431, 29898, 9465, 29889, 7165, 29918, 3179, 793, 29897, 1275, 29871, 29896, 13, 9651, 7156, 29889, 15123, 29918, 517, 29889, 7165, 29898, 9465, 29889, 7165, 29918, 3179, 793, 29961, 29900, 2314, 13, 13, 9651, 1024, 29918, 2080, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 1367, 29892, 525, 1777, 29873, 307, 29934, 351, 1421, 29903, 542, 4379, 1495, 13, 9651, 1024, 29918, 2080, 29889, 6717, 29918, 8149, 877, 273, 1495, 13, 9651, 3638, 29918, 3092, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 525, 3092, 29889, 7290, 29899, 16072, 1495, 13, 9651, 9123, 1451, 2708, 29898, 9465, 467, 11631, 29918, 517, 29918, 5029, 29898, 6717, 29918, 3092, 467, 3808, 29898, 6717, 29918, 3092, 467, 19826, 580, 13, 9651, 7156, 29889, 6574, 4019, 368, 29918, 10685, 29898, 29896, 29900, 29897, 13, 9651, 22599, 353, 7156, 29889, 2886, 29918, 5029, 29898, 2059, 29889, 19407, 29918, 6404, 1955, 29892, 16321, 3780, 499, 1219, 29934, 293, 24340, 29958, 2371, 29889, 2371, 534, 29958, 1594, 29901, 4230, 29899, 5145, 2824, 657, 29918, 12715, 877, 14742, 1495, 13, 9651, 22599, 353, 22599, 29889, 5451, 703, 376, 9601, 29899, 29906, 1822, 17010, 580, 13, 9651, 4272, 353, 4412, 29898, 2271, 29918, 333, 29922, 29875, 29892, 4272, 29918, 978, 29922, 1594, 29897, 13, 9651, 4272, 29889, 7620, 580, 13, 4706, 5174, 29901, 13, 9651, 1596, 29898, 710, 29898, 29875, 7240, 29908, 947, 451, 2304, 1159, 13, 4706, 7146, 29901, 13, 9651, 474, 353, 474, 718, 29871, 29896, 13, 9651, 7156, 29889, 28358, 580, 13, 1678, 848, 353, 426, 13, 4706, 525, 275, 29918, 29873, 9424, 2396, 525, 29879, 29069, 29069, 29069, 29069, 2176, 29915, 13, 1678, 500, 13, 1678, 736, 14355, 5103, 29898, 1272, 29897, 2 ]
normalizer/__init__.py
TCC-ADS-2020/Normalizador
7
110900
from .normalizer import *
[ 1, 515, 869, 8945, 3950, 1053, 334, 13, 2 ]
nels-test-integration/api/job.py
elixir-no-nels/nels-core
3
69426
# -*- coding: utf-8 -*- ''' Created on Sep 2, 2016 @author: Kidane ''' import requests import sys import config from utils import feed_utils STORAGE_COPY = 100 STORAGE_MOVE = 101 SBI_PUSH = 106 #norstore: 102 SBI_PULL = 107 #norstore: 103 TSD_PUSH = 104 TSD_PULL = 105 def add_job(job_type_id, nels_id, src_items, dest_folder): try: url = config.api_url("jobs/add") if job_type_id == STORAGE_COPY or job_type_id == STORAGE_MOVE: params = {"nels_id": nels_id, "job_type_id": job_type_id, "parameters": {"source": src_items, "destination": dest_folder}} response = requests.post(url, json=params, auth=(config.API_KEY, config.API_SECRET)) if (response.status_code == requests.codes.created): return response.json()['job_id'] except: feed_utils.error(sys.exc_info()[0]) return -1 def add_sbi_job(job_type_id, nels_id, files_list, folders_list, remote_host, user_name, ssh_key, dataset_id, dataset, subtype, subtype_id, parent_path_of_source, destination_path): try: url = config.api_url("jobs/add") if job_type_id == SBI_PUSH or job_type_id == SBI_PULL: params = {"nels_id": nels_id, "job_type_id": job_type_id, "parameters": {"remote_host": remote_host, "user_name": user_name, "ssh_key": ssh_key, "dataset_id": dataset_id, "dataset": dataset, "subtype": subtype, "subtype_id": subtype_id, "parent_path_of_source": parent_path_of_source, "destination_path": destination_path, "files": files_list, "folders": folders_list }} feed_utils.info("Job type id: %s" % params["job_type_id"]) response = requests.post(url, json=params, auth=(config.API_KEY, config.API_SECRET)) if (response.status_code == requests.codes.created): feed_utils.info(response.text) return response.json()['job_id'] else: feed_utils.info(response.text) except: feed_utils.error(sys.exc_info()[0]) return -1 def get_job_info(job_id): try: url = config.api_url("jobs/%s" % job_id) params = {"jobId": job_id} response = requests.get(url, json=params, auth=(config.API_KEY, config.API_SECRET)) if (response.status_code == requests.codes.ok): return response.json(); except: feed_utils.error(sys.exc_info()[0]) return None def delete_job(job_id): try: url = config.api_url("jobs/%s" % job_id) response = requests.delete(url, auth=(config.API_KEY, config.API_SECRET)) return (response.status_code == requests.codes.no_content) except: feed_utils.error(sys.exc_info()[0]) return False def wait_for_job(job_id): completion = -1 job_info = get_job_info(job_id) while (job_info["completion"] != 100): if (job_info["completion"] != completion): completion = job_info["completion"] feed_utils.info("waiting for job to finish: completion %s" % completion) job_info = get_job_info(job_id) feed_utils.info("job completed")
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 12008, 13, 20399, 373, 29639, 29871, 29906, 29892, 29871, 29906, 29900, 29896, 29953, 13, 13, 29992, 8921, 29901, 27912, 1662, 13, 12008, 13, 5215, 7274, 13, 5215, 10876, 13, 13, 5215, 2295, 13, 3166, 3667, 29879, 1053, 8343, 29918, 13239, 13, 13, 1254, 1955, 10461, 29918, 3217, 20055, 353, 29871, 29896, 29900, 29900, 13, 1254, 1955, 10461, 29918, 6720, 12064, 353, 29871, 29896, 29900, 29896, 13, 1744, 29902, 29918, 29925, 3308, 29950, 353, 29871, 29896, 29900, 29953, 396, 15459, 8899, 29901, 29871, 29896, 29900, 29906, 13, 1744, 29902, 29918, 29925, 3299, 353, 29871, 29896, 29900, 29955, 396, 15459, 8899, 29901, 29871, 29896, 29900, 29941, 13, 29911, 7230, 29918, 29925, 3308, 29950, 353, 29871, 29896, 29900, 29946, 13, 29911, 7230, 29918, 29925, 3299, 353, 29871, 29896, 29900, 29945, 13, 13, 13, 1753, 788, 29918, 9057, 29898, 9057, 29918, 1853, 29918, 333, 29892, 302, 1379, 29918, 333, 29892, 4765, 29918, 7076, 29892, 2731, 29918, 12083, 1125, 13, 1678, 1018, 29901, 13, 4706, 3142, 353, 2295, 29889, 2754, 29918, 2271, 703, 9057, 29879, 29914, 1202, 1159, 13, 4706, 565, 4982, 29918, 1853, 29918, 333, 1275, 6850, 1955, 10461, 29918, 3217, 20055, 470, 4982, 29918, 1853, 29918, 333, 1275, 6850, 1955, 10461, 29918, 6720, 12064, 29901, 13, 9651, 8636, 353, 8853, 29876, 1379, 29918, 333, 1115, 302, 1379, 29918, 333, 29892, 376, 9057, 29918, 1853, 29918, 333, 1115, 4982, 29918, 1853, 29918, 333, 29892, 13, 462, 418, 376, 16744, 1115, 8853, 4993, 1115, 4765, 29918, 7076, 29892, 376, 23848, 1115, 2731, 29918, 12083, 930, 13, 13, 4706, 2933, 353, 7274, 29889, 2490, 29898, 2271, 29892, 4390, 29922, 7529, 29892, 4817, 7607, 2917, 29889, 8787, 29918, 10818, 29892, 2295, 29889, 8787, 29918, 1660, 22245, 29911, 876, 13, 4706, 565, 313, 5327, 29889, 4882, 29918, 401, 1275, 7274, 29889, 18137, 29889, 11600, 1125, 13, 9651, 736, 2933, 29889, 3126, 580, 1839, 9057, 29918, 333, 2033, 13, 1678, 5174, 29901, 13, 4706, 8343, 29918, 13239, 29889, 2704, 29898, 9675, 29889, 735, 29883, 29918, 3888, 580, 29961, 29900, 2314, 13, 1678, 736, 448, 29896, 13, 13, 13, 1753, 788, 29918, 29879, 5365, 29918, 9057, 29898, 9057, 29918, 1853, 29918, 333, 29892, 302, 1379, 29918, 333, 29892, 2066, 29918, 1761, 29892, 16495, 29918, 1761, 29892, 7592, 29918, 3069, 29892, 1404, 29918, 978, 29892, 13927, 29918, 1989, 29892, 8783, 29918, 333, 29892, 8783, 29892, 13, 18884, 1014, 1853, 29892, 1014, 1853, 29918, 333, 29892, 3847, 29918, 2084, 29918, 974, 29918, 4993, 29892, 12551, 29918, 2084, 1125, 13, 1678, 1018, 29901, 13, 4706, 3142, 353, 2295, 29889, 2754, 29918, 2271, 703, 9057, 29879, 29914, 1202, 1159, 13, 4706, 565, 4982, 29918, 1853, 29918, 333, 1275, 317, 12809, 29918, 29925, 3308, 29950, 470, 4982, 29918, 1853, 29918, 333, 1275, 317, 12809, 29918, 29925, 3299, 29901, 13, 9651, 8636, 353, 8853, 29876, 1379, 29918, 333, 1115, 302, 1379, 29918, 333, 29892, 13, 462, 418, 376, 9057, 29918, 1853, 29918, 333, 1115, 4982, 29918, 1853, 29918, 333, 29892, 13, 462, 418, 376, 16744, 1115, 8853, 16674, 29918, 3069, 1115, 7592, 29918, 3069, 29892, 13, 462, 462, 268, 376, 1792, 29918, 978, 1115, 1404, 29918, 978, 29892, 13, 462, 462, 268, 376, 15269, 29918, 1989, 1115, 13927, 29918, 1989, 29892, 13, 462, 462, 268, 376, 24713, 29918, 333, 1115, 8783, 29918, 333, 29892, 13, 462, 462, 268, 376, 24713, 1115, 8783, 29892, 13, 462, 462, 268, 376, 1491, 1853, 1115, 1014, 1853, 29892, 13, 462, 462, 268, 376, 1491, 1853, 29918, 333, 1115, 1014, 1853, 29918, 333, 29892, 13, 462, 462, 268, 376, 3560, 29918, 2084, 29918, 974, 29918, 4993, 1115, 3847, 29918, 2084, 29918, 974, 29918, 4993, 29892, 13, 462, 462, 268, 376, 23848, 29918, 2084, 1115, 12551, 29918, 2084, 29892, 13, 462, 462, 268, 376, 5325, 1115, 2066, 29918, 1761, 29892, 13, 462, 462, 268, 376, 8771, 414, 1115, 16495, 29918, 1761, 13, 462, 462, 268, 9156, 13, 13, 4706, 8343, 29918, 13239, 29889, 3888, 703, 11947, 1134, 1178, 29901, 1273, 29879, 29908, 1273, 8636, 3366, 9057, 29918, 1853, 29918, 333, 20068, 13, 4706, 2933, 353, 7274, 29889, 2490, 29898, 2271, 29892, 4390, 29922, 7529, 29892, 4817, 7607, 2917, 29889, 8787, 29918, 10818, 29892, 2295, 29889, 8787, 29918, 1660, 22245, 29911, 876, 13, 4706, 565, 313, 5327, 29889, 4882, 29918, 401, 1275, 7274, 29889, 18137, 29889, 11600, 1125, 13, 9651, 8343, 29918, 13239, 29889, 3888, 29898, 5327, 29889, 726, 29897, 13, 9651, 736, 2933, 29889, 3126, 580, 1839, 9057, 29918, 333, 2033, 13, 4706, 1683, 29901, 13, 9651, 8343, 29918, 13239, 29889, 3888, 29898, 5327, 29889, 726, 29897, 13, 1678, 5174, 29901, 13, 4706, 8343, 29918, 13239, 29889, 2704, 29898, 9675, 29889, 735, 29883, 29918, 3888, 580, 29961, 29900, 2314, 13, 1678, 736, 448, 29896, 13, 13, 13, 1753, 679, 29918, 9057, 29918, 3888, 29898, 9057, 29918, 333, 1125, 13, 1678, 1018, 29901, 13, 4706, 3142, 353, 2295, 29889, 2754, 29918, 2271, 703, 9057, 29879, 22584, 29879, 29908, 1273, 4982, 29918, 333, 29897, 13, 4706, 8636, 353, 8853, 9057, 1204, 1115, 4982, 29918, 333, 29913, 13, 4706, 2933, 353, 7274, 29889, 657, 29898, 2271, 29892, 4390, 29922, 7529, 29892, 4817, 7607, 2917, 29889, 8787, 29918, 10818, 29892, 2295, 29889, 8787, 29918, 1660, 22245, 29911, 876, 13, 4706, 565, 313, 5327, 29889, 4882, 29918, 401, 1275, 7274, 29889, 18137, 29889, 554, 1125, 13, 9651, 736, 2933, 29889, 3126, 890, 13, 1678, 5174, 29901, 13, 4706, 8343, 29918, 13239, 29889, 2704, 29898, 9675, 29889, 735, 29883, 29918, 3888, 580, 29961, 29900, 2314, 13, 1678, 736, 6213, 13, 13, 13, 1753, 5217, 29918, 9057, 29898, 9057, 29918, 333, 1125, 13, 1678, 1018, 29901, 13, 4706, 3142, 353, 2295, 29889, 2754, 29918, 2271, 703, 9057, 29879, 22584, 29879, 29908, 1273, 4982, 29918, 333, 29897, 13, 4706, 2933, 353, 7274, 29889, 8143, 29898, 2271, 29892, 4817, 7607, 2917, 29889, 8787, 29918, 10818, 29892, 2295, 29889, 8787, 29918, 1660, 22245, 29911, 876, 13, 4706, 736, 313, 5327, 29889, 4882, 29918, 401, 1275, 7274, 29889, 18137, 29889, 1217, 29918, 3051, 29897, 13, 1678, 5174, 29901, 13, 4706, 8343, 29918, 13239, 29889, 2704, 29898, 9675, 29889, 735, 29883, 29918, 3888, 580, 29961, 29900, 2314, 13, 1678, 736, 7700, 13, 13, 13, 1753, 4480, 29918, 1454, 29918, 9057, 29898, 9057, 29918, 333, 1125, 13, 1678, 13285, 353, 448, 29896, 13, 1678, 4982, 29918, 3888, 353, 679, 29918, 9057, 29918, 3888, 29898, 9057, 29918, 333, 29897, 13, 1678, 1550, 313, 9057, 29918, 3888, 3366, 5729, 12757, 3108, 2804, 29871, 29896, 29900, 29900, 1125, 13, 4706, 565, 313, 9057, 29918, 3888, 3366, 5729, 12757, 3108, 2804, 13285, 1125, 13, 9651, 13285, 353, 4982, 29918, 3888, 3366, 5729, 12757, 3108, 13, 9651, 8343, 29918, 13239, 29889, 3888, 703, 10685, 292, 363, 4982, 304, 8341, 29901, 13285, 1273, 29879, 29908, 1273, 13285, 29897, 13, 4706, 4982, 29918, 3888, 353, 679, 29918, 9057, 29918, 3888, 29898, 9057, 29918, 333, 29897, 13, 1678, 8343, 29918, 13239, 29889, 3888, 703, 9057, 8676, 1159, 13, 2 ]
urlunescape.py
chys87/scripts
0
172960
<reponame>chys87/scripts #! /usr/bin/env python3 # -*- coding: utf-8 -*- # vim:ts=8 sts=4 sw=4 expandtab ft=python # # Copyright (c) 2014, chys <<EMAIL>> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # Neither the name of chys <<EMAIL>> nor the names of other # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # import sys from urllib.parse import unquote DEFAULT_CHARSETS = ['utf-8', 'gb18030'] def unescape(url, attempt_charsets=DEFAULT_CHARSETS): for enc in attempt_charsets: try: return unquote(url, encoding=enc, errors='strict') except UnicodeDecodeError: pass return url def main(): if len(sys.argv) > 1: for url in sys.argv[1:]: print(unescape(url)) else: while True: try: url = input() except EOFError: break print(unescape(url)) if __name__ == '__main__': main()
[ 1, 529, 276, 1112, 420, 29958, 305, 952, 29947, 29955, 29914, 16713, 13, 29937, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 325, 326, 29901, 1372, 29922, 29947, 380, 29879, 29922, 29946, 2381, 29922, 29946, 7985, 3891, 11791, 29922, 4691, 13, 13, 29937, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29946, 29892, 521, 952, 3532, 26862, 6227, 6778, 13, 29937, 13, 29937, 4367, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 29892, 411, 470, 1728, 13, 29937, 21733, 29892, 526, 21905, 4944, 393, 278, 1494, 5855, 13, 29937, 526, 1539, 29901, 13, 29937, 13, 29937, 259, 4367, 391, 3224, 29879, 310, 2752, 775, 1818, 11551, 278, 2038, 3509, 1266, 8369, 29892, 445, 13, 29937, 259, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 29889, 13, 29937, 13, 29937, 259, 4367, 391, 3224, 29879, 297, 7581, 883, 1818, 18532, 278, 2038, 3509, 1266, 8369, 29892, 13, 29937, 259, 445, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 297, 278, 5106, 13, 29937, 259, 322, 29914, 272, 916, 17279, 4944, 411, 278, 4978, 29889, 13, 29937, 13, 29937, 259, 2448, 2121, 278, 1024, 310, 521, 952, 3532, 26862, 6227, 6778, 3643, 278, 2983, 310, 916, 13, 29937, 259, 17737, 29560, 1122, 367, 1304, 304, 1095, 272, 344, 470, 27391, 9316, 10723, 515, 13, 29937, 259, 445, 7047, 1728, 2702, 7536, 3971, 10751, 29889, 13, 29937, 13, 29937, 3446, 3235, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 6770, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 29903, 5300, 8707, 29911, 3960, 29933, 2692, 24125, 376, 3289, 8519, 29908, 13, 29937, 5300, 13764, 29979, 8528, 15094, 1799, 6323, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 29892, 2672, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 6093, 13, 29937, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 8079, 341, 1001, 3210, 13566, 2882, 6227, 11937, 5300, 383, 1806, 8186, 1799, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 13, 29937, 319, 1525, 28657, 13875, 8890, 29928, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 6323, 8707, 29911, 3960, 29933, 2692, 24125, 20700, 13, 29937, 17705, 6181, 15842, 13764, 29979, 22471, 26282, 29892, 2672, 4571, 26282, 29892, 2672, 29907, 1367, 3919, 1964, 29892, 317, 4162, 8426, 1964, 29892, 8528, 29923, 3580, 29931, 19926, 29892, 6323, 13, 29937, 8707, 1660, 13356, 3919, 25758, 21330, 1529, 1692, 29903, 313, 1177, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 13756, 29907, 11499, 13780, 8079, 13, 29937, 27092, 1254, 1806, 26027, 21947, 29949, 8452, 6323, 26996, 29963, 2965, 2890, 29936, 11247, 1799, 8079, 501, 1660, 29892, 360, 8254, 29892, 6323, 13756, 29943, 1806, 29903, 29936, 6323, 350, 3308, 8895, 1799, 13, 29937, 2672, 4945, 29934, 4897, 29911, 2725, 29897, 29832, 8851, 5348, 12766, 17171, 29928, 5300, 6732, 13764, 29979, 6093, 18929, 8079, 17705, 2882, 6227, 11937, 29892, 12317, 2544, 4448, 2672, 13, 29937, 8707, 29911, 4717, 1783, 29892, 6850, 3960, 1783, 17705, 2882, 6227, 11937, 29892, 6323, 323, 8476, 313, 1177, 6154, 15789, 4214, 405, 11787, 5265, 24647, 4741, 6323, 438, 29911, 4448, 22119, 1660, 29897, 13, 29937, 9033, 3235, 4214, 2672, 13764, 29979, 399, 29909, 29979, 19474, 8079, 6093, 501, 1660, 8079, 3446, 3235, 7791, 7818, 12982, 1525, 29892, 382, 29963, 1430, 10762, 11033, 18118, 1660, 29928, 8079, 6093, 13, 29937, 21521, 1799, 8979, 6227, 11937, 8079, 20134, 3210, 21330, 1529, 1692, 29889, 13, 29937, 13, 13, 5215, 10876, 13, 3166, 3142, 1982, 29889, 5510, 1053, 443, 1396, 13, 13, 13, 23397, 29918, 11282, 1660, 9375, 353, 6024, 9420, 29899, 29947, 742, 525, 26300, 29896, 29947, 29900, 29941, 29900, 2033, 13, 13, 13, 1753, 443, 21587, 29898, 2271, 29892, 4218, 29918, 3090, 7224, 29922, 23397, 29918, 11282, 1660, 9375, 1125, 13, 1678, 363, 2094, 297, 4218, 29918, 3090, 7224, 29901, 13, 4706, 1018, 29901, 13, 9651, 736, 443, 1396, 29898, 2271, 29892, 8025, 29922, 3977, 29892, 4436, 2433, 710, 919, 1495, 13, 4706, 5174, 23862, 2772, 401, 2392, 29901, 13, 9651, 1209, 13, 1678, 736, 3142, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 565, 7431, 29898, 9675, 29889, 19218, 29897, 1405, 29871, 29896, 29901, 13, 4706, 363, 3142, 297, 10876, 29889, 19218, 29961, 29896, 29901, 5387, 13, 9651, 1596, 29898, 7844, 5738, 29898, 2271, 876, 13, 1678, 1683, 29901, 13, 4706, 1550, 5852, 29901, 13, 9651, 1018, 29901, 13, 18884, 3142, 353, 1881, 580, 13, 9651, 5174, 382, 9800, 2392, 29901, 13, 18884, 2867, 13, 9651, 1596, 29898, 7844, 5738, 29898, 2271, 876, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]