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
tests/batch/plugins/DummyPlugin/__init__.py
j-h-m/Media-Journaling-Tool
0
190003
# ============================================================================= # Authors: PAR Government # Organization: DARPA # # Copyright (c) 2016 PAR Government # All rights reserved. #============================================================================== import maskgen def transform(img,source,target,**kwargs): return None,None # the actual link name to be used. # the category to be shown def operation(): return {'name':'Blur', 'category':'Filter', 'description':'Gaussian Blur', 'software':'maskgen', 'version':maskgen.__version__, 'transitions': [ 'image.image' ] } def suffix(): return None
[ 1, 396, 1275, 9166, 9166, 9166, 9166, 4936, 25512, 13, 29937, 13189, 943, 29901, 349, 1718, 10354, 13, 29937, 9205, 2133, 29901, 360, 1718, 7228, 13, 29937, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 349, 1718, 10354, 13, 29937, 2178, 10462, 21676, 29889, 13, 29937, 9166, 9166, 9166, 9166, 4936, 2751, 1360, 13, 13, 5215, 11105, 1885, 13, 13, 1753, 4327, 29898, 2492, 29892, 4993, 29892, 5182, 29892, 1068, 19290, 1125, 13, 29871, 736, 6213, 29892, 8516, 13, 13, 29937, 278, 3935, 1544, 1024, 304, 367, 1304, 29889, 13, 29937, 278, 7663, 304, 367, 4318, 13, 1753, 5858, 7295, 13, 29871, 736, 11117, 978, 22099, 10358, 332, 742, 13, 3986, 525, 7320, 22099, 5072, 742, 13, 3986, 525, 8216, 22099, 29954, 17019, 3164, 332, 742, 13, 3986, 525, 20415, 22099, 13168, 1885, 742, 13, 3986, 525, 3259, 2396, 13168, 1885, 17255, 3259, 1649, 29892, 13, 3986, 525, 3286, 2187, 2396, 518, 13, 795, 525, 3027, 29889, 3027, 29915, 13, 3986, 4514, 13, 3986, 500, 13, 13, 1753, 25557, 7295, 13, 1678, 736, 6213, 2 ]
install_and_run.py
encukou/mufl
1
107635
import sys if sys.version_info < (3, 8): exit('This game requires Python 3.8+') import os from pathlib import Path import subprocess HERE = Path(__file__).parent venv_path = HERE / 'venv' possible_python_locations = 'bin/python', 'scripts/python' def run(args, **kwargs): kwargs.setdefault('check', True) print('Running:', ' '.join(str(s) for s in args)) subprocess.run(args, **kwargs) if not venv_path.exists(): run([sys.executable, '-m', 'venv', venv_path]) for loc in possible_python_locations: interp_path = venv_path / loc if interp_path.exists(): break else: exit('Could not find Python in virtualenv :(') environ = dict(os.environ) environ['PYTHONPATH'] = 'vendor' reqs = Path('requirements.txt').read_text().splitlines() run([interp_path, '-m', 'pip', 'install', '--no-deps', *reqs], env=environ) run([interp_path, '-m', 'pip', 'check'], env=environ, check=False) run([interp_path, '-m', 'mufl'], env=environ)
[ 1, 1053, 10876, 13, 13, 361, 10876, 29889, 3259, 29918, 3888, 529, 313, 29941, 29892, 29871, 29947, 1125, 13, 1678, 6876, 877, 4013, 3748, 6858, 5132, 29871, 29941, 29889, 29947, 29974, 1495, 13, 13, 5215, 2897, 13, 3166, 2224, 1982, 1053, 10802, 13, 5215, 1014, 5014, 13, 13, 5006, 353, 10802, 22168, 1445, 1649, 467, 3560, 13, 854, 29894, 29918, 2084, 353, 379, 27267, 847, 525, 854, 29894, 29915, 13, 13, 27338, 29918, 4691, 29918, 2029, 800, 353, 525, 2109, 29914, 4691, 742, 525, 16713, 29914, 4691, 29915, 13, 13, 1753, 1065, 29898, 5085, 29892, 3579, 19290, 1125, 13, 1678, 9049, 5085, 29889, 842, 4381, 877, 3198, 742, 5852, 29897, 13, 1678, 1596, 877, 27795, 29901, 742, 525, 15300, 7122, 29898, 710, 29898, 29879, 29897, 363, 269, 297, 6389, 876, 13, 1678, 1014, 5014, 29889, 3389, 29898, 5085, 29892, 3579, 19290, 29897, 13, 13, 361, 451, 6003, 29894, 29918, 2084, 29889, 9933, 7295, 13, 1678, 1065, 4197, 9675, 29889, 4258, 9246, 29892, 17411, 29885, 742, 525, 854, 29894, 742, 6003, 29894, 29918, 2084, 2314, 13, 13, 1454, 1180, 297, 1950, 29918, 4691, 29918, 2029, 800, 29901, 13, 1678, 1006, 29886, 29918, 2084, 353, 6003, 29894, 29918, 2084, 847, 1180, 13, 1678, 565, 1006, 29886, 29918, 2084, 29889, 9933, 7295, 13, 4706, 2867, 13, 2870, 29901, 13, 1678, 6876, 877, 23323, 451, 1284, 5132, 297, 6901, 6272, 584, 877, 29897, 13, 13, 21813, 353, 9657, 29898, 359, 29889, 21813, 29897, 13, 21813, 1839, 20055, 4690, 1164, 10145, 2033, 353, 525, 19167, 29915, 13, 13, 7971, 29879, 353, 10802, 877, 12277, 1860, 29889, 3945, 2824, 949, 29918, 726, 2141, 5451, 9012, 580, 13, 3389, 4197, 1639, 29886, 29918, 2084, 29892, 17411, 29885, 742, 525, 13096, 742, 525, 6252, 742, 525, 489, 1217, 29899, 311, 567, 742, 334, 7971, 29879, 1402, 8829, 29922, 21813, 29897, 13, 3389, 4197, 1639, 29886, 29918, 2084, 29892, 17411, 29885, 742, 525, 13096, 742, 525, 3198, 7464, 8829, 29922, 21813, 29892, 1423, 29922, 8824, 29897, 13, 13, 3389, 4197, 1639, 29886, 29918, 2084, 29892, 17411, 29885, 742, 525, 29885, 1137, 29880, 7464, 8829, 29922, 21813, 29897, 13, 13, 2 ]
dimred/data/oldloader1.py
kulkarnisp/dim-red
1
190070
import numpy as np import os,sys import matplotlib.pyplot as plt import pathlib import pandas as pd # import plotly.express as px # ipath__ = pathlib.Path(__file__) #.parent.resolve() # ipath__= os.path.normpath(ipath__).split(os.path.sep) # datapath__ = os.path.join(*ipath__[:-3],"datasets/") datapath__ = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..','..', 'datasets')) # from utils import normalise, featurise class LoadMPI(): def __init__(self,data='hcci'): self.inipath = "/home/shubham/strial/Combust/hcci/data/" self.fpath = self.inipath.replace("hcci",data) self.loadFile(data) def loadFile(self, val="hcci"): flist = [f for f in os.listdir(self.fpath) if f.endswith(".mpi")] self.flist = sorted(flist, key=lambda f: float(f[-20:-10]) ) self.selTime(0) self.loadOptions() self.loadVariables() def loadOptions(self): if "hcci" in self.fpath: self.nx = 672 self.ny = 672 self.badOffset = 0 self.species = "varhcci.txt" else: self.nx = 3600 self.ny = 1800 self.badOffset = 89266 self.species = "varisml.txt" def loadVariables(self,ipath=None): if ipath is None: ipath = pathlib.Path(__file__).parent.resolve() # ipath = "/home/shubham/Projects/Anomaly/src/unsup/" fr = open(os.path.join(ipath,self.species),"r") ychem = fr.read() # jack = raw.split() # sparo = [v for i,v in enumerate(jack) if (i+1)%3==0] # ychem = " ".join(sparo) ychem += " T P u v w" variables = ychem.split(" ") self.idvar = {i:v for i,v in enumerate(variables)} self.varid = {v:i for i,v in enumerate(variables)} self.variables = self.varid self.nv = len(variables) self.i = 0 def selTime(self,index): ## path remains same just the file changes self.fid = index self.file = self.flist[index] self.filer = open(self.fpath+self.file,"rb") def selSpec(self,index): ## file remains same, just index changes self.i = index def getDat(self,time): ### be careful with this function ; memory sensitive self.selTime(time) a = np.fromfile(self.filer, count=self.nx*self.ny*self.nv,dtype="float64") dat = a.reshape((self.nx,self.ny,self.nv),order="F") return dat def getTime(self,time): return self.getDat(time) def getHrr(self): n = self.file.find('E') root = self.file[n-6:n+4] a = np.fromfile(self.fpath[:-5]+"hrr/hrr."+root+".mpi", count=self.nx*self.ny*1,dtype="float64") dat = a.reshape((self.nx,self.ny,1), order="F") return dat def getMat(self,species = None): if species is None: species = self.i # i = self.variables[t] self.filer.seek(species*8*self.nx*self.ny+self.badOffset) a = np.fromfile(self.filer, count=self.nx*self.ny,dtype="float64") T = a.reshape(self.nx,self.ny,order="F") return T def getTrain(self, j): self.file = self.flist[j] y = self.getHrr() x = self. getDat(j) return x,y def plotImage(self,time=10,species=0): self.selTime(time) self.selSpec(species) T = self.getMat(self.i) # plt.figure(figsize=(6,6)) fig = plt.imshow(T,cmap = "jet",aspect=1) titler = self.idvar[self.i] + f" at T{self.filer}" plt.title(self.file) plt.colorbar() def stPlot(self,saver="temp.png",titler=None,species=0): T = self.getMat(self.i) plt.figure(figsize=(6,6)) fig = plt.imshow(T,cmap = "jet",aspect=1) if titler is None: titler = self.idvar[self.i] + f" at T{self.filer}" plt.title(self.file) plt.colorbar() if saver!=0: plt.savefig(saver) plt.show() return fig def dyPlot(self,px=plt): T = self.getMat() fig = px.imshow(T, color_continuous_scale="jet", title=self.file) fig.update_layout( autosize=False, width=800, height=800,) return fig
[ 1, 1053, 12655, 408, 7442, 13, 5215, 2897, 29892, 9675, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 2224, 1982, 13, 13, 5215, 11701, 408, 10518, 13, 13, 29937, 1053, 6492, 368, 29889, 17073, 408, 282, 29916, 13, 13, 29937, 474, 2084, 1649, 353, 2224, 1982, 29889, 2605, 22168, 1445, 1649, 29897, 396, 29889, 3560, 29889, 17863, 580, 13, 29937, 474, 2084, 1649, 29922, 2897, 29889, 2084, 29889, 12324, 2084, 29898, 666, 493, 1649, 467, 5451, 29898, 359, 29889, 2084, 29889, 19570, 29897, 13, 29937, 1418, 481, 493, 1649, 353, 2897, 29889, 2084, 29889, 7122, 10456, 666, 493, 1649, 7503, 29899, 29941, 1402, 29908, 14538, 1691, 29914, 1159, 13, 13, 4130, 481, 493, 1649, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 29898, 4770, 1445, 1649, 10353, 525, 636, 3788, 636, 742, 525, 14538, 1691, 8785, 13, 13, 29937, 515, 3667, 29879, 1053, 4226, 895, 29892, 1238, 1337, 895, 13, 13, 13, 1990, 16012, 29924, 2227, 7295, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1272, 2433, 29882, 29883, 455, 29374, 13, 4706, 1583, 29889, 262, 666, 493, 353, 5591, 5184, 29914, 845, 431, 3391, 29914, 303, 9315, 29914, 1523, 29890, 504, 29914, 29882, 29883, 455, 29914, 1272, 12975, 13, 4706, 1583, 29889, 29888, 2084, 353, 1583, 29889, 262, 666, 493, 29889, 6506, 703, 29882, 29883, 455, 613, 1272, 29897, 13, 4706, 1583, 29889, 1359, 2283, 29898, 1272, 29897, 13, 308, 13, 1678, 822, 2254, 2283, 29898, 1311, 29892, 659, 543, 29882, 29883, 455, 29908, 1125, 13, 4706, 1652, 391, 353, 518, 29888, 363, 285, 297, 2897, 29889, 1761, 3972, 29898, 1311, 29889, 29888, 2084, 29897, 565, 285, 29889, 1975, 2541, 17350, 1526, 29875, 13531, 13, 308, 13, 4706, 1583, 29889, 1579, 391, 353, 12705, 29898, 1579, 391, 29892, 1820, 29922, 2892, 285, 29901, 5785, 29898, 29888, 14352, 29906, 29900, 13018, 29896, 29900, 2314, 1723, 13, 308, 13, 4706, 1583, 29889, 2838, 2481, 29898, 29900, 29897, 308, 13, 4706, 1583, 29889, 1359, 5856, 580, 13, 4706, 1583, 29889, 1359, 10444, 1849, 580, 13, 13, 1678, 822, 2254, 5856, 29898, 1311, 1125, 259, 13, 4706, 565, 376, 29882, 29883, 455, 29908, 297, 1583, 29889, 29888, 2084, 29901, 13, 9651, 1583, 29889, 23818, 353, 29871, 29953, 29955, 29906, 13, 9651, 1583, 29889, 1460, 353, 29871, 29953, 29955, 29906, 13, 9651, 1583, 29889, 12313, 10302, 353, 29871, 29900, 13, 9651, 1583, 29889, 24091, 353, 376, 1707, 29882, 29883, 455, 29889, 3945, 29908, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 23818, 353, 29871, 29941, 29953, 29900, 29900, 13, 9651, 1583, 29889, 1460, 353, 29871, 29896, 29947, 29900, 29900, 13, 9651, 1583, 29889, 12313, 10302, 353, 29871, 29947, 29929, 29906, 29953, 29953, 13, 9651, 1583, 29889, 24091, 353, 376, 1707, 275, 828, 29889, 3945, 29908, 13, 462, 13, 1678, 822, 2254, 10444, 1849, 29898, 1311, 29892, 666, 493, 29922, 8516, 1125, 13, 4706, 565, 474, 2084, 338, 6213, 29901, 13, 9651, 474, 2084, 353, 2224, 1982, 29889, 2605, 22168, 1445, 1649, 467, 3560, 29889, 17863, 580, 13, 29937, 4706, 474, 2084, 353, 5591, 5184, 29914, 845, 431, 3391, 29914, 25119, 29914, 2744, 290, 14997, 29914, 4351, 29914, 6948, 786, 12975, 13, 4706, 1424, 353, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 666, 493, 29892, 1311, 29889, 24091, 511, 29908, 29878, 1159, 13, 4706, 343, 14969, 353, 1424, 29889, 949, 580, 13, 29937, 308, 28015, 353, 10650, 29889, 5451, 580, 13, 29937, 308, 805, 8854, 353, 518, 29894, 363, 474, 29892, 29894, 297, 26985, 29898, 21452, 29897, 565, 313, 29875, 29974, 29896, 29897, 29995, 29941, 1360, 29900, 29962, 13, 29937, 308, 343, 14969, 353, 376, 11393, 7122, 29898, 29879, 862, 29877, 29897, 13, 4706, 343, 14969, 4619, 376, 323, 349, 318, 325, 281, 29908, 13, 4706, 3651, 353, 343, 14969, 29889, 5451, 703, 16521, 13, 13, 4706, 1583, 29889, 333, 1707, 353, 426, 29875, 29901, 29894, 363, 474, 29892, 29894, 297, 26985, 29898, 20897, 2915, 13, 4706, 1583, 29889, 1707, 333, 353, 426, 29894, 29901, 29875, 363, 474, 29892, 29894, 297, 26985, 29898, 20897, 2915, 13, 4706, 1583, 29889, 20897, 353, 1583, 29889, 1707, 333, 13, 4706, 1583, 29889, 29876, 29894, 353, 7431, 29898, 20897, 29897, 13, 4706, 1583, 29889, 29875, 353, 29871, 29900, 13, 13, 1678, 822, 5535, 2481, 29898, 1311, 29892, 2248, 1125, 13, 4706, 444, 2224, 9242, 1021, 925, 278, 934, 3620, 13, 4706, 1583, 29889, 29888, 333, 353, 2380, 13, 4706, 1583, 29889, 1445, 353, 1583, 29889, 1579, 391, 29961, 2248, 29962, 13, 4706, 1583, 29889, 1777, 261, 353, 1722, 29898, 1311, 29889, 29888, 2084, 29974, 1311, 29889, 1445, 1699, 6050, 1159, 13, 13, 1678, 822, 5535, 10299, 29898, 1311, 29892, 2248, 1125, 13, 4706, 444, 934, 9242, 1021, 29892, 925, 2380, 3620, 13, 4706, 1583, 29889, 29875, 353, 2380, 13, 268, 13, 1678, 822, 679, 16390, 29898, 1311, 29892, 2230, 1125, 13, 4706, 835, 367, 16010, 411, 445, 740, 2056, 3370, 20502, 13, 4706, 1583, 29889, 2838, 2481, 29898, 2230, 29897, 13, 4706, 263, 353, 7442, 29889, 3166, 1445, 29898, 1311, 29889, 1777, 261, 29892, 13, 462, 4706, 2302, 29922, 1311, 29889, 23818, 29930, 1311, 29889, 1460, 29930, 1311, 29889, 29876, 29894, 29892, 29881, 1853, 543, 7411, 29953, 29946, 1159, 13, 4706, 1418, 353, 263, 29889, 690, 14443, 3552, 1311, 29889, 23818, 29892, 1311, 29889, 1460, 29892, 1311, 29889, 29876, 29894, 511, 2098, 543, 29943, 1159, 29871, 13, 4706, 736, 1418, 29871, 13, 268, 13, 1678, 822, 679, 2481, 29898, 1311, 29892, 2230, 1125, 13, 4706, 736, 1583, 29889, 657, 16390, 29898, 2230, 29897, 13, 13, 1678, 822, 679, 29950, 21478, 29898, 1311, 1125, 13, 4706, 302, 353, 1583, 29889, 1445, 29889, 2886, 877, 29923, 1495, 13, 4706, 3876, 353, 1583, 29889, 1445, 29961, 29876, 29899, 29953, 29901, 29876, 29974, 29946, 29962, 13, 4706, 263, 353, 7442, 29889, 3166, 1445, 29898, 1311, 29889, 29888, 2084, 7503, 29899, 29945, 10062, 29908, 1092, 29878, 29914, 1092, 29878, 1213, 29974, 4632, 29974, 1642, 1526, 29875, 613, 13, 462, 4706, 2302, 29922, 1311, 29889, 23818, 29930, 1311, 29889, 1460, 29930, 29896, 29892, 29881, 1853, 543, 7411, 29953, 29946, 1159, 13, 4706, 1418, 353, 263, 29889, 690, 14443, 3552, 1311, 29889, 23818, 29892, 1311, 29889, 1460, 29892, 29896, 511, 1797, 543, 29943, 1159, 29871, 13, 4706, 736, 1418, 539, 13, 268, 13, 1678, 822, 679, 9782, 29898, 1311, 29892, 24091, 353, 6213, 1125, 13, 4706, 565, 6606, 338, 6213, 29901, 13, 9651, 6606, 353, 1583, 29889, 29875, 13, 29937, 308, 474, 353, 1583, 29889, 20897, 29961, 29873, 29962, 13, 4706, 1583, 29889, 1777, 261, 29889, 344, 1416, 29898, 24091, 29930, 29947, 29930, 1311, 29889, 23818, 29930, 1311, 29889, 1460, 29974, 1311, 29889, 12313, 10302, 29897, 13, 4706, 263, 353, 7442, 29889, 3166, 1445, 29898, 1311, 29889, 1777, 261, 29892, 13, 462, 4706, 2302, 29922, 1311, 29889, 23818, 29930, 1311, 29889, 1460, 29892, 29881, 1853, 543, 7411, 29953, 29946, 1159, 13, 4706, 323, 353, 263, 29889, 690, 14443, 29898, 1311, 29889, 23818, 29892, 1311, 29889, 1460, 29892, 2098, 543, 29943, 1159, 308, 13, 4706, 736, 323, 13, 13, 1678, 822, 679, 5323, 262, 29898, 1311, 29892, 432, 1125, 13, 4706, 1583, 29889, 1445, 353, 1583, 29889, 1579, 391, 29961, 29926, 29962, 13, 4706, 343, 353, 1583, 29889, 657, 29950, 21478, 580, 13, 4706, 921, 353, 1583, 29889, 679, 16390, 29898, 29926, 29897, 13, 4706, 736, 921, 29892, 29891, 13, 268, 13, 1678, 822, 6492, 2940, 29898, 1311, 29892, 2230, 29922, 29896, 29900, 29892, 24091, 29922, 29900, 1125, 13, 4706, 1583, 29889, 2838, 2481, 29898, 2230, 29897, 13, 4706, 1583, 29889, 2838, 10299, 29898, 24091, 29897, 13, 4706, 323, 353, 1583, 29889, 657, 9782, 29898, 1311, 29889, 29875, 29897, 13, 4706, 396, 14770, 29889, 4532, 29898, 1003, 2311, 7607, 29953, 29892, 29953, 876, 13, 4706, 2537, 353, 14770, 29889, 326, 4294, 29898, 29911, 29892, 29883, 1958, 353, 376, 4026, 613, 294, 1103, 29922, 29896, 29897, 13, 4706, 4329, 1358, 353, 1583, 29889, 333, 1707, 29961, 1311, 29889, 29875, 29962, 718, 285, 29908, 472, 323, 29912, 1311, 29889, 1777, 261, 5038, 13, 4706, 14770, 29889, 3257, 29898, 1311, 29889, 1445, 29897, 13, 4706, 14770, 29889, 2780, 1646, 580, 13, 268, 13, 1678, 822, 380, 20867, 29898, 1311, 29892, 4977, 369, 543, 7382, 29889, 2732, 613, 23545, 1358, 29922, 8516, 29892, 24091, 29922, 29900, 1125, 13, 4706, 323, 353, 1583, 29889, 657, 9782, 29898, 1311, 29889, 29875, 29897, 13, 4706, 14770, 29889, 4532, 29898, 1003, 2311, 7607, 29953, 29892, 29953, 876, 13, 4706, 2537, 353, 14770, 29889, 326, 4294, 29898, 29911, 29892, 29883, 1958, 353, 376, 4026, 613, 294, 1103, 29922, 29896, 29897, 13, 4706, 565, 4329, 1358, 338, 6213, 29901, 13, 9651, 4329, 1358, 353, 1583, 29889, 333, 1707, 29961, 1311, 29889, 29875, 29962, 718, 285, 29908, 472, 323, 29912, 1311, 29889, 1777, 261, 5038, 13, 4706, 14770, 29889, 3257, 29898, 1311, 29889, 1445, 29897, 13, 4706, 14770, 29889, 2780, 1646, 580, 13, 4706, 565, 872, 369, 19216, 29900, 29901, 13, 9651, 14770, 29889, 7620, 1003, 29898, 4977, 369, 29897, 13, 4706, 14770, 29889, 4294, 580, 13, 4706, 736, 2537, 13, 308, 13, 1678, 822, 13475, 20867, 29898, 1311, 29892, 1756, 29922, 572, 29873, 1125, 13, 4706, 323, 353, 1583, 29889, 657, 9782, 580, 13, 4706, 2537, 353, 282, 29916, 29889, 326, 4294, 29898, 29911, 29892, 13, 462, 4706, 2927, 29918, 20621, 681, 29918, 7052, 543, 4026, 613, 13, 462, 539, 3611, 29922, 1311, 29889, 1445, 29897, 13, 4706, 2537, 29889, 5504, 29918, 2680, 29898, 13, 965, 1120, 359, 675, 29922, 8824, 29892, 13, 965, 2920, 29922, 29947, 29900, 29900, 29892, 13, 965, 3171, 29922, 29947, 29900, 29900, 29892, 29897, 13, 4706, 736, 2537, 13, 2 ]
tkgeom/__init__.py
ezsolti/TKworkshop
0
92277
__package__ = 'tkgeom' __title__ = 'tkgeom' __description__ = '2D geometry module as an example for the TK workshop' __copyright__ = '2019, <NAME>' __version__ = '1.0.0'
[ 1, 4770, 5113, 1649, 353, 525, 11178, 479, 290, 29915, 13, 1649, 3257, 1649, 353, 525, 11178, 479, 290, 29915, 13, 1649, 8216, 1649, 353, 525, 29906, 29928, 16303, 3883, 408, 385, 1342, 363, 278, 323, 29968, 664, 19032, 29915, 13, 13, 1649, 8552, 1266, 1649, 353, 525, 29906, 29900, 29896, 29929, 29892, 529, 5813, 16299, 13, 13, 13, 1649, 3259, 1649, 353, 525, 29896, 29889, 29900, 29889, 29900, 29915, 13, 2 ]
backend/core/jobs/__init__.py
makakken/roseguarden
0
149384
""" The roseguarden project Copyright (C) 2018-2020 <NAME>, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. """ __authors__ = ["<NAME>"] __contact__ = "<EMAIL>" __credits__ = [] __license__ = "GPLv3" from datetime import datetime, timedelta from flask import Blueprint from core.jobs.job import Job from core.jobs.jobManager import JobManager from core.logs import logManager from inspect import isclass jobs_bp = Blueprint('jobs', __name__) jobManager = JobManager() def trigger_job(job_key, args, user): logManager.info("User {} triggered job {}".format(user.email, job_key)) job_id = jobManager.run_job(user, job_key, args, datetime.now() + timedelta(seconds=5), log_trigger=True) return job_id def add_dated_job(user, job, args, date=None, workspace=None, max_instances=10): if date is None: date = datetime.now() key = "" if workspace is not None: if type(workspace) == str: key += workspace + '/' elif isclass(workspace): logManager.error("Class parameters are not allowed for add_dated_job") return else: key += workspace.name + '/' if type(job) == str: key += job elif isclass(workspace): logManager.error("Class parameters are not allowed for add_dated_job") return elif issubclass(type(job), Job): key += job.name else: logManager.error("Unknown type of job in add_dated_job") return jobManager.run_job(user, key, args, date, max_instances) def print_job_list(): actual_jobs = jobManager.scheduler.get_jobs() print(actual_jobs) all_jobs = jobManager.jobstore.get_all_jobs() print(all_jobs) from core.jobs import routes # noqa: F401
[ 1, 9995, 13, 1576, 11492, 2543, 7879, 2060, 13, 13, 11882, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29906, 29900, 29871, 529, 5813, 10202, 13, 13, 4013, 1824, 338, 3889, 7047, 29901, 366, 508, 2654, 391, 2666, 372, 322, 29914, 272, 6623, 372, 1090, 13, 1552, 4958, 310, 278, 15143, 4593, 5236, 19245, 408, 6369, 491, 278, 12362, 18540, 13, 28077, 29892, 2845, 1873, 29871, 29941, 310, 278, 19245, 29892, 470, 313, 271, 596, 2984, 29897, 738, 2678, 13, 3259, 29889, 13, 13, 4013, 1824, 338, 13235, 297, 278, 4966, 393, 372, 674, 367, 5407, 29892, 541, 399, 1806, 8187, 2692, 13, 2190, 29979, 399, 1718, 29934, 13566, 29979, 29936, 1728, 1584, 278, 2411, 2957, 1370, 21867, 29891, 310, 341, 1001, 3210, 13566, 2882, 6227, 11937, 470, 383, 1806, 8186, 1799, 13, 22051, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 29889, 2823, 278, 15143, 4593, 5236, 19245, 363, 901, 4902, 29889, 13, 3492, 881, 505, 4520, 263, 3509, 310, 278, 15143, 4593, 5236, 19245, 3412, 411, 13, 1366, 1824, 29889, 960, 451, 29892, 1074, 529, 1124, 597, 1636, 29889, 18713, 29889, 990, 29914, 506, 11259, 3779, 29889, 13, 15945, 29908, 13, 13, 1649, 5150, 943, 1649, 353, 6796, 29966, 5813, 29958, 3108, 13, 1649, 12346, 1649, 353, 9872, 26862, 6227, 11903, 13, 1649, 11944, 1169, 1649, 353, 5159, 13, 1649, 506, 1947, 1649, 353, 376, 29954, 7390, 29894, 29941, 29908, 13, 13, 3166, 12865, 1053, 12865, 29892, 5335, 287, 2554, 13, 3166, 29784, 1053, 10924, 2158, 13, 3166, 7136, 29889, 9057, 29879, 29889, 9057, 1053, 17163, 13, 13, 3166, 7136, 29889, 9057, 29879, 29889, 9057, 3260, 1053, 17163, 3260, 13, 3166, 7136, 29889, 20756, 1053, 1480, 3260, 13, 3166, 16096, 1053, 338, 1990, 13, 13, 9057, 29879, 29918, 25288, 353, 10924, 2158, 877, 9057, 29879, 742, 4770, 978, 1649, 29897, 13, 13, 9057, 3260, 353, 17163, 3260, 580, 13, 13, 13, 1753, 7135, 29918, 9057, 29898, 9057, 29918, 1989, 29892, 6389, 29892, 1404, 1125, 13, 1678, 1480, 3260, 29889, 3888, 703, 2659, 6571, 19799, 4982, 6571, 1642, 4830, 29898, 1792, 29889, 5269, 29892, 4982, 29918, 1989, 876, 13, 1678, 4982, 29918, 333, 353, 4982, 3260, 29889, 3389, 29918, 9057, 29898, 1792, 29892, 4982, 29918, 1989, 29892, 6389, 29892, 12865, 29889, 3707, 580, 718, 5335, 287, 2554, 29898, 23128, 29922, 29945, 511, 1480, 29918, 21001, 29922, 5574, 29897, 13, 1678, 736, 4982, 29918, 333, 13, 13, 13, 1753, 788, 29918, 9715, 29918, 9057, 29898, 1792, 29892, 4982, 29892, 6389, 29892, 2635, 29922, 8516, 29892, 664, 3493, 29922, 8516, 29892, 4236, 29918, 2611, 2925, 29922, 29896, 29900, 1125, 13, 1678, 565, 2635, 338, 6213, 29901, 13, 4706, 2635, 353, 12865, 29889, 3707, 580, 13, 1678, 1820, 353, 5124, 13, 1678, 565, 664, 3493, 338, 451, 6213, 29901, 13, 4706, 565, 1134, 29898, 1287, 3493, 29897, 1275, 851, 29901, 13, 9651, 1820, 4619, 664, 3493, 718, 8207, 29915, 13, 4706, 25342, 338, 1990, 29898, 1287, 3493, 1125, 13, 9651, 1480, 3260, 29889, 2704, 703, 2385, 4128, 526, 451, 6068, 363, 788, 29918, 9715, 29918, 9057, 1159, 13, 9651, 736, 13, 4706, 1683, 29901, 13, 9651, 1820, 4619, 664, 3493, 29889, 978, 718, 8207, 29915, 13, 13, 1678, 565, 1134, 29898, 9057, 29897, 1275, 851, 29901, 13, 4706, 1820, 4619, 4982, 13, 1678, 25342, 338, 1990, 29898, 1287, 3493, 1125, 13, 4706, 1480, 3260, 29889, 2704, 703, 2385, 4128, 526, 451, 6068, 363, 788, 29918, 9715, 29918, 9057, 1159, 13, 4706, 736, 13, 1678, 25342, 338, 1491, 1990, 29898, 1853, 29898, 9057, 511, 17163, 1125, 13, 4706, 1820, 4619, 4982, 29889, 978, 13, 1678, 1683, 29901, 13, 4706, 1480, 3260, 29889, 2704, 703, 14148, 1134, 310, 4982, 297, 788, 29918, 9715, 29918, 9057, 1159, 13, 4706, 736, 13, 1678, 4982, 3260, 29889, 3389, 29918, 9057, 29898, 1792, 29892, 1820, 29892, 6389, 29892, 2635, 29892, 4236, 29918, 2611, 2925, 29897, 13, 13, 13, 1753, 1596, 29918, 9057, 29918, 1761, 7295, 13, 1678, 3935, 29918, 9057, 29879, 353, 4982, 3260, 29889, 816, 14952, 29889, 657, 29918, 9057, 29879, 580, 13, 1678, 1596, 29898, 19304, 29918, 9057, 29879, 29897, 13, 1678, 599, 29918, 9057, 29879, 353, 4982, 3260, 29889, 9057, 8899, 29889, 657, 29918, 497, 29918, 9057, 29879, 580, 13, 1678, 1596, 29898, 497, 29918, 9057, 29879, 29897, 13, 13, 13, 3166, 7136, 29889, 9057, 29879, 1053, 12049, 29871, 396, 694, 25621, 29901, 383, 29946, 29900, 29896, 13, 2 ]
src/history/migrations/0003_auto_20200710_0608.py
ritvikmahajan17/scrum-2
8
126882
<filename>src/history/migrations/0003_auto_20200710_0608.py # Generated by Django 3.0.7 on 2020-07-10 00:38 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('project', '0004_auto_20200701_0437'), ('log', '0010_auto_20200710_0608'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('history', '0002_auto_20200610_0234'), ] operations = [ migrations.AlterField( model_name='history', name='logger', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='log.Logger'), ), migrations.AlterField( model_name='history', name='project', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='project.Project'), ), migrations.AlterField( model_name='history', name='team', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='project.Team'), ), migrations.AlterField( model_name='history', name='user', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL), ), ]
[ 1, 529, 9507, 29958, 4351, 29914, 18434, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29941, 29918, 6921, 29918, 29906, 29900, 29906, 29900, 29900, 29955, 29896, 29900, 29918, 29900, 29953, 29900, 29947, 29889, 2272, 13, 29937, 3251, 630, 491, 15337, 29871, 29941, 29889, 29900, 29889, 29955, 373, 29871, 29906, 29900, 29906, 29900, 29899, 29900, 29955, 29899, 29896, 29900, 29871, 29900, 29900, 29901, 29941, 29947, 13, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 5215, 9557, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 4836, 742, 525, 29900, 29900, 29900, 29946, 29918, 6921, 29918, 29906, 29900, 29906, 29900, 29900, 29955, 29900, 29896, 29918, 29900, 29946, 29941, 29955, 5477, 13, 4706, 6702, 1188, 742, 525, 29900, 29900, 29896, 29900, 29918, 6921, 29918, 29906, 29900, 29906, 29900, 29900, 29955, 29896, 29900, 29918, 29900, 29953, 29900, 29947, 5477, 13, 4706, 9725, 800, 29889, 2774, 932, 519, 29918, 10836, 29898, 11027, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 511, 13, 4706, 6702, 18434, 742, 525, 29900, 29900, 29900, 29906, 29918, 6921, 29918, 29906, 29900, 29906, 29900, 29900, 29953, 29896, 29900, 29918, 29900, 29906, 29941, 29946, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 18434, 742, 13, 9651, 1024, 2433, 21707, 742, 13, 9651, 1746, 29922, 9794, 29889, 27755, 2558, 29898, 19465, 29922, 5574, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 14095, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 29889, 10490, 29918, 10074, 29892, 304, 2433, 1188, 29889, 16363, 5477, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 18434, 742, 13, 9651, 1024, 2433, 4836, 742, 13, 9651, 1746, 29922, 9794, 29889, 27755, 2558, 29898, 19465, 29922, 5574, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 14095, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 29889, 10490, 29918, 10074, 29892, 304, 2433, 4836, 29889, 7653, 5477, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 18434, 742, 13, 9651, 1024, 2433, 14318, 742, 13, 9651, 1746, 29922, 9794, 29889, 27755, 2558, 29898, 19465, 29922, 5574, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 14095, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 29889, 10490, 29918, 10074, 29892, 304, 2433, 4836, 29889, 19409, 5477, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 18434, 742, 13, 9651, 1024, 2433, 1792, 742, 13, 9651, 1746, 29922, 9794, 29889, 27755, 2558, 29898, 19465, 29922, 5574, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 14095, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 29889, 10490, 29918, 10074, 29892, 304, 29922, 11027, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 511, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
lisa/target.py
mrkajetanp/lisa
0
1659
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2018, ARM Limited and contributors. # # 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 datetime import datetime import os import os.path import contextlib import shlex from collections.abc import Mapping import copy import sys import argparse import textwrap import functools import inspect import pickle import tempfile from types import ModuleType, FunctionType from operator import itemgetter import devlib from devlib.exception import TargetStableError from devlib.utils.misc import which from devlib.platform.gem5 import Gem5SimulationPlatform from lisa.utils import Loggable, HideExekallID, resolve_dotted_name, get_subclasses, import_all_submodules, LISA_HOME, RESULT_DIR, LATEST_LINK, setup_logging, ArtifactPath, nullcontext, ExekallTaggable, memoized from lisa.assets import ASSETS_PATH from lisa.conf import SimpleMultiSrcConf, KeyDesc, LevelKeyDesc, TopLevelKeyDesc,Configurable from lisa.generic import TypedList from lisa.platforms.platinfo import PlatformInfo class PasswordKeyDesc(KeyDesc): def pretty_format(self, v): return '<password>' # Make sure all submodules of devlib.module are imported so the classes # are all created before we list them import_all_submodules(devlib.module) _DEVLIB_AVAILABLE_MODULES = { cls.name for cls in get_subclasses(devlib.module.Module) if ( getattr(cls, 'name', None) # early modules try to connect to UART and do very # platform-specific things we are not interested in and getattr(cls, 'stage') != 'early' ) } class TargetConf(SimpleMultiSrcConf, HideExekallID): """ Target connection settings. Only keys defined below are allowed, with the given meaning and type: {generated_help} An instance can be created by calling :class:`~TargetConf` with a dictionary. The top-level `target-conf` key is not needed here: .. code-block:: python TargetConf({{ 'name': 'myboard', 'host': 192.0.2.1, 'kind': 'linux', 'username': 'foo', 'password': '<PASSWORD>', }}) Or alternatively, from a YAML configuration file: Content of target_conf.yml: .. literalinclude:: ../target_conf.yml :language: YAML :: TargetConf.from_yaml_map('target_conf.yml') The following special YAML tags can be used in the configuration file: .. code-block:: YAML target-conf: # "!env:<type> ENV_VAR_NAME" can be used to reference an # environment variable. name: !env:str BOARD_NAME port: !env:int PORT .. note:: Only load trusted YAML files as it can lead to abritrary code execution. .. note:: That structure in a YAML file is allowed and will work: * file foo.yml:: target-conf: name: myboard * file bar.yml:: target-conf: !include foo.yml This will result in that structure which would normally be invalid, but is handled as a special case:: target-conf: target-conf: name: myboard """ STRUCTURE = TopLevelKeyDesc('target-conf', 'target connection settings', ( KeyDesc('name', 'Board name, free-form value only used to embelish logs', [str]), KeyDesc('kind', 'Target kind. Can be "linux" (ssh) or "android" (adb)', [str]), KeyDesc('host', 'Hostname or IP address of the host', [str, None]), KeyDesc('username', 'SSH username. On ADB connections, "root" username will root adb upon target connection', [str, None]), PasswordKeyDesc('password', 'SSH password', [str, None]), KeyDesc('port', 'SSH or ADB server port', [int, None]), KeyDesc('device', 'ADB device. Takes precedence over "host"', [str, None]), KeyDesc('keyfile', 'SSH private key file', [str, None]), KeyDesc('strict-host-check', 'Equivalent to StrictHostKeyChecking option of OpenSSH', [bool, None]), KeyDesc('workdir', 'Remote target workdir', [str]), KeyDesc('tools', 'List of tools to install on the target', [TypedList[str]]), KeyDesc('lazy-platinfo', 'Lazily autodect the platform information to speed up the connection', [bool]), LevelKeyDesc('wait-boot', 'Wait for the target to finish booting', ( KeyDesc('enable', 'Enable the boot check', [bool]), KeyDesc('timeout', 'Timeout of the boot check', [int]), )), LevelKeyDesc('devlib', 'devlib configuration', ( # Using textual name of the Platform allows this YAML configuration # to not use any python-specific YAML tags, so TargetConf files can # be parsed and produced by any other third-party code LevelKeyDesc('platform', 'devlib.platform.Platform subclass specification', ( KeyDesc('class', 'Name of the class to use', [str]), KeyDesc('args', 'Keyword arguments to build the Platform object', [Mapping]), )), KeyDesc('excluded-modules', 'List of devlib modules to *not* load', [TypedList[str]]), KeyDesc('file-xfer', 'File transfer method. Can be "sftp" (default) or "scp". (Only valid for linux targets)', [TypedList[str]]), )) )) DEFAULT_SRC = { 'devlib': { 'platform': { 'class': 'devlib.platform.Platform' } } } class Target(Loggable, HideExekallID, ExekallTaggable, Configurable): """ Wrap :class:`devlib.target.Target` to provide additional features on top of it. {configurable_params} :param devlib_platform: Instance of :class:`devlib.platform.Platform` to use to build the :class:`devlib.target.Target` :type devlib_platform: devlib.platform.Platform :param plat_info: Platform information attached to this target, for the benefits of user code. :type plat_info: lisa.platforms.platinfo.PlatformInfo You need to provide the information needed to connect to the target. For SSH targets that means "host", "username" and either "password" or "keyfile". All other fields are optional if the relevant features aren't needed. .. note:: The wrapping of :class:`devlib.target.Target` is done using composition, as opposed to inheritance. This allows swapping the exact class used under the hood, and avoids messing up with ``devlib`` internal members. """ ADB_PORT_DEFAULT = 5555 SSH_PORT_DEFAULT = 22 CRITICAL_TASKS = { 'linux': [ 'init', # We want to freeze everything except PID 1, we don't want to let # sysmted-journald or systemd-timesyncd running. 'systemd[^-]', 'dbus', 'sh', 'ssh', 'rsyslogd', 'jbd2' ], 'android': [ 'sh', 'adbd', 'usb', 'transport', # We don't actually need this task but on Google Pixel it apparently # cannot be frozen, so the cgroup state gets stuck in FREEZING if we # try to freeze it. 'thermal-engine', # Similar issue with HiKey960, the board will crash if this is frozen # for too long. 'watchdogd', ] } """ Dictionary mapping OS name to list of task names that we can't afford to freeze when using :meth:`freeze_userspace`. """ CONF_CLASS = TargetConf INIT_KWARGS_KEY_MAP = { 'devlib_excluded_modules': ['devlib', 'excluded-modules'], 'devlib_file_xfer': ['devlib', 'file-xfer'], 'wait_boot': ['wait-boot', 'enable'], 'wait_boot_timeout': ['wait-boot', 'timeout'], } def __init__(self, kind, name='<noname>', tools=[], res_dir=None, plat_info=None, lazy_platinfo=False, workdir=None, device=None, host=None, port=None, username=None, password=<PASSWORD>, keyfile=None, strict_host_check=None, devlib_platform=None, devlib_excluded_modules=[], devlib_file_xfer=None, wait_boot=True, wait_boot_timeout=10, ): # pylint: disable=dangerous-default-value super().__init__() logger = self.get_logger() self.name = name res_dir = res_dir if res_dir else self._get_res_dir( root=os.path.join(LISA_HOME, RESULT_DIR), relative='', name=f'{self.__class__.__qualname__}-{self.name}', append_time=True, symlink=True ) self._res_dir = res_dir os.makedirs(self._res_dir, exist_ok=True) if os.listdir(self._res_dir): raise ValueError(f'res_dir must be empty: {self._res_dir}') if plat_info is None: plat_info = PlatformInfo() else: # Make a copy of the PlatformInfo so we don't modify the original # one we were passed when adding the target source to it plat_info = copy.copy(plat_info) logger.info(f'User-defined platform information:\n{plat_info}') self.plat_info = plat_info # Take the board name from the target configuration so it becomes # available for later inspection. That board name is mostly free form # and no specific value should be expected for a given kind of board # (i.e. a Juno board might be named "foo-bar-juno-on-my-desk") if name: self.plat_info.add_src('target-conf', dict(name=name)) # Determine file transfer method. Currently avaliable options # are 'sftp' and 'scp', defaults to sftp. if devlib_file_xfer and devlib_file_xfer not in ('scp', 'sftp'): raise ValueError(f'Invalid file transfer method: {devlib_file_xfer}') use_scp = devlib_file_xfer == 'scp' self._installed_tools = set() self.target = self._init_target( kind=kind, name=name, workdir=workdir, device=device, host=host, port=port, username=username, password=password, keyfile=keyfile, strict_host_check=strict_host_check, use_scp=use_scp, devlib_platform=devlib_platform, wait_boot=wait_boot, wait_boot_timeout=wait_boot_timeout, ) devlib_excluded_modules = set(devlib_excluded_modules) # Sorry, can't let you do that. Messing with cgroups in a systemd # system is pretty bad idea. if self._uses_systemd: logger.warning('Will not load cgroups devlib module: target is using systemd, which already uses cgroups') devlib_excluded_modules.add('cgroups') self._devlib_loadable_modules = _DEVLIB_AVAILABLE_MODULES - devlib_excluded_modules # Initialize binary tools to deploy if tools: logger.info(f'Tools to install: {tools}') self.install_tools(tools) # Autodetect information from the target, after the Target is # initialized. Expensive computations are deferred so they will only be # computed when actually needed. rta_calib_res_dir = ArtifactPath.join(self._res_dir, 'rta_calib') os.makedirs(rta_calib_res_dir) self.plat_info.add_target_src(self, rta_calib_res_dir, deferred=lazy_platinfo, fallback=True) logger.info(f'Effective platform information:\n{self.plat_info}') @property @memoized def _uses_systemd(self): try: # Check if systemd is being used, according to: # https://www.freedesktop.org/software/systemd/man/sd_booted.html self.execute('test -d /run/systemd/system/', check_exit_code=True) except TargetStableError: return False else: return True def is_module_available(self, module): """ Check if the given devlib module is available. :returns: ``True`` if module is available, ``False`` otherwise. :param module: Devlib module to check. :type module: str .. note:: This will attempt to load the module if it's not loaded already, and bail out if it fails to load. """ if module not in _DEVLIB_AVAILABLE_MODULES: raise ValueError(f'"{module}" is not a devlib module') try: getattr(self, module) except Exception: # pylint: disable=broad-except return False else: return True def __getattr__(self, attr): """ Forward all non-overriden attributes/method accesses to the underlying :class:`devlib.target.Target`. .. note:: That will not forward special methods like __str__, since the interpreter bypasses __getattr__ when looking them up. .. note:: Devlib modules are loaded on demand when accessed. """ def get(): return getattr(self.target, attr) try: return get() except AttributeError: # Load the module on demand if attr in self._devlib_loadable_modules: self.get_logger().info(f'Loading target devlib module {attr}') self.target.install_module(attr) return get() # If it was not in the loadable list, it # has been excluded explicitly elif attr in _DEVLIB_AVAILABLE_MODULES: # pylint: disable=raise-missing-from raise AttributeError(f'Devlib target module {attr} was explicitly excluded, not loading it') # Something else that does not exist ... else: raise def __dir__(self): """ List our attributes plus the ones from the underlying target, and the devlib modules that could be loaded on-demand. """ attrs = set(super().__dir__()) | set(dir(self.target)) | self._devlib_loadable_modules return sorted(attrs) @classmethod def from_conf(cls, conf: TargetConf, res_dir: ArtifactPath = None, plat_info: PlatformInfo = None) -> 'Target': cls.get_logger().info(f'Target configuration:\n{conf}') kwargs = cls.conf_to_init_kwargs(conf) kwargs['res_dir'] = res_dir kwargs['plat_info'] = plat_info # Create a devlib Platform instance out of the configuration file devlib_platform_conf = conf['devlib']['platform'] devlib_platform_cls = resolve_dotted_name(devlib_platform_conf['class']) devlib_platform_kwargs = copy.copy(devlib_platform_conf.get('args', {})) # Hack for Gem5 devlib Platform, that requires a "host_output_dir" # argument computed at runtime. # Note: lisa.target.Gem5SimulationPlatformWrapper should be used instead # of the original one to benefit from mapping configuration if issubclass(devlib_platform_cls, Gem5SimulationPlatform): devlib_platform_kwargs.setdefault('host_output_dir', res_dir) # Actually build the devlib Platform object devlib_platform = devlib_platform_cls(**devlib_platform_kwargs) kwargs['devlib_platform'] = devlib_platform cls.check_init_param(**kwargs) return cls(**kwargs) @classmethod def from_default_conf(cls): """ Create a :class:`Target` from the YAML configuration file pointed by ``LISA_CONF`` environment variable. .. note:: Only load trusted YAML files as it can lead to abritrary code execution. """ path = os.environ['LISA_CONF'] return cls.from_one_conf(path) @classmethod def from_one_conf(cls, path): """ Create a :class:`Target` from a single YAML configuration file. This file will be used to provide a :class:`TargetConf` and :class:`lisa.platforms.platinfo.PlatformInfo` instances. .. note:: Only load trusted YAML files as it can lead to abritrary code execution. """ conf = TargetConf.from_yaml_map(path) try: plat_info = PlatformInfo.from_yaml_map(path) except Exception as e: # pylint: disable=broad-except cls.get_logger().warning(f'No platform information could be found: {e}') plat_info = None return cls.from_conf(conf=conf, plat_info=plat_info) @classmethod # Keep the signature without *args and **kwargs so that it's usable by exekall def from_cli(cls, argv=None, params=None) -> 'Target': """ Same as :meth:`from_custom_cli` without the custom parameters capabilities. :return: A connected :class:`Target` """ _, target = cls.from_custom_cli(argv=argv, params=params) return target @classmethod def from_custom_cli(cls, argv=None, params=None): """ Create a Target from command line arguments. :param argv: The list of arguments. ``sys.argv[1:]`` will be used if this is ``None``. :type argv: list(str) :param params: Dictionary of custom parameters to add to the parser. It is in the form of ``{param_name: {dict of ArgumentParser.add_argument() options}}``. :type params: dict(str, dict) :return: A tuple ``(args, target)`` .. note:: This method should not be relied upon to implement long-term scripts, it's more designed for quick scripting. """ parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description=textwrap.dedent( """ Connect to a target using the provided configuration in order to run a test. EXAMPLES --conf can point to a YAML target configuration file with all the necessary connection information: $ {script} --conf my_target.yml Alternatively, --kind must be set along the relevant credentials: $ {script} --kind linux --host 192.0.2.1 --username root --password <PASSWORD> In both cases, --conf can also contain a PlatformInfo YAML description. Note: only load trusted YAML files as it can lead to abritrary code execution. """.format( script=os.path.basename(sys.argv[0]) ))) parser.add_argument("--conf", '-c', help="Path to a TargetConf and PlatformInfo yaml file. Other options will override what is specified in the file." ) parser.add_argument("--kind", "-k", choices=["android", "linux", "host"], help="The kind of target to connect to.") device_group = parser.add_mutually_exclusive_group() device_group.add_argument("--device", "-d", help="The ADB ID of the target. Superseeds --host. Only applies to Android kind.") device_group.add_argument("--host", "-n", help="The hostname/IP of the target.") parser.add_argument("--username", "-u", help="Login username. Only applies to Linux kind.") parser.add_argument("--password", <PASSWORD>", help="Login password. Only applies to Linux kind.") parser.add_argument("--log-level", default='info', choices=('warning', 'info', 'debug'), help="Verbosity level of the logs.") parser.add_argument("--res-dir", "-o", help="Result directory of the created Target. If no directory is specified, a default location under $LISA_HOME will be used.") params = params or {} for param, settings in params.items(): parser.add_argument(f'--{param}', **settings) custom_params = {k.replace('-', '_') for k in params.keys()} # Options that are not a key in TargetConf must be listed here not_target_conf_opt = { 'platform_info', 'log_level', 'res_dir', 'conf', } not_target_conf_opt.update(custom_params) args = parser.parse_args(argv) setup_logging(level=args.log_level.upper()) target_conf = TargetConf() platform_info = None if args.conf: # Tentatively load a PlatformInfo from the conf file with contextlib.suppress(KeyError, ValueError): platform_info = PlatformInfo.from_yaml_map(args.conf) # Load the TargetConf from the file, and update it with command # line arguments try: conf = TargetConf.from_yaml_map(args.conf) except (KeyError, ValueError): pass else: target_conf.add_src(args.conf, conf) target_conf.add_src('command-line', { k: v for k, v in vars(args).items() if v is not None and k not in not_target_conf_opt }) # Some sanity check to get better error messages if 'kind' not in target_conf: parser.error('--conf with target configuration or any of the connection options is required') if args.kind == 'android': if ('host' not in target_conf) and ('device' not in target_conf): parser.error('--host or --device must be specified') if args.kind == 'linux': for required in ['host', 'username', 'password']: if required not in target_conf: parser.error(f'--{required} must be specified') custom_args = { param: value for param, value in vars(args).items() if param in custom_params } custom_args = argparse.Namespace(**custom_args) return custom_args, cls.from_conf(conf=target_conf, plat_info=platform_info, res_dir=args.res_dir) def _init_target(self, kind, name, workdir, device, host, port, username, password, keyfile, strict_host_check, use_scp, devlib_platform, wait_boot, wait_boot_timeout, ): """ Initialize the Target """ logger = self.get_logger() conn_settings = {} resolved_username = username or 'root' logger.debug(f'Setting up {kind} target...') # If the target is Android, we need just (eventually) the device if kind == 'android': devlib_target_cls = devlib.AndroidTarget # Workaround for ARM-software/devlib#225 workdir = workdir or '/data/local/tmp/devlib-target' if device: pass elif host: port = port or self.ADB_PORT_DEFAULT device = f'{host}:{port}' else: device = 'DEFAULT' conn_settings['device'] = device # If the username was explicitly set to "root", root the target as # early as possible conn_settings['adb_as_root'] = (username == 'root') elif kind == 'linux': devlib_target_cls = devlib.LinuxTarget conn_settings.update( username=resolved_username, port=port or self.SSH_PORT_DEFAULT, host=host, strict_host_check=True if strict_host_check is None else strict_host_check, use_scp=False if use_scp is None else use_scp, ) # Configure password or SSH keyfile if keyfile: conn_settings['keyfile'] = keyfile else: conn_settings['password'] = password elif kind == 'host': devlib_target_cls = devlib.LocalLinuxTarget # If we are given a password, assume we can use it as a sudo # password. conn_settings.update( unrooted=password is None, password=password, ) else: raise ValueError(f'Unsupported platform type {kind}') settings = '\n '.join( f' {key}: {val}' for key, val in conn_settings.items() if key != 'password' ) logger.debug(f'{kind} {name} target connection settings:\n {settings}') ######################################################################## # Devlib Platform configuration ######################################################################## if not devlib_platform: devlib_platform = devlib.platform.Platform() ######################################################################## # Create devlib Target object ######################################################################## target = devlib_target_cls( platform=devlib_platform, load_default_modules=False, connection_settings=conn_settings, working_directory=workdir, connect=False, ) target.connect(check_boot_completed=wait_boot, timeout=wait_boot_timeout) # None as username means adb root will be attempted, but failure will # not prevent from connecting to the target. if kind == 'android' and username is None: try: target.adb_root(enable=True) except Exception as e: # pylint: disable=broad-except logger.warning(f'"adb root" failed: {e}') logger.debug(f'Target info: {dict(abi=target.abi, cpuinfo=target.cpuinfo, workdir=target.working_directory)}') target.setup() logger.info(f"Connected to target {(name or '')}") return target def get_res_dir(self, name=None, append_time=True, symlink=True): """ Returns a directory managed by LISA to store results. Usage of that function is reserved to interactive use or simple scripts. Tests should not rely on that as the created folder will not be tracked by any external entity, which means the results will be lost in some automated environment. :param name: Name of the results directory :type name: str :param append_time: If True, the current datetime will be appended to the given ``name``. If ``name`` is None, the directory name will be the current datetime. :type append_time: bool :param symlink: Create a symlink named ``results_latest`` to the newly created results directory :type symlink: bool """ if isinstance(self._res_dir, ArtifactPath): root = self._res_dir.root relative = self._res_dir.relative else: root = self._res_dir relative = '' return self._get_res_dir( root=root, relative=relative, name=name, append_time=append_time, symlink=symlink, ) def _get_res_dir(self, root, relative, name, append_time, symlink): logger = self.get_logger() while True: time_str = datetime.now().strftime('%Y%m%d_%H%M%S.%f') if not name: name = time_str elif append_time: name = f"{name}-{time_str}" # If we were given an ArtifactPath with an existing root, we # preserve that root so it can be relocated as the caller wants it res_dir = ArtifactPath(root, os.path.join(relative, name)) # Compute base installation path logger.info(f'Creating result directory: {res_dir}') # It will fail if the folder already exists. In that case, # append_time should be used to ensure we get a unique name. try: os.makedirs(res_dir) break except FileExistsError: # If the time is used in the name, there is some hope that the # next time it will succeed if append_time: logger.info('Directory already exists, retrying ...') continue else: raise if symlink: res_lnk = os.path.join(LISA_HOME, LATEST_LINK) with contextlib.suppress(FileNotFoundError): os.remove(res_lnk) # There may be a race condition with another tool trying to create # the link with contextlib.suppress(FileExistsError): os.symlink(res_dir, res_lnk) return res_dir def install_tools(self, tools): """ Install tools additional to those specified in the test config 'tools' field :param tools: The list of names of tools to install :type tools: list(str) """ def bin_path(tool): binary = os.path.join(ASSETS_PATH, 'binaries', self.abi, tool) if not os.path.isfile(binary): binary = os.path.join(ASSETS_PATH, 'binaries', 'scripts', tool) return binary tools = set(tools) - self._installed_tools # TODO: compute the checksum of the tool + install location and keep # that in _installed_tools, so we are sure to be correct for tool in map(bin_path, tools): self.target.install(tool) self._installed_tools.add(tool) @contextlib.contextmanager def freeze_userspace(self): """ Context manager that lets you freeze the userspace. .. note:: A number of situations prevent from freezing anything. When that happens, a warning is logged but no exception is raised, so it's a best-effort approach. """ logger = self.get_logger() if not self.is_rooted: logger.warning('Could not freeze userspace: target is not rooted') cm = nullcontext elif not self.is_module_available('cgroups'): logger.warning('Could not freeze userspace: "cgroups" devlib module is necessary') cm = nullcontext else: controllers = [s.name for s in self.cgroups.list_subsystems()] if 'freezer' not in controllers: logger.warning('Could not freeze userspace: freezer cgroup controller not available on the target') cm = nullcontext else: exclude = copy.copy(self.CRITICAL_TASKS[self.target.os]) # Do not freeze the process in charge of de-freezing, otherwise we # will freeze to death and a machine hard reboot will be required if isinstance(self.target, devlib.LocalLinuxTarget): exclude.append(str(os.getpid())) @contextlib.contextmanager def cm(): logger.info(f"Freezing all tasks except: {','.join(exclude)}") try: yield self.cgroups.freeze(exclude) finally: logger.info('Un-freezing userspace tasks') self.cgroups.freeze(thaw=True) with cm() as x: yield x @contextlib.contextmanager def disable_idle_states(self): """ Context manager that lets you disable all idle states """ logger = self.get_logger() logger.info('Disabling idle states for all domains') try: cpuidle = self.cpuidle except AttributeError: logger.warning('Could not disable idle states, cpuidle devlib module is not loaded') cm = nullcontext else: @contextlib.contextmanager def cm(): try: for cpu in range(self.plat_info['cpus-count']): cpuidle.disable_all(cpu) yield finally: logger.info('Re-enabling idle states for all domains') for cpu in range(self.plat_info['cpus-count']): cpuidle.enable_all(cpu) with cm() as x: yield x def get_tags(self): return {'board': self.name} @classmethod def _make_remote_snippet(cls, name, code_str, module, kwargs, global_vars, out_tempfiles): # Inject the parameters inside the wrapper's globals so that it can # access them. It's harmless as they would shadow any global name # anyway, and it's restricted to the wrapper using eval() global_vars = { **global_vars, **kwargs, } # Treat the modules separately as they cannot be pickled modules = { name: mod for name, mod in global_vars.items() if isinstance(mod, ModuleType) } def can_include(f): return ( isinstance(f, FunctionType) and # Only allow inlining of functions defined in the same module so that: # 1. there is no name clash risk # 2. we don't inline the whole world, which could lead to a # number of problems that could appear after another module # is updated or so. We only inline local things that are in # direct control f.__module__ == module ) def add_func(f, name): # Disallow decorated functions since their definition depends on # external callable we cannot control if hasattr(f, '__wrapped__'): raise TypeError('Decorated functions cannot be called from remote functions') closure_vars = { name: val for var_dct in inspect.getclosurevars(f) if isinstance(var_dct, Mapping) for name, val in var_dct.items() } funcs[name] = (f, cls._get_code(f)[1]) for _name, _f in closure_vars.items(): if _f is not f and can_include(_f): add_func(_f, _name) modules.update( (name, mod) for name, mod in closure_vars.items() if isinstance(mod, ModuleType) ) funcs = {} for f_name, f in global_vars.items(): if can_include(f): add_func(f, f_name) code_str += '\n' + '\n'.join(map(itemgetter(1), funcs.values())) non_pickled = set(modules.keys()) | set(funcs.keys()) global_vars = { name: val for name, val in global_vars.items() if name not in non_pickled } if modules: modules = f"import {', '.join(sorted(modules))}" else: modules = '' script = textwrap.dedent(''' import pickle import sys def wrapper(): {modules} {code} return {f}({kwargs}) try: out = eval(wrapper.__code__, pickle.loads({globals})) except BaseException as e: out = e out_is_excep = True else: out_is_excep = False out = pickle.dumps(out) out_tempfile = {out_tempfiles}[1] if out_is_excep else {out_tempfiles}[0] with open(out_tempfile, 'wb') as f: f.write(out) ''').format( f=name, code=textwrap.dedent(code_str).replace('\n', '\n' + ' ' * 4), modules=modules, out_tempfiles=repr(out_tempfiles), globals=repr(pickle.dumps(global_vars)), kwargs=', '.join( f'{name}={name}' for name in kwargs.keys() ) ) return script @staticmethod def _get_code(f): lines, _ = inspect.getsourcelines(f) # Remove decorators, as they are either undefined or just were used to # feed the function to us lines = [ line for line in lines if not line.strip().startswith('@') ] code_str = textwrap.dedent(''.join(lines)) name = f.__name__ return (name, code_str) def execute_python(self, f, args, kwargs, **execute_kwargs): """ Executes the given Python function ``f`` with the provided positional and keyword arguments. The return value or any exception is pickled back and is returned/raised in the host caller. :Variable keyword arguments: Forwarded to :meth:`execute` that will spawn the Python interpreter on the target .. note:: Closure variables are supported, but mutating them will not be reflected in the caller's context. Also, functions that are referred to will be: * bundled in the script if it is defined in the same module * referred to by name, assuming it comes from a module that is installed on the target and that this module is in scope. If that is not the case, a :exc:`NameError` will be raised. .. attention:: Decorators are ignored and not applied. """ sig = inspect.signature(f) kwargs = sig.bind(*args, **kwargs).arguments closure_vars = inspect.getclosurevars(f) name, code_str = self._get_code(f) def mktemp(): return self.execute( f'mktemp -p {shlex.quote(self.working_directory)}' ).strip() def read_output(path): with tempfile.TemporaryDirectory() as d: name = os.path.join(d, 'out') self.pull(path, name) with open(name, 'rb') as f: return pickle.loads(f.read()) def parse_output(paths, err): val, excep = paths try: return read_output(val) # If the file is empty, we probably got an exception except EOFError: # pylint: disable=raise-missing-from try: excep = read_output(excep) # If we can't even read the exception, raise the initial one # from devlib except EOFError: raise err if err is not None else ValueError('No exception was raised or value returned by the function') else: raise excep out_tempfiles = tuple() try: out_tempfiles = (mktemp(), mktemp()) snippet = self._make_remote_snippet( name=name, code_str=code_str, module=f.__module__, kwargs=kwargs, global_vars={ **closure_vars.globals, **closure_vars.nonlocals, }, out_tempfiles=out_tempfiles ) cmd = ['python3', '-c', snippet] cmd = ' '.join(map(shlex.quote, cmd)) try: self.execute(cmd, **execute_kwargs) except Exception as e: # pylint: disable=broad-except err = e else: err = None return parse_output(out_tempfiles, err) finally: for path in out_tempfiles: self.remove(path) def remote_func(self, **kwargs): """ Decorates a given function to execute remotely using :meth:`execute_python`:: target = Target(...) @target.remote_func(timeout=42) def foo(x, y): return x + y # Execute the function on the target transparently val = foo(1, y=2) :Variable keyword arguments: Forwarded to :meth:`execute` that will spawn the Python interpreter on the target """ def wrapper_param(f): @functools.wraps(f) def wrapper(*f_args, **f_kwargs): return self.execute_python(f, f_args, f_kwargs, **kwargs) return wrapper return wrapper_param class Gem5SimulationPlatformWrapper(Gem5SimulationPlatform): def __init__(self, system, simulator, **kwargs): simulator_args = copy.copy(simulator.get('args', [])) system_platform = system['platform'] # Get gem5 binary arguments simulator_args.append('--listener-mode=on') simulator_args.append(system_platform['description']) simulator_args.extend(system_platform.get('args', [])) simulator_args.extend(( f"--kernel {system['kernel']}", f"--dtb {system['dtb']}", f"--disk-image {system['disk']}" )) diod_path = which('diod') if diod_path is None: raise RuntimeError('Failed to find "diod" on your host machine, check your installation or your PATH variable') # Setup virtio # Brackets are there to let the output dir be created automatically virtio_args = [ f'--which-diod={diod_path}', '--workload-automation-vio={}', ] simulator_args.extend(virtio_args) # Quote/escape arguments and build the command line gem5_args = ' '.join(shlex.quote(a) for a in simulator_args) super().__init__( gem5_args=gem5_args, gem5_bin=simulator['bin'], **kwargs ) # vim :set tabstop=4 shiftwidth=4 expandtab textwidth=80
[ 1, 396, 10937, 29928, 29990, 29899, 29931, 293, 1947, 29899, 12889, 29901, 13380, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29947, 29892, 9033, 29924, 28873, 322, 17737, 29560, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 366, 1122, 13, 29937, 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, 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, 399, 1806, 8187, 2692, 13, 29937, 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, 3166, 12865, 1053, 12865, 13, 5215, 2897, 13, 5215, 2897, 29889, 2084, 13, 5215, 3030, 1982, 13, 5215, 528, 2506, 13, 3166, 16250, 29889, 10736, 1053, 341, 20304, 13, 5215, 3509, 13, 5215, 10876, 13, 5215, 1852, 5510, 13, 5215, 1426, 6312, 13, 5215, 2090, 312, 8789, 13, 5215, 16096, 13, 5215, 5839, 280, 13, 5215, 5694, 1445, 13, 3166, 4072, 1053, 15591, 1542, 29892, 6680, 1542, 13, 3166, 5455, 1053, 2944, 657, 357, 13, 13, 5215, 2906, 1982, 13, 3166, 2906, 1982, 29889, 11739, 1053, 17157, 855, 519, 2392, 13, 3166, 2906, 1982, 29889, 13239, 29889, 29885, 10669, 1053, 607, 13, 3166, 2906, 1982, 29889, 12120, 29889, 17797, 29945, 1053, 15170, 29945, 8942, 2785, 21889, 13, 13, 3166, 301, 8069, 29889, 13239, 1053, 4522, 29531, 29892, 379, 680, 1252, 1416, 497, 1367, 29892, 8814, 29918, 29881, 15048, 29918, 978, 29892, 679, 29918, 1491, 13203, 29892, 1053, 29918, 497, 29918, 1491, 7576, 29892, 365, 3235, 29909, 29918, 17353, 29892, 390, 2890, 8647, 29918, 9464, 29892, 365, 3040, 1254, 29918, 23714, 29968, 29892, 6230, 29918, 21027, 29892, 3012, 7060, 2605, 29892, 1870, 4703, 29892, 1222, 1416, 497, 8176, 29531, 29892, 2626, 29877, 1891, 13, 3166, 301, 8069, 29889, 16596, 1053, 3339, 1660, 9375, 29918, 10145, 13, 3166, 301, 8069, 29889, 5527, 1053, 12545, 15329, 29903, 2214, 16376, 29892, 7670, 19617, 29892, 21597, 2558, 19617, 29892, 7488, 10108, 2558, 19617, 29892, 3991, 21115, 13, 3166, 301, 8069, 29889, 19206, 1053, 14213, 287, 1293, 13, 13, 3166, 301, 8069, 29889, 12120, 29879, 29889, 572, 271, 3888, 1053, 28096, 3401, 13, 13, 13, 1990, 25280, 2558, 19617, 29898, 2558, 19617, 1125, 13, 1678, 822, 5051, 29918, 4830, 29898, 1311, 29892, 325, 1125, 13, 4706, 736, 12801, 5630, 16299, 13, 13, 13, 29937, 8561, 1854, 599, 1014, 7576, 310, 2906, 1982, 29889, 5453, 526, 19673, 577, 278, 4413, 13, 29937, 526, 599, 2825, 1434, 591, 1051, 963, 13, 5215, 29918, 497, 29918, 1491, 7576, 29898, 3359, 1982, 29889, 5453, 29897, 13, 29918, 2287, 29963, 5265, 29933, 29918, 26612, 6227, 6181, 29918, 6720, 14849, 17101, 353, 426, 13, 1678, 1067, 29879, 29889, 978, 13, 1678, 363, 1067, 29879, 297, 679, 29918, 1491, 13203, 29898, 3359, 1982, 29889, 5453, 29889, 7355, 29897, 13, 1678, 565, 313, 13, 4706, 679, 5552, 29898, 25932, 29892, 525, 978, 742, 6213, 29897, 13, 4706, 396, 4688, 10585, 1018, 304, 4511, 304, 501, 8322, 322, 437, 1407, 13, 4706, 396, 7481, 29899, 14940, 2712, 591, 526, 451, 8852, 297, 13, 4706, 322, 679, 5552, 29898, 25932, 29892, 525, 19190, 1495, 2804, 525, 799, 368, 29915, 13, 1678, 1723, 13, 29913, 13, 13, 13, 1990, 17157, 16376, 29898, 15427, 15329, 29903, 2214, 16376, 29892, 379, 680, 1252, 1416, 497, 1367, 1125, 13, 1678, 9995, 13, 1678, 17157, 3957, 6055, 29889, 13, 13, 1678, 9333, 6611, 3342, 2400, 526, 6068, 29892, 411, 278, 2183, 6593, 322, 1134, 29901, 13, 13, 1678, 426, 13525, 29918, 8477, 29913, 13, 13, 1678, 530, 2777, 508, 367, 2825, 491, 5432, 584, 1990, 18078, 30022, 8667, 16376, 29952, 411, 263, 13, 1678, 8600, 29889, 450, 2246, 29899, 5563, 421, 5182, 29899, 5527, 29952, 1820, 338, 451, 4312, 1244, 29901, 13, 13, 1678, 6317, 775, 29899, 1271, 1057, 3017, 13, 13, 4706, 17157, 16376, 3319, 29912, 13, 9651, 525, 978, 2396, 525, 1357, 3377, 742, 13, 9651, 525, 3069, 2396, 29871, 29896, 29929, 29906, 29889, 29900, 29889, 29906, 29889, 29896, 29892, 13, 9651, 525, 14380, 2396, 525, 9389, 742, 13, 9651, 525, 6786, 2396, 525, 5431, 742, 13, 9651, 525, 5630, 2396, 12801, 25711, 17013, 29958, 742, 13, 4706, 500, 1800, 13, 13, 1678, 1394, 5136, 6703, 29892, 515, 263, 612, 23956, 5285, 934, 29901, 13, 13, 1678, 10576, 310, 3646, 29918, 5527, 29889, 21053, 29901, 13, 13, 1678, 6317, 16333, 2856, 1057, 29772, 5182, 29918, 5527, 29889, 21053, 13, 4706, 584, 11675, 29901, 612, 23956, 13, 13, 1678, 4761, 13, 13, 4706, 17157, 16376, 29889, 3166, 29918, 25162, 29918, 1958, 877, 5182, 29918, 5527, 29889, 21053, 1495, 13, 13, 13, 1678, 450, 1494, 4266, 612, 23956, 8282, 508, 367, 1304, 297, 278, 5285, 934, 29901, 13, 13, 1678, 6317, 775, 29899, 1271, 1057, 612, 23956, 13, 13, 4706, 3646, 29899, 5527, 29901, 13, 9651, 396, 376, 29991, 6272, 29901, 29966, 1853, 29958, 12524, 29963, 29918, 26865, 29918, 5813, 29908, 508, 367, 1304, 304, 3407, 385, 13, 9651, 396, 5177, 2286, 29889, 13, 9651, 1024, 29901, 1738, 6272, 29901, 710, 16437, 17011, 29918, 5813, 13, 9651, 2011, 29901, 1738, 6272, 29901, 524, 349, 8476, 13, 13, 1678, 6317, 4443, 1057, 9333, 2254, 9311, 287, 612, 23956, 2066, 408, 372, 508, 3275, 304, 633, 768, 29878, 653, 775, 13, 4706, 8225, 29889, 13, 13, 1678, 6317, 4443, 1057, 2193, 3829, 297, 263, 612, 23956, 934, 338, 6068, 322, 674, 664, 29901, 13, 13, 4706, 334, 934, 7953, 29889, 21053, 1057, 13, 13, 9651, 3646, 29899, 5527, 29901, 13, 18884, 1024, 29901, 590, 3377, 13, 13, 4706, 334, 934, 2594, 29889, 21053, 1057, 13, 13, 9651, 3646, 29899, 5527, 29901, 13, 18884, 1738, 2856, 7953, 29889, 21053, 13, 13, 4706, 910, 674, 1121, 297, 393, 3829, 607, 723, 12891, 367, 8340, 29892, 541, 13, 4706, 338, 16459, 408, 263, 4266, 1206, 1057, 13, 13, 9651, 3646, 29899, 5527, 29901, 13, 18884, 3646, 29899, 5527, 29901, 13, 462, 1678, 1024, 29901, 590, 3377, 13, 1678, 9995, 13, 13, 1678, 29486, 29965, 1783, 11499, 353, 7488, 10108, 2558, 19617, 877, 5182, 29899, 5527, 742, 525, 5182, 3957, 6055, 742, 313, 13, 4706, 7670, 19617, 877, 978, 742, 525, 28397, 1024, 29892, 3889, 29899, 689, 995, 871, 1304, 304, 953, 6596, 728, 10748, 742, 518, 710, 11724, 13, 4706, 7670, 19617, 877, 14380, 742, 525, 8667, 2924, 29889, 1815, 367, 376, 9389, 29908, 313, 15269, 29897, 470, 376, 2843, 29908, 313, 328, 29890, 29897, 742, 518, 710, 11724, 13, 13, 4706, 7670, 19617, 877, 3069, 742, 525, 8514, 978, 470, 5641, 3211, 310, 278, 3495, 742, 518, 710, 29892, 6213, 11724, 13, 4706, 7670, 19617, 877, 6786, 742, 525, 1799, 29950, 8952, 29889, 1551, 319, 4051, 12368, 29892, 376, 4632, 29908, 8952, 674, 3876, 594, 29890, 2501, 3646, 3957, 742, 518, 710, 29892, 6213, 11724, 13, 4706, 25280, 2558, 19617, 877, 5630, 742, 525, 1799, 29950, 4800, 742, 518, 710, 29892, 6213, 11724, 13, 4706, 7670, 19617, 877, 637, 742, 525, 1799, 29950, 470, 319, 4051, 1923, 2011, 742, 518, 524, 29892, 6213, 11724, 13, 4706, 7670, 19617, 877, 10141, 742, 525, 3035, 29933, 4742, 29889, 323, 6926, 9399, 663, 975, 376, 3069, 29908, 742, 518, 710, 29892, 6213, 11724, 13, 4706, 7670, 19617, 877, 1989, 1445, 742, 525, 1799, 29950, 2024, 1820, 934, 742, 518, 710, 29892, 6213, 11724, 13, 4706, 7670, 19617, 877, 710, 919, 29899, 3069, 29899, 3198, 742, 525, 6108, 27445, 304, 3767, 919, 8514, 2558, 5596, 292, 2984, 310, 4673, 1799, 29950, 742, 518, 11227, 29892, 6213, 11724, 13, 4706, 7670, 19617, 877, 1287, 3972, 742, 525, 20224, 3646, 664, 3972, 742, 518, 710, 11724, 13, 4706, 7670, 19617, 877, 8504, 742, 525, 1293, 310, 8492, 304, 2601, 373, 278, 3646, 742, 518, 24933, 287, 1293, 29961, 710, 5262, 511, 13, 4706, 7670, 19617, 877, 433, 1537, 29899, 572, 271, 3888, 742, 525, 29931, 834, 2354, 1120, 356, 312, 278, 7481, 2472, 304, 6210, 701, 278, 3957, 742, 518, 11227, 11724, 13, 4706, 21597, 2558, 19617, 877, 10685, 29899, 4777, 742, 525, 15716, 363, 278, 3646, 304, 8341, 6579, 292, 742, 313, 13, 9651, 7670, 19617, 877, 12007, 742, 525, 20701, 278, 6579, 1423, 742, 518, 11227, 11724, 13, 9651, 7670, 19617, 877, 15619, 742, 525, 10851, 310, 278, 6579, 1423, 742, 518, 524, 11724, 13, 4706, 1723, 511, 13, 4706, 21597, 2558, 19617, 877, 3359, 1982, 742, 525, 3359, 1982, 5285, 742, 313, 13, 9651, 396, 5293, 1426, 950, 1024, 310, 278, 28096, 6511, 445, 612, 23956, 5285, 13, 9651, 396, 304, 451, 671, 738, 3017, 29899, 14940, 612, 23956, 8282, 29892, 577, 17157, 16376, 2066, 508, 13, 9651, 396, 367, 21213, 322, 7371, 491, 738, 916, 4654, 29899, 22633, 775, 13, 9651, 21597, 2558, 19617, 877, 12120, 742, 525, 3359, 1982, 29889, 12120, 29889, 21889, 19481, 21992, 742, 313, 13, 18884, 7670, 19617, 877, 1990, 742, 525, 1170, 310, 278, 770, 304, 671, 742, 518, 710, 11724, 13, 18884, 7670, 19617, 877, 5085, 742, 525, 2558, 1742, 6273, 304, 2048, 278, 28096, 1203, 742, 518, 15845, 11724, 13, 9651, 1723, 511, 13, 9651, 7670, 19617, 877, 735, 13347, 29899, 7576, 742, 525, 1293, 310, 2906, 1982, 10585, 304, 334, 1333, 29930, 2254, 742, 518, 24933, 287, 1293, 29961, 710, 5262, 511, 13, 9651, 7670, 19617, 877, 1445, 29899, 29916, 571, 742, 525, 2283, 6782, 1158, 29889, 1815, 367, 376, 29879, 23102, 29908, 313, 4381, 29897, 470, 376, 1557, 29886, 1642, 313, 11730, 2854, 363, 10542, 22525, 29897, 742, 518, 24933, 287, 1293, 29961, 710, 5262, 511, 13, 13, 308, 876, 13, 268, 876, 13, 13, 1678, 22236, 29918, 29903, 10363, 353, 426, 13, 4706, 525, 3359, 1982, 2396, 426, 13, 9651, 525, 12120, 2396, 426, 13, 18884, 525, 1990, 2396, 525, 3359, 1982, 29889, 12120, 29889, 21889, 29915, 13, 9651, 500, 13, 4706, 500, 13, 1678, 500, 13, 13, 13, 1990, 17157, 29898, 3403, 29531, 29892, 379, 680, 1252, 1416, 497, 1367, 29892, 1222, 1416, 497, 8176, 29531, 29892, 12782, 21115, 1125, 13, 1678, 9995, 13, 1678, 399, 2390, 584, 1990, 18078, 3359, 1982, 29889, 5182, 29889, 8667, 29952, 304, 3867, 5684, 5680, 373, 2246, 310, 13, 1678, 372, 29889, 13, 13, 1678, 426, 2917, 21115, 29918, 7529, 29913, 13, 13, 1678, 584, 3207, 2906, 1982, 29918, 12120, 29901, 2799, 749, 310, 584, 1990, 18078, 3359, 1982, 29889, 12120, 29889, 21889, 29952, 304, 13, 4706, 671, 304, 2048, 278, 584, 1990, 18078, 3359, 1982, 29889, 5182, 29889, 8667, 29952, 13, 1678, 584, 1853, 2906, 1982, 29918, 12120, 29901, 2906, 1982, 29889, 12120, 29889, 21889, 13, 13, 1678, 584, 3207, 18870, 29918, 3888, 29901, 28096, 2472, 10959, 304, 445, 3646, 29892, 363, 278, 13, 4706, 23633, 310, 1404, 775, 29889, 13, 1678, 584, 1853, 18870, 29918, 3888, 29901, 301, 8069, 29889, 12120, 29879, 29889, 572, 271, 3888, 29889, 21889, 3401, 13, 13, 1678, 887, 817, 304, 3867, 278, 2472, 4312, 304, 4511, 304, 278, 13, 1678, 3646, 29889, 1152, 22343, 22525, 393, 2794, 376, 3069, 613, 376, 6786, 29908, 322, 13, 1678, 2845, 376, 5630, 29908, 470, 376, 1989, 1445, 1642, 2178, 916, 4235, 526, 13136, 565, 13, 1678, 278, 8018, 5680, 9455, 29915, 29873, 4312, 29889, 13, 13, 1678, 6317, 4443, 1057, 450, 28489, 310, 584, 1990, 18078, 3359, 1982, 29889, 5182, 29889, 8667, 29952, 338, 2309, 773, 13, 4706, 15259, 29892, 408, 15869, 304, 20328, 29889, 910, 6511, 2381, 20304, 278, 2684, 13, 4706, 770, 1304, 1090, 278, 298, 2092, 29892, 322, 4772, 29879, 4473, 292, 701, 411, 4954, 3359, 1982, 16159, 13, 4706, 7463, 5144, 29889, 13, 1678, 9995, 13, 13, 1678, 319, 4051, 29918, 15082, 29918, 23397, 353, 29871, 29945, 29945, 29945, 29945, 13, 1678, 22343, 29918, 15082, 29918, 23397, 353, 29871, 29906, 29906, 13, 13, 1678, 15600, 1806, 2965, 1964, 29918, 29911, 3289, 17557, 353, 426, 13, 4706, 525, 9389, 2396, 518, 13, 9651, 525, 2344, 742, 13, 9651, 396, 1334, 864, 304, 3889, 911, 4129, 5174, 349, 1367, 29871, 29896, 29892, 591, 1016, 29915, 29873, 864, 304, 1235, 13, 9651, 396, 10876, 4378, 287, 29899, 29926, 2905, 2741, 470, 1788, 29881, 29899, 3706, 948, 2252, 2734, 29889, 13, 9651, 525, 5205, 29881, 29961, 21583, 29962, 742, 13, 9651, 525, 2585, 375, 742, 13, 9651, 525, 845, 742, 13, 9651, 525, 15269, 742, 13, 9651, 525, 2288, 952, 1188, 29881, 742, 13, 9651, 525, 29926, 6448, 29906, 29915, 13, 4706, 21251, 13, 4706, 525, 2843, 2396, 518, 13, 9651, 525, 845, 742, 525, 328, 6448, 742, 13, 9651, 525, 28685, 742, 525, 27882, 742, 13, 9651, 396, 1334, 1016, 29915, 29873, 2869, 817, 445, 3414, 541, 373, 5087, 349, 15711, 372, 13229, 13, 9651, 396, 2609, 367, 14671, 2256, 29892, 577, 278, 274, 2972, 2106, 4947, 10771, 297, 383, 21661, 29999, 4214, 565, 591, 13, 9651, 396, 1018, 304, 3889, 911, 372, 29889, 13, 9651, 525, 721, 5156, 29899, 10599, 742, 13, 9651, 396, 13999, 2228, 411, 6324, 2558, 29929, 29953, 29900, 29892, 278, 7613, 674, 8095, 565, 445, 338, 14671, 2256, 13, 9651, 396, 363, 2086, 1472, 29889, 13, 9651, 525, 12344, 26169, 29881, 742, 13, 4706, 4514, 13, 1678, 500, 13, 1678, 9995, 13, 1678, 13343, 10417, 6570, 1024, 304, 1051, 310, 3414, 2983, 393, 591, 508, 29915, 29873, 21750, 304, 13, 1678, 3889, 911, 746, 773, 584, 29885, 621, 18078, 9021, 911, 29918, 7193, 3535, 1412, 13, 1678, 9995, 13, 13, 1678, 8707, 29943, 29918, 13875, 1799, 353, 17157, 16376, 13, 1678, 2672, 1806, 29918, 29968, 29956, 1718, 10749, 29918, 10818, 29918, 23827, 353, 426, 13, 4706, 525, 3359, 1982, 29918, 735, 13347, 29918, 7576, 2396, 6024, 3359, 1982, 742, 525, 735, 13347, 29899, 7576, 7464, 13, 4706, 525, 3359, 1982, 29918, 1445, 29918, 29916, 571, 2396, 6024, 3359, 1982, 742, 525, 1445, 29899, 29916, 571, 7464, 13, 4706, 525, 10685, 29918, 4777, 2396, 6024, 10685, 29899, 4777, 742, 525, 12007, 7464, 13, 4706, 525, 10685, 29918, 4777, 29918, 15619, 2396, 6024, 10685, 29899, 4777, 742, 525, 15619, 7464, 13, 1678, 500, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2924, 29892, 1024, 2433, 29966, 5464, 420, 29958, 742, 8492, 11759, 1402, 620, 29918, 3972, 29922, 8516, 29892, 13, 4706, 18870, 29918, 3888, 29922, 8516, 29892, 17366, 29918, 572, 271, 3888, 29922, 8824, 29892, 664, 3972, 29922, 8516, 29892, 4742, 29922, 8516, 29892, 3495, 29922, 8516, 29892, 2011, 29922, 8516, 29892, 13, 4706, 8952, 29922, 8516, 29892, 4800, 29922, 29966, 25711, 17013, 10202, 1820, 1445, 29922, 8516, 29892, 9406, 29918, 3069, 29918, 3198, 29922, 8516, 29892, 13, 4706, 2906, 1982, 29918, 12120, 29922, 8516, 29892, 2906, 1982, 29918, 735, 13347, 29918, 7576, 11759, 1402, 2906, 1982, 29918, 1445, 29918, 29916, 571, 29922, 8516, 29892, 13, 4706, 4480, 29918, 4777, 29922, 5574, 29892, 4480, 29918, 4777, 29918, 15619, 29922, 29896, 29900, 29892, 13, 268, 1125, 13, 4706, 396, 282, 2904, 524, 29901, 11262, 29922, 29881, 4600, 681, 29899, 4381, 29899, 1767, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 17927, 353, 1583, 29889, 657, 29918, 21707, 580, 13, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 13, 4706, 620, 29918, 3972, 353, 620, 29918, 3972, 565, 620, 29918, 3972, 1683, 1583, 3032, 657, 29918, 690, 29918, 3972, 29898, 13, 9651, 3876, 29922, 359, 29889, 2084, 29889, 7122, 29898, 29931, 3235, 29909, 29918, 17353, 29892, 390, 2890, 8647, 29918, 9464, 511, 13, 9651, 6198, 2433, 742, 13, 9651, 1024, 29922, 29888, 29915, 29912, 1311, 17255, 1990, 1649, 17255, 15380, 978, 1649, 7402, 29912, 1311, 29889, 978, 29913, 742, 13, 9651, 9773, 29918, 2230, 29922, 5574, 29892, 13, 9651, 9878, 828, 682, 29922, 5574, 13, 4706, 1723, 13, 13, 4706, 1583, 3032, 690, 29918, 3972, 353, 620, 29918, 3972, 13, 4706, 2897, 29889, 29885, 12535, 12935, 29898, 1311, 3032, 690, 29918, 3972, 29892, 1863, 29918, 554, 29922, 5574, 29897, 13, 4706, 565, 2897, 29889, 1761, 3972, 29898, 1311, 3032, 690, 29918, 3972, 1125, 13, 9651, 12020, 7865, 2392, 29898, 29888, 29915, 690, 29918, 3972, 1818, 367, 4069, 29901, 426, 1311, 3032, 690, 29918, 3972, 29913, 1495, 13, 13, 4706, 565, 18870, 29918, 3888, 338, 6213, 29901, 13, 9651, 18870, 29918, 3888, 353, 28096, 3401, 580, 13, 4706, 1683, 29901, 13, 9651, 396, 8561, 263, 3509, 310, 278, 28096, 3401, 577, 591, 1016, 29915, 29873, 6623, 278, 2441, 13, 9651, 396, 697, 591, 892, 4502, 746, 4417, 278, 3646, 2752, 304, 372, 13, 9651, 18870, 29918, 3888, 353, 3509, 29889, 8552, 29898, 572, 271, 29918, 3888, 29897, 13, 9651, 17927, 29889, 3888, 29898, 29888, 29915, 2659, 29899, 12119, 7481, 2472, 3583, 29876, 29912, 572, 271, 29918, 3888, 29913, 1495, 13, 13, 4706, 1583, 29889, 572, 271, 29918, 3888, 353, 18870, 29918, 3888, 13, 13, 4706, 396, 11190, 278, 7613, 1024, 515, 278, 3646, 5285, 577, 372, 7415, 13, 4706, 396, 3625, 363, 2678, 1663, 27988, 29889, 2193, 7613, 1024, 338, 11149, 3889, 883, 13, 4706, 396, 322, 694, 2702, 995, 881, 367, 3806, 363, 263, 2183, 2924, 310, 7613, 13, 4706, 396, 313, 29875, 29889, 29872, 29889, 263, 8378, 29877, 7613, 1795, 367, 4257, 376, 5431, 29899, 1646, 29899, 29926, 9447, 29899, 265, 29899, 1357, 29899, 2783, 29895, 1159, 13, 4706, 565, 1024, 29901, 13, 9651, 1583, 29889, 572, 271, 29918, 3888, 29889, 1202, 29918, 4351, 877, 5182, 29899, 5527, 742, 9657, 29898, 978, 29922, 978, 876, 13, 13, 4706, 396, 5953, 837, 457, 934, 6782, 1158, 29889, 15447, 263, 791, 29875, 519, 3987, 13, 4706, 396, 526, 525, 29879, 23102, 29915, 322, 525, 1557, 29886, 742, 21274, 304, 269, 23102, 29889, 13, 4706, 565, 2906, 1982, 29918, 1445, 29918, 29916, 571, 322, 2906, 1982, 29918, 1445, 29918, 29916, 571, 451, 297, 6702, 1557, 29886, 742, 525, 29879, 23102, 29374, 13, 9651, 12020, 7865, 2392, 29898, 29888, 29915, 13919, 934, 6782, 1158, 29901, 426, 3359, 1982, 29918, 1445, 29918, 29916, 571, 29913, 1495, 13, 4706, 671, 29918, 1557, 29886, 353, 2906, 1982, 29918, 1445, 29918, 29916, 571, 1275, 525, 1557, 29886, 29915, 13, 13, 4706, 1583, 3032, 25537, 29918, 8504, 353, 731, 580, 13, 4706, 1583, 29889, 5182, 353, 1583, 3032, 2344, 29918, 5182, 29898, 13, 9651, 2924, 29922, 14380, 29892, 13, 9651, 1024, 29922, 978, 29892, 13, 9651, 664, 3972, 29922, 1287, 3972, 29892, 13, 9651, 4742, 29922, 10141, 29892, 13, 9651, 3495, 29922, 3069, 29892, 13, 9651, 2011, 29922, 637, 29892, 13, 9651, 8952, 29922, 6786, 29892, 13, 9651, 4800, 29922, 5630, 29892, 13, 9651, 1820, 1445, 29922, 1989, 1445, 29892, 13, 9651, 9406, 29918, 3069, 29918, 3198, 29922, 710, 919, 29918, 3069, 29918, 3198, 29892, 13, 9651, 671, 29918, 1557, 29886, 29922, 1509, 29918, 1557, 29886, 29892, 13, 9651, 2906, 1982, 29918, 12120, 29922, 3359, 1982, 29918, 12120, 29892, 13, 9651, 4480, 29918, 4777, 29922, 10685, 29918, 4777, 29892, 13, 9651, 4480, 29918, 4777, 29918, 15619, 29922, 10685, 29918, 4777, 29918, 15619, 29892, 13, 4706, 1723, 13, 13, 4706, 2906, 1982, 29918, 735, 13347, 29918, 7576, 353, 731, 29898, 3359, 1982, 29918, 735, 13347, 29918, 7576, 29897, 13, 4706, 396, 8221, 29892, 508, 29915, 29873, 1235, 366, 437, 393, 29889, 11946, 292, 411, 274, 13155, 297, 263, 1788, 29881, 13, 4706, 396, 1788, 338, 5051, 4319, 2969, 29889, 13, 4706, 565, 1583, 3032, 6394, 29918, 5205, 29881, 29901, 13, 9651, 17927, 29889, 27392, 877, 12984, 451, 2254, 274, 13155, 2906, 1982, 3883, 29901, 3646, 338, 773, 1788, 29881, 29892, 607, 2307, 3913, 274, 13155, 1495, 13, 9651, 2906, 1982, 29918, 735, 13347, 29918, 7576, 29889, 1202, 877, 29883, 13155, 1495, 13, 13, 4706, 1583, 3032, 3359, 1982, 29918, 1359, 519, 29918, 7576, 353, 903, 2287, 29963, 5265, 29933, 29918, 26612, 6227, 6181, 29918, 6720, 14849, 17101, 448, 2906, 1982, 29918, 735, 13347, 29918, 7576, 13, 13, 4706, 396, 25455, 7581, 8492, 304, 7246, 13, 4706, 565, 8492, 29901, 13, 9651, 17927, 29889, 3888, 29898, 29888, 29915, 24183, 304, 2601, 29901, 426, 8504, 29913, 1495, 13, 9651, 1583, 29889, 6252, 29918, 8504, 29898, 8504, 29897, 13, 13, 4706, 396, 5202, 397, 300, 522, 2472, 515, 278, 3646, 29892, 1156, 278, 17157, 338, 13, 4706, 396, 16601, 29889, 12027, 6270, 2912, 800, 526, 316, 14373, 577, 896, 674, 871, 367, 13, 4706, 396, 15712, 746, 2869, 4312, 29889, 13, 13, 4706, 364, 941, 29918, 1052, 747, 29918, 690, 29918, 3972, 353, 3012, 7060, 2605, 29889, 7122, 29898, 1311, 3032, 690, 29918, 3972, 29892, 525, 29878, 941, 29918, 1052, 747, 1495, 13, 4706, 2897, 29889, 29885, 12535, 12935, 29898, 29878, 941, 29918, 1052, 747, 29918, 690, 29918, 3972, 29897, 13, 4706, 1583, 29889, 572, 271, 29918, 3888, 29889, 1202, 29918, 5182, 29918, 4351, 29898, 1311, 29892, 364, 941, 29918, 1052, 747, 29918, 690, 29918, 3972, 29892, 316, 14373, 29922, 433, 1537, 29918, 572, 271, 3888, 29892, 6416, 1627, 29922, 5574, 29897, 13, 13, 4706, 17927, 29889, 3888, 29898, 29888, 29915, 13971, 573, 7481, 2472, 3583, 29876, 29912, 1311, 29889, 572, 271, 29918, 3888, 29913, 1495, 13, 13, 1678, 732, 6799, 13, 1678, 732, 6954, 29877, 1891, 13, 1678, 822, 903, 6394, 29918, 5205, 29881, 29898, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 396, 5399, 565, 1788, 29881, 338, 1641, 1304, 29892, 5034, 304, 29901, 13, 9651, 396, 2045, 597, 1636, 29889, 10745, 11696, 6883, 29889, 990, 29914, 20415, 29914, 5205, 29881, 29914, 1171, 29914, 4928, 29918, 4777, 287, 29889, 1420, 13, 9651, 1583, 29889, 7978, 877, 1688, 448, 29881, 847, 3389, 29914, 5205, 29881, 29914, 5205, 29914, 742, 1423, 29918, 13322, 29918, 401, 29922, 5574, 29897, 13, 4706, 5174, 17157, 855, 519, 2392, 29901, 13, 9651, 736, 7700, 13, 4706, 1683, 29901, 13, 9651, 736, 5852, 13, 13, 1678, 822, 338, 29918, 5453, 29918, 16515, 29898, 1311, 29892, 3883, 1125, 13, 4706, 9995, 13, 4706, 5399, 565, 278, 2183, 2906, 1982, 3883, 338, 3625, 29889, 13, 13, 4706, 584, 18280, 29901, 4954, 5574, 16159, 565, 3883, 338, 3625, 29892, 4954, 8824, 16159, 6467, 29889, 13, 13, 4706, 584, 3207, 3883, 29901, 9481, 1982, 3883, 304, 1423, 29889, 13, 4706, 584, 1853, 3883, 29901, 851, 13, 13, 4706, 6317, 4443, 1057, 910, 674, 4218, 304, 2254, 278, 3883, 565, 372, 29915, 29879, 451, 7500, 13, 9651, 2307, 29892, 322, 289, 737, 714, 565, 372, 8465, 304, 2254, 29889, 13, 4706, 9995, 13, 4706, 565, 3883, 451, 297, 903, 2287, 29963, 5265, 29933, 29918, 26612, 6227, 6181, 29918, 6720, 14849, 17101, 29901, 13, 9651, 12020, 7865, 2392, 29898, 29888, 11838, 29912, 5453, 5038, 338, 451, 263, 2906, 1982, 3883, 1495, 13, 13, 4706, 1018, 29901, 13, 9651, 679, 5552, 29898, 1311, 29892, 3883, 29897, 13, 4706, 5174, 8960, 29901, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 9651, 736, 7700, 13, 4706, 1683, 29901, 13, 9651, 736, 5852, 13, 13, 1678, 822, 4770, 657, 5552, 12035, 1311, 29892, 12421, 1125, 13, 4706, 9995, 13, 4706, 1152, 1328, 599, 1661, 29899, 957, 2429, 264, 8393, 29914, 5696, 2130, 267, 304, 278, 14407, 13, 4706, 584, 1990, 18078, 3359, 1982, 29889, 5182, 29889, 8667, 1412, 13, 13, 4706, 6317, 4443, 1057, 2193, 674, 451, 6375, 4266, 3519, 763, 4770, 710, 1649, 29892, 1951, 278, 13, 9651, 26997, 491, 3364, 267, 4770, 657, 5552, 1649, 746, 3063, 963, 701, 29889, 13, 13, 4706, 6317, 4443, 1057, 9481, 1982, 10585, 526, 7500, 373, 9667, 746, 20592, 29889, 13, 4706, 9995, 13, 13, 4706, 822, 679, 7295, 13, 9651, 736, 679, 5552, 29898, 1311, 29889, 5182, 29892, 12421, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 736, 679, 580, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 396, 16012, 278, 3883, 373, 9667, 13, 9651, 565, 12421, 297, 1583, 3032, 3359, 1982, 29918, 1359, 519, 29918, 7576, 29901, 13, 18884, 1583, 29889, 657, 29918, 21707, 2141, 3888, 29898, 29888, 29915, 23456, 3646, 2906, 1982, 3883, 426, 5552, 29913, 1495, 13, 18884, 1583, 29889, 5182, 29889, 6252, 29918, 5453, 29898, 5552, 29897, 13, 18884, 736, 679, 580, 13, 9651, 396, 960, 372, 471, 451, 297, 278, 2254, 519, 1051, 29892, 372, 13, 9651, 396, 756, 1063, 429, 13347, 9479, 13, 9651, 25342, 12421, 297, 903, 2287, 29963, 5265, 29933, 29918, 26612, 6227, 6181, 29918, 6720, 14849, 17101, 29901, 13, 18884, 396, 282, 2904, 524, 29901, 11262, 29922, 22692, 29899, 27259, 29899, 3166, 13, 18884, 12020, 23833, 2392, 29898, 29888, 29915, 16618, 1982, 3646, 3883, 426, 5552, 29913, 471, 9479, 429, 13347, 29892, 451, 8363, 372, 1495, 13, 9651, 396, 12538, 1683, 393, 947, 451, 1863, 2023, 13, 9651, 1683, 29901, 13, 18884, 12020, 13, 13, 1678, 822, 4770, 3972, 12035, 1311, 1125, 13, 4706, 9995, 13, 4706, 2391, 1749, 8393, 2298, 278, 6743, 515, 278, 14407, 3646, 29892, 322, 278, 13, 4706, 2906, 1982, 10585, 393, 1033, 367, 7500, 373, 29899, 2310, 392, 29889, 13, 4706, 9995, 13, 4706, 12421, 29879, 353, 731, 29898, 9136, 2141, 1649, 3972, 1649, 3101, 891, 731, 29898, 3972, 29898, 1311, 29889, 5182, 876, 891, 1583, 3032, 3359, 1982, 29918, 1359, 519, 29918, 7576, 13, 4706, 736, 12705, 29898, 5552, 29879, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 5527, 29898, 25932, 29892, 1970, 29901, 17157, 16376, 29892, 620, 29918, 3972, 29901, 3012, 7060, 2605, 353, 6213, 29892, 18870, 29918, 3888, 29901, 28096, 3401, 353, 6213, 29897, 1599, 525, 8667, 2396, 13, 4706, 1067, 29879, 29889, 657, 29918, 21707, 2141, 3888, 29898, 29888, 29915, 8667, 5285, 3583, 29876, 29912, 5527, 29913, 1495, 13, 4706, 9049, 5085, 353, 1067, 29879, 29889, 5527, 29918, 517, 29918, 2344, 29918, 19290, 29898, 5527, 29897, 13, 4706, 9049, 5085, 1839, 690, 29918, 3972, 2033, 353, 620, 29918, 3972, 13, 4706, 9049, 5085, 1839, 572, 271, 29918, 3888, 2033, 353, 18870, 29918, 3888, 13, 13, 4706, 396, 6204, 263, 2906, 1982, 28096, 2777, 714, 310, 278, 5285, 934, 13, 4706, 2906, 1982, 29918, 12120, 29918, 5527, 353, 1970, 1839, 3359, 1982, 16215, 12120, 2033, 13, 13, 4706, 2906, 1982, 29918, 12120, 29918, 25932, 353, 8814, 29918, 29881, 15048, 29918, 978, 29898, 3359, 1982, 29918, 12120, 29918, 5527, 1839, 1990, 11287, 13, 4706, 2906, 1982, 29918, 12120, 29918, 19290, 353, 3509, 29889, 8552, 29898, 3359, 1982, 29918, 12120, 29918, 5527, 29889, 657, 877, 5085, 742, 6571, 876, 13, 13, 4706, 396, 379, 547, 363, 15170, 29945, 2906, 1982, 28096, 29892, 393, 6858, 263, 376, 3069, 29918, 4905, 29918, 3972, 29908, 13, 4706, 396, 2980, 15712, 472, 10073, 29889, 13, 4706, 396, 3940, 29901, 301, 8069, 29889, 5182, 29889, 29954, 331, 29945, 8942, 2785, 21889, 15646, 881, 367, 1304, 2012, 13, 4706, 396, 310, 278, 2441, 697, 304, 14169, 515, 10417, 5285, 13, 4706, 565, 338, 1491, 1990, 29898, 3359, 1982, 29918, 12120, 29918, 25932, 29892, 15170, 29945, 8942, 2785, 21889, 1125, 13, 9651, 2906, 1982, 29918, 12120, 29918, 19290, 29889, 842, 4381, 877, 3069, 29918, 4905, 29918, 3972, 742, 620, 29918, 3972, 29897, 13, 13, 4706, 396, 12823, 2048, 278, 2906, 1982, 28096, 1203, 13, 4706, 2906, 1982, 29918, 12120, 353, 2906, 1982, 29918, 12120, 29918, 25932, 29898, 1068, 3359, 1982, 29918, 12120, 29918, 19290, 29897, 13, 4706, 9049, 5085, 1839, 3359, 1982, 29918, 12120, 2033, 353, 2906, 1982, 29918, 12120, 13, 13, 4706, 1067, 29879, 29889, 3198, 29918, 2344, 29918, 3207, 29898, 1068, 19290, 29897, 13, 4706, 736, 1067, 29879, 29898, 1068, 19290, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 4381, 29918, 5527, 29898, 25932, 1125, 13, 4706, 9995, 13, 4706, 6204, 263, 584, 1990, 18078, 8667, 29952, 515, 278, 612, 23956, 5285, 934, 11520, 491, 13, 4706, 4954, 29931, 3235, 29909, 29918, 6007, 29943, 16159, 5177, 2286, 29889, 13, 13, 4706, 6317, 4443, 1057, 9333, 2254, 9311, 287, 612, 23956, 2066, 408, 372, 508, 3275, 304, 633, 768, 29878, 653, 775, 13, 9651, 8225, 29889, 13, 4706, 9995, 13, 4706, 2224, 353, 2897, 29889, 21813, 1839, 29931, 3235, 29909, 29918, 6007, 29943, 2033, 13, 4706, 736, 1067, 29879, 29889, 3166, 29918, 650, 29918, 5527, 29898, 2084, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 650, 29918, 5527, 29898, 25932, 29892, 2224, 1125, 13, 4706, 9995, 13, 4706, 6204, 263, 584, 1990, 18078, 8667, 29952, 515, 263, 2323, 612, 23956, 5285, 934, 29889, 13, 13, 4706, 910, 934, 674, 367, 1304, 304, 3867, 263, 584, 1990, 18078, 8667, 16376, 29952, 322, 13, 4706, 584, 1990, 18078, 29880, 8069, 29889, 12120, 29879, 29889, 572, 271, 3888, 29889, 21889, 3401, 29952, 8871, 29889, 13, 13, 4706, 6317, 4443, 1057, 9333, 2254, 9311, 287, 612, 23956, 2066, 408, 372, 508, 3275, 304, 633, 768, 29878, 653, 775, 13, 9651, 8225, 29889, 13, 4706, 9995, 13, 4706, 1970, 353, 17157, 16376, 29889, 3166, 29918, 25162, 29918, 1958, 29898, 2084, 29897, 13, 4706, 1018, 29901, 13, 9651, 18870, 29918, 3888, 353, 28096, 3401, 29889, 3166, 29918, 25162, 29918, 1958, 29898, 2084, 29897, 13, 4706, 5174, 8960, 408, 321, 29901, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 9651, 1067, 29879, 29889, 657, 29918, 21707, 2141, 27392, 29898, 29888, 29915, 3782, 7481, 2472, 1033, 367, 1476, 29901, 426, 29872, 29913, 1495, 13, 9651, 18870, 29918, 3888, 353, 6213, 13, 4706, 736, 1067, 29879, 29889, 3166, 29918, 5527, 29898, 5527, 29922, 5527, 29892, 18870, 29918, 3888, 29922, 572, 271, 29918, 3888, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 396, 19152, 278, 12608, 1728, 334, 5085, 322, 3579, 19290, 577, 393, 372, 29915, 29879, 502, 519, 491, 429, 1416, 497, 13, 1678, 822, 515, 29918, 11303, 29898, 25932, 29892, 1852, 29894, 29922, 8516, 29892, 8636, 29922, 8516, 29897, 1599, 525, 8667, 2396, 13, 4706, 9995, 13, 4706, 19491, 408, 584, 29885, 621, 18078, 3166, 29918, 6341, 29918, 11303, 29952, 1728, 278, 2888, 4128, 13, 4706, 27108, 29889, 13, 13, 4706, 584, 2457, 29901, 319, 6631, 584, 1990, 18078, 8667, 29952, 13, 4706, 9995, 13, 4706, 17117, 3646, 353, 1067, 29879, 29889, 3166, 29918, 6341, 29918, 11303, 29898, 19218, 29922, 19218, 29892, 8636, 29922, 7529, 29897, 13, 4706, 736, 3646, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 6341, 29918, 11303, 29898, 25932, 29892, 1852, 29894, 29922, 8516, 29892, 8636, 29922, 8516, 1125, 13, 4706, 9995, 13, 4706, 6204, 263, 17157, 515, 1899, 1196, 6273, 29889, 13, 13, 4706, 584, 3207, 1852, 29894, 29901, 450, 1051, 310, 6273, 29889, 4954, 9675, 29889, 19218, 29961, 29896, 29901, 7961, 29952, 674, 367, 1304, 565, 13, 3986, 445, 338, 4954, 8516, 29952, 1412, 13, 4706, 584, 1853, 1852, 29894, 29901, 1051, 29898, 710, 29897, 13, 13, 4706, 584, 3207, 8636, 29901, 13343, 310, 2888, 4128, 304, 788, 304, 278, 13812, 29889, 739, 13, 9651, 338, 297, 278, 883, 310, 13, 9651, 4954, 29912, 3207, 29918, 978, 29901, 426, 8977, 310, 23125, 11726, 29889, 1202, 29918, 23516, 580, 3987, 930, 29952, 1412, 13, 4706, 584, 1853, 8636, 29901, 9657, 29898, 710, 29892, 9657, 29897, 13, 13, 4706, 584, 2457, 29901, 319, 18761, 4954, 29898, 5085, 29892, 3646, 3569, 29952, 13, 13, 4706, 6317, 4443, 1057, 910, 1158, 881, 451, 367, 337, 2957, 2501, 304, 2334, 1472, 29899, 8489, 13, 9651, 12078, 29892, 372, 29915, 29879, 901, 8688, 363, 4996, 2471, 292, 29889, 13, 4706, 9995, 13, 4706, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 13, 9651, 883, 2620, 29918, 1990, 29922, 1191, 5510, 29889, 22131, 9868, 29648, 18522, 29892, 13, 9651, 6139, 29922, 726, 6312, 29889, 7176, 296, 29898, 13, 18884, 9995, 13, 18884, 14971, 304, 263, 3646, 773, 278, 4944, 5285, 297, 1797, 13, 18884, 304, 1065, 263, 1243, 29889, 13, 13, 18884, 8528, 19297, 17101, 13, 13, 18884, 1192, 5527, 508, 1298, 304, 263, 612, 23956, 3646, 5285, 934, 13, 18884, 411, 599, 278, 5181, 3957, 2472, 29901, 13, 18884, 395, 426, 2154, 29913, 1192, 5527, 590, 29918, 5182, 29889, 21053, 13, 13, 18884, 20360, 29892, 1192, 14380, 1818, 367, 731, 3412, 278, 8018, 16140, 29901, 13, 18884, 395, 426, 2154, 29913, 1192, 14380, 10542, 1192, 3069, 29871, 29896, 29929, 29906, 29889, 29900, 29889, 29906, 29889, 29896, 1192, 6786, 3876, 1192, 5630, 529, 25711, 17013, 29958, 13, 13, 18884, 512, 1716, 4251, 29892, 1192, 5527, 508, 884, 1712, 263, 28096, 3401, 612, 23956, 6139, 29889, 13, 13, 18884, 3940, 29901, 871, 2254, 9311, 287, 612, 23956, 2066, 408, 372, 508, 3275, 304, 633, 768, 29878, 653, 13, 18884, 775, 8225, 29889, 13, 18884, 5124, 1642, 4830, 29898, 13, 462, 1678, 2471, 29922, 359, 29889, 2084, 29889, 6500, 3871, 29898, 9675, 29889, 19218, 29961, 29900, 2314, 13, 462, 4961, 13, 13, 4706, 13812, 29889, 1202, 29918, 23516, 703, 489, 5527, 613, 17411, 29883, 742, 13, 9651, 1371, 543, 2605, 304, 263, 17157, 16376, 322, 28096, 3401, 343, 8807, 934, 29889, 5901, 3987, 674, 5712, 825, 338, 6790, 297, 278, 934, 1213, 13, 4706, 1723, 13, 13, 4706, 13812, 29889, 1202, 29918, 23516, 703, 489, 14380, 613, 11663, 29895, 613, 13, 9651, 19995, 29922, 3366, 2843, 613, 376, 9389, 613, 376, 3069, 12436, 13, 9651, 1371, 543, 1576, 2924, 310, 3646, 304, 4511, 304, 23157, 13, 13, 4706, 4742, 29918, 2972, 353, 13812, 29889, 1202, 29918, 6149, 1474, 29918, 735, 7009, 573, 29918, 2972, 580, 13, 4706, 4742, 29918, 2972, 29889, 1202, 29918, 23516, 703, 489, 10141, 613, 11663, 29881, 613, 13, 462, 9651, 1371, 543, 1576, 319, 4051, 3553, 310, 278, 3646, 29889, 5670, 344, 5779, 1192, 3069, 29889, 9333, 16058, 304, 5669, 2924, 23157, 13, 4706, 4742, 29918, 2972, 29889, 1202, 29918, 23516, 703, 489, 3069, 613, 11663, 29876, 613, 13, 462, 9651, 1371, 543, 1576, 3495, 978, 29914, 5690, 310, 278, 3646, 23157, 13, 13, 4706, 13812, 29889, 1202, 29918, 23516, 703, 489, 6786, 613, 11663, 29884, 613, 13, 462, 9651, 1371, 543, 11049, 8952, 29889, 9333, 16058, 304, 8074, 2924, 23157, 13, 4706, 13812, 29889, 1202, 29918, 23516, 703, 489, 5630, 613, 529, 25711, 17013, 28341, 13, 462, 9651, 1371, 543, 11049, 4800, 29889, 9333, 16058, 304, 8074, 2924, 23157, 13, 13, 4706, 13812, 29889, 1202, 29918, 23516, 703, 489, 1188, 29899, 5563, 613, 13, 462, 9651, 2322, 2433, 3888, 742, 13, 462, 9651, 19995, 29922, 877, 27392, 742, 525, 3888, 742, 525, 8382, 5477, 13, 462, 9651, 1371, 543, 6565, 27737, 537, 3233, 310, 278, 10748, 23157, 13, 13, 4706, 13812, 29889, 1202, 29918, 23516, 703, 489, 690, 29899, 3972, 613, 11663, 29877, 613, 13, 462, 9651, 1371, 543, 3591, 3884, 310, 278, 2825, 17157, 29889, 960, 694, 3884, 338, 6790, 29892, 263, 2322, 4423, 1090, 395, 29931, 3235, 29909, 29918, 17353, 674, 367, 1304, 23157, 13, 13, 4706, 8636, 353, 8636, 470, 6571, 13, 4706, 363, 1828, 29892, 6055, 297, 8636, 29889, 7076, 7295, 13, 9651, 13812, 29889, 1202, 29918, 23516, 29898, 29888, 29915, 489, 29912, 3207, 29913, 742, 3579, 11027, 29897, 13, 4706, 2888, 29918, 7529, 353, 426, 29895, 29889, 6506, 877, 29899, 742, 22868, 1495, 363, 413, 297, 8636, 29889, 8149, 28296, 13, 13, 4706, 396, 25186, 393, 526, 451, 263, 1820, 297, 17157, 16376, 1818, 367, 9904, 1244, 13, 4706, 451, 29918, 5182, 29918, 5527, 29918, 3670, 353, 426, 13, 9651, 525, 12120, 29918, 3888, 742, 525, 1188, 29918, 5563, 742, 525, 690, 29918, 3972, 742, 525, 5527, 742, 13, 4706, 500, 13, 4706, 451, 29918, 5182, 29918, 5527, 29918, 3670, 29889, 5504, 29898, 6341, 29918, 7529, 29897, 13, 13, 4706, 6389, 353, 13812, 29889, 5510, 29918, 5085, 29898, 19218, 29897, 13, 4706, 6230, 29918, 21027, 29898, 5563, 29922, 5085, 29889, 1188, 29918, 5563, 29889, 21064, 3101, 13, 13, 4706, 3646, 29918, 5527, 353, 17157, 16376, 580, 13, 4706, 7481, 29918, 3888, 353, 6213, 13, 13, 4706, 565, 6389, 29889, 5527, 29901, 13, 9651, 396, 323, 296, 6703, 2254, 263, 28096, 3401, 515, 278, 1970, 934, 13, 9651, 411, 3030, 1982, 29889, 19303, 1253, 29898, 2558, 2392, 29892, 7865, 2392, 1125, 13, 18884, 7481, 29918, 3888, 353, 28096, 3401, 29889, 3166, 29918, 25162, 29918, 1958, 29898, 5085, 29889, 5527, 29897, 13, 13, 9651, 396, 16012, 278, 17157, 16376, 515, 278, 934, 29892, 322, 2767, 372, 411, 1899, 13, 9651, 396, 1196, 6273, 13, 9651, 1018, 29901, 13, 18884, 1970, 353, 17157, 16376, 29889, 3166, 29918, 25162, 29918, 1958, 29898, 5085, 29889, 5527, 29897, 13, 9651, 5174, 313, 2558, 2392, 29892, 7865, 2392, 1125, 13, 18884, 1209, 13, 9651, 1683, 29901, 13, 18884, 3646, 29918, 5527, 29889, 1202, 29918, 4351, 29898, 5085, 29889, 5527, 29892, 1970, 29897, 13, 13, 4706, 3646, 29918, 5527, 29889, 1202, 29918, 4351, 877, 6519, 29899, 1220, 742, 426, 13, 9651, 413, 29901, 325, 363, 413, 29892, 325, 297, 24987, 29898, 5085, 467, 7076, 580, 13, 9651, 565, 325, 338, 451, 6213, 322, 413, 451, 297, 451, 29918, 5182, 29918, 5527, 29918, 3670, 13, 4706, 5615, 13, 13, 4706, 396, 3834, 9753, 537, 1423, 304, 679, 2253, 1059, 7191, 13, 4706, 565, 525, 14380, 29915, 451, 297, 3646, 29918, 5527, 29901, 13, 9651, 13812, 29889, 2704, 877, 489, 5527, 411, 3646, 5285, 470, 738, 310, 278, 3957, 3987, 338, 3734, 1495, 13, 13, 4706, 565, 6389, 29889, 14380, 1275, 525, 2843, 2396, 13, 9651, 565, 6702, 3069, 29915, 451, 297, 3646, 29918, 5527, 29897, 322, 6702, 10141, 29915, 451, 297, 3646, 29918, 5527, 1125, 13, 18884, 13812, 29889, 2704, 877, 489, 3069, 470, 1192, 10141, 1818, 367, 6790, 1495, 13, 13, 4706, 565, 6389, 29889, 14380, 1275, 525, 9389, 2396, 13, 9651, 363, 3734, 297, 6024, 3069, 742, 525, 6786, 742, 525, 5630, 2033, 29901, 13, 18884, 565, 3734, 451, 297, 3646, 29918, 5527, 29901, 13, 462, 1678, 13812, 29889, 2704, 29898, 29888, 29915, 489, 29912, 12403, 29913, 1818, 367, 6790, 1495, 13, 13, 4706, 2888, 29918, 5085, 353, 426, 13, 9651, 1828, 29901, 995, 13, 9651, 363, 1828, 29892, 995, 297, 24987, 29898, 5085, 467, 7076, 580, 13, 9651, 565, 1828, 297, 2888, 29918, 7529, 13, 4706, 500, 13, 4706, 2888, 29918, 5085, 353, 1852, 5510, 29889, 23335, 29898, 1068, 6341, 29918, 5085, 29897, 13, 13, 4706, 736, 2888, 29918, 5085, 29892, 1067, 29879, 29889, 3166, 29918, 5527, 29898, 5527, 29922, 5182, 29918, 5527, 29892, 18870, 29918, 3888, 29922, 12120, 29918, 3888, 29892, 620, 29918, 3972, 29922, 5085, 29889, 690, 29918, 3972, 29897, 13, 13, 1678, 822, 903, 2344, 29918, 5182, 29898, 1311, 29892, 2924, 29892, 1024, 29892, 664, 3972, 29892, 4742, 29892, 3495, 29892, 13, 9651, 2011, 29892, 8952, 29892, 4800, 29892, 1820, 1445, 29892, 9406, 29918, 3069, 29918, 3198, 29892, 671, 29918, 1557, 29886, 29892, 13, 9651, 2906, 1982, 29918, 12120, 29892, 13, 9651, 4480, 29918, 4777, 29892, 4480, 29918, 4777, 29918, 15619, 29892, 13, 268, 1125, 13, 4706, 9995, 13, 4706, 25455, 278, 17157, 13, 4706, 9995, 13, 4706, 17927, 353, 1583, 29889, 657, 29918, 21707, 580, 13, 4706, 11009, 29918, 11027, 353, 6571, 13, 4706, 11527, 29918, 6786, 353, 8952, 470, 525, 4632, 29915, 13, 13, 4706, 17927, 29889, 8382, 29898, 29888, 29915, 29020, 701, 426, 14380, 29913, 3646, 856, 1495, 13, 13, 4706, 396, 960, 278, 3646, 338, 5669, 29892, 591, 817, 925, 313, 3696, 1474, 29897, 278, 4742, 13, 4706, 565, 2924, 1275, 525, 2843, 2396, 13, 9651, 2906, 1982, 29918, 5182, 29918, 25932, 353, 2906, 1982, 29889, 8136, 8667, 13, 13, 9651, 396, 5244, 11316, 363, 9033, 29924, 29899, 20415, 29914, 3359, 1982, 29937, 29906, 29906, 29945, 13, 9651, 664, 3972, 353, 664, 3972, 470, 8207, 1272, 29914, 2997, 29914, 7050, 29914, 3359, 1982, 29899, 5182, 29915, 13, 13, 9651, 565, 4742, 29901, 13, 18884, 1209, 13, 9651, 25342, 3495, 29901, 13, 18884, 2011, 353, 2011, 470, 1583, 29889, 3035, 29933, 29918, 15082, 29918, 23397, 13, 18884, 4742, 353, 285, 29915, 29912, 3069, 6177, 29912, 637, 10162, 13, 9651, 1683, 29901, 13, 18884, 4742, 353, 525, 23397, 29915, 13, 13, 9651, 11009, 29918, 11027, 1839, 10141, 2033, 353, 4742, 13, 9651, 396, 960, 278, 8952, 471, 9479, 731, 304, 376, 4632, 613, 3876, 278, 3646, 408, 13, 9651, 396, 4688, 408, 1950, 13, 9651, 11009, 29918, 11027, 1839, 328, 29890, 29918, 294, 29918, 4632, 2033, 353, 313, 6786, 1275, 525, 4632, 1495, 13, 13, 4706, 25342, 2924, 1275, 525, 9389, 2396, 13, 9651, 2906, 1982, 29918, 5182, 29918, 25932, 353, 2906, 1982, 29889, 24085, 8667, 13, 9651, 11009, 29918, 11027, 29889, 5504, 29898, 13, 18884, 8952, 29922, 9778, 1490, 29918, 6786, 29892, 13, 18884, 2011, 29922, 637, 470, 1583, 29889, 1799, 29950, 29918, 15082, 29918, 23397, 29892, 13, 18884, 3495, 29922, 3069, 29892, 13, 18884, 9406, 29918, 3069, 29918, 3198, 29922, 5574, 565, 9406, 29918, 3069, 29918, 3198, 338, 6213, 1683, 9406, 29918, 3069, 29918, 3198, 29892, 13, 18884, 671, 29918, 1557, 29886, 29922, 8824, 565, 671, 29918, 1557, 29886, 338, 6213, 1683, 671, 29918, 1557, 29886, 29892, 13, 9651, 1723, 13, 13, 9651, 396, 1281, 4532, 4800, 470, 22343, 1820, 1445, 13, 9651, 565, 1820, 1445, 29901, 13, 18884, 11009, 29918, 11027, 1839, 1989, 1445, 2033, 353, 1820, 1445, 13, 9651, 1683, 29901, 13, 18884, 11009, 29918, 11027, 1839, 5630, 2033, 353, 4800, 13, 4706, 25342, 2924, 1275, 525, 3069, 2396, 13, 9651, 2906, 1982, 29918, 5182, 29918, 25932, 353, 2906, 1982, 29889, 7717, 24085, 8667, 13, 9651, 396, 960, 591, 526, 2183, 263, 4800, 29892, 5251, 591, 508, 671, 372, 408, 263, 9196, 13, 9651, 396, 4800, 29889, 13, 9651, 11009, 29918, 11027, 29889, 5504, 29898, 13, 18884, 443, 4632, 287, 29922, 5630, 338, 6213, 29892, 13, 18884, 4800, 29922, 5630, 29892, 13, 9651, 1723, 13, 4706, 1683, 29901, 13, 9651, 12020, 7865, 2392, 29898, 29888, 29915, 25807, 29884, 3016, 287, 7481, 1134, 426, 14380, 29913, 1495, 13, 13, 4706, 6055, 353, 11297, 29876, 1678, 15300, 7122, 29898, 13, 9651, 285, 29915, 1678, 426, 1989, 6177, 426, 791, 10162, 13, 9651, 363, 1820, 29892, 659, 297, 11009, 29918, 11027, 29889, 7076, 580, 13, 9651, 565, 1820, 2804, 525, 5630, 29915, 13, 4706, 1723, 13, 4706, 17927, 29889, 8382, 29898, 29888, 29915, 29912, 14380, 29913, 426, 978, 29913, 3646, 3957, 6055, 3583, 29876, 1678, 426, 11027, 29913, 1495, 13, 13, 4706, 835, 13383, 13383, 13383, 13383, 4136, 29937, 13, 4706, 396, 9481, 1982, 28096, 5285, 13, 4706, 835, 13383, 13383, 13383, 13383, 4136, 29937, 13, 13, 4706, 565, 451, 2906, 1982, 29918, 12120, 29901, 13, 9651, 2906, 1982, 29918, 12120, 353, 2906, 1982, 29889, 12120, 29889, 21889, 580, 13, 13, 13, 4706, 835, 13383, 13383, 13383, 13383, 4136, 29937, 13, 4706, 396, 6204, 2906, 1982, 17157, 1203, 13, 4706, 835, 13383, 13383, 13383, 13383, 4136, 29937, 13, 13, 4706, 3646, 353, 2906, 1982, 29918, 5182, 29918, 25932, 29898, 13, 9651, 7481, 29922, 3359, 1982, 29918, 12120, 29892, 13, 9651, 2254, 29918, 4381, 29918, 7576, 29922, 8824, 29892, 13, 9651, 3957, 29918, 11027, 29922, 13082, 29918, 11027, 29892, 13, 9651, 1985, 29918, 12322, 29922, 1287, 3972, 29892, 13, 9651, 4511, 29922, 8824, 29892, 13, 4706, 1723, 13, 13, 4706, 3646, 29889, 6915, 29898, 3198, 29918, 4777, 29918, 5729, 9446, 29922, 10685, 29918, 4777, 29892, 11815, 29922, 10685, 29918, 4777, 29918, 15619, 29897, 13, 13, 4706, 396, 6213, 408, 8952, 2794, 594, 29890, 3876, 674, 367, 16388, 29892, 541, 10672, 674, 13, 4706, 396, 451, 5557, 515, 16791, 304, 278, 3646, 29889, 13, 4706, 565, 2924, 1275, 525, 2843, 29915, 322, 8952, 338, 6213, 29901, 13, 9651, 1018, 29901, 13, 18884, 3646, 29889, 328, 29890, 29918, 4632, 29898, 12007, 29922, 5574, 29897, 13, 9651, 5174, 8960, 408, 321, 29901, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 18884, 17927, 29889, 27392, 29898, 29888, 11838, 328, 29890, 3876, 29908, 5229, 29901, 426, 29872, 29913, 1495, 13, 13, 4706, 17927, 29889, 8382, 29898, 29888, 29915, 8667, 5235, 29901, 426, 8977, 29898, 19266, 29922, 5182, 29889, 19266, 29892, 26403, 3888, 29922, 5182, 29889, 21970, 3888, 29892, 664, 3972, 29922, 5182, 29889, 22899, 29918, 12322, 2915, 1495, 13, 13, 4706, 3646, 29889, 14669, 580, 13, 13, 4706, 17927, 29889, 3888, 29898, 29888, 29908, 20971, 2954, 304, 3646, 426, 29898, 978, 470, 27255, 27195, 13, 4706, 736, 3646, 13, 13, 1678, 822, 679, 29918, 690, 29918, 3972, 29898, 1311, 29892, 1024, 29922, 8516, 29892, 9773, 29918, 2230, 29922, 5574, 29892, 9878, 828, 682, 29922, 5574, 1125, 13, 4706, 9995, 13, 4706, 16969, 263, 3884, 8745, 491, 365, 3235, 29909, 304, 3787, 2582, 29889, 13, 13, 4706, 10783, 482, 310, 393, 740, 338, 21676, 304, 28923, 671, 470, 2560, 12078, 29889, 13, 4706, 4321, 29879, 881, 451, 19104, 373, 393, 408, 278, 2825, 4138, 674, 451, 367, 5702, 287, 13, 4706, 491, 738, 7029, 7855, 29892, 607, 2794, 278, 2582, 674, 367, 5714, 297, 777, 13, 4706, 3345, 630, 5177, 29889, 13, 13, 4706, 584, 3207, 1024, 29901, 4408, 310, 278, 2582, 3884, 13, 4706, 584, 1853, 1024, 29901, 851, 13, 13, 4706, 584, 3207, 9773, 29918, 2230, 29901, 960, 5852, 29892, 278, 1857, 12865, 674, 367, 623, 2760, 304, 13, 3986, 278, 2183, 4954, 978, 29952, 1412, 960, 4954, 978, 16159, 338, 6213, 29892, 278, 3884, 1024, 674, 367, 13, 3986, 278, 1857, 12865, 29889, 13, 4706, 584, 1853, 9773, 29918, 2230, 29901, 6120, 13, 13, 4706, 584, 3207, 9878, 828, 682, 29901, 6204, 263, 9878, 828, 682, 4257, 4954, 9902, 29918, 12333, 16159, 304, 278, 15141, 13, 3986, 2825, 2582, 3884, 13, 4706, 584, 1853, 9878, 828, 682, 29901, 6120, 13, 4706, 9995, 13, 13, 4706, 565, 338, 8758, 29898, 1311, 3032, 690, 29918, 3972, 29892, 3012, 7060, 2605, 1125, 13, 9651, 3876, 353, 1583, 3032, 690, 29918, 3972, 29889, 4632, 13, 9651, 6198, 353, 1583, 3032, 690, 29918, 3972, 29889, 22925, 13, 4706, 1683, 29901, 13, 9651, 3876, 353, 1583, 3032, 690, 29918, 3972, 13, 9651, 6198, 353, 6629, 13, 13, 4706, 736, 1583, 3032, 657, 29918, 690, 29918, 3972, 29898, 13, 9651, 3876, 29922, 4632, 29892, 13, 9651, 6198, 29922, 22925, 29892, 13, 9651, 1024, 29922, 978, 29892, 13, 9651, 9773, 29918, 2230, 29922, 4397, 29918, 2230, 29892, 13, 9651, 9878, 828, 682, 29922, 29879, 21053, 682, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 903, 657, 29918, 690, 29918, 3972, 29898, 1311, 29892, 3876, 29892, 6198, 29892, 1024, 29892, 9773, 29918, 2230, 29892, 9878, 828, 682, 1125, 13, 4706, 17927, 353, 1583, 29889, 657, 29918, 21707, 580, 13, 4706, 1550, 5852, 29901, 13, 9651, 931, 29918, 710, 353, 12865, 29889, 3707, 2141, 710, 615, 603, 877, 29995, 29979, 29995, 29885, 29995, 29881, 29918, 29995, 29950, 29995, 29924, 29995, 29903, 29889, 29995, 29888, 1495, 13, 9651, 565, 451, 1024, 29901, 13, 18884, 1024, 353, 931, 29918, 710, 13, 9651, 25342, 9773, 29918, 2230, 29901, 13, 18884, 1024, 353, 285, 29908, 29912, 978, 7402, 29912, 2230, 29918, 710, 5038, 13, 13, 9651, 396, 960, 591, 892, 2183, 385, 3012, 7060, 2605, 411, 385, 5923, 3876, 29892, 591, 13, 9651, 396, 19905, 393, 3876, 577, 372, 508, 367, 337, 28809, 408, 278, 24959, 10753, 372, 13, 9651, 620, 29918, 3972, 353, 3012, 7060, 2605, 29898, 4632, 29892, 2897, 29889, 2084, 29889, 7122, 29898, 22925, 29892, 1024, 876, 13, 13, 9651, 396, 11796, 29872, 2967, 11161, 2224, 13, 9651, 17927, 29889, 3888, 29898, 29888, 29915, 9832, 1218, 1121, 3884, 29901, 426, 690, 29918, 3972, 29913, 1495, 13, 13, 9651, 396, 739, 674, 4418, 565, 278, 4138, 2307, 4864, 29889, 512, 393, 1206, 29892, 13, 9651, 396, 9773, 29918, 2230, 881, 367, 1304, 304, 9801, 591, 679, 263, 5412, 1024, 29889, 13, 9651, 1018, 29901, 13, 18884, 2897, 29889, 29885, 12535, 12935, 29898, 690, 29918, 3972, 29897, 13, 18884, 2867, 13, 9651, 5174, 3497, 24217, 2392, 29901, 13, 18884, 396, 960, 278, 931, 338, 1304, 297, 278, 1024, 29892, 727, 338, 777, 4966, 393, 278, 13, 18884, 396, 2446, 931, 372, 674, 9269, 13, 18884, 565, 9773, 29918, 2230, 29901, 13, 462, 1678, 17927, 29889, 3888, 877, 9882, 2307, 4864, 29892, 337, 2202, 292, 2023, 1495, 13, 462, 1678, 6773, 13, 18884, 1683, 29901, 13, 462, 1678, 12020, 13, 13, 4706, 565, 9878, 828, 682, 29901, 13, 9651, 620, 29918, 3083, 29895, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29931, 3235, 29909, 29918, 17353, 29892, 365, 3040, 1254, 29918, 23714, 29968, 29897, 13, 9651, 411, 3030, 1982, 29889, 19303, 1253, 29898, 2283, 17413, 2392, 1125, 13, 18884, 2897, 29889, 5992, 29898, 690, 29918, 3083, 29895, 29897, 13, 13, 9651, 396, 1670, 1122, 367, 263, 8175, 4195, 411, 1790, 5780, 1811, 304, 1653, 13, 9651, 396, 278, 1544, 13, 9651, 411, 3030, 1982, 29889, 19303, 1253, 29898, 2283, 24217, 2392, 1125, 13, 18884, 2897, 29889, 29879, 21053, 682, 29898, 690, 29918, 3972, 29892, 620, 29918, 3083, 29895, 29897, 13, 13, 4706, 736, 620, 29918, 3972, 13, 13, 1678, 822, 2601, 29918, 8504, 29898, 1311, 29892, 8492, 1125, 13, 4706, 9995, 13, 4706, 16052, 8492, 5684, 304, 1906, 6790, 297, 278, 1243, 2295, 525, 8504, 29915, 13, 4706, 1746, 13, 13, 4706, 584, 3207, 8492, 29901, 450, 1051, 310, 2983, 310, 8492, 304, 2601, 13, 4706, 584, 1853, 8492, 29901, 1051, 29898, 710, 29897, 13, 4706, 9995, 13, 13, 4706, 822, 9016, 29918, 2084, 29898, 10154, 1125, 13, 9651, 7581, 353, 2897, 29889, 2084, 29889, 7122, 29898, 3289, 1660, 9375, 29918, 10145, 29892, 525, 2109, 4314, 742, 1583, 29889, 19266, 29892, 5780, 29897, 13, 9651, 565, 451, 2897, 29889, 2084, 29889, 275, 1445, 29898, 19541, 1125, 13, 18884, 7581, 353, 2897, 29889, 2084, 29889, 7122, 29898, 3289, 1660, 9375, 29918, 10145, 29892, 525, 2109, 4314, 742, 525, 16713, 742, 5780, 29897, 13, 9651, 736, 7581, 13, 13, 4706, 8492, 353, 731, 29898, 8504, 29897, 448, 1583, 3032, 25537, 29918, 8504, 13, 13, 4706, 396, 14402, 29901, 10272, 278, 1423, 2083, 310, 278, 5780, 718, 2601, 4423, 322, 3013, 13, 4706, 396, 393, 297, 903, 25537, 29918, 8504, 29892, 577, 591, 526, 1854, 304, 367, 1959, 13, 4706, 363, 5780, 297, 2910, 29898, 2109, 29918, 2084, 29892, 8492, 1125, 13, 9651, 1583, 29889, 5182, 29889, 6252, 29898, 10154, 29897, 13, 9651, 1583, 3032, 25537, 29918, 8504, 29889, 1202, 29898, 10154, 29897, 13, 13, 13, 1678, 732, 4703, 1982, 29889, 4703, 12847, 13, 1678, 822, 3889, 911, 29918, 7193, 3535, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 15228, 8455, 393, 16869, 366, 3889, 911, 278, 4160, 3535, 29889, 13, 13, 4706, 6317, 4443, 1057, 319, 1353, 310, 18845, 5557, 515, 3889, 19583, 3099, 29889, 1932, 13, 9651, 393, 5930, 29892, 263, 9177, 338, 13817, 541, 694, 3682, 338, 10425, 29892, 577, 13, 9651, 372, 29915, 29879, 263, 1900, 29899, 12352, 441, 2948, 29889, 13, 4706, 9995, 13, 4706, 17927, 353, 1583, 29889, 657, 29918, 21707, 580, 13, 4706, 565, 451, 1583, 29889, 275, 29918, 4632, 287, 29901, 13, 9651, 17927, 29889, 27392, 877, 23323, 451, 3889, 911, 4160, 3535, 29901, 3646, 338, 451, 3876, 287, 1495, 13, 9651, 7477, 353, 1870, 4703, 13, 4706, 25342, 451, 1583, 29889, 275, 29918, 5453, 29918, 16515, 877, 29883, 13155, 29374, 13, 9651, 17927, 29889, 27392, 877, 23323, 451, 3889, 911, 4160, 3535, 29901, 376, 29883, 13155, 29908, 2906, 1982, 3883, 338, 5181, 1495, 13, 9651, 7477, 353, 1870, 4703, 13, 4706, 1683, 29901, 13, 9651, 21385, 353, 518, 29879, 29889, 978, 363, 269, 297, 1583, 29889, 29883, 13155, 29889, 1761, 29918, 1491, 5205, 29879, 580, 29962, 13, 9651, 565, 525, 9021, 3298, 29915, 451, 297, 21385, 29901, 13, 18884, 17927, 29889, 27392, 877, 23323, 451, 3889, 911, 4160, 3535, 29901, 3889, 3298, 274, 2972, 4701, 451, 3625, 373, 278, 3646, 1495, 13, 18884, 7477, 353, 1870, 4703, 13, 13, 9651, 1683, 29901, 13, 18884, 19060, 353, 3509, 29889, 8552, 29898, 1311, 29889, 11341, 1806, 2965, 1964, 29918, 29911, 3289, 17557, 29961, 1311, 29889, 5182, 29889, 359, 2314, 13, 13, 18884, 396, 1938, 451, 3889, 911, 278, 1889, 297, 8323, 310, 316, 29899, 9021, 19583, 29892, 6467, 591, 13, 18884, 396, 674, 3889, 911, 304, 4892, 322, 263, 4933, 2898, 22538, 674, 367, 3734, 13, 18884, 565, 338, 8758, 29898, 1311, 29889, 5182, 29892, 2906, 1982, 29889, 7717, 24085, 8667, 1125, 13, 462, 1678, 19060, 29889, 4397, 29898, 710, 29898, 359, 29889, 657, 5935, 22130, 13, 13, 18884, 732, 4703, 1982, 29889, 4703, 12847, 13, 18884, 822, 7477, 7295, 13, 462, 1678, 17927, 29889, 3888, 29898, 29888, 29908, 20475, 19583, 599, 9595, 5174, 29901, 426, 3788, 29889, 7122, 29898, 735, 2325, 2915, 1159, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 7709, 1583, 29889, 29883, 13155, 29889, 9021, 911, 29898, 735, 2325, 29897, 13, 462, 1678, 7146, 29901, 13, 462, 4706, 17927, 29889, 3888, 877, 2525, 29899, 9021, 19583, 4160, 3535, 9595, 1495, 13, 462, 4706, 1583, 29889, 29883, 13155, 29889, 9021, 911, 29898, 386, 1450, 29922, 5574, 29897, 13, 13, 4706, 411, 7477, 580, 408, 921, 29901, 13, 9651, 7709, 921, 13, 13, 1678, 732, 4703, 1982, 29889, 4703, 12847, 13, 1678, 822, 11262, 29918, 333, 280, 29918, 28631, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 15228, 8455, 393, 16869, 366, 11262, 599, 28132, 5922, 13, 4706, 9995, 13, 4706, 17927, 353, 1583, 29889, 657, 29918, 21707, 580, 13, 4706, 17927, 29889, 3888, 877, 4205, 17961, 28132, 5922, 363, 599, 21904, 1495, 13, 13, 4706, 1018, 29901, 13, 9651, 26403, 333, 280, 353, 1583, 29889, 21970, 333, 280, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 17927, 29889, 27392, 877, 23323, 451, 11262, 28132, 5922, 29892, 26403, 333, 280, 2906, 1982, 3883, 338, 451, 7500, 1495, 13, 9651, 7477, 353, 1870, 4703, 13, 4706, 1683, 29901, 13, 9651, 732, 4703, 1982, 29889, 4703, 12847, 13, 9651, 822, 7477, 7295, 13, 18884, 1018, 29901, 13, 462, 1678, 363, 26403, 297, 3464, 29898, 1311, 29889, 572, 271, 29918, 3888, 1839, 6814, 375, 29899, 2798, 2033, 1125, 13, 462, 4706, 26403, 333, 280, 29889, 20472, 29918, 497, 29898, 21970, 29897, 13, 462, 1678, 7709, 13, 18884, 7146, 29901, 13, 462, 1678, 17927, 29889, 3888, 877, 1123, 29899, 264, 17961, 28132, 5922, 363, 599, 21904, 1495, 13, 462, 1678, 363, 26403, 297, 3464, 29898, 1311, 29889, 572, 271, 29918, 3888, 1839, 6814, 375, 29899, 2798, 2033, 1125, 13, 462, 4706, 26403, 333, 280, 29889, 12007, 29918, 497, 29898, 21970, 29897, 13, 13, 4706, 411, 7477, 580, 408, 921, 29901, 13, 9651, 7709, 921, 13, 13, 1678, 822, 679, 29918, 11338, 29898, 1311, 1125, 13, 4706, 736, 11117, 3377, 2396, 1583, 29889, 978, 29913, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 903, 5675, 29918, 16674, 29918, 29879, 1240, 7988, 29898, 25932, 29892, 1024, 29892, 775, 29918, 710, 29892, 3883, 29892, 9049, 5085, 29892, 5534, 29918, 16908, 29892, 714, 29918, 7382, 5325, 1125, 13, 4706, 396, 512, 622, 278, 4128, 2768, 278, 14476, 29915, 29879, 13149, 1338, 577, 393, 372, 508, 13, 4706, 396, 2130, 963, 29889, 739, 29915, 29879, 4023, 828, 404, 408, 896, 723, 15504, 738, 5534, 1024, 13, 4706, 396, 8763, 29892, 322, 372, 29915, 29879, 22078, 304, 278, 14476, 773, 19745, 580, 13, 4706, 5534, 29918, 16908, 353, 426, 13, 9651, 3579, 10945, 29918, 16908, 29892, 13, 9651, 3579, 19290, 29892, 13, 4706, 500, 13, 13, 4706, 396, 6479, 271, 278, 10585, 16949, 408, 896, 2609, 367, 5839, 839, 13, 4706, 10585, 353, 426, 13, 9651, 1024, 29901, 878, 13, 9651, 363, 1024, 29892, 878, 297, 5534, 29918, 16908, 29889, 7076, 580, 13, 9651, 565, 338, 8758, 29898, 1545, 29892, 15591, 1542, 29897, 13, 4706, 500, 13, 13, 4706, 822, 508, 29918, 2856, 29898, 29888, 1125, 13, 9651, 736, 313, 13, 18884, 338, 8758, 29898, 29888, 29892, 6680, 1542, 29897, 322, 13, 18884, 396, 9333, 2758, 297, 1915, 292, 310, 3168, 3342, 297, 278, 1021, 3883, 577, 393, 29901, 13, 18884, 396, 29871, 29896, 29889, 727, 338, 694, 1024, 1067, 1161, 12045, 13, 18884, 396, 29871, 29906, 29889, 591, 1016, 29915, 29873, 10583, 278, 3353, 3186, 29892, 607, 1033, 3275, 304, 263, 13, 18884, 396, 1678, 1353, 310, 4828, 393, 1033, 2615, 1156, 1790, 3883, 13, 18884, 396, 1678, 338, 4784, 470, 577, 29889, 1334, 871, 10583, 1887, 2712, 393, 526, 297, 13, 18884, 396, 1678, 1513, 2761, 13, 18884, 285, 17255, 5453, 1649, 1275, 3883, 13, 9651, 1723, 13, 13, 4706, 822, 788, 29918, 9891, 29898, 29888, 29892, 1024, 1125, 13, 9651, 396, 3295, 9536, 10200, 630, 3168, 1951, 1009, 5023, 7111, 373, 13, 9651, 396, 7029, 1246, 519, 591, 2609, 2761, 13, 9651, 565, 756, 5552, 29898, 29888, 29892, 525, 1649, 29893, 336, 2986, 1649, 29374, 13, 18884, 12020, 20948, 877, 6185, 272, 630, 3168, 2609, 367, 2000, 515, 7592, 3168, 1495, 13, 13, 9651, 18424, 29918, 16908, 353, 426, 13, 18884, 1024, 29901, 659, 13, 18884, 363, 722, 29918, 29881, 312, 297, 16096, 29889, 657, 25071, 16908, 29898, 29888, 29897, 13, 18884, 565, 338, 8758, 29898, 1707, 29918, 29881, 312, 29892, 341, 20304, 29897, 13, 18884, 363, 1024, 29892, 659, 297, 722, 29918, 29881, 312, 29889, 7076, 580, 13, 9651, 500, 13, 13, 9651, 2090, 2395, 29961, 978, 29962, 353, 313, 29888, 29892, 1067, 29879, 3032, 657, 29918, 401, 29898, 29888, 9601, 29896, 2314, 13, 13, 9651, 363, 903, 978, 29892, 903, 29888, 297, 18424, 29918, 16908, 29889, 7076, 7295, 13, 18884, 565, 903, 29888, 338, 451, 285, 322, 508, 29918, 2856, 7373, 29888, 1125, 13, 462, 1678, 788, 29918, 9891, 7373, 29888, 29892, 903, 978, 29897, 13, 13, 9651, 10585, 29889, 5504, 29898, 13, 18884, 313, 978, 29892, 878, 29897, 13, 18884, 363, 1024, 29892, 878, 297, 18424, 29918, 16908, 29889, 7076, 580, 13, 18884, 565, 338, 8758, 29898, 1545, 29892, 15591, 1542, 29897, 13, 9651, 1723, 13, 13, 4706, 2090, 2395, 353, 6571, 13, 4706, 363, 285, 29918, 978, 29892, 285, 297, 5534, 29918, 16908, 29889, 7076, 7295, 13, 9651, 565, 508, 29918, 2856, 29898, 29888, 1125, 13, 18884, 788, 29918, 9891, 29898, 29888, 29892, 285, 29918, 978, 29897, 13, 13, 4706, 775, 29918, 710, 4619, 11297, 29876, 29915, 718, 11297, 29876, 4286, 7122, 29898, 1958, 29898, 667, 657, 357, 29898, 29896, 511, 2090, 2395, 29889, 5975, 22130, 13, 13, 4706, 1661, 29918, 23945, 839, 353, 731, 29898, 7576, 29889, 8149, 3101, 891, 731, 29898, 7692, 2395, 29889, 8149, 3101, 13, 4706, 5534, 29918, 16908, 353, 426, 13, 9651, 1024, 29901, 659, 13, 9651, 363, 1024, 29892, 659, 297, 5534, 29918, 16908, 29889, 7076, 580, 13, 9651, 565, 1024, 451, 297, 1661, 29918, 23945, 839, 13, 4706, 500, 13, 13, 4706, 565, 10585, 29901, 13, 9651, 10585, 353, 285, 29908, 5215, 426, 742, 15300, 7122, 29898, 24582, 29898, 7576, 876, 5038, 13, 4706, 1683, 29901, 13, 9651, 10585, 353, 6629, 13, 13, 4706, 2471, 353, 1426, 6312, 29889, 7176, 296, 877, 4907, 13, 9651, 1053, 5839, 280, 13, 9651, 1053, 10876, 13, 13, 9651, 822, 14476, 7295, 13, 18884, 426, 7576, 29913, 13, 13, 18884, 426, 401, 29913, 13, 18884, 736, 426, 29888, 2119, 29912, 19290, 1800, 13, 13, 9651, 1018, 29901, 13, 18884, 714, 353, 19745, 29898, 17699, 17255, 401, 1649, 29892, 5839, 280, 29889, 18132, 3319, 23705, 1338, 20073, 13, 9651, 5174, 7399, 2451, 408, 321, 29901, 13, 18884, 714, 353, 321, 13, 18884, 714, 29918, 275, 29918, 735, 13300, 353, 5852, 13, 9651, 1683, 29901, 13, 18884, 714, 29918, 275, 29918, 735, 13300, 353, 7700, 13, 13, 9651, 714, 353, 5839, 280, 29889, 29881, 17204, 29898, 449, 29897, 13, 9651, 714, 29918, 7382, 1445, 353, 426, 449, 29918, 7382, 5325, 4400, 29896, 29962, 565, 714, 29918, 275, 29918, 735, 13300, 1683, 426, 449, 29918, 7382, 5325, 4400, 29900, 29962, 13, 13, 9651, 411, 1722, 29898, 449, 29918, 7382, 1445, 29892, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 18884, 285, 29889, 3539, 29898, 449, 29897, 13, 4706, 6629, 2824, 4830, 29898, 13, 9651, 285, 29922, 978, 29892, 13, 9651, 775, 29922, 726, 6312, 29889, 7176, 296, 29898, 401, 29918, 710, 467, 6506, 28909, 29876, 742, 11297, 29876, 29915, 718, 525, 525, 334, 29871, 29946, 511, 13, 9651, 10585, 29922, 7576, 29892, 13, 9651, 714, 29918, 7382, 5325, 29922, 276, 558, 29898, 449, 29918, 7382, 5325, 511, 13, 9651, 13149, 1338, 29922, 276, 558, 29898, 23945, 280, 29889, 29881, 17204, 29898, 10945, 29918, 16908, 8243, 13, 9651, 9049, 5085, 29922, 742, 15300, 7122, 29898, 13, 18884, 285, 29915, 29912, 978, 29913, 3790, 978, 10162, 13, 18884, 363, 1024, 297, 9049, 5085, 29889, 8149, 580, 13, 9651, 1723, 13, 4706, 1723, 13, 4706, 736, 2471, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 657, 29918, 401, 29898, 29888, 1125, 13, 4706, 3454, 29892, 903, 353, 16096, 29889, 20078, 473, 2242, 1475, 29898, 29888, 29897, 13, 4706, 396, 15154, 10200, 4097, 29892, 408, 896, 526, 2845, 7580, 470, 925, 892, 1304, 304, 13, 4706, 396, 8343, 278, 740, 304, 502, 13, 4706, 3454, 353, 518, 13, 9651, 1196, 13, 9651, 363, 1196, 297, 3454, 13, 9651, 565, 451, 1196, 29889, 17010, 2141, 27382, 2541, 877, 29992, 1495, 13, 4706, 4514, 13, 4706, 775, 29918, 710, 353, 1426, 6312, 29889, 7176, 296, 877, 4286, 7122, 29898, 9012, 876, 13, 4706, 1024, 353, 285, 17255, 978, 1649, 13, 4706, 736, 313, 978, 29892, 775, 29918, 710, 29897, 13, 13, 1678, 822, 6222, 29918, 4691, 29898, 1311, 29892, 285, 29892, 6389, 29892, 9049, 5085, 29892, 3579, 7978, 29918, 19290, 1125, 13, 4706, 9995, 13, 4706, 11080, 2667, 278, 2183, 5132, 740, 4954, 29888, 16159, 411, 278, 4944, 2602, 284, 13, 4706, 322, 13553, 6273, 29889, 13, 13, 4706, 450, 736, 995, 470, 738, 3682, 338, 5839, 839, 1250, 322, 338, 13, 4706, 4133, 29914, 336, 3368, 297, 278, 3495, 24959, 29889, 13, 13, 4706, 584, 16174, 13553, 6273, 29901, 1152, 1328, 287, 304, 584, 29885, 621, 18078, 7978, 29952, 393, 13, 9651, 674, 29178, 278, 5132, 26997, 373, 278, 3646, 13, 13, 4706, 6317, 4443, 1057, 2233, 359, 545, 3651, 526, 6969, 29892, 541, 5478, 1218, 963, 674, 451, 13, 9651, 367, 25312, 297, 278, 24959, 29915, 29879, 3030, 29889, 3115, 29892, 3168, 393, 526, 13, 9651, 12992, 304, 674, 367, 29901, 13, 13, 18884, 334, 22813, 839, 297, 278, 2471, 565, 372, 338, 3342, 297, 278, 1021, 3883, 13, 18884, 334, 12992, 304, 491, 1024, 29892, 10241, 372, 5304, 515, 263, 3883, 393, 338, 13, 462, 29871, 5130, 373, 278, 3646, 322, 393, 445, 3883, 338, 297, 6874, 29889, 960, 13, 462, 29871, 393, 338, 451, 278, 1206, 29892, 263, 584, 735, 29883, 18078, 1170, 2392, 29952, 674, 367, 10425, 29889, 13, 13, 4706, 6317, 8570, 1057, 3826, 272, 4097, 526, 17262, 322, 451, 7436, 29889, 13, 4706, 9995, 13, 4706, 4365, 353, 16096, 29889, 4530, 1535, 29898, 29888, 29897, 13, 4706, 9049, 5085, 353, 4365, 29889, 5355, 10456, 5085, 29892, 3579, 19290, 467, 25699, 13, 4706, 18424, 29918, 16908, 353, 16096, 29889, 657, 25071, 16908, 29898, 29888, 29897, 13, 13, 4706, 1024, 29892, 775, 29918, 710, 353, 1583, 3032, 657, 29918, 401, 29898, 29888, 29897, 13, 13, 4706, 822, 286, 1193, 3451, 7295, 13, 9651, 736, 1583, 29889, 7978, 29898, 13, 18884, 285, 29915, 29885, 1193, 3451, 448, 29886, 426, 845, 2506, 29889, 1396, 29898, 1311, 29889, 22899, 29918, 12322, 2915, 29915, 13, 9651, 13742, 17010, 580, 13, 13, 4706, 822, 1303, 29918, 4905, 29898, 2084, 1125, 13, 9651, 411, 5694, 1445, 29889, 5776, 1971, 653, 9882, 580, 408, 270, 29901, 13, 18884, 1024, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 449, 1495, 13, 18884, 1583, 29889, 26746, 29898, 2084, 29892, 1024, 29897, 13, 18884, 411, 1722, 29898, 978, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 462, 1678, 736, 5839, 280, 29889, 18132, 29898, 29888, 29889, 949, 3101, 13, 13, 4706, 822, 6088, 29918, 4905, 29898, 24772, 29892, 4589, 1125, 13, 9651, 659, 29892, 429, 13300, 353, 10898, 13, 9651, 1018, 29901, 13, 18884, 736, 1303, 29918, 4905, 29898, 791, 29897, 13, 9651, 396, 960, 278, 934, 338, 4069, 29892, 591, 3117, 2355, 385, 3682, 13, 9651, 5174, 382, 9800, 2392, 29901, 13, 18884, 396, 282, 2904, 524, 29901, 11262, 29922, 22692, 29899, 27259, 29899, 3166, 13, 18884, 1018, 29901, 13, 462, 1678, 429, 13300, 353, 1303, 29918, 4905, 29898, 735, 13300, 29897, 13, 18884, 396, 960, 591, 508, 29915, 29873, 1584, 1303, 278, 3682, 29892, 12020, 278, 2847, 697, 13, 18884, 396, 515, 2906, 1982, 13, 18884, 5174, 382, 9800, 2392, 29901, 13, 462, 1678, 12020, 4589, 565, 4589, 338, 451, 6213, 1683, 7865, 2392, 877, 3782, 3682, 471, 10425, 470, 995, 4133, 491, 278, 740, 1495, 13, 18884, 1683, 29901, 13, 462, 1678, 12020, 429, 13300, 13, 13, 13, 4706, 714, 29918, 7382, 5325, 353, 18761, 580, 13, 4706, 1018, 29901, 13, 9651, 714, 29918, 7382, 5325, 353, 313, 29885, 1193, 3451, 3285, 286, 1193, 3451, 3101, 13, 9651, 11534, 353, 1583, 3032, 5675, 29918, 16674, 29918, 29879, 1240, 7988, 29898, 13, 18884, 1024, 29922, 978, 29892, 13, 18884, 775, 29918, 710, 29922, 401, 29918, 710, 29892, 13, 18884, 3883, 29922, 29888, 17255, 5453, 1649, 29892, 13, 18884, 9049, 5085, 29922, 19290, 29892, 13, 18884, 5534, 29918, 16908, 3790, 13, 462, 1678, 3579, 25071, 29918, 16908, 29889, 23705, 1338, 29892, 13, 462, 1678, 3579, 25071, 29918, 16908, 29889, 5464, 2997, 29879, 29892, 13, 18884, 2981, 13, 18884, 714, 29918, 7382, 5325, 29922, 449, 29918, 7382, 5325, 13, 9651, 1723, 13, 9651, 9920, 353, 6024, 4691, 29941, 742, 17411, 29883, 742, 11534, 29962, 13, 9651, 9920, 353, 525, 15300, 7122, 29898, 1958, 29898, 845, 2506, 29889, 1396, 29892, 9920, 876, 13, 9651, 1018, 29901, 13, 18884, 1583, 29889, 7978, 29898, 9006, 29892, 3579, 7978, 29918, 19290, 29897, 13, 9651, 5174, 8960, 408, 321, 29901, 396, 282, 2904, 524, 29901, 11262, 29922, 6729, 328, 29899, 19499, 13, 18884, 4589, 353, 321, 13, 9651, 1683, 29901, 13, 18884, 4589, 353, 6213, 13, 9651, 736, 6088, 29918, 4905, 29898, 449, 29918, 7382, 5325, 29892, 4589, 29897, 13, 4706, 7146, 29901, 13, 9651, 363, 2224, 297, 714, 29918, 7382, 5325, 29901, 13, 18884, 1583, 29889, 5992, 29898, 2084, 29897, 13, 13, 13, 1678, 822, 7592, 29918, 9891, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 3826, 272, 1078, 263, 2183, 740, 304, 6222, 1083, 327, 873, 773, 13, 4706, 584, 29885, 621, 18078, 7978, 29918, 4691, 29952, 1057, 13, 13, 9651, 3646, 353, 17157, 29077, 13, 13, 9651, 732, 5182, 29889, 16674, 29918, 9891, 29898, 15619, 29922, 29946, 29906, 29897, 13, 9651, 822, 7953, 29898, 29916, 29892, 343, 1125, 13, 18884, 736, 921, 718, 343, 13, 13, 9651, 396, 11080, 1082, 278, 740, 373, 278, 3646, 1301, 862, 2705, 13, 9651, 659, 353, 7953, 29898, 29896, 29892, 343, 29922, 29906, 29897, 13, 13, 4706, 584, 16174, 13553, 6273, 29901, 1152, 1328, 287, 304, 584, 29885, 621, 18078, 7978, 29952, 393, 13, 9651, 674, 29178, 278, 5132, 26997, 373, 278, 3646, 13, 4706, 9995, 13, 4706, 822, 14476, 29918, 3207, 29898, 29888, 1125, 13, 9651, 732, 7692, 312, 8789, 29889, 29893, 336, 567, 29898, 29888, 29897, 13, 9651, 822, 14476, 10456, 29888, 29918, 5085, 29892, 3579, 29888, 29918, 19290, 1125, 13, 18884, 736, 1583, 29889, 7978, 29918, 4691, 29898, 29888, 29892, 285, 29918, 5085, 29892, 285, 29918, 19290, 29892, 3579, 19290, 29897, 13, 9651, 736, 14476, 13, 4706, 736, 14476, 29918, 3207, 13, 13, 13, 1990, 15170, 29945, 8942, 2785, 21889, 15646, 29898, 29954, 331, 29945, 8942, 2785, 21889, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1788, 29892, 1027, 9183, 29892, 3579, 19290, 1125, 13, 4706, 1027, 9183, 29918, 5085, 353, 3509, 29889, 8552, 29898, 3601, 9183, 29889, 657, 877, 5085, 742, 5159, 876, 13, 4706, 1788, 29918, 12120, 353, 1788, 1839, 12120, 2033, 13, 13, 4706, 396, 3617, 7055, 29945, 7581, 6273, 13, 4706, 1027, 9183, 29918, 5085, 29889, 4397, 877, 489, 25894, 29899, 8513, 29922, 265, 1495, 13, 13, 4706, 1027, 9183, 29918, 5085, 29889, 4397, 29898, 5205, 29918, 12120, 1839, 8216, 11287, 13, 4706, 1027, 9183, 29918, 5085, 29889, 21843, 29898, 5205, 29918, 12120, 29889, 657, 877, 5085, 742, 5159, 876, 13, 13, 4706, 1027, 9183, 29918, 5085, 29889, 21843, 3552, 13, 9651, 285, 29908, 489, 17460, 426, 5205, 1839, 17460, 2033, 17671, 13, 9651, 285, 29908, 489, 6008, 29890, 426, 5205, 1839, 6008, 29890, 2033, 17671, 13, 9651, 285, 29908, 489, 20960, 29899, 3027, 426, 5205, 1839, 20960, 2033, 5038, 13, 308, 876, 13, 13, 4706, 652, 397, 29918, 2084, 353, 607, 877, 29881, 2660, 1495, 13, 4706, 565, 652, 397, 29918, 2084, 338, 6213, 29901, 13, 9651, 12020, 24875, 2392, 877, 17776, 304, 1284, 376, 29881, 2660, 29908, 373, 596, 3495, 4933, 29892, 1423, 596, 11161, 470, 596, 23611, 2286, 1495, 13, 13, 4706, 396, 3789, 786, 4610, 601, 13, 4706, 396, 5032, 9737, 526, 727, 304, 1235, 278, 1962, 4516, 367, 2825, 6336, 13, 4706, 4610, 601, 29918, 5085, 353, 518, 13, 9651, 285, 29915, 489, 4716, 29899, 29881, 2660, 3790, 29881, 2660, 29918, 2084, 29913, 742, 13, 9651, 525, 489, 1287, 1359, 29899, 17405, 362, 29899, 29894, 601, 3790, 29913, 742, 13, 4706, 4514, 13, 4706, 1027, 9183, 29918, 5085, 29889, 21843, 29898, 15389, 601, 29918, 5085, 29897, 13, 13, 4706, 396, 751, 866, 29914, 21587, 6273, 322, 2048, 278, 1899, 1196, 13, 4706, 7055, 29945, 29918, 5085, 353, 525, 15300, 7122, 29898, 845, 2506, 29889, 1396, 29898, 29874, 29897, 363, 263, 297, 1027, 9183, 29918, 5085, 29897, 13, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 7055, 29945, 29918, 5085, 29922, 17797, 29945, 29918, 5085, 29892, 13, 9651, 7055, 29945, 29918, 2109, 29922, 3601, 9183, 1839, 2109, 7464, 13, 9651, 3579, 19290, 13, 4706, 1723, 13, 13, 29937, 325, 326, 584, 842, 4434, 9847, 29922, 29946, 9500, 2103, 29922, 29946, 7985, 3891, 1426, 2103, 29922, 29947, 29900, 13, 2 ]
action-enigma2.py
torstenzey/snipsenigma2
0
162503
<reponame>torstenzey/snipsenigma2 #!/usr/bin/env python2 # -*- coding: utf-8 -*- import paho.mqtt.client as mqtt import json import httplib def on_connect(client, userdata, flags, rc): mqtt.subscribe('hermes/intent/torstenzey:switch_to') mqtt.subscribe('hermes/intent/torstenzey:television_on') mqtt.subscribe('hermes/intent/torstenzey:television_off') mqtt.subscribe('hermes/intent/torstenzey:volume_down') mqtt.subscribe('hermes/intent/torstenzey:volume_up') mqtt.subscribe('hermes/intent/torstenzey:zap_forward') mqtt.subscribe('hermes/intent/torstenzey:zap_backward') def on_message(client, userdata, msg): # Parse the json response intent_json = json.loads(msg.payload) intentName = intent_json['intent']['intentName'] slots = intent_json['slots'] # slot = slots[0]['value']['value'] print('Intent {}'.format(intentName)) for slot in slots: slot_name = slot['slotName'] raw_value = slot['rawValue'] value = slot['value']['value'] print('Slot {} -> \n\tRaw: {} \tValue: {}'.format(slot_name, raw_value, value)) con = httplib.HTTPConnection('192.168.178.206') if 'torstenzey:television_on' == intentName : con.request("GET", "/web/powerstate?newstate=4") elif 'torstenzey:television_off' == intentName : con.request("GET", "/web/powerstate?newstate=5") elif 'torstenzey:volume_down' == intentName : con.request("GET", "/web/vol?set=down") elif 'torstenzey:volume_up' == intentName : con.request("GET", "/web/vol?set=up") elif 'torstenzey:zap_forward' == intentName : con.request("GET", "/web/remotecontrol?command=106") elif 'torstenzey:zap_forward' == intentName : con.request("GET", "/web/remotecontrol?command=105") elif 'torstenzey:switch_to' == intentName and 'ARD' == slot : con.request("GET", "/web/remotecontrol?command=105") print(con.getresponse().status) con.close() mqtt = mqtt.Client() mqtt.on_connect = on_connect mqtt.on_message = on_message mqtt.connect('127.0.0.1', 1883) mqtt.loop_forever()
[ 1, 529, 276, 1112, 420, 29958, 7345, 3510, 911, 29891, 29914, 29879, 1240, 567, 264, 2934, 29906, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29906, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 5215, 282, 29745, 29889, 28466, 698, 29889, 4645, 408, 286, 29939, 698, 13, 5215, 4390, 13, 5215, 1732, 1982, 13, 13, 1753, 373, 29918, 6915, 29898, 4645, 29892, 1404, 1272, 29892, 13449, 29892, 364, 29883, 1125, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 15123, 29918, 517, 1495, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 15494, 4924, 29918, 265, 1495, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 15494, 4924, 29918, 2696, 1495, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 24623, 29918, 3204, 1495, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 24623, 29918, 786, 1495, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 29920, 481, 29918, 11333, 1495, 13, 1678, 286, 29939, 698, 29889, 19496, 877, 29882, 837, 267, 29914, 14029, 29914, 7345, 3510, 911, 29891, 29901, 29920, 481, 29918, 1627, 1328, 1495, 13, 1753, 373, 29918, 4906, 29898, 4645, 29892, 1404, 1272, 29892, 10191, 1125, 13, 1678, 396, 20969, 278, 4390, 2933, 13, 1678, 7609, 29918, 3126, 353, 4390, 29889, 18132, 29898, 7645, 29889, 23813, 29897, 13, 1678, 7609, 1170, 353, 7609, 29918, 3126, 1839, 14029, 16215, 14029, 1170, 2033, 13, 1678, 2243, 1862, 353, 7609, 29918, 3126, 1839, 2536, 1862, 2033, 13, 1678, 396, 21497, 353, 2243, 1862, 29961, 29900, 22322, 1767, 16215, 1767, 2033, 13, 1678, 1596, 877, 10286, 6571, 4286, 4830, 29898, 14029, 1170, 876, 13, 259, 13, 268, 13, 13, 1678, 363, 21497, 297, 2243, 1862, 29901, 13, 4706, 21497, 29918, 978, 353, 21497, 1839, 2536, 327, 1170, 2033, 13, 4706, 10650, 29918, 1767, 353, 21497, 1839, 1610, 1917, 2033, 13, 4706, 995, 353, 21497, 1839, 1767, 16215, 1767, 2033, 13, 4706, 1596, 877, 29903, 8276, 6571, 1599, 320, 29876, 29905, 29873, 22131, 29901, 6571, 320, 29873, 1917, 29901, 6571, 4286, 4830, 29898, 2536, 327, 29918, 978, 29892, 10650, 29918, 1767, 29892, 995, 876, 13, 13, 1678, 378, 353, 1732, 1982, 29889, 10493, 5350, 877, 29896, 29929, 29906, 29889, 29896, 29953, 29947, 29889, 29896, 29955, 29947, 29889, 29906, 29900, 29953, 1495, 13, 1678, 565, 525, 7345, 3510, 911, 29891, 29901, 15494, 4924, 29918, 265, 29915, 1275, 7609, 1170, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 13519, 3859, 29973, 1482, 3859, 29922, 29946, 1159, 13, 1678, 25342, 525, 7345, 3510, 911, 29891, 29901, 15494, 4924, 29918, 2696, 29915, 1275, 7609, 1170, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 13519, 3859, 29973, 1482, 3859, 29922, 29945, 1159, 13, 1678, 25342, 525, 7345, 3510, 911, 29891, 29901, 24623, 29918, 3204, 29915, 1275, 7609, 1170, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 1555, 29973, 842, 29922, 3204, 1159, 13, 1678, 25342, 525, 7345, 3510, 911, 29891, 29901, 24623, 29918, 786, 29915, 1275, 7609, 1170, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 1555, 29973, 842, 29922, 786, 1159, 13, 1678, 25342, 525, 7345, 3510, 911, 29891, 29901, 29920, 481, 29918, 11333, 29915, 1275, 7609, 1170, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 16674, 6451, 29973, 6519, 29922, 29896, 29900, 29953, 1159, 13, 1678, 25342, 525, 7345, 3510, 911, 29891, 29901, 29920, 481, 29918, 11333, 29915, 1275, 7609, 1170, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 16674, 6451, 29973, 6519, 29922, 29896, 29900, 29945, 1159, 13, 1678, 25342, 525, 7345, 3510, 911, 29891, 29901, 15123, 29918, 517, 29915, 1275, 7609, 1170, 322, 525, 17011, 29915, 1275, 21497, 584, 13, 4706, 378, 29889, 3827, 703, 7194, 613, 5591, 2676, 29914, 16674, 6451, 29973, 6519, 29922, 29896, 29900, 29945, 1159, 13, 13, 1678, 1596, 29898, 535, 29889, 657, 5327, 2141, 4882, 29897, 13, 13, 1678, 378, 29889, 5358, 580, 13, 268, 13, 29871, 13, 28466, 698, 353, 286, 29939, 698, 29889, 4032, 580, 13, 28466, 698, 29889, 265, 29918, 6915, 353, 373, 29918, 6915, 13, 28466, 698, 29889, 265, 29918, 4906, 353, 373, 29918, 4906, 13, 28466, 698, 29889, 6915, 877, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 742, 29871, 29896, 29947, 29947, 29941, 29897, 13, 28466, 698, 29889, 7888, 29918, 1079, 369, 580, 13, 2 ]
study_algorithm/python/Linked List/Cycle Check.py
AlphaSunny/study
0
89793
<gh_stars>0 class Node(object): def __init__(self,value): self.value = value self.nextnode = None def cycle_check(node): # Begin both markers at the first node marker1 = node marker2 = node # Go until end of list while marker2 != None and marker2.nextnode != None: # Note marker1 = marker1.nextnode marker2 = marker2.nextnode.nextnode # Check if the markers have matched if marker2 == marker1: return True # Case where marker ahead reaches the end of the list return False """ RUN THIS CELL TO TEST YOUR SOLUTION """ from nose.tools import assert_equal # CREATE CYCLE LIST a = Node(1) b = Node(2) c = Node(3) a.nextnode = b b.nextnode = c c.nextnode = a # Cycle Here! # CREATE NON CYCLE LIST x = Node(1) y = Node(2) z = Node(3) x.nextnode = y y.nextnode = z ############# class TestCycleCheck(object): def test(self,sol): assert_equal(sol(a),True) assert_equal(sol(x),False) print "ALL TEST CASES PASSED" # Run Tests t = TestCycleCheck() t.test(cycle_check)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 1990, 9071, 29898, 3318, 1125, 30004, 13, 1678, 6756, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1767, 1125, 30004, 13, 4706, 6756, 13, 4706, 1583, 29889, 1767, 353, 995, 30004, 13, 4706, 1583, 29889, 4622, 3177, 353, 6213, 30004, 13, 12, 12, 30004, 13, 12, 12, 30004, 13, 12, 12, 30004, 13, 1753, 11412, 29918, 3198, 29898, 3177, 1125, 30004, 13, 30004, 13, 1678, 396, 14893, 1716, 29320, 472, 278, 937, 2943, 30004, 13, 1678, 17456, 29896, 353, 2943, 30004, 13, 1678, 17456, 29906, 353, 2943, 30004, 13, 30004, 13, 1678, 396, 2921, 2745, 1095, 310, 1051, 30004, 13, 1678, 1550, 17456, 29906, 2804, 6213, 322, 17456, 29906, 29889, 4622, 3177, 2804, 6213, 29901, 30004, 13, 4706, 6756, 13, 4706, 396, 3940, 30004, 13, 4706, 17456, 29896, 353, 17456, 29896, 29889, 4622, 3177, 30004, 13, 4706, 17456, 29906, 353, 17456, 29906, 29889, 4622, 3177, 29889, 4622, 3177, 30004, 13, 30004, 13, 4706, 396, 5399, 565, 278, 29320, 505, 19228, 30004, 13, 4706, 565, 17456, 29906, 1275, 17456, 29896, 29901, 30004, 13, 9651, 736, 5852, 30004, 13, 30004, 13, 1678, 396, 11733, 988, 17456, 14432, 22170, 278, 1095, 310, 278, 1051, 30004, 13, 1678, 736, 7700, 30004, 13, 12, 30004, 13, 12, 30004, 13, 15945, 19451, 13, 29934, 3904, 3446, 3235, 14645, 2208, 7495, 17067, 1254, 612, 22970, 317, 5607, 2692, 2725, 30004, 13, 15945, 19451, 13, 3166, 26414, 29889, 8504, 1053, 4974, 29918, 11745, 30004, 13, 30004, 13, 29937, 14602, 315, 29979, 29907, 1307, 365, 9047, 30004, 13, 29874, 353, 9071, 29898, 29896, 8443, 13, 29890, 353, 9071, 29898, 29906, 8443, 13, 29883, 353, 9071, 29898, 29941, 8443, 13, 30004, 13, 29874, 29889, 4622, 3177, 353, 289, 30004, 13, 29890, 29889, 4622, 3177, 353, 274, 30004, 13, 29883, 29889, 4622, 3177, 353, 263, 396, 8045, 2841, 2266, 29991, 30004, 13, 30004, 13, 30004, 13, 29937, 14602, 405, 1164, 315, 29979, 29907, 1307, 365, 9047, 30004, 13, 29916, 353, 9071, 29898, 29896, 8443, 13, 29891, 353, 9071, 29898, 29906, 8443, 13, 29920, 353, 9071, 29898, 29941, 8443, 13, 30004, 13, 29916, 29889, 4622, 3177, 353, 343, 30004, 13, 29891, 29889, 4622, 3177, 353, 503, 30004, 13, 30004, 13, 30004, 13, 7346, 4136, 29937, 30004, 13, 1990, 4321, 29907, 13317, 5596, 29898, 3318, 1125, 30004, 13, 1678, 6756, 13, 1678, 822, 1243, 29898, 1311, 29892, 2929, 1125, 30004, 13, 4706, 4974, 29918, 11745, 29898, 2929, 29898, 29874, 511, 5574, 8443, 13, 4706, 4974, 29918, 11745, 29898, 2929, 29898, 29916, 511, 8824, 8443, 13, 4706, 6756, 13, 4706, 1596, 376, 9818, 17067, 1254, 29134, 29903, 349, 3289, 1660, 29928, 19451, 13, 4706, 6756, 13, 29937, 7525, 4321, 29879, 30004, 13, 30004, 13, 29873, 353, 4321, 29907, 13317, 5596, 26471, 13, 29873, 29889, 1688, 29898, 23090, 29918, 3198, 29897, 2 ]
Algorithms/032_TREE.py
ChaoticMarauder/Project_Rosalind
0
28278
def connected_tree(n, edge_list): current_edges = len(edge_list) edges_needed = (n-1) - current_edges return edges_needed def main(): with open('datasets/rosalind_tree.txt') as input_file: input_data = input_file.read().strip().split('\n') n = int(input_data.pop(0)) edge_list = list(map(int,edge.split()) for edge in input_data) edges_needed = connected_tree(n, edge_list) print(str(edges_needed)) with open('solutions/rosalind_tree.txt', 'w') as output_file: output_file.write(str(edges_needed)) if(__name__=='__main__'): main()
[ 1, 822, 6631, 29918, 8336, 29898, 29876, 29892, 7636, 29918, 1761, 1125, 13, 1678, 1857, 29918, 287, 2710, 353, 7431, 29898, 12864, 29918, 1761, 29897, 13, 1678, 12770, 29918, 484, 19226, 353, 313, 29876, 29899, 29896, 29897, 448, 1857, 29918, 287, 2710, 13, 268, 13, 1678, 736, 12770, 29918, 484, 19226, 13, 13, 1753, 1667, 7295, 13, 1678, 411, 1722, 877, 14538, 1691, 29914, 1883, 284, 513, 29918, 8336, 29889, 3945, 1495, 408, 1881, 29918, 1445, 29901, 13, 4706, 1881, 29918, 1272, 353, 1881, 29918, 1445, 29889, 949, 2141, 17010, 2141, 5451, 28909, 29876, 1495, 13, 308, 13, 1678, 302, 353, 938, 29898, 2080, 29918, 1272, 29889, 7323, 29898, 29900, 876, 13, 1678, 7636, 29918, 1761, 353, 1051, 29898, 1958, 29898, 524, 29892, 12864, 29889, 5451, 3101, 363, 7636, 297, 1881, 29918, 1272, 29897, 13, 268, 13, 1678, 12770, 29918, 484, 19226, 353, 6631, 29918, 8336, 29898, 29876, 29892, 7636, 29918, 1761, 29897, 13, 268, 13, 1678, 1596, 29898, 710, 29898, 287, 2710, 29918, 484, 19226, 876, 13, 268, 13, 1678, 411, 1722, 877, 2929, 17925, 29914, 1883, 284, 513, 29918, 8336, 29889, 3945, 742, 525, 29893, 1495, 408, 1962, 29918, 1445, 29901, 13, 4706, 1962, 29918, 1445, 29889, 3539, 29898, 710, 29898, 287, 2710, 29918, 484, 19226, 876, 13, 308, 13, 361, 22168, 978, 1649, 1360, 29915, 1649, 3396, 1649, 29374, 13, 1678, 1667, 580, 13, 268, 2 ]
aoc_cas/aoc2021/day9.py
TedCassirer/advent-of-code
1
112574
def getGrid(data): return [[int(n) for n in row] for row in data.splitlines()] def lowPoints(grid): M, N = len(grid), len(grid[0]) for y, row in enumerate(grid): for x, n in enumerate(row): right = grid[y][x + 1] if x != N - 1 else 9 up = grid[y - 1][x] if y != 0 else 9 left = grid[y][x - 1] if x != 0 else 9 down = grid[y + 1][x] if y != M - 1 else 9 if n < min((right, up, left, down)): yield y, x def bfs(grid, y, x): if grid[y][x] == 9: return [] M, N = len(grid), len(grid[0]) basin = set() stack = [(y, x)] while stack: y, x = stack.pop() if (y, x) in basin or y < 0 or y == M or x < 0 or x == N or grid[y][x] == 9: continue basin.add((y, x)) stack.extend([(y + 1, x), (y - 1, x), (y, x + 1), (y, x - 1)]) return basin def part1(data): grid = getGrid(data) return sum(1 + grid[y][x] for y, x in lowPoints(grid)) def part2(data): grid = getGrid(data) M, N = len(grid), len(grid[0]) basins = [] seen = set() for y in range(M): for x in range(N): if (y, x) in seen: continue basin = bfs(grid, y, x) basins.append(len(basin)) seen.update(basin) b1, b2, b3 = sorted(basins, reverse=True)[:3] return b1 * b2 * b3 if __name__ == "__main__": from aocd import get_data data = get_data(year=2021, day=9) print(part1(data)) print(part2(data))
[ 1, 822, 679, 5756, 29898, 1272, 1125, 13, 1678, 736, 5519, 524, 29898, 29876, 29897, 363, 302, 297, 1948, 29962, 363, 1948, 297, 848, 29889, 5451, 9012, 580, 29962, 13, 13, 13, 1753, 4482, 20325, 29898, 7720, 1125, 13, 1678, 341, 29892, 405, 353, 7431, 29898, 7720, 511, 7431, 29898, 7720, 29961, 29900, 2314, 13, 1678, 363, 343, 29892, 1948, 297, 26985, 29898, 7720, 1125, 13, 4706, 363, 921, 29892, 302, 297, 26985, 29898, 798, 1125, 13, 9651, 1492, 353, 6856, 29961, 29891, 3816, 29916, 718, 29871, 29896, 29962, 565, 921, 2804, 405, 448, 29871, 29896, 1683, 29871, 29929, 13, 9651, 701, 353, 6856, 29961, 29891, 448, 29871, 29896, 3816, 29916, 29962, 565, 343, 2804, 29871, 29900, 1683, 29871, 29929, 13, 9651, 2175, 353, 6856, 29961, 29891, 3816, 29916, 448, 29871, 29896, 29962, 565, 921, 2804, 29871, 29900, 1683, 29871, 29929, 13, 9651, 1623, 353, 6856, 29961, 29891, 718, 29871, 29896, 3816, 29916, 29962, 565, 343, 2804, 341, 448, 29871, 29896, 1683, 29871, 29929, 13, 9651, 565, 302, 529, 1375, 3552, 1266, 29892, 701, 29892, 2175, 29892, 1623, 22164, 13, 18884, 7709, 343, 29892, 921, 13, 13, 13, 1753, 289, 5847, 29898, 7720, 29892, 343, 29892, 921, 1125, 13, 1678, 565, 6856, 29961, 29891, 3816, 29916, 29962, 1275, 29871, 29929, 29901, 13, 4706, 736, 5159, 13, 13, 1678, 341, 29892, 405, 353, 7431, 29898, 7720, 511, 7431, 29898, 7720, 29961, 29900, 2314, 13, 13, 1678, 2362, 262, 353, 731, 580, 13, 1678, 5096, 353, 17288, 29891, 29892, 921, 4638, 13, 1678, 1550, 5096, 29901, 13, 4706, 343, 29892, 921, 353, 5096, 29889, 7323, 580, 13, 4706, 565, 313, 29891, 29892, 921, 29897, 297, 2362, 262, 470, 343, 529, 29871, 29900, 470, 343, 1275, 341, 470, 921, 529, 29871, 29900, 470, 921, 1275, 405, 470, 6856, 29961, 29891, 3816, 29916, 29962, 1275, 29871, 29929, 29901, 13, 9651, 6773, 13, 4706, 2362, 262, 29889, 1202, 3552, 29891, 29892, 921, 876, 13, 4706, 5096, 29889, 21843, 4197, 29898, 29891, 718, 29871, 29896, 29892, 921, 511, 313, 29891, 448, 29871, 29896, 29892, 921, 511, 313, 29891, 29892, 921, 718, 29871, 29896, 511, 313, 29891, 29892, 921, 448, 29871, 29896, 29897, 2314, 13, 1678, 736, 2362, 262, 13, 13, 13, 1753, 760, 29896, 29898, 1272, 1125, 13, 1678, 6856, 353, 679, 5756, 29898, 1272, 29897, 13, 1678, 736, 2533, 29898, 29896, 718, 6856, 29961, 29891, 3816, 29916, 29962, 363, 343, 29892, 921, 297, 4482, 20325, 29898, 7720, 876, 13, 13, 13, 1753, 760, 29906, 29898, 1272, 1125, 13, 1678, 6856, 353, 679, 5756, 29898, 1272, 29897, 13, 1678, 341, 29892, 405, 353, 7431, 29898, 7720, 511, 7431, 29898, 7720, 29961, 29900, 2314, 13, 1678, 2362, 1144, 353, 5159, 13, 1678, 3595, 353, 731, 580, 13, 1678, 363, 343, 297, 3464, 29898, 29924, 1125, 13, 4706, 363, 921, 297, 3464, 29898, 29940, 1125, 13, 9651, 565, 313, 29891, 29892, 921, 29897, 297, 3595, 29901, 13, 18884, 6773, 13, 9651, 2362, 262, 353, 289, 5847, 29898, 7720, 29892, 343, 29892, 921, 29897, 13, 9651, 2362, 1144, 29889, 4397, 29898, 2435, 29898, 6500, 262, 876, 13, 9651, 3595, 29889, 5504, 29898, 6500, 262, 29897, 13, 1678, 289, 29896, 29892, 289, 29906, 29892, 289, 29941, 353, 12705, 29898, 6500, 1144, 29892, 11837, 29922, 5574, 29897, 7503, 29941, 29962, 13, 1678, 736, 289, 29896, 334, 289, 29906, 334, 289, 29941, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 515, 263, 542, 29881, 1053, 679, 29918, 1272, 13, 13, 1678, 848, 353, 679, 29918, 1272, 29898, 6360, 29922, 29906, 29900, 29906, 29896, 29892, 2462, 29922, 29929, 29897, 13, 13, 1678, 1596, 29898, 1595, 29896, 29898, 1272, 876, 13, 1678, 1596, 29898, 1595, 29906, 29898, 1272, 876, 13, 2 ]
rmon/processes/__init__.py
gnkr8/rmon
1
145395
<reponame>gnkr8/rmon from .base import Process
[ 1, 529, 276, 1112, 420, 29958, 5138, 12748, 29947, 29914, 1758, 265, 13, 3166, 869, 3188, 1053, 10554, 13, 13, 2 ]
tests/band_tests.py
fortyninemaps/karta
84
189578
<reponame>fortyninemaps/karta<gh_stars>10-100 import unittest import numpy as np import numpy.testing as npt from karta.raster import SimpleBand, CompressedBand from karta.raster.band import BandIndexer class GenericBandTests(object): """ Tests that all Band classes must pass """ def test_get_dtype(self): band = self.type((64, 64), np.float64, **self.initkwargs) self.assertEqual(band.dtype, np.float64) #def test_setblock_getblock_striped(self): # x, y = np.meshgrid(np.arange(832), np.arange(1024)) # d = (x**2+np.sqrt(y))[::2, ::3] # band = self.type((1024, 1024), np.float64, **self.initkwargs) # bi = BandIndexer([band]) # bi[::2, 128:960:3, 0] = d # self.assertEqual(np.sum(bi[::2, 128:960:3, 0]-d), 0.0) def test_setblock_getblock_full(self): x, y = np.meshgrid(np.arange(1024), np.arange(1024)) d = x**2+np.sqrt(y) band = self.type((1024, 1024), np.float64, **self.initkwargs) band.setblock(0, 0, d) self.assertEqual(np.sum(band.getblock(0, 0, 1024, 1024) - d), 0.0) def test_setblock_getblock_partial(self): x, y = np.meshgrid(np.arange(1024), np.arange(832)) d = x**2+np.sqrt(y) band = self.type((1024, 1024), np.float64, **self.initkwargs) band.setblock(128, 0, d) self.assertEqual(np.sum(band.getblock(128, 0, 832, 1024) - d), 0.0) def test_get_scalar(self): x, y = np.meshgrid(np.arange(1024), np.arange(1024)) d = x**2+np.sqrt(y) band = self.type((1024, 1024), np.float64, **self.initkwargs) band.setblock(0, 0, d) self.assertTrue(band.getblock(4, 3, 1, 1).shape, (1, 1)) self.assertEqual(band.getblock(4, 3, 1, 1)[0], 11.0) def test_initval(self): band = self.type((1024, 1024), np.float64, initval=0.0) self.assertTrue(band is not None) class SimpleBandTests(unittest.TestCase, GenericBandTests): def setUp(self): self.type = SimpleBand self.initkwargs = dict() class CompressedBandTests(unittest.TestCase, GenericBandTests): def setUp(self): self.type = CompressedBand self.initkwargs = dict(chunksize=(256, 256)) class BandIndexerTests(unittest.TestCase): def test_get_set_typeerror(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] indexer = BandIndexer(bands) with self.assertRaises(TypeError): indexer[None] with self.assertRaises(TypeError): indexer[None] = 3.0 def test_get_masked(self): values = np.ones([16, 16]) band = CompressedBand((16, 16), np.float32) band.setblock(0, 0, values) indexer = BandIndexer([band]) mask = np.zeros([16, 16], dtype=np.bool) mask[8:, 2:] = True self.assertEqual(np.sum(indexer[mask]), 112) def test_set_masked(self): values = np.ones([16, 16]) band = CompressedBand((16, 16), np.float32) band.setblock(0, 0, values) indexer = BandIndexer([band]) mask = np.zeros([16, 16], dtype=np.bool) mask[8:, 2:] = True indexer[mask] = -1 self.assertEqual(np.sum(indexer[:,:]), 32) def test_get_errors(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] indexer = BandIndexer(bands) with self.assertRaises(TypeError): indexer["a", 0, 0] with self.assertRaises(TypeError): indexer[0, [1, 3], 0] with self.assertRaises(TypeError): indexer[0, 0, None] def test_set_errors(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] indexer = BandIndexer(bands) with self.assertRaises(TypeError): indexer["a", 0, 0] = 1.0 with self.assertRaises(TypeError): indexer[0, [1, 3], 0] = 1.0 with self.assertRaises(TypeError): indexer[0, 0, None] = 1.0 def test_get_integer(self): values = np.ones([16, 16]) bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] bands[0].setblock(0, 0, values) bands[1].setblock(0, 0, 2*values) bands[2].setblock(0, 0, 3*values) indexer = BandIndexer(bands) result = indexer[10,2] npt.assert_equal(result, np.array([1.0, 2.0, 3.0])) result = indexer[10,2,:] npt.assert_equal(result, np.array([1.0, 2.0, 3.0])) # make sure it works with a scalar band index result = indexer[10,2,1] self.assertEqual(result, 2.0) def test_set_integer(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] indexer = BandIndexer(bands) indexer[3,4,0] = -1.0 self.assertEqual(bands[0].getblock(3, 4, 1, 1)[0], -1.0) indexer[4,5,:] = np.array([1.0, 2.0, 3.0]) self.assertEqual(bands[0].getblock(4, 5, 1, 1)[0], 1.0) self.assertEqual(bands[1].getblock(4, 5, 1, 1)[0], 2.0) self.assertEqual(bands[2].getblock(4, 5, 1, 1)[0], 3.0) indexer[5,6,:] = 5.0 self.assertEqual(bands[0].getblock(5, 6, 1, 1)[0], 5.0) self.assertEqual(bands[1].getblock(5, 6, 1, 1)[0], 5.0) self.assertEqual(bands[2].getblock(5, 6, 1, 1)[0], 5.0) def test_get_slice(self): values = np.ones([16, 16]) bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] bands[0].setblock(0, 0, values) bands[1].setblock(0, 0, 2*values) bands[2].setblock(0, 0, 3*values) indexer = BandIndexer(bands) result = indexer[4:7,2:8,:] self.assertEqual(result.shape, (3, 6, 3)) npt.assert_equal(result[0,0,:], np.array([1.0, 2.0, 3.0])) result = indexer[12:] self.assertEqual(result.shape, (4, 16, 3)) npt.assert_equal(result[0,0,:], np.array([1.0, 2.0, 3.0])) # make sure it works with a scalar band index result = indexer[4:7,2:8,1] self.assertEqual(result.shape, (3, 6)) npt.assert_equal(result, 2.0) def test_set_slice(self): values = np.ones([16, 16]) bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] indexer = BandIndexer(bands) indexer[:,:,0] = values indexer[:,:,1:] = 2*values npt.assert_equal(bands[0].getblock(0, 0, 16, 16), 1.0) npt.assert_equal(bands[1].getblock(0, 0, 16, 16), 2.0) npt.assert_equal(bands[2].getblock(0, 0, 16, 16), 2.0) indexer[:,:,1:] = np.dstack([2*values, 3*values]) npt.assert_equal(bands[1].getblock(0, 0, 16, 16), 2.0) npt.assert_equal(bands[2].getblock(0, 0, 16, 16), 3.0) def test_get_mask2(self): values = np.ones([3, 3]) bands = [CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32)] bands[0].setblock(0, 0, values) bands[1].setblock(0, 0, 2*values) bands[2].setblock(0, 0, 3*values) indexer = BandIndexer(bands) mask = np.array([[True, False, False], [False, True, False], [False, False, True]]) result = indexer[mask] npt.assert_equal(np.tile(np.array([1, 2, 3]), (3, 1)), result) def test_set_mask2(self): values = np.ones([3, 3]) bands = [CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32)] bands[0].setblock(0, 0, values) bands[1].setblock(0, 0, 2*values) bands[2].setblock(0, 0, 3*values) indexer = BandIndexer(bands) mask = np.array([[True, False, False], [False, True, False], [False, False, True]]) indexer[mask] = -1 for band in bands: self.assertEqual(band.getblock(0, 0, 1, 1)[0], -1.0) self.assertEqual(band.getblock(1, 1, 1, 1)[0], -1.0) self.assertEqual(band.getblock(2, 2, 1, 1)[0], -1.0) def test_get_mask3(self): values = np.ones([3, 3]) bands = [CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32)] bands[0].setblock(0, 0, values) bands[1].setblock(0, 0, 2*values) bands[2].setblock(0, 0, 3*values) indexer = BandIndexer(bands) # Create mask in band, row, column order than use np.moveaxis to put in # row, column, band order for karta mask = np.array([ [[True, False, False], [False, True, False], [False, False, True]], [[False, False, False], [False, False, False], [False, True, False]], [[True, False, False], [False, False, False], [True, False, True]]]) result = indexer[np.moveaxis(mask, 0, -1)] expected = np.array([1, 3, 1, 3, 2, 1, 3]) npt.assert_equal(expected, result) def test_set_mask3(self): values = np.ones([3, 3]) bands = [CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32), CompressedBand((3, 3), np.float32)] bands[0].setblock(0, 0, values) bands[1].setblock(0, 0, 2*values) bands[2].setblock(0, 0, 3*values) indexer = BandIndexer(bands) # Create mask in band, row, column order than use np.moveaxis to put in # row, column, band order for karta mask = np.array([ [[True, False, False], [False, True, False], [False, False, True]], [[False, False, False], [False, False, False], [False, True, False]], [[True, False, False], [False, False, False], [True, False, True]]]) indexer[np.moveaxis(mask, 0, -1)] = -1 self.assertEqual(bands[0].getblock(0, 0, 1, 1)[0], -1) self.assertEqual(bands[1].getblock(2, 1, 1, 1)[0], -1) self.assertEqual(bands[2].getblock(0, 0, 1, 1)[0], -1) self.assertEqual(bands[2].getblock(2, 0, 1, 1)[0], -1) def test_set_masked_scalar(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] mask = np.zeros([16, 16], dtype=np.bool) mask[8:, 2:] = True indexer = BandIndexer(bands) indexer[:,:] = np.zeros([16, 16]) indexer[mask] = 1.0 self.assertEqual(np.sum(indexer[:,:]), 336) def test_set_masked_array(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] mask = np.zeros([16, 16], dtype=np.bool) mask[8:, 2:] = True indexer = BandIndexer(bands) indexer[:,:,:] = np.zeros([16, 16]) indexer[mask] = np.ones(8*14) self.assertEqual(np.sum(indexer[:,:]), 336) def test_shape(self): bands = [CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32), CompressedBand((16, 16), np.float32)] indexer1 = BandIndexer([bands[0]]) self.assertEqual(indexer1.shape, (16, 16)) indexer3 = BandIndexer(bands) self.assertEqual(indexer3.shape, (16, 16)) if __name__ == "__main__": unittest.main()
[ 1, 529, 276, 1112, 420, 29958, 3921, 948, 262, 331, 2547, 29914, 29895, 16979, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 443, 27958, 13, 5215, 12655, 408, 7442, 13, 5215, 12655, 29889, 13424, 408, 302, 415, 13, 13, 3166, 413, 16979, 29889, 29878, 1901, 1053, 12545, 29933, 392, 29892, 422, 13120, 29933, 392, 13, 3166, 413, 16979, 29889, 29878, 1901, 29889, 4980, 1053, 5158, 3220, 261, 13, 13, 1990, 3251, 293, 29933, 392, 24376, 29898, 3318, 1125, 13, 1678, 9995, 4321, 29879, 393, 599, 5158, 4413, 1818, 1209, 9995, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 29881, 1853, 29898, 1311, 1125, 13, 4706, 3719, 353, 1583, 29889, 1853, 3552, 29953, 29946, 29892, 29871, 29953, 29946, 511, 7442, 29889, 7411, 29953, 29946, 29892, 3579, 1311, 29889, 2344, 19290, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 4980, 29889, 29881, 1853, 29892, 7442, 29889, 7411, 29953, 29946, 29897, 13, 13, 1678, 396, 1753, 1243, 29918, 842, 1271, 29918, 657, 1271, 29918, 17010, 287, 29898, 1311, 1125, 13, 1678, 396, 1678, 921, 29892, 343, 353, 7442, 29889, 4467, 29882, 7720, 29898, 9302, 29889, 279, 927, 29898, 29947, 29941, 29906, 511, 7442, 29889, 279, 927, 29898, 29896, 29900, 29906, 29946, 876, 13, 1678, 396, 1678, 270, 353, 313, 29916, 1068, 29906, 29974, 9302, 29889, 3676, 29898, 29891, 876, 29961, 1057, 29906, 29892, 4761, 29941, 29962, 13, 13, 1678, 396, 1678, 3719, 353, 1583, 29889, 1853, 3552, 29896, 29900, 29906, 29946, 29892, 29871, 29896, 29900, 29906, 29946, 511, 7442, 29889, 7411, 29953, 29946, 29892, 3579, 1311, 29889, 2344, 19290, 29897, 13, 1678, 396, 1678, 4768, 353, 5158, 3220, 261, 4197, 4980, 2314, 13, 1678, 396, 1678, 4768, 29961, 1057, 29906, 29892, 29871, 29896, 29906, 29947, 29901, 29929, 29953, 29900, 29901, 29941, 29892, 29871, 29900, 29962, 353, 270, 13, 13, 1678, 396, 1678, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 5365, 29961, 1057, 29906, 29892, 29871, 29896, 29906, 29947, 29901, 29929, 29953, 29900, 29901, 29941, 29892, 29871, 29900, 29962, 29899, 29881, 511, 29871, 29900, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 1271, 29918, 657, 1271, 29918, 8159, 29898, 1311, 1125, 13, 4706, 921, 29892, 343, 353, 7442, 29889, 4467, 29882, 7720, 29898, 9302, 29889, 279, 927, 29898, 29896, 29900, 29906, 29946, 511, 7442, 29889, 279, 927, 29898, 29896, 29900, 29906, 29946, 876, 13, 4706, 270, 353, 921, 1068, 29906, 29974, 9302, 29889, 3676, 29898, 29891, 29897, 13, 13, 4706, 3719, 353, 1583, 29889, 1853, 3552, 29896, 29900, 29906, 29946, 29892, 29871, 29896, 29900, 29906, 29946, 511, 7442, 29889, 7411, 29953, 29946, 29892, 3579, 1311, 29889, 2344, 19290, 29897, 13, 4706, 3719, 29889, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 270, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 4980, 29889, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29900, 29906, 29946, 29892, 29871, 29896, 29900, 29906, 29946, 29897, 448, 270, 511, 29871, 29900, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 1271, 29918, 657, 1271, 29918, 3846, 29898, 1311, 1125, 13, 4706, 921, 29892, 343, 353, 7442, 29889, 4467, 29882, 7720, 29898, 9302, 29889, 279, 927, 29898, 29896, 29900, 29906, 29946, 511, 7442, 29889, 279, 927, 29898, 29947, 29941, 29906, 876, 13, 4706, 270, 353, 921, 1068, 29906, 29974, 9302, 29889, 3676, 29898, 29891, 29897, 13, 13, 4706, 3719, 353, 1583, 29889, 1853, 3552, 29896, 29900, 29906, 29946, 29892, 29871, 29896, 29900, 29906, 29946, 511, 7442, 29889, 7411, 29953, 29946, 29892, 3579, 1311, 29889, 2344, 19290, 29897, 13, 4706, 3719, 29889, 842, 1271, 29898, 29896, 29906, 29947, 29892, 29871, 29900, 29892, 270, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 4980, 29889, 657, 1271, 29898, 29896, 29906, 29947, 29892, 29871, 29900, 29892, 29871, 29947, 29941, 29906, 29892, 29871, 29896, 29900, 29906, 29946, 29897, 448, 270, 511, 29871, 29900, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 19529, 279, 29898, 1311, 1125, 13, 4706, 921, 29892, 343, 353, 7442, 29889, 4467, 29882, 7720, 29898, 9302, 29889, 279, 927, 29898, 29896, 29900, 29906, 29946, 511, 7442, 29889, 279, 927, 29898, 29896, 29900, 29906, 29946, 876, 13, 4706, 270, 353, 921, 1068, 29906, 29974, 9302, 29889, 3676, 29898, 29891, 29897, 13, 13, 4706, 3719, 353, 1583, 29889, 1853, 3552, 29896, 29900, 29906, 29946, 29892, 29871, 29896, 29900, 29906, 29946, 511, 7442, 29889, 7411, 29953, 29946, 29892, 3579, 1311, 29889, 2344, 19290, 29897, 13, 4706, 3719, 29889, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 270, 29897, 13, 13, 4706, 1583, 29889, 9294, 5574, 29898, 4980, 29889, 657, 1271, 29898, 29946, 29892, 29871, 29941, 29892, 29871, 29896, 29892, 29871, 29896, 467, 12181, 29892, 313, 29896, 29892, 29871, 29896, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 4980, 29889, 657, 1271, 29898, 29946, 29892, 29871, 29941, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29896, 29896, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 2344, 791, 29898, 1311, 1125, 13, 4706, 3719, 353, 1583, 29889, 1853, 3552, 29896, 29900, 29906, 29946, 29892, 29871, 29896, 29900, 29906, 29946, 511, 7442, 29889, 7411, 29953, 29946, 29892, 2069, 791, 29922, 29900, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 5574, 29898, 4980, 338, 451, 6213, 29897, 13, 13, 13, 1990, 12545, 29933, 392, 24376, 29898, 348, 27958, 29889, 3057, 8259, 29892, 3251, 293, 29933, 392, 24376, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1853, 353, 12545, 29933, 392, 13, 4706, 1583, 29889, 2344, 19290, 353, 9657, 580, 13, 13, 13, 1990, 422, 13120, 29933, 392, 24376, 29898, 348, 27958, 29889, 3057, 8259, 29892, 3251, 293, 29933, 392, 24376, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1853, 353, 422, 13120, 29933, 392, 13, 4706, 1583, 29889, 2344, 19290, 353, 9657, 29898, 305, 18801, 675, 7607, 29906, 29945, 29953, 29892, 29871, 29906, 29945, 29953, 876, 13, 13, 1990, 5158, 3220, 261, 24376, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 842, 29918, 1853, 2704, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 29961, 8516, 29962, 13, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 29961, 8516, 29962, 353, 29871, 29941, 29889, 29900, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 13168, 287, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 3719, 353, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 29897, 13, 4706, 3719, 29889, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 4197, 4980, 2314, 13, 13, 4706, 11105, 353, 7442, 29889, 3298, 359, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 1402, 26688, 29922, 9302, 29889, 11227, 29897, 13, 4706, 11105, 29961, 29947, 29901, 29892, 29871, 29906, 17531, 353, 5852, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 2248, 261, 29961, 13168, 11724, 29871, 29896, 29896, 29906, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 13168, 287, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 3719, 353, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 29897, 13, 4706, 3719, 29889, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 4197, 4980, 2314, 13, 13, 4706, 11105, 353, 7442, 29889, 3298, 359, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 1402, 26688, 29922, 9302, 29889, 11227, 29897, 13, 4706, 11105, 29961, 29947, 29901, 29892, 29871, 29906, 17531, 353, 5852, 13, 13, 4706, 2380, 261, 29961, 13168, 29962, 353, 448, 29896, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 2248, 261, 7503, 29892, 29901, 11724, 29871, 29941, 29906, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 12523, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 3366, 29874, 613, 29871, 29900, 29892, 29871, 29900, 29962, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 29961, 29900, 29892, 518, 29896, 29892, 29871, 29941, 1402, 29871, 29900, 29962, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 29961, 29900, 29892, 29871, 29900, 29892, 6213, 29962, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 12523, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 3366, 29874, 613, 29871, 29900, 29892, 29871, 29900, 29962, 353, 29871, 29896, 29889, 29900, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 29961, 29900, 29892, 518, 29896, 29892, 29871, 29941, 1402, 29871, 29900, 29962, 353, 29871, 29896, 29889, 29900, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 1125, 13, 9651, 2380, 261, 29961, 29900, 29892, 29871, 29900, 29892, 6213, 29962, 353, 29871, 29896, 29889, 29900, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 16031, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 22706, 29961, 29900, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 22706, 29961, 29896, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29930, 5975, 29897, 13, 4706, 22706, 29961, 29906, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29941, 29930, 5975, 29897, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 13, 4706, 1121, 353, 2380, 261, 29961, 29896, 29900, 29892, 29906, 29962, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 2914, 29892, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 12622, 13, 13, 4706, 1121, 353, 2380, 261, 29961, 29896, 29900, 29892, 29906, 29892, 17531, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 2914, 29892, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 12622, 13, 13, 4706, 396, 1207, 1854, 372, 1736, 411, 263, 17336, 3719, 2380, 13, 4706, 1121, 353, 2380, 261, 29961, 29896, 29900, 29892, 29906, 29892, 29896, 29962, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2914, 29892, 29871, 29906, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 16031, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 13, 4706, 2380, 261, 29961, 29941, 29892, 29946, 29892, 29900, 29962, 353, 448, 29896, 29889, 29900, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29900, 1822, 657, 1271, 29898, 29941, 29892, 29871, 29946, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29889, 29900, 29897, 13, 13, 4706, 2380, 261, 29961, 29946, 29892, 29945, 29892, 17531, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 2314, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29900, 1822, 657, 1271, 29898, 29946, 29892, 29871, 29945, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29896, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29896, 1822, 657, 1271, 29898, 29946, 29892, 29871, 29945, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29906, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29906, 1822, 657, 1271, 29898, 29946, 29892, 29871, 29945, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29941, 29889, 29900, 29897, 13, 13, 4706, 2380, 261, 29961, 29945, 29892, 29953, 29892, 17531, 353, 29871, 29945, 29889, 29900, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29900, 1822, 657, 1271, 29898, 29945, 29892, 29871, 29953, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29945, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29896, 1822, 657, 1271, 29898, 29945, 29892, 29871, 29953, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29945, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29906, 1822, 657, 1271, 29898, 29945, 29892, 29871, 29953, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 29871, 29945, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 18337, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 22706, 29961, 29900, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 22706, 29961, 29896, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29930, 5975, 29897, 13, 4706, 22706, 29961, 29906, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29941, 29930, 5975, 29897, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 13, 4706, 1121, 353, 2380, 261, 29961, 29946, 29901, 29955, 29892, 29906, 29901, 29947, 29892, 17531, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2914, 29889, 12181, 29892, 313, 29941, 29892, 29871, 29953, 29892, 29871, 29941, 876, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 2914, 29961, 29900, 29892, 29900, 29892, 29901, 1402, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 12622, 13, 13, 4706, 1121, 353, 2380, 261, 29961, 29896, 29906, 17531, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2914, 29889, 12181, 29892, 313, 29946, 29892, 29871, 29896, 29953, 29892, 29871, 29941, 876, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 2914, 29961, 29900, 29892, 29900, 29892, 29901, 1402, 7442, 29889, 2378, 4197, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 12622, 13, 13, 4706, 396, 1207, 1854, 372, 1736, 411, 263, 17336, 3719, 2380, 13, 4706, 1121, 353, 2380, 261, 29961, 29946, 29901, 29955, 29892, 29906, 29901, 29947, 29892, 29896, 29962, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2914, 29889, 12181, 29892, 313, 29941, 29892, 29871, 29953, 876, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 2914, 29892, 29871, 29906, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 18337, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 13, 4706, 2380, 261, 7503, 29892, 29901, 29892, 29900, 29962, 353, 1819, 13, 4706, 2380, 261, 7503, 29892, 29901, 29892, 29896, 17531, 353, 29871, 29906, 29930, 5975, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 29890, 4167, 29961, 29900, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29953, 29892, 29871, 29896, 29953, 511, 29871, 29896, 29889, 29900, 29897, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 29890, 4167, 29961, 29896, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29953, 29892, 29871, 29896, 29953, 511, 29871, 29906, 29889, 29900, 29897, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 29890, 4167, 29961, 29906, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29953, 29892, 29871, 29896, 29953, 511, 29871, 29906, 29889, 29900, 29897, 13, 13, 4706, 2380, 261, 7503, 29892, 29901, 29892, 29896, 17531, 353, 7442, 29889, 29881, 1429, 4197, 29906, 29930, 5975, 29892, 29871, 29941, 29930, 5975, 2314, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 29890, 4167, 29961, 29896, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29953, 29892, 29871, 29896, 29953, 511, 29871, 29906, 29889, 29900, 29897, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 29890, 4167, 29961, 29906, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29953, 29892, 29871, 29896, 29953, 511, 29871, 29941, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 13168, 29906, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29941, 29892, 29871, 29941, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 22706, 29961, 29900, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 22706, 29961, 29896, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29930, 5975, 29897, 13, 4706, 22706, 29961, 29906, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29941, 29930, 5975, 29897, 13, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 11105, 353, 7442, 29889, 2378, 4197, 29961, 5574, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 5852, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 5852, 24960, 13, 4706, 1121, 353, 2380, 261, 29961, 13168, 29962, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 9302, 29889, 29873, 488, 29898, 9302, 29889, 2378, 4197, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 11724, 313, 29941, 29892, 29871, 29896, 8243, 1121, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 13168, 29906, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29941, 29892, 29871, 29941, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 22706, 29961, 29900, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 22706, 29961, 29896, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29930, 5975, 29897, 13, 4706, 22706, 29961, 29906, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29941, 29930, 5975, 29897, 13, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 11105, 353, 7442, 29889, 2378, 4197, 29961, 5574, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 5852, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 5852, 24960, 13, 4706, 2380, 261, 29961, 13168, 29962, 353, 448, 29896, 13, 4706, 363, 3719, 297, 22706, 29901, 13, 9651, 1583, 29889, 9294, 9843, 29898, 4980, 29889, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29889, 29900, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 4980, 29889, 657, 1271, 29898, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29889, 29900, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 4980, 29889, 657, 1271, 29898, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 13168, 29941, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29941, 29892, 29871, 29941, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 22706, 29961, 29900, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 22706, 29961, 29896, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29930, 5975, 29897, 13, 4706, 22706, 29961, 29906, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29941, 29930, 5975, 29897, 13, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 396, 6204, 11105, 297, 3719, 29892, 1948, 29892, 1897, 1797, 1135, 671, 7442, 29889, 11631, 8990, 304, 1925, 297, 13, 4706, 396, 1948, 29892, 1897, 29892, 3719, 1797, 363, 413, 16979, 13, 4706, 11105, 353, 7442, 29889, 2378, 4197, 13, 9651, 5519, 5574, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 5852, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 5852, 20526, 13, 9651, 5519, 8824, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 5852, 29892, 7700, 20526, 13, 9651, 5519, 5574, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 7700, 1402, 518, 5574, 29892, 7700, 29892, 5852, 5262, 2314, 13, 4706, 1121, 353, 2380, 261, 29961, 9302, 29889, 11631, 8990, 29898, 13168, 29892, 29871, 29900, 29892, 448, 29896, 4638, 13, 4706, 3806, 353, 7442, 29889, 2378, 4197, 29896, 29892, 29871, 29941, 29892, 29871, 29896, 29892, 29871, 29941, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29941, 2314, 13, 4706, 302, 415, 29889, 9294, 29918, 11745, 29898, 9684, 29892, 1121, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 13168, 29941, 29898, 1311, 1125, 13, 4706, 1819, 353, 7442, 29889, 2873, 4197, 29941, 29892, 29871, 29941, 2314, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29941, 29892, 29871, 29941, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 4706, 22706, 29961, 29900, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 1819, 29897, 13, 4706, 22706, 29961, 29896, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29930, 5975, 29897, 13, 4706, 22706, 29961, 29906, 1822, 842, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29941, 29930, 5975, 29897, 13, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 396, 6204, 11105, 297, 3719, 29892, 1948, 29892, 1897, 1797, 1135, 671, 7442, 29889, 11631, 8990, 304, 1925, 297, 13, 4706, 396, 1948, 29892, 1897, 29892, 3719, 1797, 363, 413, 16979, 13, 4706, 11105, 353, 7442, 29889, 2378, 4197, 13, 9651, 5519, 5574, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 5852, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 5852, 20526, 13, 9651, 5519, 8824, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 5852, 29892, 7700, 20526, 13, 9651, 5519, 5574, 29892, 7700, 29892, 7700, 1402, 518, 8824, 29892, 7700, 29892, 7700, 1402, 518, 5574, 29892, 7700, 29892, 5852, 5262, 2314, 13, 4706, 2380, 261, 29961, 9302, 29889, 11631, 8990, 29898, 13168, 29892, 29871, 29900, 29892, 448, 29896, 4638, 353, 448, 29896, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29900, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29896, 1822, 657, 1271, 29898, 29906, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29906, 1822, 657, 1271, 29898, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29890, 4167, 29961, 29906, 1822, 657, 1271, 29898, 29906, 29892, 29871, 29900, 29892, 29871, 29896, 29892, 29871, 29896, 9601, 29900, 1402, 448, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 13168, 287, 29918, 19529, 279, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 13, 4706, 11105, 353, 7442, 29889, 3298, 359, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 1402, 26688, 29922, 9302, 29889, 11227, 29897, 13, 4706, 11105, 29961, 29947, 29901, 29892, 29871, 29906, 17531, 353, 5852, 13, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 2380, 261, 7503, 29892, 17531, 353, 7442, 29889, 3298, 359, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 2380, 261, 29961, 13168, 29962, 353, 29871, 29896, 29889, 29900, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 2248, 261, 7503, 29892, 29901, 11724, 29871, 29941, 29941, 29953, 29897, 13, 13, 1678, 822, 1243, 29918, 842, 29918, 13168, 287, 29918, 2378, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 13, 4706, 11105, 353, 7442, 29889, 3298, 359, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 1402, 26688, 29922, 9302, 29889, 11227, 29897, 13, 4706, 11105, 29961, 29947, 29901, 29892, 29871, 29906, 17531, 353, 5852, 13, 13, 4706, 2380, 261, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 2380, 261, 7503, 29892, 29901, 29892, 17531, 353, 7442, 29889, 3298, 359, 4197, 29896, 29953, 29892, 29871, 29896, 29953, 2314, 13, 4706, 2380, 261, 29961, 13168, 29962, 353, 7442, 29889, 2873, 29898, 29947, 29930, 29896, 29946, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9302, 29889, 2083, 29898, 2248, 261, 7503, 29892, 29901, 11724, 29871, 29941, 29941, 29953, 29897, 13, 13, 1678, 822, 1243, 29918, 12181, 29898, 1311, 1125, 13, 4706, 22706, 353, 518, 1523, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 511, 13, 462, 422, 13120, 29933, 392, 3552, 29896, 29953, 29892, 29871, 29896, 29953, 511, 7442, 29889, 7411, 29941, 29906, 4638, 13, 13, 4706, 2380, 261, 29896, 353, 5158, 3220, 261, 4197, 29890, 4167, 29961, 29900, 24960, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2248, 261, 29896, 29889, 12181, 29892, 313, 29896, 29953, 29892, 29871, 29896, 29953, 876, 13, 13, 4706, 2380, 261, 29941, 353, 5158, 3220, 261, 29898, 29890, 4167, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2248, 261, 29941, 29889, 12181, 29892, 313, 29896, 29953, 29892, 29871, 29896, 29953, 876, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 443, 27958, 29889, 3396, 580, 13, 2 ]
receipt2vec/models/BaseEncoder.py
TinkoffCreditSystems/receipt2vec
4
166070
<gh_stars>1-10 from torch.nn import Module from allennlp.common.registrable import Registrable from abc import abstractmethod, abstractclassmethod, ABCMeta from typing import Any, T, Type class BaseEncoder(Module, Registrable, metaclass=ABCMeta): def __init__(self): super(BaseEncoder, self).__init__() @property @abstractmethod def path_to_model(self) -> str: pass @property @abstractmethod def max_bpe_token(self) -> int: pass @abstractmethod def forward(self, *args: Any, **kwargs: Any) -> None: pass @abstractclassmethod def load_from_last_checkpoint(cls, *args: Any, **kwargs: Any) -> Type[T]: pass
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 4842, 305, 29889, 15755, 1053, 15591, 13, 3166, 599, 2108, 22833, 29889, 9435, 29889, 1727, 12496, 569, 1053, 2169, 12496, 569, 13, 3166, 25638, 1053, 9846, 5696, 29892, 9846, 1990, 5696, 29892, 16417, 19346, 13, 3166, 19229, 1053, 3139, 29892, 323, 29892, 5167, 13, 13, 13, 1990, 7399, 8566, 6119, 29898, 7355, 29892, 2169, 12496, 569, 29892, 1539, 562, 605, 29922, 19658, 19346, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 29898, 5160, 8566, 6119, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 13, 1678, 732, 6799, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 2224, 29918, 517, 29918, 4299, 29898, 1311, 29897, 1599, 851, 29901, 13, 4706, 1209, 13, 13, 1678, 732, 6799, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 4236, 29918, 29890, 412, 29918, 6979, 29898, 1311, 29897, 1599, 938, 29901, 13, 4706, 1209, 13, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 6375, 29898, 1311, 29892, 334, 5085, 29901, 3139, 29892, 3579, 19290, 29901, 3139, 29897, 1599, 6213, 29901, 13, 4706, 1209, 13, 13, 1678, 732, 16595, 1990, 5696, 13, 1678, 822, 2254, 29918, 3166, 29918, 4230, 29918, 3198, 3149, 29898, 25932, 29892, 334, 5085, 29901, 3139, 29892, 3579, 19290, 29901, 3139, 29897, 1599, 5167, 29961, 29911, 5387, 13, 4706, 1209, 13, 2 ]
protos/model_pb2.py
ChenCongGit/Chinese-aster
6
157963
<filename>protos/model_pb2.py # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Chinese_aster/protos/model.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import Chinese_aster.protos.feature_extractor_pb2 import Chinese_aster.protos.predictor_pb2 import Chinese_aster.protos.spatial_transformer_pb2 import Chinese_aster.protos.loss_pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='Chinese_aster/protos/model.proto', package='Chinese_aster.protos', serialized_pb=_b('\n Chinese_aster/protos/model.proto\x12\x14\x43hinese_aster.protos\x1a,Chinese_aster/protos/feature_extractor.proto\x1a$Chinese_aster/protos/predictor.proto\x1a.Chinese_aster/protos/spatial_transformer.proto\x1a\x1f\x43hinese_aster/protos/loss.proto\"{\n\x05Model\x12\x63\n\"multi_predictors_recognition_model\x18\x01 \x01(\x0b\x32\x35.Chinese_aster.protos.MultiPredictorsRecognitionModelH\x00\x42\r\n\x0bmodel_oneof\"\xb9\x02\n\x1fMultiPredictorsRecognitionModel\x12\x45\n\x13spatial_transformer\x18\x01 \x01(\x0b\x32(.Chinese_aster.protos.SpatialTransformer\x12\x41\n\x11\x66\x65\x61ture_extractor\x18\x02 \x01(\x0b\x32&.Chinese_aster.protos.FeatureExtractor\x12\x32\n\tpredictor\x18\x03 \x03(\x0b\x32\x1f.Chinese_aster.protos.Predictor\x12#\n\x14keypoint_supervision\x18\x04 \x01(\x08:\x05\x66\x61lse\x12\x33\n\x0fregression_loss\x18\x05 \x01(\x0b\x32\x1a.Chinese_aster.protos.Loss') , dependencies=[Chinese_aster.protos.feature_extractor_pb2.DESCRIPTOR,Chinese_aster.protos.predictor_pb2.DESCRIPTOR,Chinese_aster.protos.spatial_transformer_pb2.DESCRIPTOR,Chinese_aster.protos.loss_pb2.DESCRIPTOR,]) _sym_db.RegisterFileDescriptor(DESCRIPTOR) _MODEL = _descriptor.Descriptor( name='Model', full_name='Chinese_aster.protos.Model', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='multi_predictors_recognition_model', full_name='Chinese_aster.protos.Model.multi_predictors_recognition_model', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='model_oneof', full_name='Chinese_aster.protos.Model.model_oneof', index=0, containing_type=None, fields=[]), ], serialized_start=223, serialized_end=346, ) _MULTIPREDICTORSRECOGNITIONMODEL = _descriptor.Descriptor( name='MultiPredictorsRecognitionModel', full_name='Chinese_aster.protos.MultiPredictorsRecognitionModel', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='spatial_transformer', full_name='Chinese_aster.protos.MultiPredictorsRecognitionModel.spatial_transformer', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='feature_extractor', full_name='Chinese_aster.protos.MultiPredictorsRecognitionModel.feature_extractor', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='predictor', full_name='Chinese_aster.protos.MultiPredictorsRecognitionModel.predictor', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='keypoint_supervision', full_name='Chinese_aster.protos.MultiPredictorsRecognitionModel.keypoint_supervision', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=True, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='regression_loss', full_name='Chinese_aster.protos.MultiPredictorsRecognitionModel.regression_loss', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], oneofs=[ ], serialized_start=349, serialized_end=662, ) _MODEL.fields_by_name['multi_predictors_recognition_model'].message_type = _MULTIPREDICTORSRECOGNITIONMODEL _MODEL.oneofs_by_name['model_oneof'].fields.append( _MODEL.fields_by_name['multi_predictors_recognition_model']) _MODEL.fields_by_name['multi_predictors_recognition_model'].containing_oneof = _MODEL.oneofs_by_name['model_oneof'] _MULTIPREDICTORSRECOGNITIONMODEL.fields_by_name['spatial_transformer'].message_type = Chinese_aster.protos.spatial_transformer_pb2._SPATIALTRANSFORMER _MULTIPREDICTORSRECOGNITIONMODEL.fields_by_name['feature_extractor'].message_type = Chinese_aster.protos.feature_extractor_pb2._FEATUREEXTRACTOR _MULTIPREDICTORSRECOGNITIONMODEL.fields_by_name['predictor'].message_type = Chinese_aster.protos.predictor_pb2._PREDICTOR _MULTIPREDICTORSRECOGNITIONMODEL.fields_by_name['regression_loss'].message_type = Chinese_aster.protos.loss_pb2._LOSS DESCRIPTOR.message_types_by_name['Model'] = _MODEL DESCRIPTOR.message_types_by_name['MultiPredictorsRecognitionModel'] = _MULTIPREDICTORSRECOGNITIONMODEL Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), dict( DESCRIPTOR = _MODEL, __module__ = 'Chinese_aster.protos.model_pb2' # @@protoc_insertion_point(class_scope:Chinese_aster.protos.Model) )) _sym_db.RegisterMessage(Model) MultiPredictorsRecognitionModel = _reflection.GeneratedProtocolMessageType('MultiPredictorsRecognitionModel', (_message.Message,), dict( DESCRIPTOR = _MULTIPREDICTORSRECOGNITIONMODEL, __module__ = 'Chinese_aster.protos.model_pb2' # @@protoc_insertion_point(class_scope:Chinese_aster.protos.MultiPredictorsRecognitionModel) )) _sym_db.RegisterMessage(MultiPredictorsRecognitionModel) # @@protoc_insertion_point(module_scope)
[ 1, 529, 9507, 29958, 771, 29873, 359, 29914, 4299, 29918, 24381, 29906, 29889, 2272, 13, 29937, 3251, 630, 491, 278, 9608, 6835, 6516, 29889, 29871, 11662, 6058, 11488, 29991, 13, 29937, 2752, 29901, 10013, 29918, 1901, 29914, 771, 29873, 359, 29914, 4299, 29889, 17529, 13, 13, 5215, 10876, 13, 29918, 29890, 29922, 9675, 29889, 3259, 29918, 3888, 29961, 29900, 29962, 29966, 29941, 322, 313, 2892, 921, 29901, 29916, 29897, 470, 313, 2892, 921, 29901, 29916, 29889, 12508, 877, 5066, 262, 29896, 8785, 13, 3166, 5386, 29889, 17529, 9721, 1053, 553, 11709, 408, 903, 2783, 11709, 13, 3166, 5386, 29889, 17529, 9721, 1053, 2643, 408, 903, 4906, 13, 3166, 5386, 29889, 17529, 9721, 1053, 17842, 408, 903, 999, 1464, 13, 3166, 5386, 29889, 17529, 9721, 1053, 5829, 29918, 9803, 408, 903, 18098, 29918, 9803, 13, 3166, 5386, 29889, 17529, 9721, 1053, 553, 11709, 29918, 24381, 29906, 13, 29937, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 326, 4011, 29897, 13, 13, 29918, 11967, 29918, 2585, 353, 903, 18098, 29918, 9803, 29889, 4592, 580, 13, 13, 13, 5215, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 14394, 29918, 21111, 272, 29918, 24381, 29906, 13, 5215, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 27711, 272, 29918, 24381, 29906, 13, 5215, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 1028, 15238, 29918, 9067, 261, 29918, 24381, 29906, 13, 5215, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 6758, 29918, 24381, 29906, 13, 13, 13, 2287, 7187, 24290, 1955, 353, 903, 2783, 11709, 29889, 2283, 19124, 29898, 13, 29871, 1024, 2433, 1451, 8233, 29918, 1901, 29914, 771, 29873, 359, 29914, 4299, 29889, 17529, 742, 13, 29871, 3577, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 742, 13, 29871, 7797, 1891, 29918, 24381, 29922, 29918, 29890, 28909, 29876, 10013, 29918, 1901, 29914, 771, 29873, 359, 29914, 4299, 29889, 17529, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29946, 29905, 29916, 29946, 29941, 29882, 8233, 29918, 1901, 29889, 771, 29873, 359, 29905, 29916, 29896, 29874, 29892, 1451, 8233, 29918, 1901, 29914, 771, 29873, 359, 29914, 14394, 29918, 21111, 272, 29889, 17529, 29905, 29916, 29896, 29874, 29938, 1451, 8233, 29918, 1901, 29914, 771, 29873, 359, 29914, 27711, 272, 29889, 17529, 29905, 29916, 29896, 29874, 29889, 1451, 8233, 29918, 1901, 29914, 771, 29873, 359, 29914, 1028, 15238, 29918, 9067, 261, 29889, 17529, 29905, 29916, 29896, 29874, 29905, 29916, 29896, 29888, 29905, 29916, 29946, 29941, 29882, 8233, 29918, 1901, 29914, 771, 29873, 359, 29914, 6758, 29889, 17529, 5931, 741, 29876, 29905, 29916, 29900, 29945, 3195, 29905, 29916, 29896, 29906, 29905, 29916, 29953, 29941, 29905, 29876, 5931, 9910, 29918, 27711, 943, 29918, 29423, 654, 29918, 4299, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29896, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 29905, 29916, 29941, 29945, 29889, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29950, 29905, 29916, 29900, 29900, 29905, 29916, 29946, 29906, 29905, 29878, 29905, 29876, 29905, 29916, 29900, 29890, 4299, 29918, 650, 974, 5931, 29905, 29916, 29890, 29929, 29905, 29916, 29900, 29906, 29905, 29876, 29905, 29916, 29896, 29888, 15329, 23084, 919, 943, 23122, 654, 3195, 29905, 29916, 29896, 29906, 29905, 29916, 29946, 29945, 29905, 29876, 29905, 29916, 29896, 29941, 1028, 15238, 29918, 9067, 261, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29896, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 11891, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 29903, 5031, 616, 13372, 261, 29905, 29916, 29896, 29906, 29905, 29916, 29946, 29896, 29905, 29876, 29905, 29916, 29896, 29896, 29905, 29916, 29953, 29953, 29905, 29916, 29953, 29945, 29905, 29916, 29953, 29896, 29873, 545, 29918, 21111, 272, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29906, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 29987, 29889, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 19132, 5647, 28891, 29905, 29916, 29896, 29906, 29905, 29916, 29941, 29906, 29905, 29876, 29905, 9392, 1127, 919, 272, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29941, 320, 29916, 29900, 29941, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 29905, 29916, 29896, 29888, 29889, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 23084, 919, 272, 29905, 29916, 29896, 29906, 29937, 29905, 29876, 29905, 29916, 29896, 29946, 1989, 3149, 29918, 9136, 4924, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29946, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29947, 3583, 29916, 29900, 29945, 29905, 29916, 29953, 29953, 29905, 29916, 29953, 29896, 29880, 344, 29905, 29916, 29896, 29906, 29905, 29916, 29941, 29941, 29905, 29876, 29905, 29916, 29900, 10745, 11476, 29918, 6758, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29945, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 29905, 29916, 29896, 29874, 29889, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 29931, 2209, 1495, 13, 29871, 1919, 13, 29871, 9962, 11759, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 14394, 29918, 21111, 272, 29918, 24381, 29906, 29889, 2287, 7187, 24290, 1955, 29892, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 27711, 272, 29918, 24381, 29906, 29889, 2287, 7187, 24290, 1955, 29892, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 1028, 15238, 29918, 9067, 261, 29918, 24381, 29906, 29889, 2287, 7187, 24290, 1955, 29892, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 6758, 29918, 24381, 29906, 29889, 2287, 7187, 24290, 1955, 29892, 2314, 13, 29918, 11967, 29918, 2585, 29889, 15213, 2283, 19124, 29898, 2287, 7187, 24290, 1955, 29897, 13, 13, 13, 13, 13, 29918, 20387, 29931, 353, 903, 2783, 11709, 29889, 19124, 29898, 13, 29871, 1024, 2433, 3195, 742, 13, 29871, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 3195, 742, 13, 29871, 10422, 29922, 8516, 29892, 13, 29871, 934, 29922, 2287, 7187, 24290, 1955, 29892, 13, 29871, 6943, 29918, 1853, 29922, 8516, 29892, 13, 29871, 4235, 11759, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 9910, 29918, 27711, 943, 29918, 29423, 654, 29918, 4299, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 3195, 29889, 9910, 29918, 27711, 943, 29918, 29423, 654, 29918, 4299, 742, 2380, 29922, 29900, 29892, 13, 418, 1353, 29922, 29896, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 8516, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 29871, 21251, 13, 29871, 17752, 11759, 13, 29871, 21251, 13, 29871, 9322, 29918, 8768, 11759, 1402, 13, 29871, 14115, 29918, 8768, 11759, 13, 29871, 21251, 13, 29871, 3987, 29922, 8516, 29892, 13, 29871, 338, 29918, 21843, 519, 29922, 8824, 29892, 13, 29871, 6081, 29918, 29878, 6916, 11759, 1402, 13, 29871, 697, 974, 29879, 11759, 13, 1678, 903, 2783, 11709, 29889, 6716, 974, 19124, 29898, 13, 418, 1024, 2433, 4299, 29918, 650, 974, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 3195, 29889, 4299, 29918, 650, 974, 742, 13, 418, 2380, 29922, 29900, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 4235, 29922, 2636, 511, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 2962, 29922, 29906, 29906, 29941, 29892, 13, 29871, 7797, 1891, 29918, 355, 29922, 29941, 29946, 29953, 29892, 13, 29897, 13, 13, 13, 29918, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 353, 903, 2783, 11709, 29889, 19124, 29898, 13, 29871, 1024, 2433, 15329, 23084, 919, 943, 23122, 654, 3195, 742, 13, 29871, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 742, 13, 29871, 10422, 29922, 8516, 29892, 13, 29871, 934, 29922, 2287, 7187, 24290, 1955, 29892, 13, 29871, 6943, 29918, 1853, 29922, 8516, 29892, 13, 29871, 4235, 11759, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 1028, 15238, 29918, 9067, 261, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29889, 1028, 15238, 29918, 9067, 261, 742, 2380, 29922, 29900, 29892, 13, 418, 1353, 29922, 29896, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 8516, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 14394, 29918, 21111, 272, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29889, 14394, 29918, 21111, 272, 742, 2380, 29922, 29896, 29892, 13, 418, 1353, 29922, 29906, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 8516, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 27711, 272, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29889, 27711, 272, 742, 2380, 29922, 29906, 29892, 13, 418, 1353, 29922, 29941, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29941, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 11759, 1402, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 1989, 3149, 29918, 9136, 4924, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29889, 1989, 3149, 29918, 9136, 4924, 742, 2380, 29922, 29941, 29892, 13, 418, 1353, 29922, 29946, 29892, 1134, 29922, 29947, 29892, 274, 407, 29918, 1853, 29922, 29955, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 5574, 29892, 2322, 29918, 1767, 29922, 8824, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 276, 11476, 29918, 6758, 742, 2989, 29918, 978, 2433, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29889, 276, 11476, 29918, 6758, 742, 2380, 29922, 29946, 29892, 13, 418, 1353, 29922, 29945, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 8516, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 29871, 21251, 13, 29871, 17752, 11759, 13, 29871, 21251, 13, 29871, 9322, 29918, 8768, 11759, 1402, 13, 29871, 14115, 29918, 8768, 11759, 13, 29871, 21251, 13, 29871, 3987, 29922, 8516, 29892, 13, 29871, 338, 29918, 21843, 519, 29922, 8824, 29892, 13, 29871, 6081, 29918, 29878, 6916, 11759, 1402, 13, 29871, 697, 974, 29879, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 2962, 29922, 29941, 29946, 29929, 29892, 13, 29871, 7797, 1891, 29918, 355, 29922, 29953, 29953, 29906, 29892, 13, 29897, 13, 13, 29918, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 9910, 29918, 27711, 943, 29918, 29423, 654, 29918, 4299, 13359, 4906, 29918, 1853, 353, 903, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 13, 29918, 20387, 29931, 29889, 650, 974, 29879, 29918, 1609, 29918, 978, 1839, 4299, 29918, 650, 974, 13359, 9621, 29889, 4397, 29898, 13, 29871, 903, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 9910, 29918, 27711, 943, 29918, 29423, 654, 29918, 4299, 11287, 13, 29918, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 9910, 29918, 27711, 943, 29918, 29423, 654, 29918, 4299, 13359, 1285, 17225, 29918, 650, 974, 353, 903, 20387, 29931, 29889, 650, 974, 29879, 29918, 1609, 29918, 978, 1839, 4299, 29918, 650, 974, 2033, 13, 29918, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 1028, 15238, 29918, 9067, 261, 13359, 4906, 29918, 1853, 353, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 1028, 15238, 29918, 9067, 261, 29918, 24381, 29906, 3032, 5550, 1299, 25758, 26813, 29903, 19094, 1001, 13, 29918, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 14394, 29918, 21111, 272, 13359, 4906, 29918, 1853, 353, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 14394, 29918, 21111, 272, 29918, 24381, 29906, 3032, 16359, 1299, 11499, 12194, 4717, 1783, 1955, 13, 29918, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 27711, 272, 13359, 4906, 29918, 1853, 353, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 27711, 272, 29918, 24381, 29906, 3032, 15094, 4571, 1783, 1955, 13, 29918, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 29889, 9621, 29918, 1609, 29918, 978, 1839, 276, 11476, 29918, 6758, 13359, 4906, 29918, 1853, 353, 10013, 29918, 1901, 29889, 771, 29873, 359, 29889, 6758, 29918, 24381, 29906, 3032, 3927, 1799, 13, 2287, 7187, 24290, 1955, 29889, 4906, 29918, 8768, 29918, 1609, 29918, 978, 1839, 3195, 2033, 353, 903, 20387, 29931, 13, 2287, 7187, 24290, 1955, 29889, 4906, 29918, 8768, 29918, 1609, 29918, 978, 1839, 15329, 23084, 919, 943, 23122, 654, 3195, 2033, 353, 903, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 13, 13, 3195, 353, 903, 999, 1464, 29889, 24565, 17830, 3728, 1542, 877, 3195, 742, 9423, 4906, 29889, 3728, 29892, 511, 9657, 29898, 13, 29871, 23050, 24290, 1955, 353, 903, 20387, 29931, 29892, 13, 29871, 4770, 5453, 1649, 353, 525, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 4299, 29918, 24381, 29906, 29915, 13, 29871, 396, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 1990, 29918, 6078, 29901, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 3195, 29897, 13, 259, 876, 13, 29918, 11967, 29918, 2585, 29889, 15213, 3728, 29898, 3195, 29897, 13, 13, 15329, 23084, 919, 943, 23122, 654, 3195, 353, 903, 999, 1464, 29889, 24565, 17830, 3728, 1542, 877, 15329, 23084, 919, 943, 23122, 654, 3195, 742, 9423, 4906, 29889, 3728, 29892, 511, 9657, 29898, 13, 29871, 23050, 24290, 1955, 353, 903, 29924, 8647, 5690, 1525, 4571, 1783, 24125, 1525, 3217, 20728, 22122, 20387, 29931, 29892, 13, 29871, 4770, 5453, 1649, 353, 525, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 4299, 29918, 24381, 29906, 29915, 13, 29871, 396, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 1990, 29918, 6078, 29901, 1451, 8233, 29918, 1901, 29889, 771, 29873, 359, 29889, 15329, 23084, 919, 943, 23122, 654, 3195, 29897, 13, 259, 876, 13, 29918, 11967, 29918, 2585, 29889, 15213, 3728, 29898, 15329, 23084, 919, 943, 23122, 654, 3195, 29897, 13, 13, 13, 29937, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 5453, 29918, 6078, 29897, 13, 2 ]
scripts/master/master_gen.py
yjbanov/chromium_build
0
74846
<reponame>yjbanov/chromium_build<filename>scripts/master/master_gen.py # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import ast import os from buildbot.changes.filter import ChangeFilter from buildbot.schedulers.basic import SingleBranchScheduler from buildbot.schedulers.timed import Nightly from buildbot.status.mail import MailNotifier from buildbot import util from config_bootstrap import Master from common import chromium_utils from master import gitiles_poller from master import master_utils from master import repo_poller from master import slaves_list from master.factory import annotator_factory def PopulateBuildmasterConfig(BuildmasterConfig, builders_path, active_master_cls): """Read builders_path and populate a build master config dict.""" builders = chromium_utils.ReadBuildersFile(builders_path) _Populate(BuildmasterConfig, builders, active_master_cls) def _Populate(BuildmasterConfig, builders, active_master_cls): m_annotator = annotator_factory.AnnotatorFactory(active_master_cls) c = BuildmasterConfig c['logCompressionLimit'] = False c['projectName'] = active_master_cls.project_name c['projectURL'] = Master.project_url c['buildbotURL'] = active_master_cls.buildbot_url # This sets c['db_url'] to the database connect string in found in # the .dbconfig in the master directory, if it exists. If this is # a production host, it must exist. chromium_utils.DatabaseSetup( c, require_dbconfig=active_master_cls.is_production_host) c['builders'] = _ComputeBuilders(builders, m_annotator) c['schedulers'] = _ComputeSchedulers(builders) c['change_source'], tag_comparator = _ComputeChangeSourceAndTagComparator( builders) # The 'slaves' list defines the set of allowable buildslaves. List all the # slaves registered to a builder. Remove dupes. c['slaves'] = master_utils.AutoSetupSlaves( c['builders'], Master.GetBotPassword(), missing_recipients=['<EMAIL>']) # This does some sanity checks on the configuration. slaves = slaves_list.BaseSlavesList( chromium_utils.GetSlavesFromBuilders(builders), builders['master_classname']) master_utils.VerifySetup(c, slaves) default_public_html = os.path.join(chromium_utils.BUILD_DIR, 'masters', 'master.chromium', 'public_html') public_html = builders.get('public_html', default_public_html) # Adds common status and tools to this master. # TODO: Look at the logic in this routine to see if any of the logic # in this routine can be moved there to simplify things. master_utils.AutoSetupMaster(c, active_master_cls, public_html=public_html, templates=builders['templates'], tagComparator=tag_comparator, enable_http_status_push=active_master_cls.is_production_host) # TODO: AutoSetupMaster's settings for the following are too low to be # useful for most projects. We should fix that. c['buildHorizon'] = 3000 c['logHorizon'] = 3000 # Must be at least 2x the number of slaves. c['eventHorizon'] = 200 def _ComputeBuilders(builders, m_annotator): actual_builders = [] def cmp_fn(a, b): a_cat = builders['builders'][a].get('category') b_cat = builders['builders'][b].get('category') if a_cat != b_cat: return 1 if a_cat > b_cat else -1 if a != b: return 1 if a > b else -1 return 0 for builder_name in sorted(builders['builders'], cmp=cmp_fn): builder_data = builders['builders'][builder_name] has_schedulers = bool( builder_data.get('scheduler', builder_data.get('schedulers'))) # We will automatically merge all build requests for any # builder that can be scheduled; this is normally the behavior # we want for repo-triggered builders and cron-triggered builders. # You can override this behavior by setting the mergeRequests field though. merge_requests = builder_data.get('mergeRequests', has_schedulers) slavebuilddir = builder_data.get('slavebuilddir', util.safeTranslate(builder_name)) factory = m_annotator.BaseFactory( recipe=builder_data['recipe'], max_time=builder_data.get('builder_timeout_s'), factory_properties=builder_data.get('properties') ) actual_builders.append({ 'auto_reboot': builder_data.get('auto_reboot', True), 'mergeRequests': merge_requests, 'name': builder_name, 'factory': factory, 'slavebuilddir': slavebuilddir, 'slavenames': chromium_utils.GetSlaveNamesForBuilder(builders, builder_name), 'category': builder_data.get('category'), 'trybot': builder_data.get('trybot'), }) return actual_builders def _ComputeSchedulers(builders): scheduler_to_builders = {} for builder_name, builder_data in builders['builders'].items(): scheduler_names = builder_data.get('schedulers', []) if 'scheduler' in builder_data: scheduler_names.append(builder_data['scheduler']) for scheduler_name in scheduler_names: if scheduler_name: if scheduler_name not in builders['schedulers']: raise ValueError('unknown scheduler "%s"' % scheduler_name) scheduler_to_builders.setdefault( scheduler_name, []).append(builder_name) schedulers = [] for scheduler_name, scheduler_values in builders['schedulers'].items(): scheduler_type = scheduler_values['type'] builder_names = scheduler_to_builders[scheduler_name] if scheduler_type == 'git_poller': # git_poller pollers group changes, so we match on our specific repository # to ensure that we only pick up changes from our poller. schedulers.append(SingleBranchScheduler( name=scheduler_name, change_filter=ChangeFilter( repository=scheduler_values['git_repo_url'], branch=scheduler_values.get('branch', 'master'), ), treeStableTimer=scheduler_values.get('treeStableTimer', 60), builderNames=builder_names)) elif scheduler_type == 'repo_poller': # repo_poller pollers punt changes that use the scheduler name as their # category (see _ComputeChangeSourceAndTagComparator). Matching on this # ensures that we only match changes from our poller. schedulers.append(SingleBranchScheduler( name=scheduler_name, change_filter=ChangeFilter( category=str(scheduler_name), ), treeStableTimer=scheduler_values.get('treeStableTimer', 60), builderNames=builder_names)) elif scheduler_type == 'cron': schedulers.append(Nightly( name=scheduler_name, branch='master', minute=scheduler_values['minute'], hour=scheduler_values['hour'], builderNames=builder_names)) else: raise ValueError('unsupported scheduler type "%s"' % scheduler_type) return schedulers def _ComputeChangeSourceAndTagComparator(builders): change_source = [] tag_comparator = None git_urls_to_branches = {} for scheduler_config in builders['schedulers'].values(): if scheduler_config['type'] != 'git_poller': continue url = scheduler_config['git_repo_url'] branch = scheduler_config.get('branch', 'master') git_urls_to_branches.setdefault(url, set()).add(branch) for url, branches in git_urls_to_branches.iteritems(): change_source.append( gitiles_poller.GitilesPoller(url, branches=list(branches))) for scheduler_name, scheduler_config in builders['schedulers'].iteritems(): if scheduler_config['type'] != 'repo_poller': continue rev_link_template = scheduler_config.get('rev_link_template') branch = scheduler_config.get('branch') branches = [branch] if branch is not None else None change_source.append(repo_poller.RepoPoller( repo_url=scheduler_config['repo_url'], manifest='manifest', category=str(scheduler_name), repo_branches=branches, pollInterval=300, revlinktmpl=rev_link_template)) # We have to set the tag_comparator to something, but if we have multiple # repos, the tag_comparator will not work properly (it's meaningless). # It's not clear if there's a good answer to this. if change_source: tag_comparator = change_source[0].comparator return change_source, tag_comparator
[ 1, 529, 276, 1112, 420, 29958, 17472, 2571, 586, 29914, 27433, 1974, 29918, 4282, 29966, 9507, 29958, 16713, 29914, 6207, 29914, 6207, 29918, 1885, 29889, 2272, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29946, 450, 678, 456, 1974, 13189, 943, 29889, 2178, 10462, 21676, 29889, 13, 29937, 4803, 310, 445, 2752, 775, 338, 4095, 287, 491, 263, 350, 7230, 29899, 3293, 19405, 393, 508, 367, 13, 29937, 1476, 297, 278, 365, 2965, 1430, 1660, 934, 29889, 13, 13, 5215, 8717, 13, 5215, 2897, 13, 13, 3166, 2048, 7451, 29889, 25990, 29889, 4572, 1053, 10726, 5072, 13, 3166, 2048, 7451, 29889, 816, 287, 352, 414, 29889, 16121, 1053, 16740, 29933, 4014, 4504, 14952, 13, 3166, 2048, 7451, 29889, 816, 287, 352, 414, 29889, 9346, 287, 1053, 11554, 368, 13, 3166, 2048, 7451, 29889, 4882, 29889, 2549, 1053, 18623, 3664, 3709, 13, 3166, 2048, 7451, 1053, 3667, 13, 13, 3166, 2295, 29918, 8704, 1053, 9082, 13, 13, 3166, 3619, 1053, 25173, 1974, 29918, 13239, 13, 13, 3166, 5835, 1053, 6315, 5475, 29918, 3733, 1358, 13, 3166, 5835, 1053, 5835, 29918, 13239, 13, 3166, 5835, 1053, 13761, 29918, 3733, 1358, 13, 3166, 5835, 1053, 25569, 29918, 1761, 13, 3166, 5835, 29889, 14399, 1053, 9732, 1061, 29918, 14399, 13, 13, 13, 1753, 6977, 5987, 8893, 6207, 3991, 29898, 8893, 6207, 3991, 29892, 2048, 414, 29918, 2084, 29892, 13, 462, 795, 6136, 29918, 6207, 29918, 25932, 1125, 13, 29871, 9995, 6359, 2048, 414, 29918, 2084, 322, 19450, 263, 2048, 5835, 2295, 9657, 1213, 15945, 13, 29871, 2048, 414, 353, 25173, 1974, 29918, 13239, 29889, 6359, 8893, 414, 2283, 29898, 4282, 414, 29918, 2084, 29897, 13, 29871, 903, 12310, 5987, 29898, 8893, 6207, 3991, 29892, 2048, 414, 29892, 6136, 29918, 6207, 29918, 25932, 29897, 13, 13, 13, 1753, 903, 12310, 5987, 29898, 8893, 6207, 3991, 29892, 2048, 414, 29892, 6136, 29918, 6207, 29918, 25932, 1125, 13, 29871, 286, 29918, 6735, 1061, 353, 9732, 1061, 29918, 14399, 29889, 2744, 1333, 1061, 5126, 29898, 4925, 29918, 6207, 29918, 25932, 29897, 13, 13, 29871, 274, 353, 8878, 6207, 3991, 13, 29871, 274, 1839, 1188, 1523, 2590, 24445, 2033, 353, 7700, 13, 29871, 274, 1839, 4836, 1170, 2033, 353, 6136, 29918, 6207, 29918, 25932, 29889, 4836, 29918, 978, 13, 29871, 274, 1839, 4836, 4219, 2033, 353, 9082, 29889, 4836, 29918, 2271, 13, 29871, 274, 1839, 4282, 7451, 4219, 2033, 353, 6136, 29918, 6207, 29918, 25932, 29889, 4282, 7451, 29918, 2271, 13, 13, 29871, 396, 910, 6166, 274, 1839, 2585, 29918, 2271, 2033, 304, 278, 2566, 4511, 1347, 297, 1476, 297, 13, 29871, 396, 278, 869, 2585, 2917, 297, 278, 5835, 3884, 29892, 565, 372, 4864, 29889, 960, 445, 338, 13, 29871, 396, 263, 5802, 3495, 29892, 372, 1818, 1863, 29889, 13, 29871, 25173, 1974, 29918, 13239, 29889, 9112, 26947, 29898, 13, 418, 274, 29892, 13, 418, 1996, 29918, 2585, 2917, 29922, 4925, 29918, 6207, 29918, 25932, 29889, 275, 29918, 24601, 29918, 3069, 29897, 13, 13, 29871, 274, 1839, 4282, 414, 2033, 353, 903, 20606, 29872, 8893, 414, 29898, 4282, 414, 29892, 286, 29918, 6735, 1061, 29897, 13, 13, 29871, 274, 1839, 816, 287, 352, 414, 2033, 353, 903, 20606, 29872, 4504, 287, 352, 414, 29898, 4282, 414, 29897, 13, 13, 29871, 274, 1839, 3167, 29918, 4993, 7464, 4055, 29918, 510, 17954, 353, 903, 20606, 29872, 7277, 4435, 2855, 8176, 1523, 17954, 29898, 13, 418, 2048, 414, 29897, 13, 13, 29871, 396, 450, 525, 29879, 433, 1960, 29915, 1051, 17645, 278, 731, 310, 2758, 519, 23315, 433, 1960, 29889, 2391, 599, 278, 13, 29871, 396, 25569, 15443, 304, 263, 12856, 29889, 15154, 5141, 267, 29889, 13, 29871, 274, 1839, 29879, 433, 1960, 2033, 353, 5835, 29918, 13239, 29889, 12300, 26947, 29903, 433, 1960, 29898, 13, 418, 274, 1839, 4282, 414, 7464, 13, 418, 9082, 29889, 2577, 29933, 327, 10048, 3285, 13, 418, 4567, 29918, 4361, 29886, 10070, 29922, 1839, 29966, 26862, 6227, 29958, 11287, 13, 13, 29871, 396, 910, 947, 777, 9753, 537, 12747, 373, 278, 5285, 29889, 13, 29871, 25569, 353, 25569, 29918, 1761, 29889, 5160, 29903, 433, 1960, 1293, 29898, 13, 418, 25173, 1974, 29918, 13239, 29889, 2577, 29903, 433, 1960, 4591, 8893, 414, 29898, 4282, 414, 511, 13, 418, 2048, 414, 1839, 6207, 29918, 1990, 978, 11287, 13, 29871, 5835, 29918, 13239, 29889, 6565, 1598, 26947, 29898, 29883, 29892, 25569, 29897, 13, 13, 29871, 2322, 29918, 3597, 29918, 1420, 353, 2897, 29889, 2084, 29889, 7122, 29898, 27433, 1974, 29918, 13239, 29889, 29933, 25282, 29918, 9464, 29892, 13, 462, 462, 268, 525, 6207, 29879, 742, 525, 6207, 29889, 27433, 1974, 742, 13, 462, 462, 268, 525, 3597, 29918, 1420, 1495, 13, 29871, 970, 29918, 1420, 353, 2048, 414, 29889, 657, 877, 3597, 29918, 1420, 742, 2322, 29918, 3597, 29918, 1420, 29897, 13, 13, 29871, 396, 3462, 29879, 3619, 4660, 322, 8492, 304, 445, 5835, 29889, 13, 29871, 396, 14402, 29901, 7419, 472, 278, 5900, 297, 445, 26529, 304, 1074, 565, 738, 310, 278, 5900, 13, 29871, 396, 297, 445, 26529, 508, 367, 6153, 727, 304, 21092, 2712, 29889, 13, 29871, 5835, 29918, 13239, 29889, 12300, 26947, 19203, 29898, 29883, 29892, 6136, 29918, 6207, 29918, 25932, 29892, 13, 418, 970, 29918, 1420, 29922, 3597, 29918, 1420, 29892, 13, 418, 17475, 29922, 4282, 414, 1839, 20943, 7464, 13, 418, 4055, 1523, 17954, 29922, 4039, 29918, 510, 17954, 29892, 13, 418, 9025, 29918, 1124, 29918, 4882, 29918, 5910, 29922, 4925, 29918, 6207, 29918, 25932, 29889, 275, 29918, 24601, 29918, 3069, 29897, 13, 13, 29871, 396, 14402, 29901, 11133, 26947, 19203, 29915, 29879, 6055, 363, 278, 1494, 526, 2086, 4482, 304, 367, 13, 29871, 396, 5407, 363, 1556, 9279, 29889, 1334, 881, 2329, 393, 29889, 13, 29871, 274, 1839, 4282, 17241, 18162, 2033, 353, 29871, 29941, 29900, 29900, 29900, 13, 29871, 274, 1839, 1188, 17241, 18162, 2033, 353, 29871, 29941, 29900, 29900, 29900, 13, 29871, 396, 19928, 367, 472, 3203, 29871, 29906, 29916, 278, 1353, 310, 25569, 29889, 13, 29871, 274, 1839, 3696, 17241, 18162, 2033, 353, 29871, 29906, 29900, 29900, 13, 13, 13, 1753, 903, 20606, 29872, 8893, 414, 29898, 4282, 414, 29892, 286, 29918, 6735, 1061, 1125, 13, 29871, 3935, 29918, 4282, 414, 353, 5159, 13, 13, 29871, 822, 274, 1526, 29918, 9144, 29898, 29874, 29892, 289, 1125, 13, 1678, 263, 29918, 4117, 353, 2048, 414, 1839, 4282, 414, 2033, 29961, 29874, 1822, 657, 877, 7320, 1495, 13, 1678, 289, 29918, 4117, 353, 2048, 414, 1839, 4282, 414, 2033, 29961, 29890, 1822, 657, 877, 7320, 1495, 13, 1678, 565, 263, 29918, 4117, 2804, 289, 29918, 4117, 29901, 13, 418, 736, 29871, 29896, 565, 263, 29918, 4117, 1405, 289, 29918, 4117, 1683, 448, 29896, 13, 1678, 565, 263, 2804, 289, 29901, 13, 418, 736, 29871, 29896, 565, 263, 1405, 289, 1683, 448, 29896, 13, 1678, 736, 29871, 29900, 13, 13, 29871, 363, 12856, 29918, 978, 297, 12705, 29898, 4282, 414, 1839, 4282, 414, 7464, 274, 1526, 29922, 21058, 29918, 9144, 1125, 13, 1678, 12856, 29918, 1272, 353, 2048, 414, 1839, 4282, 414, 2033, 29961, 16409, 29918, 978, 29962, 13, 1678, 756, 29918, 816, 287, 352, 414, 353, 6120, 29898, 13, 4706, 12856, 29918, 1272, 29889, 657, 877, 816, 14952, 742, 12856, 29918, 1272, 29889, 657, 877, 816, 287, 352, 414, 29915, 4961, 13, 13, 1678, 396, 1334, 674, 6336, 10366, 599, 2048, 7274, 363, 738, 13, 1678, 396, 12856, 393, 508, 367, 21467, 29936, 445, 338, 12891, 278, 6030, 13, 1678, 396, 591, 864, 363, 13761, 29899, 21001, 287, 2048, 414, 322, 18863, 29899, 21001, 287, 2048, 414, 29889, 13, 1678, 396, 887, 508, 5712, 445, 6030, 491, 4444, 278, 10366, 3089, 29879, 1746, 2466, 29889, 13, 1678, 10366, 29918, 24830, 353, 12856, 29918, 1272, 29889, 657, 877, 14634, 3089, 29879, 742, 756, 29918, 816, 287, 352, 414, 29897, 13, 13, 1678, 19532, 4282, 3972, 353, 12856, 29918, 1272, 29889, 657, 877, 29879, 18398, 4282, 3972, 742, 13, 462, 462, 268, 3667, 29889, 11177, 4300, 9632, 29898, 16409, 29918, 978, 876, 13, 1678, 12529, 353, 286, 29918, 6735, 1061, 29889, 5160, 5126, 29898, 13, 4706, 9522, 412, 29922, 16409, 29918, 1272, 1839, 4361, 412, 7464, 13, 4706, 4236, 29918, 2230, 29922, 16409, 29918, 1272, 29889, 657, 877, 16409, 29918, 15619, 29918, 29879, 5477, 13, 4706, 12529, 29918, 11330, 29922, 16409, 29918, 1272, 29889, 657, 877, 11330, 1495, 13, 1678, 1723, 13, 1678, 3935, 29918, 4282, 414, 29889, 4397, 3319, 13, 4706, 525, 6921, 29918, 276, 4777, 2396, 12856, 29918, 1272, 29889, 657, 877, 6921, 29918, 276, 4777, 742, 5852, 511, 13, 4706, 525, 14634, 3089, 29879, 2396, 10366, 29918, 24830, 29892, 13, 4706, 525, 978, 2396, 12856, 29918, 978, 29892, 13, 4706, 525, 14399, 2396, 12529, 29892, 13, 4706, 525, 29879, 18398, 4282, 3972, 2396, 19532, 4282, 3972, 29892, 13, 4706, 525, 29879, 433, 854, 1280, 2396, 25173, 1974, 29918, 13239, 29889, 2577, 29903, 18398, 8659, 2831, 5627, 29898, 4282, 414, 29892, 13, 462, 462, 462, 632, 12856, 29918, 978, 511, 13, 4706, 525, 7320, 2396, 12856, 29918, 1272, 29889, 657, 877, 7320, 5477, 13, 4706, 525, 2202, 7451, 2396, 12856, 29918, 1272, 29889, 657, 877, 2202, 7451, 5477, 13, 1678, 5615, 13, 13, 29871, 736, 3935, 29918, 4282, 414, 13, 13, 13, 1753, 903, 20606, 29872, 4504, 287, 352, 414, 29898, 4282, 414, 1125, 13, 29871, 1364, 14952, 29918, 517, 29918, 4282, 414, 353, 6571, 13, 29871, 363, 12856, 29918, 978, 29892, 12856, 29918, 1272, 297, 2048, 414, 1839, 4282, 414, 13359, 7076, 7295, 13, 1678, 1364, 14952, 29918, 7039, 353, 12856, 29918, 1272, 29889, 657, 877, 816, 287, 352, 414, 742, 518, 2314, 13, 1678, 565, 525, 816, 14952, 29915, 297, 12856, 29918, 1272, 29901, 13, 418, 1364, 14952, 29918, 7039, 29889, 4397, 29898, 16409, 29918, 1272, 1839, 816, 14952, 11287, 13, 1678, 363, 1364, 14952, 29918, 978, 297, 1364, 14952, 29918, 7039, 29901, 13, 418, 565, 1364, 14952, 29918, 978, 29901, 13, 4706, 565, 1364, 14952, 29918, 978, 451, 297, 2048, 414, 1839, 816, 287, 352, 414, 2033, 29901, 13, 3986, 12020, 7865, 2392, 877, 26690, 1364, 14952, 11860, 29879, 29908, 29915, 1273, 1364, 14952, 29918, 978, 29897, 13, 4706, 1364, 14952, 29918, 517, 29918, 4282, 414, 29889, 842, 4381, 29898, 13, 9651, 1364, 14952, 29918, 978, 29892, 5159, 467, 4397, 29898, 16409, 29918, 978, 29897, 13, 13, 29871, 28598, 352, 414, 353, 5159, 13, 29871, 363, 1364, 14952, 29918, 978, 29892, 1364, 14952, 29918, 5975, 297, 2048, 414, 1839, 816, 287, 352, 414, 13359, 7076, 7295, 13, 1678, 1364, 14952, 29918, 1853, 353, 1364, 14952, 29918, 5975, 1839, 1853, 2033, 13, 1678, 12856, 29918, 7039, 353, 1364, 14952, 29918, 517, 29918, 4282, 414, 29961, 816, 14952, 29918, 978, 29962, 13, 13, 1678, 565, 1364, 14952, 29918, 1853, 1275, 525, 5559, 29918, 3733, 1358, 2396, 13, 418, 396, 6315, 29918, 3733, 1358, 1248, 9306, 2318, 3620, 29892, 577, 591, 1993, 373, 1749, 2702, 9810, 13, 418, 396, 304, 9801, 393, 591, 871, 5839, 701, 3620, 515, 1749, 1248, 1358, 29889, 13, 418, 28598, 352, 414, 29889, 4397, 29898, 15771, 29933, 4014, 4504, 14952, 29898, 13, 3986, 1024, 29922, 816, 14952, 29918, 978, 29892, 13, 3986, 1735, 29918, 4572, 29922, 7277, 5072, 29898, 13, 795, 9810, 29922, 816, 14952, 29918, 5975, 1839, 5559, 29918, 20095, 29918, 2271, 7464, 13, 795, 5443, 29922, 816, 14952, 29918, 5975, 29889, 657, 877, 17519, 742, 525, 6207, 5477, 13, 3986, 10353, 13, 3986, 5447, 855, 519, 14745, 29922, 816, 14952, 29918, 5975, 29889, 657, 877, 8336, 855, 519, 14745, 742, 29871, 29953, 29900, 511, 13, 3986, 12856, 8659, 29922, 16409, 29918, 7039, 876, 13, 13, 1678, 25342, 1364, 14952, 29918, 1853, 1275, 525, 20095, 29918, 3733, 1358, 2396, 13, 418, 396, 13761, 29918, 3733, 1358, 1248, 9306, 11978, 3620, 393, 671, 278, 1364, 14952, 1024, 408, 1009, 13, 418, 396, 7663, 313, 4149, 903, 20606, 29872, 7277, 4435, 2855, 8176, 1523, 17954, 467, 14514, 292, 373, 445, 13, 418, 396, 5662, 1973, 393, 591, 871, 1993, 3620, 515, 1749, 1248, 1358, 29889, 13, 418, 28598, 352, 414, 29889, 4397, 29898, 15771, 29933, 4014, 4504, 14952, 29898, 13, 3986, 1024, 29922, 816, 14952, 29918, 978, 29892, 13, 3986, 1735, 29918, 4572, 29922, 7277, 5072, 29898, 13, 795, 7663, 29922, 710, 29898, 816, 14952, 29918, 978, 511, 13, 3986, 10353, 13, 3986, 5447, 855, 519, 14745, 29922, 816, 14952, 29918, 5975, 29889, 657, 877, 8336, 855, 519, 14745, 742, 29871, 29953, 29900, 511, 13, 3986, 12856, 8659, 29922, 16409, 29918, 7039, 876, 13, 13, 1678, 25342, 1364, 14952, 29918, 1853, 1275, 525, 29883, 1617, 2396, 13, 418, 28598, 352, 414, 29889, 4397, 29898, 29940, 523, 368, 29898, 13, 3986, 1024, 29922, 816, 14952, 29918, 978, 29892, 13, 3986, 5443, 2433, 6207, 742, 13, 3986, 11015, 29922, 816, 14952, 29918, 5975, 1839, 1195, 1082, 7464, 13, 3986, 7234, 29922, 816, 14952, 29918, 5975, 1839, 18721, 7464, 13, 3986, 12856, 8659, 29922, 16409, 29918, 7039, 876, 13, 13, 1678, 1683, 29901, 13, 418, 12020, 7865, 2392, 877, 348, 23765, 1364, 14952, 1134, 11860, 29879, 29908, 29915, 1273, 1364, 14952, 29918, 1853, 29897, 13, 13, 29871, 736, 28598, 352, 414, 13, 13, 13, 1753, 903, 20606, 29872, 7277, 4435, 2855, 8176, 1523, 17954, 29898, 4282, 414, 1125, 13, 29871, 1735, 29918, 4993, 353, 5159, 13, 29871, 4055, 29918, 510, 17954, 353, 6213, 13, 13, 29871, 6315, 29918, 26045, 29918, 517, 29918, 17519, 267, 353, 6571, 13, 29871, 363, 1364, 14952, 29918, 2917, 297, 2048, 414, 1839, 816, 287, 352, 414, 13359, 5975, 7295, 13, 1678, 565, 1364, 14952, 29918, 2917, 1839, 1853, 2033, 2804, 525, 5559, 29918, 3733, 1358, 2396, 13, 418, 6773, 13, 13, 1678, 3142, 353, 1364, 14952, 29918, 2917, 1839, 5559, 29918, 20095, 29918, 2271, 2033, 13, 1678, 5443, 353, 1364, 14952, 29918, 2917, 29889, 657, 877, 17519, 742, 525, 6207, 1495, 13, 1678, 6315, 29918, 26045, 29918, 517, 29918, 17519, 267, 29889, 842, 4381, 29898, 2271, 29892, 731, 16655, 1202, 29898, 17519, 29897, 13, 13, 29871, 363, 3142, 29892, 14202, 297, 6315, 29918, 26045, 29918, 517, 29918, 17519, 267, 29889, 1524, 7076, 7295, 13, 1678, 1735, 29918, 4993, 29889, 4397, 29898, 13, 4706, 6315, 5475, 29918, 3733, 1358, 29889, 28712, 5475, 7713, 1358, 29898, 2271, 29892, 14202, 29922, 1761, 29898, 17519, 267, 4961, 13, 13, 29871, 363, 1364, 14952, 29918, 978, 29892, 1364, 14952, 29918, 2917, 297, 2048, 414, 1839, 816, 287, 352, 414, 13359, 1524, 7076, 7295, 13, 1678, 565, 1364, 14952, 29918, 2917, 1839, 1853, 2033, 2804, 525, 20095, 29918, 3733, 1358, 2396, 13, 418, 6773, 13, 13, 1678, 6664, 29918, 2324, 29918, 6886, 353, 1364, 14952, 29918, 2917, 29889, 657, 877, 13478, 29918, 2324, 29918, 6886, 1495, 13, 1678, 5443, 353, 1364, 14952, 29918, 2917, 29889, 657, 877, 17519, 1495, 13, 1678, 14202, 353, 518, 17519, 29962, 565, 5443, 338, 451, 6213, 1683, 6213, 13, 1678, 1735, 29918, 4993, 29889, 4397, 29898, 20095, 29918, 3733, 1358, 29889, 5612, 29877, 7713, 1358, 29898, 13, 4706, 13761, 29918, 2271, 29922, 816, 14952, 29918, 2917, 1839, 20095, 29918, 2271, 7464, 13, 4706, 10419, 2433, 29135, 742, 13, 4706, 7663, 29922, 710, 29898, 816, 14952, 29918, 978, 511, 13, 4706, 13761, 29918, 17519, 267, 29922, 17519, 267, 29892, 13, 4706, 21180, 12506, 29922, 29941, 29900, 29900, 29892, 13, 4706, 6664, 2324, 18276, 572, 29922, 13478, 29918, 2324, 29918, 6886, 876, 13, 13, 29871, 396, 1334, 505, 304, 731, 278, 4055, 29918, 510, 17954, 304, 1554, 29892, 541, 565, 591, 505, 2999, 13, 29871, 396, 17573, 29892, 278, 4055, 29918, 510, 17954, 674, 451, 664, 6284, 313, 277, 29915, 29879, 6593, 2222, 467, 13, 29871, 396, 739, 29915, 29879, 451, 2821, 565, 727, 29915, 29879, 263, 1781, 1234, 304, 445, 29889, 13, 29871, 565, 1735, 29918, 4993, 29901, 13, 1678, 4055, 29918, 510, 17954, 353, 1735, 29918, 4993, 29961, 29900, 1822, 510, 17954, 13, 13, 29871, 736, 1735, 29918, 4993, 29892, 4055, 29918, 510, 17954, 13, 2 ]
2021/07.py
EwwPhysics/advent-of-code
0
70239
<filename>2021/07.py from statistics import mean, median import math with open("input.txt") as fin: positions = [int(i) for i in fin.read().split(",")] def p1(): m = median(positions) return sum(abs(m - x) for x in positions) def p2(): m = mean(positions) res = float("inf") for m in range(math.floor(m) - 1, math.floor(m) + 1): res = min(res, sum(abs(m - x) / 2 * (abs(m - x) + 1) for x in positions)) return res print(p2())
[ 1, 529, 9507, 29958, 29906, 29900, 29906, 29896, 29914, 29900, 29955, 29889, 2272, 13, 3166, 13964, 1053, 2099, 29892, 19194, 13, 5215, 5844, 13, 13, 13, 2541, 1722, 703, 2080, 29889, 3945, 1159, 408, 1436, 29901, 13, 1678, 11909, 353, 518, 524, 29898, 29875, 29897, 363, 474, 297, 1436, 29889, 949, 2141, 5451, 28165, 13531, 13, 13, 13, 1753, 282, 29896, 7295, 13, 1678, 286, 353, 19194, 29898, 1066, 2187, 29897, 13, 1678, 736, 2533, 29898, 6897, 29898, 29885, 448, 921, 29897, 363, 921, 297, 11909, 29897, 13, 13, 13, 1753, 282, 29906, 7295, 13, 1678, 286, 353, 2099, 29898, 1066, 2187, 29897, 13, 1678, 620, 353, 5785, 703, 7192, 1159, 13, 1678, 363, 286, 297, 3464, 29898, 755, 29889, 14939, 29898, 29885, 29897, 448, 29871, 29896, 29892, 5844, 29889, 14939, 29898, 29885, 29897, 718, 29871, 29896, 1125, 13, 4706, 620, 353, 1375, 29898, 690, 29892, 2533, 29898, 6897, 29898, 29885, 448, 921, 29897, 847, 29871, 29906, 334, 313, 6897, 29898, 29885, 448, 921, 29897, 718, 29871, 29896, 29897, 363, 921, 297, 11909, 876, 13, 1678, 736, 620, 13, 13, 13, 2158, 29898, 29886, 29906, 3101, 13, 2 ]
test/hello.py
marcosfede/ec-archlinux
0
1604324
<gh_stars>0 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Simple test as an example # def test(helper): helper.wait_output("--- UART initialized") helper.ec_command("version") ro = helper.wait_output("RO:\s*(?P<ro>\S+)", use_re=True)["ro"] wa = helper.wait_output("RW-A:\s*(?P<a>\S+)", use_re=True)["a"] wb = helper.wait_output("RW-B:\s*(?P<b>\S*)", use_re=True)["b"] helper.trace("Version (RO/A/B) %s / %s / %s\n" % (ro, wa, wb)) return True # PASS !
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29896, 450, 678, 456, 1974, 6570, 13189, 943, 29889, 2178, 10462, 21676, 29889, 13, 29937, 4803, 310, 445, 2752, 775, 338, 4095, 287, 491, 263, 350, 7230, 29899, 3293, 19405, 393, 508, 367, 13, 29937, 1476, 297, 278, 365, 2965, 1430, 1660, 934, 29889, 13, 29937, 13, 29937, 12545, 1243, 408, 385, 1342, 13, 29937, 13, 13, 1753, 1243, 29898, 20907, 1125, 13, 418, 16876, 29889, 10685, 29918, 4905, 703, 5634, 501, 8322, 16601, 1159, 13, 418, 16876, 29889, 687, 29918, 6519, 703, 3259, 1159, 13, 418, 696, 353, 16876, 29889, 10685, 29918, 4905, 703, 1672, 3583, 29879, 29930, 10780, 29925, 29966, 307, 14247, 29903, 29974, 19123, 671, 29918, 276, 29922, 5574, 29897, 3366, 307, 3108, 13, 418, 11324, 353, 16876, 29889, 10685, 29918, 4905, 703, 29934, 29956, 29899, 29909, 3583, 29879, 29930, 10780, 29925, 29966, 29874, 14247, 29903, 29974, 19123, 671, 29918, 276, 29922, 5574, 29897, 3366, 29874, 3108, 13, 418, 281, 29890, 353, 16876, 29889, 10685, 29918, 4905, 703, 29934, 29956, 29899, 29933, 3583, 29879, 29930, 10780, 29925, 29966, 29890, 14247, 29903, 7528, 613, 671, 29918, 276, 29922, 5574, 29897, 3366, 29890, 3108, 13, 418, 16876, 29889, 15003, 703, 6594, 313, 1672, 29914, 29909, 29914, 29933, 29897, 1273, 29879, 847, 1273, 29879, 847, 1273, 29879, 29905, 29876, 29908, 1273, 313, 307, 29892, 11324, 29892, 281, 29890, 876, 13, 418, 736, 5852, 396, 17687, 1799, 1738, 13, 2 ]
devops-console/apps/teams/models.py
lilinghell/devops
4
52439
<gh_stars>1-10 from django.db import models from django.utils.translation import ugettext_lazy as _ from users.models import User from common.mixin import BaseModelMixin __all__ = ["Team", "Member"] class Team(BaseModelMixin): name = models.CharField(max_length=128, null=True, unique=True, verbose_name=_("TeamName")) description = models.TextField(null=True, blank=True, verbose_name=_("描述信息")) parent = models.ForeignKey('Team', null=True, blank=True, related_name="child_teams", on_delete=models.SET_NULL, verbose_name=_("上级team")) owner = models.ForeignKey(User, related_name="owner_teams", on_delete=models.SET_NULL, null=True, verbose_name=_("小组负责人")) class Meta: ordering = ["-created_at"] db_table = "teams" class Member(BaseModelMixin): """ 成员,包含团队成员、项目成员、应用成员等等 """ TEAM_MEMBER = "TeamMember" TEAM_ADMIN = "TeamAdmin" APP_MEMBER = "AppMember" PROJECT_MEMBER = "ProjectMember" TYPE_CHOICES = ((TEAM_MEMBER, "TeamMember"), (APP_MEMBER, "AppMember"), (PROJECT_MEMBER, "ProjectMember")) SOURCE_APP = "application" SOURCE_TEAM = "team" SOURCE_PROJECT = "project" SOURCE_CHOICES = ((SOURCE_TEAM, "team"), (SOURCE_APP, "application"), (SOURCE_PROJECT, "project")) user = models.ForeignKey(User, related_name="members", on_delete=models.CASCADE) source_id = models.IntegerField(verbose_name=_("来源ID")) source_type = models.CharField(choices=SOURCE_CHOICES, max_length=32, null=False, verbose_name=_("member type ,比如team、project、app等")) type = models.CharField(choices=TYPE_CHOICES, max_length=32, verbose_name=_("成员类型")) access_level = models.IntegerField(verbose_name=_("访问权限"), default=10) notification_level = models.IntegerField(null=True, verbose_name=_("notification_level")) class Meta: ordering = ["-created_at", "access_level"] unique_together = [('source_id', 'source_type', 'user')] db_table = "members"
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 318, 657, 726, 29918, 433, 1537, 408, 903, 13, 3166, 4160, 29889, 9794, 1053, 4911, 13, 3166, 3619, 29889, 28084, 262, 1053, 7399, 3195, 29924, 861, 262, 13, 13, 1649, 497, 1649, 353, 6796, 19409, 613, 376, 13404, 3108, 13, 13, 13, 1990, 8583, 29898, 5160, 3195, 29924, 861, 262, 1125, 13, 1678, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29906, 29947, 29892, 1870, 29922, 5574, 29892, 5412, 29922, 5574, 29892, 26952, 29918, 978, 29922, 29918, 703, 19409, 1170, 5783, 13, 1678, 6139, 353, 4733, 29889, 15778, 29898, 4304, 29922, 5574, 29892, 9654, 29922, 5574, 29892, 26952, 29918, 978, 29922, 29918, 703, 233, 146, 146, 235, 194, 179, 30689, 31021, 5783, 13, 1678, 3847, 353, 4733, 29889, 27755, 2558, 877, 19409, 742, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29892, 4475, 29918, 978, 543, 5145, 29918, 371, 2232, 613, 373, 29918, 8143, 29922, 9794, 29889, 10490, 29918, 10074, 29892, 13, 462, 1669, 26952, 29918, 978, 29922, 29918, 703, 30429, 234, 189, 170, 14318, 5783, 13, 1678, 12271, 353, 4733, 29889, 27755, 2558, 29898, 2659, 29892, 4475, 29918, 978, 543, 20348, 29918, 371, 2232, 613, 373, 29918, 8143, 29922, 9794, 29889, 10490, 29918, 10074, 29892, 1870, 29922, 5574, 29892, 13, 462, 795, 26952, 29918, 978, 29922, 29918, 703, 30446, 31263, 235, 183, 162, 235, 183, 166, 30313, 5783, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 20520, 353, 6796, 29899, 11600, 29918, 271, 3108, 13, 4706, 4833, 29918, 2371, 353, 376, 371, 2232, 29908, 13, 13, 13, 1990, 19495, 29898, 5160, 3195, 29924, 861, 262, 1125, 13, 1678, 9995, 13, 13, 268, 30494, 31911, 30214, 31473, 232, 147, 174, 232, 158, 165, 236, 155, 162, 30494, 31911, 30330, 31888, 30895, 30494, 31911, 30330, 31370, 30406, 30494, 31911, 31184, 31184, 13, 1678, 9995, 13, 1678, 17067, 5194, 29918, 2303, 9486, 1001, 353, 376, 19409, 13404, 29908, 13, 1678, 17067, 5194, 29918, 3035, 16173, 353, 376, 19409, 12754, 29908, 13, 1678, 12279, 29925, 29918, 2303, 9486, 1001, 353, 376, 2052, 13404, 29908, 13, 1678, 13756, 17637, 29918, 2303, 9486, 1001, 353, 376, 7653, 13404, 29908, 13, 1678, 323, 6959, 29918, 3210, 29949, 2965, 2890, 353, 5135, 4330, 5194, 29918, 2303, 9486, 1001, 29892, 376, 19409, 13404, 4968, 313, 20576, 29918, 2303, 9486, 1001, 29892, 376, 2052, 13404, 4968, 313, 8618, 17637, 29918, 2303, 9486, 1001, 29892, 376, 7653, 13404, 5783, 13, 1678, 7791, 4574, 4741, 29918, 20576, 353, 376, 6214, 29908, 13, 1678, 7791, 4574, 4741, 29918, 4330, 5194, 353, 376, 14318, 29908, 13, 1678, 7791, 4574, 4741, 29918, 8618, 17637, 353, 376, 4836, 29908, 13, 1678, 7791, 4574, 4741, 29918, 3210, 29949, 2965, 2890, 353, 5135, 27839, 4741, 29918, 4330, 5194, 29892, 376, 14318, 4968, 313, 27839, 4741, 29918, 20576, 29892, 376, 6214, 4968, 313, 27839, 4741, 29918, 8618, 17637, 29892, 376, 4836, 5783, 13, 13, 1678, 1404, 353, 4733, 29889, 27755, 2558, 29898, 2659, 29892, 4475, 29918, 978, 543, 28109, 613, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29897, 13, 1678, 2752, 29918, 333, 353, 4733, 29889, 7798, 3073, 29898, 369, 15828, 29918, 978, 29922, 29918, 703, 30805, 31193, 1367, 5783, 13, 1678, 2752, 29918, 1853, 353, 4733, 29889, 27890, 29898, 1859, 1575, 29922, 27839, 4741, 29918, 3210, 29949, 2965, 2890, 29892, 4236, 29918, 2848, 29922, 29941, 29906, 29892, 1870, 29922, 8824, 29892, 13, 462, 462, 259, 26952, 29918, 978, 29922, 29918, 703, 14242, 1134, 29871, 30214, 31419, 30847, 14318, 30330, 4836, 30330, 932, 31184, 5783, 13, 1678, 1134, 353, 4733, 29889, 27890, 29898, 1859, 1575, 29922, 11116, 29918, 3210, 29949, 2965, 2890, 29892, 4236, 29918, 2848, 29922, 29941, 29906, 29892, 26952, 29918, 978, 29922, 29918, 703, 30494, 31911, 30832, 30883, 5783, 13, 1678, 2130, 29918, 5563, 353, 4733, 29889, 7798, 3073, 29898, 369, 15828, 29918, 978, 29922, 29918, 703, 235, 177, 194, 31658, 233, 160, 134, 31175, 4968, 2322, 29922, 29896, 29900, 29897, 13, 1678, 12519, 29918, 5563, 353, 4733, 29889, 7798, 3073, 29898, 4304, 29922, 5574, 29892, 26952, 29918, 978, 29922, 29918, 703, 24671, 29918, 5563, 5783, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 20520, 353, 6796, 29899, 11600, 29918, 271, 613, 376, 5943, 29918, 5563, 3108, 13, 4706, 5412, 29918, 29873, 12966, 353, 518, 877, 4993, 29918, 333, 742, 525, 4993, 29918, 1853, 742, 525, 1792, 1495, 29962, 13, 4706, 4833, 29918, 2371, 353, 376, 28109, 29908, 13, 2 ]
hash&heap/0685_First_Unique_Number_in_Data_Stream.py
adwardlee/leetcode_solutions
0
116596
<filename>hash&heap/0685_First_Unique_Number_in_Data_Stream.py ''' Description Given a continuous stream of data, write a function that returns the first unique number (including the last number) when the terminating number arrives. If the terminating number is not found, return -1. Example Example1 Input: [1, 2, 2, 1, 3, 4, 4, 5, 6] 5 Output: 3 Example2 Input: [1, 2, 2, 1, 3, 4, 4, 5, 6] 7 Output: -1 Example3 Input: [1, 2, 2, 1, 3, 4] 3 Output: 3 ''' class Solution: """ @param nums: a continuous stream of numbers @param number: a number @return: returns the first unique number """ def firstUniqueNumber(self, nums, number): # Write your code here onedict = {} flag = False for i, x in enumerate(nums): if x not in onedict: onedict[x] = [1, i] else: onedict[x][0] += 1 if number == x: flag = True break if flag == True: oncelist = [] for key in onedict: if onedict[key][0] == 1: oncelist.append([key, onedict[key][1]]) x = 2e30 returnkey = None for one in oncelist: if one[1] < x: x = one[1] returnkey = one[0] return returnkey else: return -1
[ 1, 529, 9507, 29958, 8568, 29987, 354, 481, 29914, 29900, 29953, 29947, 29945, 29918, 6730, 29918, 8110, 802, 29918, 4557, 29918, 262, 29918, 1469, 29918, 3835, 29889, 2272, 13, 12008, 13, 9868, 13, 29954, 5428, 263, 9126, 4840, 310, 848, 29892, 2436, 263, 740, 393, 3639, 278, 937, 5412, 1353, 313, 18271, 278, 1833, 1353, 29897, 746, 278, 6624, 1218, 1353, 6974, 267, 29889, 960, 278, 6624, 1218, 1353, 338, 451, 1476, 29892, 736, 448, 29896, 29889, 13, 13, 14023, 13, 14023, 29896, 13, 13, 4290, 29901, 29871, 13, 29961, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29962, 13, 29945, 13, 6466, 29901, 29871, 29941, 13, 14023, 29906, 13, 13, 4290, 29901, 29871, 13, 29961, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29962, 13, 29955, 13, 6466, 29901, 448, 29896, 13, 14023, 29941, 13, 13, 4290, 29901, 29871, 13, 29961, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29941, 29892, 29871, 29946, 29962, 13, 29941, 13, 6466, 29901, 29871, 29941, 13, 12008, 13, 13, 1990, 24380, 29901, 13, 1678, 9995, 13, 1678, 732, 3207, 954, 29879, 29901, 263, 9126, 4840, 310, 3694, 13, 1678, 732, 3207, 1353, 29901, 263, 1353, 13, 1678, 732, 2457, 29901, 3639, 278, 937, 5412, 1353, 13, 1678, 9995, 13, 1678, 822, 937, 8110, 802, 4557, 29898, 1311, 29892, 954, 29879, 29892, 1353, 1125, 13, 4706, 396, 14350, 596, 775, 1244, 13, 4706, 373, 287, 919, 353, 6571, 13, 4706, 7353, 353, 7700, 13, 4706, 363, 474, 29892, 921, 297, 26985, 29898, 1949, 29879, 1125, 13, 9651, 565, 921, 451, 297, 373, 287, 919, 29901, 13, 18884, 373, 287, 919, 29961, 29916, 29962, 353, 518, 29896, 29892, 474, 29962, 13, 9651, 1683, 29901, 13, 18884, 373, 287, 919, 29961, 29916, 3816, 29900, 29962, 4619, 29871, 29896, 13, 9651, 565, 1353, 1275, 921, 29901, 13, 18884, 7353, 353, 5852, 13, 18884, 2867, 13, 4706, 565, 7353, 1275, 5852, 29901, 13, 9651, 373, 2242, 391, 353, 5159, 13, 9651, 363, 1820, 297, 373, 287, 919, 29901, 13, 18884, 565, 373, 287, 919, 29961, 1989, 3816, 29900, 29962, 1275, 29871, 29896, 29901, 13, 462, 1678, 373, 2242, 391, 29889, 4397, 4197, 1989, 29892, 373, 287, 919, 29961, 1989, 3816, 29896, 24960, 13, 9651, 921, 353, 29871, 29906, 29872, 29941, 29900, 13, 9651, 736, 1989, 353, 6213, 13, 9651, 363, 697, 297, 373, 2242, 391, 29901, 13, 18884, 565, 697, 29961, 29896, 29962, 529, 921, 29901, 13, 462, 1678, 921, 353, 697, 29961, 29896, 29962, 13, 462, 1678, 736, 1989, 353, 697, 29961, 29900, 29962, 13, 9651, 736, 736, 1989, 13, 4706, 1683, 29901, 13, 9651, 736, 448, 29896, 2 ]
factom_core/blocks/admin_block.py
sourcery-ai-bot/factom-core
0
59675
<reponame>sourcery-ai-bot/factom-core<filename>factom_core/blocks/admin_block.py import hashlib from dataclasses import dataclass, field from typing import List from factom_core.block_elements.admin_messages import * from factom_core.utils import varint from .directory_block import DirectoryBlock @dataclass class AdminBlockHeader: CHAIN_ID = bytes.fromhex("000000000000000000000000000000000000000000000000000000000000000a") prev_back_reference_hash: bytes height: int expansion_area: bytes message_count: int body_size: int def __post_init__(self): # TODO: value assertions pass def marshal(self) -> bytes: buf = bytearray() buf.extend(AdminBlockHeader.CHAIN_ID) buf.extend(self.prev_back_reference_hash) buf.extend(struct.pack(">I", self.height)) buf.extend(varint.encode(len(self.expansion_area))) buf.extend(self.expansion_area) buf.extend(struct.pack(">I", self.message_count)) buf.extend(struct.pack(">I", self.body_size)) return bytes(buf) @classmethod def unmarshal(cls, raw: bytes): h, data = AdminBlockHeader.unmarshal_with_remainder(raw) assert len(data) == 0, "Extra bytes remaining!" return h @classmethod def unmarshal_with_remainder(cls, raw: bytes): chain_id, data = raw[:32], raw[32:] assert chain_id == AdminBlockHeader.CHAIN_ID prev_back_reference_hash, data = data[:32], data[32:] height, data = struct.unpack(">I", data[:4])[0], data[4:] expansion_size, data = varint.decode(data) expansion_area, data = data[:expansion_size], data[expansion_size:] # TODO: unmarshal header expansion area message_count, data = struct.unpack(">I", data[:4])[0], data[4:] body_size, data = struct.unpack(">I", data[:4])[0], data[4:] return ( AdminBlockHeader( prev_back_reference_hash=prev_back_reference_hash, height=height, expansion_area=expansion_area, message_count=message_count, body_size=body_size, ), data, ) @dataclass class AdminBlockBody: messages: List[AdminMessage] = field(default_factory=list) def __post_init__(self): # TODO: value assertions pass def marshal(self) -> bytes: buf = bytearray() for message in self.messages: if type(message) is int: buf.append(message) continue buf.append(message.__class__.ADMIN_ID) buf.extend(message.marshal()) return bytes(buf) @classmethod def unmarshal(cls, raw: bytes, message_count: int): body, data = cls.unmarshal_with_remainder(raw, message_count) assert len(data) == 0, "Extra bytes remaining!" return body @classmethod def unmarshal_with_remainder(cls, raw: bytes, message_count: int): data = raw messages = [] for _ in range(message_count): admin_id, data = data[0], data[1:] msg = None if admin_id == MinuteNumber.ADMIN_ID: # Deprecated in M2 size = MinuteNumber.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = MinuteNumber.unmarshal(msg_data) elif admin_id == DirectoryBlockSignature.ADMIN_ID: size = DirectoryBlockSignature.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = DirectoryBlockSignature.unmarshal(msg_data) elif admin_id == MatryoshkaHashReveal.ADMIN_ID: size = MatryoshkaHashReveal.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = MatryoshkaHashReveal.unmarshal(msg_data) elif admin_id == MatryoshkaHashAddOrReplace.ADMIN_ID: size = MatryoshkaHashAddOrReplace.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = MatryoshkaHashAddOrReplace.unmarshal(msg_data) elif admin_id == ServerCountIncrease.ADMIN_ID: size = ServerCountIncrease.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = ServerCountIncrease.unmarshal(msg_data) elif admin_id == AddFederatedServer.ADMIN_ID: size = AddFederatedServer.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddFederatedServer.unmarshal(msg_data) elif admin_id == AddAuditServer.ADMIN_ID: size = AddAuditServer.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddAuditServer.unmarshal(msg_data) elif admin_id == RemoveFederatedServer.ADMIN_ID: size = RemoveFederatedServer.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = RemoveFederatedServer.unmarshal(msg_data) elif admin_id == AddFederatedServerSigningKey.ADMIN_ID: size = AddFederatedServerSigningKey.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddFederatedServerSigningKey.unmarshal(msg_data) elif admin_id == AddFederatedServerBitcoinAnchorKey.ADMIN_ID: size = AddFederatedServerBitcoinAnchorKey.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddFederatedServerBitcoinAnchorKey.unmarshal(msg_data) elif admin_id == ServerFaultHandoff.ADMIN_ID: msg = ServerFaultHandoff() # No data on chain for message elif admin_id == CoinbaseDescriptor.ADMIN_ID: msg, data = CoinbaseDescriptor.unmarshal_with_remainder(data) elif admin_id == CoinbaseDescriptorCancel.ADMIN_ID: msg, data = CoinbaseDescriptorCancel.unmarshal_with_remainder(data) elif admin_id == AddAuthorityFactoidAddress.ADMIN_ID: size = AddAuthorityFactoidAddress.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddAuthorityFactoidAddress.unmarshal(msg_data) elif admin_id == AddAuthorityEfficiency.ADMIN_ID: size = AddAuthorityEfficiency.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddAuthorityFactoidAddress.unmarshal(msg_data) elif admin_id <= 0x0E: msg = admin_id print(f'Unsupported admin message type {msg} found') if msg is not None: messages.append(msg) assert len(messages) == message_count, "Unexpected message count" return AdminBlockBody(messages=messages), data def construct_header(self, prev_back_reference_hash: bytes, height: int) -> AdminBlockHeader: """ Seals the admin block by constructing and returning its header """ return AdminBlockHeader( prev_back_reference_hash=prev_back_reference_hash, height=height, expansion_area=b"", message_count=len(self.messages), body_size=len(self.marshal()), ) @dataclass class AdminBlock: header: AdminBlockHeader body: AdminBlockBody _cached_lookup_hash: bytes = None _cached_back_reference_hash: bytes = None def __post_init__(self): # TODO: value assertions pass @property def lookup_hash(self): if self._cached_lookup_hash is not None: return self._cached_lookup_hash self._cached_lookup_hash = hashlib.sha256(self.marshal()).digest() return self._cached_lookup_hash @property def back_reference_hash(self): if self._cached_back_reference_hash is not None: return self._cached_back_reference_hash self._cached_back_reference_hash = hashlib.sha512(self.marshal()).digest()[:32] return self._cached_back_reference_hash def marshal(self) -> bytes: buf = bytearray() buf.extend(self.header.marshal()) buf.extend(self.body.marshal()) return bytes(buf) @classmethod def unmarshal(cls, raw: bytes): """Returns a new AdminBlock object, unmarshalling given bytes according to: https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#administrative-block Useful for working with a single ablock out of context, pulled directly from a factomd database for instance. AdminBlock created will not include contextual metadata, such as timestamp """ block, data = cls.unmarshal_with_remainder(raw) assert len(data) == 0, "Extra bytes remaining!" return block @classmethod def unmarshal_with_remainder(cls, raw: bytes): header, data = AdminBlockHeader.unmarshal_with_remainder(raw) messages = [] for _ in range(header.message_count): admin_id, data = data[0], data[1:] msg = None if admin_id == MinuteNumber.ADMIN_ID: # Deprecated in M2 size = MinuteNumber.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = MinuteNumber.unmarshal(msg_data) elif admin_id == DirectoryBlockSignature.ADMIN_ID: size = DirectoryBlockSignature.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = DirectoryBlockSignature.unmarshal(msg_data) elif admin_id == MatryoshkaHashReveal.ADMIN_ID: size = MatryoshkaHashReveal.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = MatryoshkaHashReveal.unmarshal(msg_data) elif admin_id == MatryoshkaHashAddOrReplace.ADMIN_ID: size = MatryoshkaHashAddOrReplace.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = MatryoshkaHashAddOrReplace.unmarshal(msg_data) elif admin_id == ServerCountIncrease.ADMIN_ID: size = ServerCountIncrease.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = ServerCountIncrease.unmarshal(msg_data) elif admin_id == AddFederatedServer.ADMIN_ID: size = AddFederatedServer.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddFederatedServer.unmarshal(msg_data) elif admin_id == AddAuditServer.ADMIN_ID: size = AddAuditServer.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddAuditServer.unmarshal(msg_data) elif admin_id == RemoveFederatedServer.ADMIN_ID: size = RemoveFederatedServer.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = RemoveFederatedServer.unmarshal(msg_data) elif admin_id == AddFederatedServerSigningKey.ADMIN_ID: size = AddFederatedServerSigningKey.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddFederatedServerSigningKey.unmarshal(msg_data) elif admin_id == AddFederatedServerBitcoinAnchorKey.ADMIN_ID: size = AddFederatedServerBitcoinAnchorKey.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddFederatedServerBitcoinAnchorKey.unmarshal(msg_data) elif admin_id == ServerFaultHandoff.ADMIN_ID: msg = ServerFaultHandoff() # No data on chain for message elif admin_id == CoinbaseDescriptor.ADMIN_ID: msg, data = CoinbaseDescriptor.unmarshal_with_remainder(data) elif admin_id == CoinbaseDescriptorCancel.ADMIN_ID: msg, data = CoinbaseDescriptorCancel.unmarshal_with_remainder(data) elif admin_id == AddAuthorityFactoidAddress.ADMIN_ID: size = AddAuthorityFactoidAddress.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddAuthorityFactoidAddress.unmarshal(msg_data) elif admin_id == AddAuthorityEfficiency.ADMIN_ID: size = AddAuthorityEfficiency.MESSAGE_SIZE msg_data, data = data[:size], data[size:] msg = AddAuthorityFactoidAddress.unmarshal(msg_data) elif admin_id <= 0x0E: msg = admin_id print( "Unsupported admin message type {} found at Admin Block {}".format( msg, header.height ) ) if msg is not None: messages.append(msg) assert len(messages) == header.message_count, "Unexpected message count at Admin Block {}".format(header.height) body = AdminBlockBody(messages=messages) return AdminBlock(header=header, body=body), data def add_context(self, directory_block: DirectoryBlock): pass def to_dict(self): return { "lookup_hash": self.lookup_hash.hex(), "back_reference_hash": self.header.prev_back_reference_hash.hex(), "height": self.header.height, "expansion_area": self.header.expansion_area.hex(), "message_count": self.header.message_count, "body_size": self.header.body_size, "messages": [m.to_dict() for m in self.body.messages], } def __str__(self): return "{}(height={}, hash={})".format(self.__class__.__name__, self.header.height, self.lookup_hash.hex())
[ 1, 529, 276, 1112, 420, 29958, 29879, 473, 29883, 708, 29899, 1794, 29899, 7451, 29914, 17028, 290, 29899, 3221, 29966, 9507, 29958, 17028, 290, 29918, 3221, 29914, 1271, 29879, 29914, 6406, 29918, 1271, 29889, 2272, 13, 5215, 6608, 1982, 13, 3166, 848, 13203, 1053, 848, 1990, 29892, 1746, 13, 3166, 19229, 1053, 2391, 13, 13, 3166, 2114, 290, 29918, 3221, 29889, 1271, 29918, 17664, 29889, 6406, 29918, 19158, 1053, 334, 13, 3166, 2114, 290, 29918, 3221, 29889, 13239, 1053, 722, 524, 13, 3166, 869, 12322, 29918, 1271, 1053, 18862, 7445, 13, 13, 13, 29992, 1272, 1990, 13, 1990, 10229, 7445, 7850, 29901, 13, 13, 1678, 5868, 29909, 1177, 29918, 1367, 353, 6262, 29889, 3166, 20970, 703, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29874, 1159, 13, 13, 1678, 12379, 29918, 1627, 29918, 5679, 29918, 8568, 29901, 6262, 13, 1678, 3171, 29901, 938, 13, 1678, 13184, 29918, 6203, 29901, 6262, 13, 1678, 2643, 29918, 2798, 29901, 938, 13, 1678, 3573, 29918, 2311, 29901, 938, 13, 13, 1678, 822, 4770, 2490, 29918, 2344, 12035, 1311, 1125, 13, 4706, 396, 14402, 29901, 995, 4974, 1080, 13, 4706, 1209, 13, 13, 1678, 822, 1766, 23258, 29898, 1311, 29897, 1599, 6262, 29901, 13, 4706, 18392, 353, 7023, 2378, 580, 13, 4706, 18392, 29889, 21843, 29898, 12754, 7445, 7850, 29889, 3210, 29909, 1177, 29918, 1367, 29897, 13, 4706, 18392, 29889, 21843, 29898, 1311, 29889, 16304, 29918, 1627, 29918, 5679, 29918, 8568, 29897, 13, 4706, 18392, 29889, 21843, 29898, 4984, 29889, 4058, 703, 29958, 29902, 613, 1583, 29889, 3545, 876, 13, 4706, 18392, 29889, 21843, 29898, 1707, 524, 29889, 12508, 29898, 2435, 29898, 1311, 29889, 4548, 9454, 29918, 6203, 4961, 13, 4706, 18392, 29889, 21843, 29898, 1311, 29889, 4548, 9454, 29918, 6203, 29897, 13, 4706, 18392, 29889, 21843, 29898, 4984, 29889, 4058, 703, 29958, 29902, 613, 1583, 29889, 4906, 29918, 2798, 876, 13, 4706, 18392, 29889, 21843, 29898, 4984, 29889, 4058, 703, 29958, 29902, 613, 1583, 29889, 2587, 29918, 2311, 876, 13, 4706, 736, 6262, 29898, 9721, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 443, 3034, 23258, 29898, 25932, 29892, 10650, 29901, 6262, 1125, 13, 4706, 298, 29892, 848, 353, 10229, 7445, 7850, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1610, 29897, 13, 4706, 4974, 7431, 29898, 1272, 29897, 1275, 29871, 29900, 29892, 376, 18126, 6262, 9886, 3850, 13, 4706, 736, 298, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 443, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 25932, 29892, 10650, 29901, 6262, 1125, 13, 4706, 9704, 29918, 333, 29892, 848, 353, 10650, 7503, 29941, 29906, 1402, 10650, 29961, 29941, 29906, 17531, 13, 4706, 4974, 9704, 29918, 333, 1275, 10229, 7445, 7850, 29889, 3210, 29909, 1177, 29918, 1367, 13, 4706, 12379, 29918, 1627, 29918, 5679, 29918, 8568, 29892, 848, 353, 848, 7503, 29941, 29906, 1402, 848, 29961, 29941, 29906, 17531, 13, 4706, 3171, 29892, 848, 353, 2281, 29889, 348, 4058, 703, 29958, 29902, 613, 848, 7503, 29946, 2314, 29961, 29900, 1402, 848, 29961, 29946, 17531, 13, 13, 4706, 13184, 29918, 2311, 29892, 848, 353, 722, 524, 29889, 13808, 29898, 1272, 29897, 13, 4706, 13184, 29918, 6203, 29892, 848, 353, 848, 7503, 4548, 9454, 29918, 2311, 1402, 848, 29961, 4548, 9454, 29918, 2311, 17531, 13, 4706, 396, 14402, 29901, 443, 3034, 23258, 4839, 13184, 4038, 13, 13, 4706, 2643, 29918, 2798, 29892, 848, 353, 2281, 29889, 348, 4058, 703, 29958, 29902, 613, 848, 7503, 29946, 2314, 29961, 29900, 1402, 848, 29961, 29946, 17531, 13, 4706, 3573, 29918, 2311, 29892, 848, 353, 2281, 29889, 348, 4058, 703, 29958, 29902, 613, 848, 7503, 29946, 2314, 29961, 29900, 1402, 848, 29961, 29946, 17531, 13, 4706, 736, 313, 13, 9651, 10229, 7445, 7850, 29898, 13, 18884, 12379, 29918, 1627, 29918, 5679, 29918, 8568, 29922, 16304, 29918, 1627, 29918, 5679, 29918, 8568, 29892, 13, 18884, 3171, 29922, 3545, 29892, 13, 18884, 13184, 29918, 6203, 29922, 4548, 9454, 29918, 6203, 29892, 13, 18884, 2643, 29918, 2798, 29922, 4906, 29918, 2798, 29892, 13, 18884, 3573, 29918, 2311, 29922, 2587, 29918, 2311, 29892, 13, 9651, 10353, 13, 9651, 848, 29892, 13, 4706, 1723, 13, 13, 13, 29992, 1272, 1990, 13, 1990, 10229, 7445, 8434, 29901, 13, 13, 1678, 7191, 29901, 2391, 29961, 12754, 3728, 29962, 353, 1746, 29898, 4381, 29918, 14399, 29922, 1761, 29897, 13, 13, 1678, 822, 4770, 2490, 29918, 2344, 12035, 1311, 1125, 13, 4706, 396, 14402, 29901, 995, 4974, 1080, 13, 4706, 1209, 13, 13, 1678, 822, 1766, 23258, 29898, 1311, 29897, 1599, 6262, 29901, 13, 4706, 18392, 353, 7023, 2378, 580, 13, 4706, 363, 2643, 297, 1583, 29889, 19158, 29901, 13, 9651, 565, 1134, 29898, 4906, 29897, 338, 938, 29901, 13, 18884, 18392, 29889, 4397, 29898, 4906, 29897, 13, 18884, 6773, 13, 9651, 18392, 29889, 4397, 29898, 4906, 17255, 1990, 26914, 3035, 16173, 29918, 1367, 29897, 13, 9651, 18392, 29889, 21843, 29898, 4906, 29889, 3034, 23258, 3101, 13, 4706, 736, 6262, 29898, 9721, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 443, 3034, 23258, 29898, 25932, 29892, 10650, 29901, 6262, 29892, 2643, 29918, 2798, 29901, 938, 1125, 13, 4706, 3573, 29892, 848, 353, 1067, 29879, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1610, 29892, 2643, 29918, 2798, 29897, 13, 4706, 4974, 7431, 29898, 1272, 29897, 1275, 29871, 29900, 29892, 376, 18126, 6262, 9886, 3850, 13, 4706, 736, 3573, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 443, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 25932, 29892, 10650, 29901, 6262, 29892, 2643, 29918, 2798, 29901, 938, 1125, 13, 4706, 848, 353, 10650, 13, 4706, 7191, 353, 5159, 13, 4706, 363, 903, 297, 3464, 29898, 4906, 29918, 2798, 1125, 13, 9651, 4113, 29918, 333, 29892, 848, 353, 848, 29961, 29900, 1402, 848, 29961, 29896, 17531, 13, 9651, 10191, 353, 6213, 13, 9651, 565, 4113, 29918, 333, 1275, 3080, 1082, 4557, 29889, 3035, 16173, 29918, 1367, 29901, 29871, 396, 897, 17990, 630, 297, 341, 29906, 13, 18884, 2159, 353, 3080, 1082, 4557, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3080, 1082, 4557, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 18862, 7445, 10140, 1535, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 18862, 7445, 10140, 1535, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 18862, 7445, 10140, 1535, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5345, 719, 10578, 1335, 10438, 1123, 345, 284, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 5345, 719, 10578, 1335, 10438, 1123, 345, 284, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 5345, 719, 10578, 1335, 10438, 1123, 345, 284, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5345, 719, 10578, 1335, 10438, 2528, 2816, 20083, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 5345, 719, 10578, 1335, 10438, 2528, 2816, 20083, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 5345, 719, 10578, 1335, 10438, 2528, 2816, 20083, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5656, 3981, 797, 1037, 559, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 5656, 3981, 797, 1037, 559, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 5656, 3981, 797, 1037, 559, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29943, 2447, 630, 6004, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29943, 2447, 630, 6004, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29943, 2447, 630, 6004, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29909, 566, 277, 6004, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29909, 566, 277, 6004, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29909, 566, 277, 6004, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 15154, 29943, 2447, 630, 6004, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 15154, 29943, 2447, 630, 6004, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 15154, 29943, 2447, 630, 6004, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29943, 2447, 630, 6004, 10140, 292, 2558, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29943, 2447, 630, 6004, 10140, 292, 2558, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29943, 2447, 630, 6004, 10140, 292, 2558, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29943, 2447, 630, 6004, 21591, 1111, 262, 24458, 2558, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29943, 2447, 630, 6004, 21591, 1111, 262, 24458, 2558, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29943, 2447, 630, 6004, 21591, 1111, 262, 24458, 2558, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5656, 29943, 1292, 29950, 1743, 600, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 10191, 353, 5656, 29943, 1292, 29950, 1743, 600, 580, 29871, 396, 1939, 848, 373, 9704, 363, 2643, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3189, 262, 3188, 19124, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 10191, 29892, 848, 353, 3189, 262, 3188, 19124, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3189, 262, 3188, 19124, 19420, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 10191, 29892, 848, 353, 3189, 262, 3188, 19124, 19420, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 13720, 537, 20738, 3398, 7061, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 13720, 537, 20738, 3398, 7061, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 13720, 537, 20738, 3398, 7061, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 13720, 537, 29923, 2416, 13396, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 13720, 537, 29923, 2416, 13396, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 13720, 537, 20738, 3398, 7061, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 5277, 29871, 29900, 29916, 29900, 29923, 29901, 13, 18884, 10191, 353, 4113, 29918, 333, 13, 18884, 1596, 29898, 29888, 29915, 25807, 29884, 3016, 287, 4113, 2643, 1134, 426, 7645, 29913, 1476, 1495, 13, 9651, 565, 10191, 338, 451, 6213, 29901, 13, 18884, 7191, 29889, 4397, 29898, 7645, 29897, 13, 13, 4706, 4974, 7431, 29898, 19158, 29897, 1275, 2643, 29918, 2798, 29892, 376, 29965, 13996, 6021, 2643, 2302, 29908, 13, 13, 4706, 736, 10229, 7445, 8434, 29898, 19158, 29922, 19158, 511, 848, 13, 13, 1678, 822, 3386, 29918, 6672, 29898, 1311, 29892, 12379, 29918, 1627, 29918, 5679, 29918, 8568, 29901, 6262, 29892, 3171, 29901, 938, 29897, 1599, 10229, 7445, 7850, 29901, 13, 4706, 9995, 13, 4706, 922, 1338, 278, 4113, 2908, 491, 3386, 292, 322, 7863, 967, 4839, 13, 4706, 9995, 13, 4706, 736, 10229, 7445, 7850, 29898, 13, 9651, 12379, 29918, 1627, 29918, 5679, 29918, 8568, 29922, 16304, 29918, 1627, 29918, 5679, 29918, 8568, 29892, 13, 9651, 3171, 29922, 3545, 29892, 13, 9651, 13184, 29918, 6203, 29922, 29890, 29908, 613, 13, 9651, 2643, 29918, 2798, 29922, 2435, 29898, 1311, 29889, 19158, 511, 13, 9651, 3573, 29918, 2311, 29922, 2435, 29898, 1311, 29889, 3034, 23258, 25739, 13, 4706, 1723, 13, 13, 13, 29992, 1272, 1990, 13, 1990, 10229, 7445, 29901, 13, 13, 1678, 4839, 29901, 10229, 7445, 7850, 13, 1678, 3573, 29901, 10229, 7445, 8434, 13, 13, 1678, 903, 29883, 3791, 29918, 20401, 29918, 8568, 29901, 6262, 353, 6213, 13, 1678, 903, 29883, 3791, 29918, 1627, 29918, 5679, 29918, 8568, 29901, 6262, 353, 6213, 13, 13, 1678, 822, 4770, 2490, 29918, 2344, 12035, 1311, 1125, 13, 4706, 396, 14402, 29901, 995, 4974, 1080, 13, 4706, 1209, 13, 13, 1678, 732, 6799, 13, 1678, 822, 16280, 29918, 8568, 29898, 1311, 1125, 13, 4706, 565, 1583, 3032, 29883, 3791, 29918, 20401, 29918, 8568, 338, 451, 6213, 29901, 13, 9651, 736, 1583, 3032, 29883, 3791, 29918, 20401, 29918, 8568, 13, 4706, 1583, 3032, 29883, 3791, 29918, 20401, 29918, 8568, 353, 6608, 1982, 29889, 17051, 29906, 29945, 29953, 29898, 1311, 29889, 3034, 23258, 16655, 7501, 342, 580, 13, 4706, 736, 1583, 3032, 29883, 3791, 29918, 20401, 29918, 8568, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1250, 29918, 5679, 29918, 8568, 29898, 1311, 1125, 13, 4706, 565, 1583, 3032, 29883, 3791, 29918, 1627, 29918, 5679, 29918, 8568, 338, 451, 6213, 29901, 13, 9651, 736, 1583, 3032, 29883, 3791, 29918, 1627, 29918, 5679, 29918, 8568, 13, 4706, 1583, 3032, 29883, 3791, 29918, 1627, 29918, 5679, 29918, 8568, 353, 6608, 1982, 29889, 17051, 29945, 29896, 29906, 29898, 1311, 29889, 3034, 23258, 16655, 7501, 342, 580, 7503, 29941, 29906, 29962, 13, 4706, 736, 1583, 3032, 29883, 3791, 29918, 1627, 29918, 5679, 29918, 8568, 13, 13, 1678, 822, 1766, 23258, 29898, 1311, 29897, 1599, 6262, 29901, 13, 4706, 18392, 353, 7023, 2378, 580, 13, 4706, 18392, 29889, 21843, 29898, 1311, 29889, 6672, 29889, 3034, 23258, 3101, 13, 4706, 18392, 29889, 21843, 29898, 1311, 29889, 2587, 29889, 3034, 23258, 3101, 13, 4706, 736, 6262, 29898, 9721, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 443, 3034, 23258, 29898, 25932, 29892, 10650, 29901, 6262, 1125, 13, 4706, 9995, 11609, 29879, 263, 716, 10229, 7445, 1203, 29892, 443, 3034, 845, 27855, 2183, 6262, 5034, 304, 29901, 13, 4706, 2045, 597, 3292, 29889, 510, 29914, 20738, 290, 7653, 29914, 20738, 290, 29928, 12332, 29914, 10054, 29914, 6207, 29914, 17028, 290, 1469, 5015, 12425, 10602, 29889, 3487, 29937, 6406, 2132, 1230, 29899, 1271, 13, 13, 4706, 4803, 1319, 363, 1985, 411, 263, 2323, 633, 908, 714, 310, 3030, 29892, 20043, 4153, 515, 263, 2114, 290, 29881, 2566, 363, 2777, 29889, 13, 13, 4706, 10229, 7445, 2825, 674, 451, 3160, 3030, 950, 15562, 29892, 1316, 408, 14334, 13, 4706, 9995, 13, 4706, 2908, 29892, 848, 353, 1067, 29879, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1610, 29897, 13, 4706, 4974, 7431, 29898, 1272, 29897, 1275, 29871, 29900, 29892, 376, 18126, 6262, 9886, 3850, 13, 4706, 736, 2908, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 443, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 25932, 29892, 10650, 29901, 6262, 1125, 13, 4706, 4839, 29892, 848, 353, 10229, 7445, 7850, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1610, 29897, 13, 13, 4706, 7191, 353, 5159, 13, 4706, 363, 903, 297, 3464, 29898, 6672, 29889, 4906, 29918, 2798, 1125, 13, 9651, 4113, 29918, 333, 29892, 848, 353, 848, 29961, 29900, 1402, 848, 29961, 29896, 17531, 13, 9651, 10191, 353, 6213, 13, 9651, 565, 4113, 29918, 333, 1275, 3080, 1082, 4557, 29889, 3035, 16173, 29918, 1367, 29901, 29871, 396, 897, 17990, 630, 297, 341, 29906, 13, 18884, 2159, 353, 3080, 1082, 4557, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3080, 1082, 4557, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 18862, 7445, 10140, 1535, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 18862, 7445, 10140, 1535, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 18862, 7445, 10140, 1535, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5345, 719, 10578, 1335, 10438, 1123, 345, 284, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 5345, 719, 10578, 1335, 10438, 1123, 345, 284, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 5345, 719, 10578, 1335, 10438, 1123, 345, 284, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5345, 719, 10578, 1335, 10438, 2528, 2816, 20083, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 5345, 719, 10578, 1335, 10438, 2528, 2816, 20083, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 5345, 719, 10578, 1335, 10438, 2528, 2816, 20083, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5656, 3981, 797, 1037, 559, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 5656, 3981, 797, 1037, 559, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 5656, 3981, 797, 1037, 559, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29943, 2447, 630, 6004, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29943, 2447, 630, 6004, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29943, 2447, 630, 6004, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29909, 566, 277, 6004, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29909, 566, 277, 6004, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29909, 566, 277, 6004, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 15154, 29943, 2447, 630, 6004, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 15154, 29943, 2447, 630, 6004, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 15154, 29943, 2447, 630, 6004, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29943, 2447, 630, 6004, 10140, 292, 2558, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29943, 2447, 630, 6004, 10140, 292, 2558, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29943, 2447, 630, 6004, 10140, 292, 2558, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 29943, 2447, 630, 6004, 21591, 1111, 262, 24458, 2558, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 29943, 2447, 630, 6004, 21591, 1111, 262, 24458, 2558, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 29943, 2447, 630, 6004, 21591, 1111, 262, 24458, 2558, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 5656, 29943, 1292, 29950, 1743, 600, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 10191, 353, 5656, 29943, 1292, 29950, 1743, 600, 580, 29871, 396, 1939, 848, 373, 9704, 363, 2643, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3189, 262, 3188, 19124, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 10191, 29892, 848, 353, 3189, 262, 3188, 19124, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3189, 262, 3188, 19124, 19420, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 10191, 29892, 848, 353, 3189, 262, 3188, 19124, 19420, 29889, 348, 3034, 23258, 29918, 2541, 29918, 1745, 475, 672, 29898, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 13720, 537, 20738, 3398, 7061, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 13720, 537, 20738, 3398, 7061, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 13720, 537, 20738, 3398, 7061, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 1275, 3462, 13720, 537, 29923, 2416, 13396, 29889, 3035, 16173, 29918, 1367, 29901, 13, 18884, 2159, 353, 3462, 13720, 537, 29923, 2416, 13396, 29889, 2303, 1799, 10461, 29918, 14226, 13, 18884, 10191, 29918, 1272, 29892, 848, 353, 848, 7503, 2311, 1402, 848, 29961, 2311, 17531, 13, 18884, 10191, 353, 3462, 13720, 537, 20738, 3398, 7061, 29889, 348, 3034, 23258, 29898, 7645, 29918, 1272, 29897, 13, 13, 9651, 25342, 4113, 29918, 333, 5277, 29871, 29900, 29916, 29900, 29923, 29901, 13, 18884, 10191, 353, 4113, 29918, 333, 13, 18884, 1596, 29898, 13, 462, 1678, 376, 25807, 29884, 3016, 287, 4113, 2643, 1134, 6571, 1476, 472, 10229, 15658, 6571, 1642, 4830, 29898, 13, 462, 4706, 10191, 29892, 4839, 29889, 3545, 13, 462, 1678, 1723, 13, 18884, 1723, 13, 13, 9651, 565, 10191, 338, 451, 6213, 29901, 13, 18884, 7191, 29889, 4397, 29898, 7645, 29897, 13, 13, 4706, 4974, 7431, 29898, 19158, 29897, 1275, 4839, 29889, 4906, 29918, 2798, 29892, 376, 29965, 13996, 6021, 2643, 2302, 472, 10229, 15658, 6571, 1642, 4830, 29898, 6672, 29889, 3545, 29897, 13, 13, 4706, 3573, 353, 10229, 7445, 8434, 29898, 19158, 29922, 19158, 29897, 13, 4706, 736, 10229, 7445, 29898, 6672, 29922, 6672, 29892, 3573, 29922, 2587, 511, 848, 13, 13, 1678, 822, 788, 29918, 4703, 29898, 1311, 29892, 3884, 29918, 1271, 29901, 18862, 7445, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 736, 426, 13, 9651, 376, 20401, 29918, 8568, 1115, 1583, 29889, 20401, 29918, 8568, 29889, 20970, 3285, 13, 9651, 376, 1627, 29918, 5679, 29918, 8568, 1115, 1583, 29889, 6672, 29889, 16304, 29918, 1627, 29918, 5679, 29918, 8568, 29889, 20970, 3285, 13, 9651, 376, 3545, 1115, 1583, 29889, 6672, 29889, 3545, 29892, 13, 9651, 376, 4548, 9454, 29918, 6203, 1115, 1583, 29889, 6672, 29889, 4548, 9454, 29918, 6203, 29889, 20970, 3285, 13, 9651, 376, 4906, 29918, 2798, 1115, 1583, 29889, 6672, 29889, 4906, 29918, 2798, 29892, 13, 9651, 376, 2587, 29918, 2311, 1115, 1583, 29889, 6672, 29889, 2587, 29918, 2311, 29892, 13, 9651, 376, 19158, 1115, 518, 29885, 29889, 517, 29918, 8977, 580, 363, 286, 297, 1583, 29889, 2587, 29889, 19158, 1402, 13, 4706, 500, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 29850, 2119, 3545, 3790, 1118, 6608, 3790, 1800, 1642, 4830, 29898, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 6672, 29889, 3545, 29892, 1583, 29889, 20401, 29918, 8568, 29889, 20970, 3101, 13, 2 ]
configfiles/emailsend.py
dgome/HL-StarterKit
5
137761
<gh_stars>1-10 #!/bin/bash #Created by : <EMAIL> | <NAME> import email, smtplib, ssl, os from email import encoders from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.application import MIMEApplication ##Loading Environment with open('.hlc.env', 'r') as fh: vars_dict = dict( tuple(line.split('=')) for line in fh.readlines() if not line.startswith('#') ) #print(vars_dict) os.environ.update(vars_dict) subject = "Mail generated through fabric configrator tool" body = "Attached Configuration files in tar.gz format =" receiver_email = os.environ.get("TOEMLADDRESS") ### gmail sender_email = '<EMAIL>' smtp_server = 'smtp.gmail.com' sender_pass = '<PASSWORD>' port = 587 # For starttls # Create a multipart message and set headers message = MIMEMultipart() message["From"] = sender_email message["To"] = receiver_email message["Subject"] = subject message["Bcc"] = receiver_email # Recommended for mass emails # Create the plain-text and HTML version of your message text = """\ Hi, Attached the Configuration files that generated for your Hyperledger fabric Note : If you received as unname attachment, pls rename to {somename}.tar.gz Thanks Support Team KSTECH """ html = """\ <html> <body> <p>Hi,<br> Attached the Configuration files that generated for your Hyperledger fabric<br> Note : If you received as unname attachment, pls rename to {somename}.tar.gz Thanks Support Team KSTECH </p> </body> </html> """ # Add body to email #message.attach(MIMEText(text, "plain")) body_part = MIMEText(text, 'plain') #message.attach(MIMEText(html, "html") filen = os.environ.get("DOMAIN_NAME").replace('\n','') path1= '/tmp/' filext = '.tar.gz' file_name = os.path.join( filen + filext) attach_file_name = os.path.join(filen) #attach_file_name = os.path.join( path1, filen + "." + filext) #print (attach_file_name) # Open PDF file in binary mode # with open(file_name, "rb") as attachment: # # Add file as application/octet-stream # # Email client can usually download this automatically as attachment # part = MIMEBase("application", "x-gzip") # part.set_payload(attachment.read()) # Add body to email message.attach(body_part) # open and read the file in binary with open(file_name,'rb') as file: # Attach the file with filename to the email message.attach(MIMEApplication(file.read(), Name=file_name)) # Encode file in ASCII characters to send by email # encoders.encode_base64(part) # part.add_header('Content-Decomposition', "attachment; filename=\"%s.tar.gz\"" % (attach_file_name)) # message.attach(part) # Turn these into plain/html MIMEText objects part1 = MIMEText(text, "plain") part2 = MIMEText(html, "html") # Add HTML/plain-text parts to MIMEMultipart message # The email client will try to render the last part first #message.attach(part1) #message.attach(part2) # Add attachment to message and convert message to string #message.attach(part) text = message.as_string() # Log in to server using secure context and send email context = ssl.create_default_context() try : with smtplib.SMTP(smtp_server, port) as server: server.starttls(context=context) server.login(sender_email, sender_pass) server.sendmail(sender_email, receiver_email, text) print ("Successfully sent email") server.quit() except smtplib.SMTPException as e : print ("Error: unable to send email", e )
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 2109, 29914, 13067, 13, 29937, 20399, 491, 584, 529, 26862, 6227, 29958, 891, 529, 5813, 29958, 13, 13, 13, 5215, 4876, 29892, 1560, 9392, 1982, 29892, 24250, 29892, 2897, 13, 13, 3166, 4876, 1053, 2094, 397, 414, 13, 3166, 4876, 29889, 29885, 603, 29889, 3188, 1053, 341, 8890, 5160, 13, 3166, 4876, 29889, 29885, 603, 29889, 18056, 442, 1053, 341, 8890, 6857, 27494, 13, 3166, 4876, 29889, 29885, 603, 29889, 726, 1053, 341, 8890, 1626, 13, 3166, 4876, 29889, 29885, 603, 29889, 6214, 1053, 341, 8890, 4873, 13, 13, 2277, 23456, 16738, 29871, 13, 13, 2541, 1722, 12839, 4415, 29883, 29889, 6272, 742, 525, 29878, 1495, 408, 285, 29882, 29901, 13, 268, 13, 1678, 24987, 29918, 8977, 353, 9657, 29898, 13, 4706, 18761, 29898, 1220, 29889, 5451, 877, 2433, 876, 13, 4706, 363, 1196, 297, 285, 29882, 29889, 949, 9012, 580, 565, 451, 1196, 29889, 27382, 2541, 14237, 1495, 13, 13, 1678, 1723, 13, 13, 29937, 2158, 29898, 16908, 29918, 8977, 29897, 13, 359, 29889, 21813, 29889, 5504, 29898, 16908, 29918, 8977, 29897, 13, 13, 16009, 353, 376, 14925, 5759, 1549, 18187, 2295, 29878, 1061, 5780, 29908, 13, 2587, 353, 376, 4165, 3791, 20999, 2066, 297, 9913, 29889, 18828, 3402, 29465, 13, 13556, 2147, 29918, 5269, 353, 2897, 29889, 21813, 29889, 657, 703, 4986, 29923, 1988, 17744, 26785, 1159, 13, 13, 2277, 29937, 330, 2549, 13, 15452, 29918, 5269, 353, 12801, 26862, 6227, 16299, 13, 3844, 9392, 29918, 2974, 353, 525, 3844, 9392, 29889, 21980, 29889, 510, 29915, 13, 15452, 29918, 3364, 353, 12801, 25711, 17013, 16299, 13, 13, 637, 353, 29871, 29945, 29947, 29955, 396, 1152, 1369, 29873, 3137, 13, 13, 29937, 6204, 263, 6674, 442, 2643, 322, 731, 9066, 13, 4906, 353, 341, 8890, 6857, 27494, 580, 13, 4906, 3366, 4591, 3108, 353, 10004, 29918, 5269, 13, 4906, 3366, 1762, 3108, 353, 19870, 29918, 5269, 13, 4906, 3366, 20622, 3108, 353, 4967, 13, 4906, 3366, 29933, 617, 3108, 353, 19870, 29918, 5269, 29871, 396, 830, 2055, 2760, 363, 4158, 24609, 13, 13, 29937, 6204, 278, 8656, 29899, 726, 322, 4544, 1873, 310, 596, 2643, 13, 726, 353, 9995, 29905, 13, 18567, 29892, 13, 4165, 3791, 278, 20999, 2066, 393, 5759, 363, 596, 26078, 839, 914, 18187, 29871, 13, 13, 9842, 584, 960, 366, 4520, 408, 443, 978, 26305, 29892, 715, 29879, 19508, 304, 426, 29879, 2770, 420, 1836, 12637, 29889, 18828, 13, 13, 16894, 13, 14039, 8583, 13, 29968, 1254, 29923, 3210, 13, 15945, 29908, 13, 1420, 353, 9995, 29905, 13, 29966, 1420, 29958, 13, 29871, 529, 2587, 29958, 13, 1678, 529, 29886, 29958, 18567, 29892, 29966, 1182, 29958, 13, 539, 6212, 3791, 278, 20999, 2066, 393, 5759, 363, 596, 26078, 839, 914, 18187, 29966, 1182, 29958, 13, 13, 9842, 584, 960, 366, 4520, 408, 443, 978, 26305, 29892, 715, 29879, 19508, 304, 426, 29879, 2770, 420, 1836, 12637, 29889, 18828, 13, 13, 16894, 13, 14039, 8583, 13, 29968, 1254, 29923, 3210, 13, 1678, 1533, 29886, 29958, 13, 29871, 1533, 2587, 29958, 13, 829, 1420, 29958, 13, 15945, 29908, 13, 13, 13, 29937, 3462, 3573, 304, 4876, 13, 29937, 4906, 29889, 14930, 29898, 29924, 8890, 1626, 29898, 726, 29892, 376, 24595, 5783, 13, 2587, 29918, 1595, 353, 341, 8890, 1626, 29898, 726, 29892, 525, 24595, 1495, 13, 29937, 4906, 29889, 14930, 29898, 29924, 8890, 1626, 29898, 1420, 29892, 376, 1420, 1159, 13, 1777, 264, 353, 2897, 29889, 21813, 29889, 657, 703, 3970, 29032, 29918, 5813, 2564, 6506, 28909, 29876, 3788, 1495, 13, 2084, 29896, 29922, 8207, 7050, 22208, 13, 1445, 486, 353, 15300, 12637, 29889, 18828, 29915, 13, 1445, 29918, 978, 353, 2897, 29889, 2084, 29889, 7122, 29898, 977, 264, 718, 934, 486, 29897, 259, 13, 14930, 29918, 1445, 29918, 978, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1777, 264, 29897, 259, 13, 29937, 14930, 29918, 1445, 29918, 978, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2224, 29896, 29892, 977, 264, 718, 376, 1213, 718, 934, 486, 29897, 259, 13, 29937, 2158, 313, 14930, 29918, 1445, 29918, 978, 29897, 13, 29937, 4673, 11328, 934, 297, 7581, 4464, 13, 29937, 411, 1722, 29898, 1445, 29918, 978, 29892, 376, 6050, 1159, 408, 26305, 29901, 13, 29937, 268, 396, 3462, 934, 408, 2280, 29914, 20082, 300, 29899, 5461, 13, 29937, 268, 396, 22608, 3132, 508, 5491, 5142, 445, 6336, 408, 26305, 13, 29937, 268, 760, 353, 341, 8890, 5160, 703, 6214, 613, 376, 29916, 29899, 29887, 7554, 1159, 13, 29937, 268, 760, 29889, 842, 29918, 23813, 29898, 14930, 358, 29889, 949, 3101, 13, 13, 29937, 3462, 3573, 304, 4876, 13, 4906, 29889, 14930, 29898, 2587, 29918, 1595, 29897, 13, 29937, 1722, 322, 1303, 278, 934, 297, 7581, 13, 2541, 1722, 29898, 1445, 29918, 978, 5501, 6050, 1495, 408, 934, 29901, 13, 29937, 6212, 496, 278, 934, 411, 10422, 304, 278, 4876, 13, 1678, 2643, 29889, 14930, 29898, 29924, 8890, 4873, 29898, 1445, 29889, 949, 3285, 4408, 29922, 1445, 29918, 978, 876, 13, 13, 29937, 1174, 401, 934, 297, 27196, 4890, 304, 3638, 491, 4876, 268, 13, 29937, 2094, 397, 414, 29889, 12508, 29918, 3188, 29953, 29946, 29898, 1595, 29897, 13, 13, 29937, 760, 29889, 1202, 29918, 6672, 877, 3916, 29899, 2772, 510, 3283, 742, 376, 14930, 358, 29936, 10422, 14672, 29995, 29879, 29889, 12637, 29889, 18828, 5931, 29908, 1273, 313, 14930, 29918, 1445, 29918, 978, 876, 13, 29937, 2643, 29889, 14930, 29898, 1595, 29897, 13, 13, 13, 13, 13, 29937, 9603, 1438, 964, 8656, 29914, 1420, 341, 8890, 1626, 3618, 13, 1595, 29896, 353, 341, 8890, 1626, 29898, 726, 29892, 376, 24595, 1159, 13, 1595, 29906, 353, 341, 8890, 1626, 29898, 1420, 29892, 376, 1420, 1159, 13, 13, 29937, 3462, 4544, 29914, 24595, 29899, 726, 5633, 304, 341, 8890, 6857, 27494, 2643, 13, 29937, 450, 4876, 3132, 674, 1018, 304, 4050, 278, 1833, 760, 937, 13, 29937, 4906, 29889, 14930, 29898, 1595, 29896, 29897, 13, 29937, 4906, 29889, 14930, 29898, 1595, 29906, 29897, 13, 13, 13, 13, 29937, 3462, 26305, 304, 2643, 322, 3588, 2643, 304, 1347, 13, 29937, 4906, 29889, 14930, 29898, 1595, 29897, 13, 726, 353, 2643, 29889, 294, 29918, 1807, 580, 13, 13, 13, 13, 13, 29937, 4522, 297, 304, 1923, 773, 11592, 3030, 322, 3638, 4876, 13, 4703, 353, 24250, 29889, 3258, 29918, 4381, 29918, 4703, 580, 13, 2202, 584, 13, 1678, 411, 1560, 9392, 1982, 29889, 17061, 3557, 29898, 3844, 9392, 29918, 2974, 29892, 2011, 29897, 408, 1923, 29901, 13, 4706, 1923, 29889, 2962, 29873, 3137, 29898, 4703, 29922, 4703, 29897, 13, 4706, 1923, 29889, 7507, 29898, 15452, 29918, 5269, 29892, 10004, 29918, 3364, 29897, 13, 4706, 1923, 29889, 6717, 2549, 29898, 15452, 29918, 5269, 29892, 19870, 29918, 5269, 29892, 1426, 29897, 13, 4706, 1596, 4852, 14191, 3730, 2665, 4876, 1159, 13, 4706, 1923, 29889, 28358, 580, 13, 13, 19499, 1560, 9392, 1982, 29889, 17061, 3557, 2451, 408, 321, 584, 13, 1678, 1596, 4852, 2392, 29901, 9368, 304, 3638, 4876, 613, 321, 1723, 13, 2 ]
storage/cloud.py
labdave/Aries
2
94806
<gh_stars>1-10 import os import datetime import logging import threading from io import FileIO from abc import ABC from .base import StorageObject, StoragePrefixBase, StorageIOSeekable logger = logging.getLogger(__name__) class BucketStorageObject(StorageObject): """Represents a cloud storage object associated with a bucket. This object may not correspond to an actual object in the bucket, e.g. a folder in Google or S3 bucket. """ # Caches clients for each scheme cache_dict = dict() # Expiration time for each client cache_expire = dict() # Ensure that only one thread can initialize the client at one time # Multiple threads initializing the s3 client at the same time may cause a KeyError: 'credential_provider' # https://github.com/boto/boto3/issues/1592 client_lock = threading.Lock() # The number of seconds before the client expires. CACHE_EXPIRE_SEC = 1200 def __init__(self, uri): StorageObject.__init__(self, uri) self._client = None self._bucket = None self._blob = None @classmethod def get_cached(cls, obj_id, init_method): """Gets an unexpired object by obj_id from cache, creates one using init_method() if needed. """ cached_obj = cls.cache_dict.get(obj_id) now = datetime.datetime.now() if cached_obj: client_expire = cls.cache_expire.get(obj_id) # Use the cached client if it is not expired. if client_expire and client_expire > now: return cached_obj obj = init_method() cls.cache_dict[obj_id] = obj cls.cache_expire[obj_id] = now + datetime.timedelta(seconds=cls.CACHE_EXPIRE_SEC) return obj def get_client(self): obj_id = self.scheme with self.client_lock: return self.get_cached(obj_id, self.init_client) def get_bucket(self): obj_id = "%s://%s" % (self.scheme, self.bucket_name) return self.get_cached(obj_id, self.init_bucket) @property def bucket_name(self): """The name of the Cloud Storage bucket as a string.""" return self.hostname @property def client(self): if not self._client: self._client = self.get_client() return self._client @property def bucket(self): if not self._bucket: self._bucket = self.get_bucket() return self._bucket def is_file(self): """Determine if the object is a file. This will return False if the object does not exist or the object is a folder. """ if self.path.endswith("/"): return False if not self.exists(): return False return True def init_client(self): raise NotImplementedError() def init_bucket(self): raise NotImplementedError() def exists(self): raise NotImplementedError() class CloudStoragePrefix(StoragePrefixBase, ABC): def blobs(self, delimiter=""): """All blobs with the same prefix as this object The type of blobs depends on the actual implementation of the blobs() method. The delimiter causes a list operation to roll up all the keys that share a common prefix into a single result. See Also: https://docs.aws.amazon.com/AmazonS3/latest/dev/ListingKeysHierarchy.html """ raise NotImplementedError() class CloudStorageIO(StorageIOSeekable): def __init__(self, uri): """ """ StorageIOSeekable.__init__(self, uri) # Path of the temp local file self.temp_path = None # Stores the temp local FileIO object self.__file_io = None # Cache the size information # TODO: use cached property self.__size = None @property def size(self): if not self.__size: if self.__file_io: return os.fstat(self.__file_io.fileno).st_size self.__size = self.get_size() return self.__size def seek(self, pos, whence=0): if self.__file_io: self._offset = self.__file_io.seek(pos, whence) return self._offset return self._seek(pos, whence) def tell(self): if self.__file_io: self._offset = self.__file_io.tell() return self._offset def local(self): """Creates a local copy of the file. """ if not self.__file_io: file_obj = self.create_temp_file() # Download file if appending or updating if self.exists() and ('a' in self.mode or '+' in self.mode): self.download(file_obj) # Close the temp file and open it with FileIO file_obj.close() mode = "".join([c for c in self.mode if c in "rw+ax"]) self.__file_io = FileIO(file_obj.name, mode) self.temp_path = file_obj.name return self def read(self, size=None): """Reads the file from the Google Cloud bucket to memory Returns: Bytes containing the contents of the file. """ start = self.tell() if self.__file_io: self.__file_io.seek(start) b = self.__file_io.read(size) else: if not self.exists(): raise FileNotFoundError("File %s does not exists." % self.uri) file_size = self.size # TODO: size unknown? if not file_size: return b"" if start >= file_size: return b"" end = file_size - 1 if size: end = start + size - 1 if end > file_size - 1: end = file_size - 1 # logger.debug("Reading from %s to %s" % (start, end)) b = self.read_bytes(start, end) self._offset += len(b) return b def write(self, b): """Writes data into the file. Args: b: Bytes data Returns: The number of bytes written into the file. """ if self.closed: raise ValueError("write to closed file %s" % self.uri) # Create a temp local file self.local() # Write data from buffer to file self.__file_io.seek(self.tell()) size = self.__file_io.write(b) self._offset += size return size def __rm_temp(self): if self.temp_path and os.path.exists(self.temp_path): os.unlink(self.temp_path) logger.debug("Deleted temp file %s of %s" % (self.temp_path, self.uri)) self.temp_path = None return def open(self, mode='r', *args, **kwargs): """Opens the file for writing """ if not self._closed: self.close() super().open(mode) self._closed = False # Reset offset position when open self.seek(0) if 'a' in self.mode: # Move to the end of the file if open in appending mode. self.seek(0, 2) elif 'w' in self.mode: # Create empty local file self.local() return self def close(self): """Flush and close the file. This method has no effect if the file is already closed. """ if self._closed: return if self.__file_io: if not self.__file_io.closed: self.__file_io.close() self.__file_io = None if self.temp_path: logger.debug("Uploading file to %s" % self.uri) with open(self.temp_path, 'rb') as f: self.upload(f) # Remove __temp_file if it exists. self.__rm_temp() # Set _closed attribute self._closed = True @property def updated_time(self): raise NotImplementedError() def exists(self): raise NotImplementedError() def get_size(self): raise NotImplementedError() def delete(self): raise NotImplementedError() def upload(self, from_file_obj): raise NotImplementedError() def download(self, to_file_obj): """Downloads the data to a file object Caution: This method does not call flush() """ raise NotImplementedError() def read_bytes(self, start, end): """Reads bytes from position start to position end, inclusive """ raise NotImplementedError()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 2897, 13, 5215, 12865, 13, 5215, 12183, 13, 5215, 3244, 292, 13, 3166, 12013, 1053, 3497, 5971, 13, 3166, 25638, 1053, 16417, 13, 3166, 869, 3188, 1053, 26162, 2061, 29892, 26162, 23095, 5160, 29892, 26162, 5971, 2008, 1416, 519, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 1990, 16281, 300, 10486, 2061, 29898, 10486, 2061, 1125, 13, 1678, 9995, 1123, 4569, 1237, 263, 9570, 8635, 1203, 6942, 411, 263, 20968, 29889, 13, 1678, 910, 1203, 1122, 451, 3928, 304, 385, 3935, 1203, 297, 278, 20968, 29892, 321, 29889, 29887, 29889, 263, 4138, 297, 5087, 470, 317, 29941, 20968, 29889, 13, 1678, 9995, 13, 1678, 396, 315, 14520, 13154, 363, 1269, 11380, 13, 1678, 7090, 29918, 8977, 353, 9657, 580, 13, 1678, 396, 12027, 12232, 931, 363, 1269, 3132, 13, 1678, 7090, 29918, 4548, 533, 353, 9657, 580, 13, 13, 1678, 396, 22521, 545, 393, 871, 697, 3244, 508, 11905, 278, 3132, 472, 697, 931, 13, 1678, 396, 26905, 9717, 2847, 5281, 278, 269, 29941, 3132, 472, 278, 1021, 931, 1122, 4556, 263, 7670, 2392, 29901, 525, 11944, 2556, 29918, 18121, 29915, 13, 1678, 396, 2045, 597, 3292, 29889, 510, 29914, 29890, 3747, 29914, 29890, 3747, 29941, 29914, 12175, 29914, 29896, 29945, 29929, 29906, 13, 1678, 3132, 29918, 908, 353, 3244, 292, 29889, 16542, 580, 13, 13, 1678, 396, 450, 1353, 310, 6923, 1434, 278, 3132, 1518, 2658, 29889, 13, 1678, 315, 2477, 9606, 29918, 5746, 2227, 1525, 29918, 1660, 29907, 353, 29871, 29896, 29906, 29900, 29900, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 21333, 1125, 13, 4706, 26162, 2061, 17255, 2344, 12035, 1311, 29892, 21333, 29897, 13, 4706, 1583, 3032, 4645, 353, 6213, 13, 4706, 1583, 3032, 21454, 353, 6213, 13, 4706, 1583, 3032, 10054, 353, 6213, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 679, 29918, 29883, 3791, 29898, 25932, 29892, 5446, 29918, 333, 29892, 2069, 29918, 5696, 1125, 13, 4706, 9995, 29954, 1691, 385, 443, 4548, 2859, 1203, 491, 5446, 29918, 333, 515, 7090, 29892, 10017, 697, 773, 2069, 29918, 5696, 580, 565, 4312, 29889, 13, 4706, 9995, 13, 4706, 22152, 29918, 5415, 353, 1067, 29879, 29889, 8173, 29918, 8977, 29889, 657, 29898, 5415, 29918, 333, 29897, 13, 4706, 1286, 353, 12865, 29889, 12673, 29889, 3707, 580, 13, 4706, 565, 22152, 29918, 5415, 29901, 13, 9651, 3132, 29918, 4548, 533, 353, 1067, 29879, 29889, 8173, 29918, 4548, 533, 29889, 657, 29898, 5415, 29918, 333, 29897, 13, 9651, 396, 4803, 278, 22152, 3132, 565, 372, 338, 451, 1518, 2859, 29889, 13, 9651, 565, 3132, 29918, 4548, 533, 322, 3132, 29918, 4548, 533, 1405, 1286, 29901, 13, 18884, 736, 22152, 29918, 5415, 13, 4706, 5446, 353, 2069, 29918, 5696, 580, 13, 4706, 1067, 29879, 29889, 8173, 29918, 8977, 29961, 5415, 29918, 333, 29962, 353, 5446, 13, 4706, 1067, 29879, 29889, 8173, 29918, 4548, 533, 29961, 5415, 29918, 333, 29962, 353, 1286, 718, 12865, 29889, 9346, 287, 2554, 29898, 23128, 29922, 25932, 29889, 29907, 2477, 9606, 29918, 5746, 2227, 1525, 29918, 1660, 29907, 29897, 13, 4706, 736, 5446, 13, 13, 1678, 822, 679, 29918, 4645, 29898, 1311, 1125, 13, 4706, 5446, 29918, 333, 353, 1583, 29889, 816, 2004, 13, 4706, 411, 1583, 29889, 4645, 29918, 908, 29901, 13, 9651, 736, 1583, 29889, 657, 29918, 29883, 3791, 29898, 5415, 29918, 333, 29892, 1583, 29889, 2344, 29918, 4645, 29897, 13, 13, 1678, 822, 679, 29918, 21454, 29898, 1311, 1125, 13, 4706, 5446, 29918, 333, 353, 11860, 29879, 597, 29995, 29879, 29908, 1273, 313, 1311, 29889, 816, 2004, 29892, 1583, 29889, 21454, 29918, 978, 29897, 13, 4706, 736, 1583, 29889, 657, 29918, 29883, 3791, 29898, 5415, 29918, 333, 29892, 1583, 29889, 2344, 29918, 21454, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 20968, 29918, 978, 29898, 1311, 1125, 13, 4706, 9995, 1576, 1024, 310, 278, 14293, 26162, 20968, 408, 263, 1347, 1213, 15945, 13, 4706, 736, 1583, 29889, 28988, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3132, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 4645, 29901, 13, 9651, 1583, 3032, 4645, 353, 1583, 29889, 657, 29918, 4645, 580, 13, 4706, 736, 1583, 3032, 4645, 13, 13, 1678, 732, 6799, 13, 1678, 822, 20968, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 21454, 29901, 13, 9651, 1583, 3032, 21454, 353, 1583, 29889, 657, 29918, 21454, 580, 13, 4706, 736, 1583, 3032, 21454, 13, 13, 1678, 822, 338, 29918, 1445, 29898, 1311, 1125, 13, 4706, 9995, 6362, 837, 457, 565, 278, 1203, 338, 263, 934, 29889, 13, 4706, 910, 674, 736, 7700, 565, 278, 1203, 947, 451, 1863, 470, 278, 1203, 338, 263, 4138, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 2084, 29889, 1975, 2541, 11974, 29908, 1125, 13, 9651, 736, 7700, 13, 4706, 565, 451, 1583, 29889, 9933, 7295, 13, 9651, 736, 7700, 13, 4706, 736, 5852, 13, 13, 1678, 822, 2069, 29918, 4645, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 2069, 29918, 21454, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 4864, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 13, 1990, 14293, 10486, 23095, 29898, 10486, 23095, 5160, 29892, 16417, 1125, 13, 1678, 822, 23755, 29879, 29898, 1311, 29892, 28552, 13776, 1125, 13, 4706, 9995, 3596, 23755, 29879, 411, 278, 1021, 10944, 408, 445, 1203, 13, 4706, 450, 1134, 310, 23755, 29879, 7111, 373, 278, 3935, 5314, 310, 278, 23755, 29879, 580, 1158, 29889, 13, 4706, 450, 28552, 9946, 263, 1051, 5858, 304, 9679, 701, 599, 278, 6611, 393, 6232, 263, 3619, 10944, 964, 263, 2323, 1121, 29889, 13, 4706, 2823, 3115, 29901, 2045, 597, 2640, 29889, 10467, 29889, 17260, 29889, 510, 29914, 29909, 655, 6626, 29903, 29941, 29914, 12333, 29914, 3359, 29914, 1293, 292, 15506, 29950, 631, 12040, 29889, 1420, 13, 4706, 9995, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 13, 1990, 14293, 10486, 5971, 29898, 10486, 5971, 2008, 1416, 519, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 21333, 1125, 13, 4706, 9995, 13, 4706, 9995, 13, 4706, 26162, 5971, 2008, 1416, 519, 17255, 2344, 12035, 1311, 29892, 21333, 29897, 13, 13, 4706, 396, 10802, 310, 278, 5694, 1887, 934, 13, 4706, 1583, 29889, 7382, 29918, 2084, 353, 6213, 13, 13, 4706, 396, 624, 2361, 278, 5694, 1887, 3497, 5971, 1203, 13, 4706, 1583, 17255, 1445, 29918, 601, 353, 6213, 13, 13, 4706, 396, 28540, 278, 2159, 2472, 13, 4706, 396, 14402, 29901, 671, 22152, 2875, 13, 4706, 1583, 17255, 2311, 353, 6213, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2159, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 17255, 2311, 29901, 13, 9651, 565, 1583, 17255, 1445, 29918, 601, 29901, 13, 18884, 736, 2897, 29889, 29888, 6112, 29898, 1311, 17255, 1445, 29918, 601, 29889, 1777, 8154, 467, 303, 29918, 2311, 13, 9651, 1583, 17255, 2311, 353, 1583, 29889, 657, 29918, 2311, 580, 13, 4706, 736, 1583, 17255, 2311, 13, 13, 1678, 822, 16508, 29898, 1311, 29892, 926, 29892, 377, 663, 29922, 29900, 1125, 13, 4706, 565, 1583, 17255, 1445, 29918, 601, 29901, 13, 9651, 1583, 3032, 10289, 353, 1583, 17255, 1445, 29918, 601, 29889, 344, 1416, 29898, 1066, 29892, 377, 663, 29897, 13, 9651, 736, 1583, 3032, 10289, 13, 4706, 736, 1583, 3032, 344, 1416, 29898, 1066, 29892, 377, 663, 29897, 13, 13, 1678, 822, 2649, 29898, 1311, 1125, 13, 4706, 565, 1583, 17255, 1445, 29918, 601, 29901, 13, 9651, 1583, 3032, 10289, 353, 1583, 17255, 1445, 29918, 601, 29889, 29873, 514, 580, 13, 4706, 736, 1583, 3032, 10289, 13, 13, 1678, 822, 1887, 29898, 1311, 1125, 13, 4706, 9995, 9832, 1078, 263, 1887, 3509, 310, 278, 934, 29889, 13, 4706, 9995, 13, 4706, 565, 451, 1583, 17255, 1445, 29918, 601, 29901, 13, 9651, 934, 29918, 5415, 353, 1583, 29889, 3258, 29918, 7382, 29918, 1445, 580, 13, 9651, 396, 25553, 934, 565, 623, 2548, 470, 13271, 13, 9651, 565, 1583, 29889, 9933, 580, 322, 6702, 29874, 29915, 297, 1583, 29889, 8513, 470, 525, 23097, 297, 1583, 29889, 8513, 1125, 13, 18884, 1583, 29889, 10382, 29898, 1445, 29918, 5415, 29897, 13, 9651, 396, 23186, 278, 5694, 934, 322, 1722, 372, 411, 3497, 5971, 13, 9651, 934, 29918, 5415, 29889, 5358, 580, 13, 9651, 4464, 353, 376, 1642, 7122, 4197, 29883, 363, 274, 297, 1583, 29889, 8513, 565, 274, 297, 376, 13975, 29974, 1165, 20068, 13, 9651, 1583, 17255, 1445, 29918, 601, 353, 3497, 5971, 29898, 1445, 29918, 5415, 29889, 978, 29892, 4464, 29897, 13, 9651, 1583, 29889, 7382, 29918, 2084, 353, 934, 29918, 5415, 29889, 978, 13, 4706, 736, 1583, 13, 13, 1678, 822, 1303, 29898, 1311, 29892, 2159, 29922, 8516, 1125, 13, 4706, 9995, 6359, 29879, 278, 934, 515, 278, 5087, 14293, 20968, 304, 3370, 13, 13, 4706, 16969, 29901, 2648, 2167, 6943, 278, 8118, 310, 278, 934, 29889, 13, 4706, 9995, 13, 4706, 1369, 353, 1583, 29889, 29873, 514, 580, 13, 4706, 565, 1583, 17255, 1445, 29918, 601, 29901, 13, 9651, 1583, 17255, 1445, 29918, 601, 29889, 344, 1416, 29898, 2962, 29897, 13, 9651, 289, 353, 1583, 17255, 1445, 29918, 601, 29889, 949, 29898, 2311, 29897, 13, 4706, 1683, 29901, 13, 9651, 565, 451, 1583, 29889, 9933, 7295, 13, 18884, 12020, 3497, 17413, 2392, 703, 2283, 1273, 29879, 947, 451, 4864, 1213, 1273, 1583, 29889, 5338, 29897, 13, 9651, 934, 29918, 2311, 353, 1583, 29889, 2311, 13, 9651, 396, 14402, 29901, 2159, 9815, 29973, 13, 9651, 565, 451, 934, 29918, 2311, 29901, 13, 18884, 736, 289, 15945, 13, 9651, 565, 1369, 6736, 934, 29918, 2311, 29901, 13, 18884, 736, 289, 15945, 13, 9651, 1095, 353, 934, 29918, 2311, 448, 29871, 29896, 13, 9651, 565, 2159, 29901, 13, 18884, 1095, 353, 1369, 718, 2159, 448, 29871, 29896, 13, 9651, 565, 1095, 1405, 934, 29918, 2311, 448, 29871, 29896, 29901, 13, 18884, 1095, 353, 934, 29918, 2311, 448, 29871, 29896, 13, 9651, 396, 17927, 29889, 8382, 703, 6359, 292, 515, 1273, 29879, 304, 1273, 29879, 29908, 1273, 313, 2962, 29892, 1095, 876, 13, 9651, 289, 353, 1583, 29889, 949, 29918, 13193, 29898, 2962, 29892, 1095, 29897, 13, 4706, 1583, 3032, 10289, 4619, 7431, 29898, 29890, 29897, 13, 4706, 736, 289, 13, 13, 1678, 822, 2436, 29898, 1311, 29892, 289, 1125, 13, 4706, 9995, 29956, 768, 267, 848, 964, 278, 934, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 289, 29901, 2648, 2167, 848, 13, 13, 4706, 16969, 29901, 450, 1353, 310, 6262, 3971, 964, 278, 934, 29889, 13, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 15603, 29901, 13, 9651, 12020, 7865, 2392, 703, 3539, 304, 5764, 934, 1273, 29879, 29908, 1273, 1583, 29889, 5338, 29897, 13, 4706, 396, 6204, 263, 5694, 1887, 934, 13, 4706, 1583, 29889, 2997, 580, 13, 4706, 396, 14350, 848, 515, 6835, 304, 934, 13, 4706, 1583, 17255, 1445, 29918, 601, 29889, 344, 1416, 29898, 1311, 29889, 29873, 514, 3101, 13, 4706, 2159, 353, 1583, 17255, 1445, 29918, 601, 29889, 3539, 29898, 29890, 29897, 13, 4706, 1583, 3032, 10289, 4619, 2159, 13, 4706, 736, 2159, 13, 13, 1678, 822, 4770, 1758, 29918, 7382, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 7382, 29918, 2084, 322, 2897, 29889, 2084, 29889, 9933, 29898, 1311, 29889, 7382, 29918, 2084, 1125, 13, 9651, 2897, 29889, 348, 2324, 29898, 1311, 29889, 7382, 29918, 2084, 29897, 13, 4706, 17927, 29889, 8382, 703, 2772, 22742, 5694, 934, 1273, 29879, 310, 1273, 29879, 29908, 1273, 313, 1311, 29889, 7382, 29918, 2084, 29892, 1583, 29889, 5338, 876, 13, 4706, 1583, 29889, 7382, 29918, 2084, 353, 6213, 13, 4706, 736, 13, 13, 1678, 822, 1722, 29898, 1311, 29892, 4464, 2433, 29878, 742, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9995, 11746, 575, 278, 934, 363, 5007, 13, 4706, 9995, 13, 4706, 565, 451, 1583, 3032, 15603, 29901, 13, 9651, 1583, 29889, 5358, 580, 13, 4706, 2428, 2141, 3150, 29898, 8513, 29897, 13, 4706, 1583, 3032, 15603, 353, 7700, 13, 4706, 396, 2538, 300, 9210, 2602, 746, 1722, 13, 4706, 1583, 29889, 344, 1416, 29898, 29900, 29897, 13, 4706, 565, 525, 29874, 29915, 297, 1583, 29889, 8513, 29901, 13, 9651, 396, 25249, 304, 278, 1095, 310, 278, 934, 565, 1722, 297, 623, 2548, 4464, 29889, 13, 9651, 1583, 29889, 344, 1416, 29898, 29900, 29892, 29871, 29906, 29897, 13, 4706, 25342, 525, 29893, 29915, 297, 1583, 29889, 8513, 29901, 13, 9651, 396, 6204, 4069, 1887, 934, 13, 9651, 1583, 29889, 2997, 580, 13, 4706, 736, 1583, 13, 13, 1678, 822, 3802, 29898, 1311, 1125, 13, 4706, 9995, 8754, 1878, 322, 3802, 278, 934, 29889, 13, 4706, 910, 1158, 756, 694, 2779, 565, 278, 934, 338, 2307, 5764, 29889, 13, 4706, 9995, 13, 13, 4706, 565, 1583, 3032, 15603, 29901, 13, 9651, 736, 13, 13, 4706, 565, 1583, 17255, 1445, 29918, 601, 29901, 13, 9651, 565, 451, 1583, 17255, 1445, 29918, 601, 29889, 15603, 29901, 13, 18884, 1583, 17255, 1445, 29918, 601, 29889, 5358, 580, 13, 9651, 1583, 17255, 1445, 29918, 601, 353, 6213, 13, 13, 4706, 565, 1583, 29889, 7382, 29918, 2084, 29901, 13, 9651, 17927, 29889, 8382, 703, 3373, 13234, 934, 304, 1273, 29879, 29908, 1273, 1583, 29889, 5338, 29897, 13, 9651, 411, 1722, 29898, 1311, 29889, 7382, 29918, 2084, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 18884, 1583, 29889, 9009, 29898, 29888, 29897, 13, 9651, 396, 15154, 4770, 7382, 29918, 1445, 565, 372, 4864, 29889, 13, 9651, 1583, 17255, 1758, 29918, 7382, 580, 13, 9651, 396, 3789, 903, 15603, 5352, 13, 9651, 1583, 3032, 15603, 353, 5852, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4784, 29918, 2230, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 4864, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 679, 29918, 2311, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 5217, 29898, 1311, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 6441, 29898, 1311, 29892, 515, 29918, 1445, 29918, 5415, 1125, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 5142, 29898, 1311, 29892, 304, 29918, 1445, 29918, 5415, 1125, 13, 4706, 9995, 6767, 18132, 278, 848, 304, 263, 934, 1203, 13, 4706, 9243, 918, 29901, 910, 1158, 947, 451, 1246, 28371, 580, 13, 4706, 9995, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 1678, 822, 1303, 29918, 13193, 29898, 1311, 29892, 1369, 29892, 1095, 1125, 13, 4706, 9995, 6359, 29879, 6262, 515, 2602, 1369, 304, 2602, 1095, 29892, 20978, 573, 13, 4706, 9995, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 2 ]
virtool/caches/models.py
virtool/virtool
39
89785
from sqlalchemy import Column, DateTime, Enum, Integer, String from sqlalchemy.sql.schema import UniqueConstraint from virtool.pg.base import Base from virtool.samples.models import ArtifactType class SampleArtifactCache(Base): """ SQL model to store a cached sample artifact """ __tablename__ = "sample_artifacts_cache" __table_args__ = (UniqueConstraint("key", "name", "sample"),) id = Column(Integer, primary_key=True) key = Column(String, nullable=False) name = Column(String, nullable=False) name_on_disk = Column(String) sample = Column(String, nullable=False) size = Column(Integer) type = Column(Enum(ArtifactType), nullable=False) uploaded_at = Column(DateTime) class SampleReadsCache(Base): """ SQL model to store cached sample reads files """ __tablename__ = "sample_reads_cache" __tableargs__ = (UniqueConstraint("key", "name", "sample"),) id = Column(Integer, primary_key=True) key = Column(String, nullable=False) name = Column(String(length=13), nullable=False) name_on_disk = Column(String, nullable=False) sample = Column(String, nullable=False) size = Column(Integer) uploaded_at = Column(DateTime)
[ 1, 515, 4576, 284, 305, 6764, 1053, 12481, 29892, 12315, 29892, 1174, 398, 29892, 8102, 29892, 1714, 13, 3166, 4576, 284, 305, 6764, 29889, 2850, 29889, 11010, 1053, 853, 1387, 21529, 13, 13, 3166, 10636, 10154, 29889, 4061, 29889, 3188, 1053, 7399, 13, 3166, 10636, 10154, 29889, 27736, 29889, 9794, 1053, 3012, 7060, 1542, 13, 13, 13, 1990, 21029, 9986, 7060, 10408, 29898, 5160, 1125, 13, 1678, 9995, 13, 1678, 3758, 1904, 304, 3787, 263, 22152, 4559, 24238, 13, 13, 1678, 9995, 13, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 11249, 29918, 8813, 29879, 29918, 8173, 29908, 13, 1678, 4770, 2371, 29918, 5085, 1649, 353, 313, 8110, 802, 21529, 703, 1989, 613, 376, 978, 613, 376, 11249, 4968, 29897, 13, 13, 1678, 1178, 353, 12481, 29898, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 13, 1678, 1820, 353, 12481, 29898, 1231, 29892, 1870, 519, 29922, 8824, 29897, 13, 1678, 1024, 353, 12481, 29898, 1231, 29892, 1870, 519, 29922, 8824, 29897, 13, 1678, 1024, 29918, 265, 29918, 20960, 353, 12481, 29898, 1231, 29897, 13, 1678, 4559, 353, 12481, 29898, 1231, 29892, 1870, 519, 29922, 8824, 29897, 13, 1678, 2159, 353, 12481, 29898, 7798, 29897, 13, 1678, 1134, 353, 12481, 29898, 16854, 29898, 9986, 7060, 1542, 511, 1870, 519, 29922, 8824, 29897, 13, 1678, 20373, 29918, 271, 353, 12481, 29898, 11384, 29897, 13, 13, 13, 1990, 21029, 6359, 29879, 10408, 29898, 5160, 1125, 13, 1678, 9995, 13, 1678, 3758, 1904, 304, 3787, 22152, 4559, 13623, 2066, 13, 13, 1678, 9995, 13, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 11249, 29918, 949, 29879, 29918, 8173, 29908, 13, 1678, 4770, 2371, 5085, 1649, 353, 313, 8110, 802, 21529, 703, 1989, 613, 376, 978, 613, 376, 11249, 4968, 29897, 13, 13, 1678, 1178, 353, 12481, 29898, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 13, 1678, 1820, 353, 12481, 29898, 1231, 29892, 1870, 519, 29922, 8824, 29897, 13, 1678, 1024, 353, 12481, 29898, 1231, 29898, 2848, 29922, 29896, 29941, 511, 1870, 519, 29922, 8824, 29897, 13, 1678, 1024, 29918, 265, 29918, 20960, 353, 12481, 29898, 1231, 29892, 1870, 519, 29922, 8824, 29897, 13, 1678, 4559, 353, 12481, 29898, 1231, 29892, 1870, 519, 29922, 8824, 29897, 13, 1678, 2159, 353, 12481, 29898, 7798, 29897, 13, 1678, 20373, 29918, 271, 353, 12481, 29898, 11384, 29897, 13, 2 ]
2750/solution_bubble.py
bossm0n5t3r/BOJ
2
1618051
<gh_stars>1-10 def sol(): data = [] for _ in range(int(input())): data.append(int(input())) bubble(data) return data def bubble(data): while True: flag = False for index in range(len(data) - 1): if data[index] > data[index + 1]: temp = data[index] data[index] = data[index + 1] data[index + 1] = temp flag = True if not flag: break return data if __name__ == "__main__": for i in sol(): print(i)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1753, 899, 7295, 13, 1678, 848, 353, 5159, 13, 1678, 363, 903, 297, 3464, 29898, 524, 29898, 2080, 22130, 29901, 13, 4706, 848, 29889, 4397, 29898, 524, 29898, 2080, 22130, 13, 1678, 289, 23232, 29898, 1272, 29897, 13, 1678, 736, 848, 13, 13, 13, 1753, 289, 23232, 29898, 1272, 1125, 13, 1678, 1550, 5852, 29901, 13, 4706, 7353, 353, 7700, 13, 4706, 363, 2380, 297, 3464, 29898, 2435, 29898, 1272, 29897, 448, 29871, 29896, 1125, 13, 9651, 565, 848, 29961, 2248, 29962, 1405, 848, 29961, 2248, 718, 29871, 29896, 5387, 13, 18884, 5694, 353, 848, 29961, 2248, 29962, 13, 18884, 848, 29961, 2248, 29962, 353, 848, 29961, 2248, 718, 29871, 29896, 29962, 13, 18884, 848, 29961, 2248, 718, 29871, 29896, 29962, 353, 5694, 13, 18884, 7353, 353, 5852, 13, 4706, 565, 451, 7353, 29901, 13, 9651, 2867, 13, 1678, 736, 848, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 363, 474, 297, 899, 7295, 13, 4706, 1596, 29898, 29875, 29897, 13, 2 ]
pynq_networking/lib/mqttsn_sw.py
Xilinx/PYNQ-Networking
40
30489
<filename>pynq_networking/lib/mqttsn_sw.py<gh_stars>10-100 # Copyright (c) 2017, Xilinx, Inc. # 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. # # 3. Neither the name of the copyright holder nor the names of its # 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 struct import logging logging.getLogger("kamene.runtime").setLevel(logging.ERROR) from kamene.all import * from .mqttsn import * __author__ = "<NAME>" __copyright__ = "Copyright 2017, Xilinx" __email__ = "<EMAIL>" """ Kamene implementation of the MQTTSN protocol """ def valid_ack(ack, t): if isinstance(ack[IP].payload, ICMP): print("Error response:") ack[IP].payload.show() return False if not isinstance(ack[MQTTSN].payload, t): print("Unexpected response should have been " + str(t) + ":") ack.payload.show() return False return True class MQTT_Client: def __init__(self, serverIP, serverPort, name, verbose=0): self.serverIP = serverIP self.serverPort = serverPort self.client = name self.verbose = verbose def __enter__(self): try: self.connect() except Exception: raise Exception return self def __exit__(self, type, value, traceback): self.disconnect() def connect(self): """Establish the connection. Return the valid acknowledgement. """ connack = sr1(IP(dst=self.serverIP) / UDP(sport=50000, dport=self.serverPort) / MQTTSN() / MQTTSN_CONNECT(client=self.client), verbose=self.verbose) return valid_ack(connack, MQTTSN_CONNACK) def disconnect(self): """Destroy the connection. The rsmb tends to respond without the disconnect payload. """ _ = send(IP(dst=self.serverIP) / UDP(sport=50000, dport=self.serverPort) / MQTTSN() / MQTTSN_DISCONNECT(), verbose=self.verbose) def register(self, topic): """Register the given topic. Return the associated topicID. """ regack = sr1(IP(dst=self.serverIP) / UDP(sport=50000, dport=self.serverPort) / MQTTSN() / MQTTSN_REGISTER(topic=topic), verbose=self.verbose) if not valid_ack(regack, MQTTSN_REGACK): raise RuntimeError("register() not acknowledged.") return regack[MQTTSN_REGACK].topicID def publish(self, topicID, message, qos=1): """Publish on the given topicID with the given message. With qos=1, it will guarantee the delivery. Return bool indicating success. """ frame = IP(dst=self.serverIP) / \ UDP(sport=50000, dport=self.serverPort) / \ MQTTSN() / MQTTSN_PUBLISH(qos=qos, topicID=topicID, message=message) if qos == 0: send(frame, verbose=self.verbose) if qos == 1: puback_frame = sr1(frame, verbose=self.verbose) if not valid_ack(puback_frame, MQTTSN_PUBACK): return False return True
[ 1, 529, 9507, 29958, 29886, 948, 29939, 29918, 11618, 292, 29914, 1982, 29914, 28466, 698, 16586, 29918, 2774, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 259, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 29892, 1060, 309, 14668, 29892, 9266, 29889, 13, 29937, 259, 2178, 10462, 21676, 29889, 13, 29937, 13, 29937, 259, 4367, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 29892, 411, 470, 1728, 13, 29937, 259, 21733, 29892, 526, 21905, 4944, 393, 278, 1494, 5855, 526, 1539, 29901, 13, 29937, 13, 29937, 1678, 29896, 29889, 29871, 4367, 391, 3224, 29879, 310, 2752, 775, 1818, 11551, 278, 2038, 3509, 1266, 8369, 29892, 13, 29937, 539, 445, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 29889, 13, 29937, 13, 29937, 1678, 29906, 29889, 29871, 4367, 391, 3224, 29879, 297, 7581, 883, 1818, 18532, 278, 2038, 3509, 1266, 13, 29937, 539, 8369, 29892, 445, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 297, 278, 13, 29937, 539, 5106, 322, 29914, 272, 916, 17279, 4944, 411, 278, 4978, 29889, 13, 29937, 13, 29937, 1678, 29941, 29889, 29871, 2448, 2121, 278, 1024, 310, 278, 3509, 1266, 19464, 3643, 278, 2983, 310, 967, 13, 29937, 539, 17737, 29560, 1122, 367, 1304, 304, 1095, 272, 344, 470, 27391, 9316, 10723, 515, 13, 29937, 539, 445, 7047, 1728, 2702, 7536, 3971, 10751, 29889, 13, 29937, 13, 29937, 259, 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, 259, 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, 13, 29937, 259, 6093, 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, 13, 29937, 259, 349, 4574, 13152, 1660, 319, 1525, 28657, 13875, 8890, 29928, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 6323, 13, 29937, 259, 8707, 29911, 3960, 29933, 2692, 24125, 20700, 17705, 6181, 15842, 13764, 29979, 22471, 26282, 29892, 2672, 4571, 26282, 29892, 2672, 29907, 1367, 3919, 1964, 29892, 317, 4162, 8426, 1964, 29892, 13, 29937, 259, 8528, 29923, 3580, 29931, 19926, 29892, 6323, 8707, 1660, 13356, 3919, 25758, 21330, 1529, 1692, 29903, 313, 1177, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 13, 29937, 259, 13756, 29907, 11499, 13780, 8079, 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, 13, 29937, 259, 6323, 350, 3308, 8895, 1799, 2672, 4945, 29934, 4897, 29911, 2725, 467, 29832, 8851, 5348, 12766, 17171, 29928, 5300, 6732, 13764, 29979, 6093, 18929, 8079, 17705, 2882, 6227, 11937, 29892, 13, 29937, 259, 12317, 2544, 4448, 2672, 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, 13, 29937, 259, 438, 29911, 4448, 22119, 1660, 29897, 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, 13, 29937, 259, 11033, 18118, 1660, 29928, 8079, 6093, 21521, 1799, 8979, 6227, 11937, 8079, 20134, 3210, 21330, 1529, 1692, 29889, 13, 13, 13, 5215, 2281, 13, 5215, 12183, 13, 21027, 29889, 657, 16363, 703, 29895, 314, 1600, 29889, 15634, 2564, 842, 10108, 29898, 21027, 29889, 11432, 29897, 13, 3166, 9286, 1600, 29889, 497, 1053, 334, 13, 3166, 869, 28466, 698, 16586, 1053, 334, 13, 13, 13, 1649, 8921, 1649, 353, 9872, 5813, 11903, 13, 1649, 8552, 1266, 1649, 353, 376, 11882, 1266, 29871, 29906, 29900, 29896, 29955, 29892, 1060, 309, 14668, 29908, 13, 1649, 5269, 1649, 353, 9872, 26862, 6227, 11903, 13, 13, 13, 15945, 29908, 12986, 1600, 5314, 310, 278, 341, 29984, 29911, 9375, 29940, 9608, 9995, 13, 13, 13, 1753, 2854, 29918, 547, 29898, 547, 29892, 260, 1125, 13, 1678, 565, 338, 8758, 29898, 547, 29961, 5690, 1822, 23813, 29892, 18340, 3580, 1125, 13, 4706, 1596, 703, 2392, 2933, 29901, 1159, 13, 4706, 263, 384, 29961, 5690, 1822, 23813, 29889, 4294, 580, 13, 4706, 736, 7700, 13, 1678, 565, 451, 338, 8758, 29898, 547, 29961, 25566, 29911, 9375, 29940, 1822, 23813, 29892, 260, 1125, 13, 4706, 1596, 703, 29965, 13996, 6021, 2933, 881, 505, 1063, 376, 718, 851, 29898, 29873, 29897, 718, 29242, 1159, 13, 4706, 263, 384, 29889, 23813, 29889, 4294, 580, 13, 4706, 736, 7700, 13, 1678, 736, 5852, 13, 13, 13, 1990, 341, 29984, 19988, 29918, 4032, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1923, 5690, 29892, 1923, 2290, 29892, 1024, 29892, 26952, 29922, 29900, 1125, 13, 4706, 1583, 29889, 2974, 5690, 353, 1923, 5690, 13, 4706, 1583, 29889, 2974, 2290, 353, 1923, 2290, 13, 4706, 1583, 29889, 4645, 353, 1024, 13, 4706, 1583, 29889, 369, 15828, 353, 26952, 13, 13, 1678, 822, 4770, 5893, 12035, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 6915, 580, 13, 4706, 5174, 8960, 29901, 13, 9651, 12020, 8960, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4770, 13322, 12035, 1311, 29892, 1134, 29892, 995, 29892, 9637, 1627, 1125, 13, 4706, 1583, 29889, 2218, 6915, 580, 13, 13, 1678, 822, 4511, 29898, 1311, 1125, 13, 4706, 9995, 12787, 370, 1674, 278, 3957, 29889, 29871, 13, 13, 4706, 7106, 278, 2854, 24084, 29887, 882, 29889, 13, 13, 4706, 9995, 13, 4706, 11009, 547, 353, 27236, 29896, 29898, 5690, 29898, 22992, 29922, 1311, 29889, 2974, 5690, 29897, 847, 13, 462, 418, 501, 11191, 29898, 29879, 637, 29922, 29945, 29900, 29900, 29900, 29900, 29892, 270, 637, 29922, 1311, 29889, 2974, 2290, 29897, 847, 13, 462, 418, 341, 29984, 29911, 9375, 29940, 580, 847, 341, 29984, 29911, 9375, 29940, 29918, 6007, 8186, 1783, 29898, 4645, 29922, 1311, 29889, 4645, 511, 13, 462, 418, 26952, 29922, 1311, 29889, 369, 15828, 29897, 13, 4706, 736, 2854, 29918, 547, 29898, 13082, 547, 29892, 341, 29984, 29911, 9375, 29940, 29918, 6007, 29940, 11375, 29897, 13, 13, 1678, 822, 766, 6915, 29898, 1311, 1125, 13, 4706, 9995, 14994, 4727, 278, 3957, 29889, 13, 308, 13, 4706, 450, 364, 3844, 29890, 29867, 304, 10049, 1728, 278, 766, 6915, 20092, 29889, 13, 13, 4706, 9995, 13, 4706, 903, 353, 3638, 29898, 5690, 29898, 22992, 29922, 1311, 29889, 2974, 5690, 29897, 847, 13, 462, 501, 11191, 29898, 29879, 637, 29922, 29945, 29900, 29900, 29900, 29900, 29892, 270, 637, 29922, 1311, 29889, 2974, 2290, 29897, 847, 13, 462, 341, 29984, 29911, 9375, 29940, 580, 847, 341, 29984, 29911, 9375, 29940, 29918, 23711, 6007, 8186, 1783, 3285, 13, 462, 26952, 29922, 1311, 29889, 369, 15828, 29897, 13, 13, 1678, 822, 6036, 29898, 1311, 29892, 11261, 1125, 13, 4706, 9995, 15213, 278, 2183, 11261, 29889, 259, 13, 13, 4706, 7106, 278, 6942, 11261, 1367, 29889, 13, 13, 4706, 9995, 13, 4706, 1072, 547, 353, 27236, 29896, 29898, 5690, 29898, 22992, 29922, 1311, 29889, 2974, 5690, 29897, 847, 13, 462, 268, 501, 11191, 29898, 29879, 637, 29922, 29945, 29900, 29900, 29900, 29900, 29892, 270, 637, 29922, 1311, 29889, 2974, 2290, 29897, 847, 13, 462, 268, 341, 29984, 29911, 9375, 29940, 580, 847, 341, 29984, 29911, 9375, 29940, 29918, 18166, 9047, 1001, 29898, 13010, 29922, 13010, 511, 13, 462, 268, 26952, 29922, 1311, 29889, 369, 15828, 29897, 13, 4706, 565, 451, 2854, 29918, 547, 29898, 1727, 547, 29892, 341, 29984, 29911, 9375, 29940, 29918, 18166, 11375, 1125, 13, 9651, 12020, 24875, 2392, 703, 9573, 580, 451, 24084, 3192, 23157, 13, 4706, 736, 1072, 547, 29961, 25566, 29911, 9375, 29940, 29918, 18166, 11375, 1822, 13010, 1367, 13, 13, 1678, 822, 9805, 29898, 1311, 29892, 11261, 1367, 29892, 2643, 29892, 3855, 359, 29922, 29896, 1125, 13, 4706, 9995, 21076, 1674, 373, 278, 2183, 11261, 1367, 411, 278, 2183, 2643, 29889, 13, 3986, 13, 4706, 2973, 3855, 359, 29922, 29896, 29892, 372, 674, 18818, 278, 28289, 29889, 29871, 13, 4706, 7106, 6120, 23941, 2551, 29889, 13, 13, 4706, 9995, 13, 4706, 3515, 353, 5641, 29898, 22992, 29922, 1311, 29889, 2974, 5690, 29897, 847, 320, 13, 9651, 501, 11191, 29898, 29879, 637, 29922, 29945, 29900, 29900, 29900, 29900, 29892, 270, 637, 29922, 1311, 29889, 2974, 2290, 29897, 847, 320, 13, 9651, 341, 29984, 29911, 9375, 29940, 580, 847, 341, 29984, 29911, 9375, 29940, 29918, 7056, 13367, 3235, 29950, 29898, 29939, 359, 29922, 29939, 359, 29892, 13, 462, 462, 418, 11261, 1367, 29922, 13010, 1367, 29892, 2643, 29922, 4906, 29897, 13, 4706, 565, 3855, 359, 1275, 29871, 29900, 29901, 13, 9651, 3638, 29898, 2557, 29892, 26952, 29922, 1311, 29889, 369, 15828, 29897, 13, 4706, 565, 3855, 359, 1275, 29871, 29896, 29901, 13, 9651, 2529, 547, 29918, 2557, 353, 27236, 29896, 29898, 2557, 29892, 26952, 29922, 1311, 29889, 369, 15828, 29897, 13, 9651, 565, 451, 2854, 29918, 547, 29898, 5467, 547, 29918, 2557, 29892, 341, 29984, 29911, 9375, 29940, 29918, 7056, 29933, 11375, 1125, 13, 18884, 736, 7700, 13, 4706, 736, 5852, 13, 2 ]
toggl_dinero/dinero.py
esben/toggl-dinero
1
135632
"""This module contains a class for providing access to Dinero API.""" from oauthlib.oauth2 import LegacyApplicationClient from requests_oauthlib import OAuth2Session import json import logging # Dinero invoice creation procedure # # Get an OAuth2 token from https://authz.dinero.dk/dineroapi/oauth/token # and attach that to all following requests (see https://api.dinero.dk/docs) # # Get list of organisations, and use that to resolve/get organisation id # (Geanix ApS). # # Get list of contacts, and use that to resolve contact client name to # contactGuid number. # # Make create invoice request # - ContactGuid # - Language (da-DK / en-GB) # - ProductLines[] # - BaseAmountValue # - Description (project title) # - Quantity (hours) # - Unit ("hours") DINERO_TOKEN_URL = 'https://authz.dinero.dk/dineroapi/oauth/token' class DineroAPI: """A connection object for accessing Dinero API.""" API_URL_V1 = 'https://api.dinero.dk/v1' API_URL_V1_2 = 'https://api.dinero.dk/v1.2' def __init__(self, client_id, client_secret, api_key, name=None): """ Create a new instance. :param client_id: Dinero client ID. :param client_secret: Dinero client secret. :param api_key: Dinero API key. :param name: Name of organization to work/on. """ client = LegacyApplicationClient(client_id=client_id) oauth = OAuth2Session(client=client) token = oauth.fetch_token(token_url=DINERO_TOKEN_URL, username=api_key, password=<PASSWORD>_key, client_id=client_id, client_secret=client_secret) self.session = oauth self.token = token if not self.set_organization(name): raise Exception('Could not set organization') def set_organization(self, name=None): """Set the Dinero organization to work with/on. :param name: Name of organization. """ url = f'{self.API_URL_V1}/organizations' params = {'fields': 'name,id'} orgs = self.session.get(url, params=params).json() if name is None: if len(orgs) == 1: self.organization = orgs[0]['id'] return self.organization else: return None for org in orgs: if org['name'] == name: self.organization = org['id'] return self.organization return None def get_contacts(self): """Get all contacts of current organization.""" url = f'{self.API_URL_V1}/{self.organization}/contacts' return self.session.get(url) def get_contact(self, contact): """Get named contact of current organization.""" url = f'{self.API_URL_V1}/{self.organization}/contacts/{contact}' return self.session.get(url) def update_contact(self, contact, data): """ Update contact information in current organization. :param contact: Contact id to change. :param data: Update contact data to upload. """ url = f'{self.API_URL_V1}/{self.organization}/contacts/{contact}' self.session.put(url, json=data) def _get_matching_contact(self, fields, match_fn): url = f'{self.API_URL_V1}/{self.organization}/contacts' params = { 'fields': fields, 'page': 0} while True: contacts = self.session.get(url, params=params).json() for contact in contacts['Collection']: match = match_fn(contact) if match: return match results = contacts['Pagination']['Result'] pagesize = contacts['Pagination']['PageSize'] if results < pagesize: break params['page'] += 1 return None def contact_id(self, name): """Get contact ID of named contact.""" def name_match(c): if c['name'] == name: return c['contactGuid'] else: return None return self._get_matching_contact('name,contactGuid', name_match) def contact_with_external_reference(self, key, value): """ Get contact ID of contact with matching ExternalReference. The ExternalReference field is assumed to be a JSON object, and a contact matches if the ExternalReference JSON object has a key/value match. :param key: Key to match. :param value: Value to match. """ def extref_match(c): extref = c.get('ExternalReference') if extref is None: return None try: extref = json.loads(extref) except Exception as e: logging.warn(f'Bad ExternalReference value: {e}: {extref}') return None if extref.get(key) == value: return c['contactGuid'] return None return self._get_matching_contact( 'name,contactGuid,ExternalReference', extref_match) def create_invoice(self, contact, product_lines=[], language=None, currency=None, comment=None, date=None): """ Create draft invoice. :param contact: Contact ID. :param product_lines: Product lines for the invoices API. :param language: Language of the invoice. :param currency: Currency to use for the invoice. :param comment: Comment to add to invoice. :param date: Invoice date. """ url = f'{self.API_URL_V1}/{self.organization}/invoices' if language == 'da': language = 'da-DK' elif language == 'en': language = 'en-GB' body = { 'ContactGuid': contact, 'Currency': currency, 'Language': language, 'Comment': comment, 'Date': date, 'ProductLines': product_lines, } body = {k: v for (k, v) in body.items() if v is not None} resp = self.session.post(url, json=body) if not resp.ok: print('Error: Creating invoice failed: ' + f'{resp.status_code} {resp.reason}') print(resp.text) def get_draft_invoice(self, contact): """ Get existing draft invoice. Exactly one draft invoice is expected to exist for the contact. If no or more than one draft voice exists for the customer, this function returns None. :param contact: Contact ID to get draft invoice for. :return: Invoice data or None. """ url = f'{self.API_URL_V1}/{self.organization}/invoices' params = {'fields': "Guid,Date,Description", 'statusFilter': 'Draft', 'queryFilter': f"ContactGuid eq '{contact}'"} resp = self.session.get(url, params=params) if not resp.ok: print('Error: Getting invoice list failed: ' + f'{resp.status_code} {resp.reason}') print(resp.text) return None invoices = resp.json()['Collection'] if len(invoices) == 0: print('Error: No draft invoice found') return None if len(invoices) > 1: print('Error: Multiple draft invoices found') return None guid = invoices[0]['Guid'] url = f'{self.API_URL_V1}/{self.organization}/invoices/{guid}' resp = self.session.get(url, headers={'Accept': 'application/json'}) if not resp.ok: print('Error: Getting invoice failed: ' + f'{resp.status_code} {resp.reason}') print(resp.text) return None invoice = resp.json() return invoice def update_invoice(self, invoice): """ Update existing draft invoice. :param guid: Invoice data. """ guid = invoice['Guid'] # API v1 does not support Text lines, so we need to use at least v1.2 url = f'{self.API_URL_V1_2}/{self.organization}/invoices/{guid}' resp = self.session.put(url, json=invoice) if not resp.ok: print('Error: Updating invoice failed: ' + f'{resp.status_code} {resp.reason}') print(resp.text)
[ 1, 9995, 4013, 3883, 3743, 263, 770, 363, 13138, 2130, 304, 15651, 1489, 3450, 1213, 15945, 13, 13, 3166, 288, 5150, 1982, 29889, 23106, 29906, 1053, 5682, 4135, 4873, 4032, 13, 3166, 7274, 29918, 23106, 1982, 1053, 438, 6444, 29906, 7317, 13, 5215, 4390, 13, 5215, 12183, 13, 13, 29937, 15651, 1489, 297, 14917, 11265, 8792, 13, 29937, 13, 29937, 3617, 385, 438, 6444, 29906, 5993, 515, 2045, 597, 5150, 29920, 29889, 24581, 1489, 29889, 8181, 29914, 24581, 1489, 2754, 29914, 23106, 29914, 6979, 13, 29937, 322, 10641, 393, 304, 599, 1494, 7274, 313, 4149, 2045, 597, 2754, 29889, 24581, 1489, 29889, 8181, 29914, 2640, 29897, 13, 29937, 13, 29937, 3617, 1051, 310, 17459, 800, 29892, 322, 671, 393, 304, 8814, 29914, 657, 24788, 1178, 13, 29937, 313, 7999, 273, 861, 6225, 29903, 467, 13, 29937, 13, 29937, 3617, 1051, 310, 25957, 29892, 322, 671, 393, 304, 8814, 6958, 3132, 1024, 304, 13, 29937, 6958, 29954, 5416, 1353, 29889, 13, 29937, 13, 29937, 8561, 1653, 297, 14917, 2009, 13, 29937, 448, 22387, 29954, 5416, 13, 29937, 448, 17088, 313, 1388, 29899, 17359, 847, 427, 29899, 7210, 29897, 13, 29937, 448, 10969, 20261, 2636, 13, 29937, 259, 448, 7399, 18087, 1917, 13, 29937, 259, 448, 12953, 313, 4836, 3611, 29897, 13, 29937, 259, 448, 22746, 537, 313, 29882, 2470, 29897, 13, 29937, 259, 448, 13223, 4852, 29882, 2470, 1159, 13, 13, 13, 29928, 1177, 1001, 29949, 29918, 4986, 29968, 1430, 29918, 4219, 353, 525, 991, 597, 5150, 29920, 29889, 24581, 1489, 29889, 8181, 29914, 24581, 1489, 2754, 29914, 23106, 29914, 6979, 29915, 13, 13, 13, 1990, 15651, 1489, 8787, 29901, 13, 1678, 9995, 29909, 3957, 1203, 363, 17378, 15651, 1489, 3450, 1213, 15945, 13, 13, 1678, 3450, 29918, 4219, 29918, 29963, 29896, 353, 525, 991, 597, 2754, 29889, 24581, 1489, 29889, 8181, 29914, 29894, 29896, 29915, 13, 1678, 3450, 29918, 4219, 29918, 29963, 29896, 29918, 29906, 353, 525, 991, 597, 2754, 29889, 24581, 1489, 29889, 8181, 29914, 29894, 29896, 29889, 29906, 29915, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3132, 29918, 333, 29892, 3132, 29918, 19024, 29892, 7882, 29918, 1989, 29892, 1024, 29922, 8516, 1125, 13, 4706, 9995, 13, 4706, 6204, 263, 716, 2777, 29889, 13, 13, 4706, 584, 3207, 3132, 29918, 333, 29901, 15651, 1489, 3132, 3553, 29889, 13, 4706, 584, 3207, 3132, 29918, 19024, 29901, 15651, 1489, 3132, 7035, 29889, 13, 4706, 584, 3207, 7882, 29918, 1989, 29901, 15651, 1489, 3450, 1820, 29889, 13, 4706, 584, 3207, 1024, 29901, 4408, 310, 13013, 304, 664, 29914, 265, 29889, 13, 4706, 9995, 13, 4706, 3132, 353, 5682, 4135, 4873, 4032, 29898, 4645, 29918, 333, 29922, 4645, 29918, 333, 29897, 13, 4706, 288, 5150, 353, 438, 6444, 29906, 7317, 29898, 4645, 29922, 4645, 29897, 13, 4706, 5993, 353, 288, 5150, 29889, 9155, 29918, 6979, 29898, 6979, 29918, 2271, 29922, 29928, 1177, 1001, 29949, 29918, 4986, 29968, 1430, 29918, 4219, 29892, 13, 462, 462, 29871, 8952, 29922, 2754, 29918, 1989, 29892, 4800, 29922, 29966, 25711, 17013, 29958, 29918, 1989, 29892, 13, 462, 462, 29871, 3132, 29918, 333, 29922, 4645, 29918, 333, 29892, 13, 462, 462, 29871, 3132, 29918, 19024, 29922, 4645, 29918, 19024, 29897, 13, 4706, 1583, 29889, 7924, 353, 288, 5150, 13, 4706, 1583, 29889, 6979, 353, 5993, 13, 4706, 565, 451, 1583, 29889, 842, 29918, 6388, 2133, 29898, 978, 1125, 13, 9651, 12020, 8960, 877, 23323, 451, 731, 13013, 1495, 13, 13, 1678, 822, 731, 29918, 6388, 2133, 29898, 1311, 29892, 1024, 29922, 8516, 1125, 13, 4706, 9995, 2697, 278, 15651, 1489, 13013, 304, 664, 411, 29914, 265, 29889, 13, 13, 4706, 584, 3207, 1024, 29901, 4408, 310, 13013, 29889, 13, 13, 4706, 9995, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 6388, 17063, 29915, 13, 4706, 8636, 353, 11117, 9621, 2396, 525, 978, 29892, 333, 10827, 13, 4706, 1638, 29879, 353, 1583, 29889, 7924, 29889, 657, 29898, 2271, 29892, 8636, 29922, 7529, 467, 3126, 580, 13, 4706, 565, 1024, 338, 6213, 29901, 13, 9651, 565, 7431, 29898, 990, 29879, 29897, 1275, 29871, 29896, 29901, 13, 18884, 1583, 29889, 6388, 2133, 353, 1638, 29879, 29961, 29900, 22322, 333, 2033, 13, 18884, 736, 1583, 29889, 6388, 2133, 13, 9651, 1683, 29901, 13, 18884, 736, 6213, 13, 4706, 363, 1638, 297, 1638, 29879, 29901, 13, 9651, 565, 1638, 1839, 978, 2033, 1275, 1024, 29901, 13, 18884, 1583, 29889, 6388, 2133, 353, 1638, 1839, 333, 2033, 13, 18884, 736, 1583, 29889, 6388, 2133, 13, 4706, 736, 6213, 13, 13, 1678, 822, 679, 29918, 12346, 29879, 29898, 1311, 1125, 13, 4706, 9995, 2577, 599, 25957, 310, 1857, 13013, 1213, 15945, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 12346, 29879, 29915, 13, 4706, 736, 1583, 29889, 7924, 29889, 657, 29898, 2271, 29897, 13, 13, 1678, 822, 679, 29918, 12346, 29898, 1311, 29892, 6958, 1125, 13, 4706, 9995, 2577, 4257, 6958, 310, 1857, 13013, 1213, 15945, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 12346, 29879, 19248, 12346, 10162, 13, 4706, 736, 1583, 29889, 7924, 29889, 657, 29898, 2271, 29897, 13, 13, 1678, 822, 2767, 29918, 12346, 29898, 1311, 29892, 6958, 29892, 848, 1125, 13, 4706, 9995, 13, 4706, 10318, 6958, 2472, 297, 1857, 13013, 29889, 13, 13, 4706, 584, 3207, 6958, 29901, 22387, 1178, 304, 1735, 29889, 13, 4706, 584, 3207, 848, 29901, 10318, 6958, 848, 304, 6441, 29889, 13, 4706, 9995, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 12346, 29879, 19248, 12346, 10162, 13, 4706, 1583, 29889, 7924, 29889, 649, 29898, 2271, 29892, 4390, 29922, 1272, 29897, 13, 13, 1678, 822, 903, 657, 29918, 4352, 292, 29918, 12346, 29898, 1311, 29892, 4235, 29892, 1993, 29918, 9144, 1125, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 12346, 29879, 29915, 13, 4706, 8636, 353, 426, 13, 9651, 525, 9621, 2396, 4235, 29892, 13, 9651, 525, 3488, 2396, 29871, 29900, 29913, 13, 4706, 1550, 5852, 29901, 13, 9651, 25957, 353, 1583, 29889, 7924, 29889, 657, 29898, 2271, 29892, 8636, 29922, 7529, 467, 3126, 580, 13, 9651, 363, 6958, 297, 25957, 1839, 7196, 2033, 29901, 13, 18884, 1993, 353, 1993, 29918, 9144, 29898, 12346, 29897, 13, 18884, 565, 1993, 29901, 13, 462, 1678, 736, 1993, 13, 9651, 2582, 353, 25957, 1839, 29925, 351, 3381, 16215, 3591, 2033, 13, 9651, 6515, 675, 353, 25957, 1839, 29925, 351, 3381, 16215, 5074, 3505, 2033, 13, 9651, 565, 2582, 529, 6515, 675, 29901, 13, 18884, 2867, 13, 9651, 8636, 1839, 3488, 2033, 4619, 29871, 29896, 13, 4706, 736, 6213, 13, 13, 1678, 822, 6958, 29918, 333, 29898, 1311, 29892, 1024, 1125, 13, 4706, 9995, 2577, 6958, 3553, 310, 4257, 6958, 1213, 15945, 13, 4706, 822, 1024, 29918, 4352, 29898, 29883, 1125, 13, 9651, 565, 274, 1839, 978, 2033, 1275, 1024, 29901, 13, 18884, 736, 274, 1839, 12346, 29954, 5416, 2033, 13, 9651, 1683, 29901, 13, 18884, 736, 6213, 13, 4706, 736, 1583, 3032, 657, 29918, 4352, 292, 29918, 12346, 877, 978, 29892, 12346, 29954, 5416, 742, 1024, 29918, 4352, 29897, 13, 13, 1678, 822, 6958, 29918, 2541, 29918, 23176, 29918, 5679, 29898, 1311, 29892, 1820, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 3617, 6958, 3553, 310, 6958, 411, 9686, 3985, 7422, 29889, 13, 13, 4706, 450, 3985, 7422, 1746, 338, 12023, 304, 367, 263, 4663, 1203, 29892, 322, 263, 13, 4706, 6958, 7087, 565, 278, 3985, 7422, 4663, 1203, 756, 263, 1820, 29914, 1767, 13, 4706, 1993, 29889, 13, 13, 4706, 584, 3207, 1820, 29901, 7670, 304, 1993, 29889, 13, 4706, 584, 3207, 995, 29901, 7865, 304, 1993, 29889, 13, 4706, 9995, 13, 4706, 822, 1294, 999, 29918, 4352, 29898, 29883, 1125, 13, 9651, 1294, 999, 353, 274, 29889, 657, 877, 25865, 7422, 1495, 13, 9651, 565, 1294, 999, 338, 6213, 29901, 13, 18884, 736, 6213, 13, 9651, 1018, 29901, 13, 18884, 1294, 999, 353, 4390, 29889, 18132, 29898, 1062, 999, 29897, 13, 9651, 5174, 8960, 408, 321, 29901, 13, 18884, 12183, 29889, 25442, 29898, 29888, 29915, 22050, 3985, 7422, 995, 29901, 426, 29872, 6177, 426, 1062, 999, 29913, 1495, 13, 18884, 736, 6213, 13, 9651, 565, 1294, 999, 29889, 657, 29898, 1989, 29897, 1275, 995, 29901, 13, 18884, 736, 274, 1839, 12346, 29954, 5416, 2033, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 657, 29918, 4352, 292, 29918, 12346, 29898, 13, 9651, 525, 978, 29892, 12346, 29954, 5416, 29892, 25865, 7422, 742, 1294, 999, 29918, 4352, 29897, 13, 13, 1678, 822, 1653, 29918, 262, 14917, 29898, 1311, 29892, 6958, 29892, 3234, 29918, 9012, 11759, 1402, 13, 462, 539, 4086, 29922, 8516, 29892, 27550, 29922, 8516, 29892, 3440, 29922, 8516, 29892, 2635, 29922, 8516, 1125, 13, 4706, 9995, 13, 4706, 6204, 18195, 297, 14917, 29889, 13, 13, 4706, 584, 3207, 6958, 29901, 22387, 3553, 29889, 13, 4706, 584, 3207, 3234, 29918, 9012, 29901, 10969, 3454, 363, 278, 297, 1365, 1575, 3450, 29889, 13, 4706, 584, 3207, 4086, 29901, 17088, 310, 278, 297, 14917, 29889, 13, 4706, 584, 3207, 27550, 29901, 315, 10880, 304, 671, 363, 278, 297, 14917, 29889, 13, 4706, 584, 3207, 3440, 29901, 461, 304, 788, 304, 297, 14917, 29889, 13, 4706, 584, 3207, 2635, 29901, 512, 14917, 2635, 29889, 13, 4706, 9995, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 262, 1365, 1575, 29915, 13, 4706, 565, 4086, 1275, 525, 1388, 2396, 13, 9651, 4086, 353, 525, 1388, 29899, 17359, 29915, 13, 4706, 25342, 4086, 1275, 525, 264, 2396, 13, 9651, 4086, 353, 525, 264, 29899, 7210, 29915, 13, 4706, 3573, 353, 426, 13, 9651, 525, 13443, 29954, 5416, 2396, 6958, 29892, 13, 9651, 525, 29907, 10880, 2396, 27550, 29892, 13, 9651, 525, 21233, 2396, 4086, 29892, 13, 9651, 525, 20001, 2396, 3440, 29892, 13, 9651, 525, 2539, 2396, 2635, 29892, 13, 9651, 525, 7566, 20261, 2396, 3234, 29918, 9012, 29892, 13, 4706, 500, 13, 4706, 3573, 353, 426, 29895, 29901, 325, 363, 313, 29895, 29892, 325, 29897, 297, 3573, 29889, 7076, 580, 565, 325, 338, 451, 6213, 29913, 13, 4706, 4613, 353, 1583, 29889, 7924, 29889, 2490, 29898, 2271, 29892, 4390, 29922, 2587, 29897, 13, 4706, 565, 451, 4613, 29889, 554, 29901, 13, 9651, 1596, 877, 2392, 29901, 26221, 297, 14917, 5229, 29901, 525, 718, 13, 462, 29871, 285, 29915, 29912, 13713, 29889, 4882, 29918, 401, 29913, 426, 13713, 29889, 23147, 29913, 1495, 13, 9651, 1596, 29898, 13713, 29889, 726, 29897, 13, 13, 1678, 822, 679, 29918, 29881, 4154, 29918, 262, 14917, 29898, 1311, 29892, 6958, 1125, 13, 4706, 9995, 13, 4706, 3617, 5923, 18195, 297, 14917, 29889, 13, 13, 4706, 1222, 23617, 697, 18195, 297, 14917, 338, 3806, 304, 1863, 363, 278, 6958, 29889, 29871, 960, 694, 13, 4706, 470, 901, 1135, 697, 18195, 7314, 4864, 363, 278, 11962, 29892, 445, 740, 13, 4706, 3639, 6213, 29889, 13, 13, 4706, 584, 3207, 6958, 29901, 22387, 3553, 304, 679, 18195, 297, 14917, 363, 29889, 13, 4706, 584, 2457, 29901, 512, 14917, 848, 470, 6213, 29889, 13, 13, 4706, 9995, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 262, 1365, 1575, 29915, 13, 4706, 8636, 353, 11117, 9621, 2396, 376, 29954, 5416, 29892, 2539, 29892, 9868, 613, 13, 462, 29871, 525, 4882, 5072, 2396, 525, 29928, 4154, 742, 13, 462, 29871, 525, 1972, 5072, 2396, 285, 29908, 13443, 29954, 5416, 11594, 22372, 12346, 10162, 9092, 13, 4706, 4613, 353, 1583, 29889, 7924, 29889, 657, 29898, 2271, 29892, 8636, 29922, 7529, 29897, 13, 4706, 565, 451, 4613, 29889, 554, 29901, 13, 9651, 1596, 877, 2392, 29901, 24162, 297, 14917, 1051, 5229, 29901, 525, 718, 13, 462, 29871, 285, 29915, 29912, 13713, 29889, 4882, 29918, 401, 29913, 426, 13713, 29889, 23147, 29913, 1495, 13, 9651, 1596, 29898, 13713, 29889, 726, 29897, 13, 9651, 736, 6213, 13, 4706, 297, 1365, 1575, 353, 4613, 29889, 3126, 580, 1839, 7196, 2033, 13, 4706, 565, 7431, 29898, 262, 1365, 1575, 29897, 1275, 29871, 29900, 29901, 13, 9651, 1596, 877, 2392, 29901, 1939, 18195, 297, 14917, 1476, 1495, 13, 9651, 736, 6213, 13, 4706, 565, 7431, 29898, 262, 1365, 1575, 29897, 1405, 29871, 29896, 29901, 13, 9651, 1596, 877, 2392, 29901, 26905, 18195, 297, 1365, 1575, 1476, 1495, 13, 9651, 736, 6213, 13, 4706, 16605, 353, 297, 1365, 1575, 29961, 29900, 22322, 29954, 5416, 2033, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 262, 1365, 1575, 19248, 2543, 333, 10162, 13, 4706, 4613, 353, 1583, 29889, 7924, 29889, 657, 29898, 2271, 29892, 9066, 3790, 29915, 23965, 2396, 525, 6214, 29914, 3126, 29915, 1800, 13, 4706, 565, 451, 4613, 29889, 554, 29901, 13, 9651, 1596, 877, 2392, 29901, 24162, 297, 14917, 5229, 29901, 525, 718, 13, 462, 29871, 285, 29915, 29912, 13713, 29889, 4882, 29918, 401, 29913, 426, 13713, 29889, 23147, 29913, 1495, 13, 9651, 1596, 29898, 13713, 29889, 726, 29897, 13, 9651, 736, 6213, 13, 4706, 297, 14917, 353, 4613, 29889, 3126, 580, 13, 4706, 736, 297, 14917, 13, 13, 1678, 822, 2767, 29918, 262, 14917, 29898, 1311, 29892, 297, 14917, 1125, 13, 4706, 9995, 13, 4706, 10318, 5923, 18195, 297, 14917, 29889, 13, 13, 4706, 584, 3207, 16605, 29901, 512, 14917, 848, 29889, 13, 4706, 9995, 13, 4706, 16605, 353, 297, 14917, 1839, 29954, 5416, 2033, 13, 4706, 396, 3450, 325, 29896, 947, 451, 2304, 3992, 3454, 29892, 577, 591, 817, 304, 671, 472, 3203, 325, 29896, 29889, 29906, 13, 4706, 3142, 353, 285, 29915, 29912, 1311, 29889, 8787, 29918, 4219, 29918, 29963, 29896, 29918, 29906, 6822, 29912, 1311, 29889, 6388, 2133, 6822, 262, 1365, 1575, 19248, 2543, 333, 10162, 13, 4706, 4613, 353, 1583, 29889, 7924, 29889, 649, 29898, 2271, 29892, 4390, 29922, 262, 14917, 29897, 13, 4706, 565, 451, 4613, 29889, 554, 29901, 13, 9651, 1596, 877, 2392, 29901, 5020, 26747, 297, 14917, 5229, 29901, 525, 718, 13, 462, 29871, 285, 29915, 29912, 13713, 29889, 4882, 29918, 401, 29913, 426, 13713, 29889, 23147, 29913, 1495, 13, 9651, 1596, 29898, 13713, 29889, 726, 29897, 13, 2 ]
equity/__init__.py
mitpokerbots/equity
1
106799
<reponame>mitpokerbots/equity<gh_stars>1-10 import os from flask import Flask, request, render_template from flask_sslify import SSLify from pbots_calc import calc app = Flask(__name__) config_object_str = 'equity.config.ProdConfig' if os.environ.get('PRODUCTION', False) else 'equity.config.DevConfig' app.config.from_object(config_object_str) def get_cards(s, all=False): if s.strip() == '' and all: return 'xx' return s.strip() @app.route('/', methods=['GET', 'POST']) def index(): if request.method == 'GET': return render_template('index.html') else: board = get_cards(request.form['board']) hole = get_cards(request.form['hole'], all=True) opponent = get_cards(request.form['opponent'], all=True) discard = get_cards(request.form['discard']) result = calc(hole + ":" + opponent, board, discard, 100000) if result is None: return render_template('index.html', result='fail', hole=hole, opponent=opponent, board=board, discard=discard) return render_template('index.html', result='success', evs=result.ev, hole=hole, opponent=opponent, board=board, discard=discard)
[ 1, 529, 276, 1112, 420, 29958, 2415, 29886, 17933, 29890, 1862, 29914, 1686, 537, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 2897, 13, 3166, 29784, 1053, 2379, 1278, 29892, 2009, 29892, 4050, 29918, 6886, 13, 3166, 29784, 29918, 16265, 1598, 1053, 17122, 1598, 13, 13, 3166, 282, 29890, 1862, 29918, 28667, 1053, 22235, 13, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 2917, 29918, 3318, 29918, 710, 353, 525, 1686, 537, 29889, 2917, 29889, 1184, 29881, 3991, 29915, 565, 2897, 29889, 21813, 29889, 657, 877, 8618, 14849, 9838, 742, 7700, 29897, 1683, 525, 1686, 537, 29889, 2917, 29889, 16618, 3991, 29915, 13, 932, 29889, 2917, 29889, 3166, 29918, 3318, 29898, 2917, 29918, 3318, 29918, 710, 29897, 13, 13, 1753, 679, 29918, 28160, 29898, 29879, 29892, 599, 29922, 8824, 1125, 13, 1678, 565, 269, 29889, 17010, 580, 1275, 6629, 322, 599, 29901, 13, 4706, 736, 525, 4419, 29915, 13, 1678, 736, 269, 29889, 17010, 580, 13, 13, 13, 29992, 932, 29889, 13134, 11219, 742, 3519, 29922, 1839, 7194, 742, 525, 5438, 11287, 13, 1753, 2380, 7295, 13, 1678, 565, 2009, 29889, 5696, 1275, 525, 7194, 2396, 13, 4706, 736, 4050, 29918, 6886, 877, 2248, 29889, 1420, 1495, 13, 1678, 1683, 29901, 13, 4706, 7613, 353, 679, 29918, 28160, 29898, 3827, 29889, 689, 1839, 3377, 11287, 13, 4706, 16188, 353, 679, 29918, 28160, 29898, 3827, 29889, 689, 1839, 29716, 7464, 599, 29922, 5574, 29897, 13, 4706, 23995, 296, 353, 679, 29918, 28160, 29898, 3827, 29889, 689, 1839, 9354, 265, 296, 7464, 599, 29922, 5574, 29897, 13, 4706, 2313, 538, 353, 679, 29918, 28160, 29898, 3827, 29889, 689, 1839, 2218, 7543, 11287, 13, 13, 4706, 1121, 353, 22235, 29898, 29716, 718, 376, 6160, 718, 23995, 296, 29892, 7613, 29892, 2313, 538, 29892, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29897, 13, 13, 4706, 565, 1121, 338, 6213, 29901, 13, 9651, 736, 4050, 29918, 6886, 877, 2248, 29889, 1420, 742, 1121, 2433, 14057, 742, 16188, 29922, 29716, 29892, 23995, 296, 29922, 9354, 265, 296, 29892, 7613, 29922, 3377, 29892, 2313, 538, 29922, 2218, 7543, 29897, 13, 13, 4706, 736, 4050, 29918, 6886, 877, 2248, 29889, 1420, 742, 1121, 2433, 8698, 742, 3415, 29879, 29922, 2914, 29889, 5750, 29892, 16188, 29922, 29716, 29892, 23995, 296, 29922, 9354, 265, 296, 29892, 7613, 29922, 3377, 29892, 2313, 538, 29922, 2218, 7543, 29897, 13, 2 ]
mtsv/parsing.py
ktaed/MTSv
0
156360
import argparse import configparser import os import sys import ast import logging import numpy as np from contextlib import suppress from glob import glob from collections import namedtuple from mtsv.utils import(error, warn, specfile_read) from mtsv.argutils import (read, export) from mtsv import (DEFAULT_LOG_FNAME, DEFAULT_CFG_FNAME) logger = logging.getLogger(__name__) SECTIONS = [ "READPREP", "BINNING", "SUMMARY", "ANALYZE", "EXTRACT", "WGFAST", "CONCOCT"] split = str.split strip = str.strip rsplit = str.rsplit bsplit = bytes.split bstrip = bytes.strip brsplit = bytes.rsplit def make_sub_parser(subparser, cmd, cmd_class): global_defaults = get_global_config(cmd_class.config_section) help_str = global_defaults["_meta_{}".format(cmd)]["help"] p = subparser.add_parser( cmd, help=help_str, description="Additional Snakemake commands may also be provided") for arg, desc in global_defaults.items(): if "_meta" in arg: continue if 'type' in desc: desc['type'] = TYPES[desc['type']] if 'choices' in desc and 'help' in desc: desc['help'] += " Choices are {}".format(desc['choices']) if 'default' in desc and 'help' in desc: desc['help'] += " (default: {})".format(desc['default']) if 'required' in desc and 'help' in desc: desc['help'] += " [REQUIRED]" if 'action' in desc and desc['action'] in ACTIONS: desc['action'] = getattr( sys.modules[__name__], desc['action']) arg = "--{}".format(arg) if 'positional' in desc: del desc['positional'] p.add_argument( arg, **desc ) add_default_arguments(p) p.set_defaults(cmd_class=cmd_class) def create_config_file(config_file): cfg_file_str = "" for cmd in SECTIONS: spec = specfile_read(cmd) opts = read.from_yaml(spec) meta = opts['_meta_{}'.format(cmd.lower())] del opts['_meta_{}'.format(cmd.lower())] opts['_meta'] = meta cfg_file_str += export.to_config( cmd, opts) + "\n" config_file.write(cfg_file_str) config_file.close() def get_global_config(include_cmds): args_dict = {} for cmd in include_cmds: spec = specfile_read(cmd.lower()) args_from_yaml = read.from_yaml(spec) for key, value in args_from_yaml.items(): if key in args_dict: # for full pipeline, ensure that # the outfile version replaces # any input files so argparse does # not assume they should be present if 'out' in args_dict[key]['type']: continue args_dict[key] = value return args_dict def format_cml_params(include_cmd, args, ignore, include): command_list = [] for arg, desc in get_global_config([include_cmd]).items(): if '_meta' in arg: continue if 'positional' in desc: continue if arg in ignore: continue if arg in args and args[arg] is not None: try: val = args[arg].name except AttributeError: val = str(args[arg]) command_list += ["--{}".format(arg), val] for incl in include: command_list.append(incl) return " ".join(command_list) def add_default_arguments(parser): parser.add_argument( '--wd', '-wd', "--working_dir", type=str, default=os.getcwd(), help="Specify working directory to place output. " "(default: {})".format(os.getcwd()) ) parser.add_argument( '-c', "--config", type=outfile_type, help="Specify path to config file path, " "relative to working directory, " "not required if using default config. " ) parser.add_argument( '-lf', "--log_file", type=outfile_type, default=os.path.join("./Logs", DEFAULT_LOG_FNAME), help="Set log file path, " "absolute or relative to working dir. " "(default: ./Logs/{})".format(DEFAULT_LOG_FNAME) ) parser.add_argument( '-t', "--threads", type=positive_int, default=4, help="Number of worker threads to spawn. (default: 4)" ) def get_missing_sections(config_file): config = configparser.ConfigParser() config.read(config_file) return [s for s in SECTIONS if s not in config.sections()] def parse_config_sections(config_file, sections): config = configparser.ConfigParser() config.read(config_file) config_for_sections = {} try: for section in sections: with suppress(configparser.NoSectionError): for cmd, val in config.items(section): # Only add if there is a value # avoids adding optional params if val: config_for_sections[cmd] = val except configparser.ParsingError: error( "Cannot parse config file: {}".format( config_file.name)) return config_for_sections def path_type(input_path): '''Path_type is for paths that should already exist. If path exists, returns absolute path, otherwise raise ArgumentTypeError''' if not os.path.isdir(input_path): raise argparse.ArgumentTypeError("Not a valid path") return os.path.abspath(input_path) def flag_type(input_val): if input_val != "T" and input_val != "F": raise argparse.ArgumentTypeError( "Invalid flag, must be either T or F") if input_val == "T": return True if input_val == "F": return False def project_dir_type(input_path): '''Creates a project directory if one does not exist and Throws PermissionError if there are no permissions to create directory. Returns absolute path to directory.''' input_path = os.path.abspath(input_path) if not os.path.isdir(input_path): try: os.mkdir(input_path) except PermissionError: error( "No permission to make directory: {}".format(input_path)) if os.getcwd() != input_path: os.chdir(input_path) return input_path def path_list_type(input_paths): '''Returns list of absolute paths using glob''' if not isinstance(input_paths, (list,)): input_paths = [input_paths] glob_list = [] for path in input_paths: glob_list += glob(path) if not glob_list: raise argparse.ArgumentTypeError("Not a valid path") return list({os.path.abspath(path) for path in glob_list}) def arg_list_type(args): """ Returns a list of arguments """ new_args = [] for arg in args: arg = [a.replace("\'","").replace("\"", "") for a in arg.split()] new_args += arg return new_args class Cmds(argparse.Action): def __init__(self, option_strings, dest, nargs='+', **kwargs): super(Cmds, self).__init__(option_strings, dest, nargs, **kwargs) def __call__(self, parser, namespace, values, option_string=None): values = arg_list_type(values) setattr(namespace, self.dest, values) class Glob(argparse.Action): def __init__(self, option_strings, dest, nargs='+', **kwargs): super(Glob, self).__init__(option_strings, dest, nargs, **kwargs) def __call__(self, parser, namespace, values, option_string=None): values = path_list_type(values) setattr(namespace, self.dest, values) def outpath_type(input_path): '''Outpath_type creates a directory if one does not exist. Throws PermissionError if there are no permissions to create directory. If path already exists and it is not empty, a warning is issued. Returns absolute path to directory.''' input_path = os.path.abspath(input_path) try: os.mkdir(input_path) logger.info("Creating directory: {}".format(input_path)) except PermissionError: error( "No permission to make directory: {}".format(input_path)) except OSError: logger.info( "Directory already exists: {}. ".format(input_path)) if os.listdir(input_path): warn("Files in {} may be overwritten!".format(input_path)) return input_path def file_type(input_file): '''File type is for input files that should already exist. Check if input_file is a file. If yes, return absolute path to file else throw ArgumentTypeError exception''' input_file = os.path.abspath(input_file) if not os.path.isfile(input_file): raise argparse.ArgumentTypeError( "Not a valid file path: {}".format(input_file)) return input_file def outfile_type(input_file): '''Checks that path to file exists, if it doesn't, the path is created, returns abs path to file. PermissionError exception when there is no permission to create directory''' input_file = os.path.abspath(input_file) path = os.path.dirname(input_file) if not os.path.isdir(path): try: os.mkdir(path) except PermissionError: error( "No permission to create file: {}".format(input_file) ) return input_file def write_handle_type(input_file): '''Returns a handle to an outfile''' return open(outfile_type(input_file), 'w') def read_handle_type(input_file): '''Returns a handle to an infile''' return open(file_type(input_file), 'r') def nonneg_int(input_val): ''' Make a non negative int type for argparse''' try: input_val = int(input_val) if input_val < 0: raise ValueError except ValueError: raise argparse.ArgumentTypeError("Negative integer not valid") return input_val def proportion(input_val): """make proportion type for argparse""" try: input_val = float(input_val) if input_val > 1 or input_val < 0: raise ValueError except ValueError: raise argparse.ArgumentTypeError("Not a proportion") return input_val def positive_int(input_val): '''Make a positive int type for argparse''' try: input_val = int(input_val) if input_val <= 0: raise ValueError except ValueError: raise argparse.ArgumentTypeError("Not a positive integer") return input_val Record = namedtuple('Record', ['read_id', 'counts', 'taxa', 'read_name']) def parse_output_row(row): read_name, taxa = split(row, ":") taxa = np.array([tax for tax in split(taxa, ",")], dtype=int) counts = np.array([c for c in split(read_name, "_")[1:]], dtype=int) read_id = split(read_name, "_")[0] return Record( read_id=read_id, counts=counts, taxa=taxa, read_name=read_name) def parse_output_row_bytes(row): read_name, taxa = bsplit(row, b":") taxa = np.array([tax for tax in bsplit(taxa, b",")], dtype=int) counts = np.array([c for c in bsplit(read_name, b"_")[1:]], dtype=int) read_id = bsplit(read_name, b"_")[0] return Record( read_id=read_id, counts=counts, taxa=taxa, read_name=read_name) def parse_query_id(query_id): return np.array([int(q) for q in query_id.split("_")[1:]]) def make_table(columns, headers): if len(headers) != len(columns): raise ValueError( "Header does not match number of columns") max_sizes = [] table = "" for column, header in zip(columns, headers): max_sizes.append( max([len(str(c)) for c in column] + [len(str(header))]) ) div = " ".join(["=" * size for size in max_sizes]) + "\n" table += div fmt = [] for i, sz in zip(range(len(columns)), max_sizes): fmt.append("{{{0}:<{1}}}".format(i, sz)) fmt = " ".join(fmt) + "\n" # add header table += fmt.format(*headers) table += div for row in [*zip(*columns)]: table += fmt.format(*row) table += div return table TYPES = { 'int': int, 'str': str, 'float': float, 'bool': bool, 'list': ast.literal_eval, 'file_type': file_type, 'outfile_type': outfile_type, 'path_type': path_type, 'outpath_type': outpath_type, 'positive_int': positive_int, 'nonneg_int': nonneg_int, 'proportion': proportion, 'project_dir_type': project_dir_type, 'write_handle_type': write_handle_type, 'read_handle_type': read_handle_type, 'path_list_type': path_list_type, 'flag_type': flag_type, 'arg_list_type': arg_list_type } ACTIONS = {'Glob': Glob, 'Cmds': Cmds}
[ 1, 1053, 1852, 5510, 13, 5215, 2295, 16680, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 8717, 13, 5215, 12183, 13, 5215, 12655, 408, 7442, 13, 3166, 3030, 1982, 1053, 21301, 13, 3166, 13149, 1053, 13149, 13, 3166, 16250, 1053, 4257, 23583, 13, 13, 13, 3166, 286, 1372, 29894, 29889, 13239, 1053, 29898, 2704, 29892, 29383, 29892, 1580, 1445, 29918, 949, 29897, 13, 3166, 286, 1372, 29894, 29889, 1191, 13239, 1053, 313, 949, 29892, 5609, 29897, 13, 3166, 286, 1372, 29894, 1053, 313, 23397, 29918, 14480, 29918, 29943, 5813, 29892, 22236, 29918, 9207, 29954, 29918, 29943, 5813, 29897, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 1660, 9838, 29903, 353, 518, 13, 1678, 376, 16310, 15094, 29925, 613, 376, 29933, 1177, 29940, 4214, 613, 376, 25021, 1529, 13207, 613, 13, 1678, 376, 2190, 1964, 29979, 10721, 613, 376, 12194, 4717, 1783, 613, 376, 29956, 29954, 4519, 1254, 613, 376, 6007, 3217, 1783, 3108, 13, 13, 5451, 353, 851, 29889, 5451, 13, 17010, 353, 851, 29889, 17010, 13, 2288, 2830, 353, 851, 29889, 2288, 2830, 13, 13, 29890, 5451, 353, 6262, 29889, 5451, 13, 7891, 6472, 353, 6262, 29889, 17010, 13, 1182, 5451, 353, 6262, 29889, 2288, 2830, 13, 13, 13, 1753, 1207, 29918, 1491, 29918, 16680, 29898, 1491, 16680, 29892, 9920, 29892, 9920, 29918, 1990, 1125, 13, 1678, 5534, 29918, 4381, 29879, 353, 679, 29918, 10945, 29918, 2917, 29898, 9006, 29918, 1990, 29889, 2917, 29918, 2042, 29897, 13, 1678, 1371, 29918, 710, 353, 5534, 29918, 4381, 29879, 3366, 29918, 7299, 648, 29913, 1642, 4830, 29898, 9006, 4638, 3366, 8477, 3108, 13, 1678, 282, 353, 1014, 16680, 29889, 1202, 29918, 16680, 29898, 13, 4706, 9920, 29892, 1371, 29922, 8477, 29918, 710, 29892, 13, 4706, 6139, 543, 2528, 3245, 317, 8546, 331, 1296, 8260, 1122, 884, 367, 4944, 1159, 13, 1678, 363, 1852, 29892, 5153, 297, 5534, 29918, 4381, 29879, 29889, 7076, 7295, 13, 4706, 565, 11119, 7299, 29908, 297, 1852, 29901, 13, 9651, 6773, 13, 4706, 565, 525, 1853, 29915, 297, 5153, 29901, 13, 9651, 5153, 1839, 1853, 2033, 353, 323, 29979, 29925, 2890, 29961, 14273, 1839, 1853, 2033, 29962, 13, 4706, 565, 525, 1859, 1575, 29915, 297, 5153, 322, 525, 8477, 29915, 297, 5153, 29901, 13, 9651, 5153, 1839, 8477, 2033, 4619, 376, 14542, 1575, 526, 6571, 1642, 4830, 29898, 14273, 1839, 1859, 1575, 11287, 13, 4706, 565, 525, 4381, 29915, 297, 5153, 322, 525, 8477, 29915, 297, 5153, 29901, 13, 9651, 5153, 1839, 8477, 2033, 4619, 376, 313, 4381, 29901, 426, 1800, 1642, 4830, 29898, 14273, 1839, 4381, 11287, 13, 4706, 565, 525, 12403, 29915, 297, 5153, 322, 525, 8477, 29915, 297, 5153, 29901, 13, 9651, 5153, 1839, 8477, 2033, 4619, 376, 518, 1525, 29984, 3120, 19386, 18017, 13, 4706, 565, 525, 2467, 29915, 297, 5153, 322, 5153, 1839, 2467, 2033, 297, 319, 9838, 29903, 29901, 13, 9651, 5153, 1839, 2467, 2033, 353, 679, 5552, 29898, 13, 18884, 10876, 29889, 7576, 29961, 1649, 978, 1649, 1402, 5153, 1839, 2467, 11287, 13, 4706, 1852, 353, 376, 489, 8875, 1642, 4830, 29898, 1191, 29897, 13, 4706, 565, 525, 1066, 3245, 29915, 297, 5153, 29901, 13, 9651, 628, 5153, 1839, 1066, 3245, 2033, 13, 4706, 282, 29889, 1202, 29918, 23516, 29898, 13, 9651, 1852, 29892, 3579, 14273, 13, 4706, 1723, 13, 1678, 788, 29918, 4381, 29918, 25699, 29898, 29886, 29897, 13, 1678, 282, 29889, 842, 29918, 4381, 29879, 29898, 9006, 29918, 1990, 29922, 9006, 29918, 1990, 29897, 13, 13, 1753, 1653, 29918, 2917, 29918, 1445, 29898, 2917, 29918, 1445, 1125, 13, 1678, 274, 16434, 29918, 1445, 29918, 710, 353, 5124, 13, 1678, 363, 9920, 297, 3725, 9838, 29903, 29901, 13, 4706, 1580, 353, 1580, 1445, 29918, 949, 29898, 9006, 29897, 13, 4706, 29111, 353, 1303, 29889, 3166, 29918, 25162, 29898, 6550, 29897, 13, 4706, 12700, 353, 29111, 1839, 29918, 7299, 648, 29913, 4286, 4830, 29898, 9006, 29889, 13609, 3101, 29962, 13, 4706, 628, 29111, 1839, 29918, 7299, 648, 29913, 4286, 4830, 29898, 9006, 29889, 13609, 3101, 29962, 13, 4706, 29111, 1839, 29918, 7299, 2033, 353, 12700, 13, 4706, 274, 16434, 29918, 1445, 29918, 710, 4619, 5609, 29889, 517, 29918, 2917, 29898, 13, 9651, 9920, 29892, 29111, 29897, 718, 6634, 29876, 29908, 13, 1678, 2295, 29918, 1445, 29889, 3539, 29898, 16859, 29918, 1445, 29918, 710, 29897, 13, 1678, 2295, 29918, 1445, 29889, 5358, 580, 13, 13, 1753, 679, 29918, 10945, 29918, 2917, 29898, 2856, 29918, 9006, 29879, 1125, 13, 1678, 6389, 29918, 8977, 353, 6571, 13, 1678, 363, 9920, 297, 3160, 29918, 9006, 29879, 29901, 13, 4706, 1580, 353, 1580, 1445, 29918, 949, 29898, 9006, 29889, 13609, 3101, 13, 4706, 6389, 29918, 3166, 29918, 25162, 353, 1303, 29889, 3166, 29918, 25162, 29898, 6550, 29897, 13, 4706, 363, 1820, 29892, 995, 297, 6389, 29918, 3166, 29918, 25162, 29889, 7076, 7295, 13, 9651, 565, 1820, 297, 6389, 29918, 8977, 29901, 13, 18884, 396, 363, 2989, 16439, 29892, 9801, 393, 13, 18884, 396, 278, 714, 1445, 1873, 1634, 6048, 13, 18884, 396, 738, 1881, 2066, 577, 1852, 5510, 947, 13, 18884, 396, 451, 5251, 896, 881, 367, 2198, 13, 18884, 565, 525, 449, 29915, 297, 6389, 29918, 8977, 29961, 1989, 22322, 1853, 2033, 29901, 13, 462, 1678, 6773, 13, 9651, 6389, 29918, 8977, 29961, 1989, 29962, 353, 995, 13, 1678, 736, 6389, 29918, 8977, 13, 13, 13, 1753, 3402, 29918, 29883, 828, 29918, 7529, 29898, 2856, 29918, 9006, 29892, 6389, 29892, 11455, 29892, 3160, 1125, 13, 1678, 1899, 29918, 1761, 353, 5159, 13, 1678, 363, 1852, 29892, 5153, 297, 679, 29918, 10945, 29918, 2917, 4197, 2856, 29918, 9006, 14664, 7076, 7295, 13, 4706, 565, 22868, 7299, 29915, 297, 1852, 29901, 13, 9651, 6773, 13, 4706, 565, 525, 1066, 3245, 29915, 297, 5153, 29901, 13, 9651, 6773, 13, 4706, 565, 1852, 297, 11455, 29901, 13, 9651, 6773, 13, 4706, 565, 1852, 297, 6389, 322, 6389, 29961, 1191, 29962, 338, 451, 6213, 29901, 13, 9651, 1018, 29901, 13, 18884, 659, 353, 6389, 29961, 1191, 1822, 978, 13, 9651, 5174, 23833, 2392, 29901, 13, 18884, 659, 353, 851, 29898, 5085, 29961, 1191, 2314, 29871, 13, 9651, 1899, 29918, 1761, 4619, 6796, 489, 8875, 1642, 4830, 29898, 1191, 511, 659, 29962, 13, 1678, 363, 1343, 297, 3160, 29901, 13, 4706, 1899, 29918, 1761, 29889, 4397, 29898, 262, 695, 29897, 13, 1678, 736, 376, 11393, 7122, 29898, 6519, 29918, 1761, 29897, 13, 13, 13, 1753, 788, 29918, 4381, 29918, 25699, 29898, 16680, 1125, 13, 1678, 13812, 29889, 1202, 29918, 23516, 29898, 13, 4706, 525, 489, 9970, 742, 17411, 9970, 742, 376, 489, 22899, 29918, 3972, 613, 1134, 29922, 710, 29892, 13, 4706, 2322, 29922, 359, 29889, 657, 29883, 9970, 3285, 13, 4706, 1371, 543, 10299, 1598, 1985, 3884, 304, 2058, 1962, 29889, 376, 13, 632, 18227, 4381, 29901, 426, 1800, 1642, 4830, 29898, 359, 29889, 657, 29883, 9970, 3101, 13, 1678, 1723, 13, 1678, 13812, 29889, 1202, 29918, 23516, 29898, 13, 4706, 17411, 29883, 742, 376, 489, 2917, 613, 1134, 29922, 449, 1445, 29918, 1853, 29892, 13, 4706, 1371, 543, 10299, 1598, 2224, 304, 2295, 934, 2224, 29892, 376, 13, 632, 376, 22925, 304, 1985, 3884, 29892, 376, 13, 632, 376, 1333, 3734, 565, 773, 2322, 2295, 29889, 376, 13, 1678, 1723, 13, 1678, 13812, 29889, 1202, 29918, 23516, 29898, 13, 4706, 17411, 29880, 29888, 742, 376, 489, 1188, 29918, 1445, 613, 1134, 29922, 449, 1445, 29918, 1853, 29892, 13, 4706, 2322, 29922, 359, 29889, 2084, 29889, 7122, 703, 6904, 3403, 29879, 613, 22236, 29918, 14480, 29918, 29943, 5813, 511, 13, 4706, 1371, 543, 2697, 1480, 934, 2224, 29892, 376, 13, 632, 376, 23552, 470, 6198, 304, 1985, 4516, 29889, 376, 13, 632, 18227, 4381, 29901, 11431, 3403, 29879, 19248, 1800, 1642, 4830, 29898, 23397, 29918, 14480, 29918, 29943, 5813, 29897, 13, 1678, 1723, 13, 1678, 13812, 29889, 1202, 29918, 23516, 29898, 13, 4706, 17411, 29873, 742, 376, 489, 28993, 613, 1134, 29922, 1066, 3321, 29918, 524, 29892, 13, 4706, 2322, 29922, 29946, 29892, 13, 4706, 1371, 543, 4557, 310, 15645, 9717, 304, 29178, 29889, 313, 4381, 29901, 29871, 29946, 5513, 13, 1678, 1723, 13, 13, 1753, 679, 29918, 27259, 29918, 27117, 29898, 2917, 29918, 1445, 1125, 13, 1678, 2295, 353, 2295, 16680, 29889, 3991, 11726, 580, 13, 1678, 2295, 29889, 949, 29898, 2917, 29918, 1445, 29897, 13, 1678, 736, 518, 29879, 363, 269, 297, 3725, 9838, 29903, 565, 269, 451, 297, 2295, 29889, 27117, 580, 29962, 13, 13, 1753, 6088, 29918, 2917, 29918, 27117, 29898, 2917, 29918, 1445, 29892, 13926, 1125, 13, 1678, 2295, 353, 2295, 16680, 29889, 3991, 11726, 580, 13, 1678, 2295, 29889, 949, 29898, 2917, 29918, 1445, 29897, 13, 1678, 2295, 29918, 1454, 29918, 27117, 353, 6571, 13, 1678, 1018, 29901, 13, 4706, 363, 4004, 297, 13926, 29901, 13, 9651, 411, 21301, 29898, 2917, 16680, 29889, 3782, 13438, 2392, 1125, 13, 18884, 363, 9920, 29892, 659, 297, 2295, 29889, 7076, 29898, 2042, 1125, 13, 462, 1678, 396, 9333, 788, 565, 727, 338, 263, 995, 13, 462, 1678, 396, 4772, 29879, 4417, 13136, 8636, 13, 462, 1678, 565, 659, 29901, 13, 462, 4706, 2295, 29918, 1454, 29918, 27117, 29961, 9006, 29962, 353, 659, 462, 268, 13, 1678, 5174, 2295, 16680, 29889, 29925, 1503, 292, 2392, 29901, 13, 4706, 1059, 29898, 13, 9651, 376, 29089, 6088, 2295, 934, 29901, 6571, 1642, 4830, 29898, 13, 18884, 2295, 29918, 1445, 29889, 978, 876, 13, 1678, 736, 2295, 29918, 1454, 29918, 27117, 13, 13, 1753, 2224, 29918, 1853, 29898, 2080, 29918, 2084, 1125, 13, 1678, 14550, 2605, 29918, 1853, 338, 363, 10898, 393, 881, 2307, 1863, 29889, 13, 1678, 960, 2224, 4864, 29892, 3639, 8380, 2224, 29892, 6467, 12020, 13, 1678, 23125, 1542, 2392, 12008, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 275, 3972, 29898, 2080, 29918, 2084, 1125, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 703, 3664, 263, 2854, 2224, 1159, 13, 1678, 736, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 2080, 29918, 2084, 29897, 13, 13, 1753, 7353, 29918, 1853, 29898, 2080, 29918, 791, 1125, 13, 1678, 565, 1881, 29918, 791, 2804, 376, 29911, 29908, 322, 1881, 29918, 791, 2804, 376, 29943, 1115, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 29898, 13, 9651, 376, 13919, 7353, 29892, 1818, 367, 2845, 323, 470, 383, 1159, 13, 1678, 565, 1881, 29918, 791, 1275, 376, 29911, 1115, 13, 4706, 736, 5852, 13, 1678, 565, 1881, 29918, 791, 1275, 376, 29943, 1115, 13, 4706, 736, 7700, 13, 13, 1753, 2060, 29918, 3972, 29918, 1853, 29898, 2080, 29918, 2084, 1125, 13, 1678, 14550, 9832, 1078, 263, 2060, 3884, 565, 697, 947, 451, 1863, 322, 13, 1678, 498, 5727, 20894, 2333, 2392, 565, 727, 526, 694, 11239, 304, 1653, 13, 1678, 3884, 29889, 16969, 8380, 2224, 304, 3884, 29889, 12008, 13, 1678, 1881, 29918, 2084, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 2080, 29918, 2084, 29897, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 275, 3972, 29898, 2080, 29918, 2084, 1125, 13, 4706, 1018, 29901, 13, 9651, 2897, 29889, 11256, 3972, 29898, 2080, 29918, 2084, 29897, 13, 4706, 5174, 20894, 2333, 2392, 29901, 13, 9651, 1059, 29898, 13, 18884, 376, 3782, 10751, 304, 1207, 3884, 29901, 6571, 1642, 4830, 29898, 2080, 29918, 2084, 876, 13, 1678, 565, 2897, 29889, 657, 29883, 9970, 580, 2804, 1881, 29918, 2084, 29901, 13, 4706, 2897, 29889, 305, 3972, 29898, 2080, 29918, 2084, 29897, 13, 1678, 736, 1881, 29918, 2084, 13, 13, 13, 13, 1753, 2224, 29918, 1761, 29918, 1853, 29898, 2080, 29918, 24772, 1125, 13, 1678, 14550, 11609, 29879, 1051, 310, 8380, 10898, 773, 13149, 12008, 13, 1678, 565, 451, 338, 8758, 29898, 2080, 29918, 24772, 29892, 313, 1761, 29892, 22164, 13, 4706, 1881, 29918, 24772, 353, 518, 2080, 29918, 24772, 29962, 13, 1678, 13149, 29918, 1761, 353, 5159, 13, 1678, 363, 2224, 297, 1881, 29918, 24772, 29901, 13, 4706, 13149, 29918, 1761, 4619, 13149, 29898, 2084, 29897, 13, 1678, 565, 451, 13149, 29918, 1761, 29901, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 703, 3664, 263, 2854, 2224, 1159, 13, 1678, 736, 1051, 3319, 359, 29889, 2084, 29889, 370, 1028, 493, 29898, 2084, 29897, 363, 2224, 297, 13149, 29918, 1761, 1800, 13, 13, 1753, 1852, 29918, 1761, 29918, 1853, 29898, 5085, 1125, 13, 1678, 9995, 16969, 263, 1051, 310, 6273, 9995, 13, 1678, 716, 29918, 5085, 353, 5159, 13, 1678, 363, 1852, 297, 6389, 29901, 13, 4706, 1852, 353, 518, 29874, 29889, 6506, 14182, 29915, 3284, 2564, 6506, 703, 5931, 613, 20569, 363, 263, 297, 1852, 29889, 5451, 580, 29962, 13, 4706, 716, 29918, 5085, 4619, 1852, 13, 1678, 736, 716, 29918, 5085, 13, 13, 13, 13, 1990, 315, 3487, 29879, 29898, 1191, 5510, 29889, 4276, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2984, 29918, 19651, 29892, 2731, 29892, 302, 5085, 2433, 29974, 742, 3579, 19290, 1125, 13, 4706, 2428, 29898, 23651, 29879, 29892, 1583, 467, 1649, 2344, 12035, 3385, 29918, 19651, 29892, 2731, 29892, 302, 5085, 29892, 3579, 19290, 29897, 13, 1678, 822, 4770, 4804, 12035, 1311, 29892, 13812, 29892, 7397, 29892, 1819, 29892, 2984, 29918, 1807, 29922, 8516, 1125, 13, 4706, 1819, 353, 1852, 29918, 1761, 29918, 1853, 29898, 5975, 29897, 13, 4706, 731, 5552, 29898, 22377, 29892, 1583, 29889, 7854, 29892, 1819, 29897, 13, 268, 13, 13, 13, 13, 1990, 402, 2127, 29898, 1191, 5510, 29889, 4276, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2984, 29918, 19651, 29892, 2731, 29892, 302, 5085, 2433, 29974, 742, 3579, 19290, 1125, 13, 4706, 2428, 29898, 29954, 2127, 29892, 1583, 467, 1649, 2344, 12035, 3385, 29918, 19651, 29892, 2731, 29892, 302, 5085, 29892, 3579, 19290, 29897, 13, 1678, 822, 4770, 4804, 12035, 1311, 29892, 13812, 29892, 7397, 29892, 1819, 29892, 2984, 29918, 1807, 29922, 8516, 1125, 13, 4706, 1819, 353, 2224, 29918, 1761, 29918, 1853, 29898, 5975, 29897, 13, 4706, 731, 5552, 29898, 22377, 29892, 1583, 29889, 7854, 29892, 1819, 29897, 13, 13, 13, 1753, 714, 2084, 29918, 1853, 29898, 2080, 29918, 2084, 1125, 13, 1678, 14550, 3744, 2084, 29918, 1853, 10017, 263, 3884, 565, 697, 947, 451, 1863, 29889, 13, 1678, 498, 5727, 20894, 2333, 2392, 565, 727, 526, 694, 11239, 304, 1653, 13, 1678, 3884, 29889, 960, 2224, 2307, 4864, 322, 372, 338, 451, 4069, 29892, 263, 9177, 13, 1678, 338, 16610, 29889, 16969, 8380, 2224, 304, 3884, 29889, 12008, 13, 1678, 1881, 29918, 2084, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 2080, 29918, 2084, 29897, 13, 1678, 1018, 29901, 13, 4706, 2897, 29889, 11256, 3972, 29898, 2080, 29918, 2084, 29897, 13, 4706, 17927, 29889, 3888, 703, 9832, 1218, 3884, 29901, 6571, 1642, 4830, 29898, 2080, 29918, 2084, 876, 13, 1678, 5174, 20894, 2333, 2392, 29901, 13, 4706, 1059, 29898, 13, 9651, 376, 3782, 10751, 304, 1207, 3884, 29901, 6571, 1642, 4830, 29898, 2080, 29918, 2084, 876, 13, 1678, 5174, 438, 29173, 29901, 13, 4706, 17927, 29889, 3888, 29898, 13, 9651, 376, 9882, 2307, 4864, 29901, 426, 1836, 11393, 4830, 29898, 2080, 29918, 2084, 876, 13, 4706, 565, 2897, 29889, 1761, 3972, 29898, 2080, 29918, 2084, 1125, 13, 9651, 29383, 703, 10547, 297, 6571, 1122, 367, 975, 17625, 29991, 1642, 4830, 29898, 2080, 29918, 2084, 876, 13, 1678, 736, 1881, 29918, 2084, 13, 13, 13, 1753, 934, 29918, 1853, 29898, 2080, 29918, 1445, 1125, 13, 1678, 14550, 2283, 1134, 338, 363, 1881, 2066, 393, 13, 1678, 881, 2307, 1863, 29889, 13, 1678, 5399, 565, 1881, 29918, 1445, 338, 263, 934, 29889, 13, 1678, 960, 4874, 29892, 736, 8380, 2224, 304, 13, 1678, 934, 1683, 3183, 23125, 1542, 2392, 13, 1678, 3682, 12008, 13, 13, 1678, 1881, 29918, 1445, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 2080, 29918, 1445, 29897, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 275, 1445, 29898, 2080, 29918, 1445, 1125, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 29898, 13, 9651, 376, 3664, 263, 2854, 934, 2224, 29901, 6571, 1642, 4830, 29898, 2080, 29918, 1445, 876, 13, 1678, 736, 1881, 29918, 1445, 13, 13, 13, 1753, 714, 1445, 29918, 1853, 29898, 2080, 29918, 1445, 1125, 13, 1678, 14550, 5596, 29879, 393, 2224, 304, 934, 4864, 29892, 13, 1678, 565, 372, 1838, 29915, 29873, 29892, 278, 2224, 338, 2825, 29892, 13, 1678, 3639, 6425, 2224, 304, 934, 29889, 20894, 2333, 2392, 13, 1678, 3682, 746, 727, 338, 694, 10751, 304, 29871, 13, 1678, 1653, 3884, 12008, 13, 1678, 1881, 29918, 1445, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 2080, 29918, 1445, 29897, 13, 1678, 2224, 353, 2897, 29889, 2084, 29889, 25721, 29898, 2080, 29918, 1445, 29897, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 275, 3972, 29898, 2084, 1125, 13, 4706, 1018, 29901, 13, 9651, 2897, 29889, 11256, 3972, 29898, 2084, 29897, 13, 4706, 5174, 20894, 2333, 2392, 29901, 13, 9651, 1059, 29898, 13, 18884, 376, 3782, 10751, 304, 1653, 934, 29901, 6571, 1642, 4830, 29898, 2080, 29918, 1445, 29897, 13, 9651, 1723, 13, 1678, 736, 1881, 29918, 1445, 13, 13, 1753, 2436, 29918, 8411, 29918, 1853, 29898, 2080, 29918, 1445, 1125, 13, 1678, 14550, 11609, 29879, 263, 4386, 304, 385, 714, 1445, 12008, 13, 1678, 736, 1722, 29898, 449, 1445, 29918, 1853, 29898, 2080, 29918, 1445, 511, 525, 29893, 1495, 13, 13, 13, 1753, 1303, 29918, 8411, 29918, 1853, 29898, 2080, 29918, 1445, 1125, 13, 1678, 14550, 11609, 29879, 263, 4386, 304, 385, 297, 1445, 12008, 13, 1678, 736, 1722, 29898, 1445, 29918, 1853, 29898, 2080, 29918, 1445, 511, 525, 29878, 1495, 29871, 13, 13, 13, 1753, 1661, 10052, 29918, 524, 29898, 2080, 29918, 791, 1125, 13, 1678, 14550, 8561, 263, 1661, 8178, 938, 1134, 363, 1852, 5510, 12008, 13, 1678, 1018, 29901, 13, 4706, 1881, 29918, 791, 353, 938, 29898, 2080, 29918, 791, 29897, 13, 4706, 565, 1881, 29918, 791, 529, 29871, 29900, 29901, 13, 9651, 12020, 7865, 2392, 13, 1678, 5174, 7865, 2392, 29901, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 703, 29940, 387, 1230, 6043, 451, 2854, 1159, 13, 1678, 736, 1881, 29918, 791, 13, 13, 13, 1753, 18618, 29898, 2080, 29918, 791, 1125, 13, 1678, 9995, 5675, 18618, 1134, 363, 1852, 5510, 15945, 29908, 13, 1678, 1018, 29901, 13, 4706, 1881, 29918, 791, 353, 5785, 29898, 2080, 29918, 791, 29897, 13, 4706, 565, 1881, 29918, 791, 1405, 29871, 29896, 470, 1881, 29918, 791, 529, 29871, 29900, 29901, 13, 9651, 12020, 7865, 2392, 13, 1678, 5174, 7865, 2392, 29901, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 703, 3664, 263, 18618, 1159, 13, 1678, 736, 1881, 29918, 791, 13, 13, 13, 1753, 6374, 29918, 524, 29898, 2080, 29918, 791, 1125, 13, 1678, 14550, 9984, 263, 6374, 938, 1134, 363, 1852, 5510, 12008, 13, 1678, 1018, 29901, 13, 4706, 1881, 29918, 791, 353, 938, 29898, 2080, 29918, 791, 29897, 13, 4706, 565, 1881, 29918, 791, 5277, 29871, 29900, 29901, 13, 9651, 12020, 7865, 2392, 13, 1678, 5174, 7865, 2392, 29901, 13, 4706, 12020, 1852, 5510, 29889, 15730, 1542, 2392, 703, 3664, 263, 6374, 6043, 1159, 13, 1678, 736, 1881, 29918, 791, 13, 13, 13, 9182, 353, 4257, 23583, 877, 9182, 742, 6024, 949, 29918, 333, 742, 525, 2798, 29879, 742, 525, 941, 17367, 742, 525, 949, 29918, 978, 11287, 13, 13, 1753, 6088, 29918, 4905, 29918, 798, 29898, 798, 1125, 13, 1678, 1303, 29918, 978, 29892, 8818, 29874, 353, 6219, 29898, 798, 29892, 29242, 1159, 13, 1678, 8818, 29874, 353, 7442, 29889, 2378, 4197, 20725, 363, 8818, 297, 6219, 29898, 941, 17367, 29892, 9162, 1159, 1402, 26688, 29922, 524, 29897, 13, 1678, 18139, 353, 7442, 29889, 2378, 4197, 29883, 363, 274, 297, 6219, 29898, 949, 29918, 978, 29892, 11119, 1159, 29961, 29896, 17531, 1402, 26688, 29922, 524, 29897, 13, 1678, 1303, 29918, 333, 353, 6219, 29898, 949, 29918, 978, 29892, 11119, 1159, 29961, 29900, 29962, 13, 1678, 736, 14164, 29898, 13, 4706, 1303, 29918, 333, 29922, 949, 29918, 333, 29892, 18139, 29922, 2798, 29879, 29892, 8818, 29874, 29922, 941, 17367, 29892, 1303, 29918, 978, 29922, 949, 29918, 978, 29897, 13, 13, 1753, 6088, 29918, 4905, 29918, 798, 29918, 13193, 29898, 798, 1125, 13, 1678, 1303, 29918, 978, 29892, 8818, 29874, 353, 289, 5451, 29898, 798, 29892, 289, 1115, 1159, 13, 1678, 8818, 29874, 353, 7442, 29889, 2378, 4197, 20725, 363, 8818, 297, 289, 5451, 29898, 941, 17367, 29892, 289, 613, 1159, 1402, 26688, 29922, 524, 29897, 13, 1678, 18139, 353, 7442, 29889, 2378, 4197, 29883, 363, 274, 297, 289, 5451, 29898, 949, 29918, 978, 29892, 289, 29908, 29918, 1159, 29961, 29896, 17531, 1402, 26688, 29922, 524, 29897, 13, 1678, 1303, 29918, 333, 353, 289, 5451, 29898, 949, 29918, 978, 29892, 289, 29908, 29918, 1159, 29961, 29900, 29962, 13, 1678, 736, 14164, 29898, 13, 4706, 1303, 29918, 333, 29922, 949, 29918, 333, 29892, 18139, 29922, 2798, 29879, 29892, 8818, 29874, 29922, 941, 17367, 29892, 1303, 29918, 978, 29922, 949, 29918, 978, 29897, 13, 13, 13, 1753, 6088, 29918, 1972, 29918, 333, 29898, 1972, 29918, 333, 1125, 13, 1678, 736, 7442, 29889, 2378, 4197, 524, 29898, 29939, 29897, 363, 3855, 297, 2346, 29918, 333, 29889, 5451, 703, 29918, 1159, 29961, 29896, 17531, 2314, 13, 13, 13, 1753, 1207, 29918, 2371, 29898, 13099, 29892, 9066, 1125, 13, 1678, 565, 7431, 29898, 13662, 29897, 2804, 7431, 29898, 13099, 1125, 13, 4706, 12020, 7865, 2392, 29898, 13, 9651, 376, 7850, 947, 451, 1993, 1353, 310, 4341, 1159, 13, 1678, 4236, 29918, 29879, 7093, 353, 5159, 13, 1678, 1591, 353, 5124, 13, 1678, 363, 1897, 29892, 4839, 297, 14319, 29898, 13099, 29892, 9066, 1125, 13, 4706, 4236, 29918, 29879, 7093, 29889, 4397, 29898, 4236, 4197, 2435, 29898, 710, 29898, 29883, 876, 363, 274, 297, 1897, 29962, 718, 518, 2435, 29898, 710, 29898, 6672, 876, 2314, 1723, 13, 1678, 1933, 353, 376, 29871, 11393, 7122, 29898, 3366, 543, 334, 2159, 363, 2159, 297, 4236, 29918, 29879, 7093, 2314, 718, 6634, 29876, 29908, 13, 1678, 1591, 4619, 1933, 13, 1678, 19200, 353, 5159, 13, 1678, 363, 474, 29892, 2268, 297, 14319, 29898, 3881, 29898, 2435, 29898, 13099, 8243, 4236, 29918, 29879, 7093, 1125, 13, 4706, 19200, 29889, 4397, 703, 6224, 29912, 29900, 6177, 29966, 29912, 29896, 12499, 1642, 4830, 29898, 29875, 29892, 2268, 876, 13, 1678, 19200, 353, 376, 29871, 11393, 7122, 29898, 23479, 29897, 718, 6634, 29876, 29908, 13, 1678, 396, 788, 4839, 13, 1678, 1591, 4619, 19200, 29889, 4830, 10456, 13662, 29897, 13, 1678, 1591, 4619, 1933, 13, 1678, 363, 1948, 297, 518, 29930, 7554, 10456, 13099, 4638, 29901, 13, 4706, 1591, 4619, 19200, 29889, 4830, 10456, 798, 29897, 13, 1678, 1591, 4619, 1933, 13, 1678, 736, 1591, 13, 13, 15631, 29925, 2890, 353, 426, 13, 1678, 525, 524, 2396, 938, 29892, 13, 1678, 525, 710, 2396, 851, 29892, 13, 1678, 525, 7411, 2396, 5785, 29892, 13, 1678, 525, 11227, 2396, 6120, 29892, 13, 1678, 525, 1761, 2396, 8717, 29889, 20889, 284, 29918, 14513, 29892, 13, 1678, 525, 1445, 29918, 1853, 2396, 934, 29918, 1853, 29892, 13, 1678, 525, 449, 1445, 29918, 1853, 2396, 714, 1445, 29918, 1853, 29892, 13, 1678, 525, 2084, 29918, 1853, 2396, 2224, 29918, 1853, 29892, 13, 1678, 525, 449, 2084, 29918, 1853, 2396, 714, 2084, 29918, 1853, 29892, 13, 1678, 525, 1066, 3321, 29918, 524, 2396, 6374, 29918, 524, 29892, 13, 1678, 525, 29876, 3409, 387, 29918, 524, 2396, 1661, 10052, 29918, 524, 29892, 13, 1678, 525, 771, 637, 291, 2396, 18618, 29892, 13, 1678, 525, 4836, 29918, 3972, 29918, 1853, 2396, 2060, 29918, 3972, 29918, 1853, 29892, 13, 1678, 525, 3539, 29918, 8411, 29918, 1853, 2396, 2436, 29918, 8411, 29918, 1853, 29892, 13, 1678, 525, 949, 29918, 8411, 29918, 1853, 2396, 1303, 29918, 8411, 29918, 1853, 29892, 13, 1678, 525, 2084, 29918, 1761, 29918, 1853, 2396, 2224, 29918, 1761, 29918, 1853, 29892, 13, 1678, 525, 15581, 29918, 1853, 2396, 7353, 29918, 1853, 29892, 13, 1678, 525, 1191, 29918, 1761, 29918, 1853, 2396, 1852, 29918, 1761, 29918, 1853, 13, 1678, 500, 13, 24705, 29903, 353, 11117, 29954, 2127, 2396, 402, 2127, 29892, 525, 23651, 29879, 2396, 315, 3487, 29879, 29913, 13, 2 ]
auc_vs_p50_1_model_v2_val_folds.py
kkraoj/lfmc_for_ignitions
0
109126
# -*- coding: utf-8 -*- """ Created on Mon May 25 22:33:04 2020 @author: kkrao """ import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import sklearn.ensemble import sklearn.metrics import sklearn.model_selection import statsmodels.api as sm import init sns.set(style='ticks',font_scale = 0.9) def assemble_df(buffer = "lfmc_variogram"): columns = ['system:index', 'BurnDate', 'FirstDay', 'LastDay', 'QA', 'Uncertainty', 'area', 'erc_t_15_inside', 'erc_t_15_outside', 'landcover', 'lfmc_t_1_inside', 'lfmc_t_1_outside', 'ppt_t_1_inside', 'ppt_t_1_outside', 'system:time_start', 'vpd_t_4_inside', 'vpd_t_4_outside', 'year', '.geo', 'lfmc_t_1_seasonal_mean_inside', 'lfmc_t_1_seasonal_mean_outside', 'lfmc_t_2_inside', 'lfmc_t_2_outside', 'fwi_t_4_inside', 'fwi_t_4_outside', 'p50'] if buffer == "lfmc_variogram": df = pd.read_csv(os.path.join(init.dir_data, "fire_collection_median_with_climate_500m_variogram.csv")) dfr = pd.read_csv(os.path.join(init.dir_data, "fire_collection_median_extra_lfmc_vars_500m_variogram.csv")) dfr = dfr[['lfmc_t_1_seasonal_mean_inside','lfmc_t_1_seasonal_mean_outside', 'lfmc_t_2_inside', 'lfmc_t_2_outside']] df = df.join(dfr) dfr = pd.read_csv(os.path.join(init.dir_data, "fire_collection_median_fwi_500m_variogram.csv")) dfr = dfr[['fwi_t_4_inside','fwi_t_4_outside']] df = df.join(dfr) elif buffer == "constant": df = pd.read_csv(os.path.join(init.dir_data, "fire_collection_median_with_climate_fwi_extra_lfmc_vars_constant_buffer_20km_width_10km.csv")) elif buffer == "vpd_variogram": df = pd.read_csv(os.path.join(init.dir_data, "fire_collection_median_LFMC_climate_FWI_500m_variogram_of_vpd_4_oct_2021.csv")) elif buffer == "lfmc_variogram_large": df = pd.read_csv(os.path.join(init.dir_data, "fire_collection_median_LFMC_climate_FWI_500m_variogram_of_LFMC_100km_max.csv")) dfr = pd.read_csv(os.path.join(init.dir_data, "fire_collection_500m_with_p50.csv")) dfr = dfr[['p50']] df = df.join(dfr) df = df.loc[df.landcover.isin(init.lc_dict.keys())] df['landcover'] = df.landcover.map(init.lc_dict) df = df[columns] return df def plot_p50_hist(df): fig, ax = plt.subplots(figsize = (3,3)) df.p50.hist(ax = ax) ax.set_xlabel('P50 (Mpa)') ax.set_ylabel('Frequency') #%% just lfmc first def auc_by_cat(clf, ndf, ndf_dict, test_index, kind = 'occurence'): auc = pd.DataFrame(index = [0],columns = ndf_dict.keys()) for cat in auc.columns: select = ndf_dict[cat] select = select[select].index select = list(set(select)&set(test_index)) sub = ndf.loc[select].copy() if kind == "occurence": X = sub.drop(['fire'], axis = 1).values y = sub['fire'].values try: auc.loc[0,cat] = sklearn.metrics.roc_auc_score(y,clf.predict(X)) except ValueError: print(f"[INFO] No data for this fold in {cat}. Skipping.") auc.loc[0,cat] = sklearn.metrics.roc_auc_score(y,clf.predict(X)) return auc def calc_auc_occurence(dfsub, category_dict, category, clf, folds = 3, n_cv_reps = 5): df = dfsub.copy() auc = pd.DataFrame(index = range(folds),columns = category_dict.keys()) ndf = pd.DataFrame() for var in ['outside','inside']: cols = [col for col in df.columns if var in col] + [category] # cols.remove('lfmc_t_1_%s'%var) data = df[cols].copy() new_cols = [col.split('_')[0] for col in data.columns] data.columns = (new_cols) data['fire'] = int(var=='inside') ndf = pd.concat([ndf, data], axis = 0).reset_index(drop=True) ndf = ndf.sample(frac=1).reset_index(drop=True) ndf.dropna(inplace = True) ndf_dict = {} for i in ndf[category].unique(): ndf_dict[i] = ndf[category]==i ndf = ndf.drop(category, axis = 1) X = ndf.drop(['fire'], axis = 1).values y = ndf['fire'].values for rep in n_cv_reps kf = sklearn.model_selection.KFold(n_splits=folds, shuffle = False, random_state = 42) for index, (train_index, test_index) in enumerate(kf.split(X)): X_train, X_test = X[train_index], X[test_index] y_train, y_test = y[train_index], y[test_index] try: clf.fit(X_train, y_train) # rfc_disp = sklearn.metrics.plot_roc_curve(clf, X, y, ax=ax,label = lc,color = color_dict[lc]) auc.loc[index, :] = auc_by_cat(clf, ndf, ndf_dict, test_index, kind = 'occurence').values except: print("Could not fit RF") auc.loc[index,:] = np.nan auc.loc[0,:] = auc.mean() auc = auc.drop(auc.index.difference([0]), axis = 0) return auc def ensemble_auc(dfsub, category_dict, category, clf, seeds = 5, label = 'All variables'): dummy = calc_auc_occurence(dfsub, category_dict, category, clf) aucs = np.expand_dims(dummy.values, axis = 2) for for seed in range(seeds): print(f"[INFO] Fitting RF for iteration {itr}/{iters}") clf.random_state = seed auc = np.expand_dims(calc_auc_occurence(dfsub, category_dict, category, clf).values, axis = 2) print(f"[INFO] Average AUC = {auc.mean(axis = 1)[0][0]:0.2f}") aucs = np.append(aucs,auc, axis = 2) # print("aucs ready") dummy.loc[:,:] = np.nanmean(aucs.astype(float), axis = 2) mean = dummy.copy() dummy.loc[:,:] = np.nanquantile(aucs.astype(float), 0.05, axis = 2) ql = (dummy.copy() - mean).abs() ## for plotting we need absolute dummy.loc[:,:] = np.nanquantile(aucs.astype(float), 0.95, axis = 2) qu = dummy.copy() - mean return mean, ql, qu def calc_aucs(dfs, category_dict, category, replace_by_random = True): df = dfs.copy() allVars = pd.DataFrame(index = [0],columns = category_dict.keys()) onlyClimate = allVars.copy() cols = [col for col in df.columns if 'lfmc' in col]+['landcover'] # cols = ['landcover'] cols+=[col for col in df.columns if 'erc' in col] cols+=[col for col in df.columns if 'ppt' in col] cols+=[col for col in df.columns if 'vpd' in col] cols+=[col for col in df.columns if 'fwi' in col] df = df[cols] df['lfmc_t_1_inside_anomaly'] = df['lfmc_t_1_inside'] - df['lfmc_t_1_seasonal_mean_inside'] df['lfmc_t_1_outside_anomaly'] = df['lfmc_t_1_outside'] - df['lfmc_t_1_seasonal_mean_outside'] df.drop(['lfmc_t_1_seasonal_mean_inside','lfmc_t_1_seasonal_mean_outside'],axis = 1, inplace = True) ###testing with random numbers instead of LFMC # df.loc[:,remove_lfmc] = np.zeros(shape = df.loc[:,remove_lfmc].shape) # clf = sklearn.ensemble.RandomForestClassifier(max_depth=15, min_samples_leaf = 5, random_state=0, oob_score = True,n_estimators = 50) clf = sklearn.ensemble.RandomForestClassifier(max_depth=8, random_state=0, oob_score = True,n_estimators = 50) allVars= ensemble_auc(df, category_dict,category, clf) # allVars = calc_auc(df, size_dict, clf) remove_lfmc = [col for col in df.columns if 'lfmc' in col] if replace_by_random: ###testing with random numbers instead of LFMC df.loc[:,remove_lfmc] = np.random.uniform(size = df.loc[:,remove_lfmc].shape) onlyClimate = ensemble_auc(df,category_dict, category, clf) else: onlyClimate = ensemble_auc(df.drop(remove_lfmc, axis = 1), category_dict,category, clf) onlyClimate.index.name = "only climate" allVars.index.name = "all variables" df = pd.DataFrame({"all_vars":allVars.iloc[0], "only_climate":onlyClimate.iloc[0]}) df = df.sort_values("all_vars", ascending = True) return df def plot_importance(df): fig, ax1= plt.subplots(figsize = (3,3)) ax1.barh(width = df.only_climate,y = df.index,edgecolor = list(df.index.map(init.color_dict).values), color = "w") ax1.barh(width = df.all_vars - df.only_climate,y = df.index,left = df.only_climate, \ color = list(df.index.map(init.color_dict).values), \ edgecolor = list(df.index.map(init.color_dict).values),\ xerr = df[['lower_q', 'upper_q']].T.values,\ ) ax1.set_ylabel("") ax1.set_xlabel('AUC') ax1.set_xlim(0.5,1) # ax1.set_title("Small fires") ############################################################################## df = assemble_df(buffer = "lfmc_variogram_large") df = df.loc[df.BurnDate>=150] # df = df.loc[df.area>=1] LC_DICT = {} for i in df.landcover.unique(): LC_DICT[i] = df.landcover==i P50_DICT = {'low':(df.p50>=-5), 'high': (df.p50<-5), } # plot_p50_hist(df) auc = calc_aucs(df, LC_DICT, category = "landcover", replace_by_random = True) plot_box(auc) # print(mean) # print(std) ############################################################################## #%%invs # for lc in LC_DICT.keys(): # sub = df.loc[df.landcover==lc] # fig, ax = plt.subplots(figsize = (3,3)) # ax.hist(sub.lfmc_t_2_inside, color = "orange", alpha = 0.5, density = True, label = "Inside", bins = 100) # ax.hist(sub.lfmc_t_2_outside, color = "blue", alpha = 0.5, density = True, label = "Outside", bins = 100) # ax.set_xlabel("LFMC_t_1") # ax.set_ylabel("Frequency") # plt.show()
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 2598, 2610, 29871, 29906, 29945, 29871, 29906, 29906, 29901, 29941, 29941, 29901, 29900, 29946, 29871, 29906, 29900, 29906, 29900, 13, 13, 29992, 8921, 29901, 413, 29895, 336, 29877, 13, 15945, 29908, 13, 13, 5215, 2897, 13, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 5215, 409, 370, 1398, 408, 269, 1983, 13, 5215, 2071, 19668, 29889, 24031, 13, 5215, 2071, 19668, 29889, 2527, 10817, 13, 5215, 2071, 19668, 29889, 4299, 29918, 21731, 13, 5215, 22663, 9794, 29889, 2754, 408, 1560, 13, 13, 5215, 2069, 13, 13, 29879, 1983, 29889, 842, 29898, 3293, 2433, 29873, 7358, 742, 5657, 29918, 7052, 353, 29871, 29900, 29889, 29929, 29897, 13, 13, 1753, 24940, 29918, 2176, 29898, 9040, 353, 376, 29880, 29888, 14047, 29918, 5927, 13342, 29908, 1125, 13, 1678, 4341, 353, 6024, 5205, 29901, 2248, 742, 525, 29933, 595, 2539, 742, 525, 6730, 12742, 742, 525, 8897, 12742, 742, 525, 29984, 29909, 742, 525, 2525, 14082, 1017, 742, 13, 539, 525, 6203, 742, 525, 6269, 29918, 29873, 29918, 29896, 29945, 29918, 26102, 742, 525, 6269, 29918, 29873, 29918, 29896, 29945, 29918, 449, 2975, 742, 13, 539, 525, 1049, 11911, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 26102, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 449, 2975, 742, 525, 407, 29873, 29918, 29873, 29918, 29896, 29918, 26102, 742, 13, 539, 525, 407, 29873, 29918, 29873, 29918, 29896, 29918, 449, 2975, 742, 525, 5205, 29901, 2230, 29918, 2962, 742, 525, 29894, 15926, 29918, 29873, 29918, 29946, 29918, 26102, 742, 13, 539, 525, 29894, 15926, 29918, 29873, 29918, 29946, 29918, 449, 2975, 742, 525, 6360, 742, 15300, 24756, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 26102, 742, 13, 539, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 449, 2975, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29906, 29918, 26102, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29906, 29918, 449, 2975, 742, 13, 539, 525, 29888, 4353, 29918, 29873, 29918, 29946, 29918, 26102, 742, 525, 29888, 4353, 29918, 29873, 29918, 29946, 29918, 449, 2975, 742, 525, 29886, 29945, 29900, 2033, 13, 1678, 565, 6835, 1275, 376, 29880, 29888, 14047, 29918, 5927, 13342, 1115, 13, 4706, 4489, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 2168, 713, 29918, 2541, 29918, 695, 6490, 29918, 29945, 29900, 29900, 29885, 29918, 5927, 13342, 29889, 7638, 5783, 13, 308, 13, 4706, 270, 1341, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 2168, 713, 29918, 17833, 29918, 29880, 29888, 14047, 29918, 16908, 29918, 29945, 29900, 29900, 29885, 29918, 5927, 13342, 29889, 7638, 5783, 13, 4706, 270, 1341, 353, 270, 1341, 29961, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 26102, 3788, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 449, 2975, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29906, 29918, 26102, 742, 525, 29880, 29888, 14047, 29918, 29873, 29918, 29906, 29918, 449, 2975, 2033, 29962, 13, 4706, 4489, 353, 4489, 29889, 7122, 29898, 29881, 1341, 29897, 13, 308, 13, 4706, 270, 1341, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 2168, 713, 29918, 29888, 4353, 29918, 29945, 29900, 29900, 29885, 29918, 5927, 13342, 29889, 7638, 5783, 13, 4706, 270, 1341, 353, 270, 1341, 29961, 1839, 29888, 4353, 29918, 29873, 29918, 29946, 29918, 26102, 3788, 29888, 4353, 29918, 29873, 29918, 29946, 29918, 449, 2975, 2033, 29962, 13, 4706, 4489, 353, 4489, 29889, 7122, 29898, 29881, 1341, 29897, 13, 308, 13, 13, 1678, 25342, 6835, 1275, 376, 23362, 1115, 13, 4706, 4489, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 2168, 713, 29918, 2541, 29918, 695, 6490, 29918, 29888, 4353, 29918, 17833, 29918, 29880, 29888, 14047, 29918, 16908, 29918, 23362, 29918, 9040, 29918, 29906, 29900, 8848, 29918, 2103, 29918, 29896, 29900, 8848, 29889, 7638, 5783, 13, 13, 1678, 25342, 6835, 1275, 376, 29894, 15926, 29918, 5927, 13342, 1115, 13, 4706, 4489, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 2168, 713, 29918, 29931, 29943, 12513, 29918, 695, 6490, 29918, 29943, 22119, 29918, 29945, 29900, 29900, 29885, 29918, 5927, 13342, 29918, 974, 29918, 29894, 15926, 29918, 29946, 29918, 20082, 29918, 29906, 29900, 29906, 29896, 29889, 7638, 5783, 13, 259, 13, 1678, 25342, 6835, 1275, 376, 29880, 29888, 14047, 29918, 5927, 13342, 29918, 16961, 1115, 13, 4706, 4489, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 2168, 713, 29918, 29931, 29943, 12513, 29918, 695, 6490, 29918, 29943, 22119, 29918, 29945, 29900, 29900, 29885, 29918, 5927, 13342, 29918, 974, 29918, 29931, 29943, 12513, 29918, 29896, 29900, 29900, 8848, 29918, 3317, 29889, 7638, 5783, 13, 13, 308, 13, 1678, 270, 1341, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2344, 29889, 3972, 29918, 1272, 29892, 376, 8696, 29918, 10855, 29918, 29945, 29900, 29900, 29885, 29918, 2541, 29918, 29886, 29945, 29900, 29889, 7638, 5783, 13, 1678, 270, 1341, 353, 270, 1341, 29961, 1839, 29886, 29945, 29900, 2033, 29962, 13, 1678, 4489, 353, 4489, 29889, 7122, 29898, 29881, 1341, 29897, 13, 268, 13, 1678, 4489, 353, 4489, 29889, 2029, 29961, 2176, 29889, 1049, 11911, 29889, 275, 262, 29898, 2344, 29889, 29880, 29883, 29918, 8977, 29889, 8149, 3101, 29962, 13, 1678, 4489, 1839, 1049, 11911, 2033, 353, 4489, 29889, 1049, 11911, 29889, 1958, 29898, 2344, 29889, 29880, 29883, 29918, 8977, 29897, 13, 1678, 4489, 353, 4489, 29961, 13099, 29962, 13, 13, 1678, 736, 4489, 13, 13, 13, 1753, 6492, 29918, 29886, 29945, 29900, 29918, 29882, 391, 29898, 2176, 1125, 13, 1678, 2537, 29892, 4853, 353, 14770, 29889, 1491, 26762, 29898, 1003, 2311, 353, 313, 29941, 29892, 29941, 876, 13, 1678, 4489, 29889, 29886, 29945, 29900, 29889, 29882, 391, 29898, 1165, 353, 4853, 29897, 13, 1678, 4853, 29889, 842, 29918, 29916, 1643, 877, 29925, 29945, 29900, 313, 29924, 3274, 29897, 1495, 13, 1678, 4853, 29889, 842, 29918, 29891, 1643, 877, 23923, 23860, 1495, 13, 13, 13, 13, 29937, 7686, 925, 301, 29888, 14047, 937, 29871, 13, 13, 13, 1753, 20480, 29918, 1609, 29918, 4117, 29898, 695, 29888, 29892, 29871, 299, 29888, 29892, 29871, 299, 29888, 29918, 8977, 29892, 1243, 29918, 2248, 29892, 2924, 353, 525, 542, 2764, 663, 29374, 13, 1678, 20480, 353, 10518, 29889, 17271, 29898, 2248, 353, 518, 29900, 1402, 13099, 353, 29871, 299, 29888, 29918, 8977, 29889, 8149, 3101, 13, 1678, 363, 6635, 297, 20480, 29889, 13099, 29901, 13, 4706, 1831, 353, 29871, 299, 29888, 29918, 8977, 29961, 4117, 29962, 13, 4706, 1831, 353, 1831, 29961, 2622, 1822, 2248, 13, 4706, 1831, 353, 1051, 29898, 842, 29898, 2622, 26927, 842, 29898, 1688, 29918, 2248, 876, 13, 4706, 1014, 353, 29871, 299, 29888, 29889, 2029, 29961, 2622, 1822, 8552, 580, 13, 4706, 565, 2924, 1275, 376, 542, 2764, 663, 1115, 13, 9651, 1060, 353, 1014, 29889, 8865, 18959, 8696, 7464, 9685, 353, 29871, 29896, 467, 5975, 13, 9651, 343, 353, 1014, 1839, 8696, 13359, 5975, 13, 9651, 1018, 29901, 13, 18884, 20480, 29889, 2029, 29961, 29900, 29892, 4117, 29962, 353, 2071, 19668, 29889, 2527, 10817, 29889, 10198, 29918, 14766, 29918, 13628, 29898, 29891, 29892, 695, 29888, 29889, 27711, 29898, 29990, 876, 13, 9651, 5174, 7865, 2392, 29901, 13, 18884, 1596, 29898, 29888, 29908, 29961, 11690, 29962, 1939, 848, 363, 445, 900, 29881, 297, 426, 4117, 1836, 28551, 3262, 23157, 13, 18884, 20480, 29889, 2029, 29961, 29900, 29892, 4117, 29962, 353, 2071, 19668, 29889, 2527, 10817, 29889, 10198, 29918, 14766, 29918, 13628, 29898, 29891, 29892, 695, 29888, 29889, 27711, 29898, 29990, 876, 13, 1678, 736, 20480, 13, 13, 1753, 22235, 29918, 14766, 29918, 542, 2764, 663, 29898, 2176, 1491, 29892, 7663, 29918, 8977, 29892, 7663, 29892, 1067, 29888, 29892, 900, 6289, 353, 29871, 29941, 29892, 302, 29918, 11023, 29918, 276, 567, 353, 29871, 29945, 1125, 13, 1678, 4489, 353, 4489, 1491, 29889, 8552, 580, 13, 1678, 20480, 353, 10518, 29889, 17271, 29898, 2248, 353, 3464, 29898, 29888, 3361, 511, 13099, 353, 7663, 29918, 8977, 29889, 8149, 3101, 13, 13, 268, 299, 29888, 353, 10518, 29889, 17271, 580, 13, 268, 13, 1678, 363, 722, 297, 6024, 449, 2975, 3788, 26102, 2033, 29901, 268, 13, 4706, 28730, 353, 518, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 722, 297, 784, 29962, 718, 518, 7320, 29962, 13, 4706, 396, 28730, 29889, 5992, 877, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 29995, 29879, 29915, 29995, 1707, 29897, 13, 4706, 848, 353, 4489, 29961, 22724, 1822, 8552, 580, 13, 4706, 716, 29918, 22724, 353, 518, 1054, 29889, 5451, 877, 29918, 29861, 29900, 29962, 363, 784, 297, 848, 29889, 13099, 29962, 13, 4706, 848, 29889, 13099, 353, 313, 1482, 29918, 22724, 29897, 13, 4706, 848, 1839, 8696, 2033, 353, 938, 29898, 1707, 1360, 29915, 26102, 1495, 13, 308, 299, 29888, 353, 10518, 29889, 17685, 4197, 299, 29888, 29892, 848, 1402, 9685, 353, 29871, 29900, 467, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29897, 13, 308, 13, 13, 268, 299, 29888, 353, 29871, 299, 29888, 29889, 11249, 29898, 1154, 29922, 29896, 467, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29897, 13, 268, 299, 29888, 29889, 8865, 1056, 29898, 262, 6689, 353, 5852, 29897, 13, 268, 13, 268, 299, 29888, 29918, 8977, 353, 6571, 13, 1678, 363, 474, 297, 29871, 299, 29888, 29961, 7320, 1822, 13092, 7295, 13, 308, 299, 29888, 29918, 8977, 29961, 29875, 29962, 353, 29871, 299, 29888, 29961, 7320, 29962, 1360, 29875, 13, 268, 299, 29888, 353, 29871, 299, 29888, 29889, 8865, 29898, 7320, 29892, 9685, 353, 29871, 29896, 29897, 13, 1678, 1060, 353, 29871, 299, 29888, 29889, 8865, 18959, 8696, 7464, 9685, 353, 29871, 29896, 467, 5975, 13, 1678, 343, 353, 29871, 299, 29888, 1839, 8696, 13359, 5975, 13, 268, 13, 1678, 363, 1634, 297, 302, 29918, 11023, 29918, 276, 567, 13, 1678, 413, 29888, 353, 2071, 19668, 29889, 4299, 29918, 21731, 29889, 29968, 29943, 1025, 29898, 29876, 29918, 23579, 1169, 29922, 29888, 3361, 29892, 528, 21897, 353, 7700, 29892, 4036, 29918, 3859, 353, 29871, 29946, 29906, 29897, 13, 1678, 363, 2380, 29892, 313, 14968, 29918, 2248, 29892, 1243, 29918, 2248, 29897, 297, 26985, 29898, 29895, 29888, 29889, 5451, 29898, 29990, 22164, 13, 4706, 1060, 29918, 14968, 29892, 1060, 29918, 1688, 353, 1060, 29961, 14968, 29918, 2248, 1402, 1060, 29961, 1688, 29918, 2248, 29962, 13, 4706, 343, 29918, 14968, 29892, 343, 29918, 1688, 353, 343, 29961, 14968, 29918, 2248, 1402, 343, 29961, 1688, 29918, 2248, 29962, 13, 4706, 1018, 29901, 13, 9651, 1067, 29888, 29889, 9202, 29898, 29990, 29918, 14968, 29892, 343, 29918, 14968, 29897, 13, 9651, 396, 364, 13801, 29918, 2218, 29886, 353, 2071, 19668, 29889, 2527, 10817, 29889, 5317, 29918, 10198, 29918, 2764, 345, 29898, 695, 29888, 29892, 1060, 29892, 343, 29892, 4853, 29922, 1165, 29892, 1643, 353, 301, 29883, 29892, 2780, 353, 2927, 29918, 8977, 29961, 29880, 29883, 2314, 13, 9651, 20480, 29889, 2029, 29961, 2248, 29892, 584, 29962, 353, 20480, 29918, 1609, 29918, 4117, 29898, 695, 29888, 29892, 29871, 299, 29888, 29892, 29871, 299, 29888, 29918, 8977, 29892, 1243, 29918, 2248, 29892, 2924, 353, 525, 542, 2764, 663, 2824, 5975, 13, 4706, 5174, 29901, 29871, 13, 9651, 1596, 703, 23323, 451, 6216, 390, 29943, 1159, 13, 9651, 20480, 29889, 2029, 29961, 2248, 29892, 17531, 353, 7442, 29889, 13707, 13, 13, 1678, 20480, 29889, 2029, 29961, 29900, 29892, 17531, 353, 20480, 29889, 12676, 580, 13, 1678, 20480, 353, 20480, 29889, 8865, 29898, 14766, 29889, 2248, 29889, 29881, 17678, 4197, 29900, 11724, 9685, 353, 29871, 29900, 29897, 13, 1678, 736, 20480, 13, 13, 13, 1753, 21285, 29918, 14766, 29898, 2176, 1491, 29892, 7663, 29918, 8977, 29892, 7663, 29892, 1067, 29888, 29892, 409, 5779, 353, 29871, 29945, 29892, 3858, 353, 525, 3596, 3651, 29374, 13, 1678, 20254, 353, 22235, 29918, 14766, 29918, 542, 2764, 663, 29898, 2176, 1491, 29892, 7663, 29918, 8977, 29892, 7663, 29892, 1067, 29888, 29897, 13, 1678, 782, 2395, 353, 7442, 29889, 18837, 29918, 6229, 29879, 29898, 29881, 11770, 29889, 5975, 29892, 9685, 353, 29871, 29906, 29897, 13, 1678, 363, 29871, 13, 1678, 363, 16717, 297, 3464, 29898, 344, 5779, 1125, 13, 4706, 1596, 29898, 29888, 29908, 29961, 11690, 29962, 383, 5367, 390, 29943, 363, 12541, 426, 277, 29878, 6822, 29912, 277, 414, 27195, 13, 4706, 1067, 29888, 29889, 8172, 29918, 3859, 353, 16717, 13, 4706, 20480, 353, 7442, 29889, 18837, 29918, 6229, 29879, 29898, 28667, 29918, 14766, 29918, 542, 2764, 663, 29898, 2176, 1491, 29892, 7663, 29918, 8977, 29892, 7663, 29892, 1067, 29888, 467, 5975, 29892, 9685, 353, 29871, 29906, 29897, 13, 4706, 1596, 29898, 29888, 29908, 29961, 11690, 29962, 319, 19698, 319, 23129, 353, 426, 14766, 29889, 12676, 29898, 8990, 353, 29871, 29896, 9601, 29900, 3816, 29900, 5387, 29900, 29889, 29906, 29888, 27195, 13, 4706, 782, 2395, 353, 7442, 29889, 4397, 29898, 585, 2395, 29892, 14766, 29892, 9685, 353, 29871, 29906, 29897, 13, 1678, 396, 1596, 703, 585, 2395, 7960, 1159, 13, 1678, 20254, 29889, 2029, 7503, 29892, 17531, 353, 7442, 29889, 13707, 12676, 29898, 585, 2395, 29889, 579, 668, 29898, 7411, 511, 9685, 353, 29871, 29906, 29897, 13, 1678, 2099, 353, 20254, 29889, 8552, 580, 13, 1678, 20254, 29889, 2029, 7503, 29892, 17531, 353, 7442, 29889, 13707, 12150, 488, 29898, 585, 2395, 29889, 579, 668, 29898, 7411, 511, 29871, 29900, 29889, 29900, 29945, 29892, 29871, 9685, 353, 29871, 29906, 29897, 13, 268, 1519, 353, 313, 29881, 11770, 29889, 8552, 580, 448, 2099, 467, 6897, 580, 444, 363, 6492, 1259, 591, 817, 8380, 13, 1678, 20254, 29889, 2029, 7503, 29892, 17531, 353, 7442, 29889, 13707, 12150, 488, 29898, 585, 2395, 29889, 579, 668, 29898, 7411, 511, 29871, 29900, 29889, 29929, 29945, 29892, 29871, 9685, 353, 29871, 29906, 29897, 13, 1678, 439, 353, 20254, 29889, 8552, 580, 448, 2099, 13, 1678, 736, 2099, 29892, 29871, 1519, 29892, 439, 13, 268, 13, 13, 1753, 22235, 29918, 585, 2395, 29898, 29069, 29892, 7663, 29918, 8977, 29892, 7663, 29892, 5191, 29918, 1609, 29918, 8172, 353, 5852, 1125, 13, 1678, 4489, 353, 4489, 29879, 29889, 8552, 580, 13, 1678, 599, 29963, 1503, 353, 10518, 29889, 17271, 29898, 2248, 353, 518, 29900, 1402, 13099, 353, 7663, 29918, 8977, 29889, 8149, 3101, 13, 1678, 871, 29907, 2576, 403, 353, 599, 29963, 1503, 29889, 8552, 580, 13, 1678, 28730, 353, 518, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 525, 29880, 29888, 14047, 29915, 297, 784, 10062, 1839, 1049, 11911, 2033, 13, 1678, 396, 28730, 353, 6024, 1049, 11911, 2033, 13, 1678, 28730, 29974, 11759, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 525, 6269, 29915, 297, 784, 29962, 13, 1678, 28730, 29974, 11759, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 525, 407, 29873, 29915, 297, 784, 29962, 13, 1678, 28730, 29974, 11759, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 525, 29894, 15926, 29915, 297, 784, 29962, 13, 1678, 28730, 29974, 11759, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 525, 29888, 4353, 29915, 297, 784, 29962, 13, 268, 13, 1678, 4489, 353, 4489, 29961, 22724, 29962, 13, 1678, 4489, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 26102, 29918, 273, 290, 14997, 2033, 353, 4489, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 26102, 2033, 448, 4489, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 26102, 2033, 13, 1678, 4489, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 449, 2975, 29918, 273, 290, 14997, 2033, 353, 4489, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 449, 2975, 2033, 448, 4489, 1839, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 449, 2975, 2033, 13, 268, 13, 1678, 4489, 29889, 8865, 18959, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 26102, 3788, 29880, 29888, 14047, 29918, 29873, 29918, 29896, 29918, 25682, 284, 29918, 12676, 29918, 449, 2975, 7464, 8990, 353, 29871, 29896, 29892, 297, 6689, 353, 5852, 29897, 13, 308, 13, 1678, 835, 13424, 411, 4036, 3694, 2012, 310, 365, 29943, 12513, 13, 1678, 396, 4489, 29889, 2029, 7503, 29892, 5992, 29918, 29880, 29888, 14047, 29962, 353, 7442, 29889, 3298, 359, 29898, 12181, 353, 4489, 29889, 2029, 7503, 29892, 5992, 29918, 29880, 29888, 14047, 1822, 12181, 29897, 13, 1678, 396, 1067, 29888, 353, 2071, 19668, 29889, 24031, 29889, 17875, 2831, 342, 2385, 3709, 29898, 3317, 29918, 19488, 29922, 29896, 29945, 29892, 1375, 29918, 27736, 29918, 29500, 353, 29871, 29945, 29892, 4036, 29918, 3859, 29922, 29900, 29892, 288, 711, 29918, 13628, 353, 5852, 29892, 29876, 29918, 342, 326, 4097, 353, 29871, 29945, 29900, 29897, 13, 1678, 1067, 29888, 353, 2071, 19668, 29889, 24031, 29889, 17875, 2831, 342, 2385, 3709, 29898, 3317, 29918, 19488, 29922, 29947, 29892, 4036, 29918, 3859, 29922, 29900, 29892, 288, 711, 29918, 13628, 353, 5852, 29892, 29876, 29918, 342, 326, 4097, 353, 29871, 29945, 29900, 29897, 13, 13, 1678, 599, 29963, 1503, 29922, 21285, 29918, 14766, 29898, 2176, 29892, 7663, 29918, 8977, 29892, 7320, 29892, 1067, 29888, 29897, 13, 268, 13, 268, 13, 1678, 396, 599, 29963, 1503, 353, 22235, 29918, 14766, 29898, 2176, 29892, 2159, 29918, 8977, 29892, 1067, 29888, 29897, 13, 13, 1678, 3349, 29918, 29880, 29888, 14047, 353, 518, 1054, 363, 784, 297, 4489, 29889, 13099, 565, 525, 29880, 29888, 14047, 29915, 297, 784, 29962, 13, 1678, 565, 5191, 29918, 1609, 29918, 8172, 29901, 13, 4706, 835, 13424, 411, 4036, 3694, 2012, 310, 365, 29943, 12513, 13, 4706, 4489, 29889, 2029, 7503, 29892, 5992, 29918, 29880, 29888, 14047, 29962, 353, 7442, 29889, 8172, 29889, 29590, 29898, 2311, 353, 4489, 29889, 2029, 7503, 29892, 5992, 29918, 29880, 29888, 14047, 1822, 12181, 29897, 13, 4706, 871, 29907, 2576, 403, 353, 21285, 29918, 14766, 29898, 2176, 29892, 7320, 29918, 8977, 29892, 7663, 29892, 1067, 29888, 29897, 13, 1678, 1683, 29901, 13, 4706, 871, 29907, 2576, 403, 353, 21285, 29918, 14766, 29898, 2176, 29889, 8865, 29898, 5992, 29918, 29880, 29888, 14047, 29892, 9685, 353, 29871, 29896, 511, 7663, 29918, 8977, 29892, 7320, 29892, 1067, 29888, 29897, 13, 268, 13, 1678, 871, 29907, 2576, 403, 29889, 2248, 29889, 978, 353, 376, 6194, 23622, 29908, 13, 1678, 599, 29963, 1503, 29889, 2248, 29889, 978, 353, 376, 497, 3651, 29908, 13, 268, 13, 1678, 4489, 353, 10518, 29889, 17271, 3319, 29908, 497, 29918, 16908, 1115, 497, 29963, 1503, 29889, 309, 542, 29961, 29900, 1402, 376, 6194, 29918, 695, 6490, 1115, 6194, 29907, 2576, 403, 29889, 309, 542, 29961, 29900, 29962, 1800, 13, 1678, 4489, 353, 4489, 29889, 6605, 29918, 5975, 703, 497, 29918, 16908, 613, 12066, 2548, 353, 5852, 29897, 13, 13, 1678, 736, 4489, 13, 13, 1753, 6492, 29918, 5215, 749, 29898, 2176, 1125, 13, 1678, 2537, 29892, 4853, 29896, 29922, 14770, 29889, 1491, 26762, 29898, 1003, 2311, 353, 313, 29941, 29892, 29941, 876, 13, 268, 13, 1678, 4853, 29896, 29889, 1646, 29882, 29898, 2103, 353, 4489, 29889, 6194, 29918, 695, 6490, 29892, 29891, 353, 4489, 29889, 2248, 29892, 12864, 2780, 353, 1051, 29898, 2176, 29889, 2248, 29889, 1958, 29898, 2344, 29889, 2780, 29918, 8977, 467, 5975, 511, 2927, 353, 376, 29893, 1159, 13, 13, 1678, 4853, 29896, 29889, 1646, 29882, 29898, 2103, 353, 4489, 29889, 497, 29918, 16908, 448, 4489, 29889, 6194, 29918, 695, 6490, 29892, 29891, 353, 4489, 29889, 2248, 29892, 1563, 353, 4489, 29889, 6194, 29918, 695, 6490, 29892, 320, 13, 632, 2927, 353, 1051, 29898, 2176, 29889, 2248, 29889, 1958, 29898, 2344, 29889, 2780, 29918, 8977, 467, 5975, 511, 320, 13, 632, 7636, 2780, 353, 1051, 29898, 2176, 29889, 2248, 29889, 1958, 29898, 2344, 29889, 2780, 29918, 8977, 467, 5975, 20481, 13, 462, 921, 3127, 353, 4489, 29961, 1839, 13609, 29918, 29939, 742, 525, 21064, 29918, 29939, 2033, 1822, 29911, 29889, 5975, 2053, 13, 462, 268, 1723, 13, 13, 1678, 4853, 29896, 29889, 842, 29918, 29891, 1643, 703, 1159, 13, 1678, 4853, 29896, 29889, 842, 29918, 29916, 1643, 877, 29909, 23129, 1495, 13, 268, 13, 1678, 4853, 29896, 29889, 842, 29918, 29916, 2576, 29898, 29900, 29889, 29945, 29892, 29896, 29897, 13, 1678, 396, 4853, 29896, 29889, 842, 29918, 3257, 703, 12636, 497, 24237, 1159, 13, 13, 13383, 13383, 13383, 13383, 7346, 4136, 2277, 13, 13, 2176, 353, 24940, 29918, 2176, 29898, 9040, 353, 376, 29880, 29888, 14047, 29918, 5927, 13342, 29918, 16961, 1159, 13, 2176, 353, 4489, 29889, 2029, 29961, 2176, 29889, 29933, 595, 2539, 18572, 29896, 29945, 29900, 29962, 13, 29937, 4489, 353, 4489, 29889, 2029, 29961, 2176, 29889, 6203, 18572, 29896, 29962, 13, 12182, 29918, 4571, 1783, 353, 6571, 13, 1454, 474, 297, 4489, 29889, 1049, 11911, 29889, 13092, 7295, 13, 1678, 365, 29907, 29918, 4571, 1783, 29961, 29875, 29962, 353, 4489, 29889, 1049, 11911, 1360, 29875, 13, 29925, 29945, 29900, 29918, 4571, 1783, 353, 11117, 677, 2396, 29898, 2176, 29889, 29886, 29945, 29900, 29958, 10457, 29945, 511, 13, 632, 525, 9812, 2396, 313, 2176, 29889, 29886, 29945, 29900, 16406, 29945, 511, 418, 13, 632, 500, 13, 29937, 6492, 29918, 29886, 29945, 29900, 29918, 29882, 391, 29898, 2176, 29897, 13, 13, 14766, 353, 22235, 29918, 585, 2395, 29898, 2176, 29892, 365, 29907, 29918, 4571, 1783, 29892, 7663, 353, 376, 1049, 11911, 613, 5191, 29918, 1609, 29918, 8172, 353, 5852, 29897, 13, 13, 5317, 29918, 1884, 29898, 14766, 29897, 13, 13, 29937, 1596, 29898, 12676, 29897, 13, 29937, 1596, 29898, 4172, 29897, 13, 13, 13383, 13383, 13383, 13383, 7346, 4136, 2277, 13, 29937, 7686, 262, 4270, 13, 13, 29937, 363, 301, 29883, 297, 365, 29907, 29918, 4571, 1783, 29889, 8149, 7295, 13, 29937, 268, 1014, 353, 4489, 29889, 2029, 29961, 2176, 29889, 1049, 11911, 1360, 29880, 29883, 29962, 13, 29937, 268, 2537, 29892, 4853, 353, 14770, 29889, 1491, 26762, 29898, 1003, 2311, 353, 313, 29941, 29892, 29941, 876, 13, 29937, 268, 4853, 29889, 29882, 391, 29898, 1491, 29889, 29880, 29888, 14047, 29918, 29873, 29918, 29906, 29918, 26102, 29892, 2927, 353, 376, 272, 927, 613, 15595, 353, 29871, 29900, 29889, 29945, 29892, 9027, 353, 5852, 29892, 3858, 353, 376, 797, 2975, 613, 289, 1144, 353, 29871, 29896, 29900, 29900, 29897, 13, 29937, 268, 4853, 29889, 29882, 391, 29898, 1491, 29889, 29880, 29888, 14047, 29918, 29873, 29918, 29906, 29918, 449, 2975, 29892, 2927, 353, 376, 9539, 613, 15595, 353, 29871, 29900, 29889, 29945, 29892, 9027, 353, 5852, 29892, 3858, 353, 376, 3744, 2975, 613, 289, 1144, 353, 29871, 29896, 29900, 29900, 29897, 13, 29937, 268, 4853, 29889, 842, 29918, 29916, 1643, 703, 29931, 29943, 12513, 29918, 29873, 29918, 29896, 1159, 13, 29937, 268, 4853, 29889, 842, 29918, 29891, 1643, 703, 23923, 23860, 1159, 13, 29937, 268, 14770, 29889, 4294, 580, 13, 13, 2 ]
setup.py
Luke-Poeppel/treeplotter
7
108357
<reponame>Luke-Poeppel/treeplotter<filename>setup.py #################################################################################################### # File: setup.py # Purpose: Setup of the package. # # Author: <NAME> # # Location: Kent, CT 2021 #################################################################################################### from setuptools import setup, find_packages VERSION = "0.5.0" with open('README.md') as f: long_description = f.read() setup( name="treeplotter", version=VERSION, author="<NAME>", author_email="<EMAIL>", description="Python package for tree plotting.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/Luke-Poeppel/treeplotter", packages=find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], python_requires='>=3.7', include_package_data=True, package_data={"treeplotter": ["VERSION"]}, install_requires=[ "click", "jsonpickle", "jinja2", "Wand", ], extras_require={ "dev": [ "flake8", "pre-commit", "pytest", ] }, entry_points={ "console_scripts": [ "treeplotter = treeplotter.cli:treeplotter" ] }, )
[ 1, 529, 276, 1112, 420, 29958, 24126, 446, 29899, 29925, 7297, 17344, 29914, 8336, 5317, 357, 29966, 9507, 29958, 14669, 29889, 2272, 13, 13383, 13383, 13383, 13383, 13383, 13383, 4136, 13, 29937, 3497, 29901, 268, 6230, 29889, 2272, 13, 29937, 15247, 4220, 29901, 29871, 3789, 786, 310, 278, 3577, 29889, 13, 29937, 13, 29937, 13361, 29901, 259, 529, 5813, 29958, 13, 29937, 13, 29937, 17015, 29901, 13272, 29892, 26637, 29871, 29906, 29900, 29906, 29896, 13, 13383, 13383, 13383, 13383, 13383, 13383, 4136, 13, 3166, 731, 21245, 8789, 1053, 6230, 29892, 1284, 29918, 8318, 13, 13, 16358, 353, 376, 29900, 29889, 29945, 29889, 29900, 29908, 13, 13, 2541, 1722, 877, 16310, 2303, 29889, 3487, 1495, 408, 285, 29901, 13, 12, 5426, 29918, 8216, 353, 285, 29889, 949, 580, 13, 13, 14669, 29898, 13, 12, 978, 543, 8336, 5317, 357, 613, 13, 12, 3259, 29922, 16358, 29892, 13, 12, 8921, 543, 29966, 5813, 28341, 13, 12, 8921, 29918, 5269, 543, 29966, 26862, 6227, 28341, 13, 12, 8216, 543, 11980, 3577, 363, 5447, 6492, 1259, 19602, 13, 12, 5426, 29918, 8216, 29922, 5426, 29918, 8216, 29892, 13, 12, 5426, 29918, 8216, 29918, 3051, 29918, 1853, 543, 726, 29914, 3502, 3204, 613, 13, 12, 2271, 543, 991, 597, 3292, 29889, 510, 29914, 24126, 446, 29899, 29925, 7297, 17344, 29914, 8336, 5317, 357, 613, 13, 12, 8318, 29922, 2886, 29918, 8318, 3285, 13, 12, 1990, 14903, 11759, 13, 12, 12, 29908, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 613, 13, 12, 12, 29908, 29931, 293, 1947, 4761, 438, 5425, 28268, 1490, 4761, 341, 1806, 19245, 613, 13, 12, 12, 29908, 7094, 1218, 2184, 4761, 6570, 25266, 613, 13, 12, 1402, 13, 12, 4691, 29918, 276, 339, 2658, 2433, 18572, 29941, 29889, 29955, 742, 13, 12, 2856, 29918, 5113, 29918, 1272, 29922, 5574, 29892, 13, 12, 5113, 29918, 1272, 3790, 29908, 8336, 5317, 357, 1115, 6796, 16358, 3108, 1118, 13, 12, 6252, 29918, 276, 339, 2658, 11759, 13, 12, 12, 29908, 3808, 613, 13, 12, 12, 29908, 3126, 23945, 280, 613, 13, 12, 12, 29908, 28789, 1764, 29906, 613, 13, 12, 12, 29908, 29956, 392, 613, 13, 12, 1402, 13, 12, 1062, 3417, 29918, 12277, 3790, 13, 12, 12, 29908, 3359, 1115, 518, 13, 12, 12, 12, 29908, 29888, 433, 446, 29947, 613, 13, 12, 12, 12, 29908, 1457, 29899, 15060, 613, 13, 12, 12, 12, 29908, 2272, 1688, 613, 13, 12, 12, 29962, 13, 12, 1118, 13, 12, 8269, 29918, 9748, 3790, 13, 12, 12, 29908, 11058, 29918, 16713, 1115, 518, 13, 12, 12, 12, 29908, 8336, 5317, 357, 353, 5447, 5317, 357, 29889, 11303, 29901, 8336, 5317, 357, 29908, 13, 12, 12, 29962, 13, 12, 1118, 13, 29897, 2 ]
explore/utils.py
WilliamQLiu/improved-parakeet
2
93211
from cStringIO import StringIO from xml.etree import ElementTree as ET import requests from scrapy.selector import Selector, XmlXPathSelector from scrapy.spider import Spider def parse_single_element(element, name): """ Helper function to parse a single XML element for name, returns dict of the key and text. """ data = {} for key in element: if key.tag == name: data[name] = key.text return data def parse_single_listing(listing): """ Parse an individual listing for the following: Location - StreetAddress ListingDetails - Price, MlsId, MlsName, DateListed BasicDetails - Description, Bathrooms RichDetails - Appliances """ location_results = listing.iter('Location') for item in location_results: loc_data = parse_single_element(item, 'StreetAddress') listing_results = listing.iter('ListingDetails') for item in listing_results: listing_data = parse_single_element(item, 'Price') print listing_data def get_data_feed(url): """ Get a data feed from url, return dataframe """ response = requests.get(url) tree = ElementTree.fromstring(response.content) tree.write('sample_data.xml') for listing in tree.getchildren(): parse_single_listing(listing) def write_xml_to_file(url, location): """ GET XML from 'url', write to local file 'location' """ try: response = requests.get(url) if response.status_code == 200: file = open(location, 'w') file.write(response.content) file.close() return "Successfully wrote to file" return ("Error %s with unexpected response status code" % response.status_code) except requests.exceptions.ConnectionError as e: return ("Error %e with connecting to url" % e) def read_xml_schema(xml_schema): """ returns xml_schema (XSD) file as a string """ with open(xml_schema, 'r') as schema_file: schema = schema_file.read() return schema if __name__ == '__main__': print 'Running' local_file = 'sample_data.xml' schema_file = 'schema.xsd' # get our xml data from a url source write_xml_to_file( url='http://syndication.enterprise.websiteidx.com/feeds/BoojCodeTest.xml', location=local_file) # verify data against a schema #schema = read_xml_schema(schema_file) #valid = StringIO(schema) #MrXMLParse.run()
[ 1, 515, 274, 1231, 5971, 1053, 1714, 5971, 13, 3166, 4903, 29889, 300, 929, 1053, 10619, 9643, 408, 382, 29911, 13, 13, 5215, 7274, 13, 3166, 24559, 2272, 29889, 14357, 1053, 7605, 272, 29892, 24409, 29990, 2605, 10378, 13, 3166, 24559, 2272, 29889, 1028, 1241, 1053, 26778, 13, 13, 13, 1753, 6088, 29918, 14369, 29918, 5029, 29898, 5029, 29892, 1024, 1125, 13, 1678, 9995, 13, 1678, 6162, 546, 740, 304, 6088, 263, 2323, 6560, 1543, 363, 1024, 29892, 13, 1678, 3639, 9657, 310, 278, 1820, 322, 1426, 29889, 13, 1678, 9995, 13, 1678, 848, 353, 6571, 13, 1678, 363, 1820, 297, 1543, 29901, 13, 4706, 565, 1820, 29889, 4039, 1275, 1024, 29901, 13, 9651, 848, 29961, 978, 29962, 353, 1820, 29889, 726, 13, 1678, 736, 848, 13, 13, 13, 1753, 6088, 29918, 14369, 29918, 1761, 292, 29898, 1761, 292, 1125, 13, 1678, 9995, 13, 1678, 20969, 385, 5375, 18028, 363, 278, 1494, 29901, 13, 4706, 17015, 448, 7103, 7061, 13, 4706, 2391, 292, 10602, 448, 20743, 29892, 341, 3137, 1204, 29892, 341, 3137, 1170, 29892, 4712, 1293, 287, 13, 4706, 19219, 10602, 448, 12953, 29892, 28256, 18901, 13, 4706, 4385, 10602, 448, 2401, 492, 2925, 13, 1678, 9995, 13, 1678, 4423, 29918, 9902, 353, 18028, 29889, 1524, 877, 6508, 1495, 13, 1678, 363, 2944, 297, 4423, 29918, 9902, 29901, 13, 4706, 1180, 29918, 1272, 353, 6088, 29918, 14369, 29918, 5029, 29898, 667, 29892, 525, 855, 4521, 7061, 1495, 13, 13, 1678, 18028, 29918, 9902, 353, 18028, 29889, 1524, 877, 1293, 292, 10602, 1495, 13, 1678, 363, 2944, 297, 18028, 29918, 9902, 29901, 13, 4706, 18028, 29918, 1272, 353, 6088, 29918, 14369, 29918, 5029, 29898, 667, 29892, 525, 13026, 1495, 13, 13, 1678, 1596, 18028, 29918, 1272, 13, 13, 13, 1753, 679, 29918, 1272, 29918, 18798, 29898, 2271, 1125, 13, 1678, 9995, 3617, 263, 848, 8343, 515, 3142, 29892, 736, 12205, 9995, 13, 1678, 2933, 353, 7274, 29889, 657, 29898, 2271, 29897, 13, 1678, 5447, 353, 10619, 9643, 29889, 3166, 1807, 29898, 5327, 29889, 3051, 29897, 13, 13, 1678, 5447, 29889, 3539, 877, 11249, 29918, 1272, 29889, 3134, 1495, 13, 1678, 363, 18028, 297, 5447, 29889, 657, 11991, 7295, 13, 4706, 6088, 29918, 14369, 29918, 1761, 292, 29898, 1761, 292, 29897, 29871, 13, 13, 13, 1753, 2436, 29918, 3134, 29918, 517, 29918, 1445, 29898, 2271, 29892, 4423, 1125, 13, 1678, 9995, 12354, 6560, 515, 525, 2271, 742, 2436, 304, 1887, 934, 525, 5479, 29915, 9995, 13, 1678, 1018, 29901, 13, 4706, 2933, 353, 7274, 29889, 657, 29898, 2271, 29897, 13, 4706, 565, 2933, 29889, 4882, 29918, 401, 1275, 29871, 29906, 29900, 29900, 29901, 13, 9651, 934, 353, 1722, 29898, 5479, 29892, 525, 29893, 1495, 13, 9651, 934, 29889, 3539, 29898, 5327, 29889, 3051, 29897, 13, 9651, 934, 29889, 5358, 580, 13, 9651, 736, 376, 14191, 3730, 5456, 304, 934, 29908, 13, 4706, 736, 4852, 2392, 1273, 29879, 411, 15668, 2933, 4660, 775, 29908, 1273, 13, 18884, 2933, 29889, 4882, 29918, 401, 29897, 13, 1678, 5174, 7274, 29889, 11739, 29879, 29889, 5350, 2392, 408, 321, 29901, 13, 4706, 736, 4852, 2392, 1273, 29872, 411, 16791, 304, 3142, 29908, 1273, 321, 29897, 13, 13, 13, 1753, 1303, 29918, 3134, 29918, 11010, 29898, 3134, 29918, 11010, 1125, 13, 1678, 9995, 3639, 4903, 29918, 11010, 313, 29990, 7230, 29897, 934, 408, 263, 1347, 9995, 13, 1678, 411, 1722, 29898, 3134, 29918, 11010, 29892, 525, 29878, 1495, 408, 10938, 29918, 1445, 29901, 13, 4706, 10938, 353, 10938, 29918, 1445, 29889, 949, 580, 13, 1678, 736, 10938, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1596, 525, 27795, 29915, 13, 1678, 1887, 29918, 1445, 353, 525, 11249, 29918, 1272, 29889, 3134, 29915, 13, 1678, 10938, 29918, 1445, 353, 525, 11010, 29889, 19168, 29915, 13, 13, 1678, 396, 679, 1749, 4903, 848, 515, 263, 3142, 2752, 13, 1678, 2436, 29918, 3134, 29918, 517, 29918, 1445, 29898, 13, 4706, 3142, 2433, 1124, 597, 29879, 29891, 299, 293, 362, 29889, 5893, 7734, 29889, 22942, 13140, 29889, 510, 29914, 1725, 5779, 29914, 29933, 3634, 29926, 3399, 3057, 29889, 3134, 742, 13, 4706, 4423, 29922, 2997, 29918, 1445, 29897, 13, 13, 1678, 396, 11539, 848, 2750, 263, 10938, 13, 1678, 396, 11010, 353, 1303, 29918, 3134, 29918, 11010, 29898, 11010, 29918, 1445, 29897, 13, 1678, 396, 3084, 353, 1714, 5971, 29898, 11010, 29897, 13, 13, 1678, 396, 20335, 9165, 12914, 29889, 3389, 580, 13, 2 ]
oandapy/exceptions.py
extreme4all/oandapy
0
22661
<gh_stars>0 """Exceptions.""" class OandaError(Exception): """ Generic error class, catches oanda response errors """ def __init__(self, error_response): self.error_response = error_response msg = f"OANDA API returned error code {error_response['code']} ({error_response['message']}) " super(OandaError, self).__init__(msg) class BadEnvironment(Exception): """environment should be: sandbox, practice or live.""" def __init__(self, environment): msg = f"Environment '{environment}' does not exist" super(BadEnvironment, self).__init__(msg)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 2451, 29879, 1213, 15945, 13, 13, 13, 1990, 438, 5863, 2392, 29898, 2451, 1125, 13, 1678, 9995, 3251, 293, 1059, 770, 29892, 4380, 267, 288, 5863, 2933, 4436, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1059, 29918, 5327, 1125, 13, 4706, 1583, 29889, 2704, 29918, 5327, 353, 1059, 29918, 5327, 13, 4706, 10191, 353, 285, 29908, 29949, 2190, 7698, 3450, 4133, 1059, 775, 426, 2704, 29918, 5327, 1839, 401, 2033, 29913, 21313, 2704, 29918, 5327, 1839, 4906, 2033, 1800, 376, 29871, 13, 13, 4706, 2428, 29898, 29949, 5863, 2392, 29892, 1583, 467, 1649, 2344, 12035, 7645, 29897, 13, 13, 13, 1990, 9178, 18649, 29898, 2451, 1125, 13, 1678, 9995, 20944, 881, 367, 29901, 11982, 1884, 29892, 6944, 470, 5735, 1213, 15945, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5177, 1125, 13, 4706, 10191, 353, 285, 29908, 18649, 22372, 20944, 10162, 947, 451, 1863, 29908, 13, 4706, 2428, 29898, 22050, 18649, 29892, 1583, 467, 1649, 2344, 12035, 7645, 29897, 13, 2 ]
extensisq/common.py
WRKampi/extensisq
2
103993
<reponame>WRKampi/extensisq<filename>extensisq/common.py import numpy as np from math import sqrt, copysign from warnings import warn import logging from scipy.integrate._ivp.common import ( validate_max_step, norm, validate_first_step, warn_extraneous) from scipy.integrate._ivp.base import OdeSolver, DenseOutput from scipy.integrate._ivp.rk import MIN_FACTOR, MAX_FACTOR NFS = np.array(0) # failed step counter def validate_tol(rtol, atol, y): """Validate tolerance values. atol can be scalar or array-like, rtol a scalar. The bound values are from RKSuite. These differ from those in scipy. Bounds are applied without warning. """ atol = np.asarray(atol) if atol.ndim > 0 and atol.shape != (y.size, ): raise ValueError("`atol` has wrong shape.") if np.any(atol < 0): raise ValueError("`atol` must be positive.") if not isinstance(rtol, float): raise ValueError("`rtol` must be a float.") if rtol < 0: raise ValueError("`rtol` must be positive.") # atol cannot be exactly zero. # For double precision float: sqrt(tiny) ~ 1.5e-154 tiny = np.finfo(y.dtype).tiny atol = np.maximum(atol, sqrt(tiny)) # rtol is bounded from both sides. # The lower bound is lower than in scipy. epsneg = np.finfo(y.dtype).epsneg rtol = np.minimum(np.maximum(rtol, 10 * epsneg), 0.01) return rtol, atol class RungeKutta(OdeSolver): """Base class for explicit runge kutta methods. This implementation mainly follows the scipy implementation. The current differences are: - Conventional (non FSAL) methods are detected and failed steps cost one function evaluation less than with the scipy implementation. - A different, more elaborate estimate for the size of the first step is used. - Horner's rule is used for dense output calculation. - A failed step counter is added. - The stepsize near the end of the integration is different: - look ahead to prevent too small step sizes - linear extrapolation if the last step is too small despite it. - the min_step accounts for the distance between C-values - the scale (weight) is smoothed differently - a different tolerance validation is used. - stiffness detection is added, can be turned off - second order stepsize control is added. """ # effective number of stages n_stages: int = NotImplemented # order of the main method order: int = NotImplemented # order of the secondary embedded method error_estimator_order: int = NotImplemented # runge kutta coefficient matrix A: np.ndarray = NotImplemented # shape: [n_stages, n_stages] # output coefficients (weights) B: np.ndarray = NotImplemented # shape: [n_stages] # time fraction coefficients (nodes) C: np.ndarray = NotImplemented # shape: [n_stages] # error coefficients (weights Bh - B) E: np.ndarray = NotImplemented # shape: [n_stages + 1] # dense output interpolation coefficients P: np.ndarray = NotImplemented # shape: [n_stages + 1, # order_polynomial] # Parameters for stiffness detection, optional stbrad: float = NotImplemented # radius of the arc tanang: float = NotImplemented # tan(valid angle < pi/2) # Parameters for stepsize control, optional sc_params = NotImplemented # tuple, or str def _init_min_step_parameters(self): """Define the parameters h_min_a and h_min_b for the min_step rule: min_step = max(h_min_a * abs(t), h_min_b) from RKSuite. """ # minimum difference between distinct C-values cdiff = 1. for c1 in self.C: for c2 in self.C: diff = abs(c1 - c2) if diff: cdiff = min(cdiff, diff) if cdiff < 1e-3: cdiff = 1e-3 logging.warning( 'Some C-values of this Runge Kutta method are nearly the ' 'same but not identical. This limits the minimum stepsize' 'You may want to check the implementation of this method.') # determine min_step parameters epsneg = np.finfo(self.y.dtype).epsneg tiny = np.finfo(self.y.dtype).tiny h_min_a = 10 * epsneg / cdiff h_min_b = sqrt(tiny) return h_min_a, h_min_b def _init_stiffness_detection(self, nfev_stiff_detect): if not (isinstance(nfev_stiff_detect, int) and nfev_stiff_detect >= 0): raise ValueError( "`nfev_stiff_detect` must be a non-negative integer.") self.nfev_stiff_detect = nfev_stiff_detect if NotImplemented in (self.stbrad, self.tanang): # disable stiffness detection if not implemented if nfev_stiff_detect not in (5000, 0): warn("This method does not implement stiffness detection. " "Changing the value of nfev_stiff_detect does nothing.") self.nfev_stiff_detect = 0 self.jflstp = 0 # failed step counter, last 40 if self.nfev_stiff_detect: self.okstp = 0 # successful step counter self.havg = 0.0 # average stepsize def _init_sc_control(self, sc_params): coefs = {"G": (0.7, -0.4, 0, 0.9), "S": (0.6, -0.2, 0, 0.9), "W": (2, -1, -1, 0.8), "standard": (1, 0, 0, 0.9)} if self.sc_params == NotImplemented: # use standard controller if not specified otherwise sc_params = sc_params or "standard" else: # use default controller of method if not specified otherwise sc_params = sc_params or self.sc_params if (isinstance(sc_params, str) and sc_params in coefs): kb1, kb2, a, g = coefs[sc_params] elif isinstance(sc_params, tuple) and len(sc_params) == 4: kb1, kb2, a, g = sc_params else: raise ValueError('sc_params should be a tuple of length 3 or one ' 'of the strings "G", "S", "W" or "standard"') # set all parameters self.minbeta1 = kb1 * self.error_exponent self.minbeta2 = kb2 * self.error_exponent self.minalpha = -a self.safety = g self.safety_sc = g ** (kb1 + kb2) self.min_error_norm = (MAX_FACTOR/g) ** (1/self.error_exponent) self.standard_sc = True # for first step def __init__(self, fun, t0, y0, t_bound, max_step=np.inf, rtol=1e-3, atol=1e-6, vectorized=False, first_step=None, nfev_stiff_detect=5000, sc_params=None, **extraneous): warn_extraneous(extraneous) super(RungeKutta, self).__init__(fun, t0, y0, t_bound, vectorized, support_complex=True) self.max_step = validate_max_step(max_step) self.rtol, self.atol = validate_tol(rtol, atol, self.y) self.f = self.fun(self.t, self.y) if self.f.dtype != self.y.dtype: raise TypeError('dtypes of solution and derivative do not match') self.error_exponent = -1 / (self.error_estimator_order + 1) self._init_stiffness_detection(nfev_stiff_detect) self.h_min_a, self.h_min_b = self._init_min_step_parameters() self._init_sc_control(sc_params) # size of first step: if first_step is None: b = self.t + self.direction * min( abs(self.t_bound - self.t), self.max_step) self.h_abs = abs(h_start( self.fun, self.t, b, self.y, self.f, self.error_estimator_order, self.rtol, self.atol)) else: self.h_abs = validate_first_step(first_step, t0, t_bound) self.K = np.empty((self.n_stages + 1, self.n), self.y.dtype) self.FSAL = 1 if self.E[self.n_stages] else 0 self.h_previous = None self.y_old = None NFS[()] = 0 # global failed step counter def _step_impl(self): # mostly follows the scipy implementation of scipy's RungeKutta t = self.t y = self.y h_abs, min_step = self._reassess_stepsize(t, y) if h_abs is None: # linear extrapolation for last step return True, None # loop until the step is accepted step_accepted = False step_rejected = False while not step_accepted: if h_abs < min_step: return False, self.TOO_SMALL_STEP h = h_abs * self.direction t_new = t + h # calculate stages needed for output self.K[0] = self.f for i in range(1, self.n_stages): self._rk_stage(h, i) # calculate error norm and solution y_new, error_norm = self._comp_sol_err(y, h) # evaluate error if error_norm < 1: step_accepted = True # don't trust very small error_norm values error_norm = max(self.min_error_norm, error_norm) if self.standard_sc: factor = self.safety * error_norm ** self.error_exponent self.standard_sc = False else: # use second order SC controller h_ratio = h / self.h_previous factor = self.safety_sc * ( error_norm ** self.minbeta1 * self.error_norm_old ** self.minbeta2 * h_ratio ** self.minalpha) factor = min(MAX_FACTOR, max(MIN_FACTOR, factor)) if step_rejected: factor = min(1, factor) h_abs *= factor else: step_rejected = True h_abs *= max(MIN_FACTOR, self.safety * error_norm ** self.error_exponent) NFS[()] += 1 self.jflstp += 1 # for stiffness detection if np.isnan(error_norm) or np.isinf(error_norm): return False, "Overflow or underflow encountered." if not self.FSAL: # evaluate ouput point for interpolation and next step self.K[self.n_stages] = self.fun(t + h, y_new) # store for next step, interpolation and stepsize control self.h_previous = h self.y_old = y self.h_abs = h_abs self.f = self.K[self.n_stages].copy() self.error_norm_old = error_norm # output self.t = t_new self.y = y_new # stiffness detection self._diagnose_stiffness() return True, None def _reassess_stepsize(self, t, y): # limit step size h_abs = self.h_abs min_step = max(self.h_min_a * (abs(t) + h_abs), self.h_min_b) if h_abs < min_step or h_abs > self.max_step: h_abs = min(self.max_step, max(min_step, h_abs)) self.standard_sc = True # handle final integration steps d = abs(self.t_bound - t) # remaining interval if d < 2 * h_abs: if d > h_abs: # h_abs < d < 2 * h_abs: "look ahead". # split d over last two steps. This reduces the chance of a # very small last step. h_abs = max(0.5 * d, min_step) self.standard_sc = True elif d >= min_step: # d <= h_abs: Don't step over t_bound h_abs = d else: # d < min_step: use linear extrapolation in this rare case h = self.t_bound - t y_new = y + h * self.f self.h_previous = h self.y_old = y self.t = self.t_bound self.y = y_new self.f = None # signals _dense_output_impl logging.warning( 'Linear extrapolation was used in the final step.') return None, min_step return h_abs, min_step def _estimate_error(self, K, h): # exclude K[-1] if not FSAL. It could contain nan or inf return h * (K[:self.n_stages + self.FSAL].T @ self.E[:self.n_stages + self.FSAL]) def _estimate_error_norm(self, K, h, scale): return norm(self._estimate_error(K, h) / scale) def _comp_sol_err(self, y, h): """Compute solution and error. The calculation of `scale` differs from scipy: The average instead of the maximum of abs(y) of the current and previous steps is used. """ y_new = y + h * (self.K[:self.n_stages].T @ self.B) scale = self.atol + self.rtol * 0.5*(np.abs(y) + np.abs(y_new)) if self.FSAL: # do FSAL evaluation if needed for error estimate self.K[self.n_stages, :] = self.fun(self.t + h, y_new) error_norm = self._estimate_error_norm(self.K, h, scale) return y_new, error_norm def _rk_stage(self, h, i): """compute a single RK stage""" dy = h * (self.K[:i, :].T @ self.A[i, :i]) self.K[i] = self.fun(self.t + self.C[i] * h, self.y + dy) def _dense_output_impl(self): """return denseOutput, detect if step was extrapolated linearly""" if self.f is None: # output was extrapolated linearly return LinearDenseOutput(self.t_old, self.t, self.y_old, self.y) # normal output Q = self.K.T @ self.P return HornerDenseOutput(self.t_old, self.t, self.y_old, Q) def _diagnose_stiffness(self): """Stiffness detection. Test only if there are many recent step failures, or after many function evaluations have been done. Warn the user if the problem is diagnosed as stiff. Original source: RKSuite.f, https://www.netlib.org/ode/rksuite/ """ if self.nfev_stiff_detect == 0: return self.okstp += 1 h = self.h_previous self.havg = 0.9 * self.havg + 0.1 * h # exp moving average # reset after the first 20 steps to: # - get stepsize on scale # - reduce the effect of a possible initial transient if self.okstp == 20: self.havg = h self.jflstp = 0 # There are lots of failed steps (lotsfl = True) if 10 or more step # failures occurred in the last 40 successful steps. if self.okstp % 40 == 39: lotsfl = self.jflstp >= 10 self.jflstp = 0 # reset each 40 steps else: lotsfl = False # Test for stifness after each nfev_stiff_detect evaluations # then toomch = True many_steps = self.nfev_stiff_detect//self.n_stages toomch = self.okstp % many_steps == many_steps - 1 # If either too much work has been done or there are lots of failed # steps, test for stiffness. if toomch or lotsfl: # Regenerate weight vector avgy = 0.5 * (np.abs(self.y) + np.abs(self.y_old)) tiny = np.finfo(self.y.dtype).tiny wt = np.maximum(avgy, sqrt(tiny)) # and error vector, wich is a good initial perturbation vector v0 = np.atleast_1d(self._estimate_error(self.K, self.h_previous)) # stiff_a determines whether the problem is stiff. In some # circumstances it is UNSURE. The decision depends on two things: # whether the step size is being restricted on grounds of stability # and whether the integration to t_bound can be completed in no # more than nfev_stiff_detect function evaluations. stif, rootre = stiff_a( self.fun, self.t, self.y, self.h_previous, self.havg, self.t_bound, self.nfev_stiff_detect, wt, self.f, v0, self.n_stages, self.stbrad, self.tanang) # inform the user about stiffness with warning messages # the messages about remaining work have been removed from the # original code. if stif is None: # unsure about stiffness if rootre is None: # no warning is given logging.info('Stiffness detection did not converge') if not rootre: # A complex pair of roots has been found near the imaginary # axis, where the stability boundary of the method is not # well defined. # A warning is given only if there are many failed steps. # This reduces the chance of a false positive diagnosis. if lotsfl: warn('Your problem has a complex pair of dominant ' 'roots near the imaginary axis. There are ' 'many recently failed steps. You should ' 'probably change to a code intended for ' 'oscillatory problems.') else: logging.info( 'The problem has a complex pair of dominant roots ' 'near the imaginary axis. There are not many ' 'failed steps.') else: # this should not happen logging.warning( 'stif=None, rootre=True; this should not happen') elif stif: # the problem is stiff if rootre is None: # this should not happen logging.warning( 'stif=True, rootre=None; this should not happen') elif rootre: warn('Your problem has a real dominant root ' 'and is diagnosed as stiff. You should probably ' 'change to a code intended for stiff problems.') else: warn('Your problem has a complex pair of dominant roots ' 'and is diagnosed as stiff. You should probably ' 'change to a code intended for stiff problems.') else: # stif == False # no warning is given if rootre is None: logging.info( 'Stiffness detection has diagnosed the problem as ' 'non-stiff, without performing power iterations') elif rootre: logging.info( 'The problem has a real dominant root ' 'and is not stiff') else: logging.info( 'The problem has a complex pair of dominant roots ' 'and is not stiff') def h_start(df, a, b, y, yprime, morder, rtol, atol): """h_shart computes a starting step size to be used in solving initial value problems in ordinary differential equations. This method is developed by <NAME> and described in [1]_. This function is a Python translation of the Fortran source code [2]_. The two main modifications are: using the RMS norm from scipy.integrate allowing for complex valued input Parameters ---------- df : callable Right-hand side of the system. The calling signature is fun(t, y). Here t is a scalar. The ndarray y has has shape (n,) and fun must return array_like with the same shape (n,). a : float This is the initial point of integration. b : float This is a value of the independent variable used to define the direction of integration. A reasonable choice is to set `b` to the first point at which a solution is desired. You can also use `b , if necessary, to restrict the length of the first integration step because the algorithm will not compute a starting step length which is bigger than abs(b-a), unless `b` has been chosen too close to `a`. (it is presumed that h_start has been called with `b` different from `a` on the machine being used. y : array_like, shape (n,) This is the vector of initial values of the n solution components at the initial point `a`. yprime : array_like, shape (n,) This is the vector of derivatives of the n solution components at the initial point `a`. (defined by the differential equations in subroutine `df`) morder : int This is the order of the formula which will be used by the initial value method for taking the first integration step. rtol : float Relative tolereance used by the differential equation method. atol : float or array_like Absolute tolereance used by the differential equation method. Returns ------- float An appropriate starting step size to be attempted by the differential equation method. References ---------- .. [1] <NAME>, "Starting step size for an ODE solver", Journal of Computational and Applied Mathematics, Vol. 9, No. 2, 1983, pp. 177-191, ISSN 0377-0427. https://doi.org/10.1016/0377-0427(83)90040-7 .. [2] Slatec Fortran code dstrt.f. https://www.netlib.org/slatec/src/ """ # needed to pass scipy unit test: if y.size == 0: return np.inf # compensate for modified call list neq = y.size spy = np.empty_like(y) pv = np.empty_like(y) etol = atol + rtol * np.abs(y) # `small` is a small positive machine dependent constant which is used for # protecting against computations with numbers which are too small relative # to the precision of floating point arithmetic. `small` should be set to # (approximately) the smallest positive DOUBLE PRECISION number such that # (1. + small) > 1. on the machine being used. The quantity small**(3/8) # is used in computing increments of variables for approximating # derivatives by differences. Also the algorithm will not compute a # starting step length which is smaller than 100*small*ABS(A). # `big` is a large positive machine dependent constant which is used for # preventing machine overflows. A reasonable choice is to set big to # (approximately) the square root of the largest DOUBLE PRECISION number # which can be held in the machine. big = sqrt(np.finfo(y.dtype).max) small = np.nextafter(np.finfo(y.dtype).epsneg, 1.0) # following dhstrt.f from here dx = b - a absdx = abs(dx) relper = small**0.375 # compute an approximate bound (dfdxb) on the partial derivative of the # equation with respect to the independent variable. protect against an # overflow. also compute a bound (fbnd) on the first derivative locally. da = copysign(max(min(relper * abs(a), absdx), 100.0 * small * abs(a)), dx) da = da or relper * dx sf = df(a + da, y) # evaluate yp = sf - yprime delf = norm(yp) dfdxb = big if delf < big * abs(da): dfdxb = delf / abs(da) fbnd = norm(sf) # compute an estimate (dfdub) of the local lipschitz constant for the # system of differential equations. this also represents an estimate of the # norm of the jacobian locally. three iterations (two when neq=1) are used # to estimate the lipschitz constant by numerical differences. the first # perturbation vector is based on the initial derivatives and direction of # integration. the second perturbation vector is formed using another # evaluation of the differential equation. the third perturbation vector # is formed using perturbations based only on the initial values. # components that are zero are always changed to non-zero values (except # on the first iteration). when information is available, care is taken to # ensure that components of the perturbation vector have signs which are # consistent with the slopes of local solution curves. also choose the # largest bound (fbnd) for the first derivative. # perturbation vector size is held constant for all iterations. compute # this change from the size of the vector of initial values. dely = relper * norm(y) dely = dely or relper dely = copysign(dely, dx) delf = norm(yprime) fbnd = max(fbnd, delf) if delf: # use initial derivatives for first perturbation spy[:] = yprime yp[:] = yprime else: # cannot have a null perturbation vector spy[:] = 0.0 yp[:] = 1.0 delf = norm(yp) dfdub = 0.0 lk = min(neq + 1, 3) for k in range(1, lk + 1): # define perturbed vector of initial values pv[:] = y + dely / delf * yp if k == 2: # use a shifted value of the independent variable in computing # one estimate yp[:] = df(a + da, pv) # evaluate pv[:] = yp - sf else: # evaluate derivatives associated with perturbed vector and # compute corresponding differences yp[:] = df(a, pv) # evaluate pv[:] = yp - yprime # choose largest bounds on the first derivative and a local lipschitz # constant fbnd = max(fbnd, norm(yp)) delf = norm(pv) if delf >= big * abs(dely): # protect against an overflow dfdub = big break dfdub = max(dfdub, delf / abs(dely)) if k == lk: break # choose next perturbation vector delf = delf or 1.0 if k == 2: dy = y.copy() # vec dy[:] = np.where(dy, dy, dely / relper) else: dy = pv.copy() # abs removed (complex) dy[:] = np.where(dy, dy, delf) spy[:] = np.where(spy, spy, yp) # use correct direction if possible. yp[:] = np.where(spy, np.copysign(dy.real, spy.real), dy.real) if np.issubdtype(y.dtype, np.complexfloating): yp[:] += 1j*np.where(spy, np.copysign(dy.imag, spy.imag), dy.imag) delf = norm(yp) # compute a bound (ydpb) on the norm of the second derivative ydpb = dfdxb + dfdub * fbnd # define the tolerance parameter upon which the starting step size is to be # based. a value in the middle of the error tolerance range is selected. tolexp = np.log10(etol) tolsum = tolexp.sum() tolmin = min(tolexp.min(), big) tolp = 10.0 ** (0.5 * (tolsum / neq + tolmin) / (morder + 1)) # compute a starting step size based on the above first and second # derivative information # restrict the step length to be not bigger than abs(b-a). # (unless b is too close to a) h = absdx if ydpb == 0.0 and fbnd == 0.0: # both first derivative term (fbnd) and second derivative term (ydpb) # are zero if tolp < 1.0: h = absdx * tolp elif ydpb == 0.0: # only second derivative term (ydpb) is zero if tolp < fbnd * absdx: h = tolp / fbnd else: # second derivative term (ydpb) is non-zero srydpb = sqrt(0.5 * ydpb) if tolp < srydpb * absdx: h = tolp / srydpb # further restrict the step length to be not bigger than 1/dfdub if dfdub: # `if` added (div 0) h = min(h, 1.0 / dfdub) # finally, restrict the step length to be not smaller than # 100*small*abs(a). however, if a=0. and the computed h underflowed to # zero, the algorithm returns small*abs(b) for the step length. h = max(h, 100.0 * small * abs(a)) h = h or small * abs(b) # now set direction of integration h = copysign(h, dx) return h class HornerDenseOutput(DenseOutput): """use Horner's rule for the evaluation of the dense output polynomials. """ def __init__(self, t_old, t, y_old, Q): super(HornerDenseOutput, self).__init__(t_old, t) self.h = t - t_old self.Q = Q * self.h self.y_old = y_old def _call_impl(self, t): # scaled time x = (t - self.t_old) / self.h # Horner's rule: y = self.Q.T[-1, :, np.newaxis] * x for q in reversed(self.Q.T[:-1]): y += q[:, np.newaxis] y *= x y += self.y_old[:, np.newaxis] # need this `if` to pass scipy's unit tests. I'm not sure why. if t.shape: return y else: return y[:, 0] class LinearDenseOutput(DenseOutput): """Linear interpolator. This class can be used if the output was obtained by extrapolation (if the end point was too close to perform a normal integration step). """ def __init__(self, t_old, t, y_old, y): super(LinearDenseOutput, self).__init__(t_old, t) self.h = t - t_old self.y_old = y_old[:, np.newaxis] self.dy = (y - y_old)[:, np.newaxis] def _call_impl(self, t): t = np.atleast_1d(t) x = (t - self.t_old) / self.h # linear interpolation y = x * self.dy y += self.y_old # need this `if` to pass scipy's unit tests. I'm not sure why. if t.shape: return y else: return y[:, 0] class CubicDenseOutput(HornerDenseOutput): """Cubic, C1 continuous interpolator """ def __init__(self, t_old, t, y_old, y, f_old, f): # transform input h = t - t_old dy = (y - y_old) K = np.stack([f_old, dy/h, f]) P = np.array([[1.0, -2.0, 1.0], [0.0, 3.0, -2.0], [0.0, -1.0, 1.0]]) Q = K.T @ P super(CubicDenseOutput, self).__init__(t_old, t, y_old, Q) def stiff_a(fun, x, y, hnow, havg, xend, maxfcn, wt, fxy, v0, cost, stbrad, tanang): """`stiff_a` diagnoses stiffness for an explicit Runge-Kutta code. It may be useful for other explicit methods too. A nonlinear power method is used to find the dominant eigenvalues of the problem. These are compared to the stability regions of the method to assess if the problem is stiff. Convergence of the power iterations is carefully monitored [1]. This is a Python translation of [2]. The assessment is not free. Several derivative function evaluations are done. This function should not be called each step, but only if either many step failures have been observed, or a lot of work has been done. Support for complex valued problems is added in a quick and dirty way. The original complex vectors are represented by real vectors of twice the length with the real and imaginary parts of the original. If the dominant eigenvalue of the problem is complex, then its complex conjugate is also found. This does not seem to interfere with the stiffness assessment. Parameters ---------- fun : callable Right-hand side of the system. The calling signature is fun(t, y). Here t is a scalar. The ndarray y has has shape (n,) and fun must return array_like with the same shape (n,). x : float Current value of the independent variable (time); `t` in scipy y : array_like, shape (n,) Current approximate solution. hnow : float Size of the last integration step. havg : float Average step size. xend : float Final value of the independent variable (time): `t_bound` in scipy. maxfcn : int An acceptable number of function evaluations for the integration. The Stiffness test is not done if `xend` is expected to be reached in fewer than `maxfcn` steps; the value False is returned in that case. Prediction uses `havg` and `cost`. wt : array_like, shape (n,) Array with positive, non-zero weights. Values near the magnitude of `y` during the last integration step should work well. fxy : array_like, shape (n,) fxy = fun(x, y). It is an input argument because it's usually available from the integrator. v0 : array_like, shape (n,) A perturbation vector to start the power iteration to find the dominant eigenvalues for stiffness detection. The error vector (difference between two embedded solutions) works well for Runge Kutta methods. cost : int Effective number of function evaluations per step if the integration method. stbrad : float The stability boundary of the method is approximated as a circular arc around the origin. `stbrad` is the radius of this arc. tanang : float The stability boundary of the method is approximated as a circular arc around the origin. This approximation becomes inaccurate near the imaginary axis. `tanang` is the tangent of the angle in the upper left half-plane for which the approximation is still accurate. A eigenvalue z for which -z.imag/z.real = tan(angle(-z)) <= tanang can be assessed. Outside this range, the value None (unsure) is returned. A warning is given in that case, because this information may still be useful to the user. Returns ------- stif : None or bool Result of the stiffness detection: True if the problem is stiff, False if it is not stiff, and None if unsure. rootre : None or bool Complex type of root found in stiffness detection: True if the root is real, False if it is complex, and None if unknown. References ---------- [1] <NAME>, "Diagnosing Stiffness for Runge–Kutta Methods", SIAM Journal on Scientific and Statistical Computing, Vol. 12, No. 2, 1991, pp. 260-272, https://doi.org/10.1137/0912015 [2] Original source: RKSuite.f, https://www.netlib.org/ode/rksuite/ """ epsneg = np.finfo(y.dtype).epsneg rootre = None # uncertain # If the problem is complex, create double length real vectors of the # original complex vectors if np.issubdtype(y.dtype, np.complexfloating): def expand_complex(v): return np.concatenate((v.real, v.imag)) def contract_complex(v): return v[:v.size//2] + v[v.size//2:]*1j def f(x, y): return expand_complex(fun(x, contract_complex(y))) y = expand_complex(y) fxy = expand_complex(fxy) v0 = expand_complex(v0) wt = np.concatenate((wt, wt)) else: f = fun # If the current step size differs substantially from the average, # the problem is not stiff. if abs(hnow/havg) > 5 or abs(hnow/havg) < 0.2: stif = False return stif, rootre # The average step size is used to predict the cost in function evaluations # of finishing the integration to xend. If this cost is no more than # maxfcn, the problem is declared not stiff: If the step size is being # restricted on grounds of stability, it will stay close to havg. # The prediction will then be good, but the cost is too low to consider the # problem stiff. If the step size is not close to havg, the problem is not # stiff. Either way there is no point to testing for a step size # restriction due to stability. xtrfcn = cost * abs((xend - x) / havg) if xtrfcn <= maxfcn: stif = False return stif, rootre # There have been many step failures or a lot of work has been done. Now # we must determine if this is due to the stability characteristics of the # formula. This is done by calculating the dominant eigenvalues of the # local Jacobian and then testing whether havg corresponds to being on the # boundary of the stability region. # The size of y[:] provides scale information needed to approximate # the Jacobian by differences. ynrm = sqrt((y/wt) @ (y/wt)) sqrrmc = sqrt(epsneg) scale = ynrm * sqrrmc if scale == 0.0: # Degenerate case. y[:] is (almost) the zero vector so the scale is # not defined. The input vector v0[:] is the difference between y[:] # and a lower order approximation to the solution that is within the # error tolerance. When y[:] vanishes, v0[:] is itself an acceptable # approximate solution, so we take scale from it, if this is possible. ynrm = sqrt((v0/wt) @ (v0/wt)) scale = ynrm * sqrrmc if scale == 0.0: stif = None # uncertain return stif, rootre v0v0 = (v0/wt) @ (v0/wt) if v0v0 == 0.0: # Degenerate case. v0[:] is (almost) the zero vector so cannot # be used to define a direction for an increment to y[:]. Try a # "random" direction. v0[:] = 1.0 v0v0 = (v0/wt) @ (v0/wt) v0nrm = sqrt(v0v0) v0 /= v0nrm v0v0 = 1.0 # Use a nonlinear power method to estimate the two dominant eigenvalues. # v0[:] is often very rich in the two associated eigenvectors. For this # reason the computation is organized with the expectation that a minimal # number of iterations will suffice. Indeed, it is necessary to recognize # a kind of degeneracy when there is a dominant real eigenvalue. The # subroutine stiff_b does this. In the first try, ntry = 0, a Rayleigh # quotient for such an eigenvalue is initialized as rold. After each # iteration, REROOT computes a new Rayleigh quotient and tests whether the # two approximations agree to one tenth of one per cent and the eigenvalue, # eigenvector pair satisfy a stringent test on the residual. rootre = True # signals that a single dominant real root has been found. maxtry = 8 for ntry in range(maxtry): v1, v1v1 = stiff_d(v0, havg, x, y, f, fxy, wt, scale, v0v0) # The quantity sqrt(v1v1/v0v0) is a lower bound for the product of havg # and a Lipschitz constant. If it should be LARGE, stiffness is not # restricting the step size to the stability region. The principle is # clear enough, but the real reason for this test is to recognize an # extremely inaccurate computation of v1v1 due to finite precision # arithmetic in certain degenerate circumstances. LARGE = 1.0e10 if sqrt(v1v1) > LARGE * sqrt(v0v0): stif = None # uncertain rootre = None # uncertain return stif, rootre v0v1 = (v0/wt) @ (v1/wt) if ntry == 0: rold = v0v1 / v0v0 # This is the first Rayleigh quotient approximating the product of # havg and a dominant real eigenvalue. If it should be very small, # the problem is not stiff. It is important to test for this # possibility so as to prevent underflow and degeneracies in the # subsequent iteration. cubrmc = epsneg ** (1/3) if abs(rold) < cubrmc: stif = False rootre = None # uncertain return stif, rootre else: rold, rho, root1, root2, rootre = stiff_b(v1v1, v0v1, v0v0, rold) if rootre: break v2, v2v2 = stiff_d(v1, havg, x, y, f, fxy, wt, scale, v1v1) v0v2 = (v0/wt) @ (v2/wt) v1v2 = (v1/wt) @ (v2/wt) rold, rho, root1, root2, rootre = stiff_b(v2v2, v1v2, v1v1, rold) if rootre: break # Fit a quadratic in the eigenvalue to the three successive iterates # v0[:], v1[:], v2[:] of the power method to get a first approximation # to a pair of eigenvalues. A test made earlier in stiff_b implies # that the quantity det1 here will not be too small. det1 = v0v0 * v1v1 - v0v1**2 alpha1 = (-v0v0 * v1v2 + v0v1 * v0v2)/det1 beta1 = (v0v1 * v1v2 - v1v1 * v0v2)/det1 # Iterate again to get v3, test again for degeneracy, and then fit a # quadratic to v1[:], v2[:], v3[:] to get a second approximation to a # pair of eigenvalues. v3, v3v3 = stiff_d(v2, havg, x, y, f, fxy, wt, scale, v2v2) v1v3 = (v1/wt) @ (v3/wt) v2v3 = (v2/wt) @ (v3/wt) rold, rho, root1, root2, rootre = stiff_b(v3v3, v2v3, v2v2, rold) if rootre: break det2 = v1v1 * v2v2 - v1v2**2 alpha2 = (-v1v1 * v2v3 + v1v2 * v1v3)/det2 beta2 = (v1v2 * v2v3 - v2v2 * v1v3)/det2 # First test the residual of the quadratic fit to see if we might # have determined a pair of eigenvalues. res2 = abs(v3v3 + v2v2*alpha2**2 + v1v1*beta2**2 + 2*v2v3*alpha2 + 2*v1v3*beta2 + 2*v1v2*alpha2*beta2) if res2 <= 1e-6 * v3v3: # Calculate the two approximate pairs of eigenvalues. r1, r2 = stiff_c(alpha1, beta1) root1, root2 = stiff_c(alpha2, beta2) # The test for convergence is done on the larger root of the second # approximation. It is complicated by the fact that one pair of # roots might be real and the other complex. First calculate the # spectral radius rho of havg*J as the magnitude of root1. Then # see if one of the roots r1, r2 is within one per cent of root1. # A subdominant root may be very poorly approximated if its # magnitude is much smaller than rho -- this does not matter in our # use of these eigenvalues. rho = sqrt(root1[0]**2 + root1[1]**2) D1 = (root1[0] - r1[0])**2 + (root1[1] - r1[1])**2 D2 = (root1[0] - r2[0])**2 + (root1[1] - r2[1])**2 DIST = sqrt(min(D1, D2)) if DIST <= 0.001*rho: break # Do not have convergence yet. Because the iterations are cheap, and # because the convergence criterion is stringent, we are willing to try # a few iterations. v3nrm = sqrt(v3v3) v0 = v3/v3nrm v0v0 = 1.0 else: # Iterations did not converge stif = None # uncertain rootre = None # uncertain return stif, rootre # Iterations have converged # We now have the dominant eigenvalues. Decide if the average step size is # being restricted on grounds of stability. Check the real parts of the # eigenvalues. First see if the dominant eigenvalue is in the left half # plane -- there won't be a stability restriction unless it is. If there # is another eigenvalue of comparable magnitude with a positive real part, # the problem is not stiff. If the dominant eigenvalue is too close to the # imaginary axis, we cannot diagnose stiffness. rootre = root1[1] == 0.0 # print(ntry, (root1[0] + root1[1]*1j)/havg, # (root2[0] + root2[1]*1j)/havg, rootre) if root1[0] > 0.0: stif = False return stif, rootre rho2 = sqrt(root2[0]**2 + root2[1]**2) if rho2 >= 0.9 * rho and root2[0] > 0.0: stif = False return stif, rootre if abs(root1[1]) > abs(root1[0]) * tanang: stif = None # uncertain return stif, rootre # If the average step size corresponds to being well within the stability # region, the step size is not being restricted because of stability. stif = rho >= 0.9 * stbrad return stif, rootre def stiff_b(v1v1, v0v1, v0v0, rold): """called from stiff_a(). Decide if the iteration has degenerated because of a strongly dominant real eigenvalue. Have just computed the latest iterate. v1v1 is its dot product with itself, v0v1 is the dot product of the previous iterate with the current one, and v0v0 is the dot product of the previous iterate with itself. rold is a previous Rayleigh quotient approximating a dominant real eigenvalue. It must be computed directly the first time the subroutine is called. It is updated each call to stiff_b, hence is available for subsequent calls. If there is a strongly dominant real eigenvalue, rootre is set True, root1[:] returns the eigenvalue, rho returns the magnitude of the eigenvalue, and root2[:] is set to zero. Original source: RKSuite.f, https://www.netlib.org/ode/rksuite/ """ # real and imag parts of roots are returned in a list root1 = [0.0, 0.0] root2 = [0.0, 0.0] r = v0v1 / v0v0 rho = abs(r) det = v0v0 * v1v1 - v0v1**2 res = abs(det / v0v0) rootre = det == 0.0 or (res <= 1e-6 * v1v1 and abs(r - rold) <= 0.001 * rho) if rootre: root1[0] = r rold = r return rold, rho, root1, root2, rootre def stiff_c(alpha, beta): """called from stiff_a(). This subroutine computes the two complex roots r1 and r2 of the quadratic equation x**2 + alpha*x + beta = 0. The magnitude of r1 is greater than or equal to the magnitude of r2. r1 and r2 are returned as vectors of two components with the first being the real part of the complex number and the second being the imaginary part. Original source: RKSuite.f, https://www.netlib.org/ode/rksuite/ """ # real and imag parts of roots are returned in a list r1 = [0.0, 0.0] r2 = [0.0, 0.0] temp = alpha / 2 disc = temp**2 - beta if disc == 0.0: # Double root. r1[0] = r2[0] = -temp return r1, r2 sqdisc = sqrt(abs(disc)) if disc < 0.0: # Complex conjugate roots. r1[0] = r2[0] = -temp r1[1] = sqdisc r2[1] = -sqdisc else: # Real pair of roots. Calculate the bigger one in r1[0]. if temp > 0.0: r1[0] = -temp - sqdisc else: r1[0] = -temp + sqdisc r2[0] = beta / r1[0] return r1, r2 def stiff_d(v, havg, x, y, f, fxy, wt, scale, vdotv): """called from stiff_a(). For an input vector v[:], this subroutine computes a vector z[:] that approximates the product havg*J*V where havg is an input scalar and J is the Jacobian matrix of a function f evaluated at the input arguments (x, y[:]). This function is defined by a subroutine of the form f[:] = f(t, u) that when given t and u[:], returns the value of the function in f[:]. The input vector fxy[:] is defined by f(x, y). Scaling is a delicate matter. A weighted Euclidean norm is used with the (positive) weights provided in wt[:]. The input scalar scale is the square root of the unit roundoff times the norm of y[:]. The square of the norm of the input vector v[:] is input as vdotv. The routine outputs the square of the norm of the output vector z[:] as zdotz. Original source: RKSuite.f, https://www.netlib.org/ode/rksuite/ """ # scale v[:] so that it can be used as an increment to y[:] # for an accurate difference approximation to the Jacobian. temp1 = scale/sqrt(vdotv) z = f(x, y + temp1 * v) # evaluate # Form the difference approximation. At the same time undo # the scaling of v[:] and introduce the factor of havg. z = havg/temp1 * (z - fxy) zdotz = (z/wt) @ (z/wt) return z, zdotz
[ 1, 529, 276, 1112, 420, 29958, 9980, 29968, 1160, 29875, 29914, 1062, 6322, 29939, 29966, 9507, 29958, 1062, 6322, 29939, 29914, 9435, 29889, 2272, 13, 5215, 12655, 408, 7442, 13, 3166, 5844, 1053, 18074, 2273, 29892, 5614, 952, 647, 13, 3166, 18116, 1053, 29383, 13, 5215, 12183, 13, 3166, 4560, 2272, 29889, 14146, 403, 3032, 440, 29886, 29889, 9435, 1053, 313, 13, 1678, 12725, 29918, 3317, 29918, 10568, 29892, 6056, 29892, 12725, 29918, 4102, 29918, 10568, 29892, 29383, 29918, 1062, 10800, 681, 29897, 13, 3166, 4560, 2272, 29889, 14146, 403, 3032, 440, 29886, 29889, 3188, 1053, 438, 311, 13296, 369, 29892, 360, 1947, 6466, 13, 3166, 4560, 2272, 29889, 14146, 403, 3032, 440, 29886, 29889, 29878, 29895, 1053, 341, 1177, 29918, 4519, 1783, 1955, 29892, 18134, 29918, 4519, 1783, 1955, 13, 13, 13, 29940, 9998, 353, 7442, 29889, 2378, 29898, 29900, 29897, 462, 462, 308, 396, 5229, 4331, 6795, 13, 13, 13, 1753, 12725, 29918, 25027, 29898, 2273, 324, 29892, 472, 324, 29892, 343, 1125, 13, 1678, 9995, 7211, 403, 20341, 749, 1819, 29889, 472, 324, 508, 367, 17336, 470, 1409, 29899, 4561, 29892, 364, 25027, 263, 13, 1678, 17336, 29889, 450, 3216, 1819, 526, 515, 390, 29968, 5091, 568, 29889, 4525, 1163, 515, 1906, 297, 13, 1678, 4560, 2272, 29889, 350, 3885, 526, 7436, 1728, 9177, 29889, 13, 1678, 9995, 13, 1678, 472, 324, 353, 7442, 29889, 294, 2378, 29898, 14947, 29897, 13, 1678, 565, 472, 324, 29889, 299, 326, 1405, 29871, 29900, 322, 472, 324, 29889, 12181, 2804, 313, 29891, 29889, 2311, 29892, 29871, 1125, 13, 4706, 12020, 7865, 2392, 703, 29952, 14947, 29952, 756, 2743, 8267, 23157, 13, 1678, 565, 7442, 29889, 1384, 29898, 14947, 529, 29871, 29900, 1125, 13, 4706, 12020, 7865, 2392, 703, 29952, 14947, 29952, 1818, 367, 6374, 23157, 13, 1678, 565, 451, 338, 8758, 29898, 2273, 324, 29892, 5785, 1125, 13, 4706, 12020, 7865, 2392, 703, 29952, 2273, 324, 29952, 1818, 367, 263, 5785, 23157, 13, 1678, 565, 364, 25027, 529, 29871, 29900, 29901, 13, 4706, 12020, 7865, 2392, 703, 29952, 2273, 324, 29952, 1818, 367, 6374, 23157, 13, 13, 1678, 396, 472, 324, 2609, 367, 3721, 5225, 29889, 13, 1678, 396, 1152, 3765, 16716, 5785, 29901, 18074, 2273, 29898, 25649, 29897, 3695, 29871, 29896, 29889, 29945, 29872, 29899, 29896, 29945, 29946, 13, 1678, 21577, 353, 7442, 29889, 29888, 3888, 29898, 29891, 29889, 29881, 1853, 467, 25649, 13, 1678, 472, 324, 353, 7442, 29889, 27525, 398, 29898, 14947, 29892, 18074, 2273, 29898, 25649, 876, 13, 13, 1678, 396, 364, 25027, 338, 12635, 515, 1716, 11192, 29889, 13, 1678, 396, 450, 5224, 3216, 338, 5224, 1135, 297, 4560, 2272, 29889, 13, 1678, 321, 567, 10052, 353, 7442, 29889, 29888, 3888, 29898, 29891, 29889, 29881, 1853, 467, 8961, 10052, 13, 1678, 364, 25027, 353, 7442, 29889, 1195, 12539, 29898, 9302, 29889, 27525, 398, 29898, 2273, 324, 29892, 29871, 29896, 29900, 334, 321, 567, 10052, 511, 29871, 29900, 29889, 29900, 29896, 29897, 13, 1678, 736, 364, 25027, 29892, 472, 324, 13, 13, 13, 1990, 7525, 479, 29968, 329, 941, 29898, 29949, 311, 13296, 369, 1125, 13, 1678, 9995, 5160, 770, 363, 6261, 1065, 479, 413, 329, 941, 3519, 29889, 13, 13, 1678, 910, 5314, 14364, 4477, 278, 4560, 2272, 5314, 29889, 450, 1857, 13, 1678, 12651, 526, 29901, 13, 418, 448, 1281, 794, 1848, 313, 5464, 383, 29903, 1964, 29897, 3519, 526, 17809, 322, 5229, 6576, 3438, 13, 4706, 697, 740, 17983, 3109, 1135, 411, 278, 4560, 2272, 5314, 29889, 13, 418, 448, 319, 1422, 29892, 901, 19430, 12678, 363, 278, 2159, 310, 278, 937, 4331, 13, 4706, 338, 1304, 29889, 13, 418, 448, 6912, 1089, 29915, 29879, 5751, 338, 1304, 363, 20619, 1962, 13944, 29889, 13, 418, 448, 319, 5229, 4331, 6795, 338, 2715, 29889, 13, 418, 448, 450, 6576, 675, 2978, 278, 1095, 310, 278, 13465, 338, 1422, 29901, 13, 4706, 448, 1106, 14432, 304, 5557, 2086, 2319, 4331, 15786, 13, 4706, 448, 5608, 1294, 2390, 22671, 565, 278, 1833, 4331, 338, 2086, 2319, 15020, 372, 29889, 13, 418, 448, 278, 1375, 29918, 10568, 15303, 363, 278, 5418, 1546, 315, 29899, 5975, 13, 418, 448, 278, 6287, 313, 7915, 29897, 338, 10597, 287, 17587, 13, 418, 448, 263, 1422, 20341, 749, 8845, 338, 1304, 29889, 13, 418, 448, 380, 2593, 2264, 15326, 338, 2715, 29892, 508, 367, 6077, 1283, 13, 418, 448, 1473, 1797, 6576, 675, 2761, 338, 2715, 29889, 13, 1678, 9995, 13, 13, 1678, 396, 11828, 1353, 310, 22950, 13, 1678, 302, 29918, 303, 1179, 29901, 938, 353, 2216, 1888, 2037, 287, 13, 13, 1678, 396, 1797, 310, 278, 1667, 1158, 13, 1678, 1797, 29901, 938, 353, 2216, 1888, 2037, 287, 13, 13, 1678, 396, 1797, 310, 278, 16723, 15685, 1158, 13, 1678, 1059, 29918, 342, 326, 1061, 29918, 2098, 29901, 938, 353, 2216, 1888, 2037, 287, 13, 13, 1678, 396, 1065, 479, 413, 329, 941, 10825, 4636, 13, 1678, 319, 29901, 7442, 29889, 299, 2378, 353, 2216, 1888, 2037, 287, 795, 396, 8267, 29901, 518, 29876, 29918, 303, 1179, 29892, 302, 29918, 303, 1179, 29962, 13, 13, 1678, 396, 1962, 16127, 313, 705, 5861, 29897, 13, 1678, 350, 29901, 7442, 29889, 299, 2378, 353, 2216, 1888, 2037, 287, 795, 396, 8267, 29901, 518, 29876, 29918, 303, 1179, 29962, 13, 13, 1678, 396, 931, 15958, 16127, 313, 18010, 29897, 13, 1678, 315, 29901, 7442, 29889, 299, 2378, 353, 2216, 1888, 2037, 287, 795, 396, 8267, 29901, 518, 29876, 29918, 303, 1179, 29962, 13, 13, 1678, 396, 1059, 16127, 313, 705, 5861, 20303, 448, 350, 29897, 13, 1678, 382, 29901, 7442, 29889, 299, 2378, 353, 2216, 1888, 2037, 287, 795, 396, 8267, 29901, 518, 29876, 29918, 303, 1179, 718, 29871, 29896, 29962, 13, 13, 1678, 396, 20619, 1962, 29694, 16127, 13, 1678, 349, 29901, 7442, 29889, 299, 2378, 353, 2216, 1888, 2037, 287, 795, 396, 8267, 29901, 518, 29876, 29918, 303, 1179, 718, 29871, 29896, 29892, 13, 1678, 396, 462, 462, 462, 268, 1797, 29918, 3733, 9222, 29962, 13, 13, 1678, 396, 12662, 2699, 363, 380, 2593, 2264, 15326, 29892, 13136, 13, 1678, 380, 1182, 328, 29901, 5785, 353, 2216, 1888, 2037, 287, 795, 396, 11855, 310, 278, 15232, 13, 1678, 10345, 574, 29901, 5785, 353, 2216, 1888, 2037, 287, 795, 396, 10345, 29898, 3084, 10696, 529, 2930, 29914, 29906, 29897, 13, 13, 1678, 396, 12662, 2699, 363, 6576, 675, 2761, 29892, 13136, 13, 1678, 885, 29918, 7529, 353, 2216, 1888, 2037, 287, 462, 29871, 396, 18761, 29892, 470, 851, 13, 13, 1678, 822, 903, 2344, 29918, 1195, 29918, 10568, 29918, 16744, 29898, 1311, 1125, 13, 4706, 9995, 3206, 457, 278, 4128, 298, 29918, 1195, 29918, 29874, 322, 298, 29918, 1195, 29918, 29890, 363, 278, 1375, 29918, 10568, 5751, 29901, 13, 9651, 1375, 29918, 10568, 353, 4236, 29898, 29882, 29918, 1195, 29918, 29874, 334, 6425, 29898, 29873, 511, 298, 29918, 1195, 29918, 29890, 29897, 13, 4706, 515, 390, 29968, 5091, 568, 29889, 13, 4706, 9995, 13, 13, 4706, 396, 9212, 4328, 1546, 8359, 315, 29899, 5975, 13, 4706, 274, 12765, 353, 29871, 29896, 29889, 13, 4706, 363, 274, 29896, 297, 1583, 29889, 29907, 29901, 13, 9651, 363, 274, 29906, 297, 1583, 29889, 29907, 29901, 13, 18884, 2923, 353, 6425, 29898, 29883, 29896, 448, 274, 29906, 29897, 13, 18884, 565, 2923, 29901, 13, 462, 1678, 274, 12765, 353, 1375, 29898, 2252, 2593, 29892, 2923, 29897, 13, 4706, 565, 274, 12765, 529, 29871, 29896, 29872, 29899, 29941, 29901, 13, 9651, 274, 12765, 353, 29871, 29896, 29872, 29899, 29941, 13, 9651, 12183, 29889, 27392, 29898, 13, 18884, 525, 9526, 315, 29899, 5975, 310, 445, 7525, 479, 476, 329, 941, 1158, 526, 8886, 278, 525, 13, 18884, 525, 17642, 541, 451, 13557, 29889, 910, 13071, 278, 9212, 6576, 675, 29915, 13, 18884, 525, 3492, 1122, 864, 304, 1423, 278, 5314, 310, 445, 1158, 29889, 1495, 13, 13, 4706, 396, 8161, 1375, 29918, 10568, 4128, 13, 4706, 321, 567, 10052, 353, 7442, 29889, 29888, 3888, 29898, 1311, 29889, 29891, 29889, 29881, 1853, 467, 8961, 10052, 13, 4706, 21577, 353, 7442, 29889, 29888, 3888, 29898, 1311, 29889, 29891, 29889, 29881, 1853, 467, 25649, 13, 4706, 298, 29918, 1195, 29918, 29874, 353, 29871, 29896, 29900, 334, 321, 567, 10052, 847, 274, 12765, 13, 4706, 298, 29918, 1195, 29918, 29890, 353, 18074, 2273, 29898, 25649, 29897, 13, 4706, 736, 298, 29918, 1195, 29918, 29874, 29892, 298, 29918, 1195, 29918, 29890, 13, 13, 1678, 822, 903, 2344, 29918, 303, 2593, 2264, 29918, 29881, 2650, 428, 29898, 1311, 29892, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 1125, 13, 4706, 565, 451, 313, 275, 8758, 29898, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 29892, 938, 29897, 322, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 6736, 29871, 29900, 1125, 13, 9651, 12020, 7865, 2392, 29898, 13, 18884, 29724, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 29952, 1818, 367, 263, 1661, 29899, 22198, 6043, 23157, 13, 4706, 1583, 29889, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 353, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 13, 4706, 565, 2216, 1888, 2037, 287, 297, 313, 1311, 29889, 303, 1182, 328, 29892, 1583, 29889, 13161, 574, 1125, 13, 9651, 396, 11262, 380, 2593, 2264, 15326, 565, 451, 8762, 13, 9651, 565, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 451, 297, 313, 29945, 29900, 29900, 29900, 29892, 29871, 29900, 1125, 13, 18884, 29383, 703, 4013, 1158, 947, 451, 2334, 380, 2593, 2264, 15326, 29889, 376, 13, 462, 268, 376, 1451, 9776, 278, 995, 310, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 947, 3078, 23157, 13, 9651, 1583, 29889, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 353, 29871, 29900, 13, 4706, 1583, 29889, 29926, 1579, 303, 29886, 353, 29871, 29900, 462, 308, 396, 5229, 4331, 6795, 29892, 1833, 29871, 29946, 29900, 13, 4706, 565, 1583, 29889, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 29901, 13, 9651, 1583, 29889, 554, 303, 29886, 353, 29871, 29900, 462, 418, 396, 9150, 4331, 6795, 13, 9651, 1583, 29889, 8708, 29887, 353, 29871, 29900, 29889, 29900, 462, 268, 396, 6588, 6576, 675, 13, 13, 1678, 822, 903, 2344, 29918, 1557, 29918, 6451, 29898, 1311, 29892, 885, 29918, 7529, 1125, 13, 4706, 1302, 1389, 29879, 353, 8853, 29954, 1115, 313, 29900, 29889, 29955, 29892, 448, 29900, 29889, 29946, 29892, 29871, 29900, 29892, 29871, 29900, 29889, 29929, 511, 13, 462, 376, 29903, 1115, 313, 29900, 29889, 29953, 29892, 448, 29900, 29889, 29906, 29892, 29871, 29900, 29892, 29871, 29900, 29889, 29929, 511, 13, 462, 376, 29956, 1115, 313, 29906, 29892, 448, 29896, 29892, 448, 29896, 29892, 29871, 29900, 29889, 29947, 511, 13, 462, 376, 15770, 1115, 313, 29896, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29889, 29929, 2915, 13, 4706, 565, 1583, 29889, 1557, 29918, 7529, 1275, 2216, 1888, 2037, 287, 29901, 13, 9651, 396, 671, 3918, 4701, 565, 451, 6790, 6467, 13, 9651, 885, 29918, 7529, 353, 885, 29918, 7529, 470, 376, 15770, 29908, 13, 4706, 1683, 29901, 13, 9651, 396, 671, 2322, 4701, 310, 1158, 565, 451, 6790, 6467, 13, 9651, 885, 29918, 7529, 353, 885, 29918, 7529, 470, 1583, 29889, 1557, 29918, 7529, 13, 4706, 565, 313, 275, 8758, 29898, 1557, 29918, 7529, 29892, 851, 29897, 322, 885, 29918, 7529, 297, 1302, 1389, 29879, 1125, 13, 9651, 413, 29890, 29896, 29892, 413, 29890, 29906, 29892, 263, 29892, 330, 353, 1302, 1389, 29879, 29961, 1557, 29918, 7529, 29962, 13, 4706, 25342, 338, 8758, 29898, 1557, 29918, 7529, 29892, 18761, 29897, 322, 7431, 29898, 1557, 29918, 7529, 29897, 1275, 29871, 29946, 29901, 13, 9651, 413, 29890, 29896, 29892, 413, 29890, 29906, 29892, 263, 29892, 330, 353, 885, 29918, 7529, 13, 4706, 1683, 29901, 13, 9651, 12020, 7865, 2392, 877, 1557, 29918, 7529, 881, 367, 263, 18761, 310, 3309, 29871, 29941, 470, 697, 525, 13, 462, 632, 525, 974, 278, 6031, 376, 29954, 613, 376, 29903, 613, 376, 29956, 29908, 470, 376, 15770, 29908, 1495, 13, 4706, 396, 731, 599, 4128, 13, 4706, 1583, 29889, 1195, 3571, 29896, 353, 413, 29890, 29896, 334, 1583, 29889, 2704, 29918, 735, 3296, 13, 4706, 1583, 29889, 1195, 3571, 29906, 353, 413, 29890, 29906, 334, 1583, 29889, 2704, 29918, 735, 3296, 13, 4706, 1583, 29889, 29885, 979, 2026, 353, 448, 29874, 13, 4706, 1583, 29889, 29879, 2142, 3305, 353, 330, 13, 4706, 1583, 29889, 29879, 2142, 3305, 29918, 1557, 353, 330, 3579, 313, 21066, 29896, 718, 413, 29890, 29906, 29897, 13, 4706, 1583, 29889, 1195, 29918, 2704, 29918, 12324, 353, 313, 12648, 29918, 4519, 1783, 1955, 29914, 29887, 29897, 3579, 313, 29896, 29914, 1311, 29889, 2704, 29918, 735, 3296, 29897, 13, 4706, 1583, 29889, 15770, 29918, 1557, 353, 5852, 462, 18884, 396, 363, 937, 4331, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2090, 29892, 260, 29900, 29892, 343, 29900, 29892, 260, 29918, 9917, 29892, 4236, 29918, 10568, 29922, 9302, 29889, 7192, 29892, 364, 25027, 29922, 29896, 29872, 29899, 29941, 29892, 13, 462, 472, 324, 29922, 29896, 29872, 29899, 29953, 29892, 4608, 1891, 29922, 8824, 29892, 937, 29918, 10568, 29922, 8516, 29892, 13, 462, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 29922, 29945, 29900, 29900, 29900, 29892, 885, 29918, 7529, 29922, 8516, 29892, 3579, 1062, 10800, 681, 1125, 13, 4706, 29383, 29918, 1062, 10800, 681, 29898, 1062, 10800, 681, 29897, 13, 4706, 2428, 29898, 6558, 479, 29968, 329, 941, 29892, 1583, 467, 1649, 2344, 12035, 7692, 29892, 260, 29900, 29892, 343, 29900, 29892, 260, 29918, 9917, 29892, 4608, 1891, 29892, 13, 462, 462, 308, 2304, 29918, 19676, 29922, 5574, 29897, 13, 4706, 1583, 29889, 3317, 29918, 10568, 353, 12725, 29918, 3317, 29918, 10568, 29898, 3317, 29918, 10568, 29897, 13, 4706, 1583, 29889, 2273, 324, 29892, 1583, 29889, 14947, 353, 12725, 29918, 25027, 29898, 2273, 324, 29892, 472, 324, 29892, 1583, 29889, 29891, 29897, 13, 4706, 1583, 29889, 29888, 353, 1583, 29889, 7692, 29898, 1311, 29889, 29873, 29892, 1583, 29889, 29891, 29897, 13, 4706, 565, 1583, 29889, 29888, 29889, 29881, 1853, 2804, 1583, 29889, 29891, 29889, 29881, 1853, 29901, 13, 9651, 12020, 20948, 877, 29881, 8768, 310, 1650, 322, 16291, 437, 451, 1993, 1495, 13, 4706, 1583, 29889, 2704, 29918, 735, 3296, 353, 448, 29896, 847, 313, 1311, 29889, 2704, 29918, 342, 326, 1061, 29918, 2098, 718, 29871, 29896, 29897, 13, 4706, 1583, 3032, 2344, 29918, 303, 2593, 2264, 29918, 29881, 2650, 428, 29898, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 29897, 13, 4706, 1583, 29889, 29882, 29918, 1195, 29918, 29874, 29892, 1583, 29889, 29882, 29918, 1195, 29918, 29890, 353, 1583, 3032, 2344, 29918, 1195, 29918, 10568, 29918, 16744, 580, 13, 4706, 1583, 3032, 2344, 29918, 1557, 29918, 6451, 29898, 1557, 29918, 7529, 29897, 13, 13, 4706, 396, 2159, 310, 937, 4331, 29901, 13, 4706, 565, 937, 29918, 10568, 338, 6213, 29901, 13, 9651, 289, 353, 1583, 29889, 29873, 718, 1583, 29889, 20845, 334, 1375, 29898, 13, 18884, 6425, 29898, 1311, 29889, 29873, 29918, 9917, 448, 1583, 29889, 29873, 511, 1583, 29889, 3317, 29918, 10568, 29897, 13, 9651, 1583, 29889, 29882, 29918, 6897, 353, 6425, 29898, 29882, 29918, 2962, 29898, 13, 18884, 1583, 29889, 7692, 29892, 1583, 29889, 29873, 29892, 289, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29888, 29892, 13, 18884, 1583, 29889, 2704, 29918, 342, 326, 1061, 29918, 2098, 29892, 1583, 29889, 2273, 324, 29892, 1583, 29889, 14947, 876, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 29882, 29918, 6897, 353, 12725, 29918, 4102, 29918, 10568, 29898, 4102, 29918, 10568, 29892, 260, 29900, 29892, 260, 29918, 9917, 29897, 13, 13, 4706, 1583, 29889, 29968, 353, 7442, 29889, 6310, 3552, 1311, 29889, 29876, 29918, 303, 1179, 718, 29871, 29896, 29892, 1583, 29889, 29876, 511, 1583, 29889, 29891, 29889, 29881, 1853, 29897, 13, 4706, 1583, 29889, 9998, 1964, 353, 29871, 29896, 565, 1583, 29889, 29923, 29961, 1311, 29889, 29876, 29918, 303, 1179, 29962, 1683, 29871, 29900, 13, 4706, 1583, 29889, 29882, 29918, 24957, 353, 6213, 13, 4706, 1583, 29889, 29891, 29918, 1025, 353, 6213, 13, 4706, 405, 9998, 29961, 580, 29962, 353, 29871, 29900, 462, 18884, 396, 5534, 5229, 4331, 6795, 13, 13, 1678, 822, 903, 10568, 29918, 13699, 29898, 1311, 1125, 13, 4706, 396, 11149, 4477, 278, 4560, 2272, 5314, 310, 4560, 2272, 29915, 29879, 7525, 479, 29968, 329, 941, 13, 4706, 260, 353, 1583, 29889, 29873, 13, 4706, 343, 353, 1583, 29889, 29891, 13, 13, 4706, 298, 29918, 6897, 29892, 1375, 29918, 10568, 353, 1583, 3032, 276, 465, 404, 29918, 24530, 675, 29898, 29873, 29892, 343, 29897, 13, 4706, 565, 298, 29918, 6897, 338, 6213, 29901, 13, 9651, 396, 5608, 1294, 2390, 22671, 363, 1833, 4331, 13, 9651, 736, 5852, 29892, 6213, 13, 13, 4706, 396, 2425, 2745, 278, 4331, 338, 9259, 13, 4706, 4331, 29918, 16044, 287, 353, 7700, 13, 4706, 4331, 29918, 276, 622, 287, 353, 7700, 13, 4706, 1550, 451, 4331, 29918, 16044, 287, 29901, 13, 13, 9651, 565, 298, 29918, 6897, 529, 1375, 29918, 10568, 29901, 13, 18884, 736, 7700, 29892, 1583, 29889, 4986, 29949, 29918, 29903, 1529, 2208, 29918, 1254, 15488, 13, 9651, 298, 353, 298, 29918, 6897, 334, 1583, 29889, 20845, 13, 9651, 260, 29918, 1482, 353, 260, 718, 298, 13, 13, 9651, 396, 8147, 22950, 4312, 363, 1962, 13, 9651, 1583, 29889, 29968, 29961, 29900, 29962, 353, 1583, 29889, 29888, 13, 9651, 363, 474, 297, 3464, 29898, 29896, 29892, 1583, 29889, 29876, 29918, 303, 1179, 1125, 13, 18884, 1583, 3032, 29878, 29895, 29918, 19190, 29898, 29882, 29892, 474, 29897, 13, 13, 9651, 396, 8147, 1059, 6056, 322, 1650, 13, 9651, 343, 29918, 1482, 29892, 1059, 29918, 12324, 353, 1583, 3032, 2388, 29918, 2929, 29918, 3127, 29898, 29891, 29892, 298, 29897, 13, 13, 9651, 396, 14707, 1059, 13, 9651, 565, 1059, 29918, 12324, 529, 29871, 29896, 29901, 13, 18884, 4331, 29918, 16044, 287, 353, 5852, 13, 13, 18884, 396, 1016, 29915, 29873, 9311, 1407, 2319, 1059, 29918, 12324, 1819, 13, 18884, 1059, 29918, 12324, 353, 4236, 29898, 1311, 29889, 1195, 29918, 2704, 29918, 12324, 29892, 1059, 29918, 12324, 29897, 13, 13, 18884, 565, 1583, 29889, 15770, 29918, 1557, 29901, 13, 462, 1678, 7329, 353, 1583, 29889, 29879, 2142, 3305, 334, 1059, 29918, 12324, 3579, 1583, 29889, 2704, 29918, 735, 3296, 13, 462, 1678, 1583, 29889, 15770, 29918, 1557, 353, 7700, 13, 13, 18884, 1683, 29901, 13, 462, 1678, 396, 671, 1473, 1797, 12314, 4701, 13, 462, 1678, 298, 29918, 3605, 601, 353, 298, 847, 1583, 29889, 29882, 29918, 24957, 13, 462, 1678, 7329, 353, 1583, 29889, 29879, 2142, 3305, 29918, 1557, 334, 313, 13, 462, 4706, 1059, 29918, 12324, 3579, 1583, 29889, 1195, 3571, 29896, 334, 13, 462, 4706, 1583, 29889, 2704, 29918, 12324, 29918, 1025, 3579, 1583, 29889, 1195, 3571, 29906, 334, 13, 462, 4706, 298, 29918, 3605, 601, 3579, 1583, 29889, 29885, 979, 2026, 29897, 13, 462, 1678, 7329, 353, 1375, 29898, 12648, 29918, 4519, 1783, 1955, 29892, 4236, 29898, 16173, 29918, 4519, 1783, 1955, 29892, 7329, 876, 13, 13, 18884, 565, 4331, 29918, 276, 622, 287, 29901, 13, 462, 1678, 7329, 353, 1375, 29898, 29896, 29892, 7329, 29897, 13, 13, 18884, 298, 29918, 6897, 334, 29922, 7329, 13, 13, 9651, 1683, 29901, 13, 18884, 4331, 29918, 276, 622, 287, 353, 5852, 13, 18884, 298, 29918, 6897, 334, 29922, 4236, 29898, 16173, 29918, 4519, 1783, 1955, 29892, 13, 462, 632, 1583, 29889, 29879, 2142, 3305, 334, 1059, 29918, 12324, 3579, 1583, 29889, 2704, 29918, 735, 3296, 29897, 13, 13, 18884, 405, 9998, 29961, 580, 29962, 4619, 29871, 29896, 13, 18884, 1583, 29889, 29926, 1579, 303, 29886, 4619, 29871, 29896, 462, 418, 396, 363, 380, 2593, 2264, 15326, 13, 13, 18884, 565, 7442, 29889, 275, 13707, 29898, 2704, 29918, 12324, 29897, 470, 7442, 29889, 275, 7192, 29898, 2704, 29918, 12324, 1125, 13, 462, 1678, 736, 7700, 29892, 376, 23773, 470, 1090, 1731, 18169, 1213, 13, 13, 4706, 565, 451, 1583, 29889, 9998, 1964, 29901, 13, 9651, 396, 14707, 2123, 649, 1298, 363, 29694, 322, 2446, 4331, 13, 9651, 1583, 29889, 29968, 29961, 1311, 29889, 29876, 29918, 303, 1179, 29962, 353, 1583, 29889, 7692, 29898, 29873, 718, 298, 29892, 343, 29918, 1482, 29897, 13, 13, 4706, 396, 3787, 363, 2446, 4331, 29892, 29694, 322, 6576, 675, 2761, 13, 4706, 1583, 29889, 29882, 29918, 24957, 353, 298, 13, 4706, 1583, 29889, 29891, 29918, 1025, 353, 343, 13, 4706, 1583, 29889, 29882, 29918, 6897, 353, 298, 29918, 6897, 13, 4706, 1583, 29889, 29888, 353, 1583, 29889, 29968, 29961, 1311, 29889, 29876, 29918, 303, 1179, 1822, 8552, 580, 13, 4706, 1583, 29889, 2704, 29918, 12324, 29918, 1025, 353, 1059, 29918, 12324, 13, 13, 4706, 396, 1962, 13, 4706, 1583, 29889, 29873, 353, 260, 29918, 1482, 13, 4706, 1583, 29889, 29891, 353, 343, 29918, 1482, 13, 13, 4706, 396, 380, 2593, 2264, 15326, 13, 4706, 1583, 3032, 6051, 4211, 852, 29918, 303, 2593, 2264, 580, 13, 13, 4706, 736, 5852, 29892, 6213, 13, 13, 1678, 822, 903, 276, 465, 404, 29918, 24530, 675, 29898, 1311, 29892, 260, 29892, 343, 1125, 13, 4706, 396, 4046, 4331, 2159, 13, 4706, 298, 29918, 6897, 353, 1583, 29889, 29882, 29918, 6897, 13, 4706, 1375, 29918, 10568, 353, 4236, 29898, 1311, 29889, 29882, 29918, 1195, 29918, 29874, 334, 313, 6897, 29898, 29873, 29897, 718, 298, 29918, 6897, 511, 1583, 29889, 29882, 29918, 1195, 29918, 29890, 29897, 13, 4706, 565, 298, 29918, 6897, 529, 1375, 29918, 10568, 470, 298, 29918, 6897, 1405, 1583, 29889, 3317, 29918, 10568, 29901, 13, 9651, 298, 29918, 6897, 353, 1375, 29898, 1311, 29889, 3317, 29918, 10568, 29892, 4236, 29898, 1195, 29918, 10568, 29892, 298, 29918, 6897, 876, 13, 9651, 1583, 29889, 15770, 29918, 1557, 353, 5852, 13, 13, 4706, 396, 4386, 2186, 13465, 6576, 13, 4706, 270, 353, 6425, 29898, 1311, 29889, 29873, 29918, 9917, 448, 260, 29897, 462, 268, 396, 9886, 7292, 13, 4706, 565, 270, 529, 29871, 29906, 334, 298, 29918, 6897, 29901, 13, 9651, 565, 270, 1405, 298, 29918, 6897, 29901, 13, 18884, 396, 298, 29918, 6897, 529, 270, 529, 29871, 29906, 334, 298, 29918, 6897, 29901, 376, 6914, 14432, 1642, 13, 18884, 396, 6219, 270, 975, 1833, 1023, 6576, 29889, 910, 26830, 278, 8825, 310, 263, 13, 18884, 396, 1407, 2319, 1833, 4331, 29889, 13, 18884, 298, 29918, 6897, 353, 4236, 29898, 29900, 29889, 29945, 334, 270, 29892, 1375, 29918, 10568, 29897, 13, 18884, 1583, 29889, 15770, 29918, 1557, 353, 5852, 13, 9651, 25342, 270, 6736, 1375, 29918, 10568, 29901, 13, 18884, 396, 270, 5277, 298, 29918, 6897, 29901, 3872, 29915, 29873, 4331, 975, 260, 29918, 9917, 13, 18884, 298, 29918, 6897, 353, 270, 13, 9651, 1683, 29901, 13, 18884, 396, 270, 529, 1375, 29918, 10568, 29901, 671, 5608, 1294, 2390, 22671, 297, 445, 10812, 1206, 13, 18884, 298, 353, 1583, 29889, 29873, 29918, 9917, 448, 260, 13, 18884, 343, 29918, 1482, 353, 343, 718, 298, 334, 1583, 29889, 29888, 13, 18884, 1583, 29889, 29882, 29918, 24957, 353, 298, 13, 18884, 1583, 29889, 29891, 29918, 1025, 353, 343, 13, 18884, 1583, 29889, 29873, 353, 1583, 29889, 29873, 29918, 9917, 13, 18884, 1583, 29889, 29891, 353, 343, 29918, 1482, 13, 18884, 1583, 29889, 29888, 353, 6213, 462, 418, 396, 18470, 903, 1145, 344, 29918, 4905, 29918, 13699, 13, 18884, 12183, 29889, 27392, 29898, 13, 462, 1678, 525, 12697, 1294, 2390, 22671, 471, 1304, 297, 278, 2186, 4331, 29889, 1495, 13, 18884, 736, 6213, 29892, 1375, 29918, 10568, 13, 13, 4706, 736, 298, 29918, 6897, 29892, 1375, 29918, 10568, 13, 13, 1678, 822, 903, 342, 6490, 29918, 2704, 29898, 1311, 29892, 476, 29892, 298, 1125, 13, 4706, 396, 19060, 476, 14352, 29896, 29962, 565, 451, 383, 29903, 1964, 29889, 739, 1033, 1712, 23432, 470, 3041, 13, 4706, 736, 298, 334, 313, 29968, 7503, 1311, 29889, 29876, 29918, 303, 1179, 718, 1583, 29889, 9998, 1964, 1822, 29911, 732, 13, 462, 1678, 1583, 29889, 29923, 7503, 1311, 29889, 29876, 29918, 303, 1179, 718, 1583, 29889, 9998, 1964, 2314, 13, 13, 1678, 822, 903, 342, 6490, 29918, 2704, 29918, 12324, 29898, 1311, 29892, 476, 29892, 298, 29892, 6287, 1125, 13, 4706, 736, 6056, 29898, 1311, 3032, 342, 6490, 29918, 2704, 29898, 29968, 29892, 298, 29897, 847, 6287, 29897, 13, 13, 1678, 822, 903, 2388, 29918, 2929, 29918, 3127, 29898, 1311, 29892, 343, 29892, 298, 1125, 13, 4706, 9995, 20606, 29872, 1650, 322, 1059, 29889, 13, 4706, 450, 13944, 310, 421, 7052, 29952, 2923, 414, 515, 4560, 2272, 29901, 450, 6588, 2012, 310, 13, 4706, 278, 7472, 310, 6425, 29898, 29891, 29897, 310, 278, 1857, 322, 3517, 6576, 338, 1304, 29889, 13, 4706, 9995, 13, 4706, 343, 29918, 1482, 353, 343, 718, 298, 334, 313, 1311, 29889, 29968, 7503, 1311, 29889, 29876, 29918, 303, 1179, 1822, 29911, 732, 1583, 29889, 29933, 29897, 13, 4706, 6287, 353, 1583, 29889, 14947, 718, 1583, 29889, 2273, 324, 334, 29871, 29900, 29889, 29945, 16395, 9302, 29889, 6897, 29898, 29891, 29897, 718, 7442, 29889, 6897, 29898, 29891, 29918, 1482, 876, 13, 13, 4706, 565, 1583, 29889, 9998, 1964, 29901, 13, 9651, 396, 437, 383, 29903, 1964, 17983, 565, 4312, 363, 1059, 12678, 13, 9651, 1583, 29889, 29968, 29961, 1311, 29889, 29876, 29918, 303, 1179, 29892, 584, 29962, 353, 1583, 29889, 7692, 29898, 1311, 29889, 29873, 718, 298, 29892, 343, 29918, 1482, 29897, 13, 13, 4706, 1059, 29918, 12324, 353, 1583, 3032, 342, 6490, 29918, 2704, 29918, 12324, 29898, 1311, 29889, 29968, 29892, 298, 29892, 6287, 29897, 13, 4706, 736, 343, 29918, 1482, 29892, 1059, 29918, 12324, 13, 13, 1678, 822, 903, 29878, 29895, 29918, 19190, 29898, 1311, 29892, 298, 29892, 474, 1125, 13, 4706, 9995, 26017, 263, 2323, 390, 29968, 7408, 15945, 29908, 13, 4706, 13475, 353, 298, 334, 313, 1311, 29889, 29968, 7503, 29875, 29892, 584, 1822, 29911, 732, 1583, 29889, 29909, 29961, 29875, 29892, 584, 29875, 2314, 13, 4706, 1583, 29889, 29968, 29961, 29875, 29962, 353, 1583, 29889, 7692, 29898, 1311, 29889, 29873, 718, 1583, 29889, 29907, 29961, 29875, 29962, 334, 298, 29892, 1583, 29889, 29891, 718, 13475, 29897, 13, 13, 1678, 822, 903, 1145, 344, 29918, 4905, 29918, 13699, 29898, 1311, 1125, 13, 4706, 9995, 2457, 20619, 6466, 29892, 6459, 565, 4331, 471, 1294, 2390, 324, 630, 5608, 368, 15945, 29908, 13, 13, 4706, 565, 1583, 29889, 29888, 338, 6213, 29901, 13, 9651, 396, 1962, 471, 1294, 2390, 324, 630, 5608, 368, 13, 9651, 736, 22985, 29928, 1947, 6466, 29898, 1311, 29889, 29873, 29918, 1025, 29892, 1583, 29889, 29873, 29892, 1583, 29889, 29891, 29918, 1025, 29892, 1583, 29889, 29891, 29897, 13, 13, 4706, 396, 4226, 1962, 13, 4706, 660, 353, 1583, 29889, 29968, 29889, 29911, 732, 1583, 29889, 29925, 13, 4706, 736, 6912, 1089, 29928, 1947, 6466, 29898, 1311, 29889, 29873, 29918, 1025, 29892, 1583, 29889, 29873, 29892, 1583, 29889, 29891, 29918, 1025, 29892, 660, 29897, 13, 13, 1678, 822, 903, 6051, 4211, 852, 29918, 303, 2593, 2264, 29898, 1311, 1125, 13, 4706, 9995, 855, 2593, 2264, 15326, 29889, 13, 13, 4706, 4321, 871, 565, 727, 526, 1784, 7786, 4331, 4418, 1973, 29892, 470, 1156, 1784, 13, 4706, 740, 6161, 800, 505, 1063, 2309, 29889, 13, 13, 4706, 399, 2753, 278, 1404, 565, 278, 1108, 338, 24876, 2662, 408, 380, 2593, 29889, 13, 13, 4706, 8533, 2752, 29901, 390, 29968, 5091, 568, 29889, 29888, 29892, 2045, 597, 1636, 29889, 1212, 1982, 29889, 990, 29914, 356, 29914, 29878, 2039, 29884, 568, 29914, 13, 4706, 9995, 13, 13, 4706, 565, 1583, 29889, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 1275, 29871, 29900, 29901, 13, 9651, 736, 13, 13, 4706, 1583, 29889, 554, 303, 29886, 4619, 29871, 29896, 13, 4706, 298, 353, 1583, 29889, 29882, 29918, 24957, 13, 4706, 1583, 29889, 8708, 29887, 353, 29871, 29900, 29889, 29929, 334, 1583, 29889, 8708, 29887, 718, 29871, 29900, 29889, 29896, 334, 298, 795, 396, 1518, 8401, 6588, 13, 13, 4706, 396, 10092, 1156, 278, 937, 29871, 29906, 29900, 6576, 304, 29901, 13, 4706, 396, 448, 679, 6576, 675, 373, 6287, 13, 4706, 396, 448, 10032, 278, 2779, 310, 263, 1950, 2847, 1301, 993, 13, 4706, 565, 1583, 29889, 554, 303, 29886, 1275, 29871, 29906, 29900, 29901, 13, 9651, 1583, 29889, 8708, 29887, 353, 298, 13, 9651, 1583, 29889, 29926, 1579, 303, 29886, 353, 29871, 29900, 13, 13, 4706, 396, 1670, 526, 14568, 310, 5229, 6576, 313, 29880, 1862, 1579, 353, 5852, 29897, 565, 29871, 29896, 29900, 470, 901, 4331, 13, 4706, 396, 4418, 1973, 10761, 297, 278, 1833, 29871, 29946, 29900, 9150, 6576, 29889, 13, 4706, 565, 1583, 29889, 554, 303, 29886, 1273, 29871, 29946, 29900, 1275, 29871, 29941, 29929, 29901, 13, 9651, 14568, 1579, 353, 1583, 29889, 29926, 1579, 303, 29886, 6736, 29871, 29896, 29900, 13, 9651, 1583, 29889, 29926, 1579, 303, 29886, 353, 29871, 29900, 462, 1669, 396, 10092, 1269, 29871, 29946, 29900, 6576, 13, 4706, 1683, 29901, 13, 9651, 14568, 1579, 353, 7700, 13, 13, 4706, 396, 4321, 363, 380, 361, 2264, 1156, 1269, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 6161, 800, 13, 4706, 396, 769, 304, 290, 305, 353, 5852, 13, 4706, 1784, 29918, 24530, 353, 1583, 29889, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 458, 1311, 29889, 29876, 29918, 303, 1179, 13, 4706, 304, 290, 305, 353, 1583, 29889, 554, 303, 29886, 1273, 1784, 29918, 24530, 1275, 1784, 29918, 24530, 448, 29871, 29896, 13, 13, 4706, 396, 960, 2845, 2086, 1568, 664, 756, 1063, 2309, 470, 727, 526, 14568, 310, 5229, 13, 4706, 396, 6576, 29892, 1243, 363, 380, 2593, 2264, 29889, 13, 4706, 565, 304, 290, 305, 470, 14568, 1579, 29901, 13, 13, 9651, 396, 2169, 759, 403, 7688, 4608, 13, 9651, 1029, 1927, 353, 29871, 29900, 29889, 29945, 334, 313, 9302, 29889, 6897, 29898, 1311, 29889, 29891, 29897, 718, 7442, 29889, 6897, 29898, 1311, 29889, 29891, 29918, 1025, 876, 13, 9651, 21577, 353, 7442, 29889, 29888, 3888, 29898, 1311, 29889, 29891, 29889, 29881, 1853, 467, 25649, 13, 9651, 281, 29873, 353, 7442, 29889, 27525, 398, 29898, 485, 1927, 29892, 18074, 2273, 29898, 25649, 876, 13, 9651, 396, 322, 1059, 4608, 29892, 281, 436, 338, 263, 1781, 2847, 22786, 362, 4608, 13, 9651, 325, 29900, 353, 7442, 29889, 271, 280, 579, 29918, 29896, 29881, 29898, 1311, 3032, 342, 6490, 29918, 2704, 29898, 1311, 29889, 29968, 29892, 1583, 29889, 29882, 29918, 24957, 876, 13, 13, 9651, 396, 380, 2593, 29918, 29874, 3683, 1475, 3692, 278, 1108, 338, 380, 2593, 29889, 512, 777, 13, 9651, 396, 14209, 372, 338, 501, 3059, 11499, 29889, 29871, 450, 10608, 7111, 373, 1023, 2712, 29901, 13, 9651, 396, 3692, 278, 4331, 2159, 338, 1641, 22078, 373, 25502, 310, 25806, 13, 9651, 396, 322, 3692, 278, 13465, 304, 260, 29918, 9917, 508, 367, 8676, 297, 694, 13, 9651, 396, 901, 1135, 302, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 740, 6161, 800, 29889, 13, 9651, 380, 361, 29892, 3876, 276, 353, 380, 2593, 29918, 29874, 29898, 13, 18884, 1583, 29889, 7692, 29892, 1583, 29889, 29873, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29882, 29918, 24957, 29892, 1583, 29889, 8708, 29887, 29892, 13, 18884, 1583, 29889, 29873, 29918, 9917, 29892, 1583, 29889, 29876, 1725, 29894, 29918, 303, 2593, 29918, 4801, 522, 29892, 281, 29873, 29892, 1583, 29889, 29888, 29892, 325, 29900, 29892, 13, 18884, 1583, 29889, 29876, 29918, 303, 1179, 29892, 1583, 29889, 303, 1182, 328, 29892, 1583, 29889, 13161, 574, 29897, 13, 13, 9651, 396, 1871, 278, 1404, 1048, 380, 2593, 2264, 411, 9177, 7191, 13, 9651, 396, 278, 7191, 1048, 9886, 664, 505, 1063, 6206, 515, 278, 13, 9651, 396, 2441, 775, 29889, 13, 9651, 565, 380, 361, 338, 6213, 29901, 13, 18884, 396, 9644, 545, 1048, 380, 2593, 2264, 13, 18884, 565, 3876, 276, 338, 6213, 29901, 13, 462, 1678, 396, 694, 9177, 338, 2183, 13, 462, 1678, 12183, 29889, 3888, 877, 855, 2593, 2264, 15326, 1258, 451, 5486, 479, 1495, 13, 18884, 565, 451, 3876, 276, 29901, 13, 462, 1678, 396, 319, 4280, 5101, 310, 16778, 756, 1063, 1476, 2978, 278, 6382, 3821, 13, 462, 1678, 396, 9685, 29892, 988, 278, 25806, 10452, 310, 278, 1158, 338, 451, 13, 462, 1678, 396, 1532, 3342, 29889, 13, 462, 1678, 396, 319, 9177, 338, 2183, 871, 565, 727, 526, 1784, 5229, 6576, 29889, 13, 462, 1678, 396, 910, 26830, 278, 8825, 310, 263, 2089, 6374, 24876, 19263, 29889, 13, 462, 1678, 565, 14568, 1579, 29901, 13, 462, 4706, 29383, 877, 10858, 1108, 756, 263, 4280, 5101, 310, 28526, 525, 13, 462, 632, 525, 307, 1862, 2978, 278, 6382, 3821, 9685, 29889, 29871, 1670, 526, 525, 13, 462, 632, 525, 13011, 10325, 5229, 6576, 29889, 29871, 887, 881, 525, 13, 462, 632, 525, 771, 14815, 1735, 304, 263, 775, 9146, 363, 525, 13, 462, 632, 525, 14174, 453, 7606, 4828, 29889, 1495, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 12183, 29889, 3888, 29898, 13, 462, 9651, 525, 1576, 1108, 756, 263, 4280, 5101, 310, 28526, 16778, 525, 13, 462, 9651, 525, 28502, 278, 6382, 3821, 9685, 29889, 29871, 1670, 526, 451, 1784, 525, 13, 462, 9651, 525, 26061, 6576, 29889, 1495, 13, 18884, 1683, 29901, 13, 462, 1678, 396, 445, 881, 451, 3799, 13, 462, 1678, 12183, 29889, 27392, 29898, 13, 462, 4706, 525, 303, 361, 29922, 8516, 29892, 3876, 276, 29922, 5574, 29936, 445, 881, 451, 3799, 1495, 13, 9651, 25342, 380, 361, 29901, 13, 18884, 396, 278, 1108, 338, 380, 2593, 13, 18884, 565, 3876, 276, 338, 6213, 29901, 13, 462, 1678, 396, 445, 881, 451, 3799, 13, 462, 1678, 12183, 29889, 27392, 29898, 13, 462, 4706, 525, 303, 361, 29922, 5574, 29892, 3876, 276, 29922, 8516, 29936, 445, 881, 451, 3799, 1495, 13, 18884, 25342, 3876, 276, 29901, 13, 462, 1678, 29383, 877, 10858, 1108, 756, 263, 1855, 28526, 3876, 525, 13, 462, 308, 525, 392, 338, 24876, 2662, 408, 380, 2593, 29889, 29871, 887, 881, 3117, 525, 13, 462, 308, 525, 3167, 304, 263, 775, 9146, 363, 380, 2593, 4828, 29889, 1495, 13, 18884, 1683, 29901, 13, 462, 1678, 29383, 877, 10858, 1108, 756, 263, 4280, 5101, 310, 28526, 16778, 525, 13, 462, 308, 525, 392, 338, 24876, 2662, 408, 380, 2593, 29889, 29871, 887, 881, 3117, 525, 13, 462, 308, 525, 3167, 304, 263, 775, 9146, 363, 380, 2593, 4828, 29889, 1495, 13, 9651, 1683, 29901, 13, 18884, 396, 380, 361, 1275, 7700, 13, 18884, 396, 694, 9177, 338, 2183, 13, 18884, 565, 3876, 276, 338, 6213, 29901, 13, 462, 1678, 12183, 29889, 3888, 29898, 13, 462, 4706, 525, 855, 2593, 2264, 15326, 756, 24876, 2662, 278, 1108, 408, 525, 13, 462, 4706, 525, 5464, 29899, 303, 2593, 29892, 1728, 15859, 3081, 24372, 1495, 13, 18884, 25342, 3876, 276, 29901, 13, 462, 1678, 12183, 29889, 3888, 29898, 13, 462, 4706, 525, 1576, 1108, 756, 263, 1855, 28526, 3876, 525, 13, 462, 4706, 525, 392, 338, 451, 380, 2593, 1495, 13, 18884, 1683, 29901, 13, 462, 1678, 12183, 29889, 3888, 29898, 13, 462, 4706, 525, 1576, 1108, 756, 263, 4280, 5101, 310, 28526, 16778, 525, 13, 462, 4706, 525, 392, 338, 451, 380, 2593, 1495, 13, 13, 13, 1753, 298, 29918, 2962, 29898, 2176, 29892, 263, 29892, 289, 29892, 343, 29892, 343, 10080, 29892, 286, 2098, 29892, 364, 25027, 29892, 472, 324, 1125, 13, 1678, 9995, 29882, 29918, 845, 442, 2912, 267, 263, 6257, 4331, 2159, 304, 367, 1304, 297, 17069, 2847, 13, 1678, 995, 4828, 297, 15311, 16712, 10693, 29889, 13, 13, 1678, 910, 1158, 338, 8906, 491, 529, 5813, 29958, 322, 5439, 297, 518, 29896, 29962, 5396, 910, 740, 13, 1678, 338, 263, 5132, 13962, 310, 278, 7236, 661, 2752, 775, 518, 29906, 29962, 5396, 450, 1023, 1667, 13, 1678, 26278, 526, 29901, 13, 4706, 773, 278, 390, 4345, 6056, 515, 4560, 2272, 29889, 14146, 403, 13, 4706, 14372, 363, 4280, 659, 6742, 1881, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 4489, 584, 1246, 519, 13, 4706, 10428, 29899, 3179, 2625, 310, 278, 1788, 29889, 450, 5432, 12608, 338, 2090, 29898, 29873, 29892, 343, 467, 13, 4706, 2266, 260, 338, 263, 17336, 29889, 450, 29871, 299, 2378, 343, 756, 756, 8267, 313, 29876, 29892, 29897, 322, 2090, 1818, 13, 4706, 736, 1409, 29918, 4561, 411, 278, 1021, 8267, 313, 29876, 29892, 467, 13, 1678, 263, 584, 5785, 13, 4706, 910, 338, 278, 2847, 1298, 310, 13465, 29889, 13, 1678, 289, 584, 5785, 13, 4706, 910, 338, 263, 995, 310, 278, 7417, 2286, 1304, 304, 4529, 278, 13, 4706, 5305, 310, 13465, 29889, 319, 15590, 7348, 338, 304, 731, 421, 29890, 29952, 304, 278, 13, 4706, 937, 1298, 472, 607, 263, 1650, 338, 7429, 29889, 887, 508, 884, 671, 421, 29890, 1919, 565, 13, 4706, 5181, 29892, 304, 9250, 278, 3309, 310, 278, 937, 13465, 4331, 1363, 13, 4706, 278, 5687, 674, 451, 10272, 263, 6257, 4331, 3309, 607, 338, 16600, 13, 4706, 1135, 6425, 29898, 29890, 29899, 29874, 511, 6521, 421, 29890, 29952, 756, 1063, 10434, 2086, 3802, 304, 421, 29874, 1412, 313, 277, 338, 13, 4706, 2225, 21571, 393, 298, 29918, 2962, 756, 1063, 2000, 411, 421, 29890, 29952, 1422, 515, 421, 29874, 29952, 373, 13, 4706, 278, 4933, 1641, 1304, 29889, 13, 1678, 343, 584, 1409, 29918, 4561, 29892, 8267, 313, 29876, 29892, 29897, 13, 4706, 910, 338, 278, 4608, 310, 2847, 1819, 310, 278, 302, 1650, 7117, 472, 13, 4706, 278, 2847, 1298, 421, 29874, 1412, 13, 1678, 343, 10080, 584, 1409, 29918, 4561, 29892, 8267, 313, 29876, 29892, 29897, 13, 4706, 910, 338, 278, 4608, 310, 25748, 310, 278, 302, 1650, 7117, 472, 278, 13, 4706, 2847, 1298, 421, 29874, 1412, 29871, 313, 12119, 491, 278, 16712, 10693, 297, 13, 4706, 1014, 14608, 457, 421, 2176, 6348, 13, 1678, 286, 2098, 584, 938, 13, 4706, 910, 338, 278, 1797, 310, 278, 7063, 607, 674, 367, 1304, 491, 278, 2847, 13, 4706, 995, 1158, 363, 5622, 278, 937, 13465, 4331, 29889, 13, 1678, 364, 25027, 584, 5785, 13, 4706, 6376, 1230, 304, 29880, 406, 749, 1304, 491, 278, 16712, 6306, 1158, 29889, 13, 1678, 472, 324, 584, 5785, 470, 1409, 29918, 4561, 13, 4706, 1976, 14977, 304, 29880, 406, 749, 1304, 491, 278, 16712, 6306, 1158, 29889, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 5785, 13, 4706, 530, 8210, 6257, 4331, 2159, 304, 367, 16388, 491, 278, 16712, 13, 4706, 6306, 1158, 29889, 13, 13, 1678, 28318, 13, 1678, 448, 1378, 29899, 13, 1678, 6317, 518, 29896, 29962, 529, 5813, 10202, 376, 4763, 292, 4331, 2159, 363, 385, 438, 2287, 899, 369, 613, 8237, 310, 13, 965, 11796, 1288, 322, 2401, 2957, 13486, 1199, 29892, 3684, 29889, 29871, 29929, 29892, 1939, 29889, 29871, 29906, 29892, 29871, 29896, 29929, 29947, 29941, 29892, 13, 965, 6499, 29889, 29871, 29896, 29955, 29955, 29899, 29896, 29929, 29896, 29892, 15781, 29871, 29900, 29941, 29955, 29955, 29899, 29900, 29946, 29906, 29955, 29889, 13, 965, 2045, 597, 1867, 29875, 29889, 990, 29914, 29896, 29900, 29889, 29896, 29900, 29896, 29953, 29914, 29900, 29941, 29955, 29955, 29899, 29900, 29946, 29906, 29955, 29898, 29947, 29941, 29897, 29929, 29900, 29900, 29946, 29900, 29899, 29955, 13, 1678, 6317, 518, 29906, 29962, 317, 9632, 29883, 7236, 661, 775, 270, 710, 29873, 29889, 29888, 29889, 13, 965, 2045, 597, 1636, 29889, 1212, 1982, 29889, 990, 29914, 2536, 403, 29883, 29914, 4351, 29914, 13, 1678, 9995, 13, 13, 1678, 396, 4312, 304, 1209, 4560, 2272, 5190, 1243, 29901, 13, 1678, 565, 343, 29889, 2311, 1275, 29871, 29900, 29901, 13, 4706, 736, 7442, 29889, 7192, 13, 13, 1678, 396, 22874, 403, 363, 9120, 1246, 1051, 13, 1678, 452, 29939, 353, 343, 29889, 2311, 13, 1678, 805, 29891, 353, 7442, 29889, 6310, 29918, 4561, 29898, 29891, 29897, 13, 1678, 282, 29894, 353, 7442, 29889, 6310, 29918, 4561, 29898, 29891, 29897, 13, 1678, 634, 324, 353, 472, 324, 718, 364, 25027, 334, 7442, 29889, 6897, 29898, 29891, 29897, 13, 13, 1678, 396, 421, 9278, 29952, 338, 263, 2319, 6374, 4933, 14278, 4868, 607, 338, 1304, 363, 13, 1678, 396, 12566, 292, 2750, 2912, 800, 411, 3694, 607, 526, 2086, 2319, 6198, 13, 1678, 396, 304, 278, 16716, 310, 16526, 1298, 23342, 29889, 421, 9278, 29952, 881, 367, 731, 304, 13, 1678, 396, 313, 9961, 2657, 2486, 29897, 278, 19087, 6374, 11662, 7466, 1307, 349, 1525, 29907, 3235, 2725, 1353, 1316, 393, 13, 1678, 396, 313, 29896, 29889, 718, 2319, 29897, 1405, 29871, 29896, 29889, 29871, 373, 278, 4933, 1641, 1304, 29889, 450, 14728, 2319, 1068, 29898, 29941, 29914, 29947, 29897, 13, 1678, 396, 338, 1304, 297, 20602, 3079, 1860, 310, 3651, 363, 6881, 1218, 13, 1678, 396, 25748, 491, 12651, 29889, 29871, 3115, 278, 5687, 674, 451, 10272, 263, 13, 1678, 396, 6257, 4331, 3309, 607, 338, 7968, 1135, 29871, 29896, 29900, 29900, 29930, 9278, 29930, 2882, 29903, 29898, 29909, 467, 13, 1678, 396, 421, 3752, 29952, 338, 263, 2919, 6374, 4933, 14278, 4868, 607, 338, 1304, 363, 13, 1678, 396, 5557, 292, 4933, 11969, 29879, 29889, 319, 15590, 7348, 338, 304, 731, 4802, 304, 13, 1678, 396, 313, 9961, 2657, 2486, 29897, 278, 6862, 3876, 310, 278, 10150, 11662, 7466, 1307, 349, 1525, 29907, 3235, 2725, 1353, 13, 1678, 396, 607, 508, 367, 4934, 297, 278, 4933, 29889, 13, 1678, 4802, 353, 18074, 2273, 29898, 9302, 29889, 29888, 3888, 29898, 29891, 29889, 29881, 1853, 467, 3317, 29897, 13, 1678, 2319, 353, 7442, 29889, 4622, 7045, 29898, 9302, 29889, 29888, 3888, 29898, 29891, 29889, 29881, 1853, 467, 8961, 10052, 29892, 29871, 29896, 29889, 29900, 29897, 13, 13, 1678, 396, 1494, 270, 29882, 710, 29873, 29889, 29888, 515, 1244, 13, 1678, 15414, 353, 289, 448, 263, 13, 1678, 633, 4928, 29916, 353, 6425, 29898, 8235, 29897, 13, 1678, 1104, 546, 353, 2319, 1068, 29900, 29889, 29941, 29955, 29945, 13, 13, 1678, 396, 10272, 385, 26368, 3216, 313, 2176, 8235, 29890, 29897, 373, 278, 7687, 16291, 310, 278, 13, 1678, 396, 6306, 411, 3390, 304, 278, 7417, 2286, 29889, 29871, 12566, 2750, 385, 13, 1678, 396, 11969, 29889, 29871, 884, 10272, 263, 3216, 313, 14943, 299, 29897, 373, 278, 937, 16291, 12430, 29889, 13, 1678, 1146, 353, 5614, 952, 647, 29898, 3317, 29898, 1195, 29898, 2674, 546, 334, 6425, 29898, 29874, 511, 633, 4928, 29916, 511, 29871, 29896, 29900, 29900, 29889, 29900, 334, 2319, 334, 6425, 29898, 29874, 8243, 15414, 29897, 13, 1678, 1146, 353, 1146, 470, 1104, 546, 334, 15414, 13, 1678, 18668, 353, 4489, 29898, 29874, 718, 1146, 29892, 343, 29897, 462, 462, 1669, 396, 14707, 13, 1678, 343, 29886, 353, 18668, 448, 343, 10080, 13, 1678, 628, 29888, 353, 6056, 29898, 1478, 29897, 13, 1678, 4489, 8235, 29890, 353, 4802, 13, 1678, 565, 628, 29888, 529, 4802, 334, 6425, 29898, 1388, 1125, 13, 4706, 4489, 8235, 29890, 353, 628, 29888, 847, 6425, 29898, 1388, 29897, 13, 1678, 285, 29890, 299, 353, 6056, 29898, 4668, 29897, 13, 13, 1678, 396, 10272, 385, 12678, 313, 2176, 29881, 431, 29897, 310, 278, 1887, 17186, 305, 2784, 4868, 363, 278, 13, 1678, 396, 1788, 310, 16712, 10693, 29889, 445, 884, 11524, 385, 12678, 310, 278, 13, 1678, 396, 6056, 310, 278, 432, 562, 711, 713, 12430, 29889, 29871, 2211, 24372, 313, 10184, 746, 452, 29939, 29922, 29896, 29897, 526, 1304, 13, 1678, 396, 304, 12678, 278, 17186, 305, 2784, 4868, 491, 16259, 12651, 29889, 29871, 278, 937, 13, 1678, 396, 22786, 362, 4608, 338, 2729, 373, 278, 2847, 25748, 322, 5305, 310, 13, 1678, 396, 13465, 29889, 29871, 278, 1473, 22786, 362, 4608, 338, 8429, 773, 1790, 13, 1678, 396, 17983, 310, 278, 16712, 6306, 29889, 29871, 278, 4654, 22786, 362, 4608, 13, 1678, 396, 338, 8429, 773, 22786, 800, 2729, 871, 373, 278, 2847, 1819, 29889, 13, 1678, 396, 7117, 393, 526, 5225, 526, 2337, 3939, 304, 1661, 29899, 9171, 1819, 313, 19499, 13, 1678, 396, 373, 278, 937, 12541, 467, 29871, 746, 2472, 338, 3625, 29892, 2562, 338, 4586, 304, 13, 1678, 396, 9801, 393, 7117, 310, 278, 22786, 362, 4608, 505, 18906, 607, 526, 13, 1678, 396, 13747, 411, 278, 269, 4757, 267, 310, 1887, 1650, 19684, 29889, 29871, 884, 6755, 278, 13, 1678, 396, 10150, 3216, 313, 14943, 299, 29897, 363, 278, 937, 16291, 29889, 13, 13, 1678, 396, 22786, 362, 4608, 2159, 338, 4934, 4868, 363, 599, 24372, 29889, 29871, 10272, 13, 1678, 396, 445, 1735, 515, 278, 2159, 310, 278, 4608, 310, 2847, 1819, 29889, 13, 1678, 628, 29891, 353, 1104, 546, 334, 6056, 29898, 29891, 29897, 13, 1678, 628, 29891, 353, 628, 29891, 470, 1104, 546, 13, 1678, 628, 29891, 353, 5614, 952, 647, 29898, 29881, 873, 29892, 15414, 29897, 13, 1678, 628, 29888, 353, 6056, 29898, 29891, 10080, 29897, 13, 1678, 285, 29890, 299, 353, 4236, 29898, 14943, 299, 29892, 628, 29888, 29897, 13, 13, 1678, 565, 628, 29888, 29901, 13, 4706, 396, 671, 2847, 25748, 363, 937, 22786, 362, 13, 4706, 805, 29891, 7503, 29962, 353, 343, 10080, 13, 4706, 343, 29886, 7503, 29962, 353, 343, 10080, 13, 1678, 1683, 29901, 13, 4706, 396, 2609, 505, 263, 1870, 22786, 362, 4608, 13, 4706, 805, 29891, 7503, 29962, 353, 29871, 29900, 29889, 29900, 13, 4706, 343, 29886, 7503, 29962, 353, 29871, 29896, 29889, 29900, 13, 4706, 628, 29888, 353, 6056, 29898, 1478, 29897, 13, 13, 1678, 4489, 29881, 431, 353, 29871, 29900, 29889, 29900, 13, 1678, 301, 29895, 353, 1375, 29898, 10743, 718, 29871, 29896, 29892, 29871, 29941, 29897, 13, 1678, 363, 413, 297, 3464, 29898, 29896, 29892, 301, 29895, 718, 29871, 29896, 1125, 13, 13, 4706, 396, 4529, 13499, 28179, 4608, 310, 2847, 1819, 13, 4706, 282, 29894, 7503, 29962, 353, 343, 718, 628, 29891, 847, 628, 29888, 334, 343, 29886, 13, 13, 4706, 565, 413, 1275, 29871, 29906, 29901, 13, 9651, 396, 671, 263, 9500, 287, 995, 310, 278, 7417, 2286, 297, 20602, 13, 9651, 396, 697, 12678, 13, 9651, 343, 29886, 7503, 29962, 353, 4489, 29898, 29874, 718, 1146, 29892, 282, 29894, 29897, 462, 462, 259, 396, 14707, 13, 9651, 282, 29894, 7503, 29962, 353, 343, 29886, 448, 18668, 13, 13, 4706, 1683, 29901, 13, 9651, 396, 14707, 25748, 6942, 411, 13499, 28179, 4608, 322, 13, 9651, 396, 10272, 6590, 12651, 13, 9651, 343, 29886, 7503, 29962, 353, 4489, 29898, 29874, 29892, 282, 29894, 29897, 462, 462, 4706, 396, 14707, 13, 9651, 282, 29894, 7503, 29962, 353, 343, 29886, 448, 343, 10080, 13, 13, 4706, 396, 6755, 10150, 13451, 373, 278, 937, 16291, 322, 263, 1887, 17186, 305, 2784, 13, 4706, 396, 4868, 13, 4706, 285, 29890, 299, 353, 4236, 29898, 14943, 299, 29892, 6056, 29898, 1478, 876, 13, 4706, 628, 29888, 353, 6056, 29898, 29886, 29894, 29897, 13, 4706, 565, 628, 29888, 6736, 4802, 334, 6425, 29898, 29881, 873, 1125, 13, 9651, 396, 12566, 2750, 385, 11969, 13, 9651, 4489, 29881, 431, 353, 4802, 13, 9651, 2867, 13, 4706, 4489, 29881, 431, 353, 4236, 29898, 2176, 29881, 431, 29892, 628, 29888, 847, 6425, 29898, 29881, 873, 876, 13, 13, 4706, 565, 413, 1275, 301, 29895, 29901, 13, 9651, 2867, 13, 13, 4706, 396, 6755, 2446, 22786, 362, 4608, 13, 4706, 628, 29888, 353, 628, 29888, 470, 29871, 29896, 29889, 29900, 13, 4706, 565, 413, 1275, 29871, 29906, 29901, 13, 9651, 13475, 353, 343, 29889, 8552, 580, 462, 462, 462, 396, 9649, 13, 9651, 13475, 7503, 29962, 353, 7442, 29889, 3062, 29898, 4518, 29892, 13475, 29892, 628, 29891, 847, 1104, 546, 29897, 13, 4706, 1683, 29901, 13, 9651, 13475, 353, 282, 29894, 29889, 8552, 580, 462, 795, 396, 6425, 6206, 313, 19676, 29897, 13, 9651, 13475, 7503, 29962, 353, 7442, 29889, 3062, 29898, 4518, 29892, 13475, 29892, 628, 29888, 29897, 13, 4706, 805, 29891, 7503, 29962, 353, 7442, 29889, 3062, 29898, 1028, 29891, 29892, 805, 29891, 29892, 343, 29886, 29897, 13, 13, 4706, 396, 671, 1959, 5305, 565, 1950, 29889, 13, 4706, 343, 29886, 7503, 29962, 353, 7442, 29889, 3062, 29898, 1028, 29891, 29892, 7442, 29889, 9708, 952, 647, 29898, 4518, 29889, 6370, 29892, 805, 29891, 29889, 6370, 511, 13475, 29889, 6370, 29897, 13, 4706, 565, 7442, 29889, 790, 431, 29881, 1853, 29898, 29891, 29889, 29881, 1853, 29892, 7442, 29889, 19676, 29888, 417, 1218, 1125, 13, 9651, 343, 29886, 7503, 29962, 4619, 29871, 29896, 29926, 29930, 9302, 29889, 3062, 29898, 1028, 29891, 29892, 7442, 29889, 9708, 952, 647, 29898, 4518, 29889, 326, 351, 29892, 805, 29891, 29889, 326, 351, 511, 13475, 29889, 326, 351, 29897, 13, 4706, 628, 29888, 353, 6056, 29898, 1478, 29897, 13, 13, 1678, 396, 10272, 263, 3216, 313, 2941, 24381, 29897, 373, 278, 6056, 310, 278, 1473, 16291, 13, 1678, 343, 6099, 29890, 353, 4489, 8235, 29890, 718, 4489, 29881, 431, 334, 285, 29890, 299, 13, 13, 1678, 396, 4529, 278, 20341, 749, 3443, 2501, 607, 278, 6257, 4331, 2159, 338, 304, 367, 13, 1678, 396, 2729, 29889, 29871, 263, 995, 297, 278, 7256, 310, 278, 1059, 20341, 749, 3464, 338, 4629, 29889, 13, 1678, 304, 2506, 29886, 353, 7442, 29889, 1188, 29896, 29900, 29898, 300, 324, 29897, 13, 1678, 304, 29880, 2083, 353, 304, 2506, 29886, 29889, 2083, 580, 13, 1678, 304, 29880, 1195, 353, 1375, 29898, 517, 2506, 29886, 29889, 1195, 3285, 4802, 29897, 13, 1678, 304, 22833, 353, 29871, 29896, 29900, 29889, 29900, 3579, 313, 29900, 29889, 29945, 334, 313, 25027, 2083, 847, 452, 29939, 718, 304, 29880, 1195, 29897, 847, 313, 29885, 2098, 718, 29871, 29896, 876, 13, 13, 1678, 396, 10272, 263, 6257, 4331, 2159, 2729, 373, 278, 2038, 937, 322, 1473, 13, 1678, 396, 16291, 2472, 13, 13, 1678, 396, 9250, 278, 4331, 3309, 304, 367, 451, 16600, 1135, 6425, 29898, 29890, 29899, 29874, 467, 13, 1678, 396, 313, 28952, 289, 338, 2086, 3802, 304, 263, 29897, 13, 1678, 298, 353, 633, 4928, 29916, 13, 1678, 565, 343, 6099, 29890, 1275, 29871, 29900, 29889, 29900, 322, 285, 29890, 299, 1275, 29871, 29900, 29889, 29900, 29901, 13, 4706, 396, 1716, 937, 16291, 1840, 313, 14943, 299, 29897, 322, 1473, 16291, 1840, 313, 2941, 24381, 29897, 13, 4706, 396, 526, 5225, 13, 4706, 565, 304, 22833, 529, 29871, 29896, 29889, 29900, 29901, 13, 9651, 298, 353, 633, 4928, 29916, 334, 304, 22833, 13, 1678, 25342, 343, 6099, 29890, 1275, 29871, 29900, 29889, 29900, 29901, 13, 4706, 396, 29871, 871, 1473, 16291, 1840, 313, 2941, 24381, 29897, 338, 5225, 13, 4706, 565, 304, 22833, 529, 285, 29890, 299, 334, 633, 4928, 29916, 29901, 13, 9651, 298, 353, 304, 22833, 847, 285, 29890, 299, 13, 1678, 1683, 29901, 13, 4706, 396, 1473, 16291, 1840, 313, 2941, 24381, 29897, 338, 1661, 29899, 9171, 13, 4706, 269, 719, 6099, 29890, 353, 18074, 2273, 29898, 29900, 29889, 29945, 334, 343, 6099, 29890, 29897, 13, 4706, 565, 304, 22833, 529, 269, 719, 6099, 29890, 334, 633, 4928, 29916, 29901, 13, 9651, 298, 353, 304, 22833, 847, 269, 719, 6099, 29890, 13, 13, 1678, 396, 4340, 9250, 278, 4331, 3309, 304, 367, 451, 16600, 1135, 259, 29896, 29914, 2176, 29881, 431, 13, 1678, 565, 4489, 29881, 431, 29901, 462, 462, 795, 396, 421, 361, 29952, 2715, 313, 4563, 29871, 29900, 29897, 13, 4706, 298, 353, 1375, 29898, 29882, 29892, 29871, 29896, 29889, 29900, 847, 4489, 29881, 431, 29897, 13, 13, 1678, 396, 7146, 29892, 9250, 278, 4331, 3309, 304, 367, 451, 7968, 1135, 13, 1678, 396, 29871, 29896, 29900, 29900, 29930, 9278, 29930, 6897, 29898, 29874, 467, 29871, 3138, 29892, 565, 263, 29922, 29900, 29889, 322, 278, 15712, 298, 1090, 1731, 287, 304, 13, 1678, 396, 5225, 29892, 278, 5687, 3639, 2319, 29930, 6897, 29898, 29890, 29897, 363, 278, 4331, 3309, 29889, 13, 1678, 298, 353, 4236, 29898, 29882, 29892, 29871, 29896, 29900, 29900, 29889, 29900, 334, 2319, 334, 6425, 29898, 29874, 876, 13, 1678, 298, 353, 298, 470, 2319, 334, 6425, 29898, 29890, 29897, 13, 13, 1678, 396, 1286, 731, 5305, 310, 13465, 13, 1678, 298, 353, 5614, 952, 647, 29898, 29882, 29892, 15414, 29897, 13, 1678, 736, 298, 13, 13, 13, 1990, 6912, 1089, 29928, 1947, 6466, 29898, 29928, 1947, 6466, 1125, 13, 1678, 9995, 1509, 6912, 1089, 29915, 29879, 5751, 363, 278, 17983, 310, 278, 20619, 1962, 24655, 29889, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 260, 29918, 1025, 29892, 260, 29892, 343, 29918, 1025, 29892, 660, 1125, 13, 4706, 2428, 29898, 17241, 1089, 29928, 1947, 6466, 29892, 1583, 467, 1649, 2344, 12035, 29873, 29918, 1025, 29892, 260, 29897, 13, 4706, 1583, 29889, 29882, 353, 260, 448, 260, 29918, 1025, 13, 4706, 1583, 29889, 29984, 353, 660, 334, 1583, 29889, 29882, 13, 4706, 1583, 29889, 29891, 29918, 1025, 353, 343, 29918, 1025, 13, 13, 1678, 822, 903, 4804, 29918, 13699, 29898, 1311, 29892, 260, 1125, 13, 13, 4706, 396, 6287, 29881, 931, 13, 4706, 921, 353, 313, 29873, 448, 1583, 29889, 29873, 29918, 1025, 29897, 847, 1583, 29889, 29882, 13, 13, 4706, 396, 6912, 1089, 29915, 29879, 5751, 29901, 13, 4706, 343, 353, 1583, 29889, 29984, 29889, 29911, 14352, 29896, 29892, 584, 29892, 7442, 29889, 1482, 8990, 29962, 334, 921, 13, 4706, 363, 3855, 297, 18764, 287, 29898, 1311, 29889, 29984, 29889, 29911, 7503, 29899, 29896, 29962, 1125, 13, 9651, 343, 4619, 3855, 7503, 29892, 7442, 29889, 1482, 8990, 29962, 13, 9651, 343, 334, 29922, 921, 13, 4706, 343, 4619, 1583, 29889, 29891, 29918, 1025, 7503, 29892, 7442, 29889, 1482, 8990, 29962, 13, 13, 4706, 396, 817, 445, 421, 361, 29952, 304, 1209, 4560, 2272, 29915, 29879, 5190, 6987, 29889, 306, 29915, 29885, 451, 1854, 2020, 29889, 13, 4706, 565, 260, 29889, 12181, 29901, 13, 9651, 736, 343, 13, 4706, 1683, 29901, 13, 9651, 736, 343, 7503, 29892, 29871, 29900, 29962, 13, 13, 13, 1990, 22985, 29928, 1947, 6466, 29898, 29928, 1947, 6466, 1125, 13, 1678, 9995, 12697, 20064, 1061, 29889, 13, 13, 1678, 910, 770, 508, 367, 1304, 565, 278, 1962, 471, 7625, 491, 1294, 2390, 22671, 313, 361, 278, 13, 1678, 1095, 1298, 471, 2086, 3802, 304, 2189, 263, 4226, 13465, 4331, 467, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 260, 29918, 1025, 29892, 260, 29892, 343, 29918, 1025, 29892, 343, 1125, 13, 4706, 2428, 29898, 12697, 29928, 1947, 6466, 29892, 1583, 467, 1649, 2344, 12035, 29873, 29918, 1025, 29892, 260, 29897, 13, 4706, 1583, 29889, 29882, 353, 260, 448, 260, 29918, 1025, 13, 4706, 1583, 29889, 29891, 29918, 1025, 353, 343, 29918, 1025, 7503, 29892, 7442, 29889, 1482, 8990, 29962, 13, 4706, 1583, 29889, 4518, 353, 313, 29891, 448, 343, 29918, 1025, 29897, 7503, 29892, 7442, 29889, 1482, 8990, 29962, 13, 13, 1678, 822, 903, 4804, 29918, 13699, 29898, 1311, 29892, 260, 1125, 13, 4706, 260, 353, 7442, 29889, 271, 280, 579, 29918, 29896, 29881, 29898, 29873, 29897, 13, 4706, 921, 353, 313, 29873, 448, 1583, 29889, 29873, 29918, 1025, 29897, 847, 1583, 29889, 29882, 13, 13, 4706, 396, 5608, 29694, 13, 4706, 343, 353, 921, 334, 1583, 29889, 4518, 13, 4706, 343, 4619, 1583, 29889, 29891, 29918, 1025, 13, 13, 4706, 396, 817, 445, 421, 361, 29952, 304, 1209, 4560, 2272, 29915, 29879, 5190, 6987, 29889, 306, 29915, 29885, 451, 1854, 2020, 29889, 13, 4706, 565, 260, 29889, 12181, 29901, 13, 9651, 736, 343, 13, 4706, 1683, 29901, 13, 9651, 736, 343, 7503, 29892, 29871, 29900, 29962, 13, 13, 13, 1990, 28618, 293, 29928, 1947, 6466, 29898, 17241, 1089, 29928, 1947, 6466, 1125, 13, 1678, 9995, 29907, 431, 293, 29892, 315, 29896, 9126, 20064, 1061, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 260, 29918, 1025, 29892, 260, 29892, 343, 29918, 1025, 29892, 343, 29892, 285, 29918, 1025, 29892, 285, 1125, 13, 4706, 396, 4327, 1881, 13, 4706, 298, 353, 260, 448, 260, 29918, 1025, 13, 4706, 13475, 353, 313, 29891, 448, 343, 29918, 1025, 29897, 13, 4706, 476, 353, 7442, 29889, 1429, 4197, 29888, 29918, 1025, 29892, 13475, 29914, 29882, 29892, 285, 2314, 13, 4706, 349, 353, 7442, 29889, 2378, 4197, 29961, 29896, 29889, 29900, 29892, 448, 29906, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 1402, 13, 462, 418, 518, 29900, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 29892, 448, 29906, 29889, 29900, 1402, 13, 462, 418, 518, 29900, 29889, 29900, 29892, 448, 29896, 29889, 29900, 29892, 29871, 29896, 29889, 29900, 24960, 13, 4706, 660, 353, 476, 29889, 29911, 732, 349, 13, 4706, 2428, 29898, 29907, 431, 293, 29928, 1947, 6466, 29892, 1583, 467, 1649, 2344, 12035, 29873, 29918, 1025, 29892, 260, 29892, 343, 29918, 1025, 29892, 660, 29897, 13, 13, 13, 1753, 380, 2593, 29918, 29874, 29898, 7692, 29892, 921, 29892, 343, 29892, 298, 3707, 29892, 20771, 29887, 29892, 921, 355, 29892, 4236, 13801, 29876, 29892, 281, 29873, 29892, 285, 3594, 29892, 325, 29900, 29892, 3438, 29892, 13, 9651, 380, 1182, 328, 29892, 10345, 574, 1125, 13, 1678, 5124, 6937, 303, 2593, 29918, 29874, 29952, 24876, 15806, 380, 2593, 2264, 363, 385, 6261, 7525, 479, 29899, 29968, 329, 941, 775, 29889, 13, 1678, 739, 1122, 367, 5407, 363, 916, 6261, 3519, 2086, 29889, 13, 13, 1678, 319, 1661, 10660, 3081, 1158, 338, 1304, 304, 1284, 278, 28526, 25973, 310, 278, 13, 1678, 1108, 29889, 4525, 526, 9401, 304, 278, 25806, 12786, 310, 278, 1158, 304, 13, 1678, 24809, 565, 278, 1108, 338, 380, 2593, 29889, 1281, 369, 10238, 310, 278, 3081, 24372, 338, 13, 1678, 16112, 11819, 287, 518, 29896, 1822, 910, 338, 263, 5132, 13962, 310, 518, 29906, 1822, 13, 13, 1678, 450, 24809, 358, 338, 451, 3889, 29889, 21882, 16291, 740, 6161, 800, 526, 13, 1678, 2309, 29889, 910, 740, 881, 451, 367, 2000, 1269, 4331, 29892, 541, 871, 565, 2845, 1784, 13, 1678, 4331, 4418, 1973, 505, 1063, 8900, 29892, 470, 263, 3287, 310, 664, 756, 1063, 2309, 29889, 13, 13, 1678, 18601, 363, 4280, 659, 6742, 4828, 338, 2715, 297, 263, 4996, 322, 26616, 982, 29889, 13, 1678, 450, 2441, 4280, 12047, 526, 9875, 491, 1855, 12047, 310, 8951, 278, 13, 1678, 3309, 411, 278, 1855, 322, 6382, 3821, 5633, 310, 278, 2441, 29889, 960, 278, 28526, 13, 1678, 7388, 1767, 310, 278, 1108, 338, 4280, 29892, 769, 967, 4280, 25482, 403, 338, 884, 13, 1678, 1476, 29889, 910, 947, 451, 2833, 304, 1006, 29888, 406, 411, 278, 380, 2593, 2264, 24809, 358, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 2090, 584, 1246, 519, 13, 4706, 10428, 29899, 3179, 2625, 310, 278, 1788, 29889, 450, 5432, 12608, 338, 2090, 29898, 29873, 29892, 343, 467, 13, 4706, 2266, 260, 338, 263, 17336, 29889, 450, 29871, 299, 2378, 343, 756, 756, 8267, 313, 29876, 29892, 29897, 322, 2090, 1818, 13, 4706, 736, 1409, 29918, 4561, 411, 278, 1021, 8267, 313, 29876, 29892, 467, 13, 1678, 921, 584, 5785, 13, 4706, 9626, 995, 310, 278, 7417, 2286, 313, 2230, 416, 421, 29873, 29952, 297, 4560, 2272, 13, 1678, 343, 584, 1409, 29918, 4561, 29892, 8267, 313, 29876, 29892, 29897, 13, 4706, 9626, 26368, 1650, 29889, 13, 1678, 298, 3707, 584, 5785, 13, 4706, 21179, 310, 278, 1833, 13465, 4331, 29889, 13, 1678, 20771, 29887, 584, 5785, 13, 4706, 319, 19698, 4331, 2159, 29889, 13, 1678, 921, 355, 584, 5785, 13, 4706, 9550, 995, 310, 278, 7417, 2286, 313, 2230, 1125, 421, 29873, 29918, 9917, 29952, 297, 4560, 2272, 29889, 13, 1678, 4236, 13801, 29876, 584, 938, 13, 4706, 530, 22691, 1353, 310, 740, 6161, 800, 363, 278, 13465, 29889, 450, 13, 4706, 624, 2593, 2264, 1243, 338, 451, 2309, 565, 421, 29916, 355, 29952, 338, 3806, 304, 367, 7450, 297, 28145, 13, 4706, 1135, 421, 3317, 13801, 29876, 29952, 6576, 29936, 278, 995, 7700, 338, 4133, 297, 393, 1206, 29889, 13, 4706, 21099, 2463, 3913, 421, 8708, 29887, 29952, 322, 421, 18253, 1412, 13, 1678, 281, 29873, 584, 1409, 29918, 4561, 29892, 8267, 313, 29876, 29892, 29897, 13, 4706, 4398, 411, 6374, 29892, 1661, 29899, 9171, 18177, 29889, 2630, 1041, 2978, 278, 18497, 310, 421, 29891, 29952, 13, 4706, 2645, 278, 1833, 13465, 4331, 881, 664, 1532, 29889, 13, 1678, 285, 3594, 584, 1409, 29918, 4561, 29892, 8267, 313, 29876, 29892, 29897, 13, 4706, 285, 3594, 353, 2090, 29898, 29916, 29892, 343, 467, 739, 338, 385, 1881, 2980, 1363, 372, 29915, 29879, 5491, 3625, 13, 4706, 515, 278, 3990, 1061, 29889, 13, 1678, 325, 29900, 584, 1409, 29918, 4561, 29892, 8267, 313, 29876, 29892, 29897, 13, 4706, 319, 22786, 362, 4608, 304, 1369, 278, 3081, 12541, 304, 1284, 278, 28526, 13, 4706, 25973, 363, 380, 2593, 2264, 15326, 29889, 450, 1059, 4608, 313, 29881, 17678, 13, 4706, 1546, 1023, 15685, 6851, 29897, 1736, 1532, 363, 7525, 479, 476, 329, 941, 3519, 29889, 13, 1678, 3438, 584, 938, 13, 4706, 26475, 573, 1353, 310, 740, 6161, 800, 639, 4331, 565, 278, 13465, 13, 4706, 1158, 29889, 13, 1678, 380, 1182, 328, 584, 5785, 13, 4706, 450, 25806, 10452, 310, 278, 1158, 338, 6881, 630, 408, 263, 19308, 15232, 13, 4706, 2820, 278, 3978, 29889, 421, 303, 1182, 328, 29952, 338, 278, 11855, 310, 445, 15232, 29889, 13, 1678, 10345, 574, 584, 5785, 13, 4706, 450, 25806, 10452, 310, 278, 1158, 338, 6881, 630, 408, 263, 19308, 15232, 13, 4706, 2820, 278, 3978, 29889, 910, 16845, 7415, 297, 562, 2764, 403, 2978, 278, 13, 4706, 6382, 3821, 9685, 29889, 421, 13161, 574, 29952, 338, 278, 18806, 296, 310, 278, 10696, 297, 278, 7568, 2175, 13, 4706, 4203, 29899, 22116, 363, 607, 278, 16845, 338, 1603, 16232, 29889, 319, 7388, 1767, 13, 4706, 503, 363, 607, 13, 9651, 448, 29920, 29889, 326, 351, 29914, 29920, 29889, 6370, 353, 10345, 29898, 2521, 6278, 29920, 876, 5277, 10345, 574, 13, 4706, 508, 367, 1223, 11517, 29889, 4451, 2975, 445, 3464, 29892, 278, 995, 6213, 313, 6948, 545, 29897, 338, 13, 4706, 4133, 29889, 319, 9177, 338, 2183, 297, 393, 1206, 29892, 1363, 445, 2472, 1122, 13, 4706, 1603, 367, 5407, 304, 278, 1404, 29889, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 380, 361, 584, 6213, 470, 6120, 13, 4706, 7867, 310, 278, 380, 2593, 2264, 15326, 29901, 5852, 565, 278, 1108, 338, 380, 2593, 29892, 13, 4706, 7700, 565, 372, 338, 451, 380, 2593, 29892, 322, 6213, 565, 9644, 545, 29889, 13, 1678, 3876, 276, 584, 6213, 470, 6120, 13, 4706, 26596, 1134, 310, 3876, 1476, 297, 380, 2593, 2264, 15326, 29901, 5852, 565, 278, 3876, 338, 13, 4706, 1855, 29892, 7700, 565, 372, 338, 4280, 29892, 322, 6213, 565, 9815, 29889, 13, 13, 1678, 28318, 13, 1678, 448, 1378, 29899, 13, 1678, 518, 29896, 29962, 529, 5813, 10202, 376, 12130, 4211, 14556, 624, 2593, 2264, 363, 7525, 479, 29994, 29968, 329, 941, 8108, 29879, 613, 22717, 5194, 13, 1678, 8237, 373, 23753, 928, 322, 13070, 936, 11796, 292, 29892, 3684, 29889, 29871, 29896, 29906, 29892, 1939, 29889, 29871, 29906, 29892, 29871, 29896, 29929, 29929, 29896, 29892, 13, 1678, 6499, 29889, 29871, 29906, 29953, 29900, 29899, 29906, 29955, 29906, 29892, 2045, 597, 1867, 29875, 29889, 990, 29914, 29896, 29900, 29889, 29896, 29896, 29941, 29955, 29914, 29900, 29929, 29896, 29906, 29900, 29896, 29945, 13, 1678, 518, 29906, 29962, 8533, 2752, 29901, 390, 29968, 5091, 568, 29889, 29888, 29892, 2045, 597, 1636, 29889, 1212, 1982, 29889, 990, 29914, 356, 29914, 29878, 2039, 29884, 568, 29914, 13, 1678, 9995, 13, 13, 1678, 321, 567, 10052, 353, 7442, 29889, 29888, 3888, 29898, 29891, 29889, 29881, 1853, 467, 8961, 10052, 13, 1678, 3876, 276, 353, 6213, 539, 396, 17999, 13, 13, 1678, 396, 960, 278, 1108, 338, 4280, 29892, 1653, 3765, 3309, 1855, 12047, 310, 278, 13, 1678, 396, 2441, 4280, 12047, 13, 1678, 565, 7442, 29889, 790, 431, 29881, 1853, 29898, 29891, 29889, 29881, 1853, 29892, 7442, 29889, 19676, 29888, 417, 1218, 1125, 13, 4706, 822, 7985, 29918, 19676, 29898, 29894, 1125, 736, 7442, 29889, 535, 29883, 2579, 403, 3552, 29894, 29889, 6370, 29892, 325, 29889, 326, 351, 876, 13, 4706, 822, 8078, 29918, 19676, 29898, 29894, 1125, 736, 325, 7503, 29894, 29889, 2311, 458, 29906, 29962, 718, 325, 29961, 29894, 29889, 2311, 458, 29906, 29901, 14178, 29896, 29926, 13, 4706, 822, 285, 29898, 29916, 29892, 343, 1125, 736, 7985, 29918, 19676, 29898, 7692, 29898, 29916, 29892, 8078, 29918, 19676, 29898, 29891, 4961, 13, 4706, 343, 353, 7985, 29918, 19676, 29898, 29891, 29897, 13, 4706, 285, 3594, 353, 7985, 29918, 19676, 29898, 29888, 3594, 29897, 13, 4706, 325, 29900, 353, 7985, 29918, 19676, 29898, 29894, 29900, 29897, 13, 4706, 281, 29873, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 14554, 29892, 281, 29873, 876, 13, 1678, 1683, 29901, 13, 4706, 285, 353, 2090, 13, 13, 1678, 396, 960, 278, 1857, 4331, 2159, 2923, 414, 23228, 368, 515, 278, 6588, 29892, 13, 1678, 396, 278, 1108, 338, 451, 380, 2593, 29889, 13, 1678, 565, 6425, 29898, 3123, 340, 29914, 8708, 29887, 29897, 1405, 29871, 29945, 470, 6425, 29898, 3123, 340, 29914, 8708, 29887, 29897, 529, 29871, 29900, 29889, 29906, 29901, 13, 4706, 380, 361, 353, 7700, 13, 4706, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 396, 450, 6588, 4331, 2159, 338, 1304, 304, 8500, 278, 3438, 297, 740, 6161, 800, 13, 1678, 396, 310, 28321, 278, 13465, 304, 921, 355, 29889, 29871, 960, 445, 3438, 338, 694, 901, 1135, 13, 1678, 396, 4236, 13801, 29876, 29892, 278, 1108, 338, 8052, 451, 380, 2593, 29901, 960, 278, 4331, 2159, 338, 1641, 13, 1678, 396, 22078, 373, 25502, 310, 25806, 29892, 372, 674, 7952, 3802, 304, 20771, 29887, 29889, 13, 1678, 396, 450, 18988, 674, 769, 367, 1781, 29892, 541, 278, 3438, 338, 2086, 4482, 304, 2050, 278, 13, 1678, 396, 1108, 380, 2593, 29889, 29871, 960, 278, 4331, 2159, 338, 451, 3802, 304, 20771, 29887, 29892, 278, 1108, 338, 451, 13, 1678, 396, 380, 2593, 29889, 29871, 20370, 982, 727, 338, 694, 1298, 304, 6724, 363, 263, 4331, 2159, 13, 1678, 396, 24345, 2861, 304, 25806, 29889, 13, 268, 486, 9600, 18038, 353, 3438, 334, 6425, 3552, 29916, 355, 448, 921, 29897, 847, 20771, 29887, 29897, 13, 1678, 565, 29871, 486, 9600, 18038, 5277, 4236, 13801, 29876, 29901, 13, 4706, 380, 361, 353, 7700, 13, 4706, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 396, 1670, 505, 1063, 1784, 4331, 4418, 1973, 470, 263, 3287, 310, 664, 756, 1063, 2309, 29889, 29871, 2567, 13, 1678, 396, 591, 1818, 8161, 565, 445, 338, 2861, 304, 278, 25806, 21862, 310, 278, 13, 1678, 396, 7063, 29889, 29871, 910, 338, 2309, 491, 25202, 278, 28526, 25973, 310, 278, 13, 1678, 396, 1887, 10968, 713, 322, 769, 6724, 3692, 20771, 29887, 16161, 304, 1641, 373, 278, 13, 1678, 396, 10452, 310, 278, 25806, 5120, 29889, 13, 13, 1678, 396, 450, 2159, 310, 343, 7503, 29962, 8128, 6287, 2472, 4312, 304, 26368, 13, 1678, 396, 278, 10968, 713, 491, 12651, 29889, 13, 1678, 343, 29876, 1758, 353, 18074, 2273, 3552, 29891, 29914, 14554, 29897, 732, 313, 29891, 29914, 14554, 876, 13, 1678, 18074, 29878, 1758, 29883, 353, 18074, 2273, 29898, 8961, 10052, 29897, 13, 1678, 6287, 353, 343, 29876, 1758, 334, 18074, 29878, 1758, 29883, 13, 1678, 565, 6287, 1275, 29871, 29900, 29889, 29900, 29901, 13, 4706, 396, 360, 387, 759, 403, 1206, 29889, 29871, 343, 7503, 29962, 338, 313, 284, 3242, 29897, 278, 5225, 4608, 577, 278, 6287, 338, 13, 4706, 396, 451, 3342, 29889, 29871, 450, 1881, 4608, 325, 29900, 7503, 29962, 338, 278, 4328, 1546, 343, 7503, 29962, 13, 4706, 396, 322, 263, 5224, 1797, 16845, 304, 278, 1650, 393, 338, 2629, 278, 13, 4706, 396, 1059, 20341, 749, 29889, 29871, 1932, 343, 7503, 29962, 1109, 17006, 29892, 325, 29900, 7503, 29962, 338, 3528, 385, 22691, 13, 4706, 396, 26368, 1650, 29892, 577, 591, 2125, 6287, 515, 372, 29892, 565, 445, 338, 1950, 29889, 13, 4706, 343, 29876, 1758, 353, 18074, 2273, 3552, 29894, 29900, 29914, 14554, 29897, 732, 313, 29894, 29900, 29914, 14554, 876, 13, 4706, 6287, 353, 343, 29876, 1758, 334, 18074, 29878, 1758, 29883, 13, 4706, 565, 6287, 1275, 29871, 29900, 29889, 29900, 29901, 13, 9651, 380, 361, 353, 6213, 539, 396, 17999, 13, 9651, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 325, 29900, 29894, 29900, 353, 313, 29894, 29900, 29914, 14554, 29897, 732, 313, 29894, 29900, 29914, 14554, 29897, 13, 1678, 565, 325, 29900, 29894, 29900, 1275, 29871, 29900, 29889, 29900, 29901, 13, 4706, 396, 360, 387, 759, 403, 1206, 29889, 29871, 325, 29900, 7503, 29962, 338, 313, 284, 3242, 29897, 278, 5225, 4608, 577, 2609, 13, 4706, 396, 367, 1304, 304, 4529, 263, 5305, 363, 385, 11924, 304, 343, 7503, 1822, 29871, 3967, 263, 13, 4706, 396, 376, 8172, 29908, 5305, 29889, 13, 4706, 325, 29900, 7503, 29962, 353, 29871, 29896, 29889, 29900, 13, 4706, 325, 29900, 29894, 29900, 353, 313, 29894, 29900, 29914, 14554, 29897, 732, 313, 29894, 29900, 29914, 14554, 29897, 13, 13, 1678, 325, 29900, 29876, 1758, 353, 18074, 2273, 29898, 29894, 29900, 29894, 29900, 29897, 13, 1678, 325, 29900, 847, 29922, 325, 29900, 29876, 1758, 13, 1678, 325, 29900, 29894, 29900, 353, 29871, 29896, 29889, 29900, 13, 13, 1678, 396, 4803, 263, 1661, 10660, 3081, 1158, 304, 12678, 278, 1023, 28526, 25973, 29889, 13, 1678, 396, 325, 29900, 7503, 29962, 338, 4049, 1407, 8261, 297, 278, 1023, 6942, 7388, 345, 14359, 29889, 29871, 1152, 445, 13, 1678, 396, 2769, 278, 16287, 338, 19098, 411, 278, 23227, 393, 263, 13114, 13, 1678, 396, 1353, 310, 24372, 674, 9378, 625, 29889, 29871, 14598, 29892, 372, 338, 5181, 304, 18720, 13, 1678, 396, 263, 2924, 310, 3587, 759, 4135, 746, 727, 338, 263, 28526, 1855, 7388, 1767, 29889, 29871, 450, 13, 1678, 396, 1014, 14608, 457, 380, 2593, 29918, 29890, 947, 445, 29889, 29871, 512, 278, 937, 1018, 29892, 302, 2202, 353, 29871, 29900, 29892, 263, 9596, 280, 1141, 13, 1678, 396, 13911, 993, 363, 1316, 385, 7388, 1767, 338, 16601, 408, 696, 430, 29889, 29871, 2860, 1269, 13, 1678, 396, 12541, 29892, 390, 1001, 29949, 2891, 2912, 267, 263, 716, 9596, 280, 1141, 13911, 993, 322, 6987, 3692, 278, 13, 1678, 396, 1023, 6881, 800, 8661, 304, 697, 260, 9097, 310, 697, 639, 1644, 322, 278, 7388, 1767, 29892, 13, 1678, 396, 7388, 8111, 5101, 15523, 263, 1347, 296, 1243, 373, 278, 10995, 950, 29889, 29871, 3876, 276, 353, 5852, 13, 1678, 396, 18470, 393, 263, 2323, 28526, 1855, 3876, 756, 1063, 1476, 29889, 13, 1678, 611, 486, 719, 353, 29871, 29947, 13, 1678, 363, 302, 2202, 297, 3464, 29898, 655, 486, 719, 1125, 13, 13, 4706, 325, 29896, 29892, 325, 29896, 29894, 29896, 353, 380, 2593, 29918, 29881, 29898, 29894, 29900, 29892, 20771, 29887, 29892, 921, 29892, 343, 29892, 285, 29892, 285, 3594, 29892, 281, 29873, 29892, 6287, 29892, 325, 29900, 29894, 29900, 29897, 13, 13, 4706, 396, 450, 14728, 18074, 2273, 29898, 29894, 29896, 29894, 29896, 29914, 29894, 29900, 29894, 29900, 29897, 338, 263, 5224, 3216, 363, 278, 3234, 310, 20771, 29887, 13, 4706, 396, 322, 263, 2718, 567, 305, 2784, 4868, 29889, 29871, 960, 372, 881, 367, 365, 1718, 1692, 29892, 380, 2593, 2264, 338, 451, 13, 4706, 396, 9250, 292, 278, 4331, 2159, 304, 278, 25806, 5120, 29889, 29871, 450, 12502, 338, 13, 4706, 396, 2821, 3307, 29892, 541, 278, 1855, 2769, 363, 445, 1243, 338, 304, 18720, 385, 13, 4706, 396, 14154, 297, 562, 2764, 403, 16287, 310, 325, 29896, 29894, 29896, 2861, 304, 8093, 16716, 13, 4706, 396, 23342, 297, 3058, 3587, 759, 403, 14209, 29889, 13, 4706, 365, 1718, 1692, 353, 29871, 29896, 29889, 29900, 29872, 29896, 29900, 13, 4706, 565, 18074, 2273, 29898, 29894, 29896, 29894, 29896, 29897, 1405, 365, 1718, 1692, 334, 18074, 2273, 29898, 29894, 29900, 29894, 29900, 1125, 13, 9651, 380, 361, 353, 6213, 539, 396, 17999, 13, 9651, 3876, 276, 353, 6213, 268, 396, 17999, 13, 9651, 736, 380, 361, 29892, 3876, 276, 13, 13, 4706, 325, 29900, 29894, 29896, 353, 313, 29894, 29900, 29914, 14554, 29897, 732, 313, 29894, 29896, 29914, 14554, 29897, 13, 4706, 565, 302, 2202, 1275, 29871, 29900, 29901, 13, 9651, 696, 430, 353, 325, 29900, 29894, 29896, 847, 325, 29900, 29894, 29900, 13, 9651, 396, 910, 338, 278, 937, 9596, 280, 1141, 13911, 993, 6881, 1218, 278, 3234, 310, 13, 9651, 396, 20771, 29887, 322, 263, 28526, 1855, 7388, 1767, 29889, 29871, 960, 372, 881, 367, 1407, 2319, 29892, 13, 9651, 396, 278, 1108, 338, 451, 380, 2593, 29889, 29871, 739, 338, 4100, 304, 1243, 363, 445, 13, 9651, 396, 13331, 577, 408, 304, 5557, 1090, 1731, 322, 3587, 759, 29874, 2478, 297, 278, 13, 9651, 396, 15352, 12541, 29889, 13, 9651, 13630, 1758, 29883, 353, 321, 567, 10052, 3579, 313, 29896, 29914, 29941, 29897, 13, 9651, 565, 6425, 29898, 307, 430, 29897, 529, 13630, 1758, 29883, 29901, 13, 18884, 380, 361, 353, 7700, 13, 18884, 3876, 276, 353, 6213, 268, 396, 17999, 13, 18884, 736, 380, 361, 29892, 3876, 276, 13, 13, 4706, 1683, 29901, 13, 9651, 696, 430, 29892, 364, 1251, 29892, 3876, 29896, 29892, 3876, 29906, 29892, 3876, 276, 353, 380, 2593, 29918, 29890, 29898, 29894, 29896, 29894, 29896, 29892, 325, 29900, 29894, 29896, 29892, 325, 29900, 29894, 29900, 29892, 696, 430, 29897, 13, 9651, 565, 3876, 276, 29901, 13, 18884, 2867, 13, 13, 4706, 325, 29906, 29892, 325, 29906, 29894, 29906, 353, 380, 2593, 29918, 29881, 29898, 29894, 29896, 29892, 20771, 29887, 29892, 921, 29892, 343, 29892, 285, 29892, 285, 3594, 29892, 281, 29873, 29892, 6287, 29892, 325, 29896, 29894, 29896, 29897, 13, 4706, 325, 29900, 29894, 29906, 353, 313, 29894, 29900, 29914, 14554, 29897, 732, 313, 29894, 29906, 29914, 14554, 29897, 13, 4706, 325, 29896, 29894, 29906, 353, 313, 29894, 29896, 29914, 14554, 29897, 732, 313, 29894, 29906, 29914, 14554, 29897, 13, 4706, 696, 430, 29892, 364, 1251, 29892, 3876, 29896, 29892, 3876, 29906, 29892, 3876, 276, 353, 380, 2593, 29918, 29890, 29898, 29894, 29906, 29894, 29906, 29892, 325, 29896, 29894, 29906, 29892, 325, 29896, 29894, 29896, 29892, 696, 430, 29897, 13, 4706, 565, 3876, 276, 29901, 13, 9651, 2867, 13, 13, 4706, 396, 383, 277, 263, 25904, 297, 278, 7388, 1767, 304, 278, 2211, 2551, 573, 4256, 1078, 13, 4706, 396, 325, 29900, 7503, 1402, 325, 29896, 7503, 1402, 325, 29906, 7503, 29962, 310, 278, 3081, 1158, 304, 679, 263, 937, 16845, 13, 4706, 396, 304, 263, 5101, 310, 25973, 29889, 29871, 319, 1243, 1754, 8859, 297, 380, 2593, 29918, 29890, 10469, 13, 4706, 396, 393, 278, 14728, 1439, 29896, 1244, 674, 451, 367, 2086, 2319, 29889, 13, 4706, 1439, 29896, 353, 325, 29900, 29894, 29900, 334, 325, 29896, 29894, 29896, 448, 325, 29900, 29894, 29896, 1068, 29906, 13, 4706, 15595, 29896, 353, 8521, 29894, 29900, 29894, 29900, 334, 325, 29896, 29894, 29906, 718, 325, 29900, 29894, 29896, 334, 325, 29900, 29894, 29906, 6802, 4801, 29896, 13, 4706, 21762, 29896, 353, 313, 29894, 29900, 29894, 29896, 334, 325, 29896, 29894, 29906, 448, 325, 29896, 29894, 29896, 334, 325, 29900, 29894, 29906, 6802, 4801, 29896, 13, 13, 4706, 396, 20504, 403, 1449, 304, 679, 325, 29941, 29892, 1243, 1449, 363, 3587, 759, 4135, 29892, 322, 769, 6216, 263, 13, 4706, 396, 25904, 304, 325, 29896, 7503, 1402, 325, 29906, 7503, 1402, 325, 29941, 7503, 29962, 304, 679, 263, 1473, 16845, 304, 263, 13, 4706, 396, 5101, 310, 25973, 29889, 13, 4706, 325, 29941, 29892, 325, 29941, 29894, 29941, 353, 380, 2593, 29918, 29881, 29898, 29894, 29906, 29892, 20771, 29887, 29892, 921, 29892, 343, 29892, 285, 29892, 285, 3594, 29892, 281, 29873, 29892, 6287, 29892, 325, 29906, 29894, 29906, 29897, 13, 4706, 325, 29896, 29894, 29941, 353, 313, 29894, 29896, 29914, 14554, 29897, 732, 313, 29894, 29941, 29914, 14554, 29897, 13, 4706, 325, 29906, 29894, 29941, 353, 313, 29894, 29906, 29914, 14554, 29897, 732, 313, 29894, 29941, 29914, 14554, 29897, 13, 4706, 696, 430, 29892, 364, 1251, 29892, 3876, 29896, 29892, 3876, 29906, 29892, 3876, 276, 353, 380, 2593, 29918, 29890, 29898, 29894, 29941, 29894, 29941, 29892, 325, 29906, 29894, 29941, 29892, 325, 29906, 29894, 29906, 29892, 696, 430, 29897, 13, 4706, 565, 3876, 276, 29901, 13, 9651, 2867, 13, 4706, 1439, 29906, 353, 325, 29896, 29894, 29896, 334, 325, 29906, 29894, 29906, 448, 325, 29896, 29894, 29906, 1068, 29906, 13, 4706, 15595, 29906, 353, 8521, 29894, 29896, 29894, 29896, 334, 325, 29906, 29894, 29941, 718, 325, 29896, 29894, 29906, 334, 325, 29896, 29894, 29941, 6802, 4801, 29906, 13, 4706, 21762, 29906, 353, 313, 29894, 29896, 29894, 29906, 334, 325, 29906, 29894, 29941, 448, 325, 29906, 29894, 29906, 334, 325, 29896, 29894, 29941, 6802, 4801, 29906, 13, 13, 4706, 396, 3824, 1243, 278, 10995, 950, 310, 278, 25904, 6216, 304, 1074, 565, 591, 1795, 13, 4706, 396, 505, 10087, 263, 5101, 310, 25973, 29889, 13, 4706, 620, 29906, 353, 6425, 29898, 29894, 29941, 29894, 29941, 718, 325, 29906, 29894, 29906, 29930, 2312, 29906, 1068, 29906, 718, 325, 29896, 29894, 29896, 29930, 3571, 29906, 1068, 29906, 718, 29871, 29906, 29930, 29894, 29906, 29894, 29941, 29930, 2312, 29906, 718, 13, 462, 1678, 29906, 29930, 29894, 29896, 29894, 29941, 29930, 3571, 29906, 718, 29871, 29906, 29930, 29894, 29896, 29894, 29906, 29930, 2312, 29906, 29930, 3571, 29906, 29897, 13, 4706, 565, 620, 29906, 5277, 29871, 29896, 29872, 29899, 29953, 334, 325, 29941, 29894, 29941, 29901, 13, 9651, 396, 20535, 403, 278, 1023, 26368, 11000, 310, 25973, 29889, 13, 9651, 364, 29896, 29892, 364, 29906, 353, 380, 2593, 29918, 29883, 29898, 2312, 29896, 29892, 21762, 29896, 29897, 13, 9651, 3876, 29896, 29892, 3876, 29906, 353, 380, 2593, 29918, 29883, 29898, 2312, 29906, 29892, 21762, 29906, 29897, 13, 13, 9651, 396, 450, 1243, 363, 17221, 338, 2309, 373, 278, 7200, 3876, 310, 278, 1473, 13, 9651, 396, 16845, 29889, 29871, 739, 338, 12092, 491, 278, 2114, 393, 697, 5101, 310, 13, 9651, 396, 16778, 1795, 367, 1855, 322, 278, 916, 4280, 29889, 29871, 3824, 8147, 278, 13, 9651, 396, 23161, 11855, 364, 1251, 310, 20771, 29887, 29930, 29967, 408, 278, 18497, 310, 3876, 29896, 29889, 29871, 1987, 13, 9651, 396, 1074, 565, 697, 310, 278, 16778, 364, 29896, 29892, 364, 29906, 338, 2629, 697, 639, 1644, 310, 3876, 29896, 29889, 13, 9651, 396, 319, 1014, 24130, 424, 3876, 1122, 367, 1407, 6460, 368, 6881, 630, 565, 967, 13, 9651, 396, 18497, 338, 1568, 7968, 1135, 364, 1251, 1192, 445, 947, 451, 4383, 297, 1749, 13, 9651, 396, 671, 310, 1438, 25973, 29889, 13, 9651, 364, 1251, 353, 18074, 2273, 29898, 4632, 29896, 29961, 29900, 29962, 1068, 29906, 718, 3876, 29896, 29961, 29896, 29962, 1068, 29906, 29897, 13, 9651, 360, 29896, 353, 313, 4632, 29896, 29961, 29900, 29962, 448, 364, 29896, 29961, 29900, 2314, 1068, 29906, 718, 313, 4632, 29896, 29961, 29896, 29962, 448, 364, 29896, 29961, 29896, 2314, 1068, 29906, 13, 9651, 360, 29906, 353, 313, 4632, 29896, 29961, 29900, 29962, 448, 364, 29906, 29961, 29900, 2314, 1068, 29906, 718, 313, 4632, 29896, 29961, 29896, 29962, 448, 364, 29906, 29961, 29896, 2314, 1068, 29906, 13, 9651, 360, 9047, 353, 18074, 2273, 29898, 1195, 29898, 29928, 29896, 29892, 360, 29906, 876, 13, 9651, 565, 360, 9047, 5277, 29871, 29900, 29889, 29900, 29900, 29896, 29930, 4650, 29901, 13, 18884, 2867, 13, 13, 4706, 396, 1938, 451, 505, 17221, 3447, 29889, 29871, 7311, 278, 24372, 526, 28773, 29892, 322, 13, 4706, 396, 1363, 278, 17221, 28770, 291, 338, 1347, 296, 29892, 591, 526, 17762, 304, 1018, 13, 4706, 396, 263, 2846, 24372, 29889, 13, 4706, 325, 29941, 29876, 1758, 353, 18074, 2273, 29898, 29894, 29941, 29894, 29941, 29897, 13, 4706, 325, 29900, 353, 325, 29941, 29914, 29894, 29941, 29876, 1758, 13, 4706, 325, 29900, 29894, 29900, 353, 29871, 29896, 29889, 29900, 13, 13, 1678, 1683, 29901, 13, 4706, 396, 20504, 800, 1258, 451, 5486, 479, 13, 4706, 380, 361, 353, 6213, 539, 396, 17999, 13, 4706, 3876, 276, 353, 6213, 268, 396, 17999, 13, 4706, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 396, 20504, 800, 505, 5486, 3192, 13, 13, 1678, 396, 1334, 1286, 505, 278, 28526, 25973, 29889, 29871, 897, 8204, 565, 278, 6588, 4331, 2159, 338, 13, 1678, 396, 1641, 22078, 373, 25502, 310, 25806, 29889, 29871, 5399, 278, 1855, 5633, 310, 278, 13, 1678, 396, 25973, 29889, 29871, 3824, 1074, 565, 278, 28526, 7388, 1767, 338, 297, 278, 2175, 4203, 13, 1678, 396, 10694, 1192, 727, 2113, 29915, 29873, 367, 263, 25806, 24345, 6521, 372, 338, 29889, 29871, 960, 727, 13, 1678, 396, 338, 1790, 7388, 1767, 310, 5734, 519, 18497, 411, 263, 6374, 1855, 760, 29892, 13, 1678, 396, 278, 1108, 338, 451, 380, 2593, 29889, 29871, 960, 278, 28526, 7388, 1767, 338, 2086, 3802, 304, 278, 13, 1678, 396, 6382, 3821, 9685, 29892, 591, 2609, 24876, 852, 380, 2593, 2264, 29889, 13, 13, 1678, 3876, 276, 353, 3876, 29896, 29961, 29896, 29962, 1275, 29871, 29900, 29889, 29900, 13, 13, 1678, 396, 1596, 29898, 29876, 2202, 29892, 313, 4632, 29896, 29961, 29900, 29962, 718, 3876, 29896, 29961, 29896, 14178, 29896, 29926, 6802, 8708, 29887, 29892, 13, 1678, 396, 632, 313, 4632, 29906, 29961, 29900, 29962, 718, 3876, 29906, 29961, 29896, 14178, 29896, 29926, 6802, 8708, 29887, 29892, 3876, 276, 29897, 13, 13, 1678, 565, 3876, 29896, 29961, 29900, 29962, 1405, 29871, 29900, 29889, 29900, 29901, 13, 4706, 380, 361, 353, 7700, 13, 4706, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 364, 1251, 29906, 353, 18074, 2273, 29898, 4632, 29906, 29961, 29900, 29962, 1068, 29906, 718, 3876, 29906, 29961, 29896, 29962, 1068, 29906, 29897, 13, 1678, 565, 364, 1251, 29906, 6736, 29871, 29900, 29889, 29929, 334, 364, 1251, 322, 3876, 29906, 29961, 29900, 29962, 1405, 29871, 29900, 29889, 29900, 29901, 13, 4706, 380, 361, 353, 7700, 13, 4706, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 565, 6425, 29898, 4632, 29896, 29961, 29896, 2314, 1405, 6425, 29898, 4632, 29896, 29961, 29900, 2314, 334, 10345, 574, 29901, 13, 4706, 380, 361, 353, 6213, 539, 396, 17999, 13, 4706, 736, 380, 361, 29892, 3876, 276, 13, 13, 1678, 396, 960, 278, 6588, 4331, 2159, 16161, 304, 1641, 1532, 2629, 278, 25806, 13, 1678, 396, 5120, 29892, 278, 4331, 2159, 338, 451, 1641, 22078, 1363, 310, 25806, 29889, 13, 1678, 380, 361, 353, 364, 1251, 6736, 29871, 29900, 29889, 29929, 334, 380, 1182, 328, 13, 1678, 736, 380, 361, 29892, 3876, 276, 13, 13, 13, 1753, 380, 2593, 29918, 29890, 29898, 29894, 29896, 29894, 29896, 29892, 325, 29900, 29894, 29896, 29892, 325, 29900, 29894, 29900, 29892, 696, 430, 1125, 13, 1678, 9995, 13998, 515, 380, 2593, 29918, 29874, 2141, 13, 13, 1678, 897, 8204, 565, 278, 12541, 756, 3587, 759, 630, 1363, 310, 263, 13818, 28526, 13, 1678, 1855, 7388, 1767, 29889, 29871, 6975, 925, 15712, 278, 9281, 13649, 29889, 29871, 325, 29896, 29894, 29896, 338, 967, 8329, 13, 1678, 3234, 411, 3528, 29892, 325, 29900, 29894, 29896, 338, 278, 8329, 3234, 310, 278, 3517, 13649, 411, 13, 1678, 278, 1857, 697, 29892, 322, 325, 29900, 29894, 29900, 338, 278, 8329, 3234, 310, 278, 3517, 13649, 411, 13, 1678, 3528, 29889, 29871, 696, 430, 338, 263, 3517, 9596, 280, 1141, 13911, 993, 6881, 1218, 263, 28526, 1855, 13, 1678, 7388, 1767, 29889, 29871, 739, 1818, 367, 15712, 4153, 278, 937, 931, 278, 1014, 14608, 457, 338, 13, 1678, 2000, 29889, 29871, 739, 338, 4784, 1269, 1246, 304, 380, 2593, 29918, 29890, 29892, 8151, 338, 3625, 363, 13, 1678, 15352, 5717, 29889, 13, 13, 1678, 960, 727, 338, 263, 13818, 28526, 1855, 7388, 1767, 29892, 3876, 276, 338, 731, 5852, 29892, 13, 1678, 3876, 29896, 7503, 29962, 3639, 278, 7388, 1767, 29892, 364, 1251, 3639, 278, 18497, 310, 278, 13, 1678, 7388, 1767, 29892, 322, 3876, 29906, 7503, 29962, 338, 731, 304, 5225, 29889, 13, 13, 1678, 8533, 2752, 29901, 390, 29968, 5091, 568, 29889, 29888, 29892, 2045, 597, 1636, 29889, 1212, 1982, 29889, 990, 29914, 356, 29914, 29878, 2039, 29884, 568, 29914, 13, 1678, 9995, 13, 1678, 396, 1855, 322, 6382, 5633, 310, 16778, 526, 4133, 297, 263, 1051, 13, 1678, 3876, 29896, 353, 518, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29962, 13, 1678, 3876, 29906, 353, 518, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29962, 13, 13, 1678, 364, 353, 325, 29900, 29894, 29896, 847, 325, 29900, 29894, 29900, 13, 1678, 364, 1251, 353, 6425, 29898, 29878, 29897, 13, 1678, 1439, 353, 325, 29900, 29894, 29900, 334, 325, 29896, 29894, 29896, 448, 325, 29900, 29894, 29896, 1068, 29906, 13, 1678, 620, 353, 6425, 29898, 4801, 847, 325, 29900, 29894, 29900, 29897, 13, 1678, 3876, 276, 353, 1439, 1275, 29871, 29900, 29889, 29900, 470, 313, 690, 5277, 29871, 29896, 29872, 29899, 29953, 334, 325, 29896, 29894, 29896, 322, 13, 462, 9651, 6425, 29898, 29878, 448, 696, 430, 29897, 5277, 29871, 29900, 29889, 29900, 29900, 29896, 334, 364, 1251, 29897, 13, 1678, 565, 3876, 276, 29901, 13, 4706, 3876, 29896, 29961, 29900, 29962, 353, 364, 13, 1678, 696, 430, 353, 364, 13, 1678, 736, 696, 430, 29892, 364, 1251, 29892, 3876, 29896, 29892, 3876, 29906, 29892, 3876, 276, 13, 13, 13, 1753, 380, 2593, 29918, 29883, 29898, 2312, 29892, 21762, 1125, 13, 1678, 9995, 13998, 515, 380, 2593, 29918, 29874, 2141, 13, 13, 1678, 910, 1014, 14608, 457, 2912, 267, 278, 1023, 4280, 16778, 364, 29896, 322, 364, 29906, 310, 278, 13, 1678, 25904, 6306, 921, 1068, 29906, 718, 15595, 29930, 29916, 718, 21762, 353, 29871, 29900, 29889, 29871, 450, 18497, 310, 364, 29896, 338, 13, 1678, 7621, 1135, 470, 5186, 304, 278, 18497, 310, 364, 29906, 29889, 364, 29896, 322, 364, 29906, 526, 4133, 408, 13, 1678, 12047, 310, 1023, 7117, 411, 278, 937, 1641, 278, 1855, 760, 310, 278, 4280, 13, 1678, 1353, 322, 278, 1473, 1641, 278, 6382, 3821, 760, 29889, 13, 13, 1678, 8533, 2752, 29901, 390, 29968, 5091, 568, 29889, 29888, 29892, 2045, 597, 1636, 29889, 1212, 1982, 29889, 990, 29914, 356, 29914, 29878, 2039, 29884, 568, 29914, 13, 1678, 9995, 13, 1678, 396, 1855, 322, 6382, 5633, 310, 16778, 526, 4133, 297, 263, 1051, 13, 1678, 364, 29896, 353, 518, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29962, 13, 1678, 364, 29906, 353, 518, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29962, 13, 13, 1678, 5694, 353, 15595, 847, 29871, 29906, 13, 1678, 2313, 353, 5694, 1068, 29906, 448, 21762, 13, 1678, 565, 2313, 1275, 29871, 29900, 29889, 29900, 29901, 13, 4706, 396, 11599, 3876, 29889, 13, 4706, 364, 29896, 29961, 29900, 29962, 353, 364, 29906, 29961, 29900, 29962, 353, 448, 7382, 13, 4706, 736, 364, 29896, 29892, 364, 29906, 13, 13, 1678, 18074, 2218, 29883, 353, 18074, 2273, 29898, 6897, 29898, 2218, 29883, 876, 13, 1678, 565, 2313, 529, 29871, 29900, 29889, 29900, 29901, 13, 4706, 396, 26596, 25482, 403, 16778, 29889, 13, 4706, 364, 29896, 29961, 29900, 29962, 353, 364, 29906, 29961, 29900, 29962, 353, 448, 7382, 13, 4706, 364, 29896, 29961, 29896, 29962, 353, 18074, 2218, 29883, 13, 4706, 364, 29906, 29961, 29896, 29962, 353, 448, 3044, 2218, 29883, 13, 1678, 1683, 29901, 13, 4706, 396, 8195, 5101, 310, 16778, 29889, 29871, 20535, 403, 278, 16600, 697, 297, 364, 29896, 29961, 29900, 1822, 13, 4706, 565, 5694, 1405, 29871, 29900, 29889, 29900, 29901, 13, 9651, 364, 29896, 29961, 29900, 29962, 353, 448, 7382, 448, 18074, 2218, 29883, 13, 4706, 1683, 29901, 13, 9651, 364, 29896, 29961, 29900, 29962, 353, 448, 7382, 718, 18074, 2218, 29883, 13, 4706, 364, 29906, 29961, 29900, 29962, 353, 21762, 847, 364, 29896, 29961, 29900, 29962, 13, 1678, 736, 364, 29896, 29892, 364, 29906, 13, 13, 13, 1753, 380, 2593, 29918, 29881, 29898, 29894, 29892, 20771, 29887, 29892, 921, 29892, 343, 29892, 285, 29892, 285, 3594, 29892, 281, 29873, 29892, 6287, 29892, 325, 6333, 29894, 1125, 13, 1678, 9995, 13998, 515, 380, 2593, 29918, 29874, 2141, 13, 13, 1678, 1152, 385, 1881, 4608, 325, 7503, 1402, 445, 1014, 14608, 457, 2912, 267, 263, 4608, 503, 7503, 29962, 393, 13, 1678, 6881, 1078, 278, 3234, 20771, 29887, 29930, 29967, 29930, 29963, 988, 20771, 29887, 338, 385, 1881, 17336, 322, 435, 338, 13, 1678, 278, 10968, 713, 4636, 310, 263, 740, 285, 19030, 472, 278, 1881, 6273, 13, 1678, 313, 29916, 29892, 343, 7503, 14664, 29871, 910, 740, 338, 3342, 491, 263, 1014, 14608, 457, 310, 278, 883, 13, 1678, 285, 7503, 29962, 353, 285, 29898, 29873, 29892, 318, 29897, 393, 746, 2183, 260, 322, 318, 7503, 1402, 3639, 278, 995, 310, 278, 13, 1678, 740, 297, 285, 7503, 1822, 29871, 450, 1881, 4608, 285, 3594, 7503, 29962, 338, 3342, 491, 285, 29898, 29916, 29892, 343, 467, 29871, 317, 1052, 292, 13, 1678, 338, 263, 628, 9593, 4383, 29889, 29871, 319, 7688, 287, 382, 27511, 6056, 338, 1304, 411, 278, 13, 1678, 313, 1066, 3321, 29897, 18177, 4944, 297, 281, 29873, 7503, 1822, 29871, 450, 1881, 17336, 6287, 338, 278, 6862, 13, 1678, 3876, 310, 278, 5190, 4513, 2696, 3064, 278, 6056, 310, 343, 7503, 1822, 29871, 450, 6862, 310, 278, 6056, 13, 1678, 310, 278, 1881, 4608, 325, 7503, 29962, 338, 1881, 408, 325, 6333, 29894, 29889, 29871, 450, 26529, 14391, 278, 6862, 13, 1678, 310, 278, 6056, 310, 278, 1962, 4608, 503, 7503, 29962, 408, 503, 6333, 29920, 29889, 13, 13, 1678, 8533, 2752, 29901, 390, 29968, 5091, 568, 29889, 29888, 29892, 2045, 597, 1636, 29889, 1212, 1982, 29889, 990, 29914, 356, 29914, 29878, 2039, 29884, 568, 29914, 13, 1678, 9995, 13, 1678, 396, 6287, 325, 7503, 29962, 577, 393, 372, 508, 367, 1304, 408, 385, 11924, 304, 343, 7503, 29962, 13, 1678, 396, 363, 385, 16232, 4328, 16845, 304, 278, 10968, 713, 29889, 13, 1678, 5694, 29896, 353, 6287, 29914, 3676, 29898, 29894, 6333, 29894, 29897, 13, 1678, 503, 353, 285, 29898, 29916, 29892, 343, 718, 5694, 29896, 334, 325, 29897, 462, 462, 3986, 396, 14707, 13, 13, 1678, 396, 3812, 278, 4328, 16845, 29889, 29871, 2180, 278, 1021, 931, 563, 29877, 13, 1678, 396, 278, 21640, 310, 325, 7503, 29962, 322, 14944, 278, 7329, 310, 20771, 29887, 29889, 13, 1678, 503, 353, 20771, 29887, 29914, 7382, 29896, 334, 313, 29920, 448, 285, 3594, 29897, 13, 1678, 503, 6333, 29920, 353, 313, 29920, 29914, 14554, 29897, 732, 313, 29920, 29914, 14554, 29897, 13, 1678, 736, 503, 29892, 503, 6333, 29920, 13, 2 ]
src/clarityv2/homepage/urls.py
Clarity-89/clarityv2
0
24179
<reponame>Clarity-89/clarityv2<gh_stars>0 from django.urls import path from .views import HomepageView urlpatterns = [ path('', HomepageView.as_view(), name='home'), ]
[ 1, 529, 276, 1112, 420, 29958, 29907, 4675, 537, 29899, 29947, 29929, 29914, 16544, 537, 29894, 29906, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 26045, 1053, 2224, 13, 13, 3166, 869, 7406, 1053, 8778, 3488, 1043, 13, 13, 2271, 11037, 29879, 353, 518, 13, 1678, 2224, 877, 742, 8778, 3488, 1043, 29889, 294, 29918, 1493, 3285, 1024, 2433, 5184, 5477, 13, 29962, 13, 2 ]
tools/merge.py
mrjrty/rpaframework
518
121276
#!/usr/bin/env python3 import argparse import json import os from pathlib import Path FILENAME = "latest.json" def main(): parser = argparse.ArgumentParser() parser.add_argument("source", help="Path to directory of JSONs") parser.add_argument("destination", help="Path to destination JSON") args = parser.parse_args() dirname = Path(args.source) output = {} for filename in sorted(os.listdir(dirname)): if filename == FILENAME: continue with open(dirname / filename, "r") as infile: lib = json.load(infile) assert lib["name"] not in output, "Duplicate library" output[lib["name"]] = lib with open(args.destination, "w") as outfile: json.dump(output, outfile, indent=4) if __name__ == "__main__": main()
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 5215, 1852, 5510, 13, 5215, 4390, 13, 5215, 2897, 13, 3166, 2224, 1982, 1053, 10802, 13, 13, 7724, 5813, 353, 376, 12333, 29889, 3126, 29908, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 1678, 13812, 29889, 1202, 29918, 23516, 703, 4993, 613, 1371, 543, 2605, 304, 3884, 310, 4663, 29879, 1159, 13, 1678, 13812, 29889, 1202, 29918, 23516, 703, 23848, 613, 1371, 543, 2605, 304, 12551, 4663, 1159, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 1678, 4516, 978, 353, 10802, 29898, 5085, 29889, 4993, 29897, 13, 13, 1678, 1962, 353, 6571, 13, 1678, 363, 10422, 297, 12705, 29898, 359, 29889, 1761, 3972, 29898, 25721, 22164, 13, 4706, 565, 10422, 1275, 24080, 5813, 29901, 13, 9651, 6773, 13, 4706, 411, 1722, 29898, 25721, 847, 10422, 29892, 376, 29878, 1159, 408, 297, 1445, 29901, 13, 9651, 4303, 353, 4390, 29889, 1359, 29898, 262, 1445, 29897, 13, 9651, 4974, 4303, 3366, 978, 3108, 451, 297, 1962, 29892, 376, 29928, 786, 5926, 3489, 29908, 13, 9651, 1962, 29961, 1982, 3366, 978, 3108, 29962, 353, 4303, 13, 13, 1678, 411, 1722, 29898, 5085, 29889, 23848, 29892, 376, 29893, 1159, 408, 714, 1445, 29901, 13, 4706, 4390, 29889, 15070, 29898, 4905, 29892, 714, 1445, 29892, 29536, 29922, 29946, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 580, 13, 2 ]
boardgame/connectfour/connectfourviewer.py
suryaambrose/boardgame
0
24341
import os import sys from ..gameviewer import GameViewer class ConnectFourViewer(GameViewer): def __init__(self): super(ConnectFourViewer, self).__init__([6,7]) def showState(self, state): os.system("clear") sys.stdout.write("x\y|") for k in range(0, self.map_width): sys.stdout.write("%d "%(k)) sys.stdout.write("\n") for i in range(0, self.map_height): sys.stdout.write(" %d "%(i)) for j in range(0, self.map_width): sys.stdout.write("|") if state._board[i][j] is not None: sys.stdout.write(self.symbol_map[state._board[i][j]]) else: sys.stdout.write(" ") sys.stdout.write("|\n") def waitForAMove(self): while True: try: played_column = raw_input("Type where you wish to play (e.g. 1 for column 1):") c = int(played_column) break except Exception, e: print e return c
[ 1, 1053, 2897, 13, 5215, 10876, 13, 3166, 6317, 11802, 29894, 15580, 1053, 8448, 29963, 15580, 13, 13, 1990, 14971, 29943, 473, 29963, 15580, 29898, 14199, 29963, 15580, 1125, 13, 12, 1753, 4770, 2344, 12035, 1311, 1125, 13, 12, 12, 9136, 29898, 17918, 29943, 473, 29963, 15580, 29892, 1583, 467, 1649, 2344, 1649, 4197, 29953, 29892, 29955, 2314, 13, 13, 12, 1753, 1510, 2792, 29898, 1311, 29892, 2106, 1125, 13, 12, 12, 359, 29889, 5205, 703, 8551, 1159, 13, 12, 12, 9675, 29889, 25393, 29889, 3539, 703, 29916, 29905, 29891, 29989, 1159, 13, 12, 12, 1454, 413, 297, 3464, 29898, 29900, 29892, 1583, 29889, 1958, 29918, 2103, 1125, 13, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 11702, 29881, 11860, 29898, 29895, 876, 13, 12, 12, 9675, 29889, 25393, 29889, 3539, 14182, 29876, 1159, 13, 12, 12, 1454, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 1958, 29918, 3545, 1125, 13, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 703, 1273, 29881, 11860, 29898, 29875, 876, 13, 12, 12, 12, 1454, 432, 297, 3464, 29898, 29900, 29892, 1583, 29889, 1958, 29918, 2103, 1125, 13, 12, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 703, 29989, 1159, 13, 12, 12, 12, 12, 361, 2106, 3032, 3377, 29961, 29875, 3816, 29926, 29962, 338, 451, 6213, 29901, 13, 12, 12, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 29898, 1311, 29889, 18098, 29918, 1958, 29961, 3859, 3032, 3377, 29961, 29875, 3816, 29926, 24960, 13, 12, 12, 12, 12, 2870, 29901, 13, 12, 12, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 703, 16521, 13, 12, 12, 12, 9675, 29889, 25393, 29889, 3539, 703, 4295, 29876, 1159, 13, 13, 12, 1753, 4480, 2831, 5194, 994, 29898, 1311, 1125, 13, 12, 12, 8000, 5852, 29901, 13, 12, 12, 12, 2202, 29901, 13, 12, 12, 12, 12, 1456, 287, 29918, 4914, 353, 10650, 29918, 2080, 703, 1542, 988, 366, 6398, 304, 1708, 313, 29872, 29889, 29887, 29889, 29871, 29896, 363, 1897, 29871, 29896, 1125, 1159, 13, 12, 12, 12, 12, 29883, 353, 938, 29898, 1456, 287, 29918, 4914, 29897, 13, 12, 12, 12, 12, 8690, 13, 12, 12, 12, 19499, 8960, 29892, 321, 29901, 13, 12, 12, 12, 12, 2158, 321, 13, 12, 12, 2457, 274, 2 ]
index.py
flyingraijin98/Naive-Bayes-Spam-Classifier
0
135049
<reponame>flyingraijin98/Naive-Bayes-Spam-Classifier<filename>index.py from collections import Counter import pandas as pd import stop_words import random class NLP(): def __init__(self): self.vocab = None def count_vectorizer(self, text, train=True, stop_word=None, view=False): lower_case_documents = [] documents = text for i in documents: lower_case_documents.append(i.lower()) if view: print('Step: Applying Lower Case.... Done\n') # print(lower_case_documents) sans_punctuation_documents = [] import string for i in lower_case_documents: punctuation = string.punctuation k = "" for j in i: if j not in punctuation: k += j sans_punctuation_documents.append(k) if view: print('Step: Removed Punctuation....\n') print(sans_punctuation_documents) if stop_word == None: stop_word = list(stop_words.ENGLISH_STOP_WORDS) preprocessed_documents = [] for i in sans_punctuation_documents: sentence = [] for word in i.split(): if word not in stop_word: sentence.append(word) preprocessed_documents.append(sentence) if train != True: return preprocessed_documents if view: print('Step: Bag of Words... Done\n') print(preprocessed_documents) frequency_list = [] from collections import Counter for i in preprocessed_documents: frequency_list.append(dict(Counter(i))) if view: print('Step: Frequency of words... Done\n') # often called as vocabulary all_words = list(set([j for i in preprocessed_documents for j in i])) for doc in frequency_list: for word in all_words: if word not in list(doc.keys()): doc[word] = 0 df = pd.DataFrame(frequency_list) df = df[sorted(list(df.columns))] self.vocab = df.columns.to_list() if view: print('Step: Count vectorizer... Done\n') print(df.head()) return df nlp = NLP() class NaiveBayes(): def __init__(self, text, label): self.text = text self.label = label self.cond_probs = {} self.features = [] self.classes = [] self.class_prob = {} def fit(self, view=False): text = self.text label = self.label bow = nlp.count_vectorizer(text) self.features = bow.columns.to_list() if view: print('Your BoW is:\n', bow) classes = label self.classes = list(Counter(classes).keys()) bow['out'] = classes bow_class = bow.groupby(by='out', axis=0) if view: print('Your BoW is testing:\n') # count of each class examples counts = bow_class.count() if view: print(counts) print # used for prediction class_prob = counts / counts.sum(axis=0) class_prob = dict(class_prob.mean(axis=1)) self.class_prob = class_prob if view: print(class_prob) # count of each word on each class self.count_words_class = bow_class.sum() # find prob of word in each class.... no. of that word in class / total word in class prob_w_c = (bow_class.sum() + 1) / (counts ) if view: print("chenck the testing prob") print(prob_w_c) # find p(word/class) prob_w_c = round(prob_w_c, 5) self.cond_probs = prob_w_c if view: print(prob_w_c) def classes_(self): """ A method to see all classes counts for each word. """ return self.count_words_class def predict(self, example): txt = nlp.count_vectorizer(example, train=False) words = dict(Counter(txt[0])) vocab = self.features classes = self.classes class_prob = self.class_prob p = self.cond_probs prob_zero = class_prob['0'] prob_one = class_prob['1'] for w in words.keys(): if w in vocab: prob_zero = prob_zero * p[w][0] prob_one = prob_one * p[w][1] else: prob_zero = prob_zero * 10 prob_one = prob_one * 10 if (prob_zero < prob_one): return 1 else: return 0 f = open("dataset_NB.txt", "r") t = f.read().splitlines() f.close() # print(np.shape(t)) a = random.sample(t, len(t)) X = [] Y = [] all_txt = [] classes = [] for i in a: X.append(i[:-1]) Y.append(i[-1]) append_list_x = [] append_list_y = [] train_range_1 = 0 for k in range(7): train_range_2=train_range_1 + 1000//7 append_list_x = X[0:train_range_1] append_list_y = Y[0:train_range_1] all_txt = X[train_range_2:] + append_list_x classes = Y[train_range_2:] + append_list_y testX = X[train_range_1:train_range_2] testY = Y[train_range_1:train_range_2] nb = NaiveBayes(all_txt, classes) nb.fit() count_total = 0 count_metrics = 0 res = 0 for i in range(0, len(testY)): testY[i] = int(testY[i]) for i in testX: a = 0 count_total = count_total + 1 res = nb.predict([i]) if res == testY[a]: count_metrics = count_metrics + 1 else: count_metrics = count_metrics + 0 a = a + 1 accuracy_final = count_metrics / count_total print("Accuracy of fold %d is"%k,end = "") print(accuracy_final) train_range_1 = train_range_1 + 1000//7
[ 1, 529, 276, 1112, 420, 29958, 29888, 5890, 336, 823, 262, 29929, 29947, 29914, 13695, 573, 29899, 29933, 388, 267, 29899, 5592, 314, 29899, 2385, 3709, 29966, 9507, 29958, 2248, 29889, 2272, 13, 3166, 16250, 1053, 315, 5336, 30004, 13, 5215, 11701, 408, 10518, 30004, 13, 5215, 5040, 29918, 9303, 30004, 13, 5215, 4036, 30004, 13, 30004, 13, 30004, 13, 1990, 405, 13208, 7295, 30004, 13, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 30004, 13, 4706, 1583, 29889, 29894, 542, 370, 353, 6213, 30004, 13, 30004, 13, 1678, 822, 2302, 29918, 8111, 3950, 29898, 1311, 29892, 1426, 29892, 7945, 29922, 5574, 29892, 5040, 29918, 1742, 29922, 8516, 29892, 1776, 29922, 8824, 1125, 30004, 13, 30004, 13, 30004, 13, 4706, 5224, 29918, 4878, 29918, 3225, 29879, 353, 5159, 30004, 13, 4706, 10701, 353, 1426, 30004, 13, 4706, 363, 474, 297, 10701, 29901, 30004, 13, 9651, 5224, 29918, 4878, 29918, 3225, 29879, 29889, 4397, 29898, 29875, 29889, 13609, 3101, 30004, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 14448, 29901, 2401, 5890, 27723, 11733, 3045, 25679, 29905, 29876, 1495, 30004, 13, 4706, 396, 268, 1596, 29898, 13609, 29918, 4878, 29918, 3225, 29879, 8443, 13, 4706, 7209, 29918, 29886, 18049, 29884, 362, 29918, 3225, 29879, 353, 5159, 30004, 13, 30004, 13, 4706, 1053, 1347, 30004, 13, 30004, 13, 4706, 363, 474, 297, 5224, 29918, 4878, 29918, 3225, 29879, 29901, 30004, 13, 9651, 6035, 22999, 362, 353, 1347, 29889, 29886, 18049, 29884, 362, 30004, 13, 30004, 13, 9651, 413, 353, 5124, 30004, 13, 9651, 363, 432, 297, 474, 29901, 30004, 13, 18884, 565, 432, 451, 297, 6035, 22999, 362, 29901, 30004, 13, 462, 1678, 413, 4619, 432, 30004, 13, 30004, 13, 9651, 7209, 29918, 29886, 18049, 29884, 362, 29918, 3225, 29879, 29889, 4397, 29898, 29895, 8443, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 14448, 29901, 5240, 8238, 349, 18049, 29884, 362, 3045, 29905, 29876, 1495, 30004, 13, 9651, 1596, 29898, 29879, 550, 29918, 29886, 18049, 29884, 362, 29918, 3225, 29879, 8443, 13, 30004, 13, 4706, 565, 5040, 29918, 1742, 1275, 6213, 29901, 30004, 13, 9651, 5040, 29918, 1742, 353, 1051, 29898, 9847, 29918, 9303, 29889, 1430, 7239, 3235, 29950, 29918, 1254, 4590, 29918, 11686, 8452, 8443, 13, 30004, 13, 4706, 758, 5014, 287, 29918, 3225, 29879, 353, 5159, 30004, 13, 4706, 363, 474, 297, 7209, 29918, 29886, 18049, 29884, 362, 29918, 3225, 29879, 29901, 30004, 13, 9651, 10541, 353, 5159, 30004, 13, 9651, 363, 1734, 297, 474, 29889, 5451, 7295, 30004, 13, 18884, 565, 1734, 451, 297, 5040, 29918, 1742, 29901, 30004, 13, 462, 1678, 10541, 29889, 4397, 29898, 1742, 8443, 13, 9651, 758, 5014, 287, 29918, 3225, 29879, 29889, 4397, 29898, 18616, 663, 8443, 13, 30004, 13, 4706, 565, 7945, 2804, 5852, 29901, 30004, 13, 9651, 736, 758, 5014, 287, 29918, 3225, 29879, 30004, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 14448, 29901, 18341, 310, 399, 4339, 856, 25679, 29905, 29876, 1495, 30004, 13, 9651, 1596, 29898, 1457, 5014, 287, 29918, 3225, 29879, 8443, 13, 30004, 13, 4706, 10868, 29918, 1761, 353, 5159, 30004, 13, 4706, 515, 16250, 1053, 315, 5336, 30004, 13, 30004, 13, 4706, 363, 474, 297, 758, 5014, 287, 29918, 3225, 29879, 29901, 30004, 13, 9651, 10868, 29918, 1761, 29889, 4397, 29898, 8977, 29898, 17779, 29898, 29875, 4961, 30004, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 14448, 29901, 3878, 23860, 310, 3838, 856, 25679, 29905, 29876, 1495, 30004, 13, 30004, 13, 4706, 396, 4049, 2000, 408, 7931, 370, 352, 653, 30004, 13, 4706, 599, 29918, 9303, 353, 1051, 29898, 842, 4197, 29926, 363, 474, 297, 758, 5014, 287, 29918, 3225, 29879, 363, 432, 297, 474, 12622, 30004, 13, 30004, 13, 4706, 363, 1574, 297, 10868, 29918, 1761, 29901, 30004, 13, 9651, 363, 1734, 297, 599, 29918, 9303, 29901, 30004, 13, 18884, 565, 1734, 451, 297, 1051, 29898, 1514, 29889, 8149, 580, 1125, 30004, 13, 462, 1678, 1574, 29961, 1742, 29962, 353, 29871, 29900, 30004, 13, 4706, 4489, 353, 10518, 29889, 17271, 29898, 10745, 23860, 29918, 1761, 8443, 13, 4706, 4489, 353, 4489, 29961, 24582, 29898, 1761, 29898, 2176, 29889, 13099, 28166, 30004, 13, 30004, 13, 4706, 1583, 29889, 29894, 542, 370, 353, 4489, 29889, 13099, 29889, 517, 29918, 1761, 26471, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 14448, 29901, 3917, 4608, 3950, 856, 25679, 29905, 29876, 1495, 30004, 13, 9651, 1596, 29898, 2176, 29889, 2813, 3101, 30004, 13, 4706, 736, 4489, 30004, 13, 12938, 29886, 353, 405, 13208, 26471, 13, 30004, 13, 30004, 13, 1990, 4465, 573, 29933, 388, 267, 7295, 30004, 13, 30004, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1426, 29892, 3858, 1125, 30004, 13, 4706, 1583, 29889, 726, 353, 1426, 30004, 13, 4706, 1583, 29889, 1643, 353, 3858, 30004, 13, 4706, 1583, 29889, 1116, 29918, 771, 5824, 353, 6571, 30004, 13, 4706, 1583, 29889, 22100, 353, 5159, 30004, 13, 4706, 1583, 29889, 13203, 353, 5159, 30004, 13, 4706, 1583, 29889, 1990, 29918, 22795, 353, 6571, 30004, 13, 30004, 13, 1678, 822, 6216, 29898, 1311, 29892, 1776, 29922, 8824, 1125, 30004, 13, 30004, 13, 4706, 1426, 353, 1583, 29889, 726, 30004, 13, 4706, 3858, 353, 1583, 29889, 1643, 30004, 13, 30004, 13, 4706, 12580, 353, 302, 22833, 29889, 2798, 29918, 8111, 3950, 29898, 726, 8443, 13, 30004, 13, 4706, 1583, 29889, 22100, 353, 12580, 29889, 13099, 29889, 517, 29918, 1761, 26471, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 10858, 1952, 29956, 338, 3583, 29876, 742, 12580, 8443, 13, 30004, 13, 4706, 4413, 353, 3858, 30004, 13, 30004, 13, 4706, 1583, 29889, 13203, 353, 1051, 29898, 17779, 29898, 13203, 467, 8149, 3101, 30004, 13, 30004, 13, 4706, 12580, 1839, 449, 2033, 353, 4413, 30004, 13, 4706, 12580, 29918, 1990, 353, 12580, 29889, 27789, 29898, 1609, 2433, 449, 742, 9685, 29922, 29900, 8443, 13, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 877, 10858, 1952, 29956, 338, 6724, 3583, 29876, 1495, 30004, 13, 30004, 13, 4706, 396, 2302, 310, 1269, 770, 6455, 30004, 13, 4706, 18139, 353, 12580, 29918, 1990, 29889, 2798, 26471, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 29898, 2798, 29879, 8443, 13, 9651, 1596, 30004, 13, 30004, 13, 4706, 396, 1304, 363, 18988, 30004, 13, 4706, 770, 29918, 22795, 353, 18139, 847, 18139, 29889, 2083, 29898, 8990, 29922, 29900, 8443, 13, 4706, 770, 29918, 22795, 353, 9657, 29898, 1990, 29918, 22795, 29889, 12676, 29898, 8990, 29922, 29896, 876, 30004, 13, 4706, 1583, 29889, 1990, 29918, 22795, 353, 770, 29918, 22795, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 29898, 1990, 29918, 22795, 8443, 13, 30004, 13, 4706, 396, 2302, 310, 1269, 1734, 373, 1269, 770, 30004, 13, 4706, 1583, 29889, 2798, 29918, 9303, 29918, 1990, 353, 12580, 29918, 1990, 29889, 2083, 26471, 13, 30004, 13, 4706, 396, 1284, 2070, 310, 1734, 297, 1269, 770, 3045, 694, 29889, 310, 393, 1734, 297, 770, 847, 3001, 1734, 297, 770, 30004, 13, 4706, 2070, 29918, 29893, 29918, 29883, 353, 313, 17729, 29918, 1990, 29889, 2083, 580, 718, 29871, 29896, 29897, 847, 313, 2798, 29879, 1723, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 703, 2724, 384, 278, 6724, 2070, 1159, 30004, 13, 9651, 1596, 29898, 22795, 29918, 29893, 29918, 29883, 8443, 13, 4706, 396, 1284, 282, 29898, 1742, 29914, 1990, 8443, 13, 30004, 13, 4706, 2070, 29918, 29893, 29918, 29883, 353, 4513, 29898, 22795, 29918, 29893, 29918, 29883, 29892, 29871, 29945, 8443, 13, 4706, 1583, 29889, 1116, 29918, 771, 5824, 353, 2070, 29918, 29893, 29918, 29883, 30004, 13, 4706, 565, 1776, 29901, 30004, 13, 9651, 1596, 29898, 22795, 29918, 29893, 29918, 29883, 8443, 13, 30004, 13, 1678, 822, 4413, 23538, 1311, 1125, 30004, 13, 4706, 9995, 30004, 13, 4706, 319, 1158, 304, 1074, 599, 4413, 18139, 363, 1269, 1734, 22993, 13, 4706, 9995, 30004, 13, 4706, 736, 1583, 29889, 2798, 29918, 9303, 29918, 1990, 30004, 13, 30004, 13, 1678, 822, 8500, 29898, 1311, 29892, 1342, 1125, 30004, 13, 30004, 13, 4706, 13872, 353, 302, 22833, 29889, 2798, 29918, 8111, 3950, 29898, 4773, 29892, 7945, 29922, 8824, 8443, 13, 4706, 3838, 353, 9657, 29898, 17779, 29898, 3945, 29961, 29900, 12622, 30004, 13, 30004, 13, 4706, 7931, 370, 353, 1583, 29889, 22100, 30004, 13, 4706, 4413, 353, 1583, 29889, 13203, 30004, 13, 4706, 770, 29918, 22795, 353, 1583, 29889, 1990, 29918, 22795, 30004, 13, 4706, 282, 353, 1583, 29889, 1116, 29918, 771, 5824, 30004, 13, 30004, 13, 30004, 13, 30004, 13, 4706, 2070, 29918, 9171, 353, 770, 29918, 22795, 1839, 29900, 2033, 30004, 13, 30004, 13, 4706, 2070, 29918, 650, 353, 770, 29918, 22795, 1839, 29896, 2033, 30004, 13, 30004, 13, 30004, 13, 4706, 363, 281, 297, 3838, 29889, 8149, 7295, 30004, 13, 30004, 13, 9651, 565, 281, 297, 7931, 370, 29901, 30004, 13, 18884, 2070, 29918, 9171, 353, 2070, 29918, 9171, 334, 282, 29961, 29893, 3816, 29900, 29962, 30004, 13, 30004, 13, 18884, 2070, 29918, 650, 353, 2070, 29918, 650, 334, 282, 29961, 29893, 3816, 29896, 29962, 30004, 13, 30004, 13, 9651, 1683, 29901, 30004, 13, 30004, 13, 18884, 2070, 29918, 9171, 353, 2070, 29918, 9171, 334, 29871, 29896, 29900, 30004, 13, 18884, 2070, 29918, 650, 353, 2070, 29918, 650, 334, 29871, 29896, 29900, 30004, 13, 30004, 13, 4706, 565, 313, 22795, 29918, 9171, 529, 2070, 29918, 650, 1125, 30004, 13, 9651, 736, 29871, 29896, 30004, 13, 4706, 1683, 29901, 30004, 13, 9651, 736, 29871, 29900, 30004, 13, 30004, 13, 30004, 13, 29888, 353, 1722, 703, 24713, 29918, 23189, 29889, 3945, 613, 376, 29878, 1159, 30004, 13, 29873, 353, 285, 29889, 949, 2141, 5451, 9012, 26471, 13, 29888, 29889, 5358, 26471, 13, 29937, 1596, 29898, 9302, 29889, 12181, 29898, 29873, 876, 30004, 13, 29874, 353, 4036, 29889, 11249, 29898, 29873, 29892, 7431, 29898, 29873, 876, 30004, 13, 30004, 13, 29990, 353, 5159, 30004, 13, 29979, 353, 5159, 30004, 13, 497, 29918, 3945, 353, 5159, 30004, 13, 13203, 353, 5159, 30004, 13, 1454, 474, 297, 263, 29901, 30004, 13, 1678, 1060, 29889, 4397, 29898, 29875, 7503, 29899, 29896, 2314, 30004, 13, 1678, 612, 29889, 4397, 29898, 29875, 14352, 29896, 2314, 30004, 13, 30004, 13, 4397, 29918, 1761, 29918, 29916, 353, 5159, 30004, 13, 4397, 29918, 1761, 29918, 29891, 353, 5159, 30004, 13, 14968, 29918, 3881, 29918, 29896, 353, 29871, 29900, 30004, 13, 1454, 413, 297, 3464, 29898, 29955, 1125, 30004, 13, 30004, 13, 1678, 7945, 29918, 3881, 29918, 29906, 29922, 14968, 29918, 3881, 29918, 29896, 718, 29871, 29896, 29900, 29900, 29900, 458, 29955, 30004, 13, 30004, 13, 1678, 9773, 29918, 1761, 29918, 29916, 353, 1060, 29961, 29900, 29901, 14968, 29918, 3881, 29918, 29896, 29962, 30004, 13, 1678, 9773, 29918, 1761, 29918, 29891, 353, 612, 29961, 29900, 29901, 14968, 29918, 3881, 29918, 29896, 29962, 30004, 13, 30004, 13, 1678, 599, 29918, 3945, 353, 1060, 29961, 14968, 29918, 3881, 29918, 29906, 17531, 718, 9773, 29918, 1761, 29918, 29916, 30004, 13, 1678, 4413, 353, 612, 29961, 14968, 29918, 3881, 29918, 29906, 17531, 718, 9773, 29918, 1761, 29918, 29891, 30004, 13, 1678, 1243, 29990, 353, 1060, 29961, 14968, 29918, 3881, 29918, 29896, 29901, 14968, 29918, 3881, 29918, 29906, 29962, 30004, 13, 1678, 1243, 29979, 353, 612, 29961, 14968, 29918, 3881, 29918, 29896, 29901, 14968, 29918, 3881, 29918, 29906, 29962, 30004, 13, 1678, 302, 29890, 353, 4465, 573, 29933, 388, 267, 29898, 497, 29918, 3945, 29892, 4413, 8443, 13, 1678, 302, 29890, 29889, 9202, 26471, 13, 30004, 13, 1678, 2302, 29918, 7827, 353, 29871, 29900, 30004, 13, 1678, 2302, 29918, 2527, 10817, 353, 29871, 29900, 30004, 13, 1678, 620, 353, 29871, 29900, 30004, 13, 30004, 13, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 1688, 29979, 22164, 30004, 13, 4706, 1243, 29979, 29961, 29875, 29962, 353, 938, 29898, 1688, 29979, 29961, 29875, 2314, 30004, 13, 30004, 13, 1678, 363, 474, 297, 1243, 29990, 29901, 30004, 13, 4706, 263, 353, 29871, 29900, 30004, 13, 30004, 13, 4706, 2302, 29918, 7827, 353, 2302, 29918, 7827, 718, 29871, 29896, 30004, 13, 4706, 620, 353, 302, 29890, 29889, 27711, 4197, 29875, 2314, 30004, 13, 30004, 13, 4706, 565, 620, 1275, 1243, 29979, 29961, 29874, 5387, 30004, 13, 9651, 2302, 29918, 2527, 10817, 353, 2302, 29918, 2527, 10817, 718, 29871, 29896, 30004, 13, 4706, 1683, 29901, 30004, 13, 9651, 2302, 29918, 2527, 10817, 353, 2302, 29918, 2527, 10817, 718, 29871, 29900, 30004, 13, 4706, 263, 353, 263, 718, 29871, 29896, 30004, 13, 1678, 13600, 29918, 8394, 353, 2302, 29918, 2527, 10817, 847, 2302, 29918, 7827, 30004, 13, 1678, 1596, 703, 7504, 332, 4135, 310, 900, 29881, 1273, 29881, 338, 29908, 29995, 29895, 29892, 355, 353, 20569, 30004, 13, 1678, 1596, 29898, 562, 2764, 4135, 29918, 8394, 8443, 13, 1678, 7945, 29918, 3881, 29918, 29896, 353, 7945, 29918, 3881, 29918, 29896, 718, 29871, 29896, 29900, 29900, 29900, 458, 29955, 30004, 13, 1678, 6756, 13, 30004, 13, 30004, 13, 30004, 13, 30004, 13, 2 ]
water_channel_assembly/sub_model.py
iorodeo/water_channel_mechanics
0
1602642
<filename>water_channel_assembly/sub_model.py from __future__ import division import scipy from py2scad import * class SubModel(object): def __init__(self,params): self.params = params self.parts = {} self.__make_mount_plate() self.__make_hydrofoil() self.__make_nozzle() self.__make_anterior_cap() self.__make_motor_housing() self.__make_fluid_housing() def __make_mount_plate(self): self.mount_plate_x = self.params['mount_plate_length'] self.mount_plate_y = self.params['mount_plate_length'] self.mount_plate_z = self.params['mount_plate_thickness'] mount_plate = Cube(size=[self.mount_plate_x,self.mount_plate_y,self.mount_plate_z]) self.parts['mount_plate'] = mount_plate def __make_hydrofoil(self): self.hydrofoil_y = self.params['hydrofoil_width'] self.hydrofoil_x = self.params['hydrofoil_length'] self.hydrofoil_z = self.params['hydrofoil_height'] hydrofoil = Cylinder(r1=0.5,r2=0.5,h=self.hydrofoil_z) hydrofoil = Scale(hydrofoil,v=[self.hydrofoil_x,self.hydrofoil_y,1]) # x_shift = 0.5*l # hydrofoil_tz = 0.5*h + 0.5*self.params['body_diameter'] self.hydrofoil_tz = self.hydrofoil_z/2 + self.mount_plate_z/2 hydrofoil = Translate(hydrofoil,v=[0,0,-self.hydrofoil_tz]) self.parts['hydrofoil'] = hydrofoil def __make_nozzle(self): h = self.params['nozzle_length'] r2 = 0.5*self.params['body_diameter'] r1 = 0.5*self.params['nozzle_exit_diameter'] epsilon = self.params['nozzle_trans_param'] nozzle = make_nozzle(r1,r2,h,epsilon) nozzle = Rotate(nozzle,a=90,v=[0,1,0]) self.nozzle_tx = -self.params['fluid_housing_length'] - 0.5*h - self.hydrofoil_x/2 self.nozzle_tz = -self.hydrofoil_tz - self.hydrofoil_z/2 - self.params['body_diameter']/2 nozzle = Translate(nozzle,v=[self.nozzle_tx,0,self.nozzle_tz]) self.parts['nozzle'] = nozzle def __make_anterior_cap(self): r = 0.5*self.params['body_diameter'] h = self.params['anterior_cap_length'] cap = bullet(r,h) cap = Rotate(cap,a=90,v=[0,1,0]) self.anterior_cap_tx = self.params['motor_housing_length'] - self.hydrofoil_x/2 self.anterior_cap_tz = self.nozzle_tz cap = Translate(cap,v=[self.anterior_cap_tx,0,self.anterior_cap_tz]) self.parts['anterior_cap'] = cap def __make_fluid_housing(self): r = 0.5*self.params['body_diameter'] h = self.params['fluid_housing_length'] fuild_housing = Cylinder(r1=r, r2=r, h=h) fuild_housing = Rotate(fuild_housing,a=90,v=[0,1,0]) self.fluid_housing_tx = -h/2 - self.hydrofoil_x/2 self.fluid_housing_tz = self.nozzle_tz fuild_housing = Translate(fuild_housing,v=[self.fluid_housing_tx,0,self.fluid_housing_tz]) self.parts['fuild_housing'] = fuild_housing def __make_motor_housing(self): r = 0.5*self.params['body_diameter'] h = self.params['motor_housing_length'] motor_housing = Cylinder(r1=r, r2=r, h=h) motor_housing = Rotate(motor_housing,a=90,v=[0,1,0]) self.motor_housing_tx = h/2 - self.hydrofoil_x/2 self.motor_housing_tz = self.nozzle_tz motor_housing = Translate(motor_housing,v=[self.motor_housing_tx,0,self.motor_housing_tz]) self.parts['motor_housing'] = motor_housing def get_assembly(self): # Create union of all parts sub = Union(self.parts.values()) # Shift so that sub is centered w.r.t to hydrofoil # x_shift = -0.5*self.params['hydrofoil_length'] # sub = Translate(sub,v=[x_shift,0,0]) # Shidt so that top of hydrofoil is at z=0 # z_shift = -0.5*self.params['body_diameter'] - self.params['hydrofoil_height'] sub_tz = -self.params['mount_plate_thickness']/2 sub = Translate(sub,v=[0,0,sub_tz]) return sub def bullet(r,h): """ Creates a bullet shaped object with radius r and height h. """ sphere = Sphere(r=1) cut_cube = Cube(size=[3*r, 3*r, 3*r]) cut_cube = Translate(cut_cube,v=[0,0,-1.5*r]) bullet = Difference([sphere, cut_cube]) vscale = [r,r,h] bullet = Scale(bullet,v=vscale) return [bullet] def make_nozzle(r1, r2, h, epsilon, num_pts = 100): """ Creates submarine tail section r1 = bottom radius r2 = top radius h = height epsilon = transition parameter """ x = scipy.linspace(-0.5*h, 0.5*h,num_pts) y = -scipy.arctan(epsilon*x) # Shift to get correct radii y = scipy.absolute(r2-r1)*y/(y.max() -y.min()) y = y +r1 - y.min() # Create polygon and rotate into position poly = curve2polygon(x,y) poly = Rotate(poly,a=-90,v=[0,0,1]) # Revolve part = Rotate_Extrude(poly) return part def curve2polygon(x_pts,y_pts): """ Creates a 2D polygon from an x,y curve """ points = [] for x,y in zip(x_pts, y_pts): points.append([x,y]) points.append([x_pts[-1], 0]) points.append([x_pts[0],0]) points.reverse() paths = [range(0,len(points))] poly = Polygon(points=points, paths=paths) return poly # ----------------------------------------------------------------------------- if __name__ == "__main__": from params import sub_model_params sub = SubModel(params=sub_model_params) sub_assem = sub.get_assembly() prog = SCAD_Prog() prog.fn = 70 prog.add(sub_assem) prog.write('sub_model.scad')
[ 1, 529, 9507, 29958, 13405, 29918, 12719, 29918, 26936, 29914, 1491, 29918, 4299, 29889, 2272, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 5215, 4560, 2272, 13, 3166, 11451, 29906, 1557, 328, 1053, 334, 13, 13, 13, 1990, 3323, 3195, 29898, 3318, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 7529, 1125, 13, 4706, 1583, 29889, 7529, 353, 8636, 13, 4706, 1583, 29889, 20895, 353, 6571, 13, 4706, 1583, 17255, 5675, 29918, 16476, 29918, 2341, 580, 13, 4706, 1583, 17255, 5675, 29918, 29882, 11279, 1181, 309, 580, 13, 4706, 1583, 17255, 5675, 29918, 1217, 5617, 280, 580, 13, 4706, 1583, 17255, 5675, 29918, 273, 8733, 29918, 5030, 580, 13, 4706, 1583, 17255, 5675, 29918, 14817, 272, 29918, 29882, 681, 292, 580, 13, 4706, 1583, 17255, 5675, 29918, 1579, 5416, 29918, 29882, 681, 292, 580, 13, 13, 1678, 822, 4770, 5675, 29918, 16476, 29918, 2341, 29898, 1311, 1125, 13, 4706, 1583, 29889, 16476, 29918, 2341, 29918, 29916, 353, 1583, 29889, 7529, 1839, 16476, 29918, 2341, 29918, 2848, 2033, 13, 4706, 1583, 29889, 16476, 29918, 2341, 29918, 29891, 353, 1583, 29889, 7529, 1839, 16476, 29918, 2341, 29918, 2848, 2033, 13, 4706, 1583, 29889, 16476, 29918, 2341, 29918, 29920, 353, 1583, 29889, 7529, 1839, 16476, 29918, 2341, 29918, 27996, 2264, 2033, 13, 4706, 5766, 29918, 2341, 353, 315, 4003, 29898, 2311, 11759, 1311, 29889, 16476, 29918, 2341, 29918, 29916, 29892, 1311, 29889, 16476, 29918, 2341, 29918, 29891, 29892, 1311, 29889, 16476, 29918, 2341, 29918, 29920, 2314, 13, 4706, 1583, 29889, 20895, 1839, 16476, 29918, 2341, 2033, 353, 5766, 29918, 2341, 13, 13, 1678, 822, 4770, 5675, 29918, 29882, 11279, 1181, 309, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29891, 353, 1583, 29889, 7529, 1839, 29882, 11279, 1181, 309, 29918, 2103, 2033, 13, 4706, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29916, 353, 1583, 29889, 7529, 1839, 29882, 11279, 1181, 309, 29918, 2848, 2033, 13, 4706, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29920, 353, 1583, 29889, 7529, 1839, 29882, 11279, 1181, 309, 29918, 3545, 2033, 13, 4706, 17546, 1181, 309, 353, 315, 2904, 4995, 29898, 29878, 29896, 29922, 29900, 29889, 29945, 29892, 29878, 29906, 29922, 29900, 29889, 29945, 29892, 29882, 29922, 1311, 29889, 29882, 11279, 1181, 309, 29918, 29920, 29897, 13, 4706, 17546, 1181, 309, 353, 2522, 744, 29898, 29882, 11279, 1181, 309, 29892, 29894, 11759, 1311, 29889, 29882, 11279, 1181, 309, 29918, 29916, 29892, 1311, 29889, 29882, 11279, 1181, 309, 29918, 29891, 29892, 29896, 2314, 13, 4706, 396, 921, 29918, 10889, 353, 29871, 29900, 29889, 29945, 29930, 29880, 13, 4706, 396, 17546, 1181, 309, 29918, 17559, 353, 259, 29900, 29889, 29945, 29930, 29882, 718, 29871, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 13, 4706, 1583, 29889, 29882, 11279, 1181, 309, 29918, 17559, 353, 29871, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29920, 29914, 29906, 718, 1583, 29889, 16476, 29918, 2341, 29918, 29920, 29914, 29906, 13, 4706, 17546, 1181, 309, 353, 4103, 9632, 29898, 29882, 11279, 1181, 309, 29892, 29894, 11759, 29900, 29892, 29900, 6653, 1311, 29889, 29882, 11279, 1181, 309, 29918, 17559, 2314, 13, 4706, 1583, 29889, 20895, 1839, 29882, 11279, 1181, 309, 2033, 353, 17546, 1181, 309, 13, 13, 1678, 822, 4770, 5675, 29918, 1217, 5617, 280, 29898, 1311, 1125, 13, 4706, 298, 353, 1583, 29889, 7529, 1839, 1217, 5617, 280, 29918, 2848, 2033, 13, 4706, 364, 29906, 353, 29871, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 13, 4706, 364, 29896, 353, 29871, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 1217, 5617, 280, 29918, 13322, 29918, 29881, 2829, 1308, 2033, 13, 4706, 321, 3232, 353, 1583, 29889, 7529, 1839, 1217, 5617, 280, 29918, 3286, 29918, 3207, 2033, 13, 4706, 694, 5617, 280, 353, 1207, 29918, 1217, 5617, 280, 29898, 29878, 29896, 29892, 29878, 29906, 29892, 29882, 29892, 5463, 29897, 13, 4706, 694, 5617, 280, 353, 9664, 403, 29898, 1217, 5617, 280, 29892, 29874, 29922, 29929, 29900, 29892, 29894, 11759, 29900, 29892, 29896, 29892, 29900, 2314, 13, 4706, 1583, 29889, 1217, 5617, 280, 29918, 7508, 353, 448, 1311, 29889, 7529, 1839, 1579, 5416, 29918, 29882, 681, 292, 29918, 2848, 2033, 448, 29871, 29900, 29889, 29945, 29930, 29882, 448, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29916, 29914, 29906, 13, 4706, 1583, 29889, 1217, 5617, 280, 29918, 17559, 353, 448, 1311, 29889, 29882, 11279, 1181, 309, 29918, 17559, 448, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29920, 29914, 29906, 448, 1583, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 29914, 29906, 13, 4706, 694, 5617, 280, 353, 4103, 9632, 29898, 1217, 5617, 280, 29892, 29894, 11759, 1311, 29889, 1217, 5617, 280, 29918, 7508, 29892, 29900, 29892, 1311, 29889, 1217, 5617, 280, 29918, 17559, 2314, 13, 4706, 1583, 29889, 20895, 1839, 1217, 5617, 280, 2033, 353, 694, 5617, 280, 13, 13, 1678, 822, 4770, 5675, 29918, 273, 8733, 29918, 5030, 29898, 1311, 1125, 13, 4706, 364, 353, 29871, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 13, 4706, 298, 353, 1583, 29889, 7529, 1839, 273, 8733, 29918, 5030, 29918, 2848, 2033, 13, 4706, 2117, 353, 24334, 29898, 29878, 29892, 29882, 29897, 13, 4706, 2117, 353, 9664, 403, 29898, 5030, 29892, 29874, 29922, 29929, 29900, 29892, 29894, 11759, 29900, 29892, 29896, 29892, 29900, 2314, 13, 4706, 1583, 29889, 273, 8733, 29918, 5030, 29918, 7508, 353, 1583, 29889, 7529, 1839, 14817, 272, 29918, 29882, 681, 292, 29918, 2848, 2033, 448, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29916, 29914, 29906, 13, 4706, 1583, 29889, 273, 8733, 29918, 5030, 29918, 17559, 353, 1583, 29889, 1217, 5617, 280, 29918, 17559, 13, 4706, 2117, 353, 4103, 9632, 29898, 5030, 29892, 29894, 11759, 1311, 29889, 273, 8733, 29918, 5030, 29918, 7508, 29892, 29900, 29892, 1311, 29889, 273, 8733, 29918, 5030, 29918, 17559, 2314, 13, 4706, 1583, 29889, 20895, 1839, 273, 8733, 29918, 5030, 2033, 353, 2117, 13, 13, 1678, 822, 4770, 5675, 29918, 1579, 5416, 29918, 29882, 681, 292, 29898, 1311, 1125, 13, 4706, 364, 353, 29871, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 13, 4706, 298, 353, 1583, 29889, 7529, 1839, 1579, 5416, 29918, 29882, 681, 292, 29918, 2848, 2033, 13, 4706, 4084, 789, 29918, 29882, 681, 292, 353, 315, 2904, 4995, 29898, 29878, 29896, 29922, 29878, 29892, 364, 29906, 29922, 29878, 29892, 298, 29922, 29882, 29897, 13, 4706, 4084, 789, 29918, 29882, 681, 292, 353, 9664, 403, 29898, 21154, 789, 29918, 29882, 681, 292, 29892, 29874, 29922, 29929, 29900, 29892, 29894, 11759, 29900, 29892, 29896, 29892, 29900, 2314, 13, 4706, 1583, 29889, 1579, 5416, 29918, 29882, 681, 292, 29918, 7508, 353, 448, 29882, 29914, 29906, 448, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29916, 29914, 29906, 13, 4706, 1583, 29889, 1579, 5416, 29918, 29882, 681, 292, 29918, 17559, 353, 1583, 29889, 1217, 5617, 280, 29918, 17559, 13, 4706, 4084, 789, 29918, 29882, 681, 292, 353, 4103, 9632, 29898, 21154, 789, 29918, 29882, 681, 292, 29892, 29894, 11759, 1311, 29889, 1579, 5416, 29918, 29882, 681, 292, 29918, 7508, 29892, 29900, 29892, 1311, 29889, 1579, 5416, 29918, 29882, 681, 292, 29918, 17559, 2314, 13, 4706, 1583, 29889, 20895, 1839, 21154, 789, 29918, 29882, 681, 292, 2033, 353, 4084, 789, 29918, 29882, 681, 292, 13, 13, 1678, 822, 4770, 5675, 29918, 14817, 272, 29918, 29882, 681, 292, 29898, 1311, 1125, 13, 4706, 364, 353, 29871, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 13, 4706, 298, 353, 1583, 29889, 7529, 1839, 14817, 272, 29918, 29882, 681, 292, 29918, 2848, 2033, 13, 4706, 10992, 29918, 29882, 681, 292, 353, 315, 2904, 4995, 29898, 29878, 29896, 29922, 29878, 29892, 364, 29906, 29922, 29878, 29892, 298, 29922, 29882, 29897, 13, 4706, 10992, 29918, 29882, 681, 292, 353, 9664, 403, 29898, 14817, 272, 29918, 29882, 681, 292, 29892, 29874, 29922, 29929, 29900, 29892, 29894, 11759, 29900, 29892, 29896, 29892, 29900, 2314, 13, 4706, 1583, 29889, 14817, 272, 29918, 29882, 681, 292, 29918, 7508, 353, 298, 29914, 29906, 448, 1583, 29889, 29882, 11279, 1181, 309, 29918, 29916, 29914, 29906, 13, 4706, 1583, 29889, 14817, 272, 29918, 29882, 681, 292, 29918, 17559, 353, 1583, 29889, 1217, 5617, 280, 29918, 17559, 13, 4706, 10992, 29918, 29882, 681, 292, 353, 4103, 9632, 29898, 14817, 272, 29918, 29882, 681, 292, 29892, 29894, 11759, 1311, 29889, 14817, 272, 29918, 29882, 681, 292, 29918, 7508, 29892, 29900, 29892, 1311, 29889, 14817, 272, 29918, 29882, 681, 292, 29918, 17559, 2314, 13, 4706, 1583, 29889, 20895, 1839, 14817, 272, 29918, 29882, 681, 292, 2033, 353, 10992, 29918, 29882, 681, 292, 13, 13, 1678, 822, 679, 29918, 26936, 29898, 1311, 1125, 13, 4706, 396, 6204, 9833, 310, 599, 5633, 13, 4706, 1014, 353, 7761, 29898, 1311, 29889, 20895, 29889, 5975, 3101, 13, 4706, 396, 1383, 2027, 577, 393, 1014, 338, 24764, 281, 29889, 29878, 29889, 29873, 304, 17546, 1181, 309, 13, 4706, 396, 921, 29918, 10889, 353, 448, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 29882, 11279, 1181, 309, 29918, 2848, 2033, 13, 4706, 396, 1014, 353, 4103, 9632, 29898, 1491, 29892, 29894, 11759, 29916, 29918, 10889, 29892, 29900, 29892, 29900, 2314, 13, 4706, 396, 1383, 333, 29873, 577, 393, 2246, 310, 17546, 1181, 309, 338, 472, 503, 29922, 29900, 13, 4706, 396, 503, 29918, 10889, 353, 448, 29900, 29889, 29945, 29930, 1311, 29889, 7529, 1839, 2587, 29918, 29881, 2829, 1308, 2033, 448, 1583, 29889, 7529, 1839, 29882, 11279, 1181, 309, 29918, 3545, 2033, 13, 4706, 1014, 29918, 17559, 353, 448, 1311, 29889, 7529, 1839, 16476, 29918, 2341, 29918, 27996, 2264, 2033, 29914, 29906, 13, 4706, 1014, 353, 4103, 9632, 29898, 1491, 29892, 29894, 11759, 29900, 29892, 29900, 29892, 1491, 29918, 17559, 2314, 13, 4706, 736, 1014, 13, 13, 13, 1753, 24334, 29898, 29878, 29892, 29882, 1125, 13, 1678, 9995, 13, 1678, 6760, 1078, 263, 24334, 528, 10501, 1203, 411, 11855, 364, 322, 3171, 298, 29889, 13, 1678, 9995, 13, 1678, 20745, 353, 317, 9085, 29898, 29878, 29922, 29896, 29897, 13, 1678, 5700, 29918, 29883, 4003, 353, 315, 4003, 29898, 2311, 11759, 29941, 29930, 29878, 29892, 29871, 29941, 29930, 29878, 29892, 29871, 29941, 29930, 29878, 2314, 13, 1678, 5700, 29918, 29883, 4003, 353, 4103, 9632, 29898, 7582, 29918, 29883, 4003, 29892, 29894, 11759, 29900, 29892, 29900, 6653, 29896, 29889, 29945, 29930, 29878, 2314, 13, 1678, 24334, 353, 360, 17678, 4197, 29879, 9085, 29892, 5700, 29918, 29883, 4003, 2314, 13, 1678, 325, 7052, 353, 518, 29878, 29892, 29878, 29892, 29882, 29962, 13, 1678, 24334, 353, 2522, 744, 29898, 18850, 29892, 29894, 29922, 29894, 7052, 29897, 13, 1678, 736, 518, 18850, 29962, 13, 13, 1753, 1207, 29918, 1217, 5617, 280, 29898, 29878, 29896, 29892, 364, 29906, 29892, 298, 29892, 321, 3232, 29892, 954, 29918, 16485, 353, 29871, 29896, 29900, 29900, 1125, 13, 1678, 9995, 13, 1678, 6760, 1078, 1014, 24556, 12464, 4004, 13, 1678, 364, 29896, 418, 353, 5970, 11855, 13, 1678, 364, 29906, 418, 353, 2246, 11855, 13, 1678, 298, 539, 353, 3171, 13, 1678, 321, 3232, 353, 9558, 3443, 13, 1678, 9995, 13, 1678, 921, 353, 4560, 2272, 29889, 1915, 3493, 6278, 29900, 29889, 29945, 29930, 29882, 29892, 29871, 29900, 29889, 29945, 29930, 29882, 29892, 1949, 29918, 16485, 29897, 13, 1678, 343, 353, 448, 26167, 2272, 29889, 27014, 273, 29898, 5463, 29930, 29916, 29897, 13, 1678, 396, 1383, 2027, 304, 679, 1959, 2971, 2236, 13, 1678, 343, 353, 4560, 2272, 29889, 23552, 29898, 29878, 29906, 29899, 29878, 29896, 11877, 29891, 14571, 29891, 29889, 3317, 580, 448, 29891, 29889, 1195, 3101, 13, 1678, 343, 353, 343, 718, 29878, 29896, 448, 343, 29889, 1195, 580, 13, 1678, 396, 6204, 29807, 322, 16734, 964, 2602, 13, 1678, 15680, 353, 11672, 29906, 3733, 17125, 29898, 29916, 29892, 29891, 29897, 13, 1678, 15680, 353, 9664, 403, 29898, 22678, 29892, 29874, 10457, 29929, 29900, 29892, 29894, 11759, 29900, 29892, 29900, 29892, 29896, 2314, 13, 1678, 396, 26882, 345, 13, 1678, 760, 353, 9664, 403, 29918, 5647, 582, 311, 29898, 22678, 29897, 13, 1678, 736, 760, 13, 13, 13, 1753, 11672, 29906, 3733, 17125, 29898, 29916, 29918, 16485, 29892, 29891, 29918, 16485, 1125, 13, 1678, 9995, 13, 1678, 6760, 1078, 263, 29871, 29906, 29928, 29807, 515, 385, 921, 29892, 29891, 11672, 13, 1678, 9995, 13, 1678, 3291, 353, 5159, 13, 1678, 363, 921, 29892, 29891, 297, 14319, 29898, 29916, 29918, 16485, 29892, 343, 29918, 16485, 1125, 13, 4706, 3291, 29889, 4397, 4197, 29916, 29892, 29891, 2314, 13, 1678, 3291, 29889, 4397, 4197, 29916, 29918, 16485, 14352, 29896, 1402, 29871, 29900, 2314, 13, 1678, 3291, 29889, 4397, 4197, 29916, 29918, 16485, 29961, 29900, 1402, 29900, 2314, 13, 1678, 3291, 29889, 24244, 580, 13, 1678, 10898, 353, 518, 3881, 29898, 29900, 29892, 2435, 29898, 9748, 28166, 13, 1678, 15680, 353, 2043, 17125, 29898, 9748, 29922, 9748, 29892, 10898, 29922, 24772, 29897, 13, 1678, 736, 15680, 13, 13, 29937, 448, 2683, 2683, 2683, 2683, 9072, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 13, 1678, 515, 8636, 1053, 1014, 29918, 4299, 29918, 7529, 13, 13, 1678, 1014, 353, 3323, 3195, 29898, 7529, 29922, 1491, 29918, 4299, 29918, 7529, 29897, 13, 1678, 1014, 29918, 465, 331, 353, 1014, 29889, 657, 29918, 26936, 580, 13, 13, 1678, 410, 29887, 353, 12314, 3035, 29918, 1184, 29887, 580, 13, 1678, 410, 29887, 29889, 9144, 353, 29871, 29955, 29900, 13, 1678, 410, 29887, 29889, 1202, 29898, 1491, 29918, 465, 331, 29897, 13, 1678, 410, 29887, 29889, 3539, 877, 1491, 29918, 4299, 29889, 1557, 328, 1495, 13, 2 ]
mayan/apps/documents/tests/test_links.py
bonitobonita24/Mayan-EDMS
343
28898
from django.urls import reverse from ..links.document_file_links import ( link_document_file_delete, link_document_file_download_quick ) from ..links.favorite_links import ( link_document_favorites_add, link_document_favorites_remove ) from ..links.trashed_document_links import link_document_restore from ..models import TrashedDocument from ..permissions import ( permission_document_file_delete, permission_document_file_download, permission_document_view, permission_trashed_document_restore ) from .base import GenericDocumentViewTestCase from .mixins.favorite_document_mixins import FavoriteDocumentTestMixin class FavoriteDocumentLinkTestCase( FavoriteDocumentTestMixin, GenericDocumentViewTestCase ): def test_favorite_document_add_link_no_permission(self): self._create_test_document_stub() self.add_test_view(test_object=self.test_document) context = self.get_test_view() resolved_link = link_document_favorites_add.resolve(context=context) self.assertEqual(resolved_link, None) def test_favorite_document_add_link_with_access(self): self._create_test_document_stub() self.grant_access( obj=self.test_document_stub, permission=permission_document_view ) self.add_test_view(test_object=self.test_document) context = self.get_test_view() resolved_link = link_document_favorites_add.resolve(context=context) self.assertNotEqual(resolved_link, None) def test_favorite_document_add_link_external_user_with_access(self): self._create_test_user() self._create_test_document_stub() self.grant_access( obj=self.test_document_stub, permission=permission_document_view ) self._test_document_favorite_add(user=self.test_user) self.add_test_view(test_object=self.test_document) context = self.get_test_view() resolved_link = link_document_favorites_add.resolve(context=context) self.assertNotEqual(resolved_link, None) def test_favorite_document_remove_link_no_permission(self): self._create_test_document_stub() self._test_document_favorite_add() self.add_test_view(test_object=self.test_document) context = self.get_test_view() resolved_link = link_document_favorites_remove.resolve(context=context) self.assertEqual(resolved_link, None) def test_favorite_document_remove_link_with_access(self): self._create_test_document_stub() self.grant_access( obj=self.test_document_stub, permission=permission_document_view ) self._test_document_favorite_add() self.add_test_view(test_object=self.test_document) context = self.get_test_view() resolved_link = link_document_favorites_remove.resolve(context=context) self.assertNotEqual(resolved_link, None) def test_favorite_document_remove_link_external_user_with_access(self): self._create_test_user() self._create_test_document_stub() self.grant_access( obj=self.test_document_stub, permission=permission_document_view ) self._test_document_favorite_add(user=self.test_user) self.add_test_view(test_object=self.test_document) context = self.get_test_view() resolved_link = link_document_favorites_remove.resolve(context=context) self.assertEqual(resolved_link, None) class DocumentsLinksTestCase(GenericDocumentViewTestCase): def test_document_file_delete_link_no_permission(self): self._upload_test_document_file() self.assertTrue(self.test_document.files.count(), 2) self.add_test_view(test_object=self.test_document.files.first()) context = self.get_test_view() resolved_link = link_document_file_delete.resolve(context=context) self.assertEqual(resolved_link, None) def test_document_file_delete_link_with_permission(self): self._upload_test_document_file() self.assertTrue(self.test_document.files.count(), 2) self.grant_access( obj=self.test_document, permission=permission_document_file_delete ) self.add_test_view(test_object=self.test_document.files.first()) context = self.get_test_view() resolved_link = link_document_file_delete.resolve(context=context) self.assertNotEqual(resolved_link, None) self.assertEqual( resolved_link.url, reverse( viewname=link_document_file_delete.view, args=(self.test_document.files.first().pk,) ) ) def test_document_file_download_link_no_permission(self): self.add_test_view(test_object=self.test_document.file_latest) context = self.get_test_view() resolved_link = link_document_file_download_quick.resolve(context=context) self.assertEqual(resolved_link, None) def test_document_file_download_link_with_permission(self): self.grant_access( obj=self.test_document, permission=permission_document_file_download ) self.add_test_view(test_object=self.test_document.file_latest) context = self.get_test_view() resolved_link = link_document_file_download_quick.resolve(context=context) self.assertNotEqual(resolved_link, None) self.assertEqual( resolved_link.url, reverse( viewname=link_document_file_download_quick.view, args=(self.test_document.file_latest.pk,) ) ) class TrashedDocumentsLinksTestCase(GenericDocumentViewTestCase): def setUp(self): super().setUp() self.test_document.delete() self.test_trashed_document = TrashedDocument.objects.get( pk=self.test_document.pk ) self.add_test_view(test_object=self.test_trashed_document) self.context = self.get_test_view() def test_trashed_document_restore_link_no_permission(self): resolved_link = link_document_restore.resolve(context=self.context) self.assertEqual(resolved_link, None) def test_trashed_document_restore_link_with_permission(self): self.grant_access( obj=self.test_document, permission=permission_trashed_document_restore ) resolved_link = link_document_restore.resolve(context=self.context) self.assertNotEqual(resolved_link, None) self.assertEqual( resolved_link.url, reverse( viewname=link_document_restore.view, args=(self.test_trashed_document.pk,) ) )
[ 1, 515, 9557, 29889, 26045, 1053, 11837, 13, 13, 3166, 6317, 4965, 29889, 3225, 29918, 1445, 29918, 4965, 1053, 313, 13, 1678, 1544, 29918, 3225, 29918, 1445, 29918, 8143, 29892, 1544, 29918, 3225, 29918, 1445, 29918, 10382, 29918, 24561, 13, 29897, 13, 3166, 6317, 4965, 29889, 29888, 17118, 568, 29918, 4965, 1053, 313, 13, 1678, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 1202, 29892, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 5992, 13, 29897, 13, 3166, 6317, 4965, 29889, 509, 25936, 29918, 3225, 29918, 4965, 1053, 1544, 29918, 3225, 29918, 5060, 487, 13, 3166, 6317, 9794, 1053, 1605, 25936, 6268, 13, 3166, 6317, 17858, 6847, 1053, 313, 13, 1678, 10751, 29918, 3225, 29918, 1445, 29918, 8143, 29892, 10751, 29918, 3225, 29918, 1445, 29918, 10382, 29892, 13, 1678, 10751, 29918, 3225, 29918, 1493, 29892, 10751, 29918, 509, 25936, 29918, 3225, 29918, 5060, 487, 13, 29897, 13, 13, 3166, 869, 3188, 1053, 3251, 293, 6268, 1043, 3057, 8259, 13, 3166, 869, 28084, 1144, 29889, 29888, 17118, 568, 29918, 3225, 29918, 28084, 1144, 1053, 383, 17118, 568, 6268, 3057, 29924, 861, 262, 13, 13, 13, 1990, 383, 17118, 568, 6268, 6595, 3057, 8259, 29898, 13, 1678, 383, 17118, 568, 6268, 3057, 29924, 861, 262, 29892, 3251, 293, 6268, 1043, 3057, 8259, 13, 1125, 13, 1678, 822, 1243, 29918, 29888, 17118, 568, 29918, 3225, 29918, 1202, 29918, 2324, 29918, 1217, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 3225, 29918, 303, 431, 580, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 1202, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 29888, 17118, 568, 29918, 3225, 29918, 1202, 29918, 2324, 29918, 2541, 29918, 5943, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 3225, 29918, 303, 431, 580, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29918, 303, 431, 29892, 10751, 29922, 16074, 29918, 3225, 29918, 1493, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 1202, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 3664, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 29888, 17118, 568, 29918, 3225, 29918, 1202, 29918, 2324, 29918, 23176, 29918, 1792, 29918, 2541, 29918, 5943, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 1792, 580, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 3225, 29918, 303, 431, 580, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29918, 303, 431, 29892, 10751, 29922, 16074, 29918, 3225, 29918, 1493, 13, 4706, 1723, 13, 13, 4706, 1583, 3032, 1688, 29918, 3225, 29918, 29888, 17118, 568, 29918, 1202, 29898, 1792, 29922, 1311, 29889, 1688, 29918, 1792, 29897, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 1202, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 3664, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 29888, 17118, 568, 29918, 3225, 29918, 5992, 29918, 2324, 29918, 1217, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 3225, 29918, 303, 431, 580, 13, 13, 4706, 1583, 3032, 1688, 29918, 3225, 29918, 29888, 17118, 568, 29918, 1202, 580, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 5992, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 29888, 17118, 568, 29918, 3225, 29918, 5992, 29918, 2324, 29918, 2541, 29918, 5943, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 3225, 29918, 303, 431, 580, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29918, 303, 431, 29892, 10751, 29922, 16074, 29918, 3225, 29918, 1493, 13, 4706, 1723, 13, 13, 4706, 1583, 3032, 1688, 29918, 3225, 29918, 29888, 17118, 568, 29918, 1202, 580, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 5992, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 3664, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 29888, 17118, 568, 29918, 3225, 29918, 5992, 29918, 2324, 29918, 23176, 29918, 1792, 29918, 2541, 29918, 5943, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 1792, 580, 13, 4706, 1583, 3032, 3258, 29918, 1688, 29918, 3225, 29918, 303, 431, 580, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29918, 303, 431, 29892, 10751, 29922, 16074, 29918, 3225, 29918, 1493, 13, 4706, 1723, 13, 13, 4706, 1583, 3032, 1688, 29918, 3225, 29918, 29888, 17118, 568, 29918, 1202, 29898, 1792, 29922, 1311, 29889, 1688, 29918, 1792, 29897, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 29888, 17118, 3246, 29918, 5992, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 13, 1990, 10854, 29879, 6595, 29879, 3057, 8259, 29898, 15809, 6268, 1043, 3057, 8259, 1125, 13, 1678, 822, 1243, 29918, 3225, 29918, 1445, 29918, 8143, 29918, 2324, 29918, 1217, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 3032, 9009, 29918, 1688, 29918, 3225, 29918, 1445, 580, 13, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1311, 29889, 1688, 29918, 3225, 29889, 5325, 29889, 2798, 3285, 29871, 29906, 29897, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29889, 5325, 29889, 4102, 3101, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 1445, 29918, 8143, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 3225, 29918, 1445, 29918, 8143, 29918, 2324, 29918, 2541, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 3032, 9009, 29918, 1688, 29918, 3225, 29918, 1445, 580, 13, 13, 4706, 1583, 29889, 9294, 5574, 29898, 1311, 29889, 1688, 29918, 3225, 29889, 5325, 29889, 2798, 3285, 29871, 29906, 29897, 13, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29892, 13, 9651, 10751, 29922, 16074, 29918, 3225, 29918, 1445, 29918, 8143, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29889, 5325, 29889, 4102, 3101, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 1445, 29918, 8143, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 3664, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 13, 9651, 11527, 29918, 2324, 29889, 2271, 29892, 13, 9651, 11837, 29898, 13, 18884, 1776, 978, 29922, 2324, 29918, 3225, 29918, 1445, 29918, 8143, 29889, 1493, 29892, 13, 18884, 6389, 7607, 1311, 29889, 1688, 29918, 3225, 29889, 5325, 29889, 4102, 2141, 20571, 29892, 29897, 13, 9651, 1723, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 3225, 29918, 1445, 29918, 10382, 29918, 2324, 29918, 1217, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29889, 1445, 29918, 12333, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 1445, 29918, 10382, 29918, 24561, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 3225, 29918, 1445, 29918, 10382, 29918, 2324, 29918, 2541, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29892, 13, 9651, 10751, 29922, 16074, 29918, 3225, 29918, 1445, 29918, 10382, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 3225, 29889, 1445, 29918, 12333, 29897, 13, 4706, 3030, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 1445, 29918, 10382, 29918, 24561, 29889, 17863, 29898, 4703, 29922, 4703, 29897, 13, 13, 4706, 1583, 29889, 9294, 3664, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 13, 9651, 11527, 29918, 2324, 29889, 2271, 29892, 13, 9651, 11837, 29898, 13, 18884, 1776, 978, 29922, 2324, 29918, 3225, 29918, 1445, 29918, 10382, 29918, 24561, 29889, 1493, 29892, 13, 18884, 6389, 7607, 1311, 29889, 1688, 29918, 3225, 29889, 1445, 29918, 12333, 29889, 20571, 29892, 29897, 13, 9651, 1723, 13, 4706, 1723, 13, 13, 13, 1990, 1605, 25936, 20128, 6595, 29879, 3057, 8259, 29898, 15809, 6268, 1043, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 2428, 2141, 842, 3373, 580, 13, 4706, 1583, 29889, 1688, 29918, 3225, 29889, 8143, 580, 13, 4706, 1583, 29889, 1688, 29918, 509, 25936, 29918, 3225, 353, 1605, 25936, 6268, 29889, 12650, 29889, 657, 29898, 13, 9651, 282, 29895, 29922, 1311, 29889, 1688, 29918, 3225, 29889, 20571, 13, 4706, 1723, 13, 4706, 1583, 29889, 1202, 29918, 1688, 29918, 1493, 29898, 1688, 29918, 3318, 29922, 1311, 29889, 1688, 29918, 509, 25936, 29918, 3225, 29897, 13, 4706, 1583, 29889, 4703, 353, 1583, 29889, 657, 29918, 1688, 29918, 1493, 580, 13, 13, 1678, 822, 1243, 29918, 509, 25936, 29918, 3225, 29918, 5060, 487, 29918, 2324, 29918, 1217, 29918, 16074, 29898, 1311, 1125, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 5060, 487, 29889, 17863, 29898, 4703, 29922, 1311, 29889, 4703, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 509, 25936, 29918, 3225, 29918, 5060, 487, 29918, 2324, 29918, 2541, 29918, 16074, 29898, 1311, 1125, 13, 4706, 1583, 29889, 629, 424, 29918, 5943, 29898, 13, 9651, 5446, 29922, 1311, 29889, 1688, 29918, 3225, 29892, 10751, 29922, 16074, 29918, 509, 25936, 29918, 3225, 29918, 5060, 487, 13, 4706, 1723, 13, 4706, 11527, 29918, 2324, 353, 1544, 29918, 3225, 29918, 5060, 487, 29889, 17863, 29898, 4703, 29922, 1311, 29889, 4703, 29897, 13, 4706, 1583, 29889, 9294, 3664, 9843, 29898, 9778, 1490, 29918, 2324, 29892, 6213, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 13, 9651, 11527, 29918, 2324, 29889, 2271, 29892, 13, 9651, 11837, 29898, 13, 18884, 1776, 978, 29922, 2324, 29918, 3225, 29918, 5060, 487, 29889, 1493, 29892, 13, 18884, 6389, 7607, 1311, 29889, 1688, 29918, 509, 25936, 29918, 3225, 29889, 20571, 29892, 29897, 13, 9651, 1723, 13, 4706, 1723, 13, 2 ]
baghchal/matchup.py
neupane11/ai-wmacevoy
0
131545
from random import Random from game import Game from const import Const from randomagent import RandomAgent from agent import Agent class Matchup: ''' Pit two agents against each other in a game ''' def __init__(self, verbose : bool = True): self._game = Game() self._goatAgent : Agent = RandomAgent(self._game, Const.MARK_GOAT) self._tigerAgent : Agent = RandomAgent(self._game,Const.MARK_TIGER) self._verbose = verbose def turn(self) -> None: if self._game.over: if self._verbose: print("game over - " + Const.stateStr(game.state)) print(game) return if self._game.state == Const.STATE_TURN_GOAT: move=self._goatAgent.propose() self._game.play(move) if self._verbose: print("after goat move " + str(move) + ":") print(self._game) if self._game.state == Const.STATE_TURN_TIGER: move=self._tigerAgent.propose() self._game.play(move) if self._verbose: print("after tiger move " + str(move) + ":") print(self._game) @property def game(self) -> Game: return self._game @property def over(self) -> bool: return self._game.over @property def tigerAgent(self) -> Agent: return self._tigerAgent @tigerAgent.setter def tigerAgent(self,value : Agent) -> None: value.game = self._game value.side = Const.MARK_TIGER self._tigerAgent = value @property def goatAgent(self) -> Agent: return self._goatAgent @goatAgent.setter def goatAgent(self,value : Agent) -> None: value.game = self._game value.side = Const.MARK_GOAT self._goatAgent = value
[ 1, 515, 4036, 1053, 16968, 13, 13, 3166, 3748, 1053, 8448, 13, 3166, 1040, 1053, 5798, 13, 3166, 4036, 14748, 1053, 16968, 19661, 13, 3166, 10823, 1053, 28330, 13, 13, 13, 1990, 14514, 786, 29901, 13, 1678, 14550, 13, 1678, 29244, 1023, 19518, 2750, 1269, 916, 297, 263, 3748, 13, 1678, 14550, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 26952, 584, 6120, 353, 5852, 1125, 13, 4706, 1583, 3032, 11802, 353, 8448, 580, 13, 4706, 1583, 3032, 1484, 271, 19661, 584, 28330, 353, 16968, 19661, 29898, 1311, 3032, 11802, 29892, 5798, 29889, 1529, 29934, 29968, 29918, 17080, 1299, 29897, 13, 4706, 1583, 3032, 29873, 4087, 19661, 584, 28330, 353, 16968, 19661, 29898, 1311, 3032, 11802, 29892, 12075, 29889, 1529, 29934, 29968, 29918, 29911, 6259, 1001, 29897, 13, 4706, 1583, 3032, 369, 15828, 353, 26952, 13, 13, 13, 1678, 822, 2507, 29898, 1311, 29897, 29871, 1599, 6213, 29901, 13, 4706, 565, 1583, 3032, 11802, 29889, 957, 29901, 13, 9651, 565, 1583, 3032, 369, 15828, 29901, 13, 18884, 1596, 703, 11802, 975, 448, 376, 718, 5798, 29889, 3859, 5015, 29898, 11802, 29889, 3859, 876, 13, 18884, 1596, 29898, 11802, 29897, 13, 9651, 736, 13, 4706, 565, 1583, 3032, 11802, 29889, 3859, 1275, 5798, 29889, 19713, 29918, 29911, 24015, 29918, 17080, 1299, 29901, 13, 9651, 4337, 29922, 1311, 3032, 1484, 271, 19661, 29889, 771, 4220, 580, 13, 9651, 1583, 3032, 11802, 29889, 1456, 29898, 11631, 29897, 13, 9651, 565, 1583, 3032, 369, 15828, 29901, 13, 18884, 1596, 703, 7045, 748, 271, 4337, 376, 718, 851, 29898, 11631, 29897, 718, 29242, 1159, 13, 18884, 1596, 29898, 1311, 3032, 11802, 29897, 13, 4706, 565, 1583, 3032, 11802, 29889, 3859, 1275, 5798, 29889, 19713, 29918, 29911, 24015, 29918, 29911, 6259, 1001, 29901, 13, 9651, 4337, 29922, 1311, 3032, 29873, 4087, 19661, 29889, 771, 4220, 580, 13, 9651, 1583, 3032, 11802, 29889, 1456, 29898, 11631, 29897, 13, 9651, 565, 1583, 3032, 369, 15828, 29901, 13, 18884, 1596, 703, 7045, 260, 4087, 4337, 376, 718, 851, 29898, 11631, 29897, 718, 29242, 1159, 13, 18884, 1596, 29898, 1311, 3032, 11802, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3748, 29898, 1311, 29897, 1599, 8448, 29901, 13, 4706, 736, 1583, 3032, 11802, 13, 13, 1678, 732, 6799, 13, 1678, 822, 975, 29898, 1311, 29897, 1599, 6120, 29901, 13, 4706, 736, 1583, 3032, 11802, 29889, 957, 13, 13, 1678, 732, 6799, 13, 1678, 822, 260, 4087, 19661, 29898, 1311, 29897, 1599, 28330, 29901, 13, 4706, 736, 1583, 3032, 29873, 4087, 19661, 13, 1678, 732, 29873, 4087, 19661, 29889, 842, 357, 13, 1678, 822, 260, 4087, 19661, 29898, 1311, 29892, 1767, 584, 28330, 29897, 1599, 6213, 29901, 13, 4706, 995, 29889, 11802, 353, 1583, 3032, 11802, 13, 4706, 995, 29889, 2975, 353, 5798, 29889, 1529, 29934, 29968, 29918, 29911, 6259, 1001, 13, 4706, 1583, 3032, 29873, 4087, 19661, 353, 995, 13, 13, 1678, 732, 6799, 13, 1678, 822, 748, 271, 19661, 29898, 1311, 29897, 1599, 28330, 29901, 13, 4706, 736, 1583, 3032, 1484, 271, 19661, 13, 1678, 732, 1484, 271, 19661, 29889, 842, 357, 13, 1678, 822, 748, 271, 19661, 29898, 1311, 29892, 1767, 584, 28330, 29897, 1599, 6213, 29901, 13, 4706, 995, 29889, 11802, 353, 1583, 3032, 11802, 13, 4706, 995, 29889, 2975, 353, 5798, 29889, 1529, 29934, 29968, 29918, 17080, 1299, 13, 4706, 1583, 3032, 1484, 271, 19661, 353, 995, 13, 13, 2 ]
PyScraper/server/models/project.py
nikan1996/PyScraper
0
53129
#!/usr/bin/env python # encoding: utf-8 """ @author:nikan @file: project.py @time: 2018/5/14 下午4:20 """ import datetime from sqlalchemy import text from sqlalchemy.dialects import mysql from PyScraper.server.extensions import db class Project(db.Model): __tablename__ = "project" project_id = db.Column(db.Integer, autoincrement=True, primary_key=True, doc="自增id") project_name = db.Column(db.String(191), nullable=False, doc="项目名称") setting = db.Column(mysql.JSON, doc="项目配置") cron_config = db.Column(mysql.JSON, doc="项目调度配置") tag = db.Column(db.String(191), doc="项目标签") status = db.Column(db.String(191), nullable=False, default='stop', doc="项目状态") is_deleted = db.Column(db.Boolean, default=0, doc="项目是否删除的标记") update_timestamp = db.Column(db.TIMESTAMP, server_default=text('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'), doc="更新时间") create_timestamp = db.Column(db.TIMESTAMP, default=datetime.datetime.now, doc="创建时间")
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 8025, 29901, 23616, 29899, 29947, 13, 15945, 29908, 13, 13, 29992, 8921, 29901, 5585, 273, 13, 13, 29992, 1445, 29901, 2060, 29889, 2272, 13, 13, 29992, 2230, 29901, 29871, 29906, 29900, 29896, 29947, 29914, 29945, 29914, 29896, 29946, 29871, 30557, 232, 144, 139, 29946, 29901, 29906, 29900, 13, 15945, 29908, 13, 5215, 12865, 13, 13, 3166, 4576, 284, 305, 6764, 1053, 1426, 13, 3166, 4576, 284, 305, 6764, 29889, 15321, 781, 29879, 1053, 5749, 13, 13, 3166, 10772, 4421, 336, 546, 29889, 2974, 29889, 24299, 1053, 4833, 13, 13, 13, 1990, 8010, 29898, 2585, 29889, 3195, 1125, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 4836, 29908, 13, 13, 1678, 2060, 29918, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 4469, 25629, 29922, 5574, 29892, 7601, 29918, 1989, 29922, 5574, 29892, 1574, 543, 30688, 232, 165, 161, 333, 1159, 13, 1678, 2060, 29918, 978, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29929, 29896, 511, 1870, 519, 29922, 8824, 29892, 1574, 543, 31888, 30895, 30548, 31685, 1159, 13, 1678, 4444, 353, 4833, 29889, 4409, 29898, 7938, 29889, 7249, 29892, 1574, 543, 31888, 30895, 31361, 30669, 1159, 13, 268, 13, 1678, 18863, 29918, 2917, 353, 4833, 29889, 4409, 29898, 7938, 29889, 7249, 29892, 1574, 543, 31888, 30895, 31268, 30898, 31361, 30669, 1159, 13, 1678, 4055, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29929, 29896, 511, 1574, 543, 31888, 30895, 31062, 234, 176, 193, 1159, 13, 1678, 4660, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29929, 29896, 511, 1870, 519, 29922, 8824, 29892, 2322, 2433, 9847, 742, 1574, 543, 31888, 30895, 31531, 31613, 1159, 13, 1678, 338, 29918, 311, 22742, 353, 4833, 29889, 4409, 29898, 2585, 29889, 18146, 29892, 2322, 29922, 29900, 29892, 1574, 543, 31888, 30895, 30392, 31191, 31916, 31152, 30210, 31062, 31410, 1159, 13, 1678, 2767, 29918, 16394, 353, 4833, 29889, 4409, 29898, 2585, 29889, 15307, 1254, 19297, 29892, 1923, 29918, 4381, 29922, 726, 877, 22484, 29450, 29918, 15307, 1254, 19297, 6732, 16924, 315, 4574, 29450, 29918, 15307, 1254, 19297, 5477, 1574, 543, 31100, 30374, 30594, 31016, 1159, 13, 1678, 1653, 29918, 16394, 353, 4833, 29889, 4409, 29898, 2585, 29889, 15307, 1254, 19297, 29892, 2322, 29922, 12673, 29889, 12673, 29889, 3707, 29892, 1574, 543, 31441, 30886, 30594, 31016, 1159, 13, 13, 2 ]
mealpy/utils/visualize/linechart.py
thieu1995/mealpy
162
26424
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu" at 17:12, 09/07/2021 % # % # Email: <EMAIL> % # Homepage: https://www.researchgate.net/profile/Nguyen_Thieu2 % # Github: https://github.com/thieu1995 % # ------------------------------------------------------------------------------------------------------% import platform from matplotlib import pyplot as plt from numpy import arange from pathlib import Path import re LIST_LINESTYLES = [ '-', # solid line style '--', # dashed line style '-.', # dash-dot line style ':', # point marker 's', # square marker '*', # star marker 'p', # pentagon marker '+', # plus marker 'x', # x marker 'd', # thin diamond marker ] LIST_COLORS = ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', '#17becf'] def __clean_filename__(filename): chars_to_remove = ["`", "~", "!", "@", "#", "$", "%", "^", "&", "*", ":", ",", "<", ">", ";", "+", "|"] regular_expression = '[' + re.escape(''.join(chars_to_remove)) + ']' temp = filename.encode("ascii", "ignore") fname = temp.decode() # Removed all non-ascii characters fname = re.sub(regular_expression, '', fname) # Removed all special characters fname.replace("_", "-") # Replaced _ by - return fname def __check_filepath__(filename): filename.replace("\\", "/") # For better handling the parent folder if "/" in filename: list_names = filename.split("/")[:-1] # Remove last element because it is filename filepath = "/".join(list_names) print(f"Fucking for real? {filepath}") Path(filepath).mkdir(parents=True, exist_ok=True) return filename def _draw_line_(data=None, title=None, linestyle='-', color='b', x_label="#Iteration", y_label="Function Value", filename=None, exts=(".png", ".pdf"), verbose=True): x = arange(0, len(data)) y = data plt.title(title) plt.xlabel(x_label) plt.ylabel(y_label) plt.plot(x, y, linestyle=linestyle, color=color,) plt.legend() # show a legend on the plot if filename is not None: filepath = __check_filepath__(__clean_filename__(filename)) for idx, ext in enumerate(exts): plt.savefig(f"{filepath}{ext}", bbox_inches='tight') if platform.system() != "Linux" and verbose: plt.show() plt.close() def _draw_multi_line_(data=None, title=None, list_legends=None, list_styles=None, list_colors=None, x_label="#Iteration", y_label="Function Value", filename=None, exts=(".png", ".pdf"), verbose=True): x = arange(0, len(data[0])) for idx, y in enumerate(data): plt.plot(x, y, label=list_legends[idx], markerfacecolor=list_colors[idx], linestyle=list_styles[idx]) plt.title(title) plt.xlabel(x_label) plt.ylabel(y_label) plt.legend() # show a legend on the plot if filename is not None: filepath = __check_filepath__(__clean_filename__(filename)) for idx, ext in enumerate(exts): plt.savefig(f"{filepath}{ext}", bbox_inches='tight') if platform.system() != "Linux" and verbose: plt.show() plt.close() def _draw_multi_line_in_same_figure_(data=None, title=None, list_legends=None, list_styles=None, list_colors=None, x_label="#Iteration", y_label="Objective", filename=None, exts=(".png", ".pdf"), verbose=True): n_lines = len(data) len_lines = len(data[0]) x = arange(0, len_lines) if n_lines == 1: fig, ax = plt.subplots() if list_legends is None: ax.plot(x, data[0]) else: ax.plot(x, data[0], label=list_legends[0]) ax.set_title(title) elif n_lines > 1: fig, ax_list = plt.subplots(n_lines, sharex=True) fig.suptitle(title) for idx, ax in enumerate(ax_list): if list_legends is None: ax.plot(x, data[idx], markerfacecolor=list_colors[idx], linestyle=list_styles[idx]) else: ax.plot(x, data[idx], label=list_legends[idx], markerfacecolor=list_colors[idx], linestyle=list_styles[idx]) ax.set_ylabel(f"Objective {idx + 1}") if idx == (n_lines - 1): ax.set_xlabel(x_label) if filename is not None: filepath = __check_filepath__(__clean_filename__(filename)) for idx, ext in enumerate(exts): plt.savefig(f"{filepath}{ext}", bbox_inches='tight') if platform.system() != "Linux" and verbose: plt.show() plt.close() def export_convergence_chart(data=None, title="Convergence Chart", linestyle='-', color='b', x_label="#Iteration", y_label="Function Value", filename="convergence_chart", exts=(".png", ".pdf"), verbose=True): _draw_line_(data, title=title, linestyle=linestyle, color=color, x_label=x_label, y_label=y_label, filename=filename, exts=exts, verbose=verbose) def export_explore_exploit_chart(data=None, title="Exploration vs Exploitation Percentages", list_legends=("Exploration %", "Exploitation %"), list_styles=('-', '-'), list_colors=('blue', 'orange'), x_label="#Iteration", y_label="Percentage", filename="explore_exploit_chart", exts=(".png", ".pdf"), verbose=True): _draw_multi_line_(data=data, title=title, list_legends=list_legends, list_styles=list_styles, list_colors=list_colors, x_label=x_label, y_label=y_label, filename=filename, exts=exts, verbose=verbose) def export_diversity_chart(data=None, title='Diversity Measurement Chart', list_legends=None, list_styles=None, list_colors=None, x_label="#Iteration", y_label="Diversity Measurement", filename="diversity_chart", exts=(".png", ".pdf"), verbose=True): if list_styles is None: list_styles = LIST_LINESTYLES[:len(data)] if list_colors is None: list_colors = LIST_COLORS[:len(data)] _draw_multi_line_(data=data, title=title, list_legends=list_legends, list_styles=list_styles, list_colors=list_colors, x_label=x_label, y_label=y_label, filename=filename, exts=exts, verbose=verbose) def export_objectives_chart(data=None, title="Objectives chart", list_legends=None, list_styles=None, list_colors=None, x_label="#Iteration", y_label="Function Value", filename="Objective-chart", exts=(".png", ".pdf"), verbose=True): if list_styles is None: list_styles = LIST_LINESTYLES[:len(data)] if list_colors is None: list_colors = LIST_COLORS[:len(data)] _draw_multi_line_in_same_figure_(data=data, title=title, list_legends=list_legends, list_styles=list_styles, list_colors=list_colors, x_label=x_label, y_label=y_label, filename=filename, exts=exts, verbose=verbose) def export_trajectory_chart(data=None, n_dimensions=1, title="Trajectory of some first agents after generations", list_legends=None, list_styles=None, list_colors=None, x_label="#Iteration", y_label="X1", filename="1d_trajectory", exts=(".png", ".pdf"), verbose=True): if list_styles is None: list_styles = LIST_LINESTYLES[:len(data)] if list_colors is None: list_colors = LIST_COLORS[:len(data)] if n_dimensions == 1: x = arange(0, len(data[0])) for idx, y in enumerate(data): plt.plot(x, y, label=list_legends[idx], markerfacecolor=list_colors[idx], linestyle=list_styles[idx]) elif n_dimensions == 2: for idx, point in enumerate(data): plt.plot(point[0], point[1], label=list_legends[idx], markerfacecolor=list_colors[idx], linestyle=list_styles[idx]) plt.title(title) plt.xlabel(x_label) plt.ylabel(y_label) plt.legend() # show a legend on the plot if filename is not None: filepath = __check_filepath__(__clean_filename__(filename)) for idx, ext in enumerate(exts): plt.savefig(f"{filepath}{ext}", bbox_inches='tight') if platform.system() != "Linux" and verbose: plt.show() plt.close()
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 807, 19222, 13, 29937, 6760, 630, 491, 376, 1349, 9532, 29908, 472, 29871, 29896, 29955, 29901, 29896, 29906, 29892, 29871, 29900, 29929, 29914, 29900, 29955, 29914, 29906, 29900, 29906, 29896, 462, 462, 462, 1669, 1273, 13, 29937, 462, 462, 462, 462, 462, 462, 539, 1273, 13, 29937, 539, 22608, 29901, 418, 529, 26862, 6227, 29958, 462, 462, 462, 965, 1273, 13, 29937, 539, 8778, 3488, 29901, 259, 2045, 597, 1636, 29889, 690, 2842, 17062, 29889, 1212, 29914, 10185, 29914, 29940, 2543, 11771, 29918, 1349, 9532, 29906, 462, 462, 29871, 1273, 13, 29937, 539, 402, 2985, 29901, 268, 2045, 597, 3292, 29889, 510, 29914, 386, 9532, 29896, 29929, 29929, 29945, 462, 462, 462, 4706, 1273, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 2683, 807, 19222, 13, 13, 5215, 7481, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770, 13, 3166, 12655, 1053, 564, 927, 13, 3166, 2224, 1982, 1053, 10802, 13, 5215, 337, 13, 13, 13, 24360, 29918, 18521, 1254, 29979, 17101, 353, 518, 13, 1678, 17411, 742, 4706, 396, 7773, 1196, 3114, 13, 1678, 525, 489, 742, 539, 396, 27526, 1196, 3114, 13, 1678, 17411, 29889, 742, 539, 396, 12569, 29899, 6333, 1196, 3114, 13, 1678, 525, 29901, 742, 4706, 396, 1298, 17456, 13, 1678, 525, 29879, 742, 4706, 396, 6862, 17456, 13, 1678, 525, 29930, 742, 4706, 396, 5810, 17456, 13, 1678, 525, 29886, 742, 4706, 396, 11137, 12841, 17456, 13, 1678, 525, 29974, 742, 4706, 396, 2298, 17456, 13, 1678, 525, 29916, 742, 4706, 396, 921, 17456, 13, 1678, 525, 29881, 742, 4706, 396, 16835, 11502, 898, 17456, 13, 29962, 13, 13, 24360, 29918, 15032, 24125, 353, 6024, 29937, 29896, 29888, 29955, 29955, 29890, 29946, 742, 16321, 600, 29955, 29888, 29900, 29872, 742, 16321, 29906, 1113, 29900, 29906, 29883, 742, 16321, 29881, 29953, 29906, 29955, 29906, 29947, 742, 13, 795, 16321, 29929, 29946, 29953, 29955, 6448, 742, 16321, 29947, 29883, 29945, 29953, 29946, 29890, 742, 16321, 29872, 29941, 29955, 29955, 29883, 29906, 742, 16321, 29955, 29888, 29955, 29888, 29955, 29888, 742, 13, 795, 16321, 12328, 6448, 29906, 29906, 742, 16321, 29896, 29955, 19385, 29888, 2033, 13, 13, 13, 1753, 4770, 14941, 29918, 9507, 12035, 9507, 1125, 13, 1678, 22524, 29918, 517, 29918, 5992, 353, 6796, 29952, 613, 376, 30022, 613, 376, 29991, 613, 17962, 613, 12305, 613, 3908, 613, 11860, 613, 13898, 613, 376, 29987, 613, 26345, 613, 29242, 613, 9162, 613, 9872, 613, 376, 28341, 12159, 613, 15691, 613, 376, 29989, 3108, 13, 1678, 4943, 29918, 17471, 353, 525, 1839, 718, 337, 29889, 21587, 877, 4286, 7122, 29898, 305, 1503, 29918, 517, 29918, 5992, 876, 718, 525, 29962, 29915, 13, 13, 1678, 5694, 353, 10422, 29889, 12508, 703, 294, 18869, 613, 376, 17281, 1159, 13, 1678, 285, 978, 353, 5694, 29889, 13808, 580, 462, 965, 396, 5240, 8238, 599, 1661, 29899, 294, 18869, 4890, 13, 1678, 285, 978, 353, 337, 29889, 1491, 29898, 15227, 29918, 17471, 29892, 15516, 285, 978, 29897, 259, 396, 5240, 8238, 599, 4266, 4890, 13, 1678, 285, 978, 29889, 6506, 703, 29918, 613, 11663, 1159, 462, 308, 396, 10088, 433, 1133, 903, 491, 448, 13, 1678, 736, 285, 978, 13, 13, 13, 1753, 4770, 3198, 29918, 1445, 2084, 12035, 9507, 1125, 13, 1678, 10422, 29889, 6506, 703, 1966, 613, 5591, 1159, 462, 268, 396, 1152, 2253, 11415, 278, 3847, 4138, 13, 1678, 565, 5591, 29908, 297, 10422, 29901, 13, 4706, 1051, 29918, 7039, 353, 10422, 29889, 5451, 11974, 1159, 7503, 29899, 29896, 29962, 539, 396, 15154, 1833, 1543, 1363, 372, 338, 10422, 13, 4706, 934, 2084, 353, 5591, 1642, 7122, 29898, 1761, 29918, 7039, 29897, 13, 4706, 1596, 29898, 29888, 29908, 29943, 2707, 292, 363, 1855, 29973, 426, 1445, 2084, 27195, 13, 4706, 10802, 29898, 1445, 2084, 467, 11256, 3972, 29898, 862, 1237, 29922, 5574, 29892, 1863, 29918, 554, 29922, 5574, 29897, 13, 1678, 736, 10422, 13, 13, 13, 1753, 903, 4012, 29918, 1220, 23538, 1272, 29922, 8516, 29892, 3611, 29922, 8516, 29892, 6276, 342, 1508, 2433, 29899, 742, 2927, 2433, 29890, 742, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 6678, 7865, 613, 13, 462, 268, 10422, 29922, 8516, 29892, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 921, 353, 564, 927, 29898, 29900, 29892, 7431, 29898, 1272, 876, 13, 1678, 343, 353, 848, 13, 1678, 14770, 29889, 3257, 29898, 3257, 29897, 13, 1678, 14770, 29889, 29916, 1643, 29898, 29916, 29918, 1643, 29897, 13, 1678, 14770, 29889, 29891, 1643, 29898, 29891, 29918, 1643, 29897, 13, 1678, 14770, 29889, 5317, 29898, 29916, 29892, 343, 29892, 6276, 342, 1508, 29922, 1915, 342, 1508, 29892, 2927, 29922, 2780, 29892, 29897, 13, 1678, 14770, 29889, 26172, 580, 29871, 396, 1510, 263, 15983, 373, 278, 6492, 13, 1678, 565, 10422, 338, 451, 6213, 29901, 13, 4706, 934, 2084, 353, 4770, 3198, 29918, 1445, 2084, 12035, 1649, 14941, 29918, 9507, 12035, 9507, 876, 13, 4706, 363, 22645, 29892, 1294, 297, 26985, 29898, 1062, 29879, 1125, 13, 9651, 14770, 29889, 7620, 1003, 29898, 29888, 29908, 29912, 1445, 2084, 1157, 1062, 17671, 289, 1884, 29918, 262, 6609, 2433, 29873, 523, 1495, 13, 1678, 565, 7481, 29889, 5205, 580, 2804, 376, 24085, 29908, 322, 26952, 29901, 13, 4706, 14770, 29889, 4294, 580, 13, 1678, 14770, 29889, 5358, 580, 13, 13, 13, 1753, 903, 4012, 29918, 9910, 29918, 1220, 23538, 1272, 29922, 8516, 29892, 3611, 29922, 8516, 29892, 1051, 29918, 1397, 1975, 29922, 8516, 29892, 1051, 29918, 9783, 29922, 8516, 29892, 1051, 29918, 27703, 29922, 8516, 29892, 13, 462, 418, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 6678, 7865, 613, 10422, 29922, 8516, 29892, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 921, 353, 564, 927, 29898, 29900, 29892, 7431, 29898, 1272, 29961, 29900, 12622, 13, 1678, 363, 22645, 29892, 343, 297, 26985, 29898, 1272, 1125, 13, 4706, 14770, 29889, 5317, 29898, 29916, 29892, 343, 29892, 3858, 29922, 1761, 29918, 1397, 1975, 29961, 13140, 1402, 17456, 2161, 2780, 29922, 1761, 29918, 27703, 29961, 13140, 1402, 6276, 342, 1508, 29922, 1761, 29918, 9783, 29961, 13140, 2314, 13, 13, 1678, 14770, 29889, 3257, 29898, 3257, 29897, 13, 1678, 14770, 29889, 29916, 1643, 29898, 29916, 29918, 1643, 29897, 13, 1678, 14770, 29889, 29891, 1643, 29898, 29891, 29918, 1643, 29897, 13, 1678, 14770, 29889, 26172, 580, 29871, 396, 1510, 263, 15983, 373, 278, 6492, 13, 1678, 565, 10422, 338, 451, 6213, 29901, 13, 4706, 934, 2084, 353, 4770, 3198, 29918, 1445, 2084, 12035, 1649, 14941, 29918, 9507, 12035, 9507, 876, 13, 4706, 363, 22645, 29892, 1294, 297, 26985, 29898, 1062, 29879, 1125, 13, 9651, 14770, 29889, 7620, 1003, 29898, 29888, 29908, 29912, 1445, 2084, 1157, 1062, 17671, 289, 1884, 29918, 262, 6609, 2433, 29873, 523, 1495, 13, 1678, 565, 7481, 29889, 5205, 580, 2804, 376, 24085, 29908, 322, 26952, 29901, 13, 4706, 14770, 29889, 4294, 580, 13, 1678, 14770, 29889, 5358, 580, 13, 13, 13, 1753, 903, 4012, 29918, 9910, 29918, 1220, 29918, 262, 29918, 17642, 29918, 4532, 23538, 1272, 29922, 8516, 29892, 3611, 29922, 8516, 29892, 1051, 29918, 1397, 1975, 29922, 8516, 29892, 1051, 29918, 9783, 29922, 8516, 29892, 1051, 29918, 27703, 29922, 8516, 29892, 13, 462, 462, 268, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 2061, 573, 613, 10422, 29922, 8516, 29892, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 302, 29918, 9012, 353, 7431, 29898, 1272, 29897, 13, 1678, 7431, 29918, 9012, 353, 7431, 29898, 1272, 29961, 29900, 2314, 13, 1678, 921, 353, 564, 927, 29898, 29900, 29892, 7431, 29918, 9012, 29897, 13, 13, 1678, 565, 302, 29918, 9012, 1275, 29871, 29896, 29901, 13, 4706, 2537, 29892, 4853, 353, 14770, 29889, 1491, 26762, 580, 13, 4706, 565, 1051, 29918, 1397, 1975, 338, 6213, 29901, 13, 9651, 4853, 29889, 5317, 29898, 29916, 29892, 848, 29961, 29900, 2314, 13, 4706, 1683, 29901, 13, 9651, 4853, 29889, 5317, 29898, 29916, 29892, 848, 29961, 29900, 1402, 3858, 29922, 1761, 29918, 1397, 1975, 29961, 29900, 2314, 13, 4706, 4853, 29889, 842, 29918, 3257, 29898, 3257, 29897, 13, 1678, 25342, 302, 29918, 9012, 1405, 29871, 29896, 29901, 13, 4706, 2537, 29892, 4853, 29918, 1761, 353, 14770, 29889, 1491, 26762, 29898, 29876, 29918, 9012, 29892, 6232, 29916, 29922, 5574, 29897, 13, 4706, 2537, 29889, 2146, 415, 1740, 29898, 3257, 29897, 13, 4706, 363, 22645, 29892, 4853, 297, 26985, 29898, 1165, 29918, 1761, 1125, 13, 9651, 565, 1051, 29918, 1397, 1975, 338, 6213, 29901, 13, 18884, 4853, 29889, 5317, 29898, 29916, 29892, 848, 29961, 13140, 1402, 17456, 2161, 2780, 29922, 1761, 29918, 27703, 29961, 13140, 1402, 6276, 342, 1508, 29922, 1761, 29918, 9783, 29961, 13140, 2314, 13, 9651, 1683, 29901, 13, 18884, 4853, 29889, 5317, 29898, 29916, 29892, 848, 29961, 13140, 1402, 3858, 29922, 1761, 29918, 1397, 1975, 29961, 13140, 1402, 17456, 2161, 2780, 29922, 1761, 29918, 27703, 29961, 13140, 1402, 6276, 342, 1508, 29922, 1761, 29918, 9783, 29961, 13140, 2314, 13, 9651, 4853, 29889, 842, 29918, 29891, 1643, 29898, 29888, 29908, 2061, 573, 426, 13140, 718, 29871, 29896, 27195, 13, 9651, 565, 22645, 1275, 313, 29876, 29918, 9012, 448, 29871, 29896, 1125, 13, 18884, 4853, 29889, 842, 29918, 29916, 1643, 29898, 29916, 29918, 1643, 29897, 13, 13, 1678, 565, 10422, 338, 451, 6213, 29901, 13, 4706, 934, 2084, 353, 4770, 3198, 29918, 1445, 2084, 12035, 1649, 14941, 29918, 9507, 12035, 9507, 876, 13, 4706, 363, 22645, 29892, 1294, 297, 26985, 29898, 1062, 29879, 1125, 13, 9651, 14770, 29889, 7620, 1003, 29898, 29888, 29908, 29912, 1445, 2084, 1157, 1062, 17671, 289, 1884, 29918, 262, 6609, 2433, 29873, 523, 1495, 13, 1678, 565, 7481, 29889, 5205, 580, 2804, 376, 24085, 29908, 322, 26952, 29901, 13, 4706, 14770, 29889, 4294, 580, 13, 1678, 14770, 29889, 5358, 580, 13, 13, 13, 13, 1753, 5609, 29918, 535, 369, 10238, 29918, 15425, 29898, 1272, 29922, 8516, 29892, 3611, 543, 1168, 369, 10238, 14477, 613, 6276, 342, 1508, 2433, 29899, 742, 2927, 2433, 29890, 742, 921, 29918, 1643, 9880, 13463, 362, 613, 13, 462, 539, 343, 29918, 1643, 543, 6678, 7865, 613, 10422, 543, 535, 369, 10238, 29918, 15425, 613, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 903, 4012, 29918, 1220, 23538, 1272, 29892, 3611, 29922, 3257, 29892, 6276, 342, 1508, 29922, 1915, 342, 1508, 29892, 2927, 29922, 2780, 29892, 921, 29918, 1643, 29922, 29916, 29918, 1643, 29892, 343, 29918, 1643, 29922, 29891, 29918, 1643, 29892, 13, 462, 1678, 10422, 29922, 9507, 29892, 1294, 29879, 29922, 1062, 29879, 29892, 26952, 29922, 369, 15828, 29897, 13, 13, 13, 1753, 5609, 29918, 24516, 487, 29918, 4548, 417, 277, 29918, 15425, 29898, 1272, 29922, 8516, 29892, 3611, 543, 1252, 572, 12418, 7186, 12027, 417, 7018, 2431, 1760, 1179, 613, 1051, 29918, 1397, 1975, 29922, 703, 1252, 572, 12418, 1273, 613, 376, 9544, 417, 7018, 1273, 4968, 13, 462, 462, 1051, 29918, 9783, 29922, 877, 29899, 742, 17411, 5477, 1051, 29918, 27703, 29922, 877, 9539, 742, 525, 272, 927, 5477, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 27933, 482, 613, 13, 462, 462, 10422, 543, 24516, 487, 29918, 4548, 417, 277, 29918, 15425, 613, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 903, 4012, 29918, 9910, 29918, 1220, 23538, 1272, 29922, 1272, 29892, 3611, 29922, 3257, 29892, 1051, 29918, 1397, 1975, 29922, 1761, 29918, 1397, 1975, 29892, 1051, 29918, 9783, 29922, 1761, 29918, 9783, 29892, 1051, 29918, 27703, 29922, 1761, 29918, 27703, 29892, 13, 462, 418, 921, 29918, 1643, 29922, 29916, 29918, 1643, 29892, 343, 29918, 1643, 29922, 29891, 29918, 1643, 29892, 10422, 29922, 9507, 29892, 1294, 29879, 29922, 1062, 29879, 29892, 26952, 29922, 369, 15828, 29897, 13, 13, 13, 1753, 5609, 29918, 29881, 24974, 29918, 15425, 29898, 1272, 29922, 8516, 29892, 3611, 2433, 29928, 24974, 2191, 3745, 358, 14477, 742, 1051, 29918, 1397, 1975, 29922, 8516, 29892, 13, 462, 965, 1051, 29918, 9783, 29922, 8516, 29892, 1051, 29918, 27703, 29922, 8516, 29892, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 29928, 24974, 2191, 3745, 358, 613, 13, 462, 965, 10422, 543, 29881, 24974, 29918, 15425, 613, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 565, 1051, 29918, 9783, 338, 6213, 29901, 13, 4706, 1051, 29918, 9783, 353, 365, 9047, 29918, 18521, 1254, 29979, 17101, 7503, 2435, 29898, 1272, 4638, 13, 1678, 565, 1051, 29918, 27703, 338, 6213, 29901, 13, 4706, 1051, 29918, 27703, 353, 365, 9047, 29918, 15032, 24125, 7503, 2435, 29898, 1272, 4638, 13, 1678, 903, 4012, 29918, 9910, 29918, 1220, 23538, 1272, 29922, 1272, 29892, 3611, 29922, 3257, 29892, 1051, 29918, 1397, 1975, 29922, 1761, 29918, 1397, 1975, 29892, 1051, 29918, 9783, 29922, 1761, 29918, 9783, 29892, 1051, 29918, 27703, 29922, 1761, 29918, 27703, 29892, 13, 462, 418, 921, 29918, 1643, 29922, 29916, 29918, 1643, 29892, 343, 29918, 1643, 29922, 29891, 29918, 1643, 29892, 10422, 29922, 9507, 29892, 1294, 29879, 29922, 1062, 29879, 29892, 26952, 29922, 369, 15828, 29897, 13, 13, 13, 1753, 5609, 29918, 3318, 3145, 29918, 15425, 29898, 1272, 29922, 8516, 29892, 3611, 543, 2061, 3145, 8727, 613, 1051, 29918, 1397, 1975, 29922, 8516, 29892, 1051, 29918, 9783, 29922, 8516, 29892, 1051, 29918, 27703, 29922, 8516, 29892, 13, 9651, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 6678, 7865, 613, 10422, 543, 2061, 573, 29899, 15425, 613, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 565, 1051, 29918, 9783, 338, 6213, 29901, 13, 4706, 1051, 29918, 9783, 353, 365, 9047, 29918, 18521, 1254, 29979, 17101, 7503, 2435, 29898, 1272, 4638, 13, 1678, 565, 1051, 29918, 27703, 338, 6213, 29901, 13, 4706, 1051, 29918, 27703, 353, 365, 9047, 29918, 15032, 24125, 7503, 2435, 29898, 1272, 4638, 13, 1678, 903, 4012, 29918, 9910, 29918, 1220, 29918, 262, 29918, 17642, 29918, 4532, 23538, 1272, 29922, 1272, 29892, 3611, 29922, 3257, 29892, 1051, 29918, 1397, 1975, 29922, 1761, 29918, 1397, 1975, 29892, 1051, 29918, 9783, 29922, 1761, 29918, 9783, 29892, 1051, 29918, 27703, 29922, 1761, 29918, 27703, 29892, 13, 462, 462, 268, 921, 29918, 1643, 29922, 29916, 29918, 1643, 29892, 343, 29918, 1643, 29922, 29891, 29918, 1643, 29892, 10422, 29922, 9507, 29892, 1294, 29879, 29922, 1062, 29879, 29892, 26952, 29922, 369, 15828, 29897, 13, 13, 13, 1753, 5609, 29918, 3018, 622, 706, 29918, 15425, 29898, 1272, 29922, 8516, 29892, 302, 29918, 6229, 5580, 29922, 29896, 29892, 3611, 543, 5323, 622, 706, 310, 777, 937, 19518, 1156, 1176, 800, 613, 1051, 29918, 1397, 1975, 29922, 8516, 29892, 13, 462, 462, 1051, 29918, 9783, 29922, 8516, 29892, 1051, 29918, 27703, 29922, 8516, 29892, 921, 29918, 1643, 9880, 13463, 362, 613, 343, 29918, 1643, 543, 29990, 29896, 613, 13, 462, 462, 10422, 543, 29896, 29881, 29918, 3018, 622, 706, 613, 1294, 29879, 29922, 17350, 2732, 613, 11393, 5140, 4968, 26952, 29922, 5574, 1125, 13, 1678, 565, 1051, 29918, 9783, 338, 6213, 29901, 13, 4706, 1051, 29918, 9783, 353, 365, 9047, 29918, 18521, 1254, 29979, 17101, 7503, 2435, 29898, 1272, 4638, 13, 1678, 565, 1051, 29918, 27703, 338, 6213, 29901, 13, 4706, 1051, 29918, 27703, 353, 365, 9047, 29918, 15032, 24125, 7503, 2435, 29898, 1272, 4638, 13, 13, 1678, 565, 302, 29918, 6229, 5580, 1275, 29871, 29896, 29901, 13, 4706, 921, 353, 564, 927, 29898, 29900, 29892, 7431, 29898, 1272, 29961, 29900, 12622, 13, 4706, 363, 22645, 29892, 343, 297, 26985, 29898, 1272, 1125, 13, 9651, 14770, 29889, 5317, 29898, 29916, 29892, 343, 29892, 3858, 29922, 1761, 29918, 1397, 1975, 29961, 13140, 1402, 17456, 2161, 2780, 29922, 1761, 29918, 27703, 29961, 13140, 1402, 6276, 342, 1508, 29922, 1761, 29918, 9783, 29961, 13140, 2314, 13, 1678, 25342, 302, 29918, 6229, 5580, 1275, 29871, 29906, 29901, 13, 4706, 363, 22645, 29892, 1298, 297, 26985, 29898, 1272, 1125, 13, 9651, 14770, 29889, 5317, 29898, 3149, 29961, 29900, 1402, 1298, 29961, 29896, 1402, 3858, 29922, 1761, 29918, 1397, 1975, 29961, 13140, 1402, 17456, 2161, 2780, 29922, 1761, 29918, 27703, 29961, 13140, 1402, 6276, 342, 1508, 29922, 1761, 29918, 9783, 29961, 13140, 2314, 13, 13, 1678, 14770, 29889, 3257, 29898, 3257, 29897, 13, 1678, 14770, 29889, 29916, 1643, 29898, 29916, 29918, 1643, 29897, 13, 1678, 14770, 29889, 29891, 1643, 29898, 29891, 29918, 1643, 29897, 13, 1678, 14770, 29889, 26172, 580, 29871, 396, 1510, 263, 15983, 373, 278, 6492, 13, 1678, 565, 10422, 338, 451, 6213, 29901, 13, 4706, 934, 2084, 353, 4770, 3198, 29918, 1445, 2084, 12035, 1649, 14941, 29918, 9507, 12035, 9507, 876, 13, 4706, 363, 22645, 29892, 1294, 297, 26985, 29898, 1062, 29879, 1125, 13, 9651, 14770, 29889, 7620, 1003, 29898, 29888, 29908, 29912, 1445, 2084, 1157, 1062, 17671, 289, 1884, 29918, 262, 6609, 2433, 29873, 523, 1495, 13, 1678, 565, 7481, 29889, 5205, 580, 2804, 376, 24085, 29908, 322, 26952, 29901, 13, 4706, 14770, 29889, 4294, 580, 13, 1678, 14770, 29889, 5358, 580, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 2 ]
tests/test_ioutils.py
BiocomputeLab/curveball
8
116860
<filename>tests/test_ioutils.py #!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of curveball. # https://github.com/yoavram/curveball # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT-license # Copyright (c) 2015, <NAME> <<EMAIL>> from unittest import TestCase, main from builtins import str import tempfile import os import shutil import zipfile import pkg_resources import curveball import pandas as pd RANDOM_SEED = int(os.environ.get('RANDOM_SEED', 0)) class CurveballCSVTestCase(TestCase): def setUp(self): self.filename = pkg_resources.resource_filename("data", "Tecan_210115.csv") self.plate = pd.read_csv(pkg_resources.resource_filename("plate_templates", "G-RG-R.csv")) def test_read_curveball_csv(self): df = curveball.ioutils.read_curveball_csv(self.filename) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (4992, 9)) self.assertEqual(df.columns.tolist() , ['Time', u'Temp. [\xb0C]', 'Cycle Nr.', 'Well', 'OD', 'Row', 'Col', 'Strain', 'Color']) def test_write_curveball_csv(self): df = curveball.models.randomize(random_seed=RANDOM_SEED) f, fn = tempfile.mkstemp() curveball.ioutils.write_curveball_csv(df, fn) df1 = pd.read_csv(fn) pd.util.testing.assert_frame_equal(df, df1, check_dtype=False) class TecanXLSXTestCase(TestCase): def setUp(self): self.filename = pkg_resources.resource_filename("data", "Tecan_210115.xlsx") self.plate = pd.read_csv(pkg_resources.resource_filename("plate_templates", "G-RG-R.csv")) def test_read_tecan_xlsx_OD(self): df = curveball.ioutils.read_tecan_xlsx(self.filename, 'OD') self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (8544, 9)) self.assertEqual(df.columns.tolist() , ['Time', u'Temp. [\xb0C]', 'Cycle Nr.', 'Well', 'OD', 'Row', 'Col', 'Strain', 'Color']) def test_read_tecan_xlsx_full(self): df = curveball.ioutils.read_tecan_xlsx(self.filename, ('OD', 'Green', 'Red')) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (8352, 15)) self.assertEqual(sorted(df.columns.tolist()) , sorted(['Time_OD', u'Temp. [\xb0C]_OD', 'Cycle Nr.', 'Well', 'OD', 'Row', 'Col', 'Strain', 'Color', 'Time_Green', u'Temp. [\xb0C]_Green', 'Green', 'Time', u'Temp. [\xb0C]', 'Red'])) def test_read_tecan_xlsx_12hrs(self): df = curveball.ioutils.read_tecan_xlsx(self.filename, 'OD', max_time=12) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (4992, 9)) self.assertEqual(df.columns.tolist() , ['Time', u'Temp. [\xb0C]', 'Cycle Nr.', 'Well', 'OD', 'Row', 'Col', 'Strain', 'Color']) def test_read_tecan_xlsx_with_plate(self): df = curveball.ioutils.read_tecan_xlsx(self.filename, 'OD', plate=self.plate) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (8544, 9)) self.assertEqual(df.columns.tolist() , ['Time', u'Temp. [\xb0C]', 'Cycle Nr.', 'Well', 'OD', 'Row', 'Col', 'Strain', 'Color']) class BioTekXLSXTestCase(TestCase): def setUp(self): self.filename = pkg_resources.resource_filename("data", "BioTekSynergy.xlsx") def test_read_biotek_xlsx(self): df = curveball.ioutils.read_biotek_xlsx(self.filename) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.columns.tolist(), ['Time', u'T\xb0 600', 'Well', 'OD', 'Row', 'Col', 'Strain', 'Color']) # class XMLTestCase(TestCase): # def setUp(self): # self.zip_filename = pkg_resources.resource_filename("data", "Tecan_210115.xlsx") # self.zip_filename = os.path.join("data", "20130211_dh.zip") # self.folder = tempfile.mkdtemp() # self.zipfile = zipfile.ZipFile(self.zip_filename) # self.zipfile.extractall(self.folder) # self.plate = pd.read_csv(pkg_resources.resource_filename("plate_templates", "checkerboard.csv")) # def tearDown(self): # shutil.rmtree(self.folder) # def test_read_tecan_xml_with_plate(self): # df = curveball.ioutils.read_tecan_xml(os.path.join(self.folder, "*.xml"), 'OD', plate=self.plate) # self.assertIsNotNone(df) # self.assertIsInstance(df, pd.DataFrame) # self.assertEqual(df.shape, (2016, 8)) # self.assertEqual(df.columns.tolist() , ['OD', 'Well', 'Row', 'Col', 'Time', 'Filename', 'Strain', 'Color']) class SunriseTestCase(TestCase): def setUp(self): self.filename = pkg_resources.resource_filename("data", "Sunrise_180515_0916.xlsx") self.plate = pd.read_csv(pkg_resources.resource_filename("plate_templates", "G-RG-R.csv")) def test_read_sunrise_xlsx(self): df = curveball.ioutils.read_sunrise_xlsx(self.filename) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (96, 8)) self.assertEqual(sorted(df.columns.tolist()) , sorted([u'Time', u'Well', u'OD', u'Row', u'Col', 'Strain', 'Color', 'Filename'])) # commented out 18JUN19 due to travis-ci failure: # ValueError: You are trying to merge on object and int64 columns. If you wish to proceed you should use pd.concat # def test_read_sunrise_xlsx_plate(self): # df = curveball.ioutils.read_sunrise_xlsx(self.filename, plate=self.plate) # self.assertIsNotNone(df) # self.assertIsInstance(df, pd.DataFrame) # self.assertEqual(df.shape, (96, 8)) # self.assertEqual(sorted(df.columns.tolist()) , sorted([u'Time', u'Well', u'OD', u'Row', u'Col', 'Strain', 'Color', 'Filename'])) class MatTestCase(TestCase): def setUp(self): self.filename = pkg_resources.resource_filename("data", "plate_9_OD.mat") self.plate = pd.read_csv(pkg_resources.resource_filename("plate_templates", "checkerboard.csv")) def test_read_tecan_mat(self): df = curveball.ioutils.read_tecan_mat(self.filename, plate=self.plate) self.assertIsNotNone(df) self.assertIsInstance(df, pd.DataFrame) self.assertEqual(df.shape, (2496, 8)) self.assertEqual(df.columns.tolist() , [u'Cycle Nr.', u'Time', u'Well', u'OD', u'Row', u'Col', 'Strain', 'Color']) if __name__ == '__main__': main()
[ 1, 529, 9507, 29958, 21150, 29914, 1688, 29918, 29875, 449, 2719, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 29937, 910, 934, 338, 760, 310, 11672, 2135, 29889, 13, 29937, 2045, 597, 3292, 29889, 510, 29914, 9029, 485, 2572, 29914, 2764, 345, 2135, 13, 13, 29937, 10413, 21144, 1090, 278, 341, 1806, 19405, 29901, 13, 29937, 1732, 597, 1636, 29889, 22156, 1167, 29889, 990, 29914, 506, 11259, 29914, 26349, 29899, 506, 1947, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29945, 29892, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 3166, 443, 27958, 1053, 4321, 8259, 29892, 1667, 13, 3166, 4240, 1144, 1053, 851, 13, 5215, 5694, 1445, 13, 5215, 2897, 13, 5215, 528, 4422, 13, 5215, 14319, 1445, 13, 5215, 282, 9415, 29918, 13237, 13, 5215, 11672, 2135, 13, 5215, 11701, 408, 10518, 13, 13, 13, 29934, 2190, 22141, 29918, 1660, 3352, 353, 938, 29898, 359, 29889, 21813, 29889, 657, 877, 29934, 2190, 22141, 29918, 1660, 3352, 742, 29871, 29900, 876, 13, 13, 13, 1990, 10837, 345, 2135, 29907, 7597, 3057, 8259, 29898, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9507, 353, 282, 9415, 29918, 13237, 29889, 10314, 29918, 9507, 703, 1272, 613, 376, 29911, 687, 273, 29918, 29906, 29896, 29900, 29896, 29896, 29945, 29889, 7638, 1159, 13, 4706, 1583, 29889, 2341, 353, 10518, 29889, 949, 29918, 7638, 29898, 15865, 29918, 13237, 29889, 10314, 29918, 9507, 703, 2341, 29918, 20943, 613, 376, 29954, 29899, 29934, 29954, 29899, 29934, 29889, 7638, 5783, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 2764, 345, 2135, 29918, 7638, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 2764, 345, 2135, 29918, 7638, 29898, 1311, 29889, 9507, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29946, 29929, 29929, 29906, 29892, 29871, 29929, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 580, 1919, 6024, 2481, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 29962, 742, 525, 29907, 13317, 11100, 29889, 742, 525, 11284, 742, 525, 13668, 742, 525, 4301, 742, 525, 1625, 742, 525, 855, 6038, 742, 525, 3306, 11287, 13, 13, 1678, 822, 1243, 29918, 3539, 29918, 2764, 345, 2135, 29918, 7638, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 9794, 29889, 8172, 675, 29898, 8172, 29918, 26776, 29922, 29934, 2190, 22141, 29918, 1660, 3352, 29897, 13, 4706, 285, 29892, 7876, 353, 5694, 1445, 29889, 11256, 303, 3451, 580, 13, 4706, 11672, 2135, 29889, 29875, 449, 2719, 29889, 3539, 29918, 2764, 345, 2135, 29918, 7638, 29898, 2176, 29892, 7876, 29897, 13, 4706, 4489, 29896, 353, 10518, 29889, 949, 29918, 7638, 29898, 9144, 29897, 13, 4706, 10518, 29889, 4422, 29889, 13424, 29889, 9294, 29918, 2557, 29918, 11745, 29898, 2176, 29892, 4489, 29896, 29892, 1423, 29918, 29881, 1853, 29922, 8824, 29897, 13, 13, 13, 1990, 323, 687, 273, 29990, 8547, 29990, 3057, 8259, 29898, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9507, 353, 282, 9415, 29918, 13237, 29889, 10314, 29918, 9507, 703, 1272, 613, 376, 29911, 687, 273, 29918, 29906, 29896, 29900, 29896, 29896, 29945, 29889, 20267, 29916, 1159, 13, 4706, 1583, 29889, 2341, 353, 10518, 29889, 949, 29918, 7638, 29898, 15865, 29918, 13237, 29889, 10314, 29918, 9507, 703, 2341, 29918, 20943, 613, 376, 29954, 29899, 29934, 29954, 29899, 29934, 29889, 7638, 5783, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 371, 3068, 29918, 20267, 29916, 29918, 13668, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 371, 3068, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29892, 525, 13668, 1495, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29947, 29945, 29946, 29946, 29892, 29871, 29929, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 580, 1919, 6024, 2481, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 29962, 742, 525, 29907, 13317, 11100, 29889, 742, 525, 11284, 742, 525, 13668, 742, 525, 4301, 742, 525, 1625, 742, 525, 855, 6038, 742, 525, 3306, 11287, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 371, 3068, 29918, 20267, 29916, 29918, 8159, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 371, 3068, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29892, 6702, 13668, 742, 525, 24599, 742, 525, 9039, 8785, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29947, 29941, 29945, 29906, 29892, 29871, 29896, 29945, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 24582, 29898, 2176, 29889, 13099, 29889, 25027, 391, 3101, 1919, 12705, 18959, 2481, 29918, 13668, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 21540, 13668, 742, 525, 29907, 13317, 11100, 29889, 742, 525, 11284, 742, 525, 13668, 742, 525, 4301, 742, 525, 1625, 742, 525, 855, 6038, 742, 525, 3306, 742, 525, 2481, 29918, 24599, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 21540, 24599, 742, 525, 24599, 742, 525, 2481, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 29962, 742, 525, 9039, 25901, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 371, 3068, 29918, 20267, 29916, 29918, 29896, 29906, 1092, 29879, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 371, 3068, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29892, 525, 13668, 742, 4236, 29918, 2230, 29922, 29896, 29906, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29946, 29929, 29929, 29906, 29892, 29871, 29929, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 580, 1919, 6024, 2481, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 29962, 742, 525, 29907, 13317, 11100, 29889, 742, 525, 11284, 742, 525, 13668, 742, 525, 4301, 742, 525, 1625, 742, 525, 855, 6038, 742, 525, 3306, 11287, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 371, 3068, 29918, 20267, 29916, 29918, 2541, 29918, 2341, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 371, 3068, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29892, 525, 13668, 742, 15284, 29922, 1311, 29889, 2341, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29947, 29945, 29946, 29946, 29892, 29871, 29929, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 580, 1919, 6024, 2481, 742, 318, 29915, 15637, 29889, 12452, 29916, 29890, 29900, 29907, 29962, 742, 525, 29907, 13317, 11100, 29889, 742, 525, 11284, 742, 525, 13668, 742, 525, 4301, 742, 525, 1625, 742, 525, 855, 6038, 742, 525, 3306, 11287, 13, 13, 13, 1990, 21184, 29911, 1416, 29990, 8547, 29990, 3057, 8259, 29898, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9507, 353, 282, 9415, 29918, 13237, 29889, 10314, 29918, 9507, 703, 1272, 613, 376, 29933, 601, 29911, 1416, 29216, 261, 1927, 29889, 20267, 29916, 1159, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 5365, 866, 29895, 29918, 20267, 29916, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 5365, 866, 29895, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 3285, 6024, 2481, 742, 318, 29915, 29911, 29905, 29916, 29890, 29900, 29871, 29953, 29900, 29900, 742, 525, 11284, 742, 525, 13668, 742, 525, 4301, 742, 525, 1625, 742, 525, 855, 6038, 742, 525, 3306, 11287, 13, 13, 13, 29937, 770, 6560, 3057, 8259, 29898, 3057, 8259, 1125, 13, 29937, 268, 822, 731, 3373, 29898, 1311, 1125, 308, 13, 29937, 308, 1583, 29889, 7554, 29918, 9507, 353, 282, 9415, 29918, 13237, 29889, 10314, 29918, 9507, 703, 1272, 613, 376, 29911, 687, 273, 29918, 29906, 29896, 29900, 29896, 29896, 29945, 29889, 20267, 29916, 1159, 13, 29937, 308, 1583, 29889, 7554, 29918, 9507, 353, 2897, 29889, 2084, 29889, 7122, 703, 1272, 613, 376, 29906, 29900, 29896, 29941, 29900, 29906, 29896, 29896, 29918, 12744, 29889, 7554, 1159, 13, 29937, 308, 1583, 29889, 12083, 353, 5694, 1445, 29889, 11256, 29881, 7382, 580, 13, 29937, 308, 1583, 29889, 7554, 1445, 353, 14319, 1445, 29889, 26264, 2283, 29898, 1311, 29889, 7554, 29918, 9507, 29897, 13, 29937, 308, 1583, 29889, 7554, 1445, 29889, 21111, 497, 29898, 1311, 29889, 12083, 29897, 13, 29937, 308, 1583, 29889, 2341, 353, 10518, 29889, 949, 29918, 7638, 29898, 15865, 29918, 13237, 29889, 10314, 29918, 9507, 703, 2341, 29918, 20943, 613, 376, 3198, 261, 3377, 29889, 7638, 5783, 13, 13, 13, 29937, 268, 822, 734, 279, 6767, 29898, 1311, 1125, 13, 29937, 308, 528, 4422, 29889, 1758, 8336, 29898, 1311, 29889, 12083, 29897, 13, 13, 13, 29937, 268, 822, 1243, 29918, 949, 29918, 371, 3068, 29918, 3134, 29918, 2541, 29918, 2341, 29898, 1311, 1125, 13, 29937, 308, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 371, 3068, 29918, 3134, 29898, 359, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 12083, 29892, 376, 10521, 3134, 4968, 525, 13668, 742, 15284, 29922, 1311, 29889, 2341, 29897, 13, 29937, 308, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 29937, 308, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 29937, 308, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29906, 29900, 29896, 29953, 29892, 29871, 29947, 876, 13, 29937, 308, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 580, 1919, 6024, 13668, 742, 525, 11284, 742, 525, 4301, 742, 525, 1625, 742, 525, 2481, 742, 525, 3434, 3871, 742, 525, 855, 6038, 742, 525, 3306, 11287, 268, 13, 13, 13, 1990, 8991, 29878, 895, 3057, 8259, 29898, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9507, 353, 282, 9415, 29918, 13237, 29889, 10314, 29918, 9507, 703, 1272, 613, 376, 29903, 348, 29878, 895, 29918, 29896, 29947, 29900, 29945, 29896, 29945, 29918, 29900, 29929, 29896, 29953, 29889, 20267, 29916, 1159, 13, 4706, 1583, 29889, 2341, 353, 10518, 29889, 949, 29918, 7638, 29898, 15865, 29918, 13237, 29889, 10314, 29918, 9507, 703, 2341, 29918, 20943, 613, 376, 29954, 29899, 29934, 29954, 29899, 29934, 29889, 7638, 5783, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 11445, 29878, 895, 29918, 20267, 29916, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 11445, 29878, 895, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29929, 29953, 29892, 29871, 29947, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 24582, 29898, 2176, 29889, 13099, 29889, 25027, 391, 3101, 1919, 12705, 4197, 29884, 29915, 2481, 742, 318, 29915, 11284, 742, 318, 29915, 13668, 742, 318, 29915, 4301, 742, 318, 29915, 1625, 742, 525, 855, 6038, 742, 525, 3306, 742, 525, 3434, 3871, 25901, 13, 13, 1678, 396, 19952, 714, 29871, 29896, 29947, 29967, 3904, 29896, 29929, 2861, 304, 1020, 1730, 29899, 455, 10672, 29901, 13, 1678, 396, 7865, 2392, 29901, 887, 526, 1811, 304, 10366, 373, 1203, 322, 938, 29953, 29946, 4341, 29889, 960, 366, 6398, 304, 8469, 366, 881, 671, 10518, 29889, 17685, 13, 1678, 396, 822, 1243, 29918, 949, 29918, 11445, 29878, 895, 29918, 20267, 29916, 29918, 2341, 29898, 1311, 1125, 13, 1678, 396, 268, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 11445, 29878, 895, 29918, 20267, 29916, 29898, 1311, 29889, 9507, 29892, 15284, 29922, 1311, 29889, 2341, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29929, 29953, 29892, 29871, 29947, 876, 13, 1678, 396, 268, 1583, 29889, 9294, 9843, 29898, 24582, 29898, 2176, 29889, 13099, 29889, 25027, 391, 3101, 1919, 12705, 4197, 29884, 29915, 2481, 742, 318, 29915, 11284, 742, 318, 29915, 13668, 742, 318, 29915, 4301, 742, 318, 29915, 1625, 742, 525, 855, 6038, 742, 525, 3306, 742, 525, 3434, 3871, 25901, 13, 13, 13, 1990, 5345, 3057, 8259, 29898, 3057, 8259, 1125, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9507, 353, 282, 9415, 29918, 13237, 29889, 10314, 29918, 9507, 703, 1272, 613, 376, 2341, 29918, 29929, 29918, 13668, 29889, 2922, 1159, 13, 4706, 1583, 29889, 2341, 353, 10518, 29889, 949, 29918, 7638, 29898, 15865, 29918, 13237, 29889, 10314, 29918, 9507, 703, 2341, 29918, 20943, 613, 376, 3198, 261, 3377, 29889, 7638, 5783, 13, 13, 1678, 822, 1243, 29918, 949, 29918, 371, 3068, 29918, 2922, 29898, 1311, 1125, 13, 4706, 4489, 353, 11672, 2135, 29889, 29875, 449, 2719, 29889, 949, 29918, 371, 3068, 29918, 2922, 29898, 1311, 29889, 9507, 29892, 15284, 29922, 1311, 29889, 2341, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 2176, 29897, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 2176, 29892, 10518, 29889, 17271, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 12181, 29892, 313, 29906, 29946, 29929, 29953, 29892, 29871, 29947, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2176, 29889, 13099, 29889, 25027, 391, 580, 1919, 518, 29884, 29915, 29907, 13317, 11100, 29889, 742, 318, 29915, 2481, 742, 318, 29915, 11284, 742, 318, 29915, 13668, 742, 318, 29915, 4301, 742, 318, 29915, 1625, 742, 525, 855, 6038, 742, 525, 3306, 11287, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
model/QuerySpecificBBCluster.py
nihilistsumo/Blackbox_clustering
1
45255
from model.BBCluster import CustomSentenceTransformer, OptimCluster, euclid_dist from experiments.treccar_run import prepare_cluster_data_train_only, prepare_cluster_data2, get_trec_dat, \ get_paratext_dict from util.Data import InputTRECCARExample import numpy as np import torch import torch.nn as nn from torch import Tensor from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter from typing import Dict, Iterable, List import transformers from sentence_transformers import SentenceTransformer from sentence_transformers import models from sentence_transformers.evaluation import SentenceEvaluator from sentence_transformers.util import batch_to_device from sklearn.cluster import AgglomerativeClustering from sklearn.metrics import adjusted_rand_score, normalized_mutual_info_score, adjusted_mutual_info_score from tqdm.autonotebook import trange from clearml import Task import pickle import argparse import random random.seed(42) torch.manual_seed(42) np.random.seed(42) def prepare_cluster_data_train(pages_file, art_qrels, top_qrels, paratext): page_paras, rev_para_top, _ = get_trec_dat(art_qrels, top_qrels, None) ptext_dict = get_paratext_dict(paratext) top_cluster_data = [] pages = [] with open(pages_file, 'r') as f: for l in f: pages.append(l.rstrip('\n')) for i in trange(len(pages)): page = pages[i] paras = page_paras[page] paratexts = [ptext_dict[p] for p in paras] top_sections = list(set([rev_para_top[p] for p in paras])) if len(top_sections) < 2: continue top_labels = [top_sections.index(rev_para_top[p]) for p in paras] query_text = ' '.join(page.split('enwiki:')[1].split('%20')) top_cluster_data.append(InputTRECCARExample(qid=page, q_context=query_text, pids=paras, texts=paratexts, label=np.array(top_labels))) print('Total data instances: %5d' % len(top_cluster_data)) return top_cluster_data def prepare_cluster_data_for_eval(art_qrels, top_qrels, paratext, do_filter, val_samples): page_paras, rev_para_top, _ = get_trec_dat(art_qrels, top_qrels, None) len_paras = np.array([len(page_paras[page]) for page in page_paras.keys()]) print('mean paras: %.2f, std: %.2f, max paras: %.2f' % (np.mean(len_paras), np.std(len_paras), np.max(len_paras))) ptext_dict = get_paratext_dict(paratext) top_cluster_data = [] pages = list(page_paras.keys()) skipped_pages = 0 max_num_doc = max([len(page_paras[p]) for p in page_paras.keys()]) for i in trange(len(pages)): page = pages[i] paras = page_paras[page] paratexts = [ptext_dict[p] for p in paras] top_sections = list(set([rev_para_top[p] for p in paras])) top_labels = [top_sections.index(rev_para_top[p]) for p in paras] query_text = ' '.join(page.split('enwiki:')[1].split('%20')) n = len(paras) if do_filter: if n < 20 or n > 200: skipped_pages += 1 continue paras = paras[:max_num_doc] if n >= max_num_doc else paras + ['dummy'] * (max_num_doc - n) paratexts = paratexts[:max_num_doc] if n >= max_num_doc else paratexts + [''] * (max_num_doc - n) top_labels = top_labels[:max_num_doc] if n >= max_num_doc else top_labels + [-1] * (max_num_doc - n) if do_filter: if len(set(top_labels)) < 2 or n / len(set(top_labels)) < 2.5: ## the page should have at least 2 top level sections and n/k should be at least 2.5 skipped_pages += 1 continue top_cluster_data.append(InputTRECCARExample(qid=page, q_context=query_text, pids=paras, texts=paratexts, label=np.array(top_labels))) if val_samples > 0: top_cluster_data = top_cluster_data[:val_samples] print('Total data instances: %5d' % len(top_cluster_data)) return top_cluster_data class QuerySpecificClusterModel(nn.Module): def __init__(self, path:str=None, query_transformer:CustomSentenceTransformer=None, psg_transformer:CustomSentenceTransformer=None, device:torch.device=None): super(QuerySpecificClusterModel, self).__init__() if path is not None: self.query_model = CustomSentenceTransformer(path+'/query_model') self.psg_model = CustomSentenceTransformer(path+'/psg_model') else: self.query_model = query_transformer self.psg_model = psg_transformer self.optim = OptimCluster self.device = device def save(self, path): self.query_model.save(path+'/query_model') self.psg_model.save(path+'/psg_model') def _get_scheduler(self, optimizer, scheduler: str, warmup_steps: int, t_total: int): """ Taken from SentenceTransformers Returns the correct learning rate scheduler """ scheduler = scheduler.lower() if scheduler == 'constantlr': return transformers.get_constant_schedule(optimizer) elif scheduler == 'warmupconstant': return transformers.get_constant_schedule_with_warmup(optimizer, num_warmup_steps=warmup_steps) elif scheduler == 'warmuplinear': return transformers.get_linear_schedule_with_warmup(optimizer, num_warmup_steps=warmup_steps, num_training_steps=t_total) elif scheduler == 'warmupcosine': return transformers.get_cosine_schedule_with_warmup(optimizer, num_warmup_steps=warmup_steps, num_training_steps=t_total) elif scheduler == 'warmupcosinewithhardrestarts': return transformers.get_cosine_with_hard_restarts_schedule_with_warmup(optimizer, num_warmup_steps=warmup_steps, num_training_steps=t_total) else: raise ValueError("Unknown scheduler {}".format(scheduler)) def query_batch_collate_fn(self, batch): num_texts = len(batch[0].texts) queries = [] texts = [[] for _ in range(num_texts)] labels = [] for example in batch: queries.append(example.q_context) for idx, text in enumerate(example.texts): texts[idx].append(text) labels.append(example.label) labels = torch.tensor(labels).to(self.device) q_tokenized = self.query_model.tokenize(queries) batch_to_device(q_tokenized, self.device) psg_features = [] for idx in range(num_texts): p_tokenized = self.psg_model.tokenize(texts[idx]) batch_to_device(p_tokenized, self.device) psg_features.append(p_tokenized) return q_tokenized, psg_features, labels def forward(self, query_feature: Dict[str, Tensor], passage_features: Iterable[Dict[str, Tensor]], labels: Tensor): n = labels.shape[1] query_embedding = self.query_model(query_feature)['sentence_embedding'] # its the scaling vector, so each element in vector should be [0, 1] psg_embeddings = torch.stack([self.psg_model(passages)['sentence_embedding'] for passages in passage_features], dim=1) scaled_psg_embeddings = torch.tile(query_embedding.unsqueeze(1), (1, n, 1)) * psg_embeddings return scaled_psg_embeddings class BBClusterLossModel(nn.Module): def __init__(self, model: QuerySpecificClusterModel, device, lambda_val: float, reg_const: float): super(BBClusterLossModel, self).__init__() self.model = model self.lambda_val = lambda_val self.reg = reg_const self.optim = OptimCluster() self.device = device def true_adj_mat(self, label): n = label.numel() adj_mat = torch.zeros((n, n)) for i in range(n): for j in range(n): if i == j or label[i] == label[j]: adj_mat[i][j] = 1.0 return adj_mat def forward(self, query_feature: Dict[str, Tensor], passage_features: Iterable[Dict[str, Tensor]], labels: Tensor): batch_size = labels.shape[0] n = labels.shape[1] ks = [torch.unique(labels[i]).numel() for i in range(batch_size)] true_adjacency_mats = torch.stack([self.true_adj_mat(labels[i]) for i in range(batch_size)]).to(self.device) query_embedding = self.model.query_model(query_feature)['sentence_embedding'] # its the scaling vector, so each element in vector should be [0, 1] psg_embeddings = torch.stack([self.model.psg_model(passages)['sentence_embedding'] for passages in passage_features], dim=1) scaled_psg_embeddings = torch.tile(query_embedding.unsqueeze(1), (1, n, 1)) * psg_embeddings embeddings_dist_mats = torch.stack([euclid_dist(scaled_psg_embeddings[i]) for i in range(batch_size)]) mean_similar_dist = (embeddings_dist_mats * true_adjacency_mats).sum() / true_adjacency_mats.sum() mean_dissimilar_dist = (embeddings_dist_mats * (1.0 - true_adjacency_mats)).sum() / ( 1 - true_adjacency_mats).sum() adjacency_mats = self.optim.apply(embeddings_dist_mats, self.lambda_val, ks).to(self.device) err_mats = adjacency_mats * (1.0 - true_adjacency_mats) + (1.0 - adjacency_mats) * true_adjacency_mats err_mean = err_mats.mean(dim=0).sum() loss = err_mean + self.reg * (mean_similar_dist - mean_dissimilar_dist) return loss class BBClusterRNNLossModel(nn.Module): def __init__(self, model: QuerySpecificClusterModel, device, lambda_val: float, reg_const: float): super(BBClusterRNNLossModel, self).__init__() self.model = model self.lambda_val = lambda_val self.reg = reg_const self.optim = OptimCluster() self.device = device def true_adj_mat(self, label): n = label.numel() adj_mat = torch.zeros((n, n)) for i in range(n): for j in range(n): if i == j or label[i] == label[j]: adj_mat[i][j] = 1.0 return adj_mat def forward(self, query_feature: Dict[str, Tensor], passage_features: Iterable[Dict[str, Tensor]], labels: Tensor): batch_size = labels.shape[0] n = labels.shape[1] ks = [torch.unique(labels[i]).numel() for i in range(batch_size)] true_adjacency_mats = torch.stack([self.true_adj_mat(labels[i]) for i in range(batch_size)]).to(self.device) psg_embeddings = torch.stack([self.model.psg_model(passages)['sentence_embedding'] for passages in passage_features], dim=1) scaling_vector = torch.tensor([0]) # obtain the scaling vector from psg_embeddngs using RNN scaled_psg_embeddings = torch.tile(scaling_vector.unsqueeze(1), (1, n, 1)) * psg_embeddings embeddings_dist_mats = torch.stack([euclid_dist(scaled_psg_embeddings[i]) for i in range(batch_size)]) mean_similar_dist = (embeddings_dist_mats * true_adjacency_mats).sum() / true_adjacency_mats.sum() mean_dissimilar_dist = (embeddings_dist_mats * (1.0 - true_adjacency_mats)).sum() / ( 1 - true_adjacency_mats).sum() adjacency_mats = self.optim.apply(embeddings_dist_mats, self.lambda_val, ks).to(self.device) err_mats = adjacency_mats * (1.0 - true_adjacency_mats) + (1.0 - adjacency_mats) * true_adjacency_mats err_mean = err_mats.mean(dim=0).sum() loss = err_mean + self.reg * (mean_similar_dist - mean_dissimilar_dist) return loss class QueryClusterEvaluator(SentenceEvaluator): def __init__(self, queries: List[str], passages: List[List[str]], labels: List[Tensor], use_model_device=True): self.queries = queries self.passages = passages self.labels = labels self.use_model_device = use_model_device @classmethod def from_input_examples(cls, examples: List[InputTRECCARExample], use_model_device, **kwargs): queries = [] passages = [] labels = [] for example in examples: queries.append(example.q_context) passages.append(example.texts) labels.append(torch.from_numpy(example.label)) return cls(queries=queries, passages=passages, labels=labels, use_model_device=use_model_device, **kwargs) def euclid_dist(self, x): dist_mat = torch.norm(x[:, None] - x, dim=2, p=2) return dist_mat def __call__(self, model, output_path: str = None, epoch: int = -1, steps: int = -1) -> float: rand_scores, nmi_scores, ami_scores = [], [], [] model_device = model.device if not self.use_model_device: model.cpu() for i in trange(len(self.queries), desc="Evaluating on val", smoothing=0.05): query = self.queries[i] passages_to_cluster = [self.passages[i][p] for p in range(len(self.passages[i])) if len(self.passages[i][p])>0] true_label = self.labels[i][:len(passages_to_cluster)] query_feature = model.query_model.tokenize(query) doc_features = model.psg_model.tokenize(passages_to_cluster) if self.use_model_device: batch_to_device(doc_features, model_device) query_embedding = model.query_model(query_feature)['sentence_embedding'] psg_embeddings = model.psg_model(doc_features)['sentence_embedding'] scaled_psg_embeddings = query_embedding * psg_embeddings embeddings_dist_mat = self.euclid_dist(scaled_psg_embeddings) cl = AgglomerativeClustering(n_clusters=torch.unique(true_label).numel(), affinity='precomputed', linkage='average') cluster_label = cl.fit_predict(embeddings_dist_mat.detach().cpu().numpy()) rand_scores.append(adjusted_rand_score(true_label.numpy(), cluster_label)) nmi_scores.append(normalized_mutual_info_score(true_label.numpy(), cluster_label)) ami_scores.append(adjusted_mutual_info_score(true_label.numpy(), cluster_label)) mean_rand = np.mean(np.array(rand_scores)) mean_nmi = np.mean(np.array(nmi_scores)) mean_ami = np.mean(np.array(ami_scores)) print("\nRAND: %.5f, NMI: %.5f, AMI: %.5f\n" % (mean_rand, mean_nmi, mean_ami), flush=True) if not self.use_model_device: model.to(model_device) return mean_rand def train(train_cluster_data, val_cluster_data, test_cluster_data, output_path, eval_steps, num_epochs, warmup_frac, lambda_val, reg, use_model_device, max_train_size=-1, train_psg_model=False, model_name='distilbert-base-uncased', out_features=256, steps_per_epoch=None, weight_decay=0.01, optimizer_class=transformers.AdamW, scheduler='WarmupLinear', optimizer_params={'lr':2e-5}, show_progress_bar=True, max_grad_norm=1, save_best_model=True): tensorboard_writer = SummaryWriter('./tensorboard_logs') task = Task.init(project_name='Query Specific BB Clustering', task_name='query_bbc_fixed_lambda') config_dict = {'lambda_val': lambda_val, 'reg': reg} config_dict = task.connect(config_dict) if torch.cuda.is_available(): device = torch.device('cuda') print('CUDA is available and using device: '+str(device)) else: device = torch.device('cpu') print('CUDA not available, using device: '+str(device)) ### Configure sentence transformers for training and train on the provided dataset # Use Huggingface/transformers model (like BERT, RoBERTa, XLNet, XLM-R) for mapping tokens to embeddings query_word_embedding_model = models.Transformer(model_name) # Apply mean pooling to get one fixed sized sentence vector query_pooling_model = models.Pooling(query_word_embedding_model.get_word_embedding_dimension(), pooling_mode_mean_tokens=True, pooling_mode_cls_token=False, pooling_mode_max_tokens=False) query_dense_model = models.Dense(in_features=query_pooling_model.get_sentence_embedding_dimension(), out_features=out_features, activation_function=nn.Sigmoid()) psg_word_embedding_model = models.Transformer(model_name) # Apply mean pooling to get one fixed sized sentence vector psg_pooling_model = models.Pooling(psg_word_embedding_model.get_word_embedding_dimension(), pooling_mode_mean_tokens=True, pooling_mode_cls_token=False, pooling_mode_max_tokens=False) psg_dense_model = models.Dense(in_features=psg_pooling_model.get_sentence_embedding_dimension(), out_features=out_features, activation_function=nn.Tanh()) query_model = CustomSentenceTransformer(modules=[query_word_embedding_model, query_pooling_model, query_dense_model]) psg_model = SentenceTransformer(modules=[psg_word_embedding_model, psg_pooling_model, psg_dense_model]) model = QuerySpecificClusterModel(query_transformer=query_model, psg_transformer=psg_model, device=device) train_dataloader = DataLoader(train_cluster_data, shuffle=True, batch_size=1) evaluator = QueryClusterEvaluator.from_input_examples(val_cluster_data, use_model_device) test_evaluator = QueryClusterEvaluator.from_input_examples(test_cluster_data, use_model_device) warmup_steps = int(len(train_dataloader) * num_epochs * warmup_frac) # 10% of train data print("Untrained performance") model.to(device) evaluator(model) train_dataloader.collate_fn = model.query_batch_collate_fn # Train the model best_score = -9999999 if steps_per_epoch is None or steps_per_epoch == 0: steps_per_epoch = len(train_dataloader) num_train_steps = int(steps_per_epoch * num_epochs) param_optimizer = list(model.named_parameters()) no_decay = ['bias', 'LayerNorm.bias', 'LayerNorm.weight'] optimizer_grouped_parameters = [ {'params': [p for n, p in param_optimizer if not any(nd in n for nd in no_decay)], 'weight_decay': weight_decay}, {'params': [p for n, p in param_optimizer if any(nd in n for nd in no_decay)], 'weight_decay': 0.0} ] data_iter = iter(train_dataloader) optimizer = optimizer_class(optimizer_grouped_parameters, **optimizer_params) scheduler_obj = model._get_scheduler(optimizer, scheduler=scheduler, warmup_steps=warmup_steps, t_total=num_train_steps) config = {'epochs': num_epochs, 'steps_per_epoch': steps_per_epoch} global_step = 0 loss_model = BBClusterLossModel(model, device, lambda_val, reg) for epoch in trange(config.get('epochs'), desc="Epoch", disable=not show_progress_bar): training_steps = 0 running_loss_0 = 0.0 model.zero_grad() model.train() if not train_psg_model: for m in model.psg_model.modules(): m.training = False for _ in trange(config.get('steps_per_epoch'), desc="Iteration", smoothing=0.05, disable=not show_progress_bar): try: data = next(data_iter) except StopIteration: data_iter = iter(train_dataloader) data = next(data_iter) query_feature, psg_features, labels = data if max_train_size > 0 and labels.shape[1] > max_train_size: print('skipping instance with '+str(labels.shape[1])+' passages') continue loss_val = loss_model(query_feature, psg_features, labels) running_loss_0 += loss_val.item() loss_val.backward() torch.nn.utils.clip_grad_norm_(model.parameters(), max_grad_norm) optimizer.step() optimizer.zero_grad() scheduler_obj.step() training_steps += 1 global_step += 1 if eval_steps > 0 and training_steps % eval_steps == 0: tensorboard_writer.add_scalar('training_loss', running_loss_0 / eval_steps, global_step) # logger.report_scalar('Loss', 'training_loss', iteration=global_step, v # alue=running_loss_0/evaluation_steps) running_loss_0 = 0.0 # self._eval_during_training(evaluator, output_path, save_best_model, epoch, training_steps, callback) if evaluator is not None: score = evaluator(model, output_path=output_path, epoch=epoch, steps=training_steps) tensorboard_writer.add_scalar('val_ARI', score, global_step) # logger.report_scalar('Training progress', 'val_ARI', iteration=global_step, value=score) if score > best_score: best_score = score if save_best_model: print('Saving model at: ' + output_path) model.save(output_path) model.zero_grad() model.train() if not train_psg_model: for m in model.psg_model.modules(): m.training = False if evaluator is not None: score = evaluator(model, output_path=output_path, epoch=epoch, steps=training_steps) tensorboard_writer.add_scalar('val_ARI', score, global_step) # logger.report_scalar('Training progress', 'val_ARI', iteration=global_step, value=score) if score > best_score: best_score = score if save_best_model: model.save(output_path) if test_evaluator is not None: best_model = QuerySpecificClusterModel(output_path) if torch.cuda.is_available(): model.to(torch.device('cpu')) best_model.to(device) test_ari = test_evaluator(best_model) best_model.to(torch.device('cpu')) model.to(device) else: test_ari = test_evaluator(best_model) tensorboard_writer.add_scalar('test_ARI', test_ari, global_step) # logger.report_scalar('Training progress', 'test_ARI', iteration=global_step, value=test_ari) if evaluator is None and output_path is not None: # No evaluator, but output path: save final model version model.save(output_path) def save_sqst_dataset(train_pages_file, art_qrels, top_qrels, paratext, val_samples, outdir): page_paras, rev_para_top, _ = get_trec_dat(art_qrels, top_qrels, None) ptext_dict = get_paratext_dict(paratext) train_cluster_data = [] test_cluster_data = [] pages = [] with open(train_pages_file, 'r') as f: for l in f: pages.append(l.rstrip('\n')) for i in trange(len(pages)): page = pages[i] paras = page_paras[page] page_sec_para_dict = {} for p in paras: sec = rev_para_top[p] if sec not in page_sec_para_dict.keys(): page_sec_para_dict[sec] = [p] else: page_sec_para_dict[sec].append(p) sections = list(set([rev_para_top[p] for p in paras])) train_paras = [] test_paras = [] for s in page_sec_para_dict.keys(): test_paras += page_sec_para_dict[s][:len(page_sec_para_dict[s])//2] train_paras += page_sec_para_dict[s][len(page_sec_para_dict[s])//2:] test_labels = [sections.index(rev_para_top[p]) for p in test_paras] train_labels = [sections.index(rev_para_top[p]) for p in train_paras] test_paratexts = [ptext_dict[p] for p in test_paras] train_paratexts = [ptext_dict[p] for p in train_paras] query_text = ' '.join(page.split('enwiki:')[1].split('%20')) test_cluster_data.append(InputTRECCARExample(qid=page, q_context=query_text, pids=test_paras, texts=test_paratexts, label=np.array(test_labels))) train_cluster_data.append(InputTRECCARExample(qid=page, q_context=query_text, pids=train_paras, texts=train_paratexts, label=np.array(train_labels))) random.shuffle(test_cluster_data) val_cluster_data = test_cluster_data[:val_samples] test_cluster_data = test_cluster_data[val_samples:] with open(outdir + '/sqst_treccar_train.pkl', 'wb') as f: pickle.dump(train_cluster_data, f) with open(outdir + '/sqst_treccar_val.pkl', 'wb') as f: pickle.dump(val_cluster_data, f) with open(outdir + '/sqst_treccar_test.pkl', 'wb') as f: pickle.dump(test_cluster_data, f) print('No. of data instances - Train: %5d, Val: %5d, Test: %5d' % (len(train_cluster_data), len(val_cluster_data), len(test_cluster_data))) def save_squt_dataset(train_pages_file, art_qrels, top_qrels, paratext, val_samples, outdir): page_paras, rev_para_top, _ = get_trec_dat(art_qrels, top_qrels, None) ptext_dict = get_paratext_dict(paratext) train_cluster_data = [] test_cluster_data = [] pages = [] with open(train_pages_file, 'r') as f: for l in f: pages.append(l.rstrip('\n')) for i in trange(len(pages)): page = pages[i] paras = page_paras[page] page_sec_para_dict = {} for p in paras: sec = rev_para_top[p] if sec not in page_sec_para_dict.keys(): page_sec_para_dict[sec] = [p] else: page_sec_para_dict[sec].append(p) sections = list(set([rev_para_top[p] for p in paras])) random.shuffle(sections) test_sections, train_sections = sections[:len(sections)//2], sections[len(sections)//2:] train_paras = [] test_paras = [] for s in test_sections: test_paras += page_sec_para_dict[s] for s in train_sections: train_paras += page_sec_para_dict[s] test_labels = [sections.index(rev_para_top[p]) for p in test_paras] train_labels = [sections.index(rev_para_top[p]) for p in train_paras] test_paratexts = [ptext_dict[p] for p in test_paras] train_paratexts = [ptext_dict[p] for p in train_paras] query_text = ' '.join(page.split('enwiki:')[1].split('%20')) test_cluster_data.append(InputTRECCARExample(qid=page, q_context=query_text, pids=test_paras, texts=test_paratexts, label=np.array(test_labels))) train_cluster_data.append(InputTRECCARExample(qid=page, q_context=query_text, pids=train_paras, texts=train_paratexts, label=np.array(train_labels))) random.shuffle(test_cluster_data) val_cluster_data = test_cluster_data[:val_samples] test_cluster_data = test_cluster_data[val_samples:] with open(outdir + '/squt_treccar_train.pkl', 'wb') as f: pickle.dump(train_cluster_data, f) with open(outdir + '/squt_treccar_val.pkl', 'wb') as f: pickle.dump(val_cluster_data, f) with open(outdir + '/squt_treccar_test.pkl', 'wb') as f: pickle.dump(test_cluster_data, f) print( 'No. of data instances - Train: %5d, Val: %5d, Test: %5d' % (len(train_cluster_data), len(val_cluster_data), len(test_cluster_data))) def save_sbert_embeds(sbert_model_name, pages_path, art_qrels, paratext_file, outpath): sbert = SentenceTransformer(sbert_model_name) page_paras, _, _ = get_trec_dat(art_qrels, None, None) paratext_dict = get_paratext_dict(paratext_file) paras = [] paratexts = [] with open(pages_path, 'r') as f: for l in f: page = l.rstrip('\n') paras += page_paras[page] paratexts += [paratext_dict[p] for p in page_paras[page]] print(str(len(paratexts))+' paras to be encoded') para_embeddings = sbert.encode(paratexts, show_progress_bar=True) para_data = {'paraids': paras, 'paravecs': para_embeddings} with open(outpath, 'wb') as f: pickle.dump(para_data, f) def main(): parser = argparse.ArgumentParser(description='Run treccar experiments') parser.add_argument('-in', '--input_dir', default='/home/sk1105/sumanta/trec_dataset/train') parser.add_argument('-out', '--output_model_path', default='/home/sk1105/sumanta/bb_cluster_models/temp_model') parser.add_argument('-mn', '--model_name', default='distilbert-base-uncased') parser.add_argument('-ls', '--loss', default='bb') parser.add_argument('-lm', '--lambda_val', type=float, default=200.0) parser.add_argument('-b', '--beta', type=float, default=10.0) parser.add_argument('-rg', '--reg_const', type=float, default=2.5) parser.add_argument('-ep', '--num_epoch', type=int, default=3) parser.add_argument('-ws', '--warmup', type=float, default=0.1) parser.add_argument('-es', '--eval_steps', type=int, default=100) parser.add_argument('-md', '--max_sample_size', type=int, default=-1) parser.add_argument('-ext', '--exp_type', default='sqst') parser.add_argument('--gpu_eval', default=False, action='store_true') parser.add_argument('--train_psg_model', default=False, action='store_true') args = parser.parse_args() input_dir = args.input_dir output_path = args.output_model_path model_name = args.model_name loss_name = args.loss lambda_val = args.lambda_val beta = args.beta reg = args.reg_const epochs = args.num_epoch warmup_fraction = args.warmup eval_steps = args.eval_steps max_sample_size = args.max_sample_size exp_type = args.exp_type gpu_eval = args.gpu_eval train_psg_model = args.train_psg_model if exp_type == 'sqst': with open(input_dir + '/sqst/sqst_treccar_train.pkl', 'rb') as f: train_cluster_data = pickle.load(f) with open(input_dir + '/sqst/sqst_treccar_val.pkl', 'rb') as f: val_cluster_data = pickle.load(f) with open(input_dir + '/sqst/sqst_treccar_test.pkl', 'rb') as f: test_cluster_data = pickle.load(f) elif exp_type == 'squt': with open(input_dir + '/squt/squt_treccar_train.pkl', 'rb') as f: train_cluster_data = pickle.load(f) with open(input_dir + '/squt/squt_treccar_val.pkl', 'rb') as f: val_cluster_data = pickle.load(f) with open(input_dir + '/squt/squt_treccar_test.pkl', 'rb') as f: test_cluster_data = pickle.load(f) print('Data loaded, starting to train') train(train_cluster_data, val_cluster_data, test_cluster_data, output_path, eval_steps, epochs, warmup_fraction, lambda_val, reg, gpu_eval, max_train_size=max_sample_size, train_psg_model=train_psg_model, model_name=model_name) if __name__ == '__main__': main()
[ 1, 515, 1904, 29889, 29933, 5371, 29880, 5402, 1053, 8701, 29903, 296, 663, 13372, 261, 29892, 20693, 326, 6821, 5402, 29892, 11878, 695, 333, 29918, 5721, 13, 3166, 15729, 29889, 2484, 617, 279, 29918, 3389, 1053, 19012, 29918, 19594, 29918, 1272, 29918, 14968, 29918, 6194, 29892, 19012, 29918, 19594, 29918, 1272, 29906, 29892, 679, 29918, 2484, 29883, 29918, 4130, 29892, 320, 13, 1678, 679, 29918, 862, 403, 486, 29918, 8977, 13, 3166, 3667, 29889, 1469, 1053, 10567, 29911, 1525, 4174, 1718, 14023, 13, 5215, 12655, 408, 7442, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 3166, 4842, 305, 1053, 323, 6073, 13, 3166, 4842, 305, 29889, 13239, 29889, 1272, 1053, 3630, 10036, 13, 3166, 4842, 305, 29889, 13239, 29889, 20158, 3377, 1053, 6991, 5219, 10507, 13, 3166, 19229, 1053, 360, 919, 29892, 20504, 519, 29892, 2391, 13, 5215, 4327, 414, 13, 3166, 10541, 29918, 9067, 414, 1053, 28048, 663, 13372, 261, 13, 3166, 10541, 29918, 9067, 414, 1053, 4733, 13, 3166, 10541, 29918, 9067, 414, 29889, 24219, 362, 1053, 28048, 663, 29923, 4387, 1061, 13, 3166, 10541, 29918, 9067, 414, 29889, 4422, 1053, 9853, 29918, 517, 29918, 10141, 13, 3166, 2071, 19668, 29889, 19594, 1053, 319, 1505, 29880, 12392, 1230, 6821, 504, 3241, 13, 3166, 2071, 19668, 29889, 2527, 10817, 1053, 10365, 287, 29918, 9502, 29918, 13628, 29892, 4226, 1891, 29918, 6149, 950, 29918, 3888, 29918, 13628, 29892, 10365, 287, 29918, 6149, 950, 29918, 3888, 29918, 13628, 13, 3166, 260, 29939, 18933, 29889, 1300, 265, 327, 19273, 1053, 534, 927, 13, 3166, 2821, 828, 1053, 9330, 13, 5215, 5839, 280, 13, 5215, 1852, 5510, 13, 13, 5215, 4036, 13, 8172, 29889, 26776, 29898, 29946, 29906, 29897, 13, 7345, 305, 29889, 11288, 29918, 26776, 29898, 29946, 29906, 29897, 13, 9302, 29889, 8172, 29889, 26776, 29898, 29946, 29906, 29897, 13, 13, 1753, 19012, 29918, 19594, 29918, 1272, 29918, 14968, 29898, 12292, 29918, 1445, 29892, 1616, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 610, 403, 486, 1125, 13, 1678, 1813, 29918, 862, 294, 29892, 6664, 29918, 22752, 29918, 3332, 29892, 903, 353, 679, 29918, 2484, 29883, 29918, 4130, 29898, 442, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 6213, 29897, 13, 1678, 282, 726, 29918, 8977, 353, 679, 29918, 862, 403, 486, 29918, 8977, 29898, 862, 403, 486, 29897, 13, 1678, 2246, 29918, 19594, 29918, 1272, 353, 5159, 13, 1678, 6515, 353, 5159, 13, 1678, 411, 1722, 29898, 12292, 29918, 1445, 29892, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 363, 301, 297, 285, 29901, 13, 9651, 6515, 29889, 4397, 29898, 29880, 29889, 29878, 17010, 28909, 29876, 8785, 13, 1678, 363, 474, 297, 534, 927, 29898, 2435, 29898, 12292, 22164, 13, 4706, 1813, 353, 6515, 29961, 29875, 29962, 13, 4706, 610, 294, 353, 1813, 29918, 862, 294, 29961, 3488, 29962, 13, 4706, 610, 403, 486, 29879, 353, 518, 29886, 726, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 610, 294, 29962, 13, 4706, 2246, 29918, 27117, 353, 1051, 29898, 842, 4197, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 29962, 363, 282, 297, 610, 294, 12622, 13, 4706, 565, 7431, 29898, 3332, 29918, 27117, 29897, 529, 29871, 29906, 29901, 13, 9651, 6773, 13, 4706, 2246, 29918, 21134, 353, 518, 3332, 29918, 27117, 29889, 2248, 29898, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 2314, 363, 282, 297, 610, 294, 29962, 13, 4706, 2346, 29918, 726, 353, 525, 15300, 7122, 29898, 3488, 29889, 5451, 877, 264, 4594, 29901, 29861, 29896, 1822, 5451, 877, 29995, 29906, 29900, 8785, 13, 4706, 2246, 29918, 19594, 29918, 1272, 29889, 4397, 29898, 4290, 29911, 1525, 4174, 1718, 14023, 29898, 29939, 333, 29922, 3488, 29892, 3855, 29918, 4703, 29922, 1972, 29918, 726, 29892, 282, 4841, 29922, 862, 294, 29892, 26442, 29922, 862, 403, 486, 29879, 29892, 13, 462, 462, 462, 1678, 3858, 29922, 9302, 29889, 2378, 29898, 3332, 29918, 21134, 4961, 13, 1678, 1596, 877, 11536, 848, 8871, 29901, 1273, 29945, 29881, 29915, 1273, 7431, 29898, 3332, 29918, 19594, 29918, 1272, 876, 13, 1678, 736, 2246, 29918, 19594, 29918, 1272, 13, 13, 1753, 19012, 29918, 19594, 29918, 1272, 29918, 1454, 29918, 14513, 29898, 442, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 610, 403, 486, 29892, 437, 29918, 4572, 29892, 659, 29918, 27736, 1125, 13, 1678, 1813, 29918, 862, 294, 29892, 6664, 29918, 22752, 29918, 3332, 29892, 903, 353, 679, 29918, 2484, 29883, 29918, 4130, 29898, 442, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 6213, 29897, 13, 1678, 7431, 29918, 862, 294, 353, 7442, 29889, 2378, 4197, 2435, 29898, 3488, 29918, 862, 294, 29961, 3488, 2314, 363, 1813, 297, 1813, 29918, 862, 294, 29889, 8149, 580, 2314, 13, 1678, 1596, 877, 12676, 610, 294, 29901, 18695, 29906, 29888, 29892, 3659, 29901, 18695, 29906, 29888, 29892, 4236, 610, 294, 29901, 18695, 29906, 29888, 29915, 1273, 313, 9302, 29889, 12676, 29898, 2435, 29918, 862, 294, 511, 7442, 29889, 4172, 29898, 2435, 29918, 862, 294, 511, 7442, 29889, 3317, 29898, 2435, 29918, 862, 294, 4961, 13, 1678, 282, 726, 29918, 8977, 353, 679, 29918, 862, 403, 486, 29918, 8977, 29898, 862, 403, 486, 29897, 13, 1678, 2246, 29918, 19594, 29918, 1272, 353, 5159, 13, 1678, 6515, 353, 1051, 29898, 3488, 29918, 862, 294, 29889, 8149, 3101, 13, 1678, 14993, 2986, 29918, 12292, 353, 29871, 29900, 13, 1678, 4236, 29918, 1949, 29918, 1514, 353, 4236, 4197, 2435, 29898, 3488, 29918, 862, 294, 29961, 29886, 2314, 363, 282, 297, 1813, 29918, 862, 294, 29889, 8149, 580, 2314, 13, 1678, 363, 474, 297, 534, 927, 29898, 2435, 29898, 12292, 22164, 13, 4706, 1813, 353, 6515, 29961, 29875, 29962, 13, 4706, 610, 294, 353, 1813, 29918, 862, 294, 29961, 3488, 29962, 13, 4706, 610, 403, 486, 29879, 353, 518, 29886, 726, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 610, 294, 29962, 13, 4706, 2246, 29918, 27117, 353, 1051, 29898, 842, 4197, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 29962, 363, 282, 297, 610, 294, 12622, 13, 4706, 2246, 29918, 21134, 353, 518, 3332, 29918, 27117, 29889, 2248, 29898, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 2314, 363, 282, 297, 610, 294, 29962, 13, 4706, 2346, 29918, 726, 353, 525, 15300, 7122, 29898, 3488, 29889, 5451, 877, 264, 4594, 29901, 29861, 29896, 1822, 5451, 877, 29995, 29906, 29900, 8785, 13, 4706, 302, 353, 7431, 29898, 862, 294, 29897, 13, 4706, 565, 437, 29918, 4572, 29901, 13, 9651, 565, 302, 529, 29871, 29906, 29900, 470, 302, 1405, 29871, 29906, 29900, 29900, 29901, 13, 18884, 14993, 2986, 29918, 12292, 4619, 29871, 29896, 13, 18884, 6773, 13, 4706, 610, 294, 353, 610, 294, 7503, 3317, 29918, 1949, 29918, 1514, 29962, 565, 302, 6736, 4236, 29918, 1949, 29918, 1514, 1683, 610, 294, 718, 6024, 29881, 11770, 2033, 334, 313, 3317, 29918, 1949, 29918, 1514, 448, 302, 29897, 13, 4706, 610, 403, 486, 29879, 353, 610, 403, 486, 29879, 7503, 3317, 29918, 1949, 29918, 1514, 29962, 565, 302, 6736, 4236, 29918, 1949, 29918, 1514, 1683, 610, 403, 486, 29879, 718, 6024, 2033, 334, 313, 3317, 29918, 1949, 29918, 1514, 448, 302, 29897, 13, 4706, 2246, 29918, 21134, 353, 2246, 29918, 21134, 7503, 3317, 29918, 1949, 29918, 1514, 29962, 565, 302, 6736, 4236, 29918, 1949, 29918, 1514, 1683, 2246, 29918, 21134, 718, 21069, 29896, 29962, 334, 313, 3317, 29918, 1949, 29918, 1514, 448, 302, 29897, 13, 4706, 565, 437, 29918, 4572, 29901, 13, 9651, 565, 7431, 29898, 842, 29898, 3332, 29918, 21134, 876, 529, 29871, 29906, 470, 302, 847, 7431, 29898, 842, 29898, 3332, 29918, 21134, 876, 529, 29871, 29906, 29889, 29945, 29901, 13, 18884, 444, 278, 1813, 881, 505, 472, 3203, 29871, 29906, 2246, 3233, 13926, 322, 302, 29914, 29895, 881, 367, 472, 3203, 29871, 29906, 29889, 29945, 13, 18884, 14993, 2986, 29918, 12292, 4619, 29871, 29896, 13, 18884, 6773, 13, 4706, 2246, 29918, 19594, 29918, 1272, 29889, 4397, 29898, 4290, 29911, 1525, 4174, 1718, 14023, 29898, 29939, 333, 29922, 3488, 29892, 3855, 29918, 4703, 29922, 1972, 29918, 726, 29892, 282, 4841, 29922, 862, 294, 29892, 26442, 29922, 862, 403, 486, 29879, 29892, 13, 462, 462, 462, 3986, 3858, 29922, 9302, 29889, 2378, 29898, 3332, 29918, 21134, 4961, 13, 1678, 565, 659, 29918, 27736, 1405, 29871, 29900, 29901, 13, 4706, 2246, 29918, 19594, 29918, 1272, 353, 2246, 29918, 19594, 29918, 1272, 7503, 791, 29918, 27736, 29962, 13, 1678, 1596, 877, 11536, 848, 8871, 29901, 1273, 29945, 29881, 29915, 1273, 7431, 29898, 3332, 29918, 19594, 29918, 1272, 876, 13, 1678, 736, 2246, 29918, 19594, 29918, 1272, 13, 13, 1990, 13641, 10299, 928, 6821, 5402, 3195, 29898, 15755, 29889, 7355, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2224, 29901, 710, 29922, 8516, 29892, 2346, 29918, 9067, 261, 29901, 7281, 29903, 296, 663, 13372, 261, 29922, 8516, 29892, 13, 462, 282, 5311, 29918, 9067, 261, 29901, 7281, 29903, 296, 663, 13372, 261, 29922, 8516, 29892, 4742, 29901, 7345, 305, 29889, 10141, 29922, 8516, 1125, 13, 4706, 2428, 29898, 3010, 10299, 928, 6821, 5402, 3195, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 565, 2224, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 1972, 29918, 4299, 353, 8701, 29903, 296, 663, 13372, 261, 29898, 2084, 23097, 29914, 1972, 29918, 4299, 1495, 13, 9651, 1583, 29889, 567, 29887, 29918, 4299, 353, 8701, 29903, 296, 663, 13372, 261, 29898, 2084, 23097, 29914, 567, 29887, 29918, 4299, 1495, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1972, 29918, 4299, 353, 2346, 29918, 9067, 261, 13, 9651, 1583, 29889, 567, 29887, 29918, 4299, 353, 282, 5311, 29918, 9067, 261, 13, 4706, 1583, 29889, 20640, 353, 20693, 326, 6821, 5402, 13, 4706, 1583, 29889, 10141, 353, 4742, 13, 13, 1678, 822, 4078, 29898, 1311, 29892, 2224, 1125, 13, 4706, 1583, 29889, 1972, 29918, 4299, 29889, 7620, 29898, 2084, 23097, 29914, 1972, 29918, 4299, 1495, 13, 4706, 1583, 29889, 567, 29887, 29918, 4299, 29889, 7620, 29898, 2084, 23097, 29914, 567, 29887, 29918, 4299, 1495, 13, 13, 1678, 822, 903, 657, 29918, 816, 14952, 29898, 1311, 29892, 5994, 3950, 29892, 1364, 14952, 29901, 851, 29892, 14294, 786, 29918, 24530, 29901, 938, 29892, 260, 29918, 7827, 29901, 938, 1125, 13, 4706, 9995, 13, 4706, 323, 9424, 515, 28048, 663, 13372, 414, 13, 4706, 16969, 278, 1959, 6509, 6554, 1364, 14952, 13, 4706, 9995, 13, 4706, 1364, 14952, 353, 1364, 14952, 29889, 13609, 580, 13, 4706, 565, 1364, 14952, 1275, 525, 23362, 29212, 2396, 13, 9651, 736, 4327, 414, 29889, 657, 29918, 23362, 29918, 816, 11272, 29898, 20640, 3950, 29897, 13, 4706, 25342, 1364, 14952, 1275, 525, 29893, 2817, 786, 23362, 2396, 13, 9651, 736, 4327, 414, 29889, 657, 29918, 23362, 29918, 816, 11272, 29918, 2541, 29918, 29893, 2817, 786, 29898, 20640, 3950, 29892, 954, 29918, 29893, 2817, 786, 29918, 24530, 29922, 29893, 2817, 786, 29918, 24530, 29897, 13, 4706, 25342, 1364, 14952, 1275, 525, 4495, 2589, 572, 457, 279, 2396, 13, 9651, 736, 4327, 414, 29889, 657, 29918, 10660, 29918, 816, 11272, 29918, 2541, 29918, 29893, 2817, 786, 29898, 20640, 3950, 29892, 954, 29918, 29893, 2817, 786, 29918, 24530, 29922, 29893, 2817, 786, 29918, 24530, 29892, 13, 462, 462, 462, 18884, 954, 29918, 26495, 29918, 24530, 29922, 29873, 29918, 7827, 29897, 13, 4706, 25342, 1364, 14952, 1275, 525, 29893, 2817, 786, 3944, 457, 2396, 13, 9651, 736, 4327, 414, 29889, 657, 29918, 3944, 457, 29918, 816, 11272, 29918, 2541, 29918, 29893, 2817, 786, 29898, 20640, 3950, 29892, 954, 29918, 29893, 2817, 786, 29918, 24530, 29922, 29893, 2817, 786, 29918, 24530, 29892, 13, 462, 462, 462, 18884, 954, 29918, 26495, 29918, 24530, 29922, 29873, 29918, 7827, 29897, 13, 4706, 25342, 1364, 14952, 1275, 525, 29893, 2817, 786, 3944, 457, 2541, 6800, 5060, 5708, 2396, 13, 9651, 736, 4327, 414, 29889, 657, 29918, 3944, 457, 29918, 2541, 29918, 6800, 29918, 5060, 5708, 29918, 816, 11272, 29918, 2541, 29918, 29893, 2817, 786, 29898, 20640, 3950, 29892, 13, 462, 462, 462, 462, 462, 259, 954, 29918, 29893, 2817, 786, 29918, 24530, 29922, 29893, 2817, 786, 29918, 24530, 29892, 13, 462, 462, 462, 462, 462, 259, 954, 29918, 26495, 29918, 24530, 29922, 29873, 29918, 7827, 29897, 13, 4706, 1683, 29901, 13, 9651, 12020, 7865, 2392, 703, 14148, 1364, 14952, 6571, 1642, 4830, 29898, 816, 14952, 876, 13, 13, 1678, 822, 2346, 29918, 16175, 29918, 1054, 9632, 29918, 9144, 29898, 1311, 29892, 9853, 1125, 13, 4706, 954, 29918, 726, 29879, 353, 7431, 29898, 16175, 29961, 29900, 1822, 726, 29879, 29897, 13, 4706, 9365, 353, 5159, 13, 4706, 26442, 353, 518, 2636, 363, 903, 297, 3464, 29898, 1949, 29918, 726, 29879, 4638, 13, 4706, 11073, 353, 5159, 13, 13, 4706, 363, 1342, 297, 9853, 29901, 13, 9651, 9365, 29889, 4397, 29898, 4773, 29889, 29939, 29918, 4703, 29897, 13, 9651, 363, 22645, 29892, 1426, 297, 26985, 29898, 4773, 29889, 726, 29879, 1125, 13, 18884, 26442, 29961, 13140, 1822, 4397, 29898, 726, 29897, 13, 9651, 11073, 29889, 4397, 29898, 4773, 29889, 1643, 29897, 13, 13, 4706, 11073, 353, 4842, 305, 29889, 20158, 29898, 21134, 467, 517, 29898, 1311, 29889, 10141, 29897, 13, 13, 4706, 3855, 29918, 6979, 1891, 353, 1583, 29889, 1972, 29918, 4299, 29889, 6979, 675, 29898, 339, 6358, 29897, 13, 4706, 9853, 29918, 517, 29918, 10141, 29898, 29939, 29918, 6979, 1891, 29892, 1583, 29889, 10141, 29897, 13, 13, 4706, 282, 5311, 29918, 22100, 353, 5159, 13, 4706, 363, 22645, 297, 3464, 29898, 1949, 29918, 726, 29879, 1125, 13, 9651, 282, 29918, 6979, 1891, 353, 1583, 29889, 567, 29887, 29918, 4299, 29889, 6979, 675, 29898, 726, 29879, 29961, 13140, 2314, 13, 9651, 9853, 29918, 517, 29918, 10141, 29898, 29886, 29918, 6979, 1891, 29892, 1583, 29889, 10141, 29897, 13, 9651, 282, 5311, 29918, 22100, 29889, 4397, 29898, 29886, 29918, 6979, 1891, 29897, 13, 13, 4706, 736, 3855, 29918, 6979, 1891, 29892, 282, 5311, 29918, 22100, 29892, 11073, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 2346, 29918, 14394, 29901, 360, 919, 29961, 710, 29892, 323, 6073, 1402, 13382, 29918, 22100, 29901, 20504, 519, 29961, 21533, 29961, 710, 29892, 323, 6073, 20526, 11073, 29901, 323, 6073, 1125, 13, 4706, 302, 353, 11073, 29889, 12181, 29961, 29896, 29962, 13, 13, 4706, 2346, 29918, 17987, 8497, 353, 1583, 29889, 1972, 29918, 4299, 29898, 1972, 29918, 14394, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 4706, 396, 967, 278, 21640, 4608, 29892, 577, 1269, 1543, 297, 4608, 881, 367, 518, 29900, 29892, 29871, 29896, 29962, 13, 4706, 282, 5311, 29918, 17987, 29881, 886, 353, 4842, 305, 29889, 1429, 4197, 1311, 29889, 567, 29887, 29918, 4299, 29898, 3364, 1179, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 462, 462, 418, 363, 1209, 1179, 297, 13382, 29918, 22100, 1402, 3964, 29922, 29896, 29897, 13, 4706, 6287, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 353, 4842, 305, 29889, 29873, 488, 29898, 1972, 29918, 17987, 8497, 29889, 6948, 802, 29872, 911, 29898, 29896, 511, 313, 29896, 29892, 302, 29892, 29871, 29896, 876, 334, 282, 5311, 29918, 17987, 29881, 886, 13, 13, 4706, 736, 6287, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 13, 13, 1990, 14129, 29880, 5402, 29931, 2209, 3195, 29898, 15755, 29889, 7355, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1904, 29901, 13641, 10299, 928, 6821, 5402, 3195, 29892, 4742, 29892, 14013, 29918, 791, 29901, 5785, 29892, 1072, 29918, 3075, 29901, 5785, 1125, 13, 4706, 2428, 29898, 29933, 5371, 29880, 5402, 29931, 2209, 3195, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 4299, 353, 1904, 13, 4706, 1583, 29889, 2892, 29918, 791, 353, 14013, 29918, 791, 13, 4706, 1583, 29889, 1727, 353, 1072, 29918, 3075, 13, 4706, 1583, 29889, 20640, 353, 20693, 326, 6821, 5402, 580, 13, 4706, 1583, 29889, 10141, 353, 4742, 13, 13, 1678, 822, 1565, 29918, 26859, 29918, 2922, 29898, 1311, 29892, 3858, 1125, 13, 4706, 302, 353, 3858, 29889, 1949, 295, 580, 13, 4706, 12109, 29918, 2922, 353, 4842, 305, 29889, 3298, 359, 3552, 29876, 29892, 302, 876, 13, 4706, 363, 474, 297, 3464, 29898, 29876, 1125, 13, 9651, 363, 432, 297, 3464, 29898, 29876, 1125, 13, 18884, 565, 474, 1275, 432, 470, 3858, 29961, 29875, 29962, 1275, 3858, 29961, 29926, 5387, 13, 462, 1678, 12109, 29918, 2922, 29961, 29875, 3816, 29926, 29962, 353, 29871, 29896, 29889, 29900, 13, 4706, 736, 12109, 29918, 2922, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 2346, 29918, 14394, 29901, 360, 919, 29961, 710, 29892, 323, 6073, 1402, 13382, 29918, 22100, 29901, 20504, 519, 29961, 21533, 29961, 710, 29892, 323, 6073, 20526, 11073, 29901, 323, 6073, 1125, 13, 13, 4706, 9853, 29918, 2311, 353, 11073, 29889, 12181, 29961, 29900, 29962, 13, 4706, 302, 353, 11073, 29889, 12181, 29961, 29896, 29962, 13, 4706, 413, 29879, 353, 518, 7345, 305, 29889, 13092, 29898, 21134, 29961, 29875, 14664, 1949, 295, 580, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 4638, 13, 4706, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 353, 4842, 305, 29889, 1429, 4197, 1311, 29889, 3009, 29918, 26859, 29918, 2922, 29898, 21134, 29961, 29875, 2314, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 4638, 467, 517, 29898, 1311, 29889, 10141, 29897, 13, 13, 4706, 2346, 29918, 17987, 8497, 353, 1583, 29889, 4299, 29889, 1972, 29918, 4299, 29898, 1972, 29918, 14394, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 4706, 396, 967, 278, 21640, 4608, 29892, 577, 1269, 1543, 297, 4608, 881, 367, 518, 29900, 29892, 29871, 29896, 29962, 13, 4706, 282, 5311, 29918, 17987, 29881, 886, 353, 4842, 305, 29889, 1429, 4197, 1311, 29889, 4299, 29889, 567, 29887, 29918, 4299, 29898, 3364, 1179, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 462, 462, 418, 363, 1209, 1179, 297, 13382, 29918, 22100, 1402, 3964, 29922, 29896, 29897, 13, 4706, 6287, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 353, 4842, 305, 29889, 29873, 488, 29898, 1972, 29918, 17987, 8497, 29889, 6948, 802, 29872, 911, 29898, 29896, 511, 313, 29896, 29892, 302, 29892, 29871, 29896, 876, 334, 282, 5311, 29918, 17987, 29881, 886, 13, 13, 4706, 8297, 29881, 886, 29918, 5721, 29918, 29885, 1446, 353, 4842, 305, 29889, 1429, 4197, 12932, 695, 333, 29918, 5721, 29898, 7052, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 29961, 29875, 2314, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 29897, 2314, 13, 4706, 2099, 29918, 29764, 29918, 5721, 353, 313, 17987, 29881, 886, 29918, 5721, 29918, 29885, 1446, 334, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 467, 2083, 580, 847, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 29889, 2083, 580, 13, 4706, 2099, 29918, 29881, 790, 326, 2327, 29918, 5721, 353, 313, 17987, 29881, 886, 29918, 5721, 29918, 29885, 1446, 334, 313, 29896, 29889, 29900, 448, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 8106, 2083, 580, 847, 313, 13, 462, 29896, 448, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 467, 2083, 580, 13, 4706, 12109, 562, 3819, 29918, 29885, 1446, 353, 1583, 29889, 20640, 29889, 7302, 29898, 17987, 29881, 886, 29918, 5721, 29918, 29885, 1446, 29892, 1583, 29889, 2892, 29918, 791, 29892, 413, 29879, 467, 517, 29898, 1311, 29889, 10141, 29897, 13, 13, 4706, 4589, 29918, 29885, 1446, 353, 12109, 562, 3819, 29918, 29885, 1446, 334, 313, 29896, 29889, 29900, 448, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 29897, 718, 313, 29896, 29889, 29900, 448, 12109, 562, 3819, 29918, 29885, 1446, 29897, 334, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 13, 4706, 4589, 29918, 12676, 353, 4589, 29918, 29885, 1446, 29889, 12676, 29898, 6229, 29922, 29900, 467, 2083, 580, 13, 4706, 6410, 353, 4589, 29918, 12676, 718, 1583, 29889, 1727, 334, 313, 12676, 29918, 29764, 29918, 5721, 448, 2099, 29918, 29881, 790, 326, 2327, 29918, 5721, 29897, 13, 13, 4706, 736, 6410, 13, 13, 1990, 14129, 29880, 5402, 29934, 10262, 29931, 2209, 3195, 29898, 15755, 29889, 7355, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1904, 29901, 13641, 10299, 928, 6821, 5402, 3195, 29892, 4742, 29892, 14013, 29918, 791, 29901, 5785, 29892, 1072, 29918, 3075, 29901, 5785, 1125, 13, 4706, 2428, 29898, 29933, 5371, 29880, 5402, 29934, 10262, 29931, 2209, 3195, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 4299, 353, 1904, 13, 4706, 1583, 29889, 2892, 29918, 791, 353, 14013, 29918, 791, 13, 4706, 1583, 29889, 1727, 353, 1072, 29918, 3075, 13, 4706, 1583, 29889, 20640, 353, 20693, 326, 6821, 5402, 580, 13, 4706, 1583, 29889, 10141, 353, 4742, 13, 13, 1678, 822, 1565, 29918, 26859, 29918, 2922, 29898, 1311, 29892, 3858, 1125, 13, 4706, 302, 353, 3858, 29889, 1949, 295, 580, 13, 4706, 12109, 29918, 2922, 353, 4842, 305, 29889, 3298, 359, 3552, 29876, 29892, 302, 876, 13, 4706, 363, 474, 297, 3464, 29898, 29876, 1125, 13, 9651, 363, 432, 297, 3464, 29898, 29876, 1125, 13, 18884, 565, 474, 1275, 432, 470, 3858, 29961, 29875, 29962, 1275, 3858, 29961, 29926, 5387, 13, 462, 1678, 12109, 29918, 2922, 29961, 29875, 3816, 29926, 29962, 353, 29871, 29896, 29889, 29900, 13, 4706, 736, 12109, 29918, 2922, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 2346, 29918, 14394, 29901, 360, 919, 29961, 710, 29892, 323, 6073, 1402, 13382, 29918, 22100, 29901, 20504, 519, 29961, 21533, 29961, 710, 29892, 323, 6073, 20526, 11073, 29901, 323, 6073, 1125, 13, 13, 4706, 9853, 29918, 2311, 353, 11073, 29889, 12181, 29961, 29900, 29962, 13, 4706, 302, 353, 11073, 29889, 12181, 29961, 29896, 29962, 13, 4706, 413, 29879, 353, 518, 7345, 305, 29889, 13092, 29898, 21134, 29961, 29875, 14664, 1949, 295, 580, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 4638, 13, 4706, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 353, 4842, 305, 29889, 1429, 4197, 1311, 29889, 3009, 29918, 26859, 29918, 2922, 29898, 21134, 29961, 29875, 2314, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 4638, 467, 517, 29898, 1311, 29889, 10141, 29897, 13, 13, 4706, 282, 5311, 29918, 17987, 29881, 886, 353, 4842, 305, 29889, 1429, 4197, 1311, 29889, 4299, 29889, 567, 29887, 29918, 4299, 29898, 3364, 1179, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 462, 462, 418, 363, 1209, 1179, 297, 13382, 29918, 22100, 1402, 3964, 29922, 29896, 29897, 13, 4706, 21640, 29918, 8111, 353, 4842, 305, 29889, 20158, 4197, 29900, 2314, 13, 4706, 396, 4017, 278, 21640, 4608, 515, 282, 5311, 29918, 17987, 29881, 865, 29879, 773, 390, 10262, 13, 4706, 6287, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 353, 4842, 305, 29889, 29873, 488, 29898, 19529, 292, 29918, 8111, 29889, 6948, 802, 29872, 911, 29898, 29896, 511, 313, 29896, 29892, 302, 29892, 29871, 29896, 876, 334, 282, 5311, 29918, 17987, 29881, 886, 13, 13, 4706, 8297, 29881, 886, 29918, 5721, 29918, 29885, 1446, 353, 4842, 305, 29889, 1429, 4197, 12932, 695, 333, 29918, 5721, 29898, 7052, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 29961, 29875, 2314, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 29897, 2314, 13, 4706, 2099, 29918, 29764, 29918, 5721, 353, 313, 17987, 29881, 886, 29918, 5721, 29918, 29885, 1446, 334, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 467, 2083, 580, 847, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 29889, 2083, 580, 13, 4706, 2099, 29918, 29881, 790, 326, 2327, 29918, 5721, 353, 313, 17987, 29881, 886, 29918, 5721, 29918, 29885, 1446, 334, 313, 29896, 29889, 29900, 448, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 8106, 2083, 580, 847, 313, 13, 462, 29896, 448, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 467, 2083, 580, 13, 4706, 12109, 562, 3819, 29918, 29885, 1446, 353, 1583, 29889, 20640, 29889, 7302, 29898, 17987, 29881, 886, 29918, 5721, 29918, 29885, 1446, 29892, 1583, 29889, 2892, 29918, 791, 29892, 413, 29879, 467, 517, 29898, 1311, 29889, 10141, 29897, 13, 13, 4706, 4589, 29918, 29885, 1446, 353, 12109, 562, 3819, 29918, 29885, 1446, 334, 313, 29896, 29889, 29900, 448, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 29897, 718, 313, 29896, 29889, 29900, 448, 12109, 562, 3819, 29918, 29885, 1446, 29897, 334, 1565, 29918, 26859, 562, 3819, 29918, 29885, 1446, 13, 4706, 4589, 29918, 12676, 353, 4589, 29918, 29885, 1446, 29889, 12676, 29898, 6229, 29922, 29900, 467, 2083, 580, 13, 4706, 6410, 353, 4589, 29918, 12676, 718, 1583, 29889, 1727, 334, 313, 12676, 29918, 29764, 29918, 5721, 448, 2099, 29918, 29881, 790, 326, 2327, 29918, 5721, 29897, 13, 13, 4706, 736, 6410, 13, 13, 1990, 13641, 6821, 5402, 29923, 4387, 1061, 29898, 29903, 296, 663, 29923, 4387, 1061, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9365, 29901, 2391, 29961, 710, 1402, 1209, 1179, 29901, 2391, 29961, 1293, 29961, 710, 20526, 11073, 29901, 2391, 29961, 29911, 6073, 1402, 671, 29918, 4299, 29918, 10141, 29922, 5574, 1125, 13, 4706, 1583, 29889, 339, 6358, 353, 9365, 13, 4706, 1583, 29889, 3364, 1179, 353, 1209, 1179, 13, 4706, 1583, 29889, 21134, 353, 11073, 13, 4706, 1583, 29889, 1509, 29918, 4299, 29918, 10141, 353, 671, 29918, 4299, 29918, 10141, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 515, 29918, 2080, 29918, 19057, 29898, 25932, 29892, 6455, 29901, 2391, 29961, 4290, 29911, 1525, 4174, 1718, 14023, 1402, 671, 29918, 4299, 29918, 10141, 29892, 3579, 19290, 1125, 13, 4706, 9365, 353, 5159, 13, 4706, 1209, 1179, 353, 5159, 13, 4706, 11073, 353, 5159, 13, 4706, 363, 1342, 297, 6455, 29901, 13, 9651, 9365, 29889, 4397, 29898, 4773, 29889, 29939, 29918, 4703, 29897, 13, 9651, 1209, 1179, 29889, 4397, 29898, 4773, 29889, 726, 29879, 29897, 13, 9651, 11073, 29889, 4397, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 4773, 29889, 1643, 876, 13, 4706, 736, 1067, 29879, 29898, 339, 6358, 29922, 339, 6358, 29892, 1209, 1179, 29922, 3364, 1179, 29892, 11073, 29922, 21134, 29892, 671, 29918, 4299, 29918, 10141, 29922, 1509, 29918, 4299, 29918, 10141, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 11878, 695, 333, 29918, 5721, 29898, 1311, 29892, 921, 1125, 13, 4706, 1320, 29918, 2922, 353, 4842, 305, 29889, 12324, 29898, 29916, 7503, 29892, 6213, 29962, 448, 921, 29892, 3964, 29922, 29906, 29892, 282, 29922, 29906, 29897, 13, 4706, 736, 1320, 29918, 2922, 13, 13, 1678, 822, 4770, 4804, 12035, 1311, 29892, 1904, 29892, 1962, 29918, 2084, 29901, 851, 353, 6213, 29892, 21502, 305, 29901, 938, 353, 448, 29896, 29892, 6576, 29901, 938, 353, 448, 29896, 29897, 1599, 5785, 29901, 13, 4706, 20088, 29918, 1557, 2361, 29892, 302, 2460, 29918, 1557, 2361, 29892, 18926, 29918, 1557, 2361, 353, 19997, 19997, 5159, 13, 4706, 1904, 29918, 10141, 353, 1904, 29889, 10141, 13, 4706, 565, 451, 1583, 29889, 1509, 29918, 4299, 29918, 10141, 29901, 13, 9651, 1904, 29889, 21970, 580, 13, 4706, 363, 474, 297, 534, 927, 29898, 2435, 29898, 1311, 29889, 339, 6358, 511, 5153, 543, 29923, 4387, 1218, 373, 659, 613, 1560, 29877, 6046, 29922, 29900, 29889, 29900, 29945, 1125, 13, 9651, 2346, 353, 1583, 29889, 339, 6358, 29961, 29875, 29962, 13, 9651, 1209, 1179, 29918, 517, 29918, 19594, 353, 518, 1311, 29889, 3364, 1179, 29961, 29875, 3816, 29886, 29962, 363, 282, 297, 3464, 29898, 2435, 29898, 1311, 29889, 3364, 1179, 29961, 29875, 12622, 13, 462, 462, 259, 565, 7431, 29898, 1311, 29889, 3364, 1179, 29961, 29875, 3816, 29886, 2314, 29958, 29900, 29962, 13, 9651, 1565, 29918, 1643, 353, 1583, 29889, 21134, 29961, 29875, 3816, 29901, 2435, 29898, 3364, 1179, 29918, 517, 29918, 19594, 4638, 13, 9651, 2346, 29918, 14394, 353, 1904, 29889, 1972, 29918, 4299, 29889, 6979, 675, 29898, 1972, 29897, 13, 9651, 1574, 29918, 22100, 353, 1904, 29889, 567, 29887, 29918, 4299, 29889, 6979, 675, 29898, 3364, 1179, 29918, 517, 29918, 19594, 29897, 13, 9651, 565, 1583, 29889, 1509, 29918, 4299, 29918, 10141, 29901, 13, 18884, 9853, 29918, 517, 29918, 10141, 29898, 1514, 29918, 22100, 29892, 1904, 29918, 10141, 29897, 13, 9651, 2346, 29918, 17987, 8497, 353, 1904, 29889, 1972, 29918, 4299, 29898, 1972, 29918, 14394, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 9651, 282, 5311, 29918, 17987, 29881, 886, 353, 1904, 29889, 567, 29887, 29918, 4299, 29898, 1514, 29918, 22100, 29897, 1839, 18616, 663, 29918, 17987, 8497, 2033, 13, 9651, 6287, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 353, 2346, 29918, 17987, 8497, 334, 282, 5311, 29918, 17987, 29881, 886, 13, 9651, 8297, 29881, 886, 29918, 5721, 29918, 2922, 353, 1583, 29889, 12932, 695, 333, 29918, 5721, 29898, 7052, 29881, 29918, 567, 29887, 29918, 17987, 29881, 886, 29897, 13, 9651, 1067, 353, 319, 1505, 29880, 12392, 1230, 6821, 504, 3241, 29898, 29876, 29918, 695, 504, 414, 29922, 7345, 305, 29889, 13092, 29898, 3009, 29918, 1643, 467, 1949, 295, 3285, 2756, 13593, 2433, 1457, 12097, 287, 742, 13, 462, 462, 308, 1544, 482, 2433, 12483, 482, 1495, 13, 9651, 9867, 29918, 1643, 353, 1067, 29889, 9202, 29918, 27711, 29898, 17987, 29881, 886, 29918, 5721, 29918, 2922, 29889, 4801, 496, 2141, 21970, 2141, 23749, 3101, 13, 9651, 20088, 29918, 1557, 2361, 29889, 4397, 29898, 328, 5143, 287, 29918, 9502, 29918, 13628, 29898, 3009, 29918, 1643, 29889, 23749, 3285, 9867, 29918, 1643, 876, 13, 9651, 302, 2460, 29918, 1557, 2361, 29889, 4397, 29898, 8945, 1891, 29918, 6149, 950, 29918, 3888, 29918, 13628, 29898, 3009, 29918, 1643, 29889, 23749, 3285, 9867, 29918, 1643, 876, 13, 9651, 18926, 29918, 1557, 2361, 29889, 4397, 29898, 328, 5143, 287, 29918, 6149, 950, 29918, 3888, 29918, 13628, 29898, 3009, 29918, 1643, 29889, 23749, 3285, 9867, 29918, 1643, 876, 13, 4706, 2099, 29918, 9502, 353, 7442, 29889, 12676, 29898, 9302, 29889, 2378, 29898, 9502, 29918, 1557, 2361, 876, 13, 4706, 2099, 29918, 29876, 2460, 353, 7442, 29889, 12676, 29898, 9302, 29889, 2378, 29898, 29876, 2460, 29918, 1557, 2361, 876, 13, 4706, 2099, 29918, 4479, 353, 7442, 29889, 12676, 29898, 9302, 29889, 2378, 29898, 4479, 29918, 1557, 2361, 876, 13, 4706, 1596, 14182, 29876, 29934, 9468, 29901, 18695, 29945, 29888, 29892, 405, 10403, 29901, 18695, 29945, 29888, 29892, 319, 10403, 29901, 18695, 29945, 29888, 29905, 29876, 29908, 1273, 313, 12676, 29918, 9502, 29892, 2099, 29918, 29876, 2460, 29892, 2099, 29918, 4479, 511, 28371, 29922, 5574, 29897, 13, 4706, 565, 451, 1583, 29889, 1509, 29918, 4299, 29918, 10141, 29901, 13, 9651, 1904, 29889, 517, 29898, 4299, 29918, 10141, 29897, 13, 4706, 736, 2099, 29918, 9502, 13, 13, 1753, 7945, 29898, 14968, 29918, 19594, 29918, 1272, 29892, 659, 29918, 19594, 29918, 1272, 29892, 1243, 29918, 19594, 29918, 1272, 29892, 1962, 29918, 2084, 29892, 19745, 29918, 24530, 29892, 13, 3986, 954, 29918, 1022, 2878, 29879, 29892, 14294, 786, 29918, 1154, 29892, 14013, 29918, 791, 29892, 1072, 29892, 671, 29918, 4299, 29918, 10141, 29892, 4236, 29918, 14968, 29918, 2311, 10457, 29896, 29892, 7945, 29918, 567, 29887, 29918, 4299, 29922, 8824, 29892, 13, 3986, 1904, 29918, 978, 2433, 5721, 309, 2151, 29899, 3188, 29899, 4661, 1463, 742, 714, 29918, 22100, 29922, 29906, 29945, 29953, 29892, 6576, 29918, 546, 29918, 1022, 2878, 29922, 8516, 29892, 7688, 29918, 7099, 388, 29922, 29900, 29889, 29900, 29896, 29892, 13, 3986, 5994, 3950, 29918, 1990, 29922, 9067, 414, 29889, 3253, 314, 29956, 29892, 1364, 14952, 2433, 29956, 2817, 786, 12697, 742, 5994, 3950, 29918, 7529, 3790, 29915, 29212, 2396, 29906, 29872, 29899, 29945, 1118, 13, 3986, 1510, 29918, 18035, 29918, 1646, 29922, 5574, 29892, 4236, 29918, 5105, 29918, 12324, 29922, 29896, 29892, 4078, 29918, 13318, 29918, 4299, 29922, 5574, 1125, 13, 1678, 12489, 3377, 29918, 13236, 353, 6991, 5219, 10507, 877, 6904, 20158, 3377, 29918, 20756, 1495, 13, 1678, 3414, 353, 9330, 29889, 2344, 29898, 4836, 29918, 978, 2433, 3010, 21220, 29449, 2233, 504, 3241, 742, 3414, 29918, 978, 2433, 1972, 29918, 1327, 29883, 29918, 20227, 29918, 2892, 1495, 13, 1678, 2295, 29918, 8977, 353, 11117, 2892, 29918, 791, 2396, 14013, 29918, 791, 29892, 525, 1727, 2396, 1072, 29913, 13, 1678, 2295, 29918, 8977, 353, 3414, 29889, 6915, 29898, 2917, 29918, 8977, 29897, 13, 1678, 565, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 7295, 13, 4706, 4742, 353, 4842, 305, 29889, 10141, 877, 29883, 6191, 1495, 13, 4706, 1596, 877, 29907, 29965, 7698, 338, 3625, 322, 773, 4742, 29901, 525, 29974, 710, 29898, 10141, 876, 13, 1678, 1683, 29901, 13, 4706, 4742, 353, 4842, 305, 29889, 10141, 877, 21970, 1495, 13, 4706, 1596, 877, 29907, 29965, 7698, 451, 3625, 29892, 773, 4742, 29901, 525, 29974, 710, 29898, 10141, 876, 13, 1678, 835, 1281, 4532, 10541, 4327, 414, 363, 6694, 322, 7945, 373, 278, 4944, 8783, 13, 1678, 396, 4803, 379, 688, 3460, 2161, 29914, 9067, 414, 1904, 313, 4561, 350, 20161, 29892, 1528, 13635, 29911, 29874, 29892, 1060, 29931, 6779, 29892, 1060, 26369, 29899, 29934, 29897, 363, 10417, 18897, 304, 8297, 29881, 886, 13, 1678, 2346, 29918, 1742, 29918, 17987, 8497, 29918, 4299, 353, 4733, 29889, 13372, 261, 29898, 4299, 29918, 978, 29897, 13, 13, 1678, 396, 2401, 368, 2099, 11565, 292, 304, 679, 697, 4343, 269, 1891, 10541, 4608, 13, 1678, 2346, 29918, 10109, 292, 29918, 4299, 353, 4733, 29889, 11426, 292, 29898, 1972, 29918, 1742, 29918, 17987, 8497, 29918, 4299, 29889, 657, 29918, 1742, 29918, 17987, 8497, 29918, 6229, 2673, 3285, 13, 462, 462, 259, 11565, 292, 29918, 8513, 29918, 12676, 29918, 517, 12360, 29922, 5574, 29892, 13, 462, 462, 259, 11565, 292, 29918, 8513, 29918, 25932, 29918, 6979, 29922, 8824, 29892, 13, 462, 462, 259, 11565, 292, 29918, 8513, 29918, 3317, 29918, 517, 12360, 29922, 8824, 29897, 13, 13, 1678, 2346, 29918, 1145, 344, 29918, 4299, 353, 4733, 29889, 29928, 1947, 29898, 262, 29918, 22100, 29922, 1972, 29918, 10109, 292, 29918, 4299, 29889, 657, 29918, 18616, 663, 29918, 17987, 8497, 29918, 6229, 2673, 3285, 13, 462, 462, 268, 714, 29918, 22100, 29922, 449, 29918, 22100, 29892, 13, 462, 462, 268, 26229, 29918, 2220, 29922, 15755, 29889, 29903, 335, 29885, 3398, 3101, 13, 1678, 282, 5311, 29918, 1742, 29918, 17987, 8497, 29918, 4299, 353, 4733, 29889, 13372, 261, 29898, 4299, 29918, 978, 29897, 13, 13, 1678, 396, 2401, 368, 2099, 11565, 292, 304, 679, 697, 4343, 269, 1891, 10541, 4608, 13, 1678, 282, 5311, 29918, 10109, 292, 29918, 4299, 353, 4733, 29889, 11426, 292, 29898, 567, 29887, 29918, 1742, 29918, 17987, 8497, 29918, 4299, 29889, 657, 29918, 1742, 29918, 17987, 8497, 29918, 6229, 2673, 3285, 13, 462, 462, 308, 11565, 292, 29918, 8513, 29918, 12676, 29918, 517, 12360, 29922, 5574, 29892, 13, 462, 462, 308, 11565, 292, 29918, 8513, 29918, 25932, 29918, 6979, 29922, 8824, 29892, 13, 462, 462, 308, 11565, 292, 29918, 8513, 29918, 3317, 29918, 517, 12360, 29922, 8824, 29897, 13, 13, 1678, 282, 5311, 29918, 1145, 344, 29918, 4299, 353, 4733, 29889, 29928, 1947, 29898, 262, 29918, 22100, 29922, 567, 29887, 29918, 10109, 292, 29918, 4299, 29889, 657, 29918, 18616, 663, 29918, 17987, 8497, 29918, 6229, 2673, 3285, 13, 462, 462, 268, 714, 29918, 22100, 29922, 449, 29918, 22100, 29892, 13, 462, 462, 268, 26229, 29918, 2220, 29922, 15755, 29889, 29911, 27731, 3101, 13, 13, 1678, 2346, 29918, 4299, 353, 8701, 29903, 296, 663, 13372, 261, 29898, 7576, 11759, 1972, 29918, 1742, 29918, 17987, 8497, 29918, 4299, 29892, 2346, 29918, 10109, 292, 29918, 4299, 29892, 13, 462, 462, 462, 268, 2346, 29918, 1145, 344, 29918, 4299, 2314, 13, 1678, 282, 5311, 29918, 4299, 353, 28048, 663, 13372, 261, 29898, 7576, 11759, 567, 29887, 29918, 1742, 29918, 17987, 8497, 29918, 4299, 29892, 282, 5311, 29918, 10109, 292, 29918, 4299, 29892, 282, 5311, 29918, 1145, 344, 29918, 4299, 2314, 13, 13, 1678, 1904, 353, 13641, 10299, 928, 6821, 5402, 3195, 29898, 1972, 29918, 9067, 261, 29922, 1972, 29918, 4299, 29892, 282, 5311, 29918, 9067, 261, 29922, 567, 29887, 29918, 4299, 29892, 4742, 29922, 10141, 29897, 13, 13, 1678, 7945, 29918, 29881, 2075, 29877, 1664, 353, 3630, 10036, 29898, 14968, 29918, 19594, 29918, 1272, 29892, 528, 21897, 29922, 5574, 29892, 9853, 29918, 2311, 29922, 29896, 29897, 13, 1678, 6161, 1061, 353, 13641, 6821, 5402, 29923, 4387, 1061, 29889, 3166, 29918, 2080, 29918, 19057, 29898, 791, 29918, 19594, 29918, 1272, 29892, 671, 29918, 4299, 29918, 10141, 29897, 13, 1678, 1243, 29918, 24219, 1061, 353, 13641, 6821, 5402, 29923, 4387, 1061, 29889, 3166, 29918, 2080, 29918, 19057, 29898, 1688, 29918, 19594, 29918, 1272, 29892, 671, 29918, 4299, 29918, 10141, 29897, 13, 13, 1678, 14294, 786, 29918, 24530, 353, 938, 29898, 2435, 29898, 14968, 29918, 29881, 2075, 29877, 1664, 29897, 334, 954, 29918, 1022, 2878, 29879, 334, 14294, 786, 29918, 1154, 29897, 29871, 396, 29871, 29896, 29900, 29995, 310, 7945, 848, 13, 13, 1678, 1596, 703, 29965, 593, 22042, 4180, 1159, 13, 1678, 1904, 29889, 517, 29898, 10141, 29897, 13, 1678, 6161, 1061, 29898, 4299, 29897, 13, 13, 1678, 7945, 29918, 29881, 2075, 29877, 1664, 29889, 1054, 9632, 29918, 9144, 353, 1904, 29889, 1972, 29918, 16175, 29918, 1054, 9632, 29918, 9144, 13, 13, 1678, 396, 28186, 278, 1904, 13, 1678, 1900, 29918, 13628, 353, 448, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 13, 1678, 565, 6576, 29918, 546, 29918, 1022, 2878, 338, 6213, 470, 6576, 29918, 546, 29918, 1022, 2878, 1275, 29871, 29900, 29901, 13, 4706, 6576, 29918, 546, 29918, 1022, 2878, 353, 7431, 29898, 14968, 29918, 29881, 2075, 29877, 1664, 29897, 13, 1678, 954, 29918, 14968, 29918, 24530, 353, 938, 29898, 24530, 29918, 546, 29918, 1022, 2878, 334, 954, 29918, 1022, 2878, 29879, 29897, 13, 1678, 1828, 29918, 20640, 3950, 353, 1051, 29898, 4299, 29889, 17514, 29918, 16744, 3101, 13, 1678, 694, 29918, 7099, 388, 353, 6024, 29890, 3173, 742, 525, 14420, 29940, 555, 29889, 29890, 3173, 742, 525, 14420, 29940, 555, 29889, 7915, 2033, 13, 1678, 5994, 3950, 29918, 2972, 287, 29918, 16744, 353, 518, 13, 4706, 11117, 7529, 2396, 518, 29886, 363, 302, 29892, 282, 297, 1828, 29918, 20640, 3950, 565, 451, 738, 29898, 299, 297, 302, 363, 29871, 299, 297, 694, 29918, 7099, 388, 29897, 1402, 13, 308, 525, 7915, 29918, 7099, 388, 2396, 7688, 29918, 7099, 388, 1118, 13, 4706, 11117, 7529, 2396, 518, 29886, 363, 302, 29892, 282, 297, 1828, 29918, 20640, 3950, 565, 738, 29898, 299, 297, 302, 363, 29871, 299, 297, 694, 29918, 7099, 388, 29897, 1402, 525, 7915, 29918, 7099, 388, 2396, 29871, 29900, 29889, 29900, 29913, 13, 1678, 4514, 13, 1678, 848, 29918, 1524, 353, 4256, 29898, 14968, 29918, 29881, 2075, 29877, 1664, 29897, 13, 1678, 5994, 3950, 353, 5994, 3950, 29918, 1990, 29898, 20640, 3950, 29918, 2972, 287, 29918, 16744, 29892, 3579, 20640, 3950, 29918, 7529, 29897, 13, 1678, 1364, 14952, 29918, 5415, 353, 1904, 3032, 657, 29918, 816, 14952, 29898, 20640, 3950, 29892, 1364, 14952, 29922, 816, 14952, 29892, 14294, 786, 29918, 24530, 29922, 29893, 2817, 786, 29918, 24530, 29892, 13, 462, 462, 4706, 260, 29918, 7827, 29922, 1949, 29918, 14968, 29918, 24530, 29897, 13, 1678, 2295, 353, 11117, 1022, 2878, 29879, 2396, 954, 29918, 1022, 2878, 29879, 29892, 525, 24530, 29918, 546, 29918, 1022, 2878, 2396, 6576, 29918, 546, 29918, 1022, 2878, 29913, 13, 1678, 5534, 29918, 10568, 353, 29871, 29900, 13, 1678, 6410, 29918, 4299, 353, 14129, 29880, 5402, 29931, 2209, 3195, 29898, 4299, 29892, 4742, 29892, 14013, 29918, 791, 29892, 1072, 29897, 13, 1678, 363, 21502, 305, 297, 534, 927, 29898, 2917, 29889, 657, 877, 1022, 2878, 29879, 5477, 5153, 543, 29923, 1129, 305, 613, 11262, 29922, 1333, 1510, 29918, 18035, 29918, 1646, 1125, 13, 4706, 6694, 29918, 24530, 353, 29871, 29900, 13, 4706, 2734, 29918, 6758, 29918, 29900, 353, 29871, 29900, 29889, 29900, 13, 4706, 1904, 29889, 9171, 29918, 5105, 580, 13, 4706, 1904, 29889, 14968, 580, 13, 4706, 565, 451, 7945, 29918, 567, 29887, 29918, 4299, 29901, 13, 9651, 363, 286, 297, 1904, 29889, 567, 29887, 29918, 4299, 29889, 7576, 7295, 13, 18884, 286, 29889, 26495, 353, 7700, 13, 4706, 363, 903, 297, 534, 927, 29898, 2917, 29889, 657, 877, 24530, 29918, 546, 29918, 1022, 2878, 5477, 5153, 543, 13463, 362, 613, 1560, 29877, 6046, 29922, 29900, 29889, 29900, 29945, 29892, 11262, 29922, 1333, 1510, 29918, 18035, 29918, 1646, 1125, 13, 9651, 1018, 29901, 13, 18884, 848, 353, 2446, 29898, 1272, 29918, 1524, 29897, 13, 9651, 5174, 22303, 13463, 362, 29901, 13, 18884, 848, 29918, 1524, 353, 4256, 29898, 14968, 29918, 29881, 2075, 29877, 1664, 29897, 13, 18884, 848, 353, 2446, 29898, 1272, 29918, 1524, 29897, 13, 9651, 2346, 29918, 14394, 29892, 282, 5311, 29918, 22100, 29892, 11073, 353, 848, 13, 9651, 565, 4236, 29918, 14968, 29918, 2311, 1405, 29871, 29900, 322, 11073, 29889, 12181, 29961, 29896, 29962, 1405, 4236, 29918, 14968, 29918, 2311, 29901, 13, 18884, 1596, 877, 2574, 3262, 2777, 411, 525, 29974, 710, 29898, 21134, 29889, 12181, 29961, 29896, 2314, 23097, 1209, 1179, 1495, 13, 18884, 6773, 13, 9651, 6410, 29918, 791, 353, 6410, 29918, 4299, 29898, 1972, 29918, 14394, 29892, 282, 5311, 29918, 22100, 29892, 11073, 29897, 13, 9651, 2734, 29918, 6758, 29918, 29900, 4619, 6410, 29918, 791, 29889, 667, 580, 13, 9651, 6410, 29918, 791, 29889, 1627, 1328, 580, 13, 9651, 4842, 305, 29889, 15755, 29889, 13239, 29889, 24049, 29918, 5105, 29918, 12324, 23538, 4299, 29889, 16744, 3285, 4236, 29918, 5105, 29918, 12324, 29897, 13, 9651, 5994, 3950, 29889, 10568, 580, 13, 9651, 5994, 3950, 29889, 9171, 29918, 5105, 580, 13, 9651, 1364, 14952, 29918, 5415, 29889, 10568, 580, 13, 9651, 6694, 29918, 24530, 4619, 29871, 29896, 13, 9651, 5534, 29918, 10568, 4619, 29871, 29896, 13, 13, 9651, 565, 19745, 29918, 24530, 1405, 29871, 29900, 322, 6694, 29918, 24530, 1273, 19745, 29918, 24530, 1275, 29871, 29900, 29901, 13, 18884, 12489, 3377, 29918, 13236, 29889, 1202, 29918, 19529, 279, 877, 26495, 29918, 6758, 742, 2734, 29918, 6758, 29918, 29900, 847, 19745, 29918, 24530, 29892, 5534, 29918, 10568, 29897, 13, 18884, 396, 17927, 29889, 12276, 29918, 19529, 279, 877, 29931, 2209, 742, 525, 26495, 29918, 6758, 742, 12541, 29922, 10945, 29918, 10568, 29892, 325, 13, 18884, 396, 394, 434, 29922, 21094, 29918, 6758, 29918, 29900, 29914, 24219, 362, 29918, 24530, 29897, 13, 18884, 2734, 29918, 6758, 29918, 29900, 353, 29871, 29900, 29889, 29900, 13, 18884, 396, 1583, 3032, 14513, 29918, 29881, 3864, 29918, 26495, 29898, 24219, 1061, 29892, 1962, 29918, 2084, 29892, 4078, 29918, 13318, 29918, 4299, 29892, 21502, 305, 29892, 6694, 29918, 24530, 29892, 6939, 29897, 13, 18884, 565, 6161, 1061, 338, 451, 6213, 29901, 13, 462, 1678, 8158, 353, 6161, 1061, 29898, 4299, 29892, 1962, 29918, 2084, 29922, 4905, 29918, 2084, 29892, 21502, 305, 29922, 1022, 2878, 29892, 6576, 29922, 26495, 29918, 24530, 29897, 13, 462, 1678, 12489, 3377, 29918, 13236, 29889, 1202, 29918, 19529, 279, 877, 791, 29918, 1718, 29902, 742, 8158, 29892, 5534, 29918, 10568, 29897, 13, 462, 1678, 396, 17927, 29889, 12276, 29918, 19529, 279, 877, 5323, 2827, 6728, 742, 525, 791, 29918, 1718, 29902, 742, 12541, 29922, 10945, 29918, 10568, 29892, 995, 29922, 13628, 29897, 13, 462, 1678, 565, 8158, 1405, 1900, 29918, 13628, 29901, 13, 462, 4706, 1900, 29918, 13628, 353, 8158, 13, 462, 4706, 565, 4078, 29918, 13318, 29918, 4299, 29901, 13, 462, 9651, 1596, 877, 29903, 5555, 1904, 472, 29901, 525, 718, 1962, 29918, 2084, 29897, 13, 462, 9651, 1904, 29889, 7620, 29898, 4905, 29918, 2084, 29897, 13, 18884, 1904, 29889, 9171, 29918, 5105, 580, 13, 18884, 1904, 29889, 14968, 580, 13, 18884, 565, 451, 7945, 29918, 567, 29887, 29918, 4299, 29901, 13, 462, 1678, 363, 286, 297, 1904, 29889, 567, 29887, 29918, 4299, 29889, 7576, 7295, 13, 462, 4706, 286, 29889, 26495, 353, 7700, 13, 4706, 565, 6161, 1061, 338, 451, 6213, 29901, 13, 9651, 8158, 353, 6161, 1061, 29898, 4299, 29892, 1962, 29918, 2084, 29922, 4905, 29918, 2084, 29892, 21502, 305, 29922, 1022, 2878, 29892, 6576, 29922, 26495, 29918, 24530, 29897, 13, 9651, 12489, 3377, 29918, 13236, 29889, 1202, 29918, 19529, 279, 877, 791, 29918, 1718, 29902, 742, 8158, 29892, 5534, 29918, 10568, 29897, 13, 9651, 396, 17927, 29889, 12276, 29918, 19529, 279, 877, 5323, 2827, 6728, 742, 525, 791, 29918, 1718, 29902, 742, 12541, 29922, 10945, 29918, 10568, 29892, 995, 29922, 13628, 29897, 13, 9651, 565, 8158, 1405, 1900, 29918, 13628, 29901, 13, 18884, 1900, 29918, 13628, 353, 8158, 13, 18884, 565, 4078, 29918, 13318, 29918, 4299, 29901, 13, 462, 1678, 1904, 29889, 7620, 29898, 4905, 29918, 2084, 29897, 13, 4706, 565, 1243, 29918, 24219, 1061, 338, 451, 6213, 29901, 13, 9651, 1900, 29918, 4299, 353, 13641, 10299, 928, 6821, 5402, 3195, 29898, 4905, 29918, 2084, 29897, 13, 9651, 565, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 7295, 13, 18884, 1904, 29889, 517, 29898, 7345, 305, 29889, 10141, 877, 21970, 8785, 13, 18884, 1900, 29918, 4299, 29889, 517, 29898, 10141, 29897, 13, 18884, 1243, 29918, 1306, 353, 1243, 29918, 24219, 1061, 29898, 13318, 29918, 4299, 29897, 13, 18884, 1900, 29918, 4299, 29889, 517, 29898, 7345, 305, 29889, 10141, 877, 21970, 8785, 13, 18884, 1904, 29889, 517, 29898, 10141, 29897, 13, 9651, 1683, 29901, 13, 18884, 1243, 29918, 1306, 353, 1243, 29918, 24219, 1061, 29898, 13318, 29918, 4299, 29897, 13, 9651, 12489, 3377, 29918, 13236, 29889, 1202, 29918, 19529, 279, 877, 1688, 29918, 1718, 29902, 742, 1243, 29918, 1306, 29892, 5534, 29918, 10568, 29897, 13, 9651, 396, 17927, 29889, 12276, 29918, 19529, 279, 877, 5323, 2827, 6728, 742, 525, 1688, 29918, 1718, 29902, 742, 12541, 29922, 10945, 29918, 10568, 29892, 995, 29922, 1688, 29918, 1306, 29897, 13, 1678, 565, 6161, 1061, 338, 6213, 322, 1962, 29918, 2084, 338, 451, 6213, 29901, 29871, 396, 1939, 6161, 1061, 29892, 541, 1962, 2224, 29901, 4078, 2186, 1904, 1873, 13, 4706, 1904, 29889, 7620, 29898, 4905, 29918, 2084, 29897, 13, 13, 1753, 4078, 29918, 3044, 303, 29918, 24713, 29898, 14968, 29918, 12292, 29918, 1445, 29892, 1616, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 610, 403, 486, 29892, 659, 29918, 27736, 29892, 714, 3972, 1125, 13, 1678, 1813, 29918, 862, 294, 29892, 6664, 29918, 22752, 29918, 3332, 29892, 903, 353, 679, 29918, 2484, 29883, 29918, 4130, 29898, 442, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 6213, 29897, 13, 1678, 282, 726, 29918, 8977, 353, 679, 29918, 862, 403, 486, 29918, 8977, 29898, 862, 403, 486, 29897, 13, 1678, 7945, 29918, 19594, 29918, 1272, 353, 5159, 13, 1678, 1243, 29918, 19594, 29918, 1272, 353, 5159, 13, 1678, 6515, 353, 5159, 13, 1678, 411, 1722, 29898, 14968, 29918, 12292, 29918, 1445, 29892, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 363, 301, 297, 285, 29901, 13, 9651, 6515, 29889, 4397, 29898, 29880, 29889, 29878, 17010, 28909, 29876, 8785, 13, 1678, 363, 474, 297, 534, 927, 29898, 2435, 29898, 12292, 22164, 13, 4706, 1813, 353, 6515, 29961, 29875, 29962, 13, 4706, 610, 294, 353, 1813, 29918, 862, 294, 29961, 3488, 29962, 13, 4706, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 353, 6571, 13, 4706, 363, 282, 297, 610, 294, 29901, 13, 9651, 5226, 353, 6664, 29918, 22752, 29918, 3332, 29961, 29886, 29962, 13, 9651, 565, 5226, 451, 297, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29889, 8149, 7295, 13, 18884, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 3471, 29962, 353, 518, 29886, 29962, 13, 9651, 1683, 29901, 13, 18884, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 3471, 1822, 4397, 29898, 29886, 29897, 13, 4706, 13926, 353, 1051, 29898, 842, 4197, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 29962, 363, 282, 297, 610, 294, 12622, 13, 4706, 7945, 29918, 862, 294, 353, 5159, 13, 4706, 1243, 29918, 862, 294, 353, 5159, 13, 4706, 363, 269, 297, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29889, 8149, 7295, 13, 9651, 1243, 29918, 862, 294, 4619, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 29879, 3816, 29901, 2435, 29898, 3488, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 29879, 2314, 458, 29906, 29962, 13, 9651, 7945, 29918, 862, 294, 4619, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 29879, 3816, 2435, 29898, 3488, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 29879, 2314, 458, 29906, 17531, 13, 4706, 1243, 29918, 21134, 353, 518, 27117, 29889, 2248, 29898, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 2314, 363, 282, 297, 1243, 29918, 862, 294, 29962, 13, 4706, 7945, 29918, 21134, 353, 518, 27117, 29889, 2248, 29898, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 2314, 363, 282, 297, 7945, 29918, 862, 294, 29962, 13, 4706, 1243, 29918, 862, 403, 486, 29879, 353, 518, 29886, 726, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 1243, 29918, 862, 294, 29962, 13, 4706, 7945, 29918, 862, 403, 486, 29879, 353, 518, 29886, 726, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 7945, 29918, 862, 294, 29962, 13, 4706, 2346, 29918, 726, 353, 525, 15300, 7122, 29898, 3488, 29889, 5451, 877, 264, 4594, 29901, 29861, 29896, 1822, 5451, 877, 29995, 29906, 29900, 8785, 13, 4706, 1243, 29918, 19594, 29918, 1272, 29889, 4397, 29898, 4290, 29911, 1525, 4174, 1718, 14023, 29898, 29939, 333, 29922, 3488, 29892, 3855, 29918, 4703, 29922, 1972, 29918, 726, 29892, 282, 4841, 29922, 1688, 29918, 862, 294, 29892, 13, 462, 462, 462, 268, 26442, 29922, 1688, 29918, 862, 403, 486, 29879, 29892, 3858, 29922, 9302, 29889, 2378, 29898, 1688, 29918, 21134, 4961, 13, 4706, 7945, 29918, 19594, 29918, 1272, 29889, 4397, 29898, 4290, 29911, 1525, 4174, 1718, 14023, 29898, 29939, 333, 29922, 3488, 29892, 3855, 29918, 4703, 29922, 1972, 29918, 726, 29892, 282, 4841, 29922, 14968, 29918, 862, 294, 29892, 13, 462, 462, 462, 268, 26442, 29922, 14968, 29918, 862, 403, 486, 29879, 29892, 3858, 29922, 9302, 29889, 2378, 29898, 14968, 29918, 21134, 4961, 13, 1678, 4036, 29889, 845, 21897, 29898, 1688, 29918, 19594, 29918, 1272, 29897, 13, 1678, 659, 29918, 19594, 29918, 1272, 353, 1243, 29918, 19594, 29918, 1272, 7503, 791, 29918, 27736, 29962, 13, 1678, 1243, 29918, 19594, 29918, 1272, 353, 1243, 29918, 19594, 29918, 1272, 29961, 791, 29918, 27736, 17531, 13, 1678, 411, 1722, 29898, 449, 3972, 718, 8207, 3044, 303, 29918, 2484, 617, 279, 29918, 14968, 29889, 29886, 6321, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 14968, 29918, 19594, 29918, 1272, 29892, 285, 29897, 13, 1678, 411, 1722, 29898, 449, 3972, 718, 8207, 3044, 303, 29918, 2484, 617, 279, 29918, 791, 29889, 29886, 6321, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 791, 29918, 19594, 29918, 1272, 29892, 285, 29897, 13, 1678, 411, 1722, 29898, 449, 3972, 718, 8207, 3044, 303, 29918, 2484, 617, 279, 29918, 1688, 29889, 29886, 6321, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 1688, 29918, 19594, 29918, 1272, 29892, 285, 29897, 13, 1678, 1596, 877, 3782, 29889, 310, 848, 8871, 448, 28186, 29901, 1273, 29945, 29881, 29892, 2630, 29901, 1273, 29945, 29881, 29892, 4321, 29901, 1273, 29945, 29881, 29915, 1273, 313, 2435, 29898, 14968, 29918, 19594, 29918, 1272, 511, 7431, 29898, 791, 29918, 19594, 29918, 1272, 511, 13, 462, 462, 462, 462, 539, 7431, 29898, 1688, 29918, 19594, 29918, 1272, 4961, 13, 13, 1753, 4078, 29918, 3044, 329, 29918, 24713, 29898, 14968, 29918, 12292, 29918, 1445, 29892, 1616, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 610, 403, 486, 29892, 659, 29918, 27736, 29892, 714, 3972, 1125, 13, 1678, 1813, 29918, 862, 294, 29892, 6664, 29918, 22752, 29918, 3332, 29892, 903, 353, 679, 29918, 2484, 29883, 29918, 4130, 29898, 442, 29918, 29939, 2674, 29879, 29892, 2246, 29918, 29939, 2674, 29879, 29892, 6213, 29897, 13, 1678, 282, 726, 29918, 8977, 353, 679, 29918, 862, 403, 486, 29918, 8977, 29898, 862, 403, 486, 29897, 13, 1678, 7945, 29918, 19594, 29918, 1272, 353, 5159, 13, 1678, 1243, 29918, 19594, 29918, 1272, 353, 5159, 13, 1678, 6515, 353, 5159, 13, 1678, 411, 1722, 29898, 14968, 29918, 12292, 29918, 1445, 29892, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 363, 301, 297, 285, 29901, 13, 9651, 6515, 29889, 4397, 29898, 29880, 29889, 29878, 17010, 28909, 29876, 8785, 13, 1678, 363, 474, 297, 534, 927, 29898, 2435, 29898, 12292, 22164, 13, 4706, 1813, 353, 6515, 29961, 29875, 29962, 13, 4706, 610, 294, 353, 1813, 29918, 862, 294, 29961, 3488, 29962, 13, 4706, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 353, 6571, 13, 4706, 363, 282, 297, 610, 294, 29901, 13, 9651, 5226, 353, 6664, 29918, 22752, 29918, 3332, 29961, 29886, 29962, 13, 9651, 565, 5226, 451, 297, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29889, 8149, 7295, 13, 18884, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 3471, 29962, 353, 518, 29886, 29962, 13, 9651, 1683, 29901, 13, 18884, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 3471, 1822, 4397, 29898, 29886, 29897, 13, 4706, 13926, 353, 1051, 29898, 842, 4197, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 29962, 363, 282, 297, 610, 294, 12622, 13, 4706, 4036, 29889, 845, 21897, 29898, 27117, 29897, 13, 4706, 1243, 29918, 27117, 29892, 7945, 29918, 27117, 353, 13926, 7503, 2435, 29898, 27117, 29897, 458, 29906, 1402, 13926, 29961, 2435, 29898, 27117, 29897, 458, 29906, 17531, 13, 4706, 7945, 29918, 862, 294, 353, 5159, 13, 4706, 1243, 29918, 862, 294, 353, 5159, 13, 4706, 363, 269, 297, 1243, 29918, 27117, 29901, 13, 9651, 1243, 29918, 862, 294, 4619, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 29879, 29962, 13, 4706, 363, 269, 297, 7945, 29918, 27117, 29901, 13, 9651, 7945, 29918, 862, 294, 4619, 1813, 29918, 3471, 29918, 22752, 29918, 8977, 29961, 29879, 29962, 13, 4706, 1243, 29918, 21134, 353, 518, 27117, 29889, 2248, 29898, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 2314, 363, 282, 297, 1243, 29918, 862, 294, 29962, 13, 4706, 7945, 29918, 21134, 353, 518, 27117, 29889, 2248, 29898, 13478, 29918, 22752, 29918, 3332, 29961, 29886, 2314, 363, 282, 297, 7945, 29918, 862, 294, 29962, 13, 4706, 1243, 29918, 862, 403, 486, 29879, 353, 518, 29886, 726, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 1243, 29918, 862, 294, 29962, 13, 4706, 7945, 29918, 862, 403, 486, 29879, 353, 518, 29886, 726, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 7945, 29918, 862, 294, 29962, 13, 4706, 2346, 29918, 726, 353, 525, 15300, 7122, 29898, 3488, 29889, 5451, 877, 264, 4594, 29901, 29861, 29896, 1822, 5451, 877, 29995, 29906, 29900, 8785, 13, 4706, 1243, 29918, 19594, 29918, 1272, 29889, 4397, 29898, 4290, 29911, 1525, 4174, 1718, 14023, 29898, 29939, 333, 29922, 3488, 29892, 3855, 29918, 4703, 29922, 1972, 29918, 726, 29892, 282, 4841, 29922, 1688, 29918, 862, 294, 29892, 13, 462, 462, 462, 268, 26442, 29922, 1688, 29918, 862, 403, 486, 29879, 29892, 3858, 29922, 9302, 29889, 2378, 29898, 1688, 29918, 21134, 4961, 13, 4706, 7945, 29918, 19594, 29918, 1272, 29889, 4397, 29898, 4290, 29911, 1525, 4174, 1718, 14023, 29898, 29939, 333, 29922, 3488, 29892, 3855, 29918, 4703, 29922, 1972, 29918, 726, 29892, 282, 4841, 29922, 14968, 29918, 862, 294, 29892, 13, 462, 462, 462, 418, 26442, 29922, 14968, 29918, 862, 403, 486, 29879, 29892, 3858, 29922, 9302, 29889, 2378, 29898, 14968, 29918, 21134, 4961, 13, 1678, 4036, 29889, 845, 21897, 29898, 1688, 29918, 19594, 29918, 1272, 29897, 13, 1678, 659, 29918, 19594, 29918, 1272, 353, 1243, 29918, 19594, 29918, 1272, 7503, 791, 29918, 27736, 29962, 13, 1678, 1243, 29918, 19594, 29918, 1272, 353, 1243, 29918, 19594, 29918, 1272, 29961, 791, 29918, 27736, 17531, 13, 1678, 411, 1722, 29898, 449, 3972, 718, 8207, 3044, 329, 29918, 2484, 617, 279, 29918, 14968, 29889, 29886, 6321, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 14968, 29918, 19594, 29918, 1272, 29892, 285, 29897, 13, 1678, 411, 1722, 29898, 449, 3972, 718, 8207, 3044, 329, 29918, 2484, 617, 279, 29918, 791, 29889, 29886, 6321, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 791, 29918, 19594, 29918, 1272, 29892, 285, 29897, 13, 1678, 411, 1722, 29898, 449, 3972, 718, 8207, 3044, 329, 29918, 2484, 617, 279, 29918, 1688, 29889, 29886, 6321, 742, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 1688, 29918, 19594, 29918, 1272, 29892, 285, 29897, 13, 1678, 1596, 29898, 13, 4706, 525, 3782, 29889, 310, 848, 8871, 448, 28186, 29901, 1273, 29945, 29881, 29892, 2630, 29901, 1273, 29945, 29881, 29892, 4321, 29901, 1273, 29945, 29881, 29915, 1273, 313, 2435, 29898, 14968, 29918, 19594, 29918, 1272, 511, 7431, 29898, 791, 29918, 19594, 29918, 1272, 511, 13, 462, 462, 462, 462, 268, 7431, 29898, 1688, 29918, 19594, 29918, 1272, 4961, 13, 1753, 4078, 29918, 29879, 2151, 29918, 1590, 5779, 29898, 29879, 2151, 29918, 4299, 29918, 978, 29892, 6515, 29918, 2084, 29892, 1616, 29918, 29939, 2674, 29879, 29892, 610, 403, 486, 29918, 1445, 29892, 714, 2084, 1125, 13, 1678, 269, 2151, 353, 28048, 663, 13372, 261, 29898, 29879, 2151, 29918, 4299, 29918, 978, 29897, 13, 1678, 1813, 29918, 862, 294, 29892, 17117, 903, 353, 679, 29918, 2484, 29883, 29918, 4130, 29898, 442, 29918, 29939, 2674, 29879, 29892, 6213, 29892, 6213, 29897, 13, 1678, 610, 403, 486, 29918, 8977, 353, 679, 29918, 862, 403, 486, 29918, 8977, 29898, 862, 403, 486, 29918, 1445, 29897, 13, 1678, 610, 294, 353, 5159, 13, 1678, 610, 403, 486, 29879, 353, 5159, 13, 1678, 411, 1722, 29898, 12292, 29918, 2084, 29892, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 363, 301, 297, 285, 29901, 13, 9651, 1813, 353, 301, 29889, 29878, 17010, 28909, 29876, 1495, 13, 9651, 610, 294, 4619, 1813, 29918, 862, 294, 29961, 3488, 29962, 13, 9651, 610, 403, 486, 29879, 4619, 518, 862, 403, 486, 29918, 8977, 29961, 29886, 29962, 363, 282, 297, 1813, 29918, 862, 294, 29961, 3488, 5262, 13, 1678, 1596, 29898, 710, 29898, 2435, 29898, 862, 403, 486, 29879, 876, 23097, 610, 294, 304, 367, 18511, 1495, 13, 1678, 1702, 29918, 17987, 29881, 886, 353, 269, 2151, 29889, 12508, 29898, 862, 403, 486, 29879, 29892, 1510, 29918, 18035, 29918, 1646, 29922, 5574, 29897, 13, 1678, 1702, 29918, 1272, 353, 11117, 22752, 4841, 2396, 610, 294, 29892, 525, 862, 1351, 2395, 2396, 1702, 29918, 17987, 29881, 886, 29913, 13, 1678, 411, 1722, 29898, 449, 2084, 29892, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 4706, 5839, 280, 29889, 15070, 29898, 22752, 29918, 1272, 29892, 285, 29897, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 6558, 2578, 617, 279, 15729, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 262, 742, 525, 489, 2080, 29918, 3972, 742, 2322, 2433, 29914, 5184, 29914, 808, 29896, 29896, 29900, 29945, 29914, 2083, 6949, 29914, 2484, 29883, 29918, 24713, 29914, 14968, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 449, 742, 525, 489, 4905, 29918, 4299, 29918, 2084, 742, 2322, 2433, 29914, 5184, 29914, 808, 29896, 29896, 29900, 29945, 29914, 2083, 6949, 29914, 1327, 29918, 19594, 29918, 9794, 29914, 7382, 29918, 4299, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 23521, 742, 525, 489, 4299, 29918, 978, 742, 2322, 2433, 5721, 309, 2151, 29899, 3188, 29899, 4661, 1463, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 3137, 742, 525, 489, 6758, 742, 2322, 2433, 1327, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 21457, 742, 525, 489, 2892, 29918, 791, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29906, 29900, 29900, 29889, 29900, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29890, 742, 525, 489, 3571, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29896, 29900, 29889, 29900, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 11007, 742, 525, 489, 1727, 29918, 3075, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29906, 29889, 29945, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 1022, 742, 525, 489, 1949, 29918, 1022, 2878, 742, 1134, 29922, 524, 29892, 2322, 29922, 29941, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 5652, 742, 525, 489, 29893, 2817, 786, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29889, 29896, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 267, 742, 525, 489, 14513, 29918, 24530, 742, 1134, 29922, 524, 29892, 2322, 29922, 29896, 29900, 29900, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 3487, 742, 525, 489, 3317, 29918, 11249, 29918, 2311, 742, 1134, 29922, 524, 29892, 2322, 10457, 29896, 29897, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 1062, 742, 525, 489, 4548, 29918, 1853, 742, 2322, 2433, 3044, 303, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29887, 3746, 29918, 14513, 742, 2322, 29922, 8824, 29892, 3158, 2433, 8899, 29918, 3009, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 14968, 29918, 567, 29887, 29918, 4299, 742, 2322, 29922, 8824, 29892, 3158, 2433, 8899, 29918, 3009, 1495, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 1678, 1881, 29918, 3972, 353, 6389, 29889, 2080, 29918, 3972, 13, 1678, 1962, 29918, 2084, 353, 6389, 29889, 4905, 29918, 4299, 29918, 2084, 13, 1678, 1904, 29918, 978, 353, 6389, 29889, 4299, 29918, 978, 13, 1678, 6410, 29918, 978, 353, 6389, 29889, 6758, 13, 1678, 14013, 29918, 791, 353, 6389, 29889, 2892, 29918, 791, 13, 1678, 21762, 353, 6389, 29889, 3571, 13, 1678, 1072, 353, 6389, 29889, 1727, 29918, 3075, 13, 1678, 21502, 12168, 353, 6389, 29889, 1949, 29918, 1022, 2878, 13, 1678, 14294, 786, 29918, 29888, 13857, 353, 6389, 29889, 29893, 2817, 786, 13, 1678, 19745, 29918, 24530, 353, 6389, 29889, 14513, 29918, 24530, 13, 1678, 4236, 29918, 11249, 29918, 2311, 353, 6389, 29889, 3317, 29918, 11249, 29918, 2311, 13, 1678, 1518, 29918, 1853, 353, 6389, 29889, 4548, 29918, 1853, 13, 1678, 330, 3746, 29918, 14513, 353, 6389, 29889, 29887, 3746, 29918, 14513, 13, 1678, 7945, 29918, 567, 29887, 29918, 4299, 353, 6389, 29889, 14968, 29918, 567, 29887, 29918, 4299, 13, 13, 1678, 565, 1518, 29918, 1853, 1275, 525, 3044, 303, 2396, 13, 4706, 411, 1722, 29898, 2080, 29918, 3972, 718, 8207, 3044, 303, 29914, 3044, 303, 29918, 2484, 617, 279, 29918, 14968, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 13, 9651, 7945, 29918, 19594, 29918, 1272, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 411, 1722, 29898, 2080, 29918, 3972, 718, 8207, 3044, 303, 29914, 3044, 303, 29918, 2484, 617, 279, 29918, 791, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 13, 9651, 659, 29918, 19594, 29918, 1272, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 411, 1722, 29898, 2080, 29918, 3972, 718, 8207, 3044, 303, 29914, 3044, 303, 29918, 2484, 617, 279, 29918, 1688, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 13, 9651, 1243, 29918, 19594, 29918, 1272, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 1678, 25342, 1518, 29918, 1853, 1275, 525, 3044, 329, 2396, 13, 4706, 411, 1722, 29898, 2080, 29918, 3972, 718, 8207, 3044, 329, 29914, 3044, 329, 29918, 2484, 617, 279, 29918, 14968, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 13, 9651, 7945, 29918, 19594, 29918, 1272, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 411, 1722, 29898, 2080, 29918, 3972, 718, 8207, 3044, 329, 29914, 3044, 329, 29918, 2484, 617, 279, 29918, 791, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 13, 9651, 659, 29918, 19594, 29918, 1272, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 4706, 411, 1722, 29898, 2080, 29918, 3972, 718, 8207, 3044, 329, 29914, 3044, 329, 29918, 2484, 617, 279, 29918, 1688, 29889, 29886, 6321, 742, 525, 6050, 1495, 408, 285, 29901, 13, 9651, 1243, 29918, 19594, 29918, 1272, 353, 5839, 280, 29889, 1359, 29898, 29888, 29897, 13, 13, 1678, 1596, 877, 1469, 7500, 29892, 6257, 304, 7945, 1495, 13, 13, 1678, 7945, 29898, 14968, 29918, 19594, 29918, 1272, 29892, 659, 29918, 19594, 29918, 1272, 29892, 1243, 29918, 19594, 29918, 1272, 29892, 1962, 29918, 2084, 29892, 19745, 29918, 24530, 29892, 21502, 12168, 29892, 14294, 786, 29918, 29888, 13857, 29892, 13, 3986, 14013, 29918, 791, 29892, 1072, 29892, 330, 3746, 29918, 14513, 29892, 4236, 29918, 14968, 29918, 2311, 29922, 3317, 29918, 11249, 29918, 2311, 29892, 7945, 29918, 567, 29887, 29918, 4299, 29922, 14968, 29918, 567, 29887, 29918, 4299, 29892, 13, 3986, 1904, 29918, 978, 29922, 4299, 29918, 978, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 2 ]
basic_synthesizer/basic_synthesizer.py
Privacy-Police/Differential-Privacy
0
182724
<reponame>Privacy-Police/Differential-Privacy import pandas as pd from categorical import CategoricalDistribution from gaussian import GaussianDistribution class BasicSynthesizer: """ Basic Synthesizer to compare with Normalizing Flows model """ def __init__(self, dataset): self.dataset = dataset self.analyze_dataset() def analyze_dataset(self): self.columns = {} # column_name : Distribution for column_name, _ in self.dataset.iteritems(): column = self.dataset[column_name] if str(column.dtype) == 'int64' or str(column.dtype) == 'float64': self.columns[column_name] = GaussianDistribution(column) elif str(column.dtype) == 'object': self.columns[column_name] = CategoricalDistribution(column) else: print('Unrecognized column type!') def sample(self, n): generated_columns = [pd.Series(dist.sample(n), name=column_name) for column_name, dist in self.columns.items()] return pd.concat(generated_columns, axis=1)
[ 1, 529, 276, 1112, 420, 29958, 29925, 1150, 4135, 29899, 7713, 625, 29914, 29928, 8349, 2556, 29899, 29925, 1150, 4135, 13, 5215, 11701, 408, 10518, 13, 13, 3166, 11608, 936, 1053, 315, 20440, 936, 13398, 3224, 13, 3166, 330, 17019, 1053, 22477, 13398, 3224, 13, 13, 1990, 19219, 29216, 26041, 3950, 29901, 13, 1678, 9995, 13, 1678, 19219, 10829, 26041, 3950, 304, 7252, 411, 21981, 5281, 22787, 29879, 1904, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8783, 1125, 13, 4706, 1583, 29889, 24713, 353, 8783, 13, 4706, 1583, 29889, 24209, 911, 29918, 24713, 580, 13, 268, 13, 1678, 822, 27599, 29918, 24713, 29898, 1311, 1125, 13, 4706, 1583, 29889, 13099, 353, 6571, 396, 1897, 29918, 978, 584, 17740, 13, 4706, 363, 1897, 29918, 978, 29892, 903, 297, 1583, 29889, 24713, 29889, 1524, 7076, 7295, 13, 9651, 1897, 353, 1583, 29889, 24713, 29961, 4914, 29918, 978, 29962, 13, 9651, 565, 851, 29898, 4914, 29889, 29881, 1853, 29897, 1275, 525, 524, 29953, 29946, 29915, 470, 851, 29898, 4914, 29889, 29881, 1853, 29897, 1275, 525, 7411, 29953, 29946, 2396, 13, 18884, 1583, 29889, 13099, 29961, 4914, 29918, 978, 29962, 353, 22477, 13398, 3224, 29898, 4914, 29897, 13, 9651, 25342, 851, 29898, 4914, 29889, 29881, 1853, 29897, 1275, 525, 3318, 2396, 13, 18884, 1583, 29889, 13099, 29961, 4914, 29918, 978, 29962, 353, 315, 20440, 936, 13398, 3224, 29898, 4914, 29897, 13, 9651, 1683, 29901, 13, 18884, 1596, 877, 2525, 29423, 1891, 1897, 1134, 29991, 1495, 13, 268, 13, 1678, 822, 4559, 29898, 1311, 29892, 302, 1125, 13, 4706, 5759, 29918, 13099, 353, 518, 15926, 29889, 19204, 29898, 5721, 29889, 11249, 29898, 29876, 511, 1024, 29922, 4914, 29918, 978, 29897, 363, 1897, 29918, 978, 29892, 1320, 297, 1583, 29889, 13099, 29889, 7076, 580, 29962, 13, 4706, 736, 10518, 29889, 17685, 29898, 13525, 29918, 13099, 29892, 9685, 29922, 29896, 29897, 13, 13, 13, 2 ]
src/sgp_ausgabe.py
TheresaHeim/Adafruit_Blinka
0
127350
<filename>src/sgp_ausgabe.py """ Example for using the SGP30 with CircuitPython and the Adafruit library""" import time import board import busio import adafruit_sgp30 i2c = busio.I2C(board.SCL, board.SDA, frequency=100000) # Create library object on our I2C port sgp30 = adafruit_sgp30.Adafruit_SGP30(i2c) ("SGP30 serial #", [hex(i) for i in sgp30.serial]) sgp30.iaq_init() sgp30.set_iaq_baseline(0x986b, 0x8a6a) elapsed_sec =0 datei = open('textdatei.txt','a') while elapsed_sec < 7200: print("eCO2 = %d ppm \t TVOC = %d ppb" % (sgp30.eCO2, sgp30.TVOC)) datei.write("%d ppm \t TVOC = %d ppb \n" % (sgp30.eCO2, sgp30.TVOC)) time.sleep(1) elapsed_sec += 1 #if elapsed_sec > 10: # elapsed_sec = 0 # print( # "**** Baseline values: eCO2 = 0x%x, TVOC = 0x%x" # % (sgp30.baseline_eCO2, sgp30.baseline_TVOC) # ) datei.close()
[ 1, 529, 9507, 29958, 4351, 29914, 5311, 29886, 29918, 1485, 14454, 29889, 2272, 13, 15945, 29908, 8741, 363, 773, 278, 317, 19903, 29941, 29900, 411, 12594, 3121, 11980, 322, 278, 23255, 29888, 9216, 3489, 15945, 29908, 13, 5215, 931, 13, 5215, 7613, 13, 5215, 3593, 601, 13, 5215, 594, 2142, 9216, 29918, 5311, 29886, 29941, 29900, 13, 13, 13, 29875, 29906, 29883, 353, 3593, 601, 29889, 29902, 29906, 29907, 29898, 3377, 29889, 29903, 6154, 29892, 7613, 29889, 7230, 29909, 29892, 10868, 29922, 29896, 29900, 29900, 29900, 29900, 29900, 29897, 13, 13, 29937, 6204, 3489, 1203, 373, 1749, 306, 29906, 29907, 2011, 13, 5311, 29886, 29941, 29900, 353, 594, 2142, 9216, 29918, 5311, 29886, 29941, 29900, 29889, 29909, 1388, 29888, 9216, 29918, 29903, 19903, 29941, 29900, 29898, 29875, 29906, 29883, 29897, 13, 13, 13, 703, 29903, 19903, 29941, 29900, 7797, 396, 613, 518, 20970, 29898, 29875, 29897, 363, 474, 297, 269, 29887, 29886, 29941, 29900, 29889, 15550, 2314, 13, 13, 5311, 29886, 29941, 29900, 29889, 423, 29939, 29918, 2344, 580, 13, 5311, 29886, 29941, 29900, 29889, 842, 29918, 423, 29939, 29918, 6500, 5570, 29898, 29900, 29916, 29929, 29947, 29953, 29890, 29892, 29871, 29900, 29916, 29947, 29874, 29953, 29874, 29897, 13, 13, 295, 28170, 29918, 3471, 353, 29900, 13, 13, 27563, 353, 1722, 877, 726, 27563, 29889, 3945, 3788, 29874, 1495, 13, 13, 8000, 560, 28170, 29918, 3471, 529, 29871, 29955, 29906, 29900, 29900, 29901, 13, 1678, 1596, 703, 29872, 3217, 29906, 353, 1273, 29881, 282, 3358, 320, 29873, 5648, 20166, 353, 1273, 29881, 6499, 29890, 29908, 1273, 313, 5311, 29886, 29941, 29900, 29889, 29872, 3217, 29906, 29892, 269, 29887, 29886, 29941, 29900, 29889, 8050, 20166, 876, 13, 1678, 2635, 29875, 29889, 3539, 11702, 29881, 282, 3358, 320, 29873, 5648, 20166, 353, 1273, 29881, 6499, 29890, 320, 29876, 29908, 1273, 313, 5311, 29886, 29941, 29900, 29889, 29872, 3217, 29906, 29892, 269, 29887, 29886, 29941, 29900, 29889, 8050, 20166, 876, 13, 1678, 931, 29889, 17059, 29898, 29896, 29897, 13, 1678, 560, 28170, 29918, 3471, 4619, 29871, 29896, 13, 1678, 396, 361, 560, 28170, 29918, 3471, 1405, 29871, 29896, 29900, 29901, 13, 1678, 396, 1678, 560, 28170, 29918, 3471, 353, 29871, 29900, 13, 1678, 396, 1678, 1596, 29898, 13, 1678, 396, 4706, 376, 2328, 4886, 5570, 1819, 29901, 321, 3217, 29906, 353, 29871, 29900, 29916, 29995, 29916, 29892, 5648, 20166, 353, 29871, 29900, 29916, 29995, 29916, 29908, 13, 1678, 396, 4706, 1273, 313, 5311, 29886, 29941, 29900, 29889, 6500, 5570, 29918, 29872, 3217, 29906, 29892, 269, 29887, 29886, 29941, 29900, 29889, 6500, 5570, 29918, 8050, 20166, 29897, 13, 1678, 396, 1678, 1723, 13, 27563, 29889, 5358, 580, 13, 13, 13, 2 ]
src/wi/utils/decorators.py
cc1-cloud/cc1
11
66230
# -*- coding: utf-8 -*- # @COPYRIGHT_begin # # Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland # # 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. # # @COPYRIGHT_end """@package src.wi.utils.decorators @author <NAME> @author <NAME> """ import logging from django.conf import settings from django.http import HttpResponseRedirect from django.utils.http import urlquote from wi.utils import REDIRECT_FIELD_NAME from wi.utils.messages_ajax import success from wi.utils.messages_codes import auth_error_text def django_view(fun): """ Logs any exception thrown by a view. """ wi_logger = logging.getLogger('wi_logger') def wrapper(*args, **kwargs): """ Returned decorated function. """ try: ret = fun(*args, **kwargs) except Exception, ex: wi_logger.exception('General exception: %s' % str(ex)) raise ex return ret wrapper.__module__ = fun.__module__ wrapper.__name__ = fun.__name__ wrapper.__doc__ = fun.__doc__ return wrapper login_url = settings.LOGIN_URL cm_login_url = '/admin_cm/login/' def user_permission(view_func): """ \b Decorator for views with logged user permissions. """ def wrap(request, *args, **kwds): """ Returned decorated function. """ if 'user' in request.session: return view_func(request, *args, **kwds) if request.is_ajax(): return success(unicode(auth_error_text), status=8002) path = urlquote(request.get_full_path()) tup = login_url, REDIRECT_FIELD_NAME, path return HttpResponseRedirect('%s?%s=%s' % tup) return wrap def admin_clm_permission(view_func): """ \b Decorator for views with logged Cloud Manager admin permissions. """ def wrap(request, *args, **kwds): """ Returned decorated function. """ if 'user' in request.session and request.session['user'].is_admin_clm: return view_func(request, *args, **kwds) if request.is_ajax(): return success(auth_error_text, status=8003) path = urlquote(request.get_full_path()) tup = login_url, REDIRECT_FIELD_NAME, path return HttpResponseRedirect('%s?%s=%s' % tup) return wrap def admin_cm_permission(view_func): """ \b Decorator for views with logged Cluster Manager admin permissions. """ def wrap(request, *args, **kwds): """ Returned decorated function. """ if 'user' in request.session and request.session['user'].is_logged_admin_cm: return view_func(request, *args, **kwds) if request.is_ajax(): return success(auth_error_text, status=8004) path = urlquote(request.get_full_path()) tup = cm_login_url, REDIRECT_FIELD_NAME, path return HttpResponseRedirect('%s?%s=%s' % tup) return wrap
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 732, 3217, 20055, 22789, 3912, 29918, 463, 13, 29937, 13, 29937, 14187, 1266, 518, 29906, 29900, 29896, 29900, 29899, 29906, 29900, 29896, 29946, 29962, 8907, 310, 405, 1682, 1945, 29837, 349, 2190, 29892, 22544, 340, 29892, 18898, 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, 1678, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 1678, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 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, 1678, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 1678, 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, 1678, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 1678, 27028, 1090, 278, 19245, 29889, 13, 29937, 13, 29937, 732, 3217, 20055, 22789, 3912, 29918, 355, 13, 13, 15945, 29908, 29992, 5113, 4765, 29889, 4353, 29889, 13239, 29889, 19557, 4097, 13, 13, 29992, 8921, 529, 5813, 29958, 13, 29992, 8921, 529, 5813, 29958, 13, 15945, 29908, 13, 13, 5215, 12183, 13, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 1124, 1053, 9056, 5103, 24735, 13, 3166, 9557, 29889, 13239, 29889, 1124, 1053, 3142, 1396, 13, 13, 3166, 281, 29875, 29889, 13239, 1053, 390, 3352, 29902, 26282, 29918, 3738, 27286, 29918, 5813, 13, 3166, 281, 29875, 29889, 13239, 29889, 19158, 29918, 6538, 1053, 2551, 13, 3166, 281, 29875, 29889, 13239, 29889, 19158, 29918, 18137, 1053, 4817, 29918, 2704, 29918, 726, 13, 13, 13, 1753, 9557, 29918, 1493, 29898, 7692, 1125, 13, 1678, 9995, 13, 1678, 4522, 29879, 738, 3682, 12005, 491, 263, 1776, 29889, 13, 1678, 9995, 13, 1678, 281, 29875, 29918, 21707, 353, 12183, 29889, 657, 16363, 877, 4353, 29918, 21707, 1495, 13, 13, 1678, 822, 14476, 10456, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 7106, 287, 10200, 630, 740, 29889, 13, 4706, 9995, 13, 4706, 1018, 29901, 13, 9651, 3240, 353, 2090, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 5174, 8960, 29892, 429, 29901, 13, 9651, 281, 29875, 29918, 21707, 29889, 11739, 877, 15263, 3682, 29901, 1273, 29879, 29915, 1273, 851, 29898, 735, 876, 13, 9651, 12020, 429, 13, 4706, 736, 3240, 13, 1678, 14476, 17255, 5453, 1649, 353, 2090, 17255, 5453, 1649, 13, 1678, 14476, 17255, 978, 1649, 353, 2090, 17255, 978, 1649, 13, 1678, 14476, 17255, 1514, 1649, 353, 2090, 17255, 1514, 1649, 13, 1678, 736, 14476, 13, 13, 7507, 29918, 2271, 353, 6055, 29889, 14480, 1177, 29918, 4219, 13, 4912, 29918, 7507, 29918, 2271, 353, 8207, 6406, 29918, 4912, 29914, 7507, 22208, 13, 13, 13, 1753, 1404, 29918, 16074, 29898, 1493, 29918, 9891, 1125, 13, 1678, 9995, 13, 1678, 320, 29890, 3826, 272, 1061, 363, 8386, 411, 13817, 1404, 11239, 29889, 13, 1678, 9995, 13, 1678, 822, 12244, 29898, 3827, 29892, 334, 5085, 29892, 3579, 11022, 6289, 1125, 13, 4706, 9995, 13, 4706, 7106, 287, 10200, 630, 740, 29889, 13, 4706, 9995, 13, 4706, 565, 525, 1792, 29915, 297, 2009, 29889, 7924, 29901, 13, 9651, 736, 1776, 29918, 9891, 29898, 3827, 29892, 334, 5085, 29892, 3579, 11022, 6289, 29897, 13, 4706, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 9651, 736, 2551, 29898, 2523, 356, 29898, 5150, 29918, 2704, 29918, 726, 511, 4660, 29922, 29947, 29900, 29900, 29906, 29897, 13, 4706, 2224, 353, 3142, 1396, 29898, 3827, 29889, 657, 29918, 8159, 29918, 2084, 3101, 13, 4706, 260, 786, 353, 6464, 29918, 2271, 29892, 390, 3352, 29902, 26282, 29918, 3738, 27286, 29918, 5813, 29892, 2224, 13, 4706, 736, 9056, 5103, 24735, 877, 29995, 29879, 29973, 29995, 29879, 16328, 29879, 29915, 1273, 260, 786, 29897, 13, 1678, 736, 12244, 13, 13, 13, 1753, 4113, 29918, 695, 29885, 29918, 16074, 29898, 1493, 29918, 9891, 1125, 13, 1678, 9995, 13, 1678, 320, 29890, 3826, 272, 1061, 363, 8386, 411, 13817, 14293, 15629, 4113, 11239, 29889, 13, 1678, 9995, 13, 1678, 822, 12244, 29898, 3827, 29892, 334, 5085, 29892, 3579, 11022, 6289, 1125, 13, 4706, 9995, 13, 4706, 7106, 287, 10200, 630, 740, 29889, 13, 4706, 9995, 13, 4706, 565, 525, 1792, 29915, 297, 2009, 29889, 7924, 322, 2009, 29889, 7924, 1839, 1792, 13359, 275, 29918, 6406, 29918, 695, 29885, 29901, 13, 9651, 736, 1776, 29918, 9891, 29898, 3827, 29892, 334, 5085, 29892, 3579, 11022, 6289, 29897, 13, 4706, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 9651, 736, 2551, 29898, 5150, 29918, 2704, 29918, 726, 29892, 4660, 29922, 29947, 29900, 29900, 29941, 29897, 13, 4706, 2224, 353, 3142, 1396, 29898, 3827, 29889, 657, 29918, 8159, 29918, 2084, 3101, 13, 4706, 260, 786, 353, 6464, 29918, 2271, 29892, 390, 3352, 29902, 26282, 29918, 3738, 27286, 29918, 5813, 29892, 2224, 13, 4706, 736, 9056, 5103, 24735, 877, 29995, 29879, 29973, 29995, 29879, 16328, 29879, 29915, 1273, 260, 786, 29897, 13, 1678, 736, 12244, 13, 13, 13, 1753, 4113, 29918, 4912, 29918, 16074, 29898, 1493, 29918, 9891, 1125, 13, 1678, 9995, 13, 1678, 320, 29890, 3826, 272, 1061, 363, 8386, 411, 13817, 2233, 5402, 15629, 4113, 11239, 29889, 13, 1678, 9995, 13, 1678, 822, 12244, 29898, 3827, 29892, 334, 5085, 29892, 3579, 11022, 6289, 1125, 13, 4706, 9995, 13, 4706, 7106, 287, 10200, 630, 740, 29889, 13, 4706, 9995, 13, 4706, 565, 525, 1792, 29915, 297, 2009, 29889, 7924, 322, 2009, 29889, 7924, 1839, 1792, 13359, 275, 29918, 1188, 3192, 29918, 6406, 29918, 4912, 29901, 13, 9651, 736, 1776, 29918, 9891, 29898, 3827, 29892, 334, 5085, 29892, 3579, 11022, 6289, 29897, 13, 4706, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 9651, 736, 2551, 29898, 5150, 29918, 2704, 29918, 726, 29892, 4660, 29922, 29947, 29900, 29900, 29946, 29897, 13, 4706, 2224, 353, 3142, 1396, 29898, 3827, 29889, 657, 29918, 8159, 29918, 2084, 3101, 13, 4706, 260, 786, 353, 7477, 29918, 7507, 29918, 2271, 29892, 390, 3352, 29902, 26282, 29918, 3738, 27286, 29918, 5813, 29892, 2224, 13, 4706, 736, 9056, 5103, 24735, 877, 29995, 29879, 29973, 29995, 29879, 16328, 29879, 29915, 1273, 260, 786, 29897, 13, 1678, 736, 12244, 13, 2 ]
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
36
15128
# encoding: utf-8 from __future__ import unicode_literals import six from django.db.models import Manager from django.db.models.query import QuerySet from .compat import (ANNOTATION_SELECT_CACHE_NAME, ANNOTATION_TO_AGGREGATE_ATTRIBUTES_MAP, chain_query, chain_queryset, ModelIterable, ValuesQuerySet) from .exceptions import QueryablePropertyDoesNotExist, QueryablePropertyError from .query import QueryablePropertiesQueryMixin from .utils import get_queryable_property from .utils.internal import InjectableMixin, QueryPath, QueryablePropertyReference class QueryablePropertiesIterable(InjectableMixin): """ An iterable that yields the actual results of a queryset while correctly processing columns of queryable properties. It is closely related to Django's BaseIterable and will be used as a mixin for its subclasses in all (recent) Django versions that have it. In all other (older) versions, this class will be used as a standalone iterable instead. """ def __init__(self, queryset, *args, **kwargs): """ Initialize a new iterable for the given queryset. If an iterable is given it will be used to retrieve the model instances before applying queryable properties logic (standalone usage for older Django versions). Otherwise, the __iter__ implementation of the base class is used to get the model instances (usage as mixin). :param QuerySet queryset: The queryset to perform the database query for. :param collections.Iterable iterable: The optional iterable to use for standalone usage. :param args: Positional arguments to pass through to the base class initialization when used as a mixin. :param kwargs: Keyword arguments to pass through to the base class initialization when used as a mixin. :keyword collections.Iterable iterable: The optional iterable to use for standalone usage. """ self.queryset = queryset # Only perform the super call if the class is used as a mixin if self.__class__.__bases__ != (InjectableMixin,): super(QueryablePropertiesIterable, self).__init__(queryset, *args, **kwargs) self.iterable = kwargs.get('iterable') or super(QueryablePropertiesIterable, self).__iter__() self.yields_model_instances = ((ModelIterable is not None and isinstance(self, ModelIterable)) or (ValuesQuerySet is not None and not isinstance(self.queryset, ValuesQuerySet))) def __iter__(self): """ Yield the model objects for the queryset associated with this iterator with their correctly processed selected queryable properties. :return: A generator that yields the model objects. """ original_query = self.queryset.query try: self.queryset.query = chain_query(original_query) final_aliases = self._setup_queryable_properties() for obj in self.iterable: if self.yields_model_instances: # Retrieve the annotation values from each renamed # attribute and use it to populate the cache for the # corresponding queryable property on each object while # removing the weird, renamed attributes. for changed_name, property_ref in six.iteritems(final_aliases): value = getattr(obj, changed_name) delattr(obj, changed_name) if property_ref: property_ref.descriptor.set_cached_value(obj, value) yield obj finally: self.queryset.query = original_query def _setup_queryable_properties(self): """ Perform the required setup to correctly process queryable property values. Change the internal aliases of the annotations that belong to queryable properties in the query of the associated queryset to something unique and return a dictionary mapping the queryable properties to the changed aliases. This is necessary to allow Django to populate the annotation attributes on the resulting model instances, which would otherwise call the setter of the queryable properties. This way, Django can populate attributes with different names and avoid using the setter methods. Also make sure that ordering by queryable properties works in older Django versions. :return: A dictionary mapping the final aliases for queryable properties to the corresponding references to be able to retrieve the values from the DB and apply them to the correct property. The property reference may be None, indicating that the retrieved value should be discarded. :rtype: dict[str, QueryablePropertyReference | None] """ query = self.queryset.query final_aliases = {} select = dict(query.annotation_select) for property_ref in query._queryable_property_annotations: annotation_name = six.text_type(property_ref.full_path) # Older Django versions don't work with the annotation select dict # when it comes to ordering, so queryable property annotations used # for ordering need special treatment. order_by_occurrences = [] if ANNOTATION_TO_AGGREGATE_ATTRIBUTES_MAP: # pragma: no cover order_by_occurrences = [index for index, field_name in enumerate(query.order_by) if field_name in (annotation_name, '-{}'.format(annotation_name))] if order_by_occurrences and annotation_name not in select and annotation_name in query.annotations: select[annotation_name] = query.annotations[annotation_name] final_aliases[annotation_name] = None if not self.yields_model_instances or annotation_name not in select: # The queryable property annotation does not require selection # or no renaming needs to occur since the queryset doesn't # yield model instances. continue # Suffix the original annotation name with the lookup separator to # create a non-clashing name: both model field an queryable # property names are not allowed to contain the separator and a # relation path ending with the separator would be invalid as well. changed_name = six.text_type(property_ref.full_path + '') final_aliases[changed_name] = final_aliases.pop(annotation_name, property_ref) select[changed_name] = select.pop(annotation_name) for index in order_by_occurrences: # pragma: no cover # Apply the changed names to the ORDER BY clause. query.order_by[index] = query.order_by[index].replace(annotation_name, changed_name) # Patch the correct select property on the query with the new names, # since this property is used by the SQL compiler to build the actual # SQL query (which is where the changed names should be used). setattr(query, ANNOTATION_SELECT_CACHE_NAME, select) return final_aliases class QueryablePropertiesQuerySetMixin(InjectableMixin): """ A mixin for Django's :class:`django.db.models.QuerySet` objects that allows to use queryable properties in filters, annotations and update queries. """ def init_injected_attrs(self): # To work correctly, a query using the QueryablePropertiesQueryMixin is # required. If the current query is not using the mixin already, it # will be dynamically injected into the query. That way, other Django # extensions using custom query objects are also supported. class_name = 'QueryableProperties' + self.query.__class__.__name__ self.query = QueryablePropertiesQueryMixin.inject_into_object(chain_query(self.query), class_name) @property def _iterable_class(self): # Override the regular _iterable_class attribute of recent Django # versions with a property that also stores the value in the instance # dict, but automatically mixes the QueryablePropertiesModelIterable # into the base class on getter access if the base class yields model # instances. That way, the queryable properties extensions stays # compatible to custom iterable classes while querysets can still be # pickled due to the base class being in the instance dict. cls = self.__dict__['_iterable_class'] return QueryablePropertiesIterable.mix_with_class(cls, 'QueryableProperties' + cls.__name__) @_iterable_class.setter def _iterable_class(self, value): self.__dict__['_iterable_class'] = value def _clone(self, klass=None, *args, **kwargs): if klass: # pragma: no cover # In older Django versions, the class of the queryset may be # replaced with a dynamically created class based on the current # class and the value of klass while cloning (e.g when using # .values()). Therefore this needs to be re-injected to be on top # of the MRO again to enable queryable properties functionality. klass = QueryablePropertiesQuerySetMixin.mix_with_class(klass, 'QueryableProperties' + klass.__name__) args = (klass,) + args clone = super(QueryablePropertiesQuerySetMixin, self)._clone(*args, **kwargs) # Since the _iterable_class property may return a dynamically created # class, the value of a clone must be reset to the base class. if '_iterable_class' in self.__dict__: clone._iterable_class = self.__dict__['_iterable_class'] return clone def _resolve_update_kwargs(self, **kwargs): """ Look for the names of queryable properties in the given keyword arguments for an update query and correctly resolve them into their actual keyword arguments. :param kwargs: Keyword arguments of an update query. :return: A dictionary containing the resolved arguments. :rtype: dict """ original_names = set(kwargs) for original_name in original_names: try: prop = get_queryable_property(self.model, original_name) except QueryablePropertyDoesNotExist: continue if not prop.get_update_kwargs: raise QueryablePropertyError('Queryable property "{}" does not implement queryset updating.' .format(prop)) # Call the method recursively since queryable properties can build # upon each other. additional_kwargs = self._resolve_update_kwargs( **prop.get_update_kwargs(self.model, kwargs.pop(original_name))) # Make sure that there are no conflicting values after resolving # the update keyword arguments of the queryable properties. for additional_name, value in six.iteritems(additional_kwargs): if additional_name in kwargs and kwargs[additional_name] != value: raise QueryablePropertyError( 'Updating queryable property "{prop}" would change field "{field}", but a conflicting value ' 'was set for this field by another queryable property or explicitly in the update arguments.' .format(prop=prop, field=additional_name) ) kwargs[additional_name] = value return kwargs def select_properties(self, *names): """ Add the annotations of the queryable properties with the specified names to this query. The annotation values will be cached in the properties of resulting model instances, regardless of the regular caching behavior of the queried properties. :param names: Names of queryable properties. :return: A copy of this queryset with the added annotations. :rtype: QuerySet """ queryset = chain_queryset(self) for name in names: property_ref = QueryablePropertyReference(get_queryable_property(self.model, name), self.model, QueryPath()) # A full GROUP BY is required if the query is not limited to # certain fields. Since only certain types of queries had the # _fields attribute in old Django versions, fall back to checking # for existing selection, on which the GROUP BY would be based. full_group_by = not getattr(self, '_fields', self.query.select) with queryset.query._add_queryable_property_annotation(property_ref, full_group_by, select=True): pass return queryset def iterator(self, *args, **kwargs): # Recent Django versions use the associated iterable class for the # iterator() implementation, where the QueryablePropertiesModelIterable # will be already mixed in. In older Django versions, use a standalone # QueryablePropertiesModelIterable instead to perform the queryable # properties processing. iterable = super(QueryablePropertiesQuerySetMixin, self).iterator(*args, **kwargs) if '_iterable_class' not in self.__dict__: # pragma: no cover return iter(QueryablePropertiesIterable(self, iterable=iterable)) return iterable def update(self, **kwargs): # Resolve any queryable properties into their actual update kwargs # before calling the base update method. kwargs = self._resolve_update_kwargs(**kwargs) return super(QueryablePropertiesQuerySetMixin, self).update(**kwargs) class QueryablePropertiesQuerySet(QueryablePropertiesQuerySetMixin, QuerySet): """ A special queryset class that allows to use queryable properties in its filter conditions, annotations and update queries. """ pass if hasattr(Manager, 'from_queryset'): QueryablePropertiesManager = Manager.from_queryset(QueryablePropertiesQuerySet) else: # pragma: no cover class QueryablePropertiesManager(Manager): def get_queryset(self): return QueryablePropertiesQuerySet(self.model, using=self._db) get_query_set = get_queryset def select_properties(self, *names): return self.get_queryset().select_properties(*names)
[ 1, 396, 8025, 29901, 23616, 29899, 29947, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 5215, 4832, 13, 3166, 9557, 29889, 2585, 29889, 9794, 1053, 15629, 13, 3166, 9557, 29889, 2585, 29889, 9794, 29889, 1972, 1053, 13641, 2697, 13, 13, 3166, 869, 12667, 1053, 313, 2190, 12256, 8098, 29918, 6404, 29918, 29907, 2477, 9606, 29918, 5813, 29892, 319, 10262, 2891, 8098, 29918, 4986, 29918, 10051, 29954, 18166, 3040, 29918, 1299, 29911, 3960, 29933, 2692, 2890, 29918, 23827, 29892, 9704, 29918, 1972, 29892, 9704, 29918, 1972, 842, 29892, 13, 462, 268, 8125, 13463, 519, 29892, 2630, 1041, 3010, 2697, 29897, 13, 3166, 869, 11739, 29879, 1053, 13641, 519, 4854, 25125, 3664, 1252, 391, 29892, 13641, 519, 4854, 2392, 13, 3166, 869, 1972, 1053, 13641, 519, 11857, 3010, 29924, 861, 262, 13, 3166, 869, 13239, 1053, 679, 29918, 1972, 519, 29918, 6799, 13, 3166, 869, 13239, 29889, 7564, 1053, 512, 622, 519, 29924, 861, 262, 29892, 13641, 2605, 29892, 13641, 519, 4854, 7422, 13, 13, 13, 1990, 13641, 519, 11857, 13463, 519, 29898, 28329, 519, 29924, 861, 262, 1125, 13, 1678, 9995, 13, 1678, 530, 4256, 519, 393, 17498, 278, 3935, 2582, 310, 263, 2346, 842, 1550, 5149, 13, 1678, 9068, 4341, 310, 2346, 519, 4426, 29889, 739, 338, 16467, 4475, 304, 13, 1678, 15337, 29915, 29879, 7399, 13463, 519, 322, 674, 367, 1304, 408, 263, 6837, 262, 363, 967, 1014, 13203, 297, 599, 13, 1678, 313, 276, 1760, 29897, 15337, 6910, 393, 505, 372, 29889, 512, 599, 916, 313, 3194, 29897, 6910, 29892, 445, 13, 1678, 770, 674, 367, 1304, 408, 263, 2317, 18785, 4256, 519, 2012, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2346, 842, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 25455, 263, 716, 4256, 519, 363, 278, 2183, 2346, 842, 29889, 960, 385, 4256, 519, 338, 13, 4706, 2183, 372, 674, 367, 1304, 304, 10563, 278, 1904, 8871, 1434, 15399, 13, 4706, 2346, 519, 4426, 5900, 313, 1689, 18785, 8744, 363, 9642, 15337, 13, 4706, 6910, 467, 13466, 29892, 278, 4770, 1524, 1649, 5314, 310, 278, 2967, 770, 13, 4706, 338, 1304, 304, 679, 278, 1904, 8871, 313, 21125, 408, 6837, 262, 467, 13, 13, 4706, 584, 3207, 13641, 2697, 2346, 842, 29901, 450, 2346, 842, 304, 2189, 278, 2566, 2346, 13, 462, 462, 29871, 363, 29889, 13, 4706, 584, 3207, 16250, 29889, 13463, 519, 4256, 519, 29901, 450, 13136, 4256, 519, 304, 671, 363, 13, 462, 462, 795, 2317, 18785, 8744, 29889, 13, 4706, 584, 3207, 6389, 29901, 10321, 3245, 6273, 304, 1209, 1549, 304, 278, 2967, 770, 13, 462, 268, 17865, 746, 1304, 408, 263, 6837, 262, 29889, 13, 4706, 584, 3207, 9049, 5085, 29901, 7670, 1742, 6273, 304, 1209, 1549, 304, 278, 2967, 770, 13, 462, 539, 17865, 746, 1304, 408, 263, 6837, 262, 29889, 13, 4706, 584, 26766, 16250, 29889, 13463, 519, 4256, 519, 29901, 450, 13136, 4256, 519, 304, 671, 13, 462, 462, 18884, 363, 2317, 18785, 8744, 29889, 13, 4706, 9995, 13, 4706, 1583, 29889, 1972, 842, 353, 2346, 842, 13, 4706, 396, 9333, 2189, 278, 2428, 1246, 565, 278, 770, 338, 1304, 408, 263, 6837, 262, 13, 4706, 565, 1583, 17255, 1990, 1649, 17255, 29890, 2129, 1649, 2804, 313, 28329, 519, 29924, 861, 262, 29892, 1125, 13, 9651, 2428, 29898, 3010, 519, 11857, 13463, 519, 29892, 1583, 467, 1649, 2344, 12035, 1972, 842, 29892, 334, 5085, 29892, 3579, 19290, 29897, 13, 4706, 1583, 29889, 1524, 519, 353, 9049, 5085, 29889, 657, 877, 1524, 519, 1495, 470, 2428, 29898, 3010, 519, 11857, 13463, 519, 29892, 1583, 467, 1649, 1524, 1649, 580, 13, 4706, 1583, 29889, 29891, 969, 29879, 29918, 4299, 29918, 2611, 2925, 353, 5135, 3195, 13463, 519, 338, 451, 6213, 322, 338, 8758, 29898, 1311, 29892, 8125, 13463, 519, 876, 470, 13, 462, 462, 539, 313, 9065, 3010, 2697, 338, 451, 6213, 322, 451, 338, 8758, 29898, 1311, 29889, 1972, 842, 29892, 2630, 1041, 3010, 2697, 4961, 13, 13, 1678, 822, 4770, 1524, 12035, 1311, 1125, 13, 4706, 9995, 13, 4706, 612, 969, 278, 1904, 3618, 363, 278, 2346, 842, 6942, 411, 445, 20380, 13, 4706, 411, 1009, 5149, 19356, 4629, 2346, 519, 4426, 29889, 13, 13, 4706, 584, 2457, 29901, 319, 15299, 393, 17498, 278, 1904, 3618, 29889, 13, 4706, 9995, 13, 4706, 2441, 29918, 1972, 353, 1583, 29889, 1972, 842, 29889, 1972, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 1972, 842, 29889, 1972, 353, 9704, 29918, 1972, 29898, 13492, 29918, 1972, 29897, 13, 9651, 2186, 29918, 2606, 2129, 353, 1583, 3032, 14669, 29918, 1972, 519, 29918, 11330, 580, 13, 13, 9651, 363, 5446, 297, 1583, 29889, 1524, 519, 29901, 13, 18884, 565, 1583, 29889, 29891, 969, 29879, 29918, 4299, 29918, 2611, 2925, 29901, 13, 462, 1678, 396, 4649, 29878, 2418, 278, 17195, 1819, 515, 1269, 19533, 13, 462, 1678, 396, 5352, 322, 671, 372, 304, 19450, 278, 7090, 363, 278, 13, 462, 1678, 396, 6590, 2346, 519, 2875, 373, 1269, 1203, 1550, 13, 462, 1678, 396, 11077, 278, 13543, 29892, 19533, 8393, 29889, 13, 462, 1678, 363, 3939, 29918, 978, 29892, 2875, 29918, 999, 297, 4832, 29889, 1524, 7076, 29898, 8394, 29918, 2606, 2129, 1125, 13, 462, 4706, 995, 353, 679, 5552, 29898, 5415, 29892, 3939, 29918, 978, 29897, 13, 462, 4706, 628, 5552, 29898, 5415, 29892, 3939, 29918, 978, 29897, 13, 462, 4706, 565, 2875, 29918, 999, 29901, 13, 462, 9651, 2875, 29918, 999, 29889, 2783, 11709, 29889, 842, 29918, 29883, 3791, 29918, 1767, 29898, 5415, 29892, 995, 29897, 13, 18884, 7709, 5446, 13, 4706, 7146, 29901, 13, 9651, 1583, 29889, 1972, 842, 29889, 1972, 353, 2441, 29918, 1972, 13, 13, 1678, 822, 903, 14669, 29918, 1972, 519, 29918, 11330, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 27313, 278, 3734, 6230, 304, 5149, 1889, 2346, 519, 2875, 13, 4706, 1819, 29889, 13, 13, 4706, 10726, 278, 7463, 14430, 2129, 310, 278, 25495, 393, 6852, 304, 2346, 519, 13, 4706, 4426, 297, 278, 2346, 310, 278, 6942, 2346, 842, 304, 1554, 5412, 13, 4706, 322, 736, 263, 8600, 10417, 278, 2346, 519, 4426, 304, 278, 3939, 13, 4706, 14430, 2129, 29889, 910, 338, 5181, 304, 2758, 15337, 304, 19450, 278, 17195, 13, 4706, 8393, 373, 278, 9819, 1904, 8871, 29892, 607, 723, 6467, 1246, 13, 4706, 278, 731, 357, 310, 278, 2346, 519, 4426, 29889, 910, 982, 29892, 15337, 508, 19450, 13, 4706, 8393, 411, 1422, 2983, 322, 4772, 773, 278, 731, 357, 3519, 29889, 13, 13, 4706, 3115, 1207, 1854, 393, 20520, 491, 2346, 519, 4426, 1736, 297, 9642, 13, 4706, 15337, 6910, 29889, 13, 13, 4706, 584, 2457, 29901, 319, 8600, 10417, 278, 2186, 14430, 2129, 363, 2346, 519, 13, 462, 4426, 304, 278, 6590, 9282, 304, 367, 2221, 304, 13, 462, 10563, 278, 1819, 515, 278, 6535, 322, 3394, 963, 304, 278, 1959, 13, 462, 2875, 29889, 450, 2875, 3407, 1122, 367, 6213, 29892, 23941, 393, 13, 462, 278, 27387, 995, 881, 367, 2313, 25600, 29889, 13, 4706, 584, 29878, 1853, 29901, 9657, 29961, 710, 29892, 13641, 519, 4854, 7422, 891, 6213, 29962, 13, 4706, 9995, 13, 4706, 2346, 353, 1583, 29889, 1972, 842, 29889, 1972, 13, 4706, 2186, 29918, 2606, 2129, 353, 6571, 13, 4706, 1831, 353, 9657, 29898, 1972, 29889, 18317, 29918, 2622, 29897, 13, 13, 4706, 363, 2875, 29918, 999, 297, 2346, 3032, 1972, 519, 29918, 6799, 29918, 6735, 800, 29901, 13, 9651, 17195, 29918, 978, 353, 4832, 29889, 726, 29918, 1853, 29898, 6799, 29918, 999, 29889, 8159, 29918, 2084, 29897, 13, 13, 9651, 396, 8198, 261, 15337, 6910, 1016, 29915, 29873, 664, 411, 278, 17195, 1831, 9657, 13, 9651, 396, 746, 372, 5304, 304, 20520, 29892, 577, 2346, 519, 2875, 25495, 1304, 13, 9651, 396, 363, 20520, 817, 4266, 14502, 29889, 13, 9651, 1797, 29918, 1609, 29918, 15693, 1038, 2063, 353, 5159, 13, 9651, 565, 319, 10262, 2891, 8098, 29918, 4986, 29918, 10051, 29954, 18166, 3040, 29918, 1299, 29911, 3960, 29933, 2692, 2890, 29918, 23827, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 18884, 1797, 29918, 1609, 29918, 15693, 1038, 2063, 353, 518, 2248, 363, 2380, 29892, 1746, 29918, 978, 297, 26985, 29898, 1972, 29889, 2098, 29918, 1609, 29897, 13, 462, 462, 4706, 565, 1746, 29918, 978, 297, 313, 18317, 29918, 978, 29892, 17411, 8875, 4286, 4830, 29898, 18317, 29918, 978, 28166, 13, 18884, 565, 1797, 29918, 1609, 29918, 15693, 1038, 2063, 322, 17195, 29918, 978, 451, 297, 1831, 322, 17195, 29918, 978, 297, 2346, 29889, 6735, 800, 29901, 13, 462, 1678, 1831, 29961, 18317, 29918, 978, 29962, 353, 2346, 29889, 6735, 800, 29961, 18317, 29918, 978, 29962, 13, 462, 1678, 2186, 29918, 2606, 2129, 29961, 18317, 29918, 978, 29962, 353, 6213, 13, 13, 9651, 565, 451, 1583, 29889, 29891, 969, 29879, 29918, 4299, 29918, 2611, 2925, 470, 17195, 29918, 978, 451, 297, 1831, 29901, 13, 18884, 396, 450, 2346, 519, 2875, 17195, 947, 451, 1996, 9262, 13, 18884, 396, 470, 694, 4325, 11500, 4225, 304, 6403, 1951, 278, 2346, 842, 1838, 29915, 29873, 13, 18884, 396, 7709, 1904, 8871, 29889, 13, 18884, 6773, 13, 13, 9651, 396, 2166, 600, 861, 278, 2441, 17195, 1024, 411, 278, 16280, 28128, 304, 13, 9651, 396, 1653, 263, 1661, 29899, 695, 1161, 292, 1024, 29901, 1716, 1904, 1746, 385, 2346, 519, 13, 9651, 396, 2875, 2983, 526, 451, 6068, 304, 1712, 278, 28128, 322, 263, 13, 9651, 396, 8220, 2224, 17140, 411, 278, 28128, 723, 367, 8340, 408, 1532, 29889, 13, 9651, 3939, 29918, 978, 353, 4832, 29889, 726, 29918, 1853, 29898, 6799, 29918, 999, 29889, 8159, 29918, 2084, 718, 27255, 13, 9651, 2186, 29918, 2606, 2129, 29961, 15033, 29918, 978, 29962, 353, 2186, 29918, 2606, 2129, 29889, 7323, 29898, 18317, 29918, 978, 29892, 2875, 29918, 999, 29897, 13, 9651, 1831, 29961, 15033, 29918, 978, 29962, 353, 1831, 29889, 7323, 29898, 18317, 29918, 978, 29897, 13, 9651, 363, 2380, 297, 1797, 29918, 1609, 29918, 15693, 1038, 2063, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 18884, 396, 2401, 368, 278, 3939, 2983, 304, 278, 15606, 6770, 11845, 29889, 13, 18884, 2346, 29889, 2098, 29918, 1609, 29961, 2248, 29962, 353, 2346, 29889, 2098, 29918, 1609, 29961, 2248, 1822, 6506, 29898, 18317, 29918, 978, 29892, 3939, 29918, 978, 29897, 13, 13, 4706, 396, 349, 905, 278, 1959, 1831, 2875, 373, 278, 2346, 411, 278, 716, 2983, 29892, 13, 4706, 396, 1951, 445, 2875, 338, 1304, 491, 278, 3758, 6516, 304, 2048, 278, 3935, 13, 4706, 396, 3758, 2346, 313, 4716, 338, 988, 278, 3939, 2983, 881, 367, 1304, 467, 13, 4706, 731, 5552, 29898, 1972, 29892, 319, 10262, 2891, 8098, 29918, 6404, 29918, 29907, 2477, 9606, 29918, 5813, 29892, 1831, 29897, 13, 4706, 736, 2186, 29918, 2606, 2129, 13, 13, 13, 1990, 13641, 519, 11857, 3010, 2697, 29924, 861, 262, 29898, 28329, 519, 29924, 861, 262, 1125, 13, 1678, 9995, 13, 1678, 319, 6837, 262, 363, 15337, 29915, 29879, 584, 1990, 18078, 14095, 29889, 2585, 29889, 9794, 29889, 3010, 2697, 29952, 3618, 393, 6511, 13, 1678, 304, 671, 2346, 519, 4426, 297, 18094, 29892, 25495, 322, 2767, 9365, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 2069, 29918, 21920, 287, 29918, 5552, 29879, 29898, 1311, 1125, 13, 4706, 396, 1763, 664, 5149, 29892, 263, 2346, 773, 278, 13641, 519, 11857, 3010, 29924, 861, 262, 338, 13, 4706, 396, 3734, 29889, 960, 278, 1857, 2346, 338, 451, 773, 278, 6837, 262, 2307, 29892, 372, 13, 4706, 396, 674, 367, 11200, 11658, 287, 964, 278, 2346, 29889, 2193, 982, 29892, 916, 15337, 13, 4706, 396, 17752, 773, 2888, 2346, 3618, 526, 884, 6969, 29889, 13, 4706, 770, 29918, 978, 353, 525, 3010, 519, 11857, 29915, 718, 1583, 29889, 1972, 17255, 1990, 1649, 17255, 978, 1649, 13, 4706, 1583, 29889, 1972, 353, 13641, 519, 11857, 3010, 29924, 861, 262, 29889, 21920, 29918, 8941, 29918, 3318, 29898, 14153, 29918, 1972, 29898, 1311, 29889, 1972, 511, 770, 29918, 978, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 903, 1524, 519, 29918, 1990, 29898, 1311, 1125, 13, 4706, 396, 6811, 2426, 278, 4943, 903, 1524, 519, 29918, 1990, 5352, 310, 7786, 15337, 13, 4706, 396, 6910, 411, 263, 2875, 393, 884, 14422, 278, 995, 297, 278, 2777, 13, 4706, 396, 9657, 29892, 541, 6336, 6837, 267, 278, 13641, 519, 11857, 3195, 13463, 519, 13, 4706, 396, 964, 278, 2967, 770, 373, 679, 357, 2130, 565, 278, 2967, 770, 17498, 1904, 13, 4706, 396, 8871, 29889, 2193, 982, 29892, 278, 2346, 519, 4426, 17752, 27111, 13, 4706, 396, 15878, 304, 2888, 4256, 519, 4413, 1550, 2346, 7224, 508, 1603, 367, 13, 4706, 396, 5839, 839, 2861, 304, 278, 2967, 770, 1641, 297, 278, 2777, 9657, 29889, 13, 4706, 1067, 29879, 353, 1583, 17255, 8977, 1649, 1839, 29918, 1524, 519, 29918, 1990, 2033, 13, 4706, 736, 13641, 519, 11857, 13463, 519, 29889, 28084, 29918, 2541, 29918, 1990, 29898, 25932, 29892, 525, 3010, 519, 11857, 29915, 718, 1067, 29879, 17255, 978, 1649, 29897, 13, 13, 1678, 732, 29918, 1524, 519, 29918, 1990, 29889, 842, 357, 13, 1678, 822, 903, 1524, 519, 29918, 1990, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 17255, 8977, 1649, 1839, 29918, 1524, 519, 29918, 1990, 2033, 353, 995, 13, 13, 1678, 822, 903, 16513, 29898, 1311, 29892, 22902, 29922, 8516, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 565, 22902, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 9651, 396, 512, 9642, 15337, 6910, 29892, 278, 770, 310, 278, 2346, 842, 1122, 367, 13, 9651, 396, 8611, 411, 263, 11200, 2825, 770, 2729, 373, 278, 1857, 13, 9651, 396, 770, 322, 278, 995, 310, 22902, 1550, 1067, 28259, 313, 29872, 29889, 29887, 746, 773, 13, 9651, 396, 869, 5975, 16655, 7857, 445, 4225, 304, 367, 337, 29899, 21920, 287, 304, 367, 373, 2246, 13, 9651, 396, 310, 278, 341, 1672, 1449, 304, 9025, 2346, 519, 4426, 9863, 29889, 13, 9651, 22902, 353, 13641, 519, 11857, 3010, 2697, 29924, 861, 262, 29889, 28084, 29918, 2541, 29918, 1990, 29898, 29895, 605, 29892, 525, 3010, 519, 11857, 29915, 718, 22902, 17255, 978, 1649, 29897, 13, 9651, 6389, 353, 313, 29895, 605, 29892, 29897, 718, 6389, 13, 4706, 17432, 353, 2428, 29898, 3010, 519, 11857, 3010, 2697, 29924, 861, 262, 29892, 1583, 467, 29918, 16513, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 396, 4001, 278, 903, 1524, 519, 29918, 1990, 2875, 1122, 736, 263, 11200, 2825, 13, 4706, 396, 770, 29892, 278, 995, 310, 263, 17432, 1818, 367, 10092, 304, 278, 2967, 770, 29889, 13, 4706, 565, 22868, 1524, 519, 29918, 1990, 29915, 297, 1583, 17255, 8977, 1649, 29901, 13, 9651, 17432, 3032, 1524, 519, 29918, 1990, 353, 1583, 17255, 8977, 1649, 1839, 29918, 1524, 519, 29918, 1990, 2033, 13, 4706, 736, 17432, 13, 13, 1678, 822, 903, 17863, 29918, 5504, 29918, 19290, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 7419, 363, 278, 2983, 310, 2346, 519, 4426, 297, 278, 2183, 13553, 13, 4706, 6273, 363, 385, 2767, 2346, 322, 5149, 8814, 963, 964, 1009, 13, 4706, 3935, 13553, 6273, 29889, 13, 13, 4706, 584, 3207, 9049, 5085, 29901, 7670, 1742, 6273, 310, 385, 2767, 2346, 29889, 13, 4706, 584, 2457, 29901, 319, 8600, 6943, 278, 11527, 6273, 29889, 13, 4706, 584, 29878, 1853, 29901, 9657, 13, 4706, 9995, 13, 4706, 2441, 29918, 7039, 353, 731, 29898, 19290, 29897, 13, 4706, 363, 2441, 29918, 978, 297, 2441, 29918, 7039, 29901, 13, 9651, 1018, 29901, 13, 18884, 3107, 353, 679, 29918, 1972, 519, 29918, 6799, 29898, 1311, 29889, 4299, 29892, 2441, 29918, 978, 29897, 13, 9651, 5174, 13641, 519, 4854, 25125, 3664, 1252, 391, 29901, 13, 18884, 6773, 13, 9651, 565, 451, 3107, 29889, 657, 29918, 5504, 29918, 19290, 29901, 13, 18884, 12020, 13641, 519, 4854, 2392, 877, 3010, 519, 2875, 29850, 5038, 947, 451, 2334, 2346, 842, 13271, 6169, 13, 462, 462, 632, 869, 4830, 29898, 7728, 876, 13, 13, 9651, 396, 8251, 278, 1158, 8304, 3598, 1951, 2346, 519, 4426, 508, 2048, 13, 9651, 396, 2501, 1269, 916, 29889, 13, 9651, 5684, 29918, 19290, 353, 1583, 3032, 17863, 29918, 5504, 29918, 19290, 29898, 13, 18884, 3579, 7728, 29889, 657, 29918, 5504, 29918, 19290, 29898, 1311, 29889, 4299, 29892, 9049, 5085, 29889, 7323, 29898, 13492, 29918, 978, 4961, 13, 9651, 396, 8561, 1854, 393, 727, 526, 694, 9476, 1259, 1819, 1156, 3770, 1747, 13, 9651, 396, 278, 2767, 13553, 6273, 310, 278, 2346, 519, 4426, 29889, 13, 9651, 363, 5684, 29918, 978, 29892, 995, 297, 4832, 29889, 1524, 7076, 29898, 1202, 3245, 29918, 19290, 1125, 13, 18884, 565, 5684, 29918, 978, 297, 9049, 5085, 322, 9049, 5085, 29961, 1202, 3245, 29918, 978, 29962, 2804, 995, 29901, 13, 462, 1678, 12020, 13641, 519, 4854, 2392, 29898, 13, 462, 4706, 525, 3373, 26747, 2346, 519, 2875, 29850, 7728, 5038, 723, 1735, 1746, 29850, 2671, 17671, 541, 263, 9476, 1259, 995, 525, 13, 462, 4706, 525, 11102, 731, 363, 445, 1746, 491, 1790, 2346, 519, 2875, 470, 9479, 297, 278, 2767, 6273, 6169, 13, 462, 4706, 869, 4830, 29898, 7728, 29922, 7728, 29892, 1746, 29922, 1202, 3245, 29918, 978, 29897, 13, 462, 1678, 1723, 13, 18884, 9049, 5085, 29961, 1202, 3245, 29918, 978, 29962, 353, 995, 13, 13, 4706, 736, 9049, 5085, 13, 13, 1678, 822, 1831, 29918, 11330, 29898, 1311, 29892, 334, 7039, 1125, 13, 4706, 9995, 13, 4706, 3462, 278, 25495, 310, 278, 2346, 519, 4426, 411, 278, 6790, 13, 4706, 2983, 304, 445, 2346, 29889, 450, 17195, 1819, 674, 367, 22152, 297, 278, 13, 4706, 4426, 310, 9819, 1904, 8871, 29892, 17126, 310, 278, 4943, 13, 4706, 22488, 6030, 310, 278, 22320, 1000, 4426, 29889, 13, 13, 4706, 584, 3207, 2983, 29901, 14706, 310, 2346, 519, 4426, 29889, 13, 4706, 584, 2457, 29901, 319, 3509, 310, 445, 2346, 842, 411, 278, 2715, 25495, 29889, 13, 4706, 584, 29878, 1853, 29901, 13641, 2697, 13, 4706, 9995, 13, 4706, 2346, 842, 353, 9704, 29918, 1972, 842, 29898, 1311, 29897, 13, 4706, 363, 1024, 297, 2983, 29901, 13, 9651, 2875, 29918, 999, 353, 13641, 519, 4854, 7422, 29898, 657, 29918, 1972, 519, 29918, 6799, 29898, 1311, 29889, 4299, 29892, 1024, 511, 1583, 29889, 4299, 29892, 13641, 2605, 3101, 13, 9651, 396, 319, 2989, 15345, 6770, 338, 3734, 565, 278, 2346, 338, 451, 9078, 304, 13, 9651, 396, 3058, 4235, 29889, 4001, 871, 3058, 4072, 310, 9365, 750, 278, 13, 9651, 396, 903, 9621, 5352, 297, 2030, 15337, 6910, 29892, 6416, 1250, 304, 8454, 13, 9651, 396, 363, 5923, 9262, 29892, 373, 607, 278, 15345, 6770, 723, 367, 2729, 29889, 13, 9651, 2989, 29918, 2972, 29918, 1609, 353, 451, 679, 5552, 29898, 1311, 29892, 22868, 9621, 742, 1583, 29889, 1972, 29889, 2622, 29897, 13, 9651, 411, 2346, 842, 29889, 1972, 3032, 1202, 29918, 1972, 519, 29918, 6799, 29918, 18317, 29898, 6799, 29918, 999, 29892, 2989, 29918, 2972, 29918, 1609, 29892, 1831, 29922, 5574, 1125, 13, 18884, 1209, 13, 4706, 736, 2346, 842, 13, 13, 1678, 822, 20380, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 396, 3599, 296, 15337, 6910, 671, 278, 6942, 4256, 519, 770, 363, 278, 13, 4706, 396, 20380, 580, 5314, 29892, 988, 278, 13641, 519, 11857, 3195, 13463, 519, 13, 4706, 396, 674, 367, 2307, 12849, 297, 29889, 512, 9642, 15337, 6910, 29892, 671, 263, 2317, 18785, 13, 4706, 396, 13641, 519, 11857, 3195, 13463, 519, 2012, 304, 2189, 278, 2346, 519, 13, 4706, 396, 4426, 9068, 29889, 13, 4706, 4256, 519, 353, 2428, 29898, 3010, 519, 11857, 3010, 2697, 29924, 861, 262, 29892, 1583, 467, 17609, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 565, 22868, 1524, 519, 29918, 1990, 29915, 451, 297, 1583, 17255, 8977, 1649, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 9651, 736, 4256, 29898, 3010, 519, 11857, 13463, 519, 29898, 1311, 29892, 4256, 519, 29922, 1524, 519, 876, 13, 4706, 736, 4256, 519, 13, 13, 1678, 822, 2767, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 396, 24062, 345, 738, 2346, 519, 4426, 964, 1009, 3935, 2767, 9049, 5085, 13, 4706, 396, 1434, 5432, 278, 2967, 2767, 1158, 29889, 13, 4706, 9049, 5085, 353, 1583, 3032, 17863, 29918, 5504, 29918, 19290, 29898, 1068, 19290, 29897, 13, 4706, 736, 2428, 29898, 3010, 519, 11857, 3010, 2697, 29924, 861, 262, 29892, 1583, 467, 5504, 29898, 1068, 19290, 29897, 13, 13, 13, 1990, 13641, 519, 11857, 3010, 2697, 29898, 3010, 519, 11857, 3010, 2697, 29924, 861, 262, 29892, 13641, 2697, 1125, 13, 1678, 9995, 13, 1678, 319, 4266, 2346, 842, 770, 393, 6511, 304, 671, 2346, 519, 4426, 297, 967, 13, 1678, 4175, 5855, 29892, 25495, 322, 2767, 9365, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 13, 361, 756, 5552, 29898, 3260, 29892, 525, 3166, 29918, 1972, 842, 29374, 13, 1678, 13641, 519, 11857, 3260, 353, 15629, 29889, 3166, 29918, 1972, 842, 29898, 3010, 519, 11857, 3010, 2697, 29897, 13, 2870, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 1678, 770, 13641, 519, 11857, 3260, 29898, 3260, 1125, 13, 13, 4706, 822, 679, 29918, 1972, 842, 29898, 1311, 1125, 13, 9651, 736, 13641, 519, 11857, 3010, 2697, 29898, 1311, 29889, 4299, 29892, 773, 29922, 1311, 3032, 2585, 29897, 13, 13, 4706, 679, 29918, 1972, 29918, 842, 353, 679, 29918, 1972, 842, 13, 13, 4706, 822, 1831, 29918, 11330, 29898, 1311, 29892, 334, 7039, 1125, 13, 9651, 736, 1583, 29889, 657, 29918, 1972, 842, 2141, 2622, 29918, 11330, 10456, 7039, 29897, 13, 2 ]
tali/train.py
AntreasAntoniou/TALI-lightning-hydra-dev
0
153065
<gh_stars>0 import os import pathlib from typing import Dict, List, Optional import hydra import torch from omegaconf import DictConfig from pytorch_lightning import ( Callback, LightningDataModule, LightningModule, seed_everything, Trainer, ) from pytorch_lightning.loggers import LightningLoggerBase from pytorch_lightning.tuner.tuning import Tuner from wandb.util import generate_id from tali.base import utils log = utils.get_logger(__name__) from tali.utils.storage import ( google_storage_rsync_gs_to_local, ) def train_eval(config: DictConfig) -> List[Dict[str, float]]: """Contains training pipeline. Instantiates all PyTorch Lightning objects from config. Args: config (DictConfig): Configuration composed by Hydra. Returns: Optional[float]: Metric score for hyperparameter optimization. """ if config.get("seed"): seed_everything(config.seed, workers=True) checkpoint_path = None if config.resume: log.info("Continue from existing checkpoint") if not pathlib.Path(f"{config.current_experiment_dir}").exists(): os.makedirs(f"{config.current_experiment_dir}", exist_ok=True) if "gs_file_monitor" in config.callbacks: google_storage_rsync_gs_to_local( bucket_name=config.callbacks.gs_file_monitor.bucket_name, experiments_root_dir=config.callbacks.gs_file_monitor.experiments_root_dir, experiment_name=config.callbacks.gs_file_monitor.experiment_name, exclude_list=config.callbacks.gs_file_monitor.exclude_list, options_list=config.callbacks.gs_file_monitor.options_list, ) checkpoint_path = f"{config.current_experiment_dir}/checkpoints/last.ckpt" log.info(checkpoint_path) if not pathlib.Path(checkpoint_path).exists(): checkpoint_path = None else: log.info("Starting from scratch") # shutil.rmtree(config.current_experiment_dir) if not pathlib.Path(f"{config.current_experiment_dir}").exists(): os.makedirs(f"{config.current_experiment_dir}", exist_ok=True) log.info(f"Instantiating datamodule <{config.datamodule._target_}>") datamodule: LightningDataModule = hydra.utils.instantiate( config.datamodule, _recursive_=False ) datamodule.setup(stage="fit") log.info(f"Instantiating model <{config.model._target_}>") model: LightningModule = hydra.utils.instantiate(config.model, _recursive_=False) dummy_data_dict = datamodule.get_dummy_batch() # str_data_descr_dict = { # key: value.shape if isinstance(value, torch.Tensor) else value # for key, value in dummy_data_dict.items() # } # log.info(f"Data description: {str_data_descr_dict}") dummy_data_dict = { key: value for key, value in dummy_data_dict.items() if isinstance(value, torch.Tensor) } dummy_data_device_dict = { key: value.device for key, value in dummy_data_dict.items() if isinstance(value, torch.Tensor) } log.info(f"Data description: {dummy_data_device_dict}") _ = model.forward(dummy_data_dict) log.info(f"Model description: {model.device}") callbacks: List[Callback] = [] if "callbacks" in config: for _, cb_conf in config.callbacks.items(): if "_target_" in cb_conf: if ( cb_conf["_target_"] == "tali.base.callbacks.wandb_callbacks.LogConfigInformation" ): cb_conf["config"] = dict(config) log.info(f"Instantiating callback <{cb_conf._target_}>") callbacks.append( hydra.utils.instantiate(cb_conf, _recursive_=False) ) else: log.info(f"Instantiating callback <{cb_conf._target_}>") callbacks.append(hydra.utils.instantiate(cb_conf)) os.environ["WANDB_RESUME"] = "allow" os.environ["WANDB_RUN_ID"] = generate_id() # Init lightning loggers logger: List[LightningLoggerBase] = [] if "logger" in config: for _, lg_conf in config.logger.items(): if "_target_" in lg_conf: log.info(f"Instantiating logger <{lg_conf._target_}>") logger.append(hydra.utils.instantiate(lg_conf)) # Init lightning trainer log.info(f"Instantiating trainer <{config.trainer._target_}>") trainer: Trainer = hydra.utils.instantiate( config.trainer, callbacks=callbacks, logger=logger, _convert_="partial", ) if config.trainer.auto_scale_batch_size: tuner = Tuner(trainer) new_batch_size = tuner.scale_batch_size( model, datamodule=datamodule, mode="power", init_val=2 * torch.cuda.device_count(), ) datamodule.batch_size = new_batch_size config.datamodule.batch_size = new_batch_size if config.mode.fit: log.info("Starting training!") trainer.validate(model=model, datamodule=datamodule, ckpt_path=checkpoint_path) trainer.fit(model=model, datamodule=datamodule, ckpt_path=checkpoint_path) if config.mode.test and not config.trainer.get("fast_dev_run"): datamodule.setup(stage="test") log.info("Starting testing!") trainer.test( model=model, datamodule=datamodule, ckpt_path=trainer.checkpoint_callback.best_model_path, ) # Make sure everything closed properly log.info("Finalizing!") # Print path to best checkpoint if not config.trainer.get("fast_dev_run"): log.info(f"Best model ckpt at {trainer.checkpoint_callback.best_model_path}")
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2897, 13, 5215, 2224, 1982, 13, 3166, 19229, 1053, 360, 919, 29892, 2391, 29892, 28379, 13, 13, 5215, 27246, 336, 13, 5215, 4842, 305, 13, 3166, 2703, 2442, 5527, 1053, 360, 919, 3991, 13, 3166, 282, 3637, 25350, 29918, 4366, 1076, 1053, 313, 13, 1678, 8251, 1627, 29892, 13, 1678, 12790, 1076, 1469, 7355, 29892, 13, 1678, 12790, 1076, 7355, 29892, 13, 1678, 16717, 29918, 17991, 1918, 29892, 13, 1678, 3201, 4983, 29892, 13, 29897, 13, 3166, 282, 3637, 25350, 29918, 4366, 1076, 29889, 1188, 5743, 1053, 12790, 1076, 16363, 5160, 13, 3166, 282, 3637, 25350, 29918, 4366, 1076, 29889, 29873, 348, 261, 29889, 29873, 27964, 1053, 21072, 261, 13, 3166, 24706, 29890, 29889, 4422, 1053, 5706, 29918, 333, 13, 13, 3166, 260, 2606, 29889, 3188, 1053, 3667, 29879, 13, 13, 1188, 353, 3667, 29879, 29889, 657, 29918, 21707, 22168, 978, 1649, 29897, 13, 13, 3166, 260, 2606, 29889, 13239, 29889, 12925, 1053, 313, 13, 1678, 5386, 29918, 12925, 29918, 2288, 2720, 29918, 3174, 29918, 517, 29918, 2997, 29892, 13, 29897, 13, 13, 13, 1753, 7945, 29918, 14513, 29898, 2917, 29901, 360, 919, 3991, 29897, 1599, 2391, 29961, 21533, 29961, 710, 29892, 5785, 5262, 29901, 13, 1678, 9995, 21409, 6694, 16439, 29889, 13, 1678, 2799, 3656, 1078, 599, 10772, 29911, 25350, 12790, 1076, 3618, 515, 2295, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 2295, 313, 21533, 3991, 1125, 20999, 13725, 491, 379, 2941, 336, 29889, 13, 13, 1678, 16969, 29901, 13, 4706, 28379, 29961, 7411, 5387, 4737, 2200, 8158, 363, 11266, 15501, 13883, 29889, 13, 1678, 9995, 13, 13, 1678, 565, 2295, 29889, 657, 703, 26776, 29908, 1125, 13, 4706, 16717, 29918, 17991, 1918, 29898, 2917, 29889, 26776, 29892, 17162, 29922, 5574, 29897, 13, 13, 1678, 1423, 3149, 29918, 2084, 353, 6213, 13, 13, 1678, 565, 2295, 29889, 690, 2017, 29901, 13, 13, 4706, 1480, 29889, 3888, 703, 1323, 14150, 515, 5923, 1423, 3149, 1159, 13, 13, 4706, 565, 451, 2224, 1982, 29889, 2605, 29898, 29888, 29908, 29912, 2917, 29889, 3784, 29918, 735, 15362, 29918, 3972, 29913, 2564, 9933, 7295, 13, 9651, 2897, 29889, 29885, 12535, 12935, 29898, 29888, 29908, 29912, 2917, 29889, 3784, 29918, 735, 15362, 29918, 3972, 17671, 1863, 29918, 554, 29922, 5574, 29897, 13, 13, 4706, 565, 376, 3174, 29918, 1445, 29918, 3712, 2105, 29908, 297, 2295, 29889, 14035, 29879, 29901, 13, 9651, 5386, 29918, 12925, 29918, 2288, 2720, 29918, 3174, 29918, 517, 29918, 2997, 29898, 13, 18884, 20968, 29918, 978, 29922, 2917, 29889, 14035, 29879, 29889, 3174, 29918, 1445, 29918, 3712, 2105, 29889, 21454, 29918, 978, 29892, 13, 18884, 15729, 29918, 4632, 29918, 3972, 29922, 2917, 29889, 14035, 29879, 29889, 3174, 29918, 1445, 29918, 3712, 2105, 29889, 735, 546, 7862, 29918, 4632, 29918, 3972, 29892, 13, 18884, 7639, 29918, 978, 29922, 2917, 29889, 14035, 29879, 29889, 3174, 29918, 1445, 29918, 3712, 2105, 29889, 735, 15362, 29918, 978, 29892, 13, 18884, 19060, 29918, 1761, 29922, 2917, 29889, 14035, 29879, 29889, 3174, 29918, 1445, 29918, 3712, 2105, 29889, 735, 2325, 29918, 1761, 29892, 13, 18884, 3987, 29918, 1761, 29922, 2917, 29889, 14035, 29879, 29889, 3174, 29918, 1445, 29918, 3712, 2105, 29889, 6768, 29918, 1761, 29892, 13, 9651, 1723, 13, 13, 4706, 1423, 3149, 29918, 2084, 353, 285, 29908, 29912, 2917, 29889, 3784, 29918, 735, 15362, 29918, 3972, 6822, 3198, 9748, 29914, 4230, 29889, 384, 415, 29908, 13, 13, 4706, 1480, 29889, 3888, 29898, 3198, 3149, 29918, 2084, 29897, 13, 13, 4706, 565, 451, 2224, 1982, 29889, 2605, 29898, 3198, 3149, 29918, 2084, 467, 9933, 7295, 13, 9651, 1423, 3149, 29918, 2084, 353, 6213, 13, 13, 1678, 1683, 29901, 13, 13, 4706, 1480, 29889, 3888, 703, 4763, 292, 515, 22728, 1159, 13, 4706, 396, 528, 4422, 29889, 1758, 8336, 29898, 2917, 29889, 3784, 29918, 735, 15362, 29918, 3972, 29897, 13, 4706, 565, 451, 2224, 1982, 29889, 2605, 29898, 29888, 29908, 29912, 2917, 29889, 3784, 29918, 735, 15362, 29918, 3972, 29913, 2564, 9933, 7295, 13, 9651, 2897, 29889, 29885, 12535, 12935, 29898, 29888, 29908, 29912, 2917, 29889, 3784, 29918, 735, 15362, 29918, 3972, 17671, 1863, 29918, 554, 29922, 5574, 29897, 13, 13, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 3379, 3656, 1218, 1418, 314, 397, 1297, 529, 29912, 2917, 29889, 4130, 314, 397, 1297, 3032, 5182, 29918, 17428, 1159, 13, 1678, 1418, 314, 397, 1297, 29901, 12790, 1076, 1469, 7355, 353, 27246, 336, 29889, 13239, 29889, 2611, 3656, 403, 29898, 13, 4706, 2295, 29889, 4130, 314, 397, 1297, 29892, 903, 3757, 25397, 29918, 29922, 8824, 13, 1678, 1723, 13, 1678, 1418, 314, 397, 1297, 29889, 14669, 29898, 19190, 543, 9202, 1159, 13, 13, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 3379, 3656, 1218, 1904, 529, 29912, 2917, 29889, 4299, 3032, 5182, 29918, 17428, 1159, 13, 1678, 1904, 29901, 12790, 1076, 7355, 353, 27246, 336, 29889, 13239, 29889, 2611, 3656, 403, 29898, 2917, 29889, 4299, 29892, 903, 3757, 25397, 29918, 29922, 8824, 29897, 13, 13, 1678, 20254, 29918, 1272, 29918, 8977, 353, 1418, 314, 397, 1297, 29889, 657, 29918, 29881, 11770, 29918, 16175, 580, 13, 1678, 396, 851, 29918, 1272, 29918, 2783, 7283, 29918, 8977, 353, 426, 13, 1678, 396, 268, 1820, 29901, 995, 29889, 12181, 565, 338, 8758, 29898, 1767, 29892, 4842, 305, 29889, 29911, 6073, 29897, 1683, 995, 13, 1678, 396, 268, 363, 1820, 29892, 995, 297, 20254, 29918, 1272, 29918, 8977, 29889, 7076, 580, 13, 1678, 396, 500, 13, 1678, 396, 1480, 29889, 3888, 29898, 29888, 29908, 1469, 6139, 29901, 426, 710, 29918, 1272, 29918, 2783, 7283, 29918, 8977, 27195, 13, 1678, 20254, 29918, 1272, 29918, 8977, 353, 426, 13, 4706, 1820, 29901, 995, 13, 4706, 363, 1820, 29892, 995, 297, 20254, 29918, 1272, 29918, 8977, 29889, 7076, 580, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 4842, 305, 29889, 29911, 6073, 29897, 13, 1678, 500, 13, 1678, 20254, 29918, 1272, 29918, 10141, 29918, 8977, 353, 426, 13, 4706, 1820, 29901, 995, 29889, 10141, 13, 4706, 363, 1820, 29892, 995, 297, 20254, 29918, 1272, 29918, 8977, 29889, 7076, 580, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 4842, 305, 29889, 29911, 6073, 29897, 13, 1678, 500, 13, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 1469, 6139, 29901, 426, 29881, 11770, 29918, 1272, 29918, 10141, 29918, 8977, 27195, 13, 1678, 903, 353, 1904, 29889, 11333, 29898, 29881, 11770, 29918, 1272, 29918, 8977, 29897, 13, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 3195, 6139, 29901, 426, 4299, 29889, 10141, 27195, 13, 13, 1678, 6939, 29879, 29901, 2391, 29961, 10717, 29962, 353, 5159, 13, 1678, 565, 376, 14035, 29879, 29908, 297, 2295, 29901, 13, 4706, 363, 17117, 26324, 29918, 5527, 297, 2295, 29889, 14035, 29879, 29889, 7076, 7295, 13, 9651, 565, 11119, 5182, 27508, 297, 26324, 29918, 5527, 29901, 13, 18884, 565, 313, 13, 462, 1678, 26324, 29918, 5527, 3366, 29918, 5182, 29918, 3108, 13, 462, 1678, 1275, 376, 29873, 2606, 29889, 3188, 29889, 14035, 29879, 29889, 18622, 29890, 29918, 14035, 29879, 29889, 3403, 3991, 20350, 29908, 13, 462, 1125, 13, 462, 1678, 26324, 29918, 5527, 3366, 2917, 3108, 353, 9657, 29898, 2917, 29897, 13, 462, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 3379, 3656, 1218, 6939, 529, 29912, 10702, 29918, 5527, 3032, 5182, 29918, 17428, 1159, 13, 462, 1678, 6939, 29879, 29889, 4397, 29898, 13, 462, 4706, 27246, 336, 29889, 13239, 29889, 2611, 3656, 403, 29898, 10702, 29918, 5527, 29892, 903, 3757, 25397, 29918, 29922, 8824, 29897, 13, 462, 1678, 1723, 13, 18884, 1683, 29901, 13, 462, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 3379, 3656, 1218, 6939, 529, 29912, 10702, 29918, 5527, 3032, 5182, 29918, 17428, 1159, 13, 462, 1678, 6939, 29879, 29889, 4397, 29898, 29882, 2941, 336, 29889, 13239, 29889, 2611, 3656, 403, 29898, 10702, 29918, 5527, 876, 13, 13, 1678, 2897, 29889, 21813, 3366, 29956, 2190, 4051, 29918, 1525, 14605, 2303, 3108, 353, 376, 9536, 29908, 13, 1678, 2897, 29889, 21813, 3366, 29956, 2190, 4051, 29918, 29934, 3904, 29918, 1367, 3108, 353, 5706, 29918, 333, 580, 13, 13, 1678, 396, 10886, 3578, 1076, 1480, 5743, 13, 1678, 17927, 29901, 2391, 29961, 20769, 1076, 16363, 5160, 29962, 353, 5159, 13, 1678, 565, 376, 21707, 29908, 297, 2295, 29901, 13, 4706, 363, 17117, 301, 29887, 29918, 5527, 297, 2295, 29889, 21707, 29889, 7076, 7295, 13, 9651, 565, 11119, 5182, 27508, 297, 301, 29887, 29918, 5527, 29901, 13, 18884, 1480, 29889, 3888, 29898, 29888, 29908, 3379, 3656, 1218, 17927, 529, 29912, 19920, 29918, 5527, 3032, 5182, 29918, 17428, 1159, 13, 18884, 17927, 29889, 4397, 29898, 29882, 2941, 336, 29889, 13239, 29889, 2611, 3656, 403, 29898, 19920, 29918, 5527, 876, 13, 13, 1678, 396, 10886, 3578, 1076, 1020, 4983, 13, 1678, 1480, 29889, 3888, 29898, 29888, 29908, 3379, 3656, 1218, 1020, 4983, 529, 29912, 2917, 29889, 3018, 4983, 3032, 5182, 29918, 17428, 1159, 13, 1678, 1020, 4983, 29901, 3201, 4983, 353, 27246, 336, 29889, 13239, 29889, 2611, 3656, 403, 29898, 13, 4706, 2295, 29889, 3018, 4983, 29892, 13, 4706, 6939, 29879, 29922, 14035, 29879, 29892, 13, 4706, 17927, 29922, 21707, 29892, 13, 4706, 903, 13441, 29918, 543, 3846, 613, 13, 1678, 1723, 13, 13, 1678, 565, 2295, 29889, 3018, 4983, 29889, 6921, 29918, 7052, 29918, 16175, 29918, 2311, 29901, 13, 4706, 18515, 261, 353, 21072, 261, 29898, 3018, 4983, 29897, 13, 4706, 716, 29918, 16175, 29918, 2311, 353, 18515, 261, 29889, 7052, 29918, 16175, 29918, 2311, 29898, 13, 9651, 1904, 29892, 13, 9651, 1418, 314, 397, 1297, 29922, 4130, 314, 397, 1297, 29892, 13, 9651, 4464, 543, 13519, 613, 13, 9651, 2069, 29918, 791, 29922, 29906, 334, 4842, 305, 29889, 29883, 6191, 29889, 10141, 29918, 2798, 3285, 13, 4706, 1723, 13, 4706, 1418, 314, 397, 1297, 29889, 16175, 29918, 2311, 353, 716, 29918, 16175, 29918, 2311, 13, 4706, 2295, 29889, 4130, 314, 397, 1297, 29889, 16175, 29918, 2311, 353, 716, 29918, 16175, 29918, 2311, 13, 13, 1678, 565, 2295, 29889, 8513, 29889, 9202, 29901, 13, 4706, 1480, 29889, 3888, 703, 4763, 292, 6694, 29991, 1159, 13, 4706, 1020, 4983, 29889, 15480, 29898, 4299, 29922, 4299, 29892, 1418, 314, 397, 1297, 29922, 4130, 314, 397, 1297, 29892, 274, 29895, 415, 29918, 2084, 29922, 3198, 3149, 29918, 2084, 29897, 13, 4706, 1020, 4983, 29889, 9202, 29898, 4299, 29922, 4299, 29892, 1418, 314, 397, 1297, 29922, 4130, 314, 397, 1297, 29892, 274, 29895, 415, 29918, 2084, 29922, 3198, 3149, 29918, 2084, 29897, 13, 13, 1678, 565, 2295, 29889, 8513, 29889, 1688, 322, 451, 2295, 29889, 3018, 4983, 29889, 657, 703, 11255, 29918, 3359, 29918, 3389, 29908, 1125, 13, 4706, 1418, 314, 397, 1297, 29889, 14669, 29898, 19190, 543, 1688, 1159, 13, 4706, 1480, 29889, 3888, 703, 4763, 292, 6724, 29991, 1159, 13, 13, 4706, 1020, 4983, 29889, 1688, 29898, 13, 9651, 1904, 29922, 4299, 29892, 13, 9651, 1418, 314, 397, 1297, 29922, 4130, 314, 397, 1297, 29892, 13, 9651, 274, 29895, 415, 29918, 2084, 29922, 3018, 4983, 29889, 3198, 3149, 29918, 14035, 29889, 13318, 29918, 4299, 29918, 2084, 29892, 13, 4706, 1723, 13, 13, 1678, 396, 8561, 1854, 4129, 5764, 6284, 13, 1678, 1480, 29889, 3888, 703, 15790, 5281, 29991, 1159, 13, 1678, 396, 13905, 2224, 304, 1900, 1423, 3149, 13, 1678, 565, 451, 2295, 29889, 3018, 4983, 29889, 657, 703, 11255, 29918, 3359, 29918, 3389, 29908, 1125, 13, 4706, 1480, 29889, 3888, 29898, 29888, 29908, 25353, 1904, 274, 29895, 415, 472, 426, 3018, 4983, 29889, 3198, 3149, 29918, 14035, 29889, 13318, 29918, 4299, 29918, 2084, 27195, 13, 2 ]
com/l3harrisbc/client/client.py
fedcalderon/L3H-Python-BookClub-Spring2020
0
160842
# # Hello World client in Python # Connects REQ socket to tcp://localhost:5555 # Sends "Hello" to server, expects "World" back # # Adding ZeroMQ messaging library import zmq # Adding Python's logging library import logging print("Hello Client") # Configuring logging example logging.basicConfig(filename='client.log', filemode='w', format='%(asctime)s - %(levelname)s - CLIENT - %(message)s', datefmt='%d-%b-%y %H:%M:%S') # In order to start ZeroMQ, create a context context = zmq.Context() # Create a zmq socket to talk to the server socket = context.socket(zmq.REQ) # Connect zmq socket to localhost socket.connect("tcp://localhost:5555") # Show message on console print("Connecting to hello server…") # Show message on the log file logging.warning("Connecting to hello server…") # Create a string variable to store user inputs and initialize to empty user_input = "" # Start an infinite loop while user_input != "q": user_input = input("Type a msg ('q' to quit program): ") if user_input != "q": # The socket can send literal strings to the server socket.send_string(user_input) logging.warning(f"Message to server: {user_input}") # Get the reply. message = socket.recv() logging.warning(f"Reply from server: {message}")
[ 1, 396, 13, 29937, 259, 15043, 2787, 3132, 297, 5132, 13, 29937, 259, 14971, 29879, 5195, 29984, 9909, 304, 22729, 597, 7640, 29901, 29945, 29945, 29945, 29945, 13, 29937, 259, 317, 1975, 376, 10994, 29908, 304, 1923, 29892, 23347, 376, 14058, 29908, 1250, 13, 29937, 13, 13, 29937, 18804, 28933, 25566, 4473, 6751, 3489, 13, 5215, 12162, 29939, 13, 29937, 18804, 5132, 29915, 29879, 12183, 3489, 13, 5215, 12183, 13, 13, 2158, 703, 10994, 12477, 1159, 13, 13, 29937, 12782, 3864, 12183, 1342, 13, 21027, 29889, 16121, 3991, 29898, 9507, 2433, 4645, 29889, 1188, 742, 934, 8513, 2433, 29893, 742, 3402, 2433, 29995, 29898, 294, 312, 603, 29897, 29879, 448, 1273, 29898, 5563, 978, 29897, 29879, 448, 24492, 3919, 448, 1273, 29898, 4906, 29897, 29879, 742, 2635, 23479, 2433, 29995, 29881, 19222, 29890, 19222, 29891, 1273, 29950, 16664, 29924, 16664, 29903, 1495, 13, 29937, 512, 1797, 304, 1369, 28933, 25566, 29892, 1653, 263, 3030, 13, 4703, 353, 12162, 29939, 29889, 2677, 580, 13, 29937, 6204, 263, 12162, 29939, 9909, 304, 5193, 304, 278, 1923, 13, 11514, 353, 3030, 29889, 11514, 29898, 14018, 29939, 29889, 1525, 29984, 29897, 13, 29937, 14971, 12162, 29939, 9909, 304, 15683, 13, 11514, 29889, 6915, 703, 23981, 597, 7640, 29901, 29945, 29945, 29945, 29945, 1159, 13, 29937, 29871, 7704, 2643, 373, 2991, 13, 2158, 703, 17918, 292, 304, 22172, 1923, 30098, 1159, 13, 29937, 7704, 2643, 373, 278, 1480, 934, 13, 21027, 29889, 27392, 703, 17918, 292, 304, 22172, 1923, 30098, 1159, 13, 29937, 6204, 263, 1347, 2286, 304, 3787, 1404, 10970, 322, 11905, 304, 4069, 13, 1792, 29918, 2080, 353, 5124, 13, 29937, 7370, 385, 10362, 2425, 13, 8000, 1404, 29918, 2080, 2804, 376, 29939, 1115, 13, 1678, 1404, 29918, 2080, 353, 1881, 703, 1542, 263, 10191, 6702, 29939, 29915, 304, 23283, 1824, 1125, 16521, 13, 1678, 565, 1404, 29918, 2080, 2804, 376, 29939, 1115, 13, 4706, 396, 450, 9909, 508, 3638, 16333, 6031, 304, 278, 1923, 13, 4706, 9909, 29889, 6717, 29918, 1807, 29898, 1792, 29918, 2080, 29897, 13, 4706, 12183, 29889, 27392, 29898, 29888, 29908, 3728, 304, 1923, 29901, 426, 1792, 29918, 2080, 27195, 13, 4706, 396, 29871, 3617, 278, 8908, 29889, 13, 4706, 2643, 353, 9909, 29889, 3757, 29894, 580, 13, 4706, 12183, 29889, 27392, 29898, 29888, 29908, 5612, 368, 515, 1923, 29901, 426, 4906, 27195, 13, 2 ]
msgsender_sdk/api/custom_sender/list_support_infom_pb2.py
easyopsapis/easyops-api-python
5
124733
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: list_support_infom.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='list_support_infom.proto', package='custom_sender', syntax='proto3', serialized_options=None, serialized_pb=_b('\n\x18list_support_infom.proto\x12\rcustom_sender\"\x9b\x02\n\x19ListSupportInformResponse\x12;\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32-.custom_sender.ListSupportInformResponse.Data\x12\x0c\n\x04page\x18\x02 \x01(\x05\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\r\n\x05tatal\x18\x04 \x01(\x05\x12\x0b\n\x03msg\x18\x05 \x01(\t\x12\x0c\n\x04\x63ode\x18\x06 \x01(\x05\x1av\n\x04\x44\x61ta\x12\x1f\n\x17\x63ol_of_cmdb_user_object\x18\x01 \x01(\t\x12\x0e\n\x06\x65nable\x18\x02 \x01(\x08\x12\x13\n\x0bplugin_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x13\n\x0binform_type\x18\x05 \x01(\t\"\x8c\x01\n ListSupportInformResponseWrapper\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x13\n\x0b\x63odeExplain\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x36\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32(.custom_sender.ListSupportInformResponseb\x06proto3') ) _LISTSUPPORTINFORMRESPONSE_DATA = _descriptor.Descriptor( name='Data', full_name='custom_sender.ListSupportInformResponse.Data', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='col_of_cmdb_user_object', full_name='custom_sender.ListSupportInformResponse.Data.col_of_cmdb_user_object', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='enable', full_name='custom_sender.ListSupportInformResponse.Data.enable', index=1, number=2, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='plugin_name', full_name='custom_sender.ListSupportInformResponse.Data.plugin_name', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='description', full_name='custom_sender.ListSupportInformResponse.Data.description', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='inform_type', full_name='custom_sender.ListSupportInformResponse.Data.inform_type', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=209, serialized_end=327, ) _LISTSUPPORTINFORMRESPONSE = _descriptor.Descriptor( name='ListSupportInformResponse', full_name='custom_sender.ListSupportInformResponse', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='data', full_name='custom_sender.ListSupportInformResponse.data', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='page', full_name='custom_sender.ListSupportInformResponse.page', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='page_size', full_name='custom_sender.ListSupportInformResponse.page_size', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='tatal', full_name='custom_sender.ListSupportInformResponse.tatal', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='msg', full_name='custom_sender.ListSupportInformResponse.msg', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='code', full_name='custom_sender.ListSupportInformResponse.code', index=5, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_LISTSUPPORTINFORMRESPONSE_DATA, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=44, serialized_end=327, ) _LISTSUPPORTINFORMRESPONSEWRAPPER = _descriptor.Descriptor( name='ListSupportInformResponseWrapper', full_name='custom_sender.ListSupportInformResponseWrapper', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='code', full_name='custom_sender.ListSupportInformResponseWrapper.code', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='codeExplain', full_name='custom_sender.ListSupportInformResponseWrapper.codeExplain', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='error', full_name='custom_sender.ListSupportInformResponseWrapper.error', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='data', full_name='custom_sender.ListSupportInformResponseWrapper.data', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=330, serialized_end=470, ) _LISTSUPPORTINFORMRESPONSE_DATA.containing_type = _LISTSUPPORTINFORMRESPONSE _LISTSUPPORTINFORMRESPONSE.fields_by_name['data'].message_type = _LISTSUPPORTINFORMRESPONSE_DATA _LISTSUPPORTINFORMRESPONSEWRAPPER.fields_by_name['data'].message_type = _LISTSUPPORTINFORMRESPONSE DESCRIPTOR.message_types_by_name['ListSupportInformResponse'] = _LISTSUPPORTINFORMRESPONSE DESCRIPTOR.message_types_by_name['ListSupportInformResponseWrapper'] = _LISTSUPPORTINFORMRESPONSEWRAPPER _sym_db.RegisterFileDescriptor(DESCRIPTOR) ListSupportInformResponse = _reflection.GeneratedProtocolMessageType('ListSupportInformResponse', (_message.Message,), { 'Data' : _reflection.GeneratedProtocolMessageType('Data', (_message.Message,), { 'DESCRIPTOR' : _LISTSUPPORTINFORMRESPONSE_DATA, '__module__' : 'list_support_infom_pb2' # @@protoc_insertion_point(class_scope:custom_sender.ListSupportInformResponse.Data) }) , 'DESCRIPTOR' : _LISTSUPPORTINFORMRESPONSE, '__module__' : 'list_support_infom_pb2' # @@protoc_insertion_point(class_scope:custom_sender.ListSupportInformResponse) }) _sym_db.RegisterMessage(ListSupportInformResponse) _sym_db.RegisterMessage(ListSupportInformResponse.Data) ListSupportInformResponseWrapper = _reflection.GeneratedProtocolMessageType('ListSupportInformResponseWrapper', (_message.Message,), { 'DESCRIPTOR' : _LISTSUPPORTINFORMRESPONSEWRAPPER, '__module__' : 'list_support_infom_pb2' # @@protoc_insertion_point(class_scope:custom_sender.ListSupportInformResponseWrapper) }) _sym_db.RegisterMessage(ListSupportInformResponseWrapper) # @@protoc_insertion_point(module_scope)
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 278, 9608, 6835, 6516, 29889, 29871, 11662, 6058, 11488, 29991, 13, 29937, 2752, 29901, 1051, 29918, 5924, 29918, 7192, 290, 29889, 17529, 13, 13, 5215, 10876, 13, 29918, 29890, 29922, 9675, 29889, 3259, 29918, 3888, 29961, 29900, 29962, 29966, 29941, 322, 313, 2892, 921, 29901, 29916, 29897, 470, 313, 2892, 921, 29901, 29916, 29889, 12508, 877, 5066, 262, 29896, 8785, 13, 3166, 5386, 29889, 17529, 9721, 1053, 553, 11709, 408, 903, 2783, 11709, 13, 3166, 5386, 29889, 17529, 9721, 1053, 2643, 408, 903, 4906, 13, 3166, 5386, 29889, 17529, 9721, 1053, 17842, 408, 903, 999, 1464, 13, 3166, 5386, 29889, 17529, 9721, 1053, 5829, 29918, 9803, 408, 903, 18098, 29918, 9803, 13, 29937, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 326, 4011, 29897, 13, 13, 29918, 11967, 29918, 2585, 353, 903, 18098, 29918, 9803, 29889, 4592, 580, 13, 13, 13, 13, 13, 2287, 7187, 24290, 1955, 353, 903, 2783, 11709, 29889, 2283, 19124, 29898, 13, 29871, 1024, 2433, 1761, 29918, 5924, 29918, 7192, 290, 29889, 17529, 742, 13, 29871, 3577, 2433, 6341, 29918, 15452, 742, 13, 29871, 5877, 2433, 17529, 29941, 742, 13, 29871, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 13, 29871, 7797, 1891, 29918, 24381, 29922, 29918, 29890, 28909, 29876, 29905, 29916, 29896, 29947, 1761, 29918, 5924, 29918, 7192, 290, 29889, 17529, 29905, 29916, 29896, 29906, 29905, 2214, 1796, 29918, 15452, 5931, 29905, 29916, 29929, 29890, 29905, 29916, 29900, 29906, 29905, 29876, 29905, 29916, 29896, 29929, 1293, 14039, 797, 689, 5103, 29905, 29916, 29896, 29906, 10436, 29876, 29905, 29916, 29900, 29946, 29905, 29916, 29953, 29946, 29905, 29916, 29953, 29896, 941, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29896, 320, 29916, 29900, 29941, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 28753, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29905, 29916, 29896, 29906, 29905, 29916, 29900, 29883, 29905, 29876, 29905, 29916, 29900, 29946, 3488, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29906, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29896, 29905, 29876, 29905, 29873, 3488, 29918, 2311, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29941, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29896, 29906, 29905, 29878, 29905, 29876, 29905, 29916, 29900, 29945, 29873, 2075, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29946, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29896, 29906, 29905, 29916, 29900, 29890, 29905, 29876, 29905, 29916, 29900, 29941, 7645, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29945, 320, 29916, 29900, 29896, 1194, 29873, 29905, 29916, 29896, 29906, 29905, 29916, 29900, 29883, 29905, 29876, 29905, 29916, 29900, 29946, 29905, 29916, 29953, 29941, 356, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29953, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29896, 485, 29905, 29876, 29905, 29916, 29900, 29946, 29905, 29916, 29946, 29946, 29905, 29916, 29953, 29896, 941, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29888, 29905, 29876, 29905, 29916, 29896, 29955, 29905, 29916, 29953, 29941, 324, 29918, 974, 29918, 4912, 2585, 29918, 1792, 29918, 3318, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29896, 320, 29916, 29900, 29896, 1194, 29873, 29905, 29916, 29896, 29906, 29905, 29916, 29900, 29872, 29905, 29876, 29905, 29916, 29900, 29953, 29905, 29916, 29953, 29945, 29876, 519, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29906, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29947, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29941, 29905, 29876, 29905, 29916, 29900, 29890, 8582, 29918, 978, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29941, 320, 29916, 29900, 29896, 1194, 29873, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29941, 29905, 29876, 29905, 29916, 29900, 29890, 29905, 29916, 29953, 29946, 29905, 29916, 29953, 29945, 22371, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29946, 320, 29916, 29900, 29896, 1194, 29873, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29941, 29905, 29876, 29905, 29916, 29900, 2109, 689, 29918, 1853, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29945, 320, 29916, 29900, 29896, 1194, 29873, 5931, 29905, 29916, 29947, 29883, 29905, 29916, 29900, 29896, 29905, 29876, 2391, 14039, 797, 689, 5103, 15646, 29905, 29916, 29896, 29906, 29905, 29916, 29900, 29883, 29905, 29876, 29905, 29916, 29900, 29946, 29905, 29916, 29953, 29941, 356, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29896, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29941, 29905, 29876, 29905, 29916, 29900, 29890, 29905, 29916, 29953, 29941, 356, 9544, 7420, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29906, 320, 29916, 29900, 29896, 1194, 29873, 29905, 29916, 29896, 29906, 29905, 29878, 29905, 29876, 29905, 29916, 29900, 29945, 29905, 29916, 29953, 29945, 24616, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29941, 320, 29916, 29900, 29896, 1194, 29873, 29905, 29916, 29896, 29906, 29905, 29916, 29941, 29953, 29905, 29876, 29905, 29916, 29900, 29946, 29905, 29916, 29953, 29946, 29905, 29916, 29953, 29896, 941, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29946, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29890, 29905, 29916, 29941, 29906, 11891, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29890, 29905, 29916, 29900, 29953, 17529, 29941, 1495, 13, 29897, 13, 13, 13, 13, 13, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29918, 14573, 353, 903, 2783, 11709, 29889, 19124, 29898, 13, 29871, 1024, 2433, 1469, 742, 13, 29871, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 742, 13, 29871, 10422, 29922, 8516, 29892, 13, 29871, 934, 29922, 2287, 7187, 24290, 1955, 29892, 13, 29871, 6943, 29918, 1853, 29922, 8516, 29892, 13, 29871, 4235, 11759, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 1054, 29918, 974, 29918, 4912, 2585, 29918, 1792, 29918, 3318, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29889, 1054, 29918, 974, 29918, 4912, 2585, 29918, 1792, 29918, 3318, 742, 2380, 29922, 29900, 29892, 13, 418, 1353, 29922, 29896, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 12007, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29889, 12007, 742, 2380, 29922, 29896, 29892, 13, 418, 1353, 29922, 29906, 29892, 1134, 29922, 29947, 29892, 274, 407, 29918, 1853, 29922, 29955, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 8824, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 8582, 29918, 978, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29889, 8582, 29918, 978, 742, 2380, 29922, 29906, 29892, 13, 418, 1353, 29922, 29941, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 8216, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29889, 8216, 742, 2380, 29922, 29941, 29892, 13, 418, 1353, 29922, 29946, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 262, 689, 29918, 1853, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29889, 262, 689, 29918, 1853, 742, 2380, 29922, 29946, 29892, 13, 418, 1353, 29922, 29945, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 29871, 21251, 13, 29871, 17752, 11759, 13, 29871, 21251, 13, 29871, 9322, 29918, 8768, 11759, 1402, 13, 29871, 14115, 29918, 8768, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 13, 29871, 338, 29918, 21843, 519, 29922, 8824, 29892, 13, 29871, 5877, 2433, 17529, 29941, 742, 13, 29871, 6081, 29918, 29878, 6916, 11759, 1402, 13, 29871, 697, 974, 29879, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 2962, 29922, 29906, 29900, 29929, 29892, 13, 29871, 7797, 1891, 29918, 355, 29922, 29941, 29906, 29955, 29892, 13, 29897, 13, 13, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 353, 903, 2783, 11709, 29889, 19124, 29898, 13, 29871, 1024, 2433, 1293, 14039, 797, 689, 5103, 742, 13, 29871, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 742, 13, 29871, 10422, 29922, 8516, 29892, 13, 29871, 934, 29922, 2287, 7187, 24290, 1955, 29892, 13, 29871, 6943, 29918, 1853, 29922, 8516, 29892, 13, 29871, 4235, 11759, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 1272, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1272, 742, 2380, 29922, 29900, 29892, 13, 418, 1353, 29922, 29896, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29941, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 11759, 1402, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 3488, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 3488, 742, 2380, 29922, 29896, 29892, 13, 418, 1353, 29922, 29906, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 3488, 29918, 2311, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 3488, 29918, 2311, 742, 2380, 29922, 29906, 29892, 13, 418, 1353, 29922, 29941, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 29873, 2075, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 29873, 2075, 742, 2380, 29922, 29941, 29892, 13, 418, 1353, 29922, 29946, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 7645, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 7645, 742, 2380, 29922, 29946, 29892, 13, 418, 1353, 29922, 29945, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 401, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 401, 742, 2380, 29922, 29945, 29892, 13, 418, 1353, 29922, 29953, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 29871, 21251, 13, 29871, 17752, 11759, 13, 29871, 21251, 13, 29871, 9322, 29918, 8768, 11759, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29918, 14573, 29892, 21251, 13, 29871, 14115, 29918, 8768, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 13, 29871, 338, 29918, 21843, 519, 29922, 8824, 29892, 13, 29871, 5877, 2433, 17529, 29941, 742, 13, 29871, 6081, 29918, 29878, 6916, 11759, 1402, 13, 29871, 697, 974, 29879, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 2962, 29922, 29946, 29946, 29892, 13, 29871, 7797, 1891, 29918, 355, 29922, 29941, 29906, 29955, 29892, 13, 29897, 13, 13, 13, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 9980, 3301, 13171, 353, 903, 2783, 11709, 29889, 19124, 29898, 13, 29871, 1024, 2433, 1293, 14039, 797, 689, 5103, 15646, 742, 13, 29871, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 15646, 742, 13, 29871, 10422, 29922, 8516, 29892, 13, 29871, 934, 29922, 2287, 7187, 24290, 1955, 29892, 13, 29871, 6943, 29918, 1853, 29922, 8516, 29892, 13, 29871, 4235, 11759, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 401, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 15646, 29889, 401, 742, 2380, 29922, 29900, 29892, 13, 418, 1353, 29922, 29896, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 401, 9544, 7420, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 15646, 29889, 401, 9544, 7420, 742, 2380, 29922, 29896, 29892, 13, 418, 1353, 29922, 29906, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 2704, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 15646, 29889, 2704, 742, 2380, 29922, 29906, 29892, 13, 418, 1353, 29922, 29941, 29892, 1134, 29922, 29929, 29892, 274, 407, 29918, 1853, 29922, 29929, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29918, 29890, 703, 2564, 13808, 877, 9420, 29899, 29947, 5477, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 1272, 742, 2989, 29918, 978, 2433, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 15646, 29889, 1272, 742, 2380, 29922, 29941, 29892, 13, 418, 1353, 29922, 29946, 29892, 1134, 29922, 29896, 29896, 29892, 274, 407, 29918, 1853, 29922, 29896, 29900, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 8516, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 934, 29922, 2287, 7187, 24290, 1955, 511, 13, 29871, 21251, 13, 29871, 17752, 11759, 13, 29871, 21251, 13, 29871, 9322, 29918, 8768, 11759, 1402, 13, 29871, 14115, 29918, 8768, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 6768, 29922, 8516, 29892, 13, 29871, 338, 29918, 21843, 519, 29922, 8824, 29892, 13, 29871, 5877, 2433, 17529, 29941, 742, 13, 29871, 6081, 29918, 29878, 6916, 11759, 1402, 13, 29871, 697, 974, 29879, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 2962, 29922, 29941, 29941, 29900, 29892, 13, 29871, 7797, 1891, 29918, 355, 29922, 29946, 29955, 29900, 29892, 13, 29897, 13, 13, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29918, 14573, 29889, 1285, 17225, 29918, 1853, 353, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 13, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29889, 9621, 29918, 1609, 29918, 978, 1839, 1272, 13359, 4906, 29918, 1853, 353, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29918, 14573, 13, 29918, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 9980, 3301, 13171, 29889, 9621, 29918, 1609, 29918, 978, 1839, 1272, 13359, 4906, 29918, 1853, 353, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 13, 2287, 7187, 24290, 1955, 29889, 4906, 29918, 8768, 29918, 1609, 29918, 978, 1839, 1293, 14039, 797, 689, 5103, 2033, 353, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 13, 2287, 7187, 24290, 1955, 29889, 4906, 29918, 8768, 29918, 1609, 29918, 978, 1839, 1293, 14039, 797, 689, 5103, 15646, 2033, 353, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 9980, 3301, 13171, 13, 29918, 11967, 29918, 2585, 29889, 15213, 2283, 19124, 29898, 2287, 7187, 24290, 1955, 29897, 13, 13, 1293, 14039, 797, 689, 5103, 353, 903, 999, 1464, 29889, 24565, 17830, 3728, 1542, 877, 1293, 14039, 797, 689, 5103, 742, 9423, 4906, 29889, 3728, 29892, 511, 426, 13, 13, 29871, 525, 1469, 29915, 584, 903, 999, 1464, 29889, 24565, 17830, 3728, 1542, 877, 1469, 742, 9423, 4906, 29889, 3728, 29892, 511, 426, 13, 1678, 525, 2287, 7187, 24290, 1955, 29915, 584, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29918, 14573, 29892, 13, 1678, 525, 1649, 5453, 1649, 29915, 584, 525, 1761, 29918, 5924, 29918, 7192, 290, 29918, 24381, 29906, 29915, 13, 1678, 396, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 1990, 29918, 6078, 29901, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29889, 1469, 29897, 13, 1678, 5615, 13, 29871, 1919, 13, 29871, 525, 2287, 7187, 24290, 1955, 29915, 584, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 29892, 13, 29871, 525, 1649, 5453, 1649, 29915, 584, 525, 1761, 29918, 5924, 29918, 7192, 290, 29918, 24381, 29906, 29915, 13, 29871, 396, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 1990, 29918, 6078, 29901, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 29897, 13, 29871, 5615, 13, 29918, 11967, 29918, 2585, 29889, 15213, 3728, 29898, 1293, 14039, 797, 689, 5103, 29897, 13, 29918, 11967, 29918, 2585, 29889, 15213, 3728, 29898, 1293, 14039, 797, 689, 5103, 29889, 1469, 29897, 13, 13, 1293, 14039, 797, 689, 5103, 15646, 353, 903, 999, 1464, 29889, 24565, 17830, 3728, 1542, 877, 1293, 14039, 797, 689, 5103, 15646, 742, 9423, 4906, 29889, 3728, 29892, 511, 426, 13, 29871, 525, 2287, 7187, 24290, 1955, 29915, 584, 903, 24360, 29903, 4897, 15082, 1177, 19094, 1525, 5550, 1164, 1660, 9980, 3301, 13171, 29892, 13, 29871, 525, 1649, 5453, 1649, 29915, 584, 525, 1761, 29918, 5924, 29918, 7192, 290, 29918, 24381, 29906, 29915, 13, 29871, 396, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 1990, 29918, 6078, 29901, 6341, 29918, 15452, 29889, 1293, 14039, 797, 689, 5103, 15646, 29897, 13, 29871, 5615, 13, 29918, 11967, 29918, 2585, 29889, 15213, 3728, 29898, 1293, 14039, 797, 689, 5103, 15646, 29897, 13, 13, 13, 29937, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 5453, 29918, 6078, 29897, 13, 2 ]
problems/leetcode/lt-456.py
neerajp99/algorithms
1
199696
# 456. 132 Pattern """ Given an array of n integers nums, a 132 pattern is a subsequence of three integers nums[i], nums[j] and nums[k] such that i < j < k and nums[i] < nums[k] < nums[j]. Return true if there is a 132 pattern in nums, otherwise, return false. Follow up: The O(n^2) is trivial, could you come up with the O(n logn) or the O(n) solution? Input: nums = [3,1,4,2] Output: true Explanation: There is a 132 pattern in the sequence: [1, 4, 2]. """ class Solution: def find132pattern(self, nums: List[int]) -> bool: # Initialzed the stack stack = [] # Handling the edge case, if there are less than 3 elements if len(set(nums)) < 3: return False # Precomputing the minimum value array with first index same as first index of nums array # to get arr[i] in O(1) minVal = [nums[0]] for i in range(1, len(nums)): minVal.append(min(nums[i], minVal[-1])) # Loop over for "j" index from right to left as "i"th index is fixed and can be taken from minVal for i in range(len(nums) - 1, -1, -1): # If the ith element is greater than the minimim ith element then only move forward if nums[i] > minVal[i]: # Remove the value from the top of the stack if "arr[k]" is smaller than the minimum while stack and stack[-1] <= minVal[i]: stack.pop() # If arr[i] < arr[k] < arr[j], return True if stack and minVal[i] < stack[-1] < nums[i]: return True stack.append(nums[i]) return False
[ 1, 396, 29871, 29946, 29945, 29953, 29889, 29871, 29896, 29941, 29906, 25860, 13, 15945, 29908, 13, 1678, 11221, 385, 1409, 310, 302, 11920, 954, 29879, 29892, 263, 29871, 29896, 29941, 29906, 4766, 338, 263, 1014, 16506, 310, 2211, 11920, 954, 29879, 29961, 29875, 1402, 954, 29879, 29961, 29926, 29962, 322, 954, 29879, 29961, 29895, 29962, 29871, 13, 1678, 1316, 393, 474, 529, 432, 529, 413, 322, 954, 29879, 29961, 29875, 29962, 529, 954, 29879, 29961, 29895, 29962, 529, 954, 29879, 29961, 29926, 1822, 13, 13, 1678, 7106, 1565, 565, 727, 338, 263, 29871, 29896, 29941, 29906, 4766, 297, 954, 29879, 29892, 6467, 29892, 736, 2089, 29889, 13, 13, 1678, 10306, 701, 29901, 450, 438, 29898, 29876, 29985, 29906, 29897, 338, 12604, 29892, 1033, 366, 2041, 701, 411, 278, 438, 29898, 29876, 1480, 29876, 29897, 470, 278, 438, 29898, 29876, 29897, 1650, 29973, 13, 13, 1678, 10567, 29901, 954, 29879, 353, 518, 29941, 29892, 29896, 29892, 29946, 29892, 29906, 29962, 13, 1678, 10604, 29901, 1565, 13, 1678, 1222, 9018, 362, 29901, 1670, 338, 263, 29871, 29896, 29941, 29906, 4766, 297, 278, 5665, 29901, 518, 29896, 29892, 29871, 29946, 29892, 29871, 29906, 1822, 13, 15945, 29908, 13, 1990, 24380, 29901, 13, 1678, 822, 1284, 29896, 29941, 29906, 11037, 29898, 1311, 29892, 954, 29879, 29901, 2391, 29961, 524, 2314, 1599, 6120, 29901, 13, 4706, 396, 17250, 24688, 278, 5096, 13, 4706, 5096, 353, 5159, 13, 13, 4706, 396, 5166, 1847, 278, 7636, 1206, 29892, 565, 727, 526, 3109, 1135, 29871, 29941, 3161, 13, 4706, 565, 7431, 29898, 842, 29898, 1949, 29879, 876, 529, 29871, 29941, 29901, 13, 9651, 736, 7700, 13, 4706, 396, 4721, 12097, 292, 278, 9212, 995, 1409, 411, 937, 2380, 1021, 408, 937, 2380, 310, 954, 29879, 1409, 29871, 13, 4706, 396, 304, 679, 3948, 29961, 29875, 29962, 297, 438, 29898, 29896, 29897, 13, 4706, 1375, 1440, 353, 518, 1949, 29879, 29961, 29900, 5262, 13, 4706, 363, 474, 297, 3464, 29898, 29896, 29892, 7431, 29898, 1949, 29879, 22164, 13, 9651, 1375, 1440, 29889, 4397, 29898, 1195, 29898, 1949, 29879, 29961, 29875, 1402, 1375, 1440, 14352, 29896, 12622, 13, 308, 13, 4706, 396, 21493, 975, 363, 376, 29926, 29908, 2380, 515, 1492, 304, 2175, 408, 376, 29875, 29908, 386, 2380, 338, 4343, 322, 508, 367, 4586, 515, 1375, 1440, 13, 4706, 363, 474, 297, 3464, 29898, 2435, 29898, 1949, 29879, 29897, 448, 29871, 29896, 29892, 448, 29896, 29892, 448, 29896, 1125, 13, 9651, 396, 960, 278, 372, 29882, 1543, 338, 7621, 1135, 278, 6260, 326, 372, 29882, 1543, 769, 871, 4337, 6375, 13, 9651, 565, 954, 29879, 29961, 29875, 29962, 1405, 1375, 1440, 29961, 29875, 5387, 13, 18884, 396, 15154, 278, 995, 515, 278, 2246, 310, 278, 5096, 565, 376, 2749, 29961, 29895, 18017, 338, 7968, 1135, 278, 9212, 13, 18884, 1550, 5096, 322, 5096, 14352, 29896, 29962, 5277, 1375, 1440, 29961, 29875, 5387, 13, 462, 1678, 5096, 29889, 7323, 580, 13, 18884, 396, 960, 3948, 29961, 29875, 29962, 529, 3948, 29961, 29895, 29962, 529, 3948, 29961, 29926, 1402, 736, 5852, 13, 18884, 565, 5096, 322, 1375, 1440, 29961, 29875, 29962, 529, 5096, 14352, 29896, 29962, 529, 954, 29879, 29961, 29875, 5387, 13, 462, 1678, 736, 5852, 13, 18884, 5096, 29889, 4397, 29898, 1949, 29879, 29961, 29875, 2314, 13, 4706, 736, 7700, 13, 2 ]
tests/modules/__init__.py
RecursionSpace/OpenPod
1
146699
''' Required for tests to recognize folder and perform tests. '''
[ 1, 14550, 830, 5958, 363, 6987, 304, 18720, 4138, 322, 2189, 6987, 29889, 14550, 13, 2 ]
tests/greedy/test_oblate_system.py
rodluger/starry
116
34794
import starry import numpy as np import matplotlib.pyplot as plt import pytest @pytest.mark.parametrize("ydeg,nw", [[0, None], [0, 10], [1, None], [1, 10]]) def test_system(ydeg, nw): # Oblate map map = starry.Map(udeg=2, ydeg=ydeg, oblate=True, nw=nw) map[1] = 0.5 map[2] = 0.25 map.omega = 0.5 map.beta = 1.23 map.tpole = 8000 map.f = 1 - 2 / (map.omega ** 2 + 2) map.obl = 30 # Compute system flux star = starry.Primary(map, r=1.5) planet = starry.Secondary(starry.Map(amp=0, nw=nw), porb=1.0, r=0.1, m=0) sys = starry.System(star, planet) t = np.linspace(-0.1, 0.1, 1000) flux_sys = sys.flux(t, integrated=True) # Compute map flux manually x, y, z = sys.position(t) xo = x[1] / star._r yo = y[1] / star._r flux_map = map.flux(xo=xo, yo=yo, ro=planet._r / star._r, integrated=True) # Check that they agree assert np.allclose(flux_map, flux_sys)
[ 1, 1053, 5810, 719, 13, 5215, 12655, 408, 7442, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 11451, 1688, 13, 13, 13, 29992, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 703, 29891, 12163, 29892, 29876, 29893, 613, 5519, 29900, 29892, 6213, 1402, 518, 29900, 29892, 29871, 29896, 29900, 1402, 518, 29896, 29892, 6213, 1402, 518, 29896, 29892, 29871, 29896, 29900, 24960, 13, 1753, 1243, 29918, 5205, 29898, 29891, 12163, 29892, 302, 29893, 1125, 13, 13, 1678, 396, 438, 2204, 403, 2910, 13, 1678, 2910, 353, 5810, 719, 29889, 3388, 29898, 1151, 29887, 29922, 29906, 29892, 343, 12163, 29922, 29891, 12163, 29892, 704, 9632, 29922, 5574, 29892, 302, 29893, 29922, 29876, 29893, 29897, 13, 1678, 2910, 29961, 29896, 29962, 353, 29871, 29900, 29889, 29945, 13, 1678, 2910, 29961, 29906, 29962, 353, 29871, 29900, 29889, 29906, 29945, 13, 1678, 2910, 29889, 4787, 353, 29871, 29900, 29889, 29945, 13, 1678, 2910, 29889, 3571, 353, 29871, 29896, 29889, 29906, 29941, 13, 1678, 2910, 29889, 29873, 15831, 353, 29871, 29947, 29900, 29900, 29900, 13, 1678, 2910, 29889, 29888, 353, 29871, 29896, 448, 29871, 29906, 847, 313, 1958, 29889, 4787, 3579, 29871, 29906, 718, 29871, 29906, 29897, 13, 1678, 2910, 29889, 711, 29880, 353, 29871, 29941, 29900, 13, 13, 1678, 396, 11796, 29872, 1788, 19389, 13, 1678, 5810, 353, 5810, 719, 29889, 26666, 29898, 1958, 29892, 364, 29922, 29896, 29889, 29945, 29897, 13, 1678, 15754, 353, 5810, 719, 29889, 11863, 653, 29898, 8508, 719, 29889, 3388, 29898, 1160, 29922, 29900, 29892, 302, 29893, 29922, 29876, 29893, 511, 1277, 29890, 29922, 29896, 29889, 29900, 29892, 364, 29922, 29900, 29889, 29896, 29892, 286, 29922, 29900, 29897, 13, 1678, 10876, 353, 5810, 719, 29889, 3924, 29898, 8508, 29892, 15754, 29897, 13, 1678, 260, 353, 7442, 29889, 1915, 3493, 6278, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29896, 29892, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 19389, 29918, 9675, 353, 10876, 29889, 1579, 1314, 29898, 29873, 29892, 23387, 29922, 5574, 29897, 13, 13, 1678, 396, 11796, 29872, 2910, 19389, 7522, 13, 1678, 921, 29892, 343, 29892, 503, 353, 10876, 29889, 3283, 29898, 29873, 29897, 13, 1678, 921, 29877, 353, 921, 29961, 29896, 29962, 847, 5810, 3032, 29878, 13, 1678, 24800, 353, 343, 29961, 29896, 29962, 847, 5810, 3032, 29878, 13, 1678, 19389, 29918, 1958, 353, 2910, 29889, 1579, 1314, 29898, 29916, 29877, 29922, 29916, 29877, 29892, 24800, 29922, 9029, 29892, 696, 29922, 9018, 300, 3032, 29878, 847, 5810, 3032, 29878, 29892, 23387, 29922, 5574, 29897, 13, 13, 1678, 396, 5399, 393, 896, 8661, 13, 1678, 4974, 7442, 29889, 497, 5358, 29898, 1579, 1314, 29918, 1958, 29892, 19389, 29918, 9675, 29897, 13, 2 ]
Pytorch/GANs/4 cGAN/dataset.py
muehlburger/Machine-Learning-Collection
0
97745
import pandas as pd from torch.utils.data import ( Dataset, DataLoader, ) import torch.nn as nn import torch from torchaudio import transforms class APGDataset(Dataset): def __init__(self, csv_file, root_dir, transforms=None): self.data = pd.read_csv(csv_file) self.root_dir = root_dir self.transforms = transforms def __len__(self): return len(self.data) def __getitem__(self, item): x_data = self.data.iloc[item, 0:21] x_data = torch.tensor(x_data) y_label = torch.tensor(int(self.data.iloc[item, 21])) return (x_data.float(), y_label) def write_to_total(): # Import training data dataset_train = pd.read_csv("dataset/APG/csvDataFeaturesTrain.csv", delimiter=';') dataset_test = pd.read_csv("dataset/APG/csvDataFeaturesTest.csv", delimiter=';') X = dataset_train.append(dataset_test) X.groupby('attack').count() X['attack'] = X['attack'].map({0:0, 1:1, 2:1, 3:1, 4:1}) X.to_csv("dataset/APG/total.csv", index=False) def test(): dataset = APGDataset(csv_file="dataset/APG/total.csv", root_dir="dataset/APG/", transforms=transforms.Tensor()) dataloader = DataLoader(dataset=dataset, batch_size=4096, shuffle=True) for batch_idx, (data, targets) in enumerate(dataloader): data = data.to(device="cpu") labels = targets.to(device="cpu") print(data.shape, labels.shape) #test()
[ 1, 1053, 11701, 408, 10518, 13, 3166, 4842, 305, 29889, 13239, 29889, 1272, 1053, 313, 13, 1678, 13373, 24541, 29892, 13, 1678, 3630, 10036, 29892, 13, 29897, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 13, 3166, 4842, 5815, 2881, 1053, 4327, 29879, 13, 13, 13, 1990, 12279, 29954, 16390, 24541, 29898, 16390, 24541, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 11799, 29918, 1445, 29892, 3876, 29918, 3972, 29892, 4327, 29879, 29922, 8516, 1125, 13, 4706, 1583, 29889, 1272, 353, 10518, 29889, 949, 29918, 7638, 29898, 7638, 29918, 1445, 29897, 13, 4706, 1583, 29889, 4632, 29918, 3972, 353, 3876, 29918, 3972, 13, 4706, 1583, 29889, 9067, 29879, 353, 4327, 29879, 13, 13, 1678, 822, 4770, 2435, 12035, 1311, 1125, 13, 4706, 736, 7431, 29898, 1311, 29889, 1272, 29897, 13, 13, 1678, 822, 4770, 657, 667, 12035, 1311, 29892, 2944, 1125, 13, 4706, 921, 29918, 1272, 353, 1583, 29889, 1272, 29889, 309, 542, 29961, 667, 29892, 29871, 29900, 29901, 29906, 29896, 29962, 13, 4706, 921, 29918, 1272, 353, 4842, 305, 29889, 20158, 29898, 29916, 29918, 1272, 29897, 13, 4706, 343, 29918, 1643, 353, 4842, 305, 29889, 20158, 29898, 524, 29898, 1311, 29889, 1272, 29889, 309, 542, 29961, 667, 29892, 29871, 29906, 29896, 12622, 13, 13, 4706, 736, 313, 29916, 29918, 1272, 29889, 7411, 3285, 343, 29918, 1643, 29897, 13, 13, 1753, 2436, 29918, 517, 29918, 7827, 7295, 13, 1678, 396, 16032, 6694, 848, 13, 1678, 8783, 29918, 14968, 353, 10518, 29889, 949, 29918, 7638, 703, 24713, 29914, 3301, 29954, 29914, 7638, 1469, 8263, 3698, 5323, 262, 29889, 7638, 613, 28552, 2433, 29936, 1495, 13, 1678, 8783, 29918, 1688, 353, 10518, 29889, 949, 29918, 7638, 703, 24713, 29914, 3301, 29954, 29914, 7638, 1469, 8263, 3698, 3057, 29889, 7638, 613, 28552, 2433, 29936, 1495, 13, 1678, 1060, 353, 8783, 29918, 14968, 29889, 4397, 29898, 24713, 29918, 1688, 29897, 13, 1678, 1060, 29889, 27789, 877, 1131, 547, 2824, 2798, 580, 13, 1678, 1060, 1839, 1131, 547, 2033, 353, 1060, 1839, 1131, 547, 13359, 1958, 3319, 29900, 29901, 29900, 29892, 29871, 29896, 29901, 29896, 29892, 29871, 29906, 29901, 29896, 29892, 29871, 29941, 29901, 29896, 29892, 29871, 29946, 29901, 29896, 1800, 13, 13, 1678, 1060, 29889, 517, 29918, 7638, 703, 24713, 29914, 3301, 29954, 29914, 7827, 29889, 7638, 613, 2380, 29922, 8824, 29897, 13, 13, 1753, 1243, 7295, 13, 1678, 8783, 353, 12279, 29954, 16390, 24541, 29898, 7638, 29918, 1445, 543, 24713, 29914, 3301, 29954, 29914, 7827, 29889, 7638, 613, 3876, 29918, 3972, 543, 24713, 29914, 3301, 29954, 29914, 613, 4327, 29879, 29922, 9067, 29879, 29889, 29911, 6073, 3101, 13, 1678, 1418, 7003, 1664, 353, 3630, 10036, 29898, 24713, 29922, 24713, 29892, 9853, 29918, 2311, 29922, 29946, 29900, 29929, 29953, 29892, 528, 21897, 29922, 5574, 29897, 13, 13, 1678, 363, 9853, 29918, 13140, 29892, 313, 1272, 29892, 22525, 29897, 297, 26985, 29898, 29881, 2075, 29877, 1664, 1125, 13, 4706, 848, 353, 848, 29889, 517, 29898, 10141, 543, 21970, 1159, 13, 4706, 11073, 353, 22525, 29889, 517, 29898, 10141, 543, 21970, 1159, 13, 13, 4706, 1596, 29898, 1272, 29889, 12181, 29892, 11073, 29889, 12181, 29897, 13, 13, 29937, 1688, 580, 2 ]
records/12-09/ffff.py
AaronYang2333/CSCI_570
36
5022
<filename>records/12-09/ffff.py<gh_stars>10-100 __author__ = '<NAME>' __email__ = '<EMAIL>' __date__ = '12/9/2020 4:18 PM' from abc import abstractmethod class Product(object): @abstractmethod def setMsg(self, msg="default info"): self.msg = msg @abstractmethod def info(self): print(self.msg) class DefaultObj(Product): def __init__(self): super().setMsg() class Factory(object): @abstractmethod def produce(self): return DefaultObj() class PC(Product): def __init__(self): self.setMsg('pc info') class LAPTOP(Product): def __init__(self): self.setMsg('laptop info') class PCFactory(Factory): def produce(self): return PC() class LAPTOPFactory(Factory): def produce(self): return LAPTOP() if __name__ == '__main__': ss = Factory().produce() pc = PCFactory().produce() laptop = LAPTOPFactory().produce() pc.info() laptop.info() ss.info()
[ 1, 529, 9507, 29958, 3757, 4339, 29914, 29896, 29906, 29899, 29900, 29929, 29914, 17156, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 1649, 8921, 1649, 353, 12801, 5813, 16299, 13, 1649, 5269, 1649, 353, 12801, 26862, 6227, 16299, 13, 1649, 1256, 1649, 353, 525, 29896, 29906, 29914, 29929, 29914, 29906, 29900, 29906, 29900, 29871, 29946, 29901, 29896, 29947, 11278, 29915, 13, 13, 3166, 25638, 1053, 9846, 5696, 13, 13, 13, 1990, 10969, 29898, 3318, 1125, 13, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 731, 16190, 29898, 1311, 29892, 10191, 543, 4381, 5235, 29908, 1125, 13, 4706, 1583, 29889, 7645, 353, 10191, 13, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 5235, 29898, 1311, 1125, 13, 4706, 1596, 29898, 1311, 29889, 7645, 29897, 13, 13, 13, 1990, 13109, 9930, 29898, 7566, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 842, 16190, 580, 13, 13, 13, 1990, 27561, 29898, 3318, 1125, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 7738, 29898, 1311, 1125, 13, 4706, 736, 13109, 9930, 580, 13, 13, 13, 1990, 9609, 29898, 7566, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 842, 16190, 877, 6739, 5235, 1495, 13, 13, 13, 1990, 365, 3301, 29911, 4590, 29898, 7566, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 842, 16190, 877, 433, 16002, 5235, 1495, 13, 13, 13, 1990, 9609, 5126, 29898, 5126, 1125, 13, 1678, 822, 7738, 29898, 1311, 1125, 13, 4706, 736, 9609, 580, 13, 13, 13, 1990, 365, 3301, 29911, 4590, 5126, 29898, 5126, 1125, 13, 1678, 822, 7738, 29898, 1311, 1125, 13, 4706, 736, 365, 3301, 29911, 4590, 580, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 17971, 353, 27561, 2141, 5498, 346, 580, 13, 1678, 22844, 353, 9609, 5126, 2141, 5498, 346, 580, 13, 1678, 19022, 353, 365, 3301, 29911, 4590, 5126, 2141, 5498, 346, 580, 13, 1678, 22844, 29889, 3888, 580, 13, 1678, 19022, 29889, 3888, 580, 13, 13, 1678, 17971, 29889, 3888, 580, 13, 2 ]
exceltogdx/exceltogdx.py
diw-berlin/exceltogdx
0
158533
<filename>exceltogdx/exceltogdx.py from gdxpds import load_gdxcc from gdxpds.write_gdx import Translator from openpyxl import load_workbook from io import BytesIO import pandas as pd import numpy as np import logging import os import re logging.getLogger('gdxpds').setLevel(logging.ERROR) def xlsdynamicecke(typ, cell, rdim, cdim, sheetname, wb, verbose=False): ''' Returns a list of row and col of bottom-left corner of a table in pandas indexing format (from zero to inf). It stops when there is an empty cell in index (rows) or headings (columns). typ: string 'set' or 'par' cell: string in excel format of top-right table corner cell. rdim: indicates the number of columns from the beginning are sets cdim: indicates the number of rows from the top are sets sheetname: self-explanatory wb: is the workbook of an excel file instance of 'from openpyxl import load_workbook' eg. xlsdynamicecke('set', C5', 1, 0, 'sheet1', workbook.object) return set or table coord. ''' cell = cell.upper() sheet = wb[sheetname] string = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' def col2num(letters): ''' column letter to column number ''' num = 0 for c in letters: if c in string: num = num * 26 + (ord(c.upper()) - ord('A')) + 1 return num def colnum_string(n): strings = "" while n > 0: n, remainder = divmod(n - 1, 26) strings = chr(65 + remainder) + strings return strings def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in the comments) ''' def atoi(text): return int(text) if text.isdigit() else text return [atoi(c) for c in re.split(r'(\d+)', text)] cut = 0 for s in cell: if s in string: cut += 1 else: break rowstr = cell[cut:] colstr = cell[:cut] row = int(rowstr) col = col2num(colstr.upper()) if typ == 'par': if cdim == 0: j = 0 for i, r in enumerate(sheet.iter_rows(min_row=row, min_col=col, max_col=col, values_only=True)): j = i if r[0] is None: j = i - 1 break max_col = rdim + 1 max_row = row + j rng = colnum_string(col) + str(row - 1) + ':' + colnum_string(max_col) + str(max_row) data = sheet[rng] output = [[cells.value for cells in row] for row in data] if verbose: print(rng) print(output[:3]) else: j = 0 for i, c in enumerate(sheet.iter_cols(min_row=row, max_row=row, min_col=col+rdim, values_only=True)): j = i if c[0] is None: j = i - 1 break max_col = col + j + rdim for i, r in enumerate(sheet.iter_rows(min_row=row+cdim+1, min_col=col, max_col=col, values_only=True)): j = i if r[0] is None: j = i - 1 break max_row = row + j + cdim + 1 rng = cell + ':' + colnum_string(max_col) + str(max_row) data = sheet[rng] output = [[cells.value for cells in row] for row in data] if verbose: print(rng) print(output[:3]) elif typ == 'set': setls = [] if rdim == 1: for i, r in enumerate(sheet.iter_rows(min_row=row, min_col=col, max_col=col, values_only=True)): if r[0] is not None: setls.append(r[0]) else: break if all([isinstance(s, (int, float)) for s in list(set(setls))]): output = sorted(list(set(setls))) else: output = sorted(list(set(setls)), key=natural_keys) elif cdim == 1: for i, c in enumerate(sheet.iter_cols(min_row=row, max_row=row, min_col=col, values_only=True)): if c[0] is not None: setls.append(c[0]) else: break if all([isinstance(s, (int, float)) for s in list(set(setls))]): output = sorted(list(set(setls))) else: output = sorted(list(set(setls)), key=natural_keys) else: raise ValueError('Set must have either rdim or cdim as 1, check dim in py sheet') del sheet return output def exceltogdx(excel_file, gdx_file, csv_file=None, csv_copy=None, verbose=False, gams_dir=None): ''' excel_file: input file path gdx_file: output file path csv_file: if None, it looks at excel file to find sheet with name 'py' that contains the instructions to get sets and parameters. Otherwise, csv file path. csv_copy: indicate folder where csv files are saved. None (Default): no csv files are created. ''' load_gdxcc(gams_dir) if csv_file is None: mapping = pd.read_excel(excel_file, sheet_name='py', index_col='symbol', engine='openpyxl') else: mapping = pd.read_csv(csv_file, index_col='symbol') print(f"Loading excel file: {excel_file}") with open(excel_file, 'rb') as f: datas = BytesIO(f.read()) wb = load_workbook(datas, data_only=True) dc = {} df = pd.DataFrame() for k, v in mapping.iterrows(): if verbose: print(v['type'],': ', k) xlsvalues = xlsdynamicecke(v['type'], v['startcell'], v['rdim'], v['cdim'], v['sheet_name'], wb, verbose=verbose) if v['type'] == 'par': df = pd.DataFrame(xlsvalues) if v['cdim'] == 0: df = df.T.set_index(0, append=False).T try: df = df.set_index(df.columns[list(range(v['rdim']))].to_list()) except KeyError: raise KeyError("each rdim in parameter '{}' must have a heading (Don't leave it empty), not required for cdim".format(k)) df.index.names = list(range(1,df.index.nlevels+1)) elif v['cdim'] == 1: df = df.T.set_index(0, append=False).T try: df = df.set_index(df.columns[list(range(v['rdim']))].to_list()) except KeyError: raise KeyError("each rdim in parameter '{}' must have a heading (Don't leave it empty), not required for cdim".format(k)) df = df.stack([0]*df.columns.nlevels) df.index.names = list(range(1,df.index.nlevels+1)) df = pd.DataFrame(df) elif v['cdim'] > 1: df = df.T.set_index(list(range(v['cdim'])), append=False).T try: df = df.set_index(df.columns[list(range(v['rdim']))].to_list()) except KeyError: raise KeyError("each rdim in parameter '{}' must have a heading (Don't leave it empty), not required for cdim".format(k)) df = df.stack([0]*df.columns.nlevels) df.index.names = list(range(1,df.index.nlevels+1)) df = pd.DataFrame(df) else: raise Exception('is "{}" a parameter?, verify cdim on "py" sheet. cdim must be positive integer'.format(k)) df = df.reset_index().rename(columns={df.columns.to_list()[-1]: 'value'}).astype(object) df.loc[df[df['value'].astype('str').str.lower() == 'inf'].index, 'value'] = np.inf df.loc[df[df['value'].astype('str').str.lower() == '+inf'].index, 'value'] = np.inf df.loc[df[df['value'].astype('str').str.lower() == '-inf'].index, 'value'] = -np.inf df.loc[df[df['value'].astype('str').str.lower() == 'eps'].index, 'value'] = np.finfo(float).eps # np.nextafter(0,1) df.loc[:,[c for c in df.columns if (c != 'value' and df[c].dtypes == float)]] = df[[c for c in df.columns if (c != 'value' and df[c].dtypes == float)]].astype(int) df.loc[:,[c for c in df.columns if c != 'value']] = df[[c for c in df.columns if c != 'value']].astype(str) dc[k] = df.rename(columns={c: '*' for c in df.columns if c != 'value'}) elif v['type'] == 'set': df = pd.DataFrame({'*': xlsvalues}) df.loc[:, 'value'] = 'True' df.dropna(inplace=True) dc[k] = df if csv_copy is not None: os.makedirs(csv_copy, exist_ok=True) name = v['type'] + '_' + k + '.csv' df.to_csv(os.path.join(csv_copy, name), index=False) os.makedirs(os.path.abspath(os.path.join(gdx_file, os.pardir)), exist_ok=True) print(f'Generating gdx file: {gdx_file}') translator = Translator(dc) translator.gams_dir = gams_dir translator.save_gdx(gdx_file) translator.gdx print('GDX Done!') return dc
[ 1, 529, 9507, 29958, 735, 29883, 2152, 468, 8235, 29914, 735, 29883, 2152, 468, 8235, 29889, 2272, 13, 3166, 330, 8235, 29886, 6289, 1053, 2254, 29918, 29887, 8235, 617, 13, 3166, 330, 8235, 29886, 6289, 29889, 3539, 29918, 29887, 8235, 1053, 4103, 29880, 1061, 13, 3166, 1722, 2272, 15524, 1053, 2254, 29918, 1287, 2909, 13, 3166, 12013, 1053, 2648, 2167, 5971, 13, 5215, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 5215, 12183, 13, 5215, 2897, 13, 5215, 337, 13, 13, 21027, 29889, 657, 16363, 877, 29887, 8235, 29886, 6289, 2824, 842, 10108, 29898, 21027, 29889, 11432, 29897, 13, 13, 1753, 921, 3137, 29881, 2926, 625, 10055, 29898, 22449, 29892, 3038, 29892, 364, 6229, 29892, 274, 6229, 29892, 9869, 978, 29892, 281, 29890, 29892, 26952, 29922, 8824, 1125, 13, 1678, 14550, 13, 1678, 16969, 263, 1051, 310, 1948, 322, 784, 310, 5970, 29899, 1563, 11155, 310, 263, 1591, 297, 11701, 26190, 3402, 313, 3166, 5225, 304, 3041, 467, 13, 1678, 739, 17726, 746, 727, 338, 385, 4069, 3038, 297, 2380, 313, 5727, 29897, 470, 2343, 886, 313, 13099, 467, 13, 1678, 2393, 29901, 1347, 525, 842, 29915, 470, 525, 862, 29915, 13, 1678, 3038, 29901, 1347, 297, 10616, 3402, 310, 2246, 29899, 1266, 1591, 11155, 3038, 29889, 13, 1678, 364, 6229, 29901, 14088, 278, 1353, 310, 4341, 515, 278, 6763, 526, 6166, 13, 1678, 274, 6229, 29901, 14088, 278, 1353, 310, 4206, 515, 278, 2246, 526, 6166, 13, 1678, 9869, 978, 29901, 1583, 29899, 735, 9018, 7606, 13, 1678, 281, 29890, 29901, 338, 278, 664, 2909, 310, 385, 10616, 934, 2777, 310, 525, 3166, 1722, 2272, 15524, 1053, 2254, 29918, 1287, 2909, 29915, 13, 1678, 8087, 29889, 921, 3137, 29881, 2926, 625, 10055, 877, 842, 742, 315, 29945, 742, 29871, 29896, 29892, 29871, 29900, 29892, 525, 9855, 29896, 742, 664, 2909, 29889, 3318, 29897, 13, 1678, 736, 731, 470, 1591, 29311, 29889, 13, 1678, 14550, 13, 1678, 3038, 353, 3038, 29889, 21064, 580, 13, 1678, 9869, 353, 281, 29890, 29961, 9855, 978, 29962, 13, 1678, 1347, 353, 525, 10736, 1753, 12443, 823, 6321, 23521, 459, 29939, 29878, 303, 4090, 29893, 20230, 19658, 24405, 29954, 17628, 29967, 29968, 26369, 29940, 4590, 29984, 29934, 1254, 29965, 29963, 29956, 18454, 29999, 29915, 13, 13, 1678, 822, 784, 29906, 1949, 29898, 1026, 2153, 1125, 13, 4706, 14550, 13, 4706, 1897, 5497, 304, 1897, 1353, 13, 4706, 14550, 13, 4706, 954, 353, 29871, 29900, 13, 4706, 363, 274, 297, 8721, 29901, 13, 9651, 565, 274, 297, 1347, 29901, 13, 18884, 954, 353, 954, 334, 29871, 29906, 29953, 718, 313, 536, 29898, 29883, 29889, 21064, 3101, 448, 4356, 877, 29909, 8785, 718, 29871, 29896, 13, 4706, 736, 954, 13, 13, 1678, 822, 784, 1949, 29918, 1807, 29898, 29876, 1125, 13, 4706, 6031, 353, 5124, 13, 4706, 1550, 302, 1405, 29871, 29900, 29901, 13, 9651, 302, 29892, 21162, 353, 1933, 1545, 29898, 29876, 448, 29871, 29896, 29892, 29871, 29906, 29953, 29897, 13, 9651, 6031, 353, 18460, 29898, 29953, 29945, 718, 21162, 29897, 718, 6031, 13, 4706, 736, 6031, 13, 13, 1678, 822, 5613, 29918, 8149, 29898, 726, 1125, 13, 4706, 14550, 13, 4706, 394, 391, 29889, 6605, 29898, 1989, 29922, 25047, 29918, 8149, 29897, 23551, 297, 5199, 1797, 13, 4706, 1732, 597, 9571, 16175, 295, 672, 29889, 510, 29914, 7312, 29914, 29906, 29900, 29900, 29955, 29896, 29906, 29914, 26029, 29918, 6605, 292, 29889, 1420, 13, 4706, 313, 13393, 1763, 20336, 29915, 29879, 5314, 297, 278, 6589, 29897, 13, 4706, 14550, 13, 4706, 822, 472, 7768, 29898, 726, 1125, 13, 9651, 736, 938, 29898, 726, 29897, 565, 1426, 29889, 275, 26204, 580, 1683, 1426, 13, 4706, 736, 518, 1219, 29875, 29898, 29883, 29897, 363, 274, 297, 337, 29889, 5451, 29898, 29878, 29915, 1194, 29881, 28135, 742, 1426, 4638, 13, 13, 1678, 5700, 353, 29871, 29900, 13, 1678, 363, 269, 297, 3038, 29901, 13, 4706, 565, 269, 297, 1347, 29901, 13, 9651, 5700, 4619, 29871, 29896, 13, 4706, 1683, 29901, 13, 9651, 2867, 13, 1678, 1948, 710, 353, 3038, 29961, 7582, 17531, 13, 1678, 784, 710, 353, 3038, 7503, 7582, 29962, 13, 13, 1678, 1948, 353, 938, 29898, 798, 710, 29897, 13, 1678, 784, 353, 784, 29906, 1949, 29898, 1054, 710, 29889, 21064, 3101, 13, 1678, 565, 2393, 1275, 525, 862, 2396, 13, 4706, 565, 274, 6229, 1275, 29871, 29900, 29901, 13, 9651, 432, 353, 29871, 29900, 13, 9651, 363, 474, 29892, 364, 297, 26985, 29898, 9855, 29889, 1524, 29918, 5727, 29898, 1195, 29918, 798, 29922, 798, 29892, 1375, 29918, 1054, 29922, 1054, 29892, 4236, 29918, 1054, 29922, 1054, 29892, 1819, 29918, 6194, 29922, 5574, 22164, 13, 18884, 432, 353, 474, 13, 18884, 565, 364, 29961, 29900, 29962, 338, 6213, 29901, 13, 462, 1678, 432, 353, 474, 448, 29871, 29896, 13, 462, 1678, 2867, 13, 9651, 4236, 29918, 1054, 353, 364, 6229, 718, 29871, 29896, 13, 9651, 4236, 29918, 798, 353, 1948, 718, 432, 13, 9651, 364, 865, 353, 784, 1949, 29918, 1807, 29898, 1054, 29897, 718, 851, 29898, 798, 448, 29871, 29896, 29897, 718, 525, 11283, 718, 784, 1949, 29918, 1807, 29898, 3317, 29918, 1054, 29897, 718, 851, 29898, 3317, 29918, 798, 29897, 13, 9651, 848, 353, 9869, 29961, 29878, 865, 29962, 13, 9651, 1962, 353, 5519, 3729, 29879, 29889, 1767, 363, 9101, 297, 1948, 29962, 363, 1948, 297, 848, 29962, 13, 9651, 565, 26952, 29901, 13, 18884, 1596, 29898, 29878, 865, 29897, 13, 18884, 1596, 29898, 4905, 7503, 29941, 2314, 13, 4706, 1683, 29901, 13, 9651, 432, 353, 29871, 29900, 13, 9651, 363, 474, 29892, 274, 297, 26985, 29898, 9855, 29889, 1524, 29918, 22724, 29898, 1195, 29918, 798, 29922, 798, 29892, 4236, 29918, 798, 29922, 798, 29892, 1375, 29918, 1054, 29922, 1054, 29974, 5499, 326, 29892, 1819, 29918, 6194, 29922, 5574, 22164, 13, 18884, 432, 353, 474, 13, 18884, 565, 274, 29961, 29900, 29962, 338, 6213, 29901, 13, 462, 1678, 432, 353, 474, 448, 29871, 29896, 13, 462, 1678, 2867, 13, 9651, 4236, 29918, 1054, 353, 784, 718, 432, 718, 364, 6229, 13, 9651, 363, 474, 29892, 364, 297, 26985, 29898, 9855, 29889, 1524, 29918, 5727, 29898, 1195, 29918, 798, 29922, 798, 29974, 2252, 326, 29974, 29896, 29892, 1375, 29918, 1054, 29922, 1054, 29892, 4236, 29918, 1054, 29922, 1054, 29892, 1819, 29918, 6194, 29922, 5574, 22164, 13, 18884, 432, 353, 474, 13, 18884, 565, 364, 29961, 29900, 29962, 338, 6213, 29901, 13, 462, 1678, 432, 353, 474, 448, 29871, 29896, 13, 462, 1678, 2867, 13, 9651, 4236, 29918, 798, 353, 1948, 718, 432, 718, 274, 6229, 718, 29871, 29896, 13, 9651, 364, 865, 353, 3038, 718, 525, 11283, 718, 784, 1949, 29918, 1807, 29898, 3317, 29918, 1054, 29897, 718, 851, 29898, 3317, 29918, 798, 29897, 13, 9651, 848, 353, 9869, 29961, 29878, 865, 29962, 13, 9651, 1962, 353, 5519, 3729, 29879, 29889, 1767, 363, 9101, 297, 1948, 29962, 363, 1948, 297, 848, 29962, 13, 9651, 565, 26952, 29901, 13, 18884, 1596, 29898, 29878, 865, 29897, 13, 18884, 1596, 29898, 4905, 7503, 29941, 2314, 13, 1678, 25342, 2393, 1275, 525, 842, 2396, 13, 4706, 731, 3137, 353, 5159, 13, 4706, 565, 364, 6229, 1275, 29871, 29896, 29901, 13, 9651, 363, 474, 29892, 364, 297, 26985, 29898, 9855, 29889, 1524, 29918, 5727, 29898, 1195, 29918, 798, 29922, 798, 29892, 1375, 29918, 1054, 29922, 1054, 29892, 4236, 29918, 1054, 29922, 1054, 29892, 1819, 29918, 6194, 29922, 5574, 22164, 13, 18884, 565, 364, 29961, 29900, 29962, 338, 451, 6213, 29901, 13, 462, 1678, 731, 3137, 29889, 4397, 29898, 29878, 29961, 29900, 2314, 13, 18884, 1683, 29901, 13, 462, 1678, 2867, 13, 9651, 565, 599, 4197, 275, 8758, 29898, 29879, 29892, 313, 524, 29892, 5785, 876, 363, 269, 297, 1051, 29898, 842, 29898, 842, 3137, 28166, 1125, 13, 18884, 1962, 353, 12705, 29898, 1761, 29898, 842, 29898, 842, 3137, 4961, 13, 9651, 1683, 29901, 13, 18884, 1962, 353, 12705, 29898, 1761, 29898, 842, 29898, 842, 3137, 8243, 1820, 29922, 25047, 29918, 8149, 29897, 13, 13, 4706, 25342, 274, 6229, 1275, 29871, 29896, 29901, 13, 9651, 363, 474, 29892, 274, 297, 26985, 29898, 9855, 29889, 1524, 29918, 22724, 29898, 1195, 29918, 798, 29922, 798, 29892, 4236, 29918, 798, 29922, 798, 29892, 1375, 29918, 1054, 29922, 1054, 29892, 1819, 29918, 6194, 29922, 5574, 22164, 13, 18884, 565, 274, 29961, 29900, 29962, 338, 451, 6213, 29901, 13, 462, 1678, 731, 3137, 29889, 4397, 29898, 29883, 29961, 29900, 2314, 13, 18884, 1683, 29901, 13, 462, 1678, 2867, 13, 9651, 565, 599, 4197, 275, 8758, 29898, 29879, 29892, 313, 524, 29892, 5785, 876, 363, 269, 297, 1051, 29898, 842, 29898, 842, 3137, 28166, 1125, 13, 18884, 1962, 353, 12705, 29898, 1761, 29898, 842, 29898, 842, 3137, 4961, 13, 9651, 1683, 29901, 13, 18884, 1962, 353, 12705, 29898, 1761, 29898, 842, 29898, 842, 3137, 8243, 1820, 29922, 25047, 29918, 8149, 29897, 13, 4706, 1683, 29901, 13, 9651, 12020, 7865, 2392, 877, 2697, 1818, 505, 2845, 364, 6229, 470, 274, 6229, 408, 29871, 29896, 29892, 1423, 3964, 297, 11451, 9869, 1495, 13, 1678, 628, 9869, 13, 1678, 736, 1962, 13, 13, 13, 1753, 5566, 2152, 468, 8235, 29898, 24633, 29918, 1445, 29892, 330, 8235, 29918, 1445, 29892, 11799, 29918, 1445, 29922, 8516, 29892, 11799, 29918, 8552, 29922, 8516, 29892, 26952, 29922, 8824, 29892, 330, 2232, 29918, 3972, 29922, 8516, 1125, 13, 1678, 14550, 13, 1678, 10616, 29918, 1445, 29901, 1881, 934, 2224, 13, 1678, 330, 8235, 29918, 1445, 29901, 1962, 934, 2224, 13, 1678, 11799, 29918, 1445, 29901, 565, 6213, 29892, 372, 3430, 472, 10616, 934, 304, 1284, 9869, 411, 1024, 525, 2272, 29915, 13, 18884, 393, 3743, 278, 11994, 304, 679, 6166, 322, 4128, 29889, 13, 18884, 13466, 29892, 11799, 934, 2224, 29889, 13, 1678, 11799, 29918, 8552, 29901, 12266, 4138, 988, 11799, 2066, 526, 7160, 29889, 6213, 313, 4592, 1125, 694, 11799, 2066, 526, 2825, 29889, 13, 1678, 14550, 13, 1678, 2254, 29918, 29887, 8235, 617, 29898, 29887, 2232, 29918, 3972, 29897, 13, 268, 13, 268, 13, 1678, 565, 11799, 29918, 1445, 338, 6213, 29901, 13, 4706, 10417, 353, 10518, 29889, 949, 29918, 24633, 29898, 24633, 29918, 1445, 29892, 9869, 29918, 978, 2433, 2272, 742, 2380, 29918, 1054, 2433, 18098, 742, 6012, 2433, 3150, 2272, 15524, 1495, 13, 1678, 1683, 29901, 13, 4706, 10417, 353, 10518, 29889, 949, 29918, 7638, 29898, 7638, 29918, 1445, 29892, 2380, 29918, 1054, 2433, 18098, 1495, 13, 13, 1678, 1596, 29898, 29888, 29908, 23456, 10616, 934, 29901, 426, 24633, 29918, 1445, 27195, 13, 1678, 411, 1722, 29898, 24633, 29918, 1445, 29892, 525, 6050, 1495, 408, 285, 29901, 13, 4706, 6155, 353, 2648, 2167, 5971, 29898, 29888, 29889, 949, 3101, 13, 1678, 281, 29890, 353, 2254, 29918, 1287, 2909, 29898, 14538, 29892, 848, 29918, 6194, 29922, 5574, 29897, 13, 1678, 270, 29883, 353, 6571, 13, 1678, 4489, 353, 10518, 29889, 17271, 580, 13, 1678, 363, 413, 29892, 325, 297, 10417, 29889, 1524, 5727, 7295, 13, 4706, 565, 26952, 29901, 13, 9651, 1596, 29898, 29894, 1839, 1853, 7464, 2396, 13420, 413, 29897, 13, 4706, 921, 3137, 5975, 353, 921, 3137, 29881, 2926, 625, 10055, 29898, 29894, 1839, 1853, 7464, 325, 1839, 2962, 3729, 7464, 325, 1839, 5499, 326, 7464, 325, 1839, 2252, 326, 7464, 325, 1839, 9855, 29918, 978, 7464, 281, 29890, 29892, 26952, 29922, 369, 15828, 29897, 13, 4706, 565, 325, 1839, 1853, 2033, 1275, 525, 862, 2396, 13, 9651, 4489, 353, 10518, 29889, 17271, 29898, 20267, 5975, 29897, 13, 9651, 565, 325, 1839, 2252, 326, 2033, 1275, 29871, 29900, 29901, 13, 18884, 4489, 353, 4489, 29889, 29911, 29889, 842, 29918, 2248, 29898, 29900, 29892, 9773, 29922, 8824, 467, 29911, 13, 18884, 1018, 29901, 13, 462, 1678, 4489, 353, 4489, 29889, 842, 29918, 2248, 29898, 2176, 29889, 13099, 29961, 1761, 29898, 3881, 29898, 29894, 1839, 5499, 326, 25901, 1822, 517, 29918, 1761, 3101, 13, 18884, 5174, 7670, 2392, 29901, 13, 462, 1678, 12020, 7670, 2392, 703, 4204, 364, 6229, 297, 3443, 525, 8875, 29915, 1818, 505, 263, 28435, 313, 10310, 29915, 29873, 5967, 372, 4069, 511, 451, 3734, 363, 274, 6229, 1642, 4830, 29898, 29895, 876, 13, 18884, 4489, 29889, 2248, 29889, 7039, 353, 1051, 29898, 3881, 29898, 29896, 29892, 2176, 29889, 2248, 29889, 29876, 5563, 29879, 29974, 29896, 876, 13, 9651, 25342, 325, 1839, 2252, 326, 2033, 1275, 29871, 29896, 29901, 13, 18884, 4489, 353, 4489, 29889, 29911, 29889, 842, 29918, 2248, 29898, 29900, 29892, 9773, 29922, 8824, 467, 29911, 13, 18884, 1018, 29901, 13, 462, 1678, 4489, 353, 4489, 29889, 842, 29918, 2248, 29898, 2176, 29889, 13099, 29961, 1761, 29898, 3881, 29898, 29894, 1839, 5499, 326, 25901, 1822, 517, 29918, 1761, 3101, 13, 18884, 5174, 7670, 2392, 29901, 13, 462, 1678, 12020, 7670, 2392, 703, 4204, 364, 6229, 297, 3443, 525, 8875, 29915, 1818, 505, 263, 28435, 313, 10310, 29915, 29873, 5967, 372, 4069, 511, 451, 3734, 363, 274, 6229, 1642, 4830, 29898, 29895, 876, 13, 18884, 4489, 353, 4489, 29889, 1429, 4197, 29900, 14178, 2176, 29889, 13099, 29889, 29876, 5563, 29879, 29897, 13, 18884, 4489, 29889, 2248, 29889, 7039, 353, 1051, 29898, 3881, 29898, 29896, 29892, 2176, 29889, 2248, 29889, 29876, 5563, 29879, 29974, 29896, 876, 13, 18884, 4489, 353, 10518, 29889, 17271, 29898, 2176, 29897, 13, 9651, 25342, 325, 1839, 2252, 326, 2033, 1405, 29871, 29896, 29901, 13, 18884, 4489, 353, 4489, 29889, 29911, 29889, 842, 29918, 2248, 29898, 1761, 29898, 3881, 29898, 29894, 1839, 2252, 326, 2033, 8243, 9773, 29922, 8824, 467, 29911, 13, 18884, 1018, 29901, 13, 462, 1678, 4489, 353, 4489, 29889, 842, 29918, 2248, 29898, 2176, 29889, 13099, 29961, 1761, 29898, 3881, 29898, 29894, 1839, 5499, 326, 25901, 1822, 517, 29918, 1761, 3101, 13, 18884, 5174, 7670, 2392, 29901, 13, 462, 1678, 12020, 7670, 2392, 703, 4204, 364, 6229, 297, 3443, 525, 8875, 29915, 1818, 505, 263, 28435, 313, 10310, 29915, 29873, 5967, 372, 4069, 511, 451, 3734, 363, 274, 6229, 1642, 4830, 29898, 29895, 876, 13, 18884, 4489, 353, 4489, 29889, 1429, 4197, 29900, 14178, 2176, 29889, 13099, 29889, 29876, 5563, 29879, 29897, 13, 18884, 4489, 29889, 2248, 29889, 7039, 353, 1051, 29898, 3881, 29898, 29896, 29892, 2176, 29889, 2248, 29889, 29876, 5563, 29879, 29974, 29896, 876, 13, 18884, 4489, 353, 10518, 29889, 17271, 29898, 2176, 29897, 13, 9651, 1683, 29901, 13, 18884, 12020, 8960, 877, 275, 29850, 5038, 263, 3443, 14579, 11539, 274, 6229, 373, 376, 2272, 29908, 9869, 29889, 274, 6229, 1818, 367, 6374, 6043, 4286, 4830, 29898, 29895, 876, 13, 9651, 4489, 353, 4489, 29889, 12071, 29918, 2248, 2141, 1267, 420, 29898, 13099, 3790, 2176, 29889, 13099, 29889, 517, 29918, 1761, 580, 14352, 29896, 5387, 525, 1767, 29915, 7690, 579, 668, 29898, 3318, 29897, 13, 9651, 4489, 29889, 2029, 29961, 2176, 29961, 2176, 1839, 1767, 13359, 579, 668, 877, 710, 2824, 710, 29889, 13609, 580, 1275, 525, 7192, 13359, 2248, 29892, 525, 1767, 2033, 353, 7442, 29889, 7192, 13, 9651, 4489, 29889, 2029, 29961, 2176, 29961, 2176, 1839, 1767, 13359, 579, 668, 877, 710, 2824, 710, 29889, 13609, 580, 1275, 525, 29974, 7192, 13359, 2248, 29892, 525, 1767, 2033, 353, 7442, 29889, 7192, 13, 9651, 4489, 29889, 2029, 29961, 2176, 29961, 2176, 1839, 1767, 13359, 579, 668, 877, 710, 2824, 710, 29889, 13609, 580, 1275, 17411, 7192, 13359, 2248, 29892, 525, 1767, 2033, 353, 448, 9302, 29889, 7192, 13, 9651, 4489, 29889, 2029, 29961, 2176, 29961, 2176, 1839, 1767, 13359, 579, 668, 877, 710, 2824, 710, 29889, 13609, 580, 1275, 525, 8961, 13359, 2248, 29892, 525, 1767, 2033, 353, 7442, 29889, 29888, 3888, 29898, 7411, 467, 8961, 29871, 396, 7442, 29889, 4622, 7045, 29898, 29900, 29892, 29896, 29897, 13, 9651, 4489, 29889, 2029, 7503, 17094, 29883, 363, 274, 297, 4489, 29889, 13099, 565, 313, 29883, 2804, 525, 1767, 29915, 322, 4489, 29961, 29883, 1822, 29881, 8768, 1275, 5785, 4638, 29962, 353, 4489, 8999, 29883, 363, 274, 297, 4489, 29889, 13099, 565, 313, 29883, 2804, 525, 1767, 29915, 322, 4489, 29961, 29883, 1822, 29881, 8768, 1275, 5785, 4638, 1822, 579, 668, 29898, 524, 29897, 13, 9651, 4489, 29889, 2029, 7503, 17094, 29883, 363, 274, 297, 4489, 29889, 13099, 565, 274, 2804, 525, 1767, 2033, 29962, 353, 4489, 8999, 29883, 363, 274, 297, 4489, 29889, 13099, 565, 274, 2804, 525, 1767, 2033, 1822, 579, 668, 29898, 710, 29897, 13, 9651, 270, 29883, 29961, 29895, 29962, 353, 4489, 29889, 1267, 420, 29898, 13099, 3790, 29883, 29901, 525, 29930, 29915, 363, 274, 297, 4489, 29889, 13099, 565, 274, 2804, 525, 1767, 29915, 1800, 13, 4706, 25342, 325, 1839, 1853, 2033, 1275, 525, 842, 2396, 13, 9651, 4489, 353, 10518, 29889, 17271, 3319, 29915, 29930, 2396, 921, 3137, 5975, 1800, 13, 9651, 4489, 29889, 2029, 7503, 29892, 525, 1767, 2033, 353, 525, 5574, 29915, 13, 9651, 4489, 29889, 8865, 1056, 29898, 262, 6689, 29922, 5574, 29897, 13, 9651, 270, 29883, 29961, 29895, 29962, 353, 4489, 13, 4706, 565, 11799, 29918, 8552, 338, 451, 6213, 29901, 13, 9651, 2897, 29889, 29885, 12535, 12935, 29898, 7638, 29918, 8552, 29892, 1863, 29918, 554, 29922, 5574, 29897, 13, 9651, 1024, 353, 325, 1839, 1853, 2033, 718, 22868, 29915, 718, 413, 718, 15300, 7638, 29915, 13, 9651, 4489, 29889, 517, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 29898, 7638, 29918, 8552, 29892, 1024, 511, 2380, 29922, 8824, 29897, 13, 1678, 2897, 29889, 29885, 12535, 12935, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29887, 8235, 29918, 1445, 29892, 2897, 29889, 29886, 538, 381, 8243, 1863, 29918, 554, 29922, 5574, 29897, 13, 1678, 1596, 29898, 29888, 29915, 5631, 1218, 330, 8235, 934, 29901, 426, 29887, 8235, 29918, 1445, 29913, 1495, 13, 268, 13, 1678, 5578, 1061, 353, 4103, 29880, 1061, 29898, 13891, 29897, 13, 1678, 5578, 1061, 29889, 29887, 2232, 29918, 3972, 353, 330, 2232, 29918, 3972, 13, 1678, 5578, 1061, 29889, 7620, 29918, 29887, 8235, 29898, 29887, 8235, 29918, 1445, 29897, 13, 1678, 5578, 1061, 29889, 29887, 8235, 13, 1678, 1596, 877, 29954, 29928, 29990, 25679, 29991, 1495, 13, 1678, 736, 270, 29883, 2 ]
rest_framework/fields.py
treyhunner/django-rest-framework
0
133853
import copy import datetime import inspect import warnings from django.core import validators from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.urlresolvers import resolve, get_script_prefix from django.conf import settings from django.forms import widgets from django.forms.models import ModelChoiceIterator from django.utils.encoding import is_protected_type, smart_unicode from django.utils.translation import ugettext_lazy as _ from rest_framework.reverse import reverse from rest_framework.compat import parse_date, parse_datetime from rest_framework.compat import timezone from urlparse import urlparse def is_simple_callable(obj): """ True if the object is a callable that takes no arguments. """ return ( (inspect.isfunction(obj) and not inspect.getargspec(obj)[0]) or (inspect.ismethod(obj) and len(inspect.getargspec(obj)[0]) <= 1) ) class Field(object): creation_counter = 0 empty = '' type_name = None def __init__(self, source=None): self.parent = None self.creation_counter = Field.creation_counter Field.creation_counter += 1 self.source = source def initialize(self, parent, field_name): """ Called to set up a field prior to field_to_native or field_from_native. parent - The parent serializer. model_field - The model field this field corresponds to, if one exists. """ self.parent = parent self.root = parent.root or parent self.context = self.root.context def field_from_native(self, data, field_name, into): """ Given a dictionary and a field name, updates the dictionary `into`, with the field and it's deserialized value. """ return def field_to_native(self, obj, field_name): """ Given and object and a field name, returns the value that should be serialized for that field. """ if obj is None: return self.empty if self.source == '*': return self.to_native(obj) if self.source: value = obj for component in self.source.split('.'): value = getattr(value, component) if is_simple_callable(value): value = value() else: value = getattr(obj, field_name) return self.to_native(value) def to_native(self, value): """ Converts the field's value into it's simple representation. """ if is_simple_callable(value): value = value() if is_protected_type(value): return value elif hasattr(value, '__iter__') and not isinstance(value, (dict, basestring)): return [self.to_native(item) for item in value] elif isinstance(value, dict): return dict(map(self.to_native, (k, v)) for k, v in value.items()) return smart_unicode(value) def attributes(self): """ Returns a dictionary of attributes to be used when serializing to xml. """ if self.type_name: return {'type': self.type_name} return {} class WritableField(Field): """ Base for read/write fields. """ default_validators = [] default_error_messages = { 'required': _('This field is required.'), 'invalid': _('Invalid value.'), } widget = widgets.TextInput default = None def __init__(self, source=None, read_only=False, required=None, validators=[], error_messages=None, widget=None, default=None, blank=None): super(WritableField, self).__init__(source=source) self.read_only = read_only if required is None: self.required = not(read_only) else: assert not read_only, "Cannot set required=True and read_only=True" self.required = required messages = {} for c in reversed(self.__class__.__mro__): messages.update(getattr(c, 'default_error_messages', {})) messages.update(error_messages or {}) self.error_messages = messages self.validators = self.default_validators + validators self.default = default if default is not None else self.default self.blank = blank # Widgets are ony used for HTML forms. widget = widget or self.widget if isinstance(widget, type): widget = widget() self.widget = widget def validate(self, value): if value in validators.EMPTY_VALUES and self.required: raise ValidationError(self.error_messages['required']) def run_validators(self, value): if value in validators.EMPTY_VALUES: return errors = [] for v in self.validators: try: v(value) except ValidationError as e: if hasattr(e, 'code') and e.code in self.error_messages: message = self.error_messages[e.code] if e.params: message = message % e.params errors.append(message) else: errors.extend(e.messages) if errors: raise ValidationError(errors) def field_from_native(self, data, field_name, into): """ Given a dictionary and a field name, updates the dictionary `into`, with the field and it's deserialized value. """ if self.read_only: return try: native = data[field_name] except KeyError: if self.default is not None: native = self.default else: if self.required: raise ValidationError(self.error_messages['required']) return value = self.from_native(native) if self.source == '*': if value: into.update(value) else: self.validate(value) self.run_validators(value) into[self.source or field_name] = value def from_native(self, value): """ Reverts a simple representation back to the field's value. """ return value class ModelField(WritableField): """ A generic field that can be used against an arbitrary model field. """ def __init__(self, *args, **kwargs): try: self.model_field = kwargs.pop('model_field') except: raise ValueError("ModelField requires 'model_field' kwarg") super(ModelField, self).__init__(*args, **kwargs) def from_native(self, value): rel = getattr(self.model_field, "rel", None) if rel is not None: return rel.to._meta.get_field(rel.field_name).to_python(value) else: return self.model_field.to_python(value) def field_to_native(self, obj, field_name): value = self.model_field._get_val_from_obj(obj) if is_protected_type(value): return value return self.model_field.value_to_string(obj) def attributes(self): return { "type": self.model_field.get_internal_type() } ##### Relational fields ##### # Not actually Writable, but subclasses may need to be. class RelatedField(WritableField): """ Base class for related model fields. If not overridden, this represents a to-one relationship, using the unicode representation of the target. """ widget = widgets.Select cache_choices = False empty_label = None default_read_only = True # TODO: Remove this def __init__(self, *args, **kwargs): self.queryset = kwargs.pop('queryset', None) super(RelatedField, self).__init__(*args, **kwargs) self.read_only = kwargs.pop('read_only', self.default_read_only) def initialize(self, parent, field_name): super(RelatedField, self).initialize(parent, field_name) if self.queryset is None and not self.read_only: try: manager = getattr(self.parent.opts.model, self.source or field_name) if hasattr(manager, 'related'): # Forward self.queryset = manager.related.model._default_manager.all() else: # Reverse self.queryset = manager.field.rel.to._default_manager.all() except: raise msg = ('Serializer related fields must include a `queryset`' + ' argument or set `read_only=True') raise Exception(msg) ### We need this stuff to make form choices work... # def __deepcopy__(self, memo): # result = super(RelatedField, self).__deepcopy__(memo) # result.queryset = result.queryset # return result def prepare_value(self, obj): return self.to_native(obj) def label_from_instance(self, obj): """ Return a readable representation for use with eg. select widgets. """ desc = smart_unicode(obj) ident = smart_unicode(self.to_native(obj)) if desc == ident: return desc return "%s - %s" % (desc, ident) def _get_queryset(self): return self._queryset def _set_queryset(self, queryset): self._queryset = queryset self.widget.choices = self.choices queryset = property(_get_queryset, _set_queryset) def _get_choices(self): # If self._choices is set, then somebody must have manually set # the property self.choices. In this case, just return self._choices. if hasattr(self, '_choices'): return self._choices # Otherwise, execute the QuerySet in self.queryset to determine the # choices dynamically. Return a fresh ModelChoiceIterator that has not been # consumed. Note that we're instantiating a new ModelChoiceIterator *each* # time _get_choices() is called (and, thus, each time self.choices is # accessed) so that we can ensure the QuerySet has not been consumed. This # construct might look complicated but it allows for lazy evaluation of # the queryset. return ModelChoiceIterator(self) def _set_choices(self, value): # Setting choices also sets the choices on the widget. # choices can be any iterable, but we call list() on it because # it will be consumed more than once. self._choices = self.widget.choices = list(value) choices = property(_get_choices, _set_choices) ### Regular serializier stuff... def field_to_native(self, obj, field_name): value = getattr(obj, self.source or field_name) return self.to_native(value) def field_from_native(self, data, field_name, into): if self.read_only: return value = data.get(field_name) into[(self.source or field_name)] = self.from_native(value) class ManyRelatedMixin(object): """ Mixin to convert a related field to a many related field. """ widget = widgets.SelectMultiple def field_to_native(self, obj, field_name): value = getattr(obj, self.source or field_name) return [self.to_native(item) for item in value.all()] def field_from_native(self, data, field_name, into): if self.read_only: return try: # Form data value = data.getlist(self.source or field_name) except: # Non-form data value = data.get(self.source or field_name) else: if value == ['']: value = [] into[field_name] = [self.from_native(item) for item in value] class ManyRelatedField(ManyRelatedMixin, RelatedField): """ Base class for related model managers. If not overridden, this represents a to-many relationship, using the unicode representations of the target, and is read-only. """ pass ### PrimaryKey relationships class PrimaryKeyRelatedField(RelatedField): """ Represents a to-one relationship as a pk value. """ default_read_only = False # TODO: Remove these field hacks... def prepare_value(self, obj): return self.to_native(obj.pk) def label_from_instance(self, obj): """ Return a readable representation for use with eg. select widgets. """ desc = smart_unicode(obj) ident = smart_unicode(self.to_native(obj.pk)) if desc == ident: return desc return "%s - %s" % (desc, ident) # TODO: Possibly change this to just take `obj`, through prob less performant def to_native(self, pk): return pk def from_native(self, data): if self.queryset is None: raise Exception('Writable related fields must include a `queryset` argument') try: return self.queryset.get(pk=data) except ObjectDoesNotExist: msg = "Invalid pk '%s' - object does not exist." % smart_unicode(data) raise ValidationError(msg) def field_to_native(self, obj, field_name): try: # Prefer obj.serializable_value for performance reasons pk = obj.serializable_value(self.source or field_name) except AttributeError: # RelatedObject (reverse relationship) obj = getattr(obj, self.source or field_name) return self.to_native(obj.pk) # Forward relationship return self.to_native(pk) class ManyPrimaryKeyRelatedField(ManyRelatedField): """ Represents a to-many relationship as a pk value. """ default_read_only = False def prepare_value(self, obj): return self.to_native(obj.pk) def label_from_instance(self, obj): """ Return a readable representation for use with eg. select widgets. """ desc = smart_unicode(obj) ident = smart_unicode(self.to_native(obj.pk)) if desc == ident: return desc return "%s - %s" % (desc, ident) def to_native(self, pk): return pk def field_to_native(self, obj, field_name): try: # Prefer obj.serializable_value for performance reasons queryset = obj.serializable_value(self.source or field_name) except AttributeError: # RelatedManager (reverse relationship) queryset = getattr(obj, self.source or field_name) return [self.to_native(item.pk) for item in queryset.all()] # Forward relationship return [self.to_native(item.pk) for item in queryset.all()] def from_native(self, data): if self.queryset is None: raise Exception('Writable related fields must include a `queryset` argument') try: return self.queryset.get(pk=data) except ObjectDoesNotExist: msg = "Invalid pk '%s' - object does not exist." % smart_unicode(data) raise ValidationError(msg) ### Slug relationships class SlugRelatedField(RelatedField): default_read_only = False def __init__(self, *args, **kwargs): self.slug_field = kwargs.pop('slug_field', None) assert self.slug_field, 'slug_field is required' super(SlugRelatedField, self).__init__(*args, **kwargs) def to_native(self, obj): return getattr(obj, self.slug_field) def from_native(self, data): if self.queryset is None: raise Exception('Writable related fields must include a `queryset` argument') try: return self.queryset.get(**{self.slug_field: data}) except ObjectDoesNotExist: raise ValidationError('Object with %s=%s does not exist.' % (self.slug_field, unicode(data))) class ManySlugRelatedField(ManyRelatedMixin, SlugRelatedField): pass ### Hyperlinked relationships class HyperlinkedRelatedField(RelatedField): """ Represents a to-one relationship, using hyperlinking. """ pk_url_kwarg = 'pk' slug_field = 'slug' slug_url_kwarg = None # Defaults to same as `slug_field` unless overridden default_read_only = False def __init__(self, *args, **kwargs): try: self.view_name = kwargs.pop('view_name') except: raise ValueError("Hyperlinked field requires 'view_name' kwarg") self.slug_field = kwargs.pop('slug_field', self.slug_field) default_slug_kwarg = self.slug_url_kwarg or self.slug_field self.pk_url_kwarg = kwargs.pop('pk_url_kwarg', self.pk_url_kwarg) self.slug_url_kwarg = kwargs.pop('slug_url_kwarg', default_slug_kwarg) self.format = kwargs.pop('format', None) super(HyperlinkedRelatedField, self).__init__(*args, **kwargs) def get_slug_field(self): """ Get the name of a slug field to be used to look up by slug. """ return self.slug_field def to_native(self, obj): view_name = self.view_name request = self.context.get('request', None) format = self.format or self.context.get('format', None) pk = getattr(obj, 'pk', None) if pk is None: return kwargs = {self.pk_url_kwarg: pk} try: return reverse(view_name, kwargs=kwargs, request=request, format=format) except: pass slug = getattr(obj, self.slug_field, None) if not slug: raise ValidationError('Could not resolve URL for field using view name "%s"' % view_name) kwargs = {self.slug_url_kwarg: slug} try: return reverse(self.view_name, kwargs=kwargs, request=request, format=format) except: pass kwargs = {self.pk_url_kwarg: obj.pk, self.slug_url_kwarg: slug} try: return reverse(self.view_name, kwargs=kwargs, request=request, format=format) except: pass raise ValidationError('Could not resolve URL for field using view name "%s"', view_name) def from_native(self, value): # Convert URL -> model instance pk # TODO: Use values_list if self.queryset is None: raise Exception('Writable related fields must include a `queryset` argument') if value.startswith('http:') or value.startswith('https:'): # If needed convert absolute URLs to relative path value = urlparse(value).path prefix = get_script_prefix() if value.startswith(prefix): value = '/' + value[len(prefix):] try: match = resolve(value) except: raise ValidationError('Invalid hyperlink - No URL match') if match.url_name != self.view_name: raise ValidationError('Invalid hyperlink - Incorrect URL match') pk = match.kwargs.get(self.pk_url_kwarg, None) slug = match.kwargs.get(self.slug_url_kwarg, None) # Try explicit primary key. if pk is not None: queryset = self.queryset.filter(pk=pk) # Next, try looking up by slug. elif slug is not None: slug_field = self.get_slug_field() queryset = self.queryset.filter(**{slug_field: slug}) # If none of those are defined, it's an error. else: raise ValidationError('Invalid hyperlink') try: obj = queryset.get() except ObjectDoesNotExist: raise ValidationError('Invalid hyperlink - object does not exist.') return obj class ManyHyperlinkedRelatedField(ManyRelatedMixin, HyperlinkedRelatedField): """ Represents a to-many relationship, using hyperlinking. """ pass class HyperlinkedIdentityField(Field): """ Represents the instance, or a property on the instance, using hyperlinking. """ pk_url_kwarg = 'pk' slug_field = 'slug' slug_url_kwarg = None # Defaults to same as `slug_field` unless overridden def __init__(self, *args, **kwargs): # TODO: Make view_name mandatory, and have the # HyperlinkedModelSerializer set it on-the-fly self.view_name = kwargs.pop('view_name', None) self.format = kwargs.pop('format', None) self.slug_field = kwargs.pop('slug_field', self.slug_field) default_slug_kwarg = self.slug_url_kwarg or self.slug_field self.pk_url_kwarg = kwargs.pop('pk_url_kwarg', self.pk_url_kwarg) self.slug_url_kwarg = kwargs.pop('slug_url_kwarg', default_slug_kwarg) super(HyperlinkedIdentityField, self).__init__(*args, **kwargs) def field_to_native(self, obj, field_name): request = self.context.get('request', None) format = self.format or self.context.get('format', None) view_name = self.view_name or self.parent.opts.view_name kwargs = {self.pk_url_kwarg: obj.pk} try: return reverse(view_name, kwargs=kwargs, request=request, format=format) except: pass slug = getattr(obj, self.slug_field, None) if not slug: raise ValidationError('Could not resolve URL for field using view name "%s"' % view_name) kwargs = {self.slug_url_kwarg: slug} try: return reverse(self.view_name, kwargs=kwargs, request=request, format=format) except: pass kwargs = {self.pk_url_kwarg: obj.pk, self.slug_url_kwarg: slug} try: return reverse(self.view_name, kwargs=kwargs, request=request, format=format) except: pass raise ValidationError('Could not resolve URL for field using view name "%s"', view_name) ##### Typed Fields ##### class BooleanField(WritableField): type_name = 'BooleanField' widget = widgets.CheckboxInput default_error_messages = { 'invalid': _(u"'%s' value must be either True or False."), } empty = False # Note: we set default to `False` in order to fill in missing value not # supplied by html form. TODO: Fix so that only html form input gets # this behavior. default = False def from_native(self, value): if value in ('t', 'True', '1'): return True if value in ('f', 'False', '0'): return False return bool(value) class CharField(WritableField): type_name = 'CharField' def __init__(self, max_length=None, min_length=None, *args, **kwargs): self.max_length, self.min_length = max_length, min_length super(CharField, self).__init__(*args, **kwargs) if min_length is not None: self.validators.append(validators.MinLengthValidator(min_length)) if max_length is not None: self.validators.append(validators.MaxLengthValidator(max_length)) def validate(self, value): """ Validates that the value is supplied (if required). """ # if empty string and allow blank if self.blank and not value: return else: super(CharField, self).validate(value) def from_native(self, value): if isinstance(value, basestring) or value is None: return value return smart_unicode(value) class ChoiceField(WritableField): type_name = 'ChoiceField' widget = widgets.Select default_error_messages = { 'invalid_choice': _('Select a valid choice. %(value)s is not one of the available choices.'), } def __init__(self, choices=(), *args, **kwargs): super(ChoiceField, self).__init__(*args, **kwargs) self.choices = choices def _get_choices(self): return self._choices def _set_choices(self, value): # Setting choices also sets the choices on the widget. # choices can be any iterable, but we call list() on it because # it will be consumed more than once. self._choices = self.widget.choices = list(value) choices = property(_get_choices, _set_choices) def validate(self, value): """ Validates that the input is in self.choices. """ super(ChoiceField, self).validate(value) if value and not self.valid_value(value): raise ValidationError(self.error_messages['invalid_choice'] % {'value': value}) def valid_value(self, value): """ Check to see if the provided value is a valid choice. """ for k, v in self.choices: if isinstance(v, (list, tuple)): # This is an optgroup, so look inside the group for options for k2, v2 in v: if value == smart_unicode(k2): return True else: if value == smart_unicode(k): return True return False class EmailField(CharField): type_name = 'EmailField' default_error_messages = { 'invalid': _('Enter a valid e-mail address.'), } default_validators = [validators.validate_email] def from_native(self, value): ret = super(EmailField, self).from_native(value) if ret is None: return None return ret.strip() def __deepcopy__(self, memo): result = copy.copy(self) memo[id(self)] = result #result.widget = copy.deepcopy(self.widget, memo) result.validators = self.validators[:] return result class DateField(WritableField): type_name = 'DateField' default_error_messages = { 'invalid': _(u"'%s' value has an invalid date format. It must be " u"in YYYY-MM-DD format."), 'invalid_date': _(u"'%s' value has the correct format (YYYY-MM-DD) " u"but it is an invalid date."), } empty = None def from_native(self, value): if value in validators.EMPTY_VALUES: return None if isinstance(value, datetime.datetime): if timezone and settings.USE_TZ and timezone.is_aware(value): # Convert aware datetimes to the default time zone # before casting them to dates (#17742). default_timezone = timezone.get_default_timezone() value = timezone.make_naive(value, default_timezone) return value.date() if isinstance(value, datetime.date): return value try: parsed = parse_date(value) if parsed is not None: return parsed except ValueError: msg = self.error_messages['invalid_date'] % value raise ValidationError(msg) msg = self.error_messages['invalid'] % value raise ValidationError(msg) class DateTimeField(WritableField): type_name = 'DateTimeField' default_error_messages = { 'invalid': _(u"'%s' value has an invalid format. It must be in " u"YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."), 'invalid_date': _(u"'%s' value has the correct format " u"(YYYY-MM-DD) but it is an invalid date."), 'invalid_datetime': _(u"'%s' value has the correct format " u"(YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) " u"but it is an invalid date/time."), } empty = None def from_native(self, value): if value in validators.EMPTY_VALUES: return None if isinstance(value, datetime.datetime): return value if isinstance(value, datetime.date): value = datetime.datetime(value.year, value.month, value.day) if settings.USE_TZ: # For backwards compatibility, interpret naive datetimes in # local time. This won't work during DST change, but we can't # do much about it, so we let the exceptions percolate up the # call stack. warnings.warn(u"DateTimeField received a naive datetime (%s)" u" while time zone support is active." % value, RuntimeWarning) default_timezone = timezone.get_default_timezone() value = timezone.make_aware(value, default_timezone) return value try: parsed = parse_datetime(value) if parsed is not None: return parsed except ValueError: msg = self.error_messages['invalid_datetime'] % value raise ValidationError(msg) try: parsed = parse_date(value) if parsed is not None: return datetime.datetime(parsed.year, parsed.month, parsed.day) except ValueError: msg = self.error_messages['invalid_date'] % value raise ValidationError(msg) msg = self.error_messages['invalid'] % value raise ValidationError(msg) class IntegerField(WritableField): type_name = 'IntegerField' default_error_messages = { 'invalid': _('Enter a whole number.'), 'max_value': _('Ensure this value is less than or equal to %(limit_value)s.'), 'min_value': _('Ensure this value is greater than or equal to %(limit_value)s.'), } def __init__(self, max_value=None, min_value=None, *args, **kwargs): self.max_value, self.min_value = max_value, min_value super(IntegerField, self).__init__(*args, **kwargs) if max_value is not None: self.validators.append(validators.MaxValueValidator(max_value)) if min_value is not None: self.validators.append(validators.MinValueValidator(min_value)) def from_native(self, value): if value in validators.EMPTY_VALUES: return None try: value = int(str(value)) except (ValueError, TypeError): raise ValidationError(self.error_messages['invalid']) return value class FloatField(WritableField): type_name = 'FloatField' default_error_messages = { 'invalid': _("'%s' value must be a float."), } def from_native(self, value): if value in validators.EMPTY_VALUES: return None try: return float(value) except (TypeError, ValueError): msg = self.error_messages['invalid'] % value raise ValidationError(msg)
[ 1, 1053, 3509, 13, 5215, 12865, 13, 5215, 16096, 13, 5215, 18116, 13, 13, 3166, 9557, 29889, 3221, 1053, 2854, 4097, 13, 3166, 9557, 29889, 3221, 29889, 11739, 29879, 1053, 4669, 25125, 3664, 1252, 391, 29892, 15758, 362, 2392, 13, 3166, 9557, 29889, 3221, 29889, 2271, 9778, 874, 1053, 8814, 29892, 679, 29918, 2154, 29918, 13506, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 9514, 1053, 11109, 29879, 13, 3166, 9557, 29889, 9514, 29889, 9794, 1053, 8125, 29620, 20277, 13, 3166, 9557, 29889, 13239, 29889, 22331, 1053, 338, 29918, 24681, 29918, 1853, 29892, 15040, 29918, 2523, 356, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 318, 657, 726, 29918, 433, 1537, 408, 903, 13, 3166, 1791, 29918, 4468, 29889, 24244, 1053, 11837, 13, 3166, 1791, 29918, 4468, 29889, 12667, 1053, 6088, 29918, 1256, 29892, 6088, 29918, 12673, 13, 3166, 1791, 29918, 4468, 29889, 12667, 1053, 29431, 13, 3166, 3142, 5510, 1053, 3142, 5510, 13, 13, 13, 1753, 338, 29918, 12857, 29918, 4804, 519, 29898, 5415, 1125, 13, 1678, 9995, 13, 1678, 5852, 565, 278, 1203, 338, 263, 1246, 519, 393, 4893, 694, 6273, 29889, 13, 1678, 9995, 13, 1678, 736, 313, 13, 4706, 313, 1144, 1103, 29889, 275, 2220, 29898, 5415, 29897, 322, 451, 16096, 29889, 657, 5085, 3135, 29898, 5415, 9601, 29900, 2314, 470, 13, 4706, 313, 1144, 1103, 29889, 1608, 959, 29898, 5415, 29897, 322, 7431, 29898, 1144, 1103, 29889, 657, 5085, 3135, 29898, 5415, 9601, 29900, 2314, 5277, 29871, 29896, 29897, 13, 1678, 1723, 13, 13, 13, 1990, 8989, 29898, 3318, 1125, 13, 1678, 11265, 29918, 11808, 353, 29871, 29900, 13, 1678, 4069, 353, 6629, 13, 1678, 1134, 29918, 978, 353, 6213, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2752, 29922, 8516, 1125, 13, 4706, 1583, 29889, 3560, 353, 6213, 13, 13, 4706, 1583, 29889, 1037, 362, 29918, 11808, 353, 8989, 29889, 1037, 362, 29918, 11808, 13, 4706, 8989, 29889, 1037, 362, 29918, 11808, 4619, 29871, 29896, 13, 13, 4706, 1583, 29889, 4993, 353, 2752, 13, 13, 1678, 822, 11905, 29898, 1311, 29892, 3847, 29892, 1746, 29918, 978, 1125, 13, 4706, 9995, 13, 4706, 3037, 839, 304, 731, 701, 263, 1746, 7536, 304, 1746, 29918, 517, 29918, 11487, 470, 1746, 29918, 3166, 29918, 11487, 29889, 13, 13, 4706, 3847, 448, 450, 3847, 7797, 3950, 29889, 13, 4706, 1904, 29918, 2671, 448, 450, 1904, 1746, 445, 1746, 16161, 304, 29892, 565, 697, 4864, 29889, 13, 4706, 9995, 13, 4706, 1583, 29889, 3560, 353, 3847, 13, 4706, 1583, 29889, 4632, 353, 3847, 29889, 4632, 470, 3847, 13, 4706, 1583, 29889, 4703, 353, 1583, 29889, 4632, 29889, 4703, 13, 13, 1678, 822, 1746, 29918, 3166, 29918, 11487, 29898, 1311, 29892, 848, 29892, 1746, 29918, 978, 29892, 964, 1125, 13, 4706, 9995, 13, 4706, 11221, 263, 8600, 322, 263, 1746, 1024, 29892, 11217, 278, 8600, 421, 8941, 1673, 13, 4706, 411, 278, 1746, 322, 372, 29915, 29879, 16964, 616, 1891, 995, 29889, 13, 4706, 9995, 13, 4706, 736, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 9995, 13, 4706, 11221, 322, 1203, 322, 263, 1746, 1024, 29892, 3639, 278, 995, 393, 881, 367, 13, 4706, 7797, 1891, 363, 393, 1746, 29889, 13, 4706, 9995, 13, 4706, 565, 5446, 338, 6213, 29901, 13, 9651, 736, 1583, 29889, 6310, 13, 13, 4706, 565, 1583, 29889, 4993, 1275, 525, 29930, 2396, 13, 9651, 736, 1583, 29889, 517, 29918, 11487, 29898, 5415, 29897, 13, 13, 4706, 565, 1583, 29889, 4993, 29901, 13, 9651, 995, 353, 5446, 13, 9651, 363, 4163, 297, 1583, 29889, 4993, 29889, 5451, 877, 6169, 1125, 13, 18884, 995, 353, 679, 5552, 29898, 1767, 29892, 4163, 29897, 13, 18884, 565, 338, 29918, 12857, 29918, 4804, 519, 29898, 1767, 1125, 13, 462, 1678, 995, 353, 995, 580, 13, 4706, 1683, 29901, 13, 9651, 995, 353, 679, 5552, 29898, 5415, 29892, 1746, 29918, 978, 29897, 13, 4706, 736, 1583, 29889, 517, 29918, 11487, 29898, 1767, 29897, 13, 13, 1678, 822, 304, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 1281, 369, 1372, 278, 1746, 29915, 29879, 995, 964, 372, 29915, 29879, 2560, 8954, 29889, 13, 4706, 9995, 13, 4706, 565, 338, 29918, 12857, 29918, 4804, 519, 29898, 1767, 1125, 13, 9651, 995, 353, 995, 580, 13, 13, 4706, 565, 338, 29918, 24681, 29918, 1853, 29898, 1767, 1125, 13, 9651, 736, 995, 13, 4706, 25342, 756, 5552, 29898, 1767, 29892, 525, 1649, 1524, 1649, 1495, 322, 451, 338, 8758, 29898, 1767, 29892, 313, 8977, 29892, 2362, 342, 5393, 22164, 13, 9651, 736, 518, 1311, 29889, 517, 29918, 11487, 29898, 667, 29897, 363, 2944, 297, 995, 29962, 13, 4706, 25342, 338, 8758, 29898, 1767, 29892, 9657, 1125, 13, 9651, 736, 9657, 29898, 1958, 29898, 1311, 29889, 517, 29918, 11487, 29892, 313, 29895, 29892, 325, 876, 363, 413, 29892, 325, 297, 995, 29889, 7076, 3101, 13, 4706, 736, 15040, 29918, 2523, 356, 29898, 1767, 29897, 13, 13, 1678, 822, 8393, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 16969, 263, 8600, 310, 8393, 304, 367, 1304, 746, 7797, 5281, 304, 4903, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 1853, 29918, 978, 29901, 13, 9651, 736, 11117, 1853, 2396, 1583, 29889, 1853, 29918, 978, 29913, 13, 4706, 736, 6571, 13, 13, 13, 1990, 16849, 519, 3073, 29898, 3073, 1125, 13, 1678, 9995, 13, 1678, 7399, 363, 1303, 29914, 3539, 4235, 29889, 13, 1678, 9995, 13, 1678, 2322, 29918, 3084, 4097, 353, 5159, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 12403, 2396, 903, 877, 4013, 1746, 338, 3734, 29889, 5477, 13, 4706, 525, 20965, 2396, 903, 877, 13919, 995, 29889, 5477, 13, 1678, 500, 13, 1678, 11109, 353, 11109, 29879, 29889, 1626, 4290, 13, 1678, 2322, 353, 6213, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2752, 29922, 8516, 29892, 1303, 29918, 6194, 29922, 8824, 29892, 3734, 29922, 8516, 29892, 13, 462, 2854, 4097, 11759, 1402, 1059, 29918, 19158, 29922, 8516, 29892, 11109, 29922, 8516, 29892, 13, 462, 2322, 29922, 8516, 29892, 9654, 29922, 8516, 1125, 13, 13, 4706, 2428, 29898, 29956, 768, 519, 3073, 29892, 1583, 467, 1649, 2344, 12035, 4993, 29922, 4993, 29897, 13, 13, 4706, 1583, 29889, 949, 29918, 6194, 353, 1303, 29918, 6194, 13, 4706, 565, 3734, 338, 6213, 29901, 13, 9651, 1583, 29889, 12403, 353, 451, 29898, 949, 29918, 6194, 29897, 13, 4706, 1683, 29901, 13, 9651, 4974, 451, 1303, 29918, 6194, 29892, 376, 29089, 731, 3734, 29922, 5574, 322, 1303, 29918, 6194, 29922, 5574, 29908, 13, 9651, 1583, 29889, 12403, 353, 3734, 13, 13, 4706, 7191, 353, 6571, 13, 4706, 363, 274, 297, 18764, 287, 29898, 1311, 17255, 1990, 1649, 17255, 29885, 307, 1649, 1125, 13, 9651, 7191, 29889, 5504, 29898, 657, 5552, 29898, 29883, 29892, 525, 4381, 29918, 2704, 29918, 19158, 742, 6571, 876, 13, 4706, 7191, 29889, 5504, 29898, 2704, 29918, 19158, 470, 426, 1800, 13, 4706, 1583, 29889, 2704, 29918, 19158, 353, 7191, 13, 13, 4706, 1583, 29889, 3084, 4097, 353, 1583, 29889, 4381, 29918, 3084, 4097, 718, 2854, 4097, 13, 4706, 1583, 29889, 4381, 353, 2322, 565, 2322, 338, 451, 6213, 1683, 1583, 29889, 4381, 13, 4706, 1583, 29889, 19465, 353, 9654, 13, 13, 4706, 396, 27080, 29879, 526, 373, 29891, 1304, 363, 4544, 7190, 29889, 13, 4706, 11109, 353, 11109, 470, 1583, 29889, 8030, 13, 4706, 565, 338, 8758, 29898, 8030, 29892, 1134, 1125, 13, 9651, 11109, 353, 11109, 580, 13, 4706, 1583, 29889, 8030, 353, 11109, 13, 13, 1678, 822, 12725, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 2854, 4097, 29889, 29923, 3580, 15631, 29918, 8932, 12996, 322, 1583, 29889, 12403, 29901, 13, 9651, 12020, 15758, 362, 2392, 29898, 1311, 29889, 2704, 29918, 19158, 1839, 12403, 11287, 13, 13, 1678, 822, 1065, 29918, 3084, 4097, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 2854, 4097, 29889, 29923, 3580, 15631, 29918, 8932, 12996, 29901, 13, 9651, 736, 13, 4706, 4436, 353, 5159, 13, 4706, 363, 325, 297, 1583, 29889, 3084, 4097, 29901, 13, 9651, 1018, 29901, 13, 18884, 325, 29898, 1767, 29897, 13, 9651, 5174, 15758, 362, 2392, 408, 321, 29901, 13, 18884, 565, 756, 5552, 29898, 29872, 29892, 525, 401, 1495, 322, 321, 29889, 401, 297, 1583, 29889, 2704, 29918, 19158, 29901, 13, 462, 1678, 2643, 353, 1583, 29889, 2704, 29918, 19158, 29961, 29872, 29889, 401, 29962, 13, 462, 1678, 565, 321, 29889, 7529, 29901, 13, 462, 4706, 2643, 353, 2643, 1273, 321, 29889, 7529, 13, 462, 1678, 4436, 29889, 4397, 29898, 4906, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 4436, 29889, 21843, 29898, 29872, 29889, 19158, 29897, 13, 4706, 565, 4436, 29901, 13, 9651, 12020, 15758, 362, 2392, 29898, 12523, 29897, 13, 13, 1678, 822, 1746, 29918, 3166, 29918, 11487, 29898, 1311, 29892, 848, 29892, 1746, 29918, 978, 29892, 964, 1125, 13, 4706, 9995, 13, 4706, 11221, 263, 8600, 322, 263, 1746, 1024, 29892, 11217, 278, 8600, 421, 8941, 1673, 13, 4706, 411, 278, 1746, 322, 372, 29915, 29879, 16964, 616, 1891, 995, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 949, 29918, 6194, 29901, 13, 9651, 736, 13, 13, 4706, 1018, 29901, 13, 9651, 7531, 353, 848, 29961, 2671, 29918, 978, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 565, 1583, 29889, 4381, 338, 451, 6213, 29901, 13, 18884, 7531, 353, 1583, 29889, 4381, 13, 9651, 1683, 29901, 13, 18884, 565, 1583, 29889, 12403, 29901, 13, 462, 1678, 12020, 15758, 362, 2392, 29898, 1311, 29889, 2704, 29918, 19158, 1839, 12403, 11287, 13, 18884, 736, 13, 13, 4706, 995, 353, 1583, 29889, 3166, 29918, 11487, 29898, 11487, 29897, 13, 4706, 565, 1583, 29889, 4993, 1275, 525, 29930, 2396, 13, 9651, 565, 995, 29901, 13, 18884, 964, 29889, 5504, 29898, 1767, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 15480, 29898, 1767, 29897, 13, 9651, 1583, 29889, 3389, 29918, 3084, 4097, 29898, 1767, 29897, 13, 9651, 964, 29961, 1311, 29889, 4993, 470, 1746, 29918, 978, 29962, 353, 995, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 830, 369, 1372, 263, 2560, 8954, 1250, 304, 278, 1746, 29915, 29879, 995, 29889, 13, 4706, 9995, 13, 4706, 736, 995, 13, 13, 13, 1990, 8125, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 9995, 13, 1678, 319, 10035, 1746, 393, 508, 367, 1304, 2750, 385, 11472, 1904, 1746, 29889, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 4299, 29918, 2671, 353, 9049, 5085, 29889, 7323, 877, 4299, 29918, 2671, 1495, 13, 4706, 5174, 29901, 13, 9651, 12020, 7865, 2392, 703, 3195, 3073, 6858, 525, 4299, 29918, 2671, 29915, 9049, 1191, 1159, 13, 4706, 2428, 29898, 3195, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 1104, 353, 679, 5552, 29898, 1311, 29889, 4299, 29918, 2671, 29892, 376, 2674, 613, 6213, 29897, 13, 4706, 565, 1104, 338, 451, 6213, 29901, 13, 9651, 736, 1104, 29889, 517, 3032, 7299, 29889, 657, 29918, 2671, 29898, 2674, 29889, 2671, 29918, 978, 467, 517, 29918, 4691, 29898, 1767, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 1583, 29889, 4299, 29918, 2671, 29889, 517, 29918, 4691, 29898, 1767, 29897, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 995, 353, 1583, 29889, 4299, 29918, 2671, 3032, 657, 29918, 791, 29918, 3166, 29918, 5415, 29898, 5415, 29897, 13, 4706, 565, 338, 29918, 24681, 29918, 1853, 29898, 1767, 1125, 13, 9651, 736, 995, 13, 4706, 736, 1583, 29889, 4299, 29918, 2671, 29889, 1767, 29918, 517, 29918, 1807, 29898, 5415, 29897, 13, 13, 1678, 822, 8393, 29898, 1311, 1125, 13, 4706, 736, 426, 13, 9651, 376, 1853, 1115, 1583, 29889, 4299, 29918, 2671, 29889, 657, 29918, 7564, 29918, 1853, 580, 13, 4706, 500, 13, 13, 4136, 29937, 6376, 1288, 4235, 16101, 13, 13, 13, 29937, 2216, 2869, 16849, 519, 29892, 541, 1014, 13203, 1122, 817, 304, 367, 29889, 13, 1990, 6376, 630, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 9995, 13, 1678, 7399, 770, 363, 4475, 1904, 4235, 29889, 13, 13, 1678, 960, 451, 20831, 1145, 29892, 445, 11524, 263, 304, 29899, 650, 9443, 29892, 773, 278, 29104, 13, 1678, 8954, 310, 278, 3646, 29889, 13, 1678, 9995, 13, 1678, 11109, 353, 11109, 29879, 29889, 3549, 13, 1678, 7090, 29918, 1859, 1575, 353, 7700, 13, 1678, 4069, 29918, 1643, 353, 6213, 13, 1678, 2322, 29918, 949, 29918, 6194, 353, 5852, 29871, 396, 14402, 29901, 15154, 445, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1583, 29889, 1972, 842, 353, 9049, 5085, 29889, 7323, 877, 1972, 842, 742, 6213, 29897, 13, 4706, 2428, 29898, 9662, 630, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 1583, 29889, 949, 29918, 6194, 353, 9049, 5085, 29889, 7323, 877, 949, 29918, 6194, 742, 1583, 29889, 4381, 29918, 949, 29918, 6194, 29897, 13, 13, 1678, 822, 11905, 29898, 1311, 29892, 3847, 29892, 1746, 29918, 978, 1125, 13, 4706, 2428, 29898, 9662, 630, 3073, 29892, 1583, 467, 24926, 29898, 3560, 29892, 1746, 29918, 978, 29897, 13, 4706, 565, 1583, 29889, 1972, 842, 338, 6213, 322, 451, 1583, 29889, 949, 29918, 6194, 29901, 13, 9651, 1018, 29901, 13, 18884, 8455, 353, 679, 5552, 29898, 1311, 29889, 3560, 29889, 25707, 29889, 4299, 29892, 1583, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 18884, 565, 756, 5552, 29898, 12847, 29892, 525, 12817, 29374, 29871, 396, 1152, 1328, 13, 462, 1678, 1583, 29889, 1972, 842, 353, 8455, 29889, 12817, 29889, 4299, 3032, 4381, 29918, 12847, 29889, 497, 580, 13, 18884, 1683, 29901, 29871, 396, 830, 3901, 13, 462, 1678, 1583, 29889, 1972, 842, 353, 8455, 29889, 2671, 29889, 2674, 29889, 517, 3032, 4381, 29918, 12847, 29889, 497, 580, 13, 9651, 5174, 29901, 13, 18884, 12020, 13, 18884, 10191, 353, 6702, 17679, 4475, 4235, 1818, 3160, 263, 421, 1972, 842, 20497, 718, 13, 462, 539, 525, 2980, 470, 731, 421, 949, 29918, 6194, 29922, 5574, 1495, 13, 18884, 12020, 8960, 29898, 7645, 29897, 13, 13, 1678, 835, 1334, 817, 445, 6433, 304, 1207, 883, 19995, 664, 856, 13, 13, 1678, 396, 822, 4770, 24535, 8552, 12035, 1311, 29892, 2626, 29877, 1125, 13, 1678, 396, 268, 1121, 353, 2428, 29898, 9662, 630, 3073, 29892, 1583, 467, 1649, 24535, 8552, 12035, 6954, 29877, 29897, 13, 1678, 396, 268, 1121, 29889, 1972, 842, 353, 1121, 29889, 1972, 842, 13, 1678, 396, 268, 736, 1121, 13, 13, 1678, 822, 19012, 29918, 1767, 29898, 1311, 29892, 5446, 1125, 13, 4706, 736, 1583, 29889, 517, 29918, 11487, 29898, 5415, 29897, 13, 13, 1678, 822, 3858, 29918, 3166, 29918, 8758, 29898, 1311, 29892, 5446, 1125, 13, 4706, 9995, 13, 4706, 7106, 263, 19909, 8954, 363, 671, 411, 8087, 29889, 1831, 11109, 29879, 29889, 13, 4706, 9995, 13, 4706, 5153, 353, 15040, 29918, 2523, 356, 29898, 5415, 29897, 13, 4706, 2893, 353, 15040, 29918, 2523, 356, 29898, 1311, 29889, 517, 29918, 11487, 29898, 5415, 876, 13, 4706, 565, 5153, 1275, 2893, 29901, 13, 9651, 736, 5153, 13, 4706, 736, 11860, 29879, 448, 1273, 29879, 29908, 1273, 313, 14273, 29892, 2893, 29897, 13, 13, 1678, 822, 903, 657, 29918, 1972, 842, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 1972, 842, 13, 13, 1678, 822, 903, 842, 29918, 1972, 842, 29898, 1311, 29892, 2346, 842, 1125, 13, 4706, 1583, 3032, 1972, 842, 353, 2346, 842, 13, 4706, 1583, 29889, 8030, 29889, 1859, 1575, 353, 1583, 29889, 1859, 1575, 13, 13, 1678, 2346, 842, 353, 2875, 7373, 657, 29918, 1972, 842, 29892, 903, 842, 29918, 1972, 842, 29897, 13, 13, 1678, 822, 903, 657, 29918, 1859, 1575, 29898, 1311, 1125, 13, 4706, 396, 960, 1583, 3032, 1859, 1575, 338, 731, 29892, 769, 18462, 1818, 505, 7522, 731, 13, 4706, 396, 278, 2875, 1583, 29889, 1859, 1575, 29889, 512, 445, 1206, 29892, 925, 736, 1583, 3032, 1859, 1575, 29889, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 22868, 1859, 1575, 29374, 13, 9651, 736, 1583, 3032, 1859, 1575, 13, 13, 4706, 396, 13466, 29892, 6222, 278, 13641, 2697, 297, 1583, 29889, 1972, 842, 304, 8161, 278, 13, 4706, 396, 19995, 11200, 29889, 7106, 263, 10849, 8125, 29620, 20277, 393, 756, 451, 1063, 13, 4706, 396, 11233, 287, 29889, 3940, 393, 591, 29915, 276, 13213, 1218, 263, 716, 8125, 29620, 20277, 334, 4204, 29930, 13, 4706, 396, 931, 903, 657, 29918, 1859, 1575, 580, 338, 2000, 313, 392, 29892, 4550, 29892, 1269, 931, 1583, 29889, 1859, 1575, 338, 13, 4706, 396, 20592, 29897, 577, 393, 591, 508, 9801, 278, 13641, 2697, 756, 451, 1063, 11233, 287, 29889, 910, 13, 4706, 396, 3386, 1795, 1106, 12092, 541, 372, 6511, 363, 17366, 17983, 310, 13, 4706, 396, 278, 2346, 842, 29889, 13, 4706, 736, 8125, 29620, 20277, 29898, 1311, 29897, 13, 13, 1678, 822, 903, 842, 29918, 1859, 1575, 29898, 1311, 29892, 995, 1125, 13, 4706, 396, 21605, 19995, 884, 6166, 278, 19995, 373, 278, 11109, 29889, 13, 4706, 396, 19995, 508, 367, 738, 4256, 519, 29892, 541, 591, 1246, 1051, 580, 373, 372, 1363, 13, 4706, 396, 372, 674, 367, 11233, 287, 901, 1135, 2748, 29889, 13, 4706, 1583, 3032, 1859, 1575, 353, 1583, 29889, 8030, 29889, 1859, 1575, 353, 1051, 29898, 1767, 29897, 13, 13, 1678, 19995, 353, 2875, 7373, 657, 29918, 1859, 1575, 29892, 903, 842, 29918, 1859, 1575, 29897, 13, 13, 1678, 835, 2169, 1070, 7797, 466, 631, 6433, 856, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 995, 353, 679, 5552, 29898, 5415, 29892, 1583, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 4706, 736, 1583, 29889, 517, 29918, 11487, 29898, 1767, 29897, 13, 13, 1678, 822, 1746, 29918, 3166, 29918, 11487, 29898, 1311, 29892, 848, 29892, 1746, 29918, 978, 29892, 964, 1125, 13, 4706, 565, 1583, 29889, 949, 29918, 6194, 29901, 13, 9651, 736, 13, 13, 4706, 995, 353, 848, 29889, 657, 29898, 2671, 29918, 978, 29897, 13, 4706, 964, 15625, 1311, 29889, 4993, 470, 1746, 29918, 978, 4638, 353, 1583, 29889, 3166, 29918, 11487, 29898, 1767, 29897, 13, 13, 13, 1990, 9267, 9662, 630, 29924, 861, 262, 29898, 3318, 1125, 13, 1678, 9995, 13, 1678, 23478, 262, 304, 3588, 263, 4475, 1746, 304, 263, 1784, 4475, 1746, 29889, 13, 1678, 9995, 13, 1678, 11109, 353, 11109, 29879, 29889, 3549, 15329, 552, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 995, 353, 679, 5552, 29898, 5415, 29892, 1583, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 4706, 736, 518, 1311, 29889, 517, 29918, 11487, 29898, 667, 29897, 363, 2944, 297, 995, 29889, 497, 580, 29962, 13, 13, 1678, 822, 1746, 29918, 3166, 29918, 11487, 29898, 1311, 29892, 848, 29892, 1746, 29918, 978, 29892, 964, 1125, 13, 4706, 565, 1583, 29889, 949, 29918, 6194, 29901, 13, 9651, 736, 13, 13, 4706, 1018, 29901, 13, 9651, 396, 3812, 848, 13, 9651, 995, 353, 848, 29889, 657, 1761, 29898, 1311, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 4706, 5174, 29901, 13, 9651, 396, 10050, 29899, 689, 848, 13, 9651, 995, 353, 848, 29889, 657, 29898, 1311, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 4706, 1683, 29901, 13, 9651, 565, 995, 1275, 6024, 2033, 29901, 13, 18884, 995, 353, 5159, 13, 4706, 964, 29961, 2671, 29918, 978, 29962, 353, 518, 1311, 29889, 3166, 29918, 11487, 29898, 667, 29897, 363, 2944, 297, 995, 29962, 13, 13, 13, 1990, 9267, 9662, 630, 3073, 29898, 14804, 9662, 630, 29924, 861, 262, 29892, 6376, 630, 3073, 1125, 13, 1678, 9995, 13, 1678, 7399, 770, 363, 4475, 1904, 767, 18150, 29889, 13, 13, 1678, 960, 451, 20831, 1145, 29892, 445, 11524, 263, 304, 29899, 13011, 9443, 29892, 773, 278, 29104, 13, 1678, 22540, 310, 278, 3646, 29892, 322, 338, 1303, 29899, 6194, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 13, 2277, 29937, 28267, 2558, 21702, 13, 13, 1990, 28267, 2558, 9662, 630, 3073, 29898, 9662, 630, 3073, 1125, 13, 1678, 9995, 13, 1678, 830, 4569, 1237, 263, 304, 29899, 650, 9443, 408, 263, 282, 29895, 995, 29889, 13, 1678, 9995, 13, 1678, 2322, 29918, 949, 29918, 6194, 353, 7700, 13, 13, 1678, 396, 14402, 29901, 15154, 1438, 1746, 447, 4684, 856, 13, 1678, 822, 19012, 29918, 1767, 29898, 1311, 29892, 5446, 1125, 13, 4706, 736, 1583, 29889, 517, 29918, 11487, 29898, 5415, 29889, 20571, 29897, 13, 13, 1678, 822, 3858, 29918, 3166, 29918, 8758, 29898, 1311, 29892, 5446, 1125, 13, 4706, 9995, 13, 4706, 7106, 263, 19909, 8954, 363, 671, 411, 8087, 29889, 1831, 11109, 29879, 29889, 13, 4706, 9995, 13, 4706, 5153, 353, 15040, 29918, 2523, 356, 29898, 5415, 29897, 13, 4706, 2893, 353, 15040, 29918, 2523, 356, 29898, 1311, 29889, 517, 29918, 11487, 29898, 5415, 29889, 20571, 876, 13, 4706, 565, 5153, 1275, 2893, 29901, 13, 9651, 736, 5153, 13, 4706, 736, 11860, 29879, 448, 1273, 29879, 29908, 1273, 313, 14273, 29892, 2893, 29897, 13, 13, 1678, 396, 14402, 29901, 29863, 14981, 1735, 445, 304, 925, 2125, 421, 5415, 1673, 1549, 2070, 3109, 2189, 424, 13, 1678, 822, 304, 29918, 11487, 29898, 1311, 29892, 282, 29895, 1125, 13, 4706, 736, 282, 29895, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 848, 1125, 13, 4706, 565, 1583, 29889, 1972, 842, 338, 6213, 29901, 13, 9651, 12020, 8960, 877, 29956, 768, 519, 4475, 4235, 1818, 3160, 263, 421, 1972, 842, 29952, 2980, 1495, 13, 13, 4706, 1018, 29901, 13, 9651, 736, 1583, 29889, 1972, 842, 29889, 657, 29898, 20571, 29922, 1272, 29897, 13, 4706, 5174, 4669, 25125, 3664, 1252, 391, 29901, 13, 9651, 10191, 353, 376, 13919, 282, 29895, 14210, 29879, 29915, 448, 1203, 947, 451, 1863, 1213, 1273, 15040, 29918, 2523, 356, 29898, 1272, 29897, 13, 9651, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 1018, 29901, 13, 9651, 396, 4721, 571, 5446, 29889, 15550, 13902, 29918, 1767, 363, 4180, 9590, 13, 9651, 282, 29895, 353, 5446, 29889, 15550, 13902, 29918, 1767, 29898, 1311, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 396, 6376, 630, 2061, 313, 24244, 9443, 29897, 13, 9651, 5446, 353, 679, 5552, 29898, 5415, 29892, 1583, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 9651, 736, 1583, 29889, 517, 29918, 11487, 29898, 5415, 29889, 20571, 29897, 13, 4706, 396, 1152, 1328, 9443, 13, 4706, 736, 1583, 29889, 517, 29918, 11487, 29898, 20571, 29897, 13, 13, 13, 1990, 9267, 26666, 2558, 9662, 630, 3073, 29898, 14804, 9662, 630, 3073, 1125, 13, 1678, 9995, 13, 1678, 830, 4569, 1237, 263, 304, 29899, 13011, 9443, 408, 263, 282, 29895, 995, 29889, 13, 1678, 9995, 13, 1678, 2322, 29918, 949, 29918, 6194, 353, 7700, 13, 13, 1678, 822, 19012, 29918, 1767, 29898, 1311, 29892, 5446, 1125, 13, 4706, 736, 1583, 29889, 517, 29918, 11487, 29898, 5415, 29889, 20571, 29897, 13, 13, 1678, 822, 3858, 29918, 3166, 29918, 8758, 29898, 1311, 29892, 5446, 1125, 13, 4706, 9995, 13, 4706, 7106, 263, 19909, 8954, 363, 671, 411, 8087, 29889, 1831, 11109, 29879, 29889, 13, 4706, 9995, 13, 4706, 5153, 353, 15040, 29918, 2523, 356, 29898, 5415, 29897, 13, 4706, 2893, 353, 15040, 29918, 2523, 356, 29898, 1311, 29889, 517, 29918, 11487, 29898, 5415, 29889, 20571, 876, 13, 4706, 565, 5153, 1275, 2893, 29901, 13, 9651, 736, 5153, 13, 4706, 736, 11860, 29879, 448, 1273, 29879, 29908, 1273, 313, 14273, 29892, 2893, 29897, 13, 13, 1678, 822, 304, 29918, 11487, 29898, 1311, 29892, 282, 29895, 1125, 13, 4706, 736, 282, 29895, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 1018, 29901, 13, 9651, 396, 4721, 571, 5446, 29889, 15550, 13902, 29918, 1767, 363, 4180, 9590, 13, 9651, 2346, 842, 353, 5446, 29889, 15550, 13902, 29918, 1767, 29898, 1311, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 396, 6376, 630, 3260, 313, 24244, 9443, 29897, 13, 9651, 2346, 842, 353, 679, 5552, 29898, 5415, 29892, 1583, 29889, 4993, 470, 1746, 29918, 978, 29897, 13, 9651, 736, 518, 1311, 29889, 517, 29918, 11487, 29898, 667, 29889, 20571, 29897, 363, 2944, 297, 2346, 842, 29889, 497, 580, 29962, 13, 4706, 396, 1152, 1328, 9443, 13, 4706, 736, 518, 1311, 29889, 517, 29918, 11487, 29898, 667, 29889, 20571, 29897, 363, 2944, 297, 2346, 842, 29889, 497, 580, 29962, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 848, 1125, 13, 4706, 565, 1583, 29889, 1972, 842, 338, 6213, 29901, 13, 9651, 12020, 8960, 877, 29956, 768, 519, 4475, 4235, 1818, 3160, 263, 421, 1972, 842, 29952, 2980, 1495, 13, 13, 4706, 1018, 29901, 13, 9651, 736, 1583, 29889, 1972, 842, 29889, 657, 29898, 20571, 29922, 1272, 29897, 13, 4706, 5174, 4669, 25125, 3664, 1252, 391, 29901, 13, 9651, 10191, 353, 376, 13919, 282, 29895, 14210, 29879, 29915, 448, 1203, 947, 451, 1863, 1213, 1273, 15040, 29918, 2523, 356, 29898, 1272, 29897, 13, 9651, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 2277, 29937, 14866, 688, 21702, 13, 13, 13, 1990, 14866, 688, 9662, 630, 3073, 29898, 9662, 630, 3073, 1125, 13, 1678, 2322, 29918, 949, 29918, 6194, 353, 7700, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1583, 29889, 29517, 29918, 2671, 353, 9049, 5085, 29889, 7323, 877, 29517, 29918, 2671, 742, 6213, 29897, 13, 4706, 4974, 1583, 29889, 29517, 29918, 2671, 29892, 525, 29517, 29918, 2671, 338, 3734, 29915, 13, 4706, 2428, 29898, 16973, 688, 9662, 630, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 304, 29918, 11487, 29898, 1311, 29892, 5446, 1125, 13, 4706, 736, 679, 5552, 29898, 5415, 29892, 1583, 29889, 29517, 29918, 2671, 29897, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 848, 1125, 13, 4706, 565, 1583, 29889, 1972, 842, 338, 6213, 29901, 13, 9651, 12020, 8960, 877, 29956, 768, 519, 4475, 4235, 1818, 3160, 263, 421, 1972, 842, 29952, 2980, 1495, 13, 13, 4706, 1018, 29901, 13, 9651, 736, 1583, 29889, 1972, 842, 29889, 657, 29898, 1068, 29912, 1311, 29889, 29517, 29918, 2671, 29901, 848, 1800, 13, 4706, 5174, 4669, 25125, 3664, 1252, 391, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 2061, 411, 1273, 29879, 16328, 29879, 947, 451, 1863, 6169, 1273, 13, 462, 462, 29871, 313, 1311, 29889, 29517, 29918, 2671, 29892, 29104, 29898, 1272, 4961, 13, 13, 13, 1990, 9267, 16973, 688, 9662, 630, 3073, 29898, 14804, 9662, 630, 29924, 861, 262, 29892, 14866, 688, 9662, 630, 3073, 1125, 13, 1678, 1209, 13, 13, 13, 2277, 29937, 26078, 2324, 287, 21702, 13, 13, 1990, 26078, 2324, 287, 9662, 630, 3073, 29898, 9662, 630, 3073, 1125, 13, 1678, 9995, 13, 1678, 830, 4569, 1237, 263, 304, 29899, 650, 9443, 29892, 773, 11266, 2324, 292, 29889, 13, 1678, 9995, 13, 1678, 282, 29895, 29918, 2271, 29918, 11022, 1191, 353, 525, 20571, 29915, 13, 1678, 2243, 688, 29918, 2671, 353, 525, 29517, 29915, 13, 1678, 2243, 688, 29918, 2271, 29918, 11022, 1191, 353, 6213, 29871, 396, 13109, 29879, 304, 1021, 408, 421, 29517, 29918, 2671, 29952, 6521, 20831, 1145, 13, 1678, 2322, 29918, 949, 29918, 6194, 353, 7700, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 1493, 29918, 978, 353, 9049, 5085, 29889, 7323, 877, 1493, 29918, 978, 1495, 13, 4706, 5174, 29901, 13, 9651, 12020, 7865, 2392, 703, 26322, 546, 2324, 287, 1746, 6858, 525, 1493, 29918, 978, 29915, 9049, 1191, 1159, 13, 13, 4706, 1583, 29889, 29517, 29918, 2671, 353, 9049, 5085, 29889, 7323, 877, 29517, 29918, 2671, 742, 1583, 29889, 29517, 29918, 2671, 29897, 13, 4706, 2322, 29918, 29517, 29918, 11022, 1191, 353, 1583, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 470, 1583, 29889, 29517, 29918, 2671, 13, 4706, 1583, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 353, 9049, 5085, 29889, 7323, 877, 20571, 29918, 2271, 29918, 11022, 1191, 742, 1583, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29897, 13, 4706, 1583, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 353, 9049, 5085, 29889, 7323, 877, 29517, 29918, 2271, 29918, 11022, 1191, 742, 2322, 29918, 29517, 29918, 11022, 1191, 29897, 13, 13, 4706, 1583, 29889, 4830, 353, 9049, 5085, 29889, 7323, 877, 4830, 742, 6213, 29897, 13, 4706, 2428, 29898, 26322, 546, 2324, 287, 9662, 630, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 679, 29918, 29517, 29918, 2671, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3617, 278, 1024, 310, 263, 2243, 688, 1746, 304, 367, 1304, 304, 1106, 701, 491, 2243, 688, 29889, 13, 4706, 9995, 13, 4706, 736, 1583, 29889, 29517, 29918, 2671, 13, 13, 1678, 822, 304, 29918, 11487, 29898, 1311, 29892, 5446, 1125, 13, 4706, 1776, 29918, 978, 353, 1583, 29889, 1493, 29918, 978, 13, 4706, 2009, 353, 1583, 29889, 4703, 29889, 657, 877, 3827, 742, 6213, 29897, 13, 4706, 3402, 353, 1583, 29889, 4830, 470, 1583, 29889, 4703, 29889, 657, 877, 4830, 742, 6213, 29897, 13, 4706, 282, 29895, 353, 679, 5552, 29898, 5415, 29892, 525, 20571, 742, 6213, 29897, 13, 4706, 565, 282, 29895, 338, 6213, 29901, 13, 9651, 736, 13, 4706, 9049, 5085, 353, 426, 1311, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29901, 282, 29895, 29913, 13, 4706, 1018, 29901, 13, 9651, 736, 11837, 29898, 1493, 29918, 978, 29892, 9049, 5085, 29922, 19290, 29892, 2009, 29922, 3827, 29892, 3402, 29922, 4830, 29897, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 4706, 2243, 688, 353, 679, 5552, 29898, 5415, 29892, 1583, 29889, 29517, 29918, 2671, 29892, 6213, 29897, 13, 13, 4706, 565, 451, 2243, 688, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 23323, 451, 8814, 3988, 363, 1746, 773, 1776, 1024, 11860, 29879, 29908, 29915, 1273, 1776, 29918, 978, 29897, 13, 13, 4706, 9049, 5085, 353, 426, 1311, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 29901, 2243, 688, 29913, 13, 4706, 1018, 29901, 13, 9651, 736, 11837, 29898, 1311, 29889, 1493, 29918, 978, 29892, 9049, 5085, 29922, 19290, 29892, 2009, 29922, 3827, 29892, 3402, 29922, 4830, 29897, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 4706, 9049, 5085, 353, 426, 1311, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29901, 5446, 29889, 20571, 29892, 1583, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 29901, 2243, 688, 29913, 13, 4706, 1018, 29901, 13, 9651, 736, 11837, 29898, 1311, 29889, 1493, 29918, 978, 29892, 9049, 5085, 29922, 19290, 29892, 2009, 29922, 3827, 29892, 3402, 29922, 4830, 29897, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 4706, 12020, 15758, 362, 2392, 877, 23323, 451, 8814, 3988, 363, 1746, 773, 1776, 1024, 11860, 29879, 29908, 742, 1776, 29918, 978, 29897, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 396, 14806, 3988, 1599, 1904, 2777, 282, 29895, 13, 4706, 396, 14402, 29901, 4803, 1819, 29918, 1761, 13, 4706, 565, 1583, 29889, 1972, 842, 338, 6213, 29901, 13, 9651, 12020, 8960, 877, 29956, 768, 519, 4475, 4235, 1818, 3160, 263, 421, 1972, 842, 29952, 2980, 1495, 13, 13, 4706, 565, 995, 29889, 27382, 2541, 877, 1124, 29901, 1495, 470, 995, 29889, 27382, 2541, 877, 991, 11283, 1125, 13, 9651, 396, 960, 4312, 3588, 8380, 24295, 304, 6198, 2224, 13, 9651, 995, 353, 3142, 5510, 29898, 1767, 467, 2084, 13, 9651, 10944, 353, 679, 29918, 2154, 29918, 13506, 580, 13, 9651, 565, 995, 29889, 27382, 2541, 29898, 13506, 1125, 13, 18884, 995, 353, 8207, 29915, 718, 995, 29961, 2435, 29898, 13506, 1125, 29962, 13, 13, 4706, 1018, 29901, 13, 9651, 1993, 353, 8814, 29898, 1767, 29897, 13, 4706, 5174, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 13919, 11266, 2324, 448, 1939, 3988, 1993, 1495, 13, 13, 4706, 565, 1993, 29889, 2271, 29918, 978, 2804, 1583, 29889, 1493, 29918, 978, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 13919, 11266, 2324, 448, 512, 15728, 3988, 1993, 1495, 13, 13, 4706, 282, 29895, 353, 1993, 29889, 19290, 29889, 657, 29898, 1311, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29892, 6213, 29897, 13, 4706, 2243, 688, 353, 1993, 29889, 19290, 29889, 657, 29898, 1311, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 29892, 6213, 29897, 13, 13, 4706, 396, 3967, 6261, 7601, 1820, 29889, 13, 4706, 565, 282, 29895, 338, 451, 6213, 29901, 13, 9651, 2346, 842, 353, 1583, 29889, 1972, 842, 29889, 4572, 29898, 20571, 29922, 20571, 29897, 13, 4706, 396, 8084, 29892, 1018, 3063, 701, 491, 2243, 688, 29889, 13, 4706, 25342, 2243, 688, 338, 451, 6213, 29901, 13, 9651, 2243, 688, 29918, 2671, 353, 1583, 29889, 657, 29918, 29517, 29918, 2671, 580, 13, 9651, 2346, 842, 353, 1583, 29889, 1972, 842, 29889, 4572, 29898, 1068, 29912, 29517, 29918, 2671, 29901, 2243, 688, 1800, 13, 4706, 396, 960, 5642, 310, 1906, 526, 3342, 29892, 372, 29915, 29879, 385, 1059, 29889, 13, 4706, 1683, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 13919, 11266, 2324, 1495, 13, 13, 4706, 1018, 29901, 13, 9651, 5446, 353, 2346, 842, 29889, 657, 580, 13, 4706, 5174, 4669, 25125, 3664, 1252, 391, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 13919, 11266, 2324, 448, 1203, 947, 451, 1863, 29889, 1495, 13, 4706, 736, 5446, 13, 13, 13, 1990, 9267, 26322, 546, 2324, 287, 9662, 630, 3073, 29898, 14804, 9662, 630, 29924, 861, 262, 29892, 26078, 2324, 287, 9662, 630, 3073, 1125, 13, 1678, 9995, 13, 1678, 830, 4569, 1237, 263, 304, 29899, 13011, 9443, 29892, 773, 11266, 2324, 292, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 13, 1990, 26078, 2324, 287, 18415, 3073, 29898, 3073, 1125, 13, 1678, 9995, 13, 1678, 830, 4569, 1237, 278, 2777, 29892, 470, 263, 2875, 373, 278, 2777, 29892, 773, 11266, 2324, 292, 29889, 13, 1678, 9995, 13, 1678, 282, 29895, 29918, 2271, 29918, 11022, 1191, 353, 525, 20571, 29915, 13, 1678, 2243, 688, 29918, 2671, 353, 525, 29517, 29915, 13, 1678, 2243, 688, 29918, 2271, 29918, 11022, 1191, 353, 6213, 29871, 396, 13109, 29879, 304, 1021, 408, 421, 29517, 29918, 2671, 29952, 6521, 20831, 1145, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 396, 14402, 29901, 8561, 1776, 29918, 978, 9619, 7606, 29892, 322, 505, 278, 13, 4706, 396, 26078, 2324, 287, 3195, 17679, 731, 372, 373, 29899, 1552, 29899, 17652, 13, 4706, 1583, 29889, 1493, 29918, 978, 353, 9049, 5085, 29889, 7323, 877, 1493, 29918, 978, 742, 6213, 29897, 13, 4706, 1583, 29889, 4830, 353, 9049, 5085, 29889, 7323, 877, 4830, 742, 6213, 29897, 13, 13, 4706, 1583, 29889, 29517, 29918, 2671, 353, 9049, 5085, 29889, 7323, 877, 29517, 29918, 2671, 742, 1583, 29889, 29517, 29918, 2671, 29897, 13, 4706, 2322, 29918, 29517, 29918, 11022, 1191, 353, 1583, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 470, 1583, 29889, 29517, 29918, 2671, 13, 4706, 1583, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 353, 9049, 5085, 29889, 7323, 877, 20571, 29918, 2271, 29918, 11022, 1191, 742, 1583, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29897, 13, 4706, 1583, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 353, 9049, 5085, 29889, 7323, 877, 29517, 29918, 2271, 29918, 11022, 1191, 742, 2322, 29918, 29517, 29918, 11022, 1191, 29897, 13, 13, 4706, 2428, 29898, 26322, 546, 2324, 287, 18415, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 1746, 29918, 517, 29918, 11487, 29898, 1311, 29892, 5446, 29892, 1746, 29918, 978, 1125, 13, 4706, 2009, 353, 1583, 29889, 4703, 29889, 657, 877, 3827, 742, 6213, 29897, 13, 4706, 3402, 353, 1583, 29889, 4830, 470, 1583, 29889, 4703, 29889, 657, 877, 4830, 742, 6213, 29897, 13, 4706, 1776, 29918, 978, 353, 1583, 29889, 1493, 29918, 978, 470, 1583, 29889, 3560, 29889, 25707, 29889, 1493, 29918, 978, 13, 4706, 9049, 5085, 353, 426, 1311, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29901, 5446, 29889, 20571, 29913, 13, 4706, 1018, 29901, 13, 9651, 736, 11837, 29898, 1493, 29918, 978, 29892, 9049, 5085, 29922, 19290, 29892, 2009, 29922, 3827, 29892, 3402, 29922, 4830, 29897, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 4706, 2243, 688, 353, 679, 5552, 29898, 5415, 29892, 1583, 29889, 29517, 29918, 2671, 29892, 6213, 29897, 13, 13, 4706, 565, 451, 2243, 688, 29901, 13, 9651, 12020, 15758, 362, 2392, 877, 23323, 451, 8814, 3988, 363, 1746, 773, 1776, 1024, 11860, 29879, 29908, 29915, 1273, 1776, 29918, 978, 29897, 13, 13, 4706, 9049, 5085, 353, 426, 1311, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 29901, 2243, 688, 29913, 13, 4706, 1018, 29901, 13, 9651, 736, 11837, 29898, 1311, 29889, 1493, 29918, 978, 29892, 9049, 5085, 29922, 19290, 29892, 2009, 29922, 3827, 29892, 3402, 29922, 4830, 29897, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 4706, 9049, 5085, 353, 426, 1311, 29889, 20571, 29918, 2271, 29918, 11022, 1191, 29901, 5446, 29889, 20571, 29892, 1583, 29889, 29517, 29918, 2271, 29918, 11022, 1191, 29901, 2243, 688, 29913, 13, 4706, 1018, 29901, 13, 9651, 736, 11837, 29898, 1311, 29889, 1493, 29918, 978, 29892, 9049, 5085, 29922, 19290, 29892, 2009, 29922, 3827, 29892, 3402, 29922, 4830, 29897, 13, 4706, 5174, 29901, 13, 9651, 1209, 13, 13, 4706, 12020, 15758, 362, 2392, 877, 23323, 451, 8814, 3988, 363, 1746, 773, 1776, 1024, 11860, 29879, 29908, 742, 1776, 29918, 978, 29897, 13, 13, 13, 4136, 29937, 14213, 287, 8989, 29879, 16101, 13, 13, 1990, 11185, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 18146, 3073, 29915, 13, 1678, 11109, 353, 11109, 29879, 29889, 5596, 1884, 4290, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 2396, 903, 29898, 29884, 29908, 29915, 29995, 29879, 29915, 995, 1818, 367, 2845, 5852, 470, 7700, 1213, 511, 13, 1678, 500, 13, 1678, 4069, 353, 7700, 13, 13, 1678, 396, 3940, 29901, 591, 731, 2322, 304, 421, 8824, 29952, 297, 1797, 304, 5445, 297, 4567, 995, 451, 13, 1678, 396, 19056, 491, 3472, 883, 29889, 29871, 14402, 29901, 24778, 577, 393, 871, 3472, 883, 1881, 4947, 13, 1678, 396, 445, 6030, 29889, 13, 1678, 2322, 353, 7700, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 6702, 29873, 742, 525, 5574, 742, 525, 29896, 29374, 13, 9651, 736, 5852, 13, 4706, 565, 995, 297, 6702, 29888, 742, 525, 8824, 742, 525, 29900, 29374, 13, 9651, 736, 7700, 13, 4706, 736, 6120, 29898, 1767, 29897, 13, 13, 13, 1990, 2896, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 27890, 29915, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4236, 29918, 2848, 29922, 8516, 29892, 1375, 29918, 2848, 29922, 8516, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1583, 29889, 3317, 29918, 2848, 29892, 1583, 29889, 1195, 29918, 2848, 353, 4236, 29918, 2848, 29892, 1375, 29918, 2848, 13, 4706, 2428, 29898, 27890, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 565, 1375, 29918, 2848, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 3084, 4097, 29889, 4397, 29898, 3084, 4097, 29889, 8140, 6513, 24204, 29898, 1195, 29918, 2848, 876, 13, 4706, 565, 4236, 29918, 2848, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 3084, 4097, 29889, 4397, 29898, 3084, 4097, 29889, 7976, 6513, 24204, 29898, 3317, 29918, 2848, 876, 13, 13, 1678, 822, 12725, 29898, 1311, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 15758, 1078, 393, 278, 995, 338, 19056, 313, 361, 3734, 467, 13, 4706, 9995, 13, 4706, 396, 565, 4069, 1347, 322, 2758, 9654, 13, 4706, 565, 1583, 29889, 19465, 322, 451, 995, 29901, 13, 9651, 736, 13, 4706, 1683, 29901, 13, 9651, 2428, 29898, 27890, 29892, 1583, 467, 15480, 29898, 1767, 29897, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 2362, 342, 5393, 29897, 470, 995, 338, 6213, 29901, 13, 9651, 736, 995, 13, 4706, 736, 15040, 29918, 2523, 356, 29898, 1767, 29897, 13, 13, 13, 1990, 14542, 625, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 29620, 3073, 29915, 13, 1678, 11109, 353, 11109, 29879, 29889, 3549, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 29918, 16957, 2396, 903, 877, 3549, 263, 2854, 7348, 29889, 1273, 29898, 1767, 29897, 29879, 338, 451, 697, 310, 278, 3625, 19995, 29889, 5477, 13, 1678, 500, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 19995, 29922, 3285, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 29620, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 1583, 29889, 1859, 1575, 353, 19995, 13, 13, 1678, 822, 903, 657, 29918, 1859, 1575, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 1859, 1575, 13, 13, 1678, 822, 903, 842, 29918, 1859, 1575, 29898, 1311, 29892, 995, 1125, 13, 4706, 396, 21605, 19995, 884, 6166, 278, 19995, 373, 278, 11109, 29889, 13, 4706, 396, 19995, 508, 367, 738, 4256, 519, 29892, 541, 591, 1246, 1051, 580, 373, 372, 1363, 13, 4706, 396, 372, 674, 367, 11233, 287, 901, 1135, 2748, 29889, 13, 4706, 1583, 3032, 1859, 1575, 353, 1583, 29889, 8030, 29889, 1859, 1575, 353, 1051, 29898, 1767, 29897, 13, 13, 1678, 19995, 353, 2875, 7373, 657, 29918, 1859, 1575, 29892, 903, 842, 29918, 1859, 1575, 29897, 13, 13, 1678, 822, 12725, 29898, 1311, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 15758, 1078, 393, 278, 1881, 338, 297, 1583, 29889, 1859, 1575, 29889, 13, 4706, 9995, 13, 4706, 2428, 29898, 29620, 3073, 29892, 1583, 467, 15480, 29898, 1767, 29897, 13, 4706, 565, 995, 322, 451, 1583, 29889, 3084, 29918, 1767, 29898, 1767, 1125, 13, 9651, 12020, 15758, 362, 2392, 29898, 1311, 29889, 2704, 29918, 19158, 1839, 20965, 29918, 16957, 2033, 1273, 11117, 1767, 2396, 995, 1800, 13, 13, 1678, 822, 2854, 29918, 1767, 29898, 1311, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 5399, 304, 1074, 565, 278, 4944, 995, 338, 263, 2854, 7348, 29889, 13, 4706, 9995, 13, 4706, 363, 413, 29892, 325, 297, 1583, 29889, 1859, 1575, 29901, 13, 9651, 565, 338, 8758, 29898, 29894, 29892, 313, 1761, 29892, 18761, 22164, 13, 18884, 396, 910, 338, 385, 3523, 2972, 29892, 577, 1106, 2768, 278, 2318, 363, 3987, 13, 18884, 363, 413, 29906, 29892, 325, 29906, 297, 325, 29901, 13, 462, 1678, 565, 995, 1275, 15040, 29918, 2523, 356, 29898, 29895, 29906, 1125, 13, 462, 4706, 736, 5852, 13, 9651, 1683, 29901, 13, 18884, 565, 995, 1275, 15040, 29918, 2523, 356, 29898, 29895, 1125, 13, 462, 1678, 736, 5852, 13, 4706, 736, 7700, 13, 13, 13, 1990, 22608, 3073, 29898, 27890, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 9823, 3073, 29915, 13, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 2396, 903, 877, 10399, 263, 2854, 321, 29899, 2549, 3211, 29889, 5477, 13, 1678, 500, 13, 1678, 2322, 29918, 3084, 4097, 353, 518, 3084, 4097, 29889, 15480, 29918, 5269, 29962, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 3240, 353, 2428, 29898, 9823, 3073, 29892, 1583, 467, 3166, 29918, 11487, 29898, 1767, 29897, 13, 4706, 565, 3240, 338, 6213, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 3240, 29889, 17010, 580, 13, 13, 1678, 822, 4770, 24535, 8552, 12035, 1311, 29892, 2626, 29877, 1125, 13, 4706, 1121, 353, 3509, 29889, 8552, 29898, 1311, 29897, 13, 4706, 2626, 29877, 29961, 333, 29898, 1311, 4638, 353, 1121, 13, 4706, 396, 2914, 29889, 8030, 353, 3509, 29889, 24535, 8552, 29898, 1311, 29889, 8030, 29892, 2626, 29877, 29897, 13, 4706, 1121, 29889, 3084, 4097, 353, 1583, 29889, 3084, 4097, 7503, 29962, 13, 4706, 736, 1121, 13, 13, 13, 1990, 4712, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 2539, 3073, 29915, 13, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 2396, 903, 29898, 29884, 29908, 29915, 29995, 29879, 29915, 995, 756, 385, 8340, 2635, 3402, 29889, 739, 1818, 367, 376, 13, 462, 268, 318, 29908, 262, 612, 14995, 29979, 29899, 7428, 29899, 7858, 3402, 1213, 511, 13, 4706, 525, 20965, 29918, 1256, 2396, 903, 29898, 29884, 29908, 29915, 29995, 29879, 29915, 995, 756, 278, 1959, 3402, 313, 14995, 14995, 29899, 7428, 29899, 7858, 29897, 376, 13, 462, 3986, 318, 29908, 4187, 372, 338, 385, 8340, 2635, 1213, 511, 13, 1678, 500, 13, 1678, 4069, 353, 6213, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 2854, 4097, 29889, 29923, 3580, 15631, 29918, 8932, 12996, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 12865, 29889, 12673, 1125, 13, 9651, 565, 29431, 322, 6055, 29889, 17171, 29918, 29911, 29999, 322, 29431, 29889, 275, 29918, 28327, 29898, 1767, 1125, 13, 18884, 396, 14806, 9543, 1418, 300, 1355, 304, 278, 2322, 931, 10640, 13, 18884, 396, 1434, 23013, 963, 304, 10116, 313, 29937, 29896, 29955, 29955, 29946, 29906, 467, 13, 18884, 2322, 29918, 2230, 8028, 353, 29431, 29889, 657, 29918, 4381, 29918, 2230, 8028, 580, 13, 18884, 995, 353, 29431, 29889, 5675, 29918, 1056, 573, 29898, 1767, 29892, 2322, 29918, 2230, 8028, 29897, 13, 9651, 736, 995, 29889, 1256, 580, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 12865, 29889, 1256, 1125, 13, 9651, 736, 995, 13, 13, 4706, 1018, 29901, 13, 9651, 21213, 353, 6088, 29918, 1256, 29898, 1767, 29897, 13, 9651, 565, 21213, 338, 451, 6213, 29901, 13, 18884, 736, 21213, 13, 4706, 5174, 7865, 2392, 29901, 13, 9651, 10191, 353, 1583, 29889, 2704, 29918, 19158, 1839, 20965, 29918, 1256, 2033, 1273, 995, 13, 9651, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 4706, 10191, 353, 1583, 29889, 2704, 29918, 19158, 1839, 20965, 2033, 1273, 995, 13, 4706, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 13, 1990, 12315, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 11384, 3073, 29915, 13, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 2396, 903, 29898, 29884, 29908, 29915, 29995, 29879, 29915, 995, 756, 385, 8340, 3402, 29889, 739, 1818, 367, 297, 376, 13, 462, 268, 318, 29908, 14995, 14995, 29899, 7428, 29899, 7858, 379, 29950, 29901, 7428, 7503, 893, 29961, 29889, 29884, 29884, 29884, 29884, 29884, 29884, 29962, 3816, 29911, 29999, 29962, 3402, 1213, 511, 13, 4706, 525, 20965, 29918, 1256, 2396, 903, 29898, 29884, 29908, 29915, 29995, 29879, 29915, 995, 756, 278, 1959, 3402, 376, 13, 462, 3986, 318, 29908, 29898, 14995, 14995, 29899, 7428, 29899, 7858, 29897, 541, 372, 338, 385, 8340, 2635, 1213, 511, 13, 4706, 525, 20965, 29918, 12673, 2396, 903, 29898, 29884, 29908, 29915, 29995, 29879, 29915, 995, 756, 278, 1959, 3402, 376, 13, 462, 795, 318, 29908, 29898, 14995, 14995, 29899, 7428, 29899, 7858, 379, 29950, 29901, 7428, 7503, 893, 29961, 29889, 29884, 29884, 29884, 29884, 29884, 29884, 29962, 3816, 29911, 29999, 2314, 376, 13, 462, 795, 318, 29908, 4187, 372, 338, 385, 8340, 2635, 29914, 2230, 1213, 511, 13, 1678, 500, 13, 1678, 4069, 353, 6213, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 2854, 4097, 29889, 29923, 3580, 15631, 29918, 8932, 12996, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 12865, 29889, 12673, 1125, 13, 9651, 736, 995, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 12865, 29889, 1256, 1125, 13, 9651, 995, 353, 12865, 29889, 12673, 29898, 1767, 29889, 6360, 29892, 995, 29889, 10874, 29892, 995, 29889, 3250, 29897, 13, 9651, 565, 6055, 29889, 17171, 29918, 29911, 29999, 29901, 13, 18884, 396, 1152, 28953, 24521, 29892, 6613, 1055, 573, 1418, 300, 1355, 297, 13, 18884, 396, 1887, 931, 29889, 910, 2113, 29915, 29873, 664, 2645, 360, 1254, 1735, 29892, 541, 591, 508, 29915, 29873, 13, 18884, 396, 437, 1568, 1048, 372, 29892, 577, 591, 1235, 278, 15283, 639, 1054, 403, 701, 278, 13, 18884, 396, 1246, 5096, 29889, 13, 18884, 18116, 29889, 25442, 29898, 29884, 29908, 11384, 3073, 4520, 263, 1055, 573, 12865, 313, 29995, 29879, 5513, 13, 462, 795, 318, 29908, 1550, 931, 10640, 2304, 338, 6136, 1213, 1273, 995, 29892, 13, 462, 795, 24875, 22709, 29897, 13, 18884, 2322, 29918, 2230, 8028, 353, 29431, 29889, 657, 29918, 4381, 29918, 2230, 8028, 580, 13, 18884, 995, 353, 29431, 29889, 5675, 29918, 28327, 29898, 1767, 29892, 2322, 29918, 2230, 8028, 29897, 13, 9651, 736, 995, 13, 13, 4706, 1018, 29901, 13, 9651, 21213, 353, 6088, 29918, 12673, 29898, 1767, 29897, 13, 9651, 565, 21213, 338, 451, 6213, 29901, 13, 18884, 736, 21213, 13, 4706, 5174, 7865, 2392, 29901, 13, 9651, 10191, 353, 1583, 29889, 2704, 29918, 19158, 1839, 20965, 29918, 12673, 2033, 1273, 995, 13, 9651, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 21213, 353, 6088, 29918, 1256, 29898, 1767, 29897, 13, 9651, 565, 21213, 338, 451, 6213, 29901, 13, 18884, 736, 12865, 29889, 12673, 29898, 862, 8485, 29889, 6360, 29892, 21213, 29889, 10874, 29892, 21213, 29889, 3250, 29897, 13, 4706, 5174, 7865, 2392, 29901, 13, 9651, 10191, 353, 1583, 29889, 2704, 29918, 19158, 1839, 20965, 29918, 1256, 2033, 1273, 995, 13, 9651, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 4706, 10191, 353, 1583, 29889, 2704, 29918, 19158, 1839, 20965, 2033, 1273, 995, 13, 4706, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 13, 13, 1990, 8102, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 7798, 3073, 29915, 13, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 2396, 903, 877, 10399, 263, 3353, 1353, 29889, 5477, 13, 4706, 525, 3317, 29918, 1767, 2396, 903, 877, 29923, 1983, 545, 445, 995, 338, 3109, 1135, 470, 5186, 304, 1273, 29898, 13400, 29918, 1767, 29897, 29879, 29889, 5477, 13, 4706, 525, 1195, 29918, 1767, 2396, 903, 877, 29923, 1983, 545, 445, 995, 338, 7621, 1135, 470, 5186, 304, 1273, 29898, 13400, 29918, 1767, 29897, 29879, 29889, 5477, 13, 1678, 500, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4236, 29918, 1767, 29922, 8516, 29892, 1375, 29918, 1767, 29922, 8516, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 1583, 29889, 3317, 29918, 1767, 29892, 1583, 29889, 1195, 29918, 1767, 353, 4236, 29918, 1767, 29892, 1375, 29918, 1767, 13, 4706, 2428, 29898, 7798, 3073, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 4706, 565, 4236, 29918, 1767, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 3084, 4097, 29889, 4397, 29898, 3084, 4097, 29889, 7976, 1917, 24204, 29898, 3317, 29918, 1767, 876, 13, 4706, 565, 1375, 29918, 1767, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 3084, 4097, 29889, 4397, 29898, 3084, 4097, 29889, 8140, 1917, 24204, 29898, 1195, 29918, 1767, 876, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 2854, 4097, 29889, 29923, 3580, 15631, 29918, 8932, 12996, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 1018, 29901, 13, 9651, 995, 353, 938, 29898, 710, 29898, 1767, 876, 13, 4706, 5174, 313, 1917, 2392, 29892, 20948, 1125, 13, 9651, 12020, 15758, 362, 2392, 29898, 1311, 29889, 2704, 29918, 19158, 1839, 20965, 11287, 13, 4706, 736, 995, 13, 13, 13, 1990, 27842, 3073, 29898, 29956, 768, 519, 3073, 1125, 13, 1678, 1134, 29918, 978, 353, 525, 11031, 3073, 29915, 13, 13, 1678, 2322, 29918, 2704, 29918, 19158, 353, 426, 13, 4706, 525, 20965, 2396, 903, 703, 29915, 29995, 29879, 29915, 995, 1818, 367, 263, 5785, 1213, 511, 13, 1678, 500, 13, 13, 1678, 822, 515, 29918, 11487, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 297, 2854, 4097, 29889, 29923, 3580, 15631, 29918, 8932, 12996, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 1018, 29901, 13, 9651, 736, 5785, 29898, 1767, 29897, 13, 4706, 5174, 313, 1542, 2392, 29892, 7865, 2392, 1125, 13, 9651, 10191, 353, 1583, 29889, 2704, 29918, 19158, 1839, 20965, 2033, 1273, 995, 13, 9651, 12020, 15758, 362, 2392, 29898, 7645, 29897, 13, 2 ]
1.0/VIOS/website/urls.py
suyanan/vioser
1
1616346
from django.conf.urls import url from . import views app_name = 'website' urlpatterns = [ url(r'^manual/$',views.manual,name='manual'), url(r'^reference/$',views.reference,name='reference'), url(r'^faq/$',views.faq,name='faq'), url(r'^contact$',views.contact,name='contact'), url(r'^vios_intro$',views.vios_intro,name='vios_intro'), ]
[ 1, 515, 9557, 29889, 5527, 29889, 26045, 1053, 3142, 13, 13, 3166, 869, 1053, 8386, 13, 13, 932, 29918, 978, 353, 525, 22942, 29915, 13, 13, 2271, 11037, 29879, 353, 518, 13, 1678, 3142, 29898, 29878, 29915, 29985, 11288, 13346, 742, 7406, 29889, 11288, 29892, 978, 2433, 11288, 5477, 13, 1678, 3142, 29898, 29878, 29915, 29985, 5679, 13346, 742, 7406, 29889, 5679, 29892, 978, 2433, 5679, 5477, 13, 1678, 3142, 29898, 29878, 29915, 29985, 5444, 29939, 13346, 742, 7406, 29889, 5444, 29939, 29892, 978, 2433, 5444, 29939, 5477, 13, 1678, 3142, 29898, 29878, 29915, 29985, 12346, 29938, 742, 7406, 29889, 12346, 29892, 978, 2433, 12346, 5477, 13, 1678, 3142, 29898, 29878, 29915, 29985, 1403, 359, 29918, 23333, 29938, 742, 7406, 29889, 1403, 359, 29918, 23333, 29892, 978, 2433, 1403, 359, 29918, 23333, 5477, 13, 29962, 13, 2 ]
dbtools/admin.py
snowminc/Groupformer
1
53710
<filename>dbtools/admin.py from django.contrib import admin # Register your models here. from .models import * class GroupFormerAdmin(admin.ModelAdmin): search_fields = ['class_section'] class ProjectAdmin(admin.ModelAdmin): search_fields = ['project_name'] class AttributeAdmin(admin.ModelAdmin): pass class ParticipantAdmin(admin.ModelAdmin): pass class AttrChoiceAdmin(admin.ModelAdmin): pass class ProjChoiceAdmin(admin.ModelAdmin): pass admin.site.register(GroupFormer, GroupFormerAdmin) admin.site.register(Project, ProjectAdmin) admin.site.register(Attribute, AttributeAdmin) admin.site.register(Participant, ParticipantAdmin) admin.site.register(attribute_selection, AttrChoiceAdmin) admin.site.register(project_selection, ProjChoiceAdmin)
[ 1, 529, 9507, 29958, 2585, 8504, 29914, 6406, 29889, 2272, 13, 3166, 9557, 29889, 21570, 1053, 4113, 13, 13, 29937, 12577, 596, 4733, 1244, 29889, 13, 13, 3166, 869, 9794, 1053, 334, 13, 13, 1990, 6431, 2500, 261, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 2740, 29918, 9621, 353, 6024, 1990, 29918, 2042, 2033, 13, 13, 1990, 8010, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 2740, 29918, 9621, 353, 6024, 4836, 29918, 978, 2033, 13, 13, 1990, 23833, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 1990, 3455, 12654, 424, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 1990, 2180, 509, 29620, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 1990, 1019, 29926, 29620, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 6406, 29889, 2746, 29889, 9573, 29898, 4782, 2500, 261, 29892, 6431, 2500, 261, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 7653, 29892, 8010, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 6708, 29892, 23833, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 7439, 12654, 424, 29892, 3455, 12654, 424, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 12715, 29918, 21731, 29892, 2180, 509, 29620, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 4836, 29918, 21731, 29892, 1019, 29926, 29620, 12754, 29897, 13, 2 ]
taskflow/repository.bzl
dldt/third_party.bzl
1
157762
<gh_stars>1-10 load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def taskflow_repository(): maybe( http_archive, name = "taskflow", urls = [ "https://github.com/taskflow/taskflow/archive/refs/tags/v3.2.0.zip", ], sha256 = "dec011fcd9d73ae4bd8ae4d2714c2c108a013d5f27761d77aa33ea28f516ac8a", strip_prefix = "taskflow-3.2.0/", build_file = "@third_party//taskflow:package.BUILD", )
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1359, 29475, 27975, 295, 29918, 8504, 458, 8504, 29914, 4282, 29918, 1753, 29879, 29914, 20095, 29901, 13239, 29889, 29890, 29920, 29880, 613, 376, 26026, 1159, 13, 1359, 29475, 27975, 295, 29918, 8504, 458, 8504, 29914, 4282, 29918, 1753, 29879, 29914, 20095, 29901, 1124, 29889, 29890, 29920, 29880, 613, 376, 1124, 29918, 10867, 1159, 13, 13, 1753, 3414, 1731, 29918, 19033, 7295, 13, 1678, 5505, 29898, 13, 4706, 1732, 29918, 10867, 29892, 13, 4706, 1024, 353, 376, 7662, 1731, 613, 13, 4706, 23942, 353, 518, 13, 9651, 376, 991, 597, 3292, 29889, 510, 29914, 7662, 1731, 29914, 7662, 1731, 29914, 10867, 29914, 24539, 29914, 11338, 29914, 29894, 29941, 29889, 29906, 29889, 29900, 29889, 7554, 613, 13, 4706, 21251, 13, 4706, 528, 29874, 29906, 29945, 29953, 353, 376, 7099, 29900, 29896, 29896, 29888, 2252, 29929, 29881, 29955, 29941, 3660, 29946, 6448, 29947, 3660, 29946, 29881, 29906, 29955, 29896, 29946, 29883, 29906, 29883, 29896, 29900, 29947, 29874, 29900, 29896, 29941, 29881, 29945, 29888, 29906, 29955, 29955, 29953, 29896, 29881, 29955, 29955, 7340, 29941, 29941, 11248, 29906, 29947, 29888, 29945, 29896, 29953, 562, 29947, 29874, 613, 13, 4706, 17820, 29918, 13506, 353, 376, 7662, 1731, 29899, 29941, 29889, 29906, 29889, 29900, 29914, 613, 13, 4706, 2048, 29918, 1445, 353, 17962, 22585, 29918, 22633, 458, 7662, 1731, 29901, 5113, 29889, 29933, 25282, 613, 13, 1678, 1723, 13, 2 ]
terrain_following/src/image_processor.py
ZhiangChen/ros_vision
0
18758
#!/usr/bin/env python """ <NAME> Nov 2019 """ import rospy from sensor_msgs.msg import Image from sensor_msgs.msg import Imu from cv_bridge import CvBridge, CvBridgeError import numpy as np import cv2 class Image_Processor(object): def __init__(self): rospy.Subscriber("/r200/depth/image_raw", Image, self.record_callback) self.delta_time = 0 self.bridge = CvBridge() print("Image processor node initialized!") def start_recording(self, save_path, delta_time=1): self.save_path = save_path self.frame = 0 self.delta_time = delta_time def record_callback(self, data): print("callback works") if self.delta_time >0: image = self.bridge.imgmsg_to_cv2(data, "bgr8") print(image.shape) cv2.imwrite(self.save_path + str(self.frame) + ".png", image) rospy.sleep(self.delta_time) self.frame += 1 if __name__ == '__main__': rospy.init_node('image_processor', anonymous=True) IMP = Image_Processor() IMP.start_recording("/home/zhiang/Pictures/terrain_boulder/") try: rospy.spin() except rospy.ROSInterruptException: print("Node killed!")
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 13, 29966, 5813, 29958, 13, 25363, 29871, 29906, 29900, 29896, 29929, 13, 15945, 29908, 13, 13, 5215, 696, 1028, 29891, 13, 3166, 23530, 29918, 1516, 3174, 29889, 7645, 1053, 7084, 13, 3166, 23530, 29918, 1516, 3174, 29889, 7645, 1053, 1954, 29884, 13, 3166, 13850, 29918, 18419, 1053, 315, 29894, 29933, 8605, 29892, 315, 29894, 29933, 8605, 2392, 13, 5215, 12655, 408, 7442, 13, 5215, 13850, 29906, 13, 13, 1990, 7084, 29918, 18689, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 696, 1028, 29891, 29889, 4035, 7588, 495, 11974, 29878, 29906, 29900, 29900, 29914, 19488, 29914, 3027, 29918, 1610, 613, 7084, 29892, 1583, 29889, 11651, 29918, 14035, 29897, 13, 4706, 1583, 29889, 4181, 29918, 2230, 353, 29871, 29900, 13, 4706, 1583, 29889, 18419, 353, 315, 29894, 29933, 8605, 580, 13, 4706, 1596, 703, 2940, 21433, 2943, 16601, 29991, 1159, 13, 13, 1678, 822, 1369, 29918, 3757, 3278, 29898, 1311, 29892, 4078, 29918, 2084, 29892, 19471, 29918, 2230, 29922, 29896, 1125, 13, 4706, 1583, 29889, 7620, 29918, 2084, 353, 4078, 29918, 2084, 13, 4706, 1583, 29889, 2557, 353, 29871, 29900, 13, 4706, 1583, 29889, 4181, 29918, 2230, 353, 19471, 29918, 2230, 13, 13, 1678, 822, 2407, 29918, 14035, 29898, 1311, 29892, 848, 1125, 13, 4706, 1596, 703, 14035, 1736, 1159, 13, 4706, 565, 1583, 29889, 4181, 29918, 2230, 1405, 29900, 29901, 13, 9651, 1967, 353, 1583, 29889, 18419, 29889, 2492, 7645, 29918, 517, 29918, 11023, 29906, 29898, 1272, 29892, 376, 29890, 629, 29947, 1159, 13, 9651, 1596, 29898, 3027, 29889, 12181, 29897, 13, 9651, 13850, 29906, 29889, 326, 3539, 29898, 1311, 29889, 7620, 29918, 2084, 718, 851, 29898, 1311, 29889, 2557, 29897, 718, 11393, 2732, 613, 1967, 29897, 13, 9651, 696, 1028, 29891, 29889, 17059, 29898, 1311, 29889, 4181, 29918, 2230, 29897, 13, 9651, 1583, 29889, 2557, 4619, 29871, 29896, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 696, 1028, 29891, 29889, 2344, 29918, 3177, 877, 3027, 29918, 26482, 742, 21560, 29922, 5574, 29897, 13, 1678, 306, 3580, 353, 7084, 29918, 18689, 580, 13, 1678, 306, 3580, 29889, 2962, 29918, 3757, 3278, 11974, 5184, 29914, 29920, 2918, 574, 29914, 29925, 10373, 29914, 357, 6038, 29918, 29890, 483, 261, 29914, 1159, 13, 1678, 1018, 29901, 13, 4706, 696, 1028, 29891, 29889, 1028, 262, 580, 13, 1678, 5174, 696, 1028, 29891, 29889, 1672, 29903, 4074, 6685, 2451, 29901, 13, 4706, 1596, 703, 4247, 9445, 29991, 1159, 2 ]
app/__init__.py
paulmunyao/Daily-Dossier-News
0
48124
from flask import Flask from config import DevelopmentConfig app = Flask(__name__) app.config.from_object(DevelopmentConfig) from app import routes,errors
[ 1, 515, 29784, 1053, 2379, 1278, 13, 3166, 2295, 1053, 14650, 3991, 13, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 932, 29889, 2917, 29889, 3166, 29918, 3318, 29898, 21956, 358, 3991, 29897, 13, 13, 3166, 623, 1053, 12049, 29892, 12523, 2 ]
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
68
23271
import os import nibabel as nb import numpy as np from django.test import TestCase from neurovault.apps.statmaps.models import BaseStatisticMap from neurovault.apps.statmaps.utils import is_thresholded, infer_map_type class QATest(TestCase): def setUp(self): this_path = os.path.abspath(os.path.dirname(__file__)) self.brain = nb.load(os.path.join(this_path, "../static", "anatomical", "MNI152.nii.gz")) self.roi_map = nb.load(os.path.join(this_path, "test_data", "statmaps", "WA3.nii.gz")) self.parcellation = nb.load(os.path.join(this_path, "test_data", "TTatlas.nii.gz")) # We will fill in brain mask with this percentage of randomly placed values self.ratios = [0.0,0.1,0.15,0.2,0.25,0.3,0.4,0.5,0.6,0.96, 0.98] self.thresholded = [False,False,False,False,False,False,False,False,False,True,True] def testThresholded(self): for p,t in zip(self.ratios, self.thresholded): empty_data = np.ones(self.brain.shape) if p != 0.0: number_voxels = int(np.floor(p * empty_data.size)) random_idx = np.random.choice(range(empty_data.size), number_voxels, replace=False) empty_data[np.unravel_index(random_idx, empty_data.shape)] = 0 empty_nii = nb.Nifti1Image(empty_data,affine=self.brain.get_affine(),header=self.brain.get_header()) is_thr, ratio_bad = is_thresholded(nii_obj=empty_nii) print "Zeroed %s of values, is_thresholded returns [%s:%s]" %(p,is_thr,ratio_bad) self.assertAlmostEqual(p, ratio_bad, delta=0.001) self.assertEquals(t, is_thr) def testInferMapType(self): self.assertEquals(infer_map_type(self.roi_map), BaseStatisticMap.R) self.assertEquals(infer_map_type(self.parcellation), BaseStatisticMap.Pa) self.assertEquals(infer_map_type(self.brain), BaseStatisticMap.OTHER)
[ 1, 1053, 2897, 13, 13, 5215, 302, 747, 1107, 408, 302, 29890, 13, 5215, 12655, 408, 7442, 13, 3166, 9557, 29889, 1688, 1053, 4321, 8259, 13, 13, 3166, 452, 2192, 29894, 1292, 29889, 13371, 29889, 6112, 10339, 29889, 9794, 1053, 7399, 9513, 4695, 3388, 13, 3166, 452, 2192, 29894, 1292, 29889, 13371, 29889, 6112, 10339, 29889, 13239, 1053, 338, 29918, 386, 12268, 287, 29892, 10115, 29918, 1958, 29918, 1853, 13, 13, 13, 1990, 660, 1299, 342, 29898, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 445, 29918, 2084, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 876, 13, 4706, 1583, 29889, 2634, 262, 353, 302, 29890, 29889, 1359, 29898, 359, 29889, 2084, 29889, 7122, 29898, 1366, 29918, 2084, 29892, 376, 6995, 7959, 613, 376, 273, 8678, 936, 613, 376, 29924, 12916, 29896, 29945, 29906, 29889, 1240, 29875, 29889, 18828, 5783, 13, 4706, 1583, 29889, 307, 29875, 29918, 1958, 353, 302, 29890, 29889, 1359, 29898, 359, 29889, 2084, 29889, 7122, 29898, 1366, 29918, 2084, 29892, 376, 1688, 29918, 1272, 613, 376, 6112, 10339, 613, 376, 12982, 29941, 29889, 1240, 29875, 29889, 18828, 5783, 13, 4706, 1583, 29889, 862, 22603, 353, 302, 29890, 29889, 1359, 29898, 359, 29889, 2084, 29889, 7122, 29898, 1366, 29918, 2084, 29892, 376, 1688, 29918, 1272, 613, 376, 19988, 271, 3333, 29889, 1240, 29875, 29889, 18828, 5783, 13, 4706, 396, 1334, 674, 5445, 297, 17294, 11105, 411, 445, 19649, 310, 20459, 7180, 1819, 13, 4706, 1583, 29889, 29878, 2219, 359, 353, 518, 29900, 29889, 29900, 29892, 29900, 29889, 29896, 29892, 29900, 29889, 29896, 29945, 29892, 29900, 29889, 29906, 29892, 29900, 29889, 29906, 29945, 29892, 29900, 29889, 29941, 29892, 29900, 29889, 29946, 29892, 29900, 29889, 29945, 29892, 29900, 29889, 29953, 29892, 29900, 29889, 29929, 29953, 29892, 29871, 29900, 29889, 29929, 29947, 29962, 13, 4706, 1583, 29889, 386, 12268, 287, 353, 518, 8824, 29892, 8824, 29892, 8824, 29892, 8824, 29892, 8824, 29892, 8824, 29892, 8824, 29892, 8824, 29892, 8824, 29892, 5574, 29892, 5574, 29962, 13, 13, 1678, 822, 1243, 1349, 12268, 287, 29898, 1311, 1125, 13, 4706, 363, 282, 29892, 29873, 297, 14319, 29898, 1311, 29889, 29878, 2219, 359, 29892, 1583, 29889, 386, 12268, 287, 1125, 13, 9651, 4069, 29918, 1272, 353, 7442, 29889, 2873, 29898, 1311, 29889, 2634, 262, 29889, 12181, 29897, 13, 9651, 565, 282, 2804, 29871, 29900, 29889, 29900, 29901, 13, 18884, 1353, 29918, 1365, 29916, 1379, 353, 938, 29898, 9302, 29889, 14939, 29898, 29886, 334, 4069, 29918, 1272, 29889, 2311, 876, 13, 18884, 4036, 29918, 13140, 353, 7442, 29889, 8172, 29889, 16957, 29898, 3881, 29898, 6310, 29918, 1272, 29889, 2311, 511, 1353, 29918, 1365, 29916, 1379, 29892, 5191, 29922, 8824, 29897, 13, 18884, 4069, 29918, 1272, 29961, 9302, 29889, 348, 336, 955, 29918, 2248, 29898, 8172, 29918, 13140, 29892, 4069, 29918, 1272, 29889, 12181, 4638, 353, 29871, 29900, 13, 9651, 4069, 29918, 1240, 29875, 353, 302, 29890, 29889, 29940, 2027, 29875, 29896, 2940, 29898, 6310, 29918, 1272, 29892, 3470, 457, 29922, 1311, 29889, 2634, 262, 29889, 657, 29918, 3470, 457, 3285, 6672, 29922, 1311, 29889, 2634, 262, 29889, 657, 29918, 6672, 3101, 13, 9651, 338, 29918, 386, 29878, 29892, 11959, 29918, 12313, 353, 338, 29918, 386, 12268, 287, 29898, 1240, 29875, 29918, 5415, 29922, 6310, 29918, 1240, 29875, 29897, 13, 9651, 1596, 376, 24214, 287, 1273, 29879, 310, 1819, 29892, 338, 29918, 386, 12268, 287, 3639, 518, 29995, 29879, 16664, 29879, 18017, 1273, 29898, 29886, 29892, 275, 29918, 386, 29878, 29892, 3605, 601, 29918, 12313, 29897, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29886, 29892, 11959, 29918, 12313, 29892, 19471, 29922, 29900, 29889, 29900, 29900, 29896, 29897, 13, 9651, 1583, 29889, 9294, 14776, 29898, 29873, 29892, 338, 29918, 386, 29878, 29897, 13, 13, 1678, 822, 1243, 797, 571, 3388, 1542, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 14776, 29898, 262, 571, 29918, 1958, 29918, 1853, 29898, 1311, 29889, 307, 29875, 29918, 1958, 511, 7399, 9513, 4695, 3388, 29889, 29934, 29897, 13, 4706, 1583, 29889, 9294, 14776, 29898, 262, 571, 29918, 1958, 29918, 1853, 29898, 1311, 29889, 862, 22603, 511, 7399, 9513, 4695, 3388, 29889, 11868, 29897, 13, 4706, 1583, 29889, 9294, 14776, 29898, 262, 571, 29918, 1958, 29918, 1853, 29898, 1311, 29889, 2634, 262, 511, 7399, 9513, 4695, 3388, 29889, 2891, 4448, 29897, 2 ]
data_tests/test_data.py
warwickmm/openelections-data-tests
0
154587
<reponame>warwickmm/openelections-data-tests import csv import glob import os import unittest from typing import Iterator from data_tests.duplicate_entries import DuplicateEntries def get_csv_files(root_path: str) -> Iterator[str]: for file in glob.glob(os.path.join(root_path, "[0-9]" * 4, "**", "*"), recursive=True): if file.lower().endswith(".csv"): yield file class DuplicateEntriesTest(unittest.TestCase): root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) def test_duplicate_entries(self): for csv_file in get_csv_files(DuplicateEntriesTest.root_path): short_path = os.path.relpath(csv_file, start=DuplicateEntriesTest.root_path) with self.subTest(msg=f"{short_path}"): data_test = DuplicateEntries() with open(csv_file, "r") as csv_data: reader = csv.reader(csv_data) for row in reader: data_test.test(row) self.assertTrue(data_test.passed, data_test.get_failure_message())
[ 1, 529, 276, 1112, 420, 29958, 4495, 6669, 4317, 29914, 459, 1600, 5942, 29899, 1272, 29899, 21150, 13, 5215, 11799, 13, 5215, 13149, 13, 5215, 2897, 13, 5215, 443, 27958, 13, 3166, 19229, 1053, 20504, 1061, 13, 13, 3166, 848, 29918, 21150, 29889, 20908, 5926, 29918, 26586, 1053, 18733, 5926, 5292, 2722, 13, 13, 13, 1753, 679, 29918, 7638, 29918, 5325, 29898, 4632, 29918, 2084, 29901, 851, 29897, 1599, 20504, 1061, 29961, 710, 5387, 13, 1678, 363, 934, 297, 13149, 29889, 23705, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4632, 29918, 2084, 29892, 14704, 29900, 29899, 29929, 18017, 334, 29871, 29946, 29892, 376, 1068, 613, 26345, 4968, 16732, 29922, 5574, 1125, 13, 4706, 565, 934, 29889, 13609, 2141, 1975, 2541, 17350, 7638, 29908, 1125, 13, 9651, 7709, 934, 13, 13, 13, 1990, 18733, 5926, 5292, 2722, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 3876, 29918, 2084, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 511, 2897, 29889, 29886, 538, 381, 876, 13, 13, 1678, 822, 1243, 29918, 20908, 5926, 29918, 26586, 29898, 1311, 1125, 13, 4706, 363, 11799, 29918, 1445, 297, 679, 29918, 7638, 29918, 5325, 29898, 29928, 786, 5926, 5292, 2722, 3057, 29889, 4632, 29918, 2084, 1125, 13, 9651, 3273, 29918, 2084, 353, 2897, 29889, 2084, 29889, 2674, 2084, 29898, 7638, 29918, 1445, 29892, 1369, 29922, 29928, 786, 5926, 5292, 2722, 3057, 29889, 4632, 29918, 2084, 29897, 13, 13, 9651, 411, 1583, 29889, 1491, 3057, 29898, 7645, 29922, 29888, 29908, 29912, 12759, 29918, 2084, 5038, 1125, 13, 18884, 848, 29918, 1688, 353, 18733, 5926, 5292, 2722, 580, 13, 18884, 411, 1722, 29898, 7638, 29918, 1445, 29892, 376, 29878, 1159, 408, 11799, 29918, 1272, 29901, 13, 462, 1678, 9591, 353, 11799, 29889, 16950, 29898, 7638, 29918, 1272, 29897, 13, 462, 1678, 363, 1948, 297, 9591, 29901, 13, 462, 4706, 848, 29918, 1688, 29889, 1688, 29898, 798, 29897, 13, 13, 18884, 1583, 29889, 9294, 5574, 29898, 1272, 29918, 1688, 29889, 3364, 287, 29892, 848, 29918, 1688, 29889, 657, 29918, 14057, 545, 29918, 4906, 3101, 13, 2 ]
sleap/__init__.py
Tyelab/sleap
0
94600
<reponame>Tyelab/sleap import logging import sys # Setup logging to stdout logging.basicConfig(stream=sys.stdout, level=logging.INFO) # Import submodules we want available at top-level from sleap.version import __version__, versions from sleap.io.dataset import Labels, load_file from sleap.io.video import Video, load_video from sleap.instance import LabeledFrame, Instance, PredictedInstance, Track from sleap.skeleton import Skeleton import sleap.nn from sleap.nn.data import pipelines from sleap.nn import inference from sleap.nn.inference import load_model from sleap.nn.system import use_cpu_only, disable_preallocation from sleap.nn.system import summary as system_summary from sleap.nn.config import TrainingJobConfig, load_config from sleap.nn.evals import load_metrics
[ 1, 529, 276, 1112, 420, 29958, 21314, 295, 370, 29914, 29879, 280, 481, 13, 5215, 12183, 13, 5215, 10876, 13, 13, 13, 29937, 3789, 786, 12183, 304, 27591, 13, 21027, 29889, 16121, 3991, 29898, 5461, 29922, 9675, 29889, 25393, 29892, 3233, 29922, 21027, 29889, 11690, 29897, 13, 13, 29937, 16032, 1014, 7576, 591, 864, 3625, 472, 2246, 29899, 5563, 13, 3166, 12844, 481, 29889, 3259, 1053, 4770, 3259, 1649, 29892, 6910, 13, 3166, 12844, 481, 29889, 601, 29889, 24713, 1053, 15796, 29879, 29892, 2254, 29918, 1445, 13, 3166, 12844, 481, 29889, 601, 29889, 9641, 1053, 13987, 29892, 2254, 29918, 9641, 13, 3166, 12844, 481, 29889, 8758, 1053, 365, 24025, 4308, 29892, 2799, 749, 29892, 21099, 18186, 4998, 29892, 17026, 13, 3166, 12844, 481, 29889, 26050, 11285, 1053, 317, 446, 11285, 13, 5215, 12844, 481, 29889, 15755, 13, 3166, 12844, 481, 29889, 15755, 29889, 1272, 1053, 8450, 24210, 13, 3166, 12844, 481, 29889, 15755, 1053, 27262, 13, 3166, 12844, 481, 29889, 15755, 29889, 262, 1659, 1053, 2254, 29918, 4299, 13, 3166, 12844, 481, 29889, 15755, 29889, 5205, 1053, 671, 29918, 21970, 29918, 6194, 29892, 11262, 29918, 1457, 284, 5479, 13, 3166, 12844, 481, 29889, 15755, 29889, 5205, 1053, 15837, 408, 1788, 29918, 7727, 13, 3166, 12844, 481, 29889, 15755, 29889, 2917, 1053, 26101, 11947, 3991, 29892, 2254, 29918, 2917, 13, 3166, 12844, 481, 29889, 15755, 29889, 14513, 29879, 1053, 2254, 29918, 2527, 10817, 13, 2 ]
IPQualityScore/BinaryOption.py
IPQualityScore/PythonIPQSDBReader
0
83246
class BinaryOption: def __init__(self): self.__data = None def SetData(self, bit): self.__data = bit def Has(self, value): return (self.__data & value) def Set(self, value): self.__data = self.__data | value @staticmethod def Create(value): result = BinaryOption() result.SetData(value) return result IPV4MAP = 1 << 0 IPV6MAP = 1 << 1 BLACKLISTFILE = 1 << 2 BINARYDATA = 1 << 7 TREEDATA = 1 << 2 STRINGDATA = 1 << 3 SMALLINTDATA = 1 << 4 INTDATA = 1 << 5 FLOATDATA = 1 << 6 ISPROXY = 1 << 0 ISVPN = 1 << 1 ISTOR = 1 << 2 ISCRAWLER = 1 << 3 ISBOT = 1 << 4 RECENTABUSE = 1 << 5 ISBLACKLISTED = 1 << 6 ISPRIVATE = 1 << 7 ISMOBILE = 1 << 0 HASOPENPORTS = 1 << 1 ISHOSTINGPROVIDER = 1 << 2 ACTIVEVPN = 1 << 3 ACTIVETOR = 1 << 4 PUBLICACCESSPOINT = 1 << 5 RESERVEDONE = 1 << 6 RESERVEDTWO = 1 << 7 RESERVEDTHREE = 1 << 0 RESERVEDFOUR = 1 << 1 RESERVEDFIVE = 1 << 2 CONNECTIONTYPEONE = 1 << 3 CONNECTIONTYPETWO = 1 << 4 CONNECTIONTYPETHREE = 1 << 5 ABUSEVELOCITYONE = 1 << 6 ABUSEVELOCITYTWO = 1 << 7
[ 1, 770, 29479, 8375, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 17255, 1272, 353, 6213, 13, 268, 13, 1678, 822, 3789, 1469, 29898, 1311, 29892, 2586, 1125, 13, 4706, 1583, 17255, 1272, 353, 2586, 13, 268, 13, 1678, 822, 11699, 29898, 1311, 29892, 995, 1125, 13, 4706, 736, 313, 1311, 17255, 1272, 669, 995, 29897, 13, 268, 13, 1678, 822, 3789, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 17255, 1272, 353, 1583, 17255, 1272, 891, 995, 13, 268, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 6204, 29898, 1767, 1125, 13, 4706, 1121, 353, 29479, 8375, 580, 13, 4706, 1121, 29889, 2697, 1469, 29898, 1767, 29897, 13, 4706, 736, 1121, 13, 268, 13, 1678, 5641, 29963, 29946, 23827, 632, 353, 29871, 29896, 3532, 29871, 29900, 13, 1678, 5641, 29963, 29953, 23827, 632, 353, 29871, 29896, 3532, 29871, 29896, 13, 1678, 350, 29931, 11375, 24360, 7724, 539, 353, 29871, 29896, 3532, 29871, 29906, 13, 1678, 350, 1177, 19926, 14573, 3986, 353, 29871, 29896, 3532, 29871, 29955, 13, 1678, 323, 1525, 3352, 8254, 9651, 353, 29871, 29896, 3532, 29871, 29906, 13, 1678, 29486, 4214, 14573, 3986, 353, 29871, 29896, 3532, 29871, 29941, 13, 1678, 317, 1529, 2208, 10192, 14573, 4706, 353, 29871, 29896, 3532, 29871, 29946, 13, 1678, 19578, 14573, 632, 353, 29871, 29896, 3532, 29871, 29945, 13, 1678, 383, 3927, 1299, 14573, 965, 353, 29871, 29896, 3532, 29871, 29953, 13, 1678, 306, 5550, 1672, 18454, 632, 353, 29871, 29896, 3532, 29871, 29900, 13, 1678, 306, 7597, 15695, 1669, 353, 29871, 29896, 3532, 29871, 29896, 13, 1678, 306, 1254, 1955, 1669, 353, 29871, 29896, 3532, 29871, 29906, 13, 1678, 306, 7187, 4717, 29956, 29931, 1001, 965, 353, 29871, 29896, 3532, 29871, 29941, 13, 1678, 306, 1744, 2891, 1669, 353, 29871, 29896, 3532, 29871, 29946, 13, 1678, 5195, 29907, 3919, 2882, 17171, 308, 353, 29871, 29896, 3532, 29871, 29945, 13, 1678, 306, 1744, 29931, 11375, 24360, 3352, 539, 353, 29871, 29896, 3532, 29871, 29953, 13, 1678, 306, 5550, 3960, 29963, 3040, 965, 353, 29871, 29896, 3532, 29871, 29955, 13, 1678, 8519, 6720, 12809, 1307, 9651, 353, 29871, 29896, 3532, 29871, 29900, 13, 1678, 379, 3289, 4590, 1430, 15082, 29903, 4706, 353, 29871, 29896, 3532, 29871, 29896, 13, 1678, 306, 7068, 3718, 4214, 8618, 13044, 1001, 259, 353, 29871, 29896, 3532, 29871, 29906, 13, 1678, 319, 1783, 18474, 29963, 15695, 965, 353, 29871, 29896, 3532, 29871, 29941, 13, 1678, 319, 1783, 5667, 2544, 1955, 965, 353, 29871, 29896, 3532, 29871, 29946, 13, 1678, 349, 7466, 27888, 2477, 23524, 29925, 6992, 29911, 259, 353, 29871, 29896, 3532, 29871, 29945, 13, 1678, 390, 2890, 1001, 29963, 3352, 12413, 308, 353, 29871, 29896, 3532, 29871, 29953, 13, 1678, 390, 2890, 1001, 29963, 3352, 16240, 29949, 308, 353, 29871, 29896, 3532, 29871, 29955, 13, 1678, 390, 2890, 1001, 29963, 3352, 4690, 21661, 539, 353, 29871, 29896, 3532, 29871, 29900, 13, 1678, 390, 2890, 1001, 29963, 3352, 5800, 4574, 4706, 353, 29871, 29896, 3532, 29871, 29896, 13, 1678, 390, 2890, 1001, 29963, 3352, 3738, 12064, 4706, 353, 29871, 29896, 3532, 29871, 29906, 13, 1678, 8707, 8186, 9838, 11116, 12413, 259, 353, 29871, 29896, 3532, 29871, 29941, 13, 1678, 8707, 8186, 9838, 15631, 29925, 2544, 29956, 29949, 259, 353, 29871, 29896, 3532, 29871, 29946, 13, 1678, 8707, 8186, 9838, 15631, 29925, 2544, 29950, 21661, 353, 29871, 29896, 3532, 29871, 29945, 13, 1678, 319, 7838, 1660, 12064, 16652, 11937, 12413, 1678, 353, 29871, 29896, 3532, 29871, 29953, 13, 1678, 319, 7838, 1660, 12064, 16652, 11937, 16240, 29949, 1678, 353, 29871, 29896, 3532, 29871, 29955, 13, 268, 2 ]
imageledger/urls.py
creativecommons/open-ledger
46
114898
from django.urls import include, path, re_path from django.views.generic import RedirectView from django.urls import reverse_lazy from django.http import QueryDict from rest_framework.urlpatterns import format_suffix_patterns from django_cas_ng.views import login as cas_login, logout as cas_logout, callback as cas_callback from imageledger.views import search_views, api_views, list_views, favorite_views, tag_views, site_views from imageledger.forms import FIELD_DEFAULT class MetRedirectView(RedirectView): permanent = True query_string = True pattern_name = 'search-met' def get_redirect_url(self, *args, **kwargs): url = reverse_lazy('index') + '?' qd = QueryDict('', mutable=True, ) qd.update({'providers': 'met'}) qd.setlistdefault('search_fields', FIELD_DEFAULT) url += qd.urlencode() return url urlpatterns = [ # Custom search URLs path('themet', MetRedirectView.as_view(), name='search-met'), path('', search_views.index, name='index'), path('image/detail', search_views.by_image, name="by-image"), re_path('image/detail/(?P<identifier>.*)', search_views.detail, name="detail"), # CAS path('accounts/login', cas_login, name='cas_ng_login'), path('accounts/logout', cas_logout, name='cas_ng_logout'), path('accounts/callback', cas_callback, name='cas_ng_proxy_callback'), # Other auth-related pages path('accounts/profile', site_views.profile, name="profile"), path('accounts/delete', site_views.delete_account, name="delete-account"), # Lists (public) path('list/<slug:slug>/', list_views.OLListDetail.as_view(), name='list-detail'), # Lists (user admin) path('list/add/', list_views.OLListCreate.as_view(), name='my-list-add'), path('list/mine/<slug:slug>/', list_views.OLListUpdate.as_view(), name='my-list-update'), path('list/mine/<slug:slug>/delete', list_views.OLListDelete.as_view(), name='my-list-delete'), path('lists/mine', list_views.OLOwnedListList.as_view(), name="my-lists"), # Favorites path('favorites/mine', favorite_views.FavoriteList.as_view(), name='my-favorites'), # User tags path('tags/mine', tag_views.UserTagsList.as_view(), name='my-tags'), path('tags/mine/<slug:slug>/', tag_views.UserTagsDetail.as_view(), name='my-tags-detail'), # About and other static pages path('about', site_views.about, name='about'), path('health', site_views.health, name='health'), path('robots.txt', site_views.robots, name='robots'), ] apipatterns = [ # List API path('api/v1/lists', api_views.ListList.as_view()), path('api/v1/autocomplete/lists', api_views.ListAutocomplete.as_view()), path('api/v1/lists/<slug:slug>', api_views.ListDetail.as_view()), # Favorite API path('api/v1/images/favorite/<str:identifier>', api_views.FavoriteDetail.as_view()), path('api/v1/images/favorites', api_views.FavoriteList.as_view()), # User Tags API path('api/v1/images/tags', api_views.UserTagDetail.as_view()), path('api/v1/images/tags/<str:identifier>/<str:tag>', api_views.UserTagDetail.as_view()), path('api/v1/images/tags/<str:identifier>', api_views.UserTagsList.as_view()), path('api/v1/autocomplete/tags', api_views.UserTagsAutocomplete.as_view()), ] apipatterns = format_suffix_patterns(apipatterns) urlpatterns += apipatterns
[ 1, 515, 9557, 29889, 26045, 1053, 3160, 29892, 2224, 29892, 337, 29918, 2084, 13, 3166, 9557, 29889, 7406, 29889, 19206, 1053, 4367, 1088, 1043, 13, 3166, 9557, 29889, 26045, 1053, 11837, 29918, 433, 1537, 13, 3166, 9557, 29889, 1124, 1053, 13641, 21533, 13, 13, 3166, 1791, 29918, 4468, 29889, 2271, 11037, 29879, 1053, 3402, 29918, 2146, 600, 861, 29918, 11037, 29879, 13, 3166, 9557, 29918, 9398, 29918, 865, 29889, 7406, 1053, 6464, 408, 3209, 29918, 7507, 29892, 1480, 449, 408, 3209, 29918, 1188, 449, 29892, 6939, 408, 3209, 29918, 14035, 13, 13, 3166, 1967, 839, 914, 29889, 7406, 1053, 2740, 29918, 7406, 29892, 7882, 29918, 7406, 29892, 1051, 29918, 7406, 29892, 25448, 29918, 7406, 29892, 4055, 29918, 7406, 29892, 3268, 29918, 7406, 13, 3166, 1967, 839, 914, 29889, 9514, 1053, 9338, 27286, 29918, 23397, 13, 13, 1990, 4737, 24735, 1043, 29898, 24735, 1043, 1125, 13, 1678, 17667, 353, 5852, 13, 1678, 2346, 29918, 1807, 353, 5852, 13, 1678, 4766, 29918, 978, 353, 525, 4478, 29899, 2527, 29915, 13, 13, 1678, 822, 679, 29918, 17886, 29918, 2271, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 3142, 353, 11837, 29918, 433, 1537, 877, 2248, 1495, 718, 525, 17901, 13, 4706, 3855, 29881, 353, 13641, 21533, 877, 742, 26691, 29922, 5574, 29892, 1723, 13, 4706, 3855, 29881, 29889, 5504, 3319, 29915, 771, 29454, 2396, 525, 2527, 29915, 1800, 13, 4706, 3855, 29881, 29889, 842, 1761, 4381, 877, 4478, 29918, 9621, 742, 9338, 27286, 29918, 23397, 29897, 13, 4706, 3142, 4619, 3855, 29881, 29889, 2271, 12508, 580, 13, 4706, 736, 3142, 13, 13, 2271, 11037, 29879, 353, 518, 13, 1678, 396, 8701, 2740, 24295, 13, 1678, 2224, 877, 386, 21056, 742, 4737, 24735, 1043, 29889, 294, 29918, 1493, 3285, 1024, 2433, 4478, 29899, 2527, 5477, 13, 13, 1678, 2224, 877, 742, 2740, 29918, 7406, 29889, 2248, 29892, 1024, 2433, 2248, 5477, 13, 1678, 2224, 877, 3027, 29914, 16432, 742, 2740, 29918, 7406, 29889, 1609, 29918, 3027, 29892, 1024, 543, 1609, 29899, 3027, 4968, 13, 1678, 337, 29918, 2084, 877, 3027, 29914, 16432, 29914, 10780, 29925, 29966, 25378, 29958, 5575, 29897, 742, 2740, 29918, 7406, 29889, 16432, 29892, 1024, 543, 16432, 4968, 13, 13, 1678, 396, 315, 3289, 13, 1678, 2224, 877, 10149, 29879, 29914, 7507, 742, 3209, 29918, 7507, 29892, 1024, 2433, 9398, 29918, 865, 29918, 7507, 5477, 13, 1678, 2224, 877, 10149, 29879, 29914, 1188, 449, 742, 3209, 29918, 1188, 449, 29892, 1024, 2433, 9398, 29918, 865, 29918, 1188, 449, 5477, 13, 1678, 2224, 877, 10149, 29879, 29914, 14035, 742, 3209, 29918, 14035, 29892, 1024, 2433, 9398, 29918, 865, 29918, 14701, 29918, 14035, 5477, 13, 13, 1678, 396, 5901, 4817, 29899, 12817, 6515, 13, 1678, 2224, 877, 10149, 29879, 29914, 10185, 742, 3268, 29918, 7406, 29889, 10185, 29892, 1024, 543, 10185, 4968, 13, 1678, 2224, 877, 10149, 29879, 29914, 8143, 742, 3268, 29918, 7406, 29889, 8143, 29918, 10149, 29892, 1024, 543, 8143, 29899, 10149, 4968, 13, 13, 1678, 396, 2391, 29879, 313, 3597, 29897, 13, 1678, 2224, 877, 1761, 29914, 29966, 29517, 29901, 29517, 20690, 742, 1051, 29918, 7406, 29889, 5607, 1293, 16570, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1761, 29899, 16432, 5477, 13, 13, 1678, 396, 2391, 29879, 313, 1792, 4113, 29897, 13, 1678, 2224, 877, 1761, 29914, 1202, 29914, 742, 1051, 29918, 7406, 29889, 5607, 1293, 4391, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1357, 29899, 1761, 29899, 1202, 5477, 13, 1678, 2224, 877, 1761, 29914, 24669, 29914, 29966, 29517, 29901, 29517, 20690, 742, 1051, 29918, 7406, 29889, 5607, 1293, 6422, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1357, 29899, 1761, 29899, 5504, 5477, 13, 1678, 2224, 877, 1761, 29914, 24669, 29914, 29966, 29517, 29901, 29517, 20690, 8143, 742, 1051, 29918, 7406, 29889, 5607, 1293, 12498, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1357, 29899, 1761, 29899, 8143, 5477, 13, 1678, 2224, 877, 21513, 29914, 24669, 742, 1051, 29918, 7406, 29889, 29949, 3927, 1233, 287, 1293, 1293, 29889, 294, 29918, 1493, 3285, 1024, 543, 1357, 29899, 21513, 4968, 13, 13, 1678, 396, 383, 17118, 3246, 13, 1678, 2224, 877, 29888, 17118, 3246, 29914, 24669, 742, 25448, 29918, 7406, 29889, 29943, 17118, 568, 1293, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1357, 29899, 29888, 17118, 3246, 5477, 13, 13, 1678, 396, 4911, 8282, 13, 1678, 2224, 877, 11338, 29914, 24669, 742, 4055, 29918, 7406, 29889, 2659, 28089, 1293, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1357, 29899, 11338, 5477, 13, 1678, 2224, 877, 11338, 29914, 24669, 29914, 29966, 29517, 29901, 29517, 20690, 742, 4055, 29918, 7406, 29889, 2659, 28089, 16570, 29889, 294, 29918, 1493, 3285, 1024, 2433, 1357, 29899, 11338, 29899, 16432, 5477, 13, 13, 1678, 396, 13611, 322, 916, 2294, 6515, 13, 1678, 2224, 877, 12717, 742, 3268, 29918, 7406, 29889, 12717, 29892, 1024, 2433, 12717, 5477, 13, 1678, 2224, 877, 354, 4298, 742, 3268, 29918, 7406, 29889, 354, 4298, 29892, 1024, 2433, 354, 4298, 5477, 13, 1678, 2224, 877, 13716, 1862, 29889, 3945, 742, 3268, 29918, 7406, 29889, 13716, 1862, 29892, 1024, 2433, 13716, 1862, 5477, 13, 13, 29962, 13, 13, 481, 666, 271, 725, 29879, 353, 518, 13, 1678, 396, 2391, 3450, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 21513, 742, 7882, 29918, 7406, 29889, 1293, 1293, 29889, 294, 29918, 1493, 25739, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 6921, 8835, 29914, 21513, 742, 7882, 29918, 7406, 29889, 1293, 12300, 8835, 29889, 294, 29918, 1493, 25739, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 21513, 29914, 29966, 29517, 29901, 29517, 29958, 742, 7882, 29918, 7406, 29889, 1293, 16570, 29889, 294, 29918, 1493, 25739, 13, 13, 1678, 396, 383, 17118, 568, 3450, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 8346, 29914, 29888, 17118, 568, 29914, 29966, 710, 29901, 25378, 29958, 742, 7882, 29918, 7406, 29889, 29943, 17118, 568, 16570, 29889, 294, 29918, 1493, 25739, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 8346, 29914, 29888, 17118, 3246, 742, 7882, 29918, 7406, 29889, 29943, 17118, 568, 1293, 29889, 294, 29918, 1493, 25739, 13, 13, 1678, 396, 4911, 917, 3450, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 8346, 29914, 11338, 742, 7882, 29918, 7406, 29889, 2659, 8176, 16570, 29889, 294, 29918, 1493, 25739, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 8346, 29914, 11338, 29914, 29966, 710, 29901, 25378, 20690, 29966, 710, 29901, 4039, 29958, 742, 7882, 29918, 7406, 29889, 2659, 8176, 16570, 29889, 294, 29918, 1493, 25739, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 8346, 29914, 11338, 29914, 29966, 710, 29901, 25378, 29958, 742, 7882, 29918, 7406, 29889, 2659, 28089, 1293, 29889, 294, 29918, 1493, 25739, 13, 1678, 2224, 877, 2754, 29914, 29894, 29896, 29914, 6921, 8835, 29914, 11338, 742, 7882, 29918, 7406, 29889, 2659, 28089, 12300, 8835, 29889, 294, 29918, 1493, 25739, 13, 13, 29962, 13, 13, 13, 481, 666, 271, 725, 29879, 353, 3402, 29918, 2146, 600, 861, 29918, 11037, 29879, 29898, 481, 666, 271, 725, 29879, 29897, 13, 13, 2271, 11037, 29879, 4619, 3095, 666, 271, 725, 29879, 13, 2 ]
python/place_molex_conn.py
willdickson/roman_led_frame
0
33447
from __future__ import print_function import os import sys import pcbnew import numpy as np import pprint def inch_to_nanometer(value): return (value*25.4)*1e6 def nanometer_to_inch(value): return value/(25.4*1.e6) def nm_to_mm(value): return value*1.e-6 def mm_to_nm(value): return value*1.e6 def print_module_info(module): ref = module.GetReference() pos = module.GetPosition() x = nanometer_to_inch(pos.x) y = nanometer_to_inch(pos.y) angle = 0.1*module.GetOrientation() print(' R: {}'.format(ref)) print(' X: {}'.format(x)) print(' Y: {}'.format(y)) print(' A: {}'.format(angle)) print() def get_placement_data(param): placement_data = {} for i, ref in enumerate(param['ref_list']): x = param['x_start'] + i*param['x_step'] y = param['y_value'] angle = param['angle'] placement_data[ref] = {'angle': angle, 'x': x, 'y': y} return placement_data def place_pcb_modules(filename, placement_data): print() print('loading pcb: {}'.format(filename)) print() pcb = pcbnew.LoadBoard(filename) print() print('done') print() for module in pcb.GetModules(): ref_str = str(module.GetReference()) try: data = placement_data[ref_str] except KeyError: continue print_module_info(module) # Move to new position pos = module.GetPosition() angle = 0.1*module.GetOrientation() x_new = data['x'] y_new = data['y'] angle_new = data['angle'] pos.x = int(mm_to_nm(x_new)) pos.y = int(mm_to_nm(y_new)) module.SetPosition(pos) module.SetOrientation(10.0*angle_new) print_module_info(module) pathname, basename = os.path.split(filename) new_basename = 'mod_{}'.format(basename) new_filename = os.path.join(pathname,new_basename) pcb.Save(new_filename) # --------------------------------------------------------------------------------------- if __name__ == '__main__': param = { 'ref_list': ['J{}'.format(i) for i in range(1,19)], 'y_value' : 56.0, 'x_start' : 50.0+39.5, 'x_step' : 13.0, 'angle' : 180.0, } placement_data = get_placement_data(param) if 0: print('led_data') print() pp = pprint.PrettyPrinter(indent=2) pp.pprint(placement_data) print() print('modules') print() filename = sys.argv[1] place_pcb_modules(filename, placement_data)
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 282, 10702, 1482, 13, 5215, 12655, 408, 7442, 13, 5215, 282, 2158, 13, 13, 13, 1753, 297, 305, 29918, 517, 29918, 13707, 8328, 29898, 1767, 1125, 13, 1678, 736, 313, 1767, 29930, 29906, 29945, 29889, 29946, 11877, 29896, 29872, 29953, 13, 13, 1753, 23432, 8328, 29918, 517, 29918, 22466, 29898, 1767, 1125, 13, 1678, 736, 995, 14571, 29906, 29945, 29889, 29946, 29930, 29896, 29889, 29872, 29953, 29897, 13, 13, 1753, 302, 29885, 29918, 517, 29918, 4317, 29898, 1767, 1125, 13, 1678, 736, 995, 29930, 29896, 29889, 29872, 29899, 29953, 29871, 13, 13, 1753, 5654, 29918, 517, 29918, 22882, 29898, 1767, 1125, 13, 1678, 736, 995, 29930, 29896, 29889, 29872, 29953, 13, 13, 1753, 1596, 29918, 5453, 29918, 3888, 29898, 5453, 1125, 13, 1678, 2143, 353, 3883, 29889, 2577, 7422, 580, 13, 1678, 926, 353, 3883, 29889, 2577, 8003, 580, 13, 1678, 921, 353, 23432, 8328, 29918, 517, 29918, 22466, 29898, 1066, 29889, 29916, 29897, 13, 1678, 343, 353, 23432, 8328, 29918, 517, 29918, 22466, 29898, 1066, 29889, 29891, 29897, 13, 1678, 10696, 353, 29871, 29900, 29889, 29896, 29930, 5453, 29889, 2577, 25231, 580, 13, 308, 13, 1678, 1596, 877, 29871, 390, 29901, 6571, 4286, 4830, 29898, 999, 876, 13, 1678, 1596, 877, 29871, 1060, 29901, 6571, 4286, 4830, 29898, 29916, 876, 13, 1678, 1596, 877, 29871, 612, 29901, 6571, 4286, 4830, 29898, 29891, 876, 13, 1678, 1596, 877, 29871, 319, 29901, 6571, 4286, 4830, 29898, 2521, 876, 13, 1678, 1596, 580, 13, 13, 1753, 679, 29918, 29886, 9552, 29918, 1272, 29898, 3207, 1125, 13, 1678, 2174, 13561, 29918, 1272, 353, 6571, 13, 1678, 363, 474, 29892, 2143, 297, 26985, 29898, 3207, 1839, 999, 29918, 1761, 2033, 1125, 13, 4706, 921, 353, 1828, 1839, 29916, 29918, 2962, 2033, 718, 474, 29930, 3207, 1839, 29916, 29918, 10568, 2033, 13, 4706, 343, 353, 1828, 1839, 29891, 29918, 1767, 2033, 13, 4706, 10696, 353, 1828, 1839, 2521, 2033, 13, 4706, 2174, 13561, 29918, 1272, 29961, 999, 29962, 353, 11117, 2521, 2396, 10696, 29892, 525, 29916, 2396, 921, 29892, 525, 29891, 2396, 343, 29913, 29871, 13, 1678, 736, 2174, 13561, 29918, 1272, 13, 13, 1753, 2058, 29918, 6739, 29890, 29918, 7576, 29898, 9507, 29892, 2174, 13561, 29918, 1272, 1125, 13, 1678, 1596, 580, 13, 1678, 1596, 877, 13234, 282, 10702, 29901, 6571, 4286, 4830, 29898, 9507, 876, 13, 1678, 1596, 580, 13, 1678, 282, 10702, 353, 282, 10702, 1482, 29889, 5896, 28397, 29898, 9507, 29897, 13, 1678, 1596, 580, 13, 1678, 1596, 877, 15091, 1495, 13, 1678, 1596, 580, 13, 1678, 363, 3883, 297, 282, 10702, 29889, 2577, 2111, 2540, 7295, 13, 4706, 2143, 29918, 710, 353, 851, 29898, 5453, 29889, 2577, 7422, 3101, 13, 4706, 1018, 29901, 13, 9651, 848, 353, 2174, 13561, 29918, 1272, 29961, 999, 29918, 710, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 6773, 13, 4706, 1596, 29918, 5453, 29918, 3888, 29898, 5453, 29897, 13, 268, 13, 4706, 396, 25249, 304, 716, 2602, 13, 4706, 926, 353, 3883, 29889, 2577, 8003, 580, 13, 4706, 10696, 353, 29871, 29900, 29889, 29896, 29930, 5453, 29889, 2577, 25231, 580, 13, 4706, 921, 29918, 1482, 353, 848, 1839, 29916, 2033, 13, 4706, 343, 29918, 1482, 353, 848, 1839, 29891, 2033, 13, 4706, 10696, 29918, 1482, 353, 848, 1839, 2521, 2033, 13, 4706, 926, 29889, 29916, 353, 938, 29898, 4317, 29918, 517, 29918, 22882, 29898, 29916, 29918, 1482, 876, 13, 4706, 926, 29889, 29891, 353, 938, 29898, 4317, 29918, 517, 29918, 22882, 29898, 29891, 29918, 1482, 876, 13, 4706, 3883, 29889, 2697, 8003, 29898, 1066, 29897, 13, 4706, 3883, 29889, 2697, 25231, 29898, 29896, 29900, 29889, 29900, 29930, 2521, 29918, 1482, 29897, 13, 4706, 1596, 29918, 5453, 29918, 3888, 29898, 5453, 29897, 13, 268, 13, 1678, 2224, 978, 29892, 2362, 3871, 353, 2897, 29889, 2084, 29889, 5451, 29898, 9507, 29897, 13, 1678, 716, 29918, 6500, 3871, 353, 525, 1545, 648, 29913, 4286, 4830, 29898, 6500, 3871, 29897, 13, 1678, 716, 29918, 9507, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2084, 978, 29892, 1482, 29918, 6500, 3871, 29897, 13, 1678, 282, 10702, 29889, 11371, 29898, 1482, 29918, 9507, 29897, 13, 13, 13, 13, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 22158, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 13, 1678, 1828, 353, 426, 13, 18884, 525, 999, 29918, 1761, 2396, 6024, 29967, 8875, 4286, 4830, 29898, 29875, 29897, 363, 474, 297, 3464, 29898, 29896, 29892, 29896, 29929, 29897, 1402, 13, 18884, 525, 29891, 29918, 1767, 29915, 584, 29871, 29945, 29953, 29889, 29900, 29892, 13, 18884, 525, 29916, 29918, 2962, 29915, 584, 29871, 29945, 29900, 29889, 29900, 29974, 29941, 29929, 29889, 29945, 29892, 29871, 13, 18884, 525, 29916, 29918, 10568, 29915, 29871, 584, 29871, 29896, 29941, 29889, 29900, 29892, 13, 18884, 525, 2521, 29915, 259, 584, 29871, 29896, 29947, 29900, 29889, 29900, 29892, 13, 9651, 500, 13, 268, 13, 1678, 2174, 13561, 29918, 1272, 353, 679, 29918, 29886, 9552, 29918, 1272, 29898, 3207, 29897, 13, 268, 13, 1678, 565, 29871, 29900, 29901, 13, 4706, 1596, 877, 839, 29918, 1272, 1495, 13, 4706, 1596, 580, 13, 4706, 6499, 353, 282, 2158, 29889, 6572, 4349, 4040, 1639, 29898, 12860, 29922, 29906, 29897, 13, 4706, 6499, 29889, 407, 29878, 524, 29898, 29886, 9552, 29918, 1272, 29897, 13, 4706, 1596, 580, 13, 1678, 1596, 877, 7576, 1495, 13, 1678, 1596, 580, 13, 268, 13, 1678, 10422, 353, 10876, 29889, 19218, 29961, 29896, 29962, 13, 1678, 2058, 29918, 6739, 29890, 29918, 7576, 29898, 9507, 29892, 2174, 13561, 29918, 1272, 29897, 13, 13, 13, 13, 13, 308, 13, 13, 2 ]
hypha/apply/projects/models/project.py
slifty/hypha
0
14203
import collections import decimal import json import logging from django.apps import apps from django.conf import settings from django.contrib.contenttypes.fields import GenericRelation from django.contrib.postgres.fields import JSONField from django.core.exceptions import ValidationError from django.core.validators import MinValueValidator from django.db import models from django.db.models import Count, F, Max, OuterRef, Subquery, Sum, Value from django.db.models.functions import Cast, Coalesce from django.db.models.signals import post_delete from django.dispatch.dispatcher import receiver from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy as _ from wagtail.contrib.settings.models import BaseSetting, register_setting from wagtail.core.fields import StreamField from addressfield.fields import ADDRESS_FIELDS_ORDER from hypha.apply.funds.models.mixins import AccessFormData from hypha.apply.stream_forms.blocks import FormFieldsBlock from hypha.apply.stream_forms.files import StreamFieldDataEncoder from hypha.apply.stream_forms.models import BaseStreamForm from hypha.apply.utils.storage import PrivateStorage from .vendor import Vendor logger = logging.getLogger(__name__) def contract_path(instance, filename): return f'projects/{instance.project_id}/contracts/{filename}' def document_path(instance, filename): return f'projects/{instance.project_id}/supporting_documents/{filename}' COMMITTED = 'committed' CONTRACTING = 'contracting' IN_PROGRESS = 'in_progress' CLOSING = 'closing' COMPLETE = 'complete' PROJECT_STATUS_CHOICES = [ (COMMITTED, _('Committed')), (CONTRACTING, _('Contracting')), (IN_PROGRESS, _('In Progress')), (CLOSING, _('Closing')), (COMPLETE, _('Complete')), ] class ProjectQuerySet(models.QuerySet): def active(self): # Projects that are not finished. return self.exclude(status=COMPLETE) def in_progress(self): # Projects that users need to interact with, submitting reports or payment request. return self.filter( status__in=(IN_PROGRESS, CLOSING,) ) def complete(self): return self.filter(status=COMPLETE) def in_approval(self): return self.filter( is_locked=True, status=COMMITTED, approvals__isnull=True, ) def by_end_date(self, desc=False): order = getattr(F('proposed_end'), 'desc' if desc else 'asc')(nulls_last=True) return self.order_by(order) def with_amount_paid(self): return self.annotate( amount_paid=Coalesce(Sum('invoices__paid_value'), Value(0)), ) def with_last_payment(self): return self.annotate( last_payment_request=Max('invoices__requested_at'), ) def with_outstanding_reports(self): Report = apps.get_model('application_projects', 'Report') return self.annotate( outstanding_reports=Subquery( Report.objects.filter( project=OuterRef('pk'), ).to_do().order_by().values('project').annotate( count=Count('pk'), ).values('count'), output_field=models.IntegerField(), ) ) def with_start_date(self): return self.annotate( start=Cast( Subquery( Contract.objects.filter( project=OuterRef('pk'), ).approved().order_by( 'approved_at' ).values('approved_at')[:1] ), models.DateField(), ) ) def for_table(self): return self.with_amount_paid().with_last_payment().with_outstanding_reports().select_related( 'report_config', 'submission__page', 'lead', ) class Project(BaseStreamForm, AccessFormData, models.Model): lead = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, on_delete=models.SET_NULL, related_name='lead_projects') submission = models.OneToOneField("funds.ApplicationSubmission", on_delete=models.CASCADE) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.SET_NULL, null=True, related_name='owned_projects') title = models.TextField() vendor = models.ForeignKey( "application_projects.Vendor", on_delete=models.SET_NULL, null=True, blank=True, related_name='projects' ) value = models.DecimalField( default=0, max_digits=10, decimal_places=2, validators=[MinValueValidator(decimal.Decimal('0.01'))], ) proposed_start = models.DateTimeField(_('Proposed Start Date'), null=True) proposed_end = models.DateTimeField(_('Proposed End Date'), null=True) status = models.TextField(choices=PROJECT_STATUS_CHOICES, default=COMMITTED) form_data = JSONField(encoder=StreamFieldDataEncoder, default=dict) form_fields = StreamField(FormFieldsBlock(), null=True) # tracks read/write state of the Project is_locked = models.BooleanField(default=False) # tracks updates to the Projects fields via the Project Application Form. user_has_updated_details = models.BooleanField(default=False) activities = GenericRelation( 'activity.Activity', content_type_field='source_content_type', object_id_field='source_object_id', related_query_name='project', ) created_at = models.DateTimeField(auto_now_add=True) sent_to_compliance_at = models.DateTimeField(null=True) objects = ProjectQuerySet.as_manager() def __str__(self): return self.title @property def status_display(self): return self.get_status_display() def get_address_display(self): try: address = json.loads(self.vendor.address) except (json.JSONDecodeError, AttributeError): return '' else: return ', '.join( address.get(field) for field in ADDRESS_FIELDS_ORDER if address.get(field) ) @classmethod def create_from_submission(cls, submission): """ Create a Project from the given submission. Returns a new Project or the given ApplicationSubmissions existing Project. """ if not settings.PROJECTS_ENABLED: logging.error(f'Tried to create a Project for Submission ID={submission.id} while projects are disabled') return None # OneToOne relations on the targetted model cannot be accessed without # an exception when the relation doesn't exist (is None). Since we # want to fail fast here, we can use hasattr instead. if hasattr(submission, 'project'): return submission.project # See if there is a form field named "legal name", if not use user name. legal_name = submission.get_answer_from_label('legal name') or submission.user.full_name vendor, _ = Vendor.objects.get_or_create( user=submission.user ) vendor.name = legal_name vendor.address = submission.form_data.get('address', '') vendor.save() return Project.objects.create( submission=submission, user=submission.user, title=submission.title, vendor=vendor, value=submission.form_data.get('value', 0), ) @property def start_date(self): # Assume project starts when OTF are happy with the first signed contract first_approved_contract = self.contracts.approved().order_by('approved_at').first() if not first_approved_contract: return None return first_approved_contract.approved_at.date() @property def end_date(self): # Aiming for the proposed end date as the last day of the project # If still ongoing assume today is the end return max( self.proposed_end.date(), timezone.now().date(), ) def paid_value(self): return self.invoices.paid_value() def unpaid_value(self): return self.invoices.unpaid_value() def clean(self): if self.proposed_start is None: return if self.proposed_end is None: return if self.proposed_start > self.proposed_end: raise ValidationError(_('Proposed End Date must be after Proposed Start Date')) def save(self, *args, **kwargs): creating = not self.pk if creating: files = self.extract_files() else: self.process_file_data(self.form_data) super().save(*args, **kwargs) if creating: self.process_file_data(files) def editable_by(self, user): if self.editable: return True # Approver can edit it when they are approving return user.is_approver and self.can_make_approval @property def editable(self): if self.status not in (CONTRACTING, COMMITTED): return True # Someone has approved the project - consider it locked while with contracting if self.approvals.exists(): return False # Someone must lead the project to make changes return self.lead and not self.is_locked def get_absolute_url(self): if settings.PROJECTS_ENABLED: return reverse('apply:projects:detail', args=[self.id]) return '#' @property def can_make_approval(self): return self.is_locked and self.status == COMMITTED def can_request_funding(self): """ Should we show this Project's funding block? """ return self.status in (CLOSING, IN_PROGRESS) @property def can_send_for_approval(self): """ Wrapper to expose the pending approval state We don't want to expose a "Sent for Approval" state to the end User so we infer it from the current status being "Comitted" and the Project being locked. """ correct_state = self.status == COMMITTED and not self.is_locked return correct_state and self.user_has_updated_details @property def requires_approval(self): return not self.approvals.exists() def get_missing_document_categories(self): """ Get the number of documents required to meet each DocumentCategorys minimum """ # Count the number of documents in each category currently existing_categories = DocumentCategory.objects.filter(packet_files__project=self) counter = collections.Counter(existing_categories) # Find the difference between the current count and recommended count for category in DocumentCategory.objects.all(): current_count = counter[category] difference = category.recommended_minimum - current_count if difference > 0: yield { 'category': category, 'difference': difference, } @property def is_in_progress(self): return self.status == IN_PROGRESS @property def has_deliverables(self): return self.deliverables.exists() # def send_to_compliance(self, request): # """Notify Compliance about this Project.""" # messenger( # MESSAGES.SENT_TO_COMPLIANCE, # request=request, # user=request.user, # source=self, # ) # self.sent_to_compliance_at = timezone.now() # self.save(update_fields=['sent_to_compliance_at']) @register_setting class ProjectSettings(BaseSetting): compliance_email = models.TextField("Compliance Email") vendor_setup_required = models.BooleanField(default=True) class Approval(models.Model): project = models.ForeignKey("Project", on_delete=models.CASCADE, related_name="approvals") by = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="approvals") created_at = models.DateTimeField(auto_now_add=True) class Meta: unique_together = ['project', 'by'] def __str__(self): return _('Approval of {project} by {user}').format(project=self.project, user=self.by) class ContractQuerySet(models.QuerySet): def approved(self): return self.filter(is_signed=True, approver__isnull=False) class Contract(models.Model): approver = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, on_delete=models.SET_NULL, related_name='contracts') project = models.ForeignKey("Project", on_delete=models.CASCADE, related_name="contracts") file = models.FileField(upload_to=contract_path, storage=PrivateStorage()) is_signed = models.BooleanField("Signed?", default=False) created_at = models.DateTimeField(auto_now_add=True) approved_at = models.DateTimeField(null=True) objects = ContractQuerySet.as_manager() @property def state(self): return _('Signed') if self.is_signed else _('Unsigned') def __str__(self): return _('Contract for {project} ({state})').format(project=self.project, state=self.state) def get_absolute_url(self): return reverse('apply:projects:contract', args=[self.project.pk, self.pk]) class PacketFile(models.Model): category = models.ForeignKey("DocumentCategory", null=True, on_delete=models.CASCADE, related_name="packet_files") project = models.ForeignKey("Project", on_delete=models.CASCADE, related_name="packet_files") title = models.TextField() document = models.FileField(upload_to=document_path, storage=PrivateStorage()) def __str__(self): return _('Project file: {title}').format(title=self.title) def get_remove_form(self): """ Get an instantiated RemoveDocumentForm with this class as `instance`. This allows us to build instances of the RemoveDocumentForm for each instance of PacketFile in the supporting documents template. The standard Delegated View flow makes it difficult to create these forms in the view or template. """ from ..forms import RemoveDocumentForm return RemoveDocumentForm(instance=self) @receiver(post_delete, sender=PacketFile) def delete_packetfile_file(sender, instance, **kwargs): # Remove the file and don't save the base model instance.document.delete(False) class DocumentCategory(models.Model): name = models.CharField(max_length=254) recommended_minimum = models.PositiveIntegerField() def __str__(self): return self.name class Meta: ordering = ('name',) verbose_name_plural = 'Document Categories' class Deliverable(models.Model): name = models.TextField() available_to_invoice = models.IntegerField(default=1) unit_price = models.DecimalField( max_digits=10, decimal_places=2, validators=[MinValueValidator(decimal.Decimal('0.01'))], ) project = models.ForeignKey( Project, null=True, blank=True, on_delete=models.CASCADE, related_name='deliverables' ) def __str__(self): return self.name
[ 1, 1053, 16250, 13, 5215, 13677, 13, 5215, 4390, 13, 5215, 12183, 13, 13, 3166, 9557, 29889, 13371, 1053, 11446, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 21570, 29889, 3051, 8768, 29889, 9621, 1053, 3251, 293, 9662, 362, 13, 3166, 9557, 29889, 21570, 29889, 2490, 7201, 29889, 9621, 1053, 4663, 3073, 13, 3166, 9557, 29889, 3221, 29889, 11739, 29879, 1053, 15758, 362, 2392, 13, 3166, 9557, 29889, 3221, 29889, 3084, 4097, 1053, 3080, 1917, 24204, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 2585, 29889, 9794, 1053, 3917, 29892, 383, 29892, 5918, 29892, 4451, 261, 5620, 29892, 3323, 1972, 29892, 6991, 29892, 7865, 13, 3166, 9557, 29889, 2585, 29889, 9794, 29889, 12171, 1053, 4834, 29892, 3189, 2122, 346, 13, 3166, 9557, 29889, 2585, 29889, 9794, 29889, 4530, 1338, 1053, 1400, 29918, 8143, 13, 3166, 9557, 29889, 13369, 29889, 13369, 261, 1053, 19870, 13, 3166, 9557, 29889, 26045, 1053, 11837, 13, 3166, 9557, 29889, 13239, 1053, 29431, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 679, 726, 29918, 433, 1537, 408, 903, 13, 3166, 281, 351, 18237, 29889, 21570, 29889, 11027, 29889, 9794, 1053, 7399, 29020, 29892, 6036, 29918, 26740, 13, 3166, 281, 351, 18237, 29889, 3221, 29889, 9621, 1053, 13763, 3073, 13, 13, 3166, 3211, 2671, 29889, 9621, 1053, 27827, 26785, 29918, 3738, 6670, 8452, 29918, 22364, 13, 3166, 7498, 2026, 29889, 7302, 29889, 27159, 29879, 29889, 9794, 29889, 28084, 1144, 1053, 11028, 2500, 1469, 13, 3166, 7498, 2026, 29889, 7302, 29889, 5461, 29918, 9514, 29889, 1271, 29879, 1053, 3812, 14256, 7445, 13, 3166, 7498, 2026, 29889, 7302, 29889, 5461, 29918, 9514, 29889, 5325, 1053, 13763, 3073, 1469, 8566, 6119, 13, 3166, 7498, 2026, 29889, 7302, 29889, 5461, 29918, 9514, 29889, 9794, 1053, 7399, 3835, 2500, 13, 3166, 7498, 2026, 29889, 7302, 29889, 13239, 29889, 12925, 1053, 12230, 10486, 13, 13, 3166, 869, 19167, 1053, 478, 12184, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 1753, 8078, 29918, 2084, 29898, 8758, 29892, 10422, 1125, 13, 1678, 736, 285, 29915, 16418, 19248, 8758, 29889, 4836, 29918, 333, 6822, 1285, 1461, 29879, 19248, 9507, 10162, 13, 13, 13, 1753, 1842, 29918, 2084, 29898, 8758, 29892, 10422, 1125, 13, 1678, 736, 285, 29915, 16418, 19248, 8758, 29889, 4836, 29918, 333, 6822, 5924, 292, 29918, 3225, 29879, 19248, 9507, 10162, 13, 13, 13, 3217, 7428, 1806, 29911, 3352, 353, 525, 2055, 4430, 29915, 13, 22412, 4717, 1783, 4214, 353, 525, 1285, 1461, 292, 29915, 13, 1177, 29918, 8618, 29954, 26785, 353, 525, 262, 29918, 18035, 29915, 13, 6154, 3267, 4214, 353, 525, 11291, 292, 29915, 13, 21514, 18476, 353, 525, 8835, 29915, 13, 8618, 17637, 29918, 27047, 29918, 3210, 29949, 2965, 2890, 353, 518, 13, 1678, 313, 3217, 7428, 1806, 29911, 3352, 29892, 903, 877, 5261, 4430, 1495, 511, 13, 1678, 313, 22412, 4717, 1783, 4214, 29892, 903, 877, 21263, 292, 1495, 511, 13, 1678, 313, 1177, 29918, 8618, 29954, 26785, 29892, 903, 877, 797, 20018, 1495, 511, 13, 1678, 313, 6154, 3267, 4214, 29892, 903, 877, 29907, 5409, 292, 1495, 511, 13, 1678, 313, 21514, 18476, 29892, 903, 877, 17813, 1495, 511, 13, 29962, 13, 13, 13, 1990, 8010, 3010, 2697, 29898, 9794, 29889, 3010, 2697, 1125, 13, 1678, 822, 6136, 29898, 1311, 1125, 13, 4706, 396, 8010, 29879, 393, 526, 451, 7743, 29889, 13, 4706, 736, 1583, 29889, 735, 2325, 29898, 4882, 29922, 21514, 18476, 29897, 13, 13, 1678, 822, 297, 29918, 18035, 29898, 1311, 1125, 13, 4706, 396, 8010, 29879, 393, 4160, 817, 304, 16254, 411, 29892, 11834, 5367, 13676, 470, 19179, 2009, 29889, 13, 4706, 736, 1583, 29889, 4572, 29898, 13, 9651, 4660, 1649, 262, 7607, 1177, 29918, 8618, 29954, 26785, 29892, 17332, 3267, 4214, 29892, 29897, 13, 4706, 1723, 13, 13, 1678, 822, 4866, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 4572, 29898, 4882, 29922, 21514, 18476, 29897, 13, 13, 1678, 822, 297, 29918, 9961, 791, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 4572, 29898, 13, 9651, 338, 29918, 29113, 29922, 5574, 29892, 13, 9651, 4660, 29922, 3217, 7428, 1806, 29911, 3352, 29892, 13, 9651, 2134, 791, 29879, 1649, 275, 4304, 29922, 5574, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 491, 29918, 355, 29918, 1256, 29898, 1311, 29892, 5153, 29922, 8824, 1125, 13, 4706, 1797, 353, 679, 5552, 29898, 29943, 877, 771, 4752, 29918, 355, 5477, 525, 14273, 29915, 565, 5153, 1683, 525, 6151, 1495, 29898, 4304, 29879, 29918, 4230, 29922, 5574, 29897, 13, 13, 4706, 736, 1583, 29889, 2098, 29918, 1609, 29898, 2098, 29897, 13, 13, 1678, 822, 411, 29918, 14506, 29918, 3274, 333, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 6735, 403, 29898, 13, 9651, 5253, 29918, 3274, 333, 29922, 7967, 2122, 346, 29898, 11139, 877, 262, 1365, 1575, 1649, 3274, 333, 29918, 1767, 5477, 7865, 29898, 29900, 8243, 13, 4706, 1723, 13, 13, 1678, 822, 411, 29918, 4230, 29918, 27825, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 6735, 403, 29898, 13, 9651, 1833, 29918, 27825, 29918, 3827, 29922, 7976, 877, 262, 1365, 1575, 1649, 3827, 287, 29918, 271, 5477, 13, 4706, 1723, 13, 13, 1678, 822, 411, 29918, 449, 11235, 29918, 276, 4011, 29898, 1311, 1125, 13, 4706, 13969, 353, 11446, 29889, 657, 29918, 4299, 877, 6214, 29918, 16418, 742, 525, 13020, 1495, 13, 4706, 736, 1583, 29889, 6735, 403, 29898, 13, 9651, 714, 11235, 29918, 276, 4011, 29922, 4035, 1972, 29898, 13, 18884, 13969, 29889, 12650, 29889, 4572, 29898, 13, 462, 1678, 2060, 29922, 3744, 261, 5620, 877, 20571, 5477, 13, 18884, 13742, 517, 29918, 1867, 2141, 2098, 29918, 1609, 2141, 5975, 877, 4836, 2824, 6735, 403, 29898, 13, 462, 1678, 2302, 29922, 3981, 877, 20571, 5477, 13, 18884, 13742, 5975, 877, 2798, 5477, 13, 18884, 1962, 29918, 2671, 29922, 9794, 29889, 7798, 3073, 3285, 13, 9651, 1723, 13, 4706, 1723, 13, 13, 1678, 822, 411, 29918, 2962, 29918, 1256, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 6735, 403, 29898, 13, 9651, 1369, 29922, 15738, 29898, 13, 18884, 3323, 1972, 29898, 13, 462, 1678, 2866, 1461, 29889, 12650, 29889, 4572, 29898, 13, 462, 4706, 2060, 29922, 3744, 261, 5620, 877, 20571, 5477, 13, 462, 1678, 13742, 9961, 1490, 2141, 2098, 29918, 1609, 29898, 13, 462, 4706, 525, 9961, 1490, 29918, 271, 29915, 13, 462, 1678, 13742, 5975, 877, 9961, 1490, 29918, 271, 1495, 7503, 29896, 29962, 13, 18884, 10353, 13, 18884, 4733, 29889, 2539, 3073, 3285, 13, 9651, 1723, 13, 4706, 1723, 13, 13, 1678, 822, 363, 29918, 2371, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 2541, 29918, 14506, 29918, 3274, 333, 2141, 2541, 29918, 4230, 29918, 27825, 2141, 2541, 29918, 449, 11235, 29918, 276, 4011, 2141, 2622, 29918, 12817, 29898, 13, 9651, 525, 12276, 29918, 2917, 742, 13, 9651, 525, 1491, 6737, 1649, 3488, 742, 13, 9651, 525, 280, 328, 742, 13, 4706, 1723, 13, 13, 13, 1990, 8010, 29898, 5160, 3835, 2500, 29892, 11028, 2500, 1469, 29892, 4733, 29889, 3195, 1125, 13, 1678, 3275, 353, 4733, 29889, 27755, 2558, 29898, 11027, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 9794, 29889, 10490, 29918, 10074, 29892, 4475, 29918, 978, 2433, 280, 328, 29918, 16418, 1495, 13, 1678, 29240, 353, 4733, 29889, 6716, 1762, 6716, 3073, 703, 27159, 29879, 29889, 4873, 4035, 6737, 613, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29897, 13, 1678, 1404, 353, 4733, 29889, 27755, 2558, 29898, 11027, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 29892, 373, 29918, 8143, 29922, 9794, 29889, 10490, 29918, 10074, 29892, 1870, 29922, 5574, 29892, 4475, 29918, 978, 2433, 26689, 29918, 16418, 1495, 13, 13, 1678, 3611, 353, 4733, 29889, 15778, 580, 13, 1678, 27042, 353, 4733, 29889, 27755, 2558, 29898, 13, 4706, 376, 6214, 29918, 16418, 29889, 29963, 12184, 613, 13, 4706, 373, 29918, 8143, 29922, 9794, 29889, 10490, 29918, 10074, 29892, 13, 4706, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29892, 4475, 29918, 978, 2433, 16418, 29915, 13, 1678, 1723, 13, 1678, 995, 353, 4733, 29889, 23307, 3073, 29898, 13, 4706, 2322, 29922, 29900, 29892, 13, 4706, 4236, 29918, 7501, 1169, 29922, 29896, 29900, 29892, 13, 4706, 13677, 29918, 29886, 6048, 29922, 29906, 29892, 13, 4706, 2854, 4097, 11759, 8140, 1917, 24204, 29898, 7099, 3039, 29889, 23307, 877, 29900, 29889, 29900, 29896, 8785, 1402, 13, 1678, 1723, 13, 1678, 7972, 29918, 2962, 353, 4733, 29889, 11384, 3073, 7373, 877, 1184, 4752, 7370, 4712, 5477, 1870, 29922, 5574, 29897, 13, 1678, 7972, 29918, 355, 353, 4733, 29889, 11384, 3073, 7373, 877, 1184, 4752, 2796, 4712, 5477, 1870, 29922, 5574, 29897, 13, 13, 1678, 4660, 353, 4733, 29889, 15778, 29898, 1859, 1575, 29922, 8618, 17637, 29918, 27047, 29918, 3210, 29949, 2965, 2890, 29892, 2322, 29922, 3217, 7428, 1806, 29911, 3352, 29897, 13, 13, 1678, 883, 29918, 1272, 353, 4663, 3073, 29898, 3977, 6119, 29922, 3835, 3073, 1469, 8566, 6119, 29892, 2322, 29922, 8977, 29897, 13, 1678, 883, 29918, 9621, 353, 13763, 3073, 29898, 2500, 14256, 7445, 3285, 1870, 29922, 5574, 29897, 13, 13, 1678, 396, 16257, 1303, 29914, 3539, 2106, 310, 278, 8010, 13, 1678, 338, 29918, 29113, 353, 4733, 29889, 18146, 3073, 29898, 4381, 29922, 8824, 29897, 13, 13, 1678, 396, 16257, 11217, 304, 278, 8010, 29879, 4235, 3025, 278, 8010, 8427, 3812, 29889, 13, 1678, 1404, 29918, 5349, 29918, 21402, 29918, 14144, 353, 4733, 29889, 18146, 3073, 29898, 4381, 29922, 8824, 29897, 13, 13, 1678, 14188, 353, 3251, 293, 9662, 362, 29898, 13, 4706, 525, 10072, 29889, 3886, 742, 13, 4706, 2793, 29918, 1853, 29918, 2671, 2433, 4993, 29918, 3051, 29918, 1853, 742, 13, 4706, 1203, 29918, 333, 29918, 2671, 2433, 4993, 29918, 3318, 29918, 333, 742, 13, 4706, 4475, 29918, 1972, 29918, 978, 2433, 4836, 742, 13, 1678, 1723, 13, 1678, 2825, 29918, 271, 353, 4733, 29889, 11384, 3073, 29898, 6921, 29918, 3707, 29918, 1202, 29922, 5574, 29897, 13, 13, 1678, 2665, 29918, 517, 29918, 2388, 13036, 29918, 271, 353, 4733, 29889, 11384, 3073, 29898, 4304, 29922, 5574, 29897, 13, 13, 1678, 3618, 353, 8010, 3010, 2697, 29889, 294, 29918, 12847, 580, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 3257, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4660, 29918, 4990, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 657, 29918, 4882, 29918, 4990, 580, 13, 13, 1678, 822, 679, 29918, 7328, 29918, 4990, 29898, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 3211, 353, 4390, 29889, 18132, 29898, 1311, 29889, 19167, 29889, 7328, 29897, 13, 4706, 5174, 313, 3126, 29889, 7249, 2772, 401, 2392, 29892, 23833, 2392, 1125, 13, 9651, 736, 6629, 13, 4706, 1683, 29901, 13, 9651, 736, 13420, 15300, 7122, 29898, 13, 18884, 3211, 29889, 657, 29898, 2671, 29897, 13, 18884, 363, 1746, 297, 27827, 26785, 29918, 3738, 6670, 8452, 29918, 22364, 13, 18884, 565, 3211, 29889, 657, 29898, 2671, 29897, 13, 9651, 1723, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 1653, 29918, 3166, 29918, 1491, 6737, 29898, 25932, 29892, 29240, 1125, 13, 4706, 9995, 13, 4706, 6204, 263, 8010, 515, 278, 2183, 29240, 29889, 13, 13, 4706, 16969, 263, 716, 8010, 470, 278, 2183, 8427, 4035, 29885, 6847, 5923, 13, 4706, 8010, 29889, 13, 4706, 9995, 13, 4706, 565, 451, 6055, 29889, 8618, 17637, 29903, 29918, 1430, 6181, 29928, 29901, 13, 9651, 12183, 29889, 2704, 29898, 29888, 29915, 29911, 1255, 304, 1653, 263, 8010, 363, 3323, 6737, 3553, 3790, 1491, 6737, 29889, 333, 29913, 1550, 9279, 526, 12708, 1495, 13, 9651, 736, 6213, 13, 13, 4706, 396, 3118, 1762, 6716, 5302, 373, 278, 3646, 9446, 1904, 2609, 367, 20592, 1728, 13, 4706, 396, 385, 3682, 746, 278, 8220, 1838, 29915, 29873, 1863, 313, 275, 6213, 467, 29871, 4001, 591, 13, 4706, 396, 864, 304, 4418, 5172, 1244, 29892, 591, 508, 671, 756, 5552, 2012, 29889, 13, 4706, 565, 756, 5552, 29898, 1491, 6737, 29892, 525, 4836, 29374, 13, 9651, 736, 29240, 29889, 4836, 13, 13, 4706, 396, 2823, 565, 727, 338, 263, 883, 1746, 4257, 376, 12018, 1024, 613, 565, 451, 671, 1404, 1024, 29889, 13, 4706, 11706, 29918, 978, 353, 29240, 29889, 657, 29918, 12011, 29918, 3166, 29918, 1643, 877, 12018, 1024, 1495, 470, 29240, 29889, 1792, 29889, 8159, 29918, 978, 13, 4706, 27042, 29892, 903, 353, 478, 12184, 29889, 12650, 29889, 657, 29918, 272, 29918, 3258, 29898, 13, 9651, 1404, 29922, 1491, 6737, 29889, 1792, 13, 4706, 1723, 13, 4706, 27042, 29889, 978, 353, 11706, 29918, 978, 13, 4706, 27042, 29889, 7328, 353, 29240, 29889, 689, 29918, 1272, 29889, 657, 877, 7328, 742, 27255, 13, 4706, 27042, 29889, 7620, 580, 13, 4706, 736, 8010, 29889, 12650, 29889, 3258, 29898, 13, 9651, 29240, 29922, 1491, 6737, 29892, 13, 9651, 1404, 29922, 1491, 6737, 29889, 1792, 29892, 13, 9651, 3611, 29922, 1491, 6737, 29889, 3257, 29892, 13, 9651, 27042, 29922, 19167, 29892, 13, 9651, 995, 29922, 1491, 6737, 29889, 689, 29918, 1272, 29889, 657, 877, 1767, 742, 29871, 29900, 511, 13, 4706, 1723, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1369, 29918, 1256, 29898, 1311, 1125, 13, 4706, 396, 22680, 2060, 8665, 746, 438, 8969, 526, 9796, 411, 278, 937, 8794, 8078, 13, 4706, 937, 29918, 9961, 1490, 29918, 1285, 1461, 353, 1583, 29889, 1285, 1461, 29879, 29889, 9961, 1490, 2141, 2098, 29918, 1609, 877, 9961, 1490, 29918, 271, 2824, 4102, 580, 13, 4706, 565, 451, 937, 29918, 9961, 1490, 29918, 1285, 1461, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 736, 937, 29918, 9961, 1490, 29918, 1285, 1461, 29889, 9961, 1490, 29918, 271, 29889, 1256, 580, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1095, 29918, 1256, 29898, 1311, 1125, 13, 4706, 396, 319, 326, 292, 363, 278, 7972, 1095, 2635, 408, 278, 1833, 2462, 310, 278, 2060, 13, 4706, 396, 960, 1603, 373, 17696, 5251, 9826, 338, 278, 1095, 13, 4706, 736, 4236, 29898, 13, 9651, 1583, 29889, 771, 4752, 29918, 355, 29889, 1256, 3285, 13, 9651, 29431, 29889, 3707, 2141, 1256, 3285, 13, 4706, 1723, 13, 13, 1678, 822, 12530, 29918, 1767, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 262, 1365, 1575, 29889, 3274, 333, 29918, 1767, 580, 13, 13, 1678, 822, 443, 3274, 333, 29918, 1767, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 262, 1365, 1575, 29889, 348, 3274, 333, 29918, 1767, 580, 13, 13, 1678, 822, 5941, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 771, 4752, 29918, 2962, 338, 6213, 29901, 13, 9651, 736, 13, 13, 4706, 565, 1583, 29889, 771, 4752, 29918, 355, 338, 6213, 29901, 13, 9651, 736, 13, 13, 4706, 565, 1583, 29889, 771, 4752, 29918, 2962, 1405, 1583, 29889, 771, 4752, 29918, 355, 29901, 13, 9651, 12020, 15758, 362, 2392, 7373, 877, 1184, 4752, 2796, 4712, 1818, 367, 1156, 1019, 4752, 7370, 4712, 8785, 13, 13, 1678, 822, 4078, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 4969, 353, 451, 1583, 29889, 20571, 13, 13, 4706, 565, 4969, 29901, 13, 9651, 2066, 353, 1583, 29889, 21111, 29918, 5325, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 5014, 29918, 1445, 29918, 1272, 29898, 1311, 29889, 689, 29918, 1272, 29897, 13, 13, 4706, 2428, 2141, 7620, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 4706, 565, 4969, 29901, 13, 9651, 1583, 29889, 5014, 29918, 1445, 29918, 1272, 29898, 5325, 29897, 13, 13, 1678, 822, 3863, 519, 29918, 1609, 29898, 1311, 29892, 1404, 1125, 13, 4706, 565, 1583, 29889, 5628, 519, 29901, 13, 9651, 736, 5852, 13, 13, 4706, 396, 28268, 369, 508, 3863, 372, 746, 896, 526, 2134, 1747, 13, 4706, 736, 1404, 29889, 275, 29918, 9961, 369, 322, 1583, 29889, 3068, 29918, 5675, 29918, 9961, 791, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3863, 519, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 4882, 451, 297, 313, 22412, 4717, 1783, 4214, 29892, 4810, 7428, 1806, 29911, 3352, 1125, 13, 9651, 736, 5852, 13, 13, 4706, 396, 3834, 650, 756, 23454, 278, 2060, 448, 2050, 372, 22822, 1550, 411, 8078, 292, 13, 4706, 565, 1583, 29889, 9961, 791, 29879, 29889, 9933, 7295, 13, 9651, 736, 7700, 13, 13, 4706, 396, 3834, 650, 1818, 3275, 278, 2060, 304, 1207, 3620, 13, 4706, 736, 1583, 29889, 280, 328, 322, 451, 1583, 29889, 275, 29918, 29113, 13, 13, 1678, 822, 679, 29918, 23552, 29918, 2271, 29898, 1311, 1125, 13, 4706, 565, 6055, 29889, 8618, 17637, 29903, 29918, 1430, 6181, 29928, 29901, 13, 9651, 736, 11837, 877, 7302, 29901, 16418, 29901, 16432, 742, 6389, 11759, 1311, 29889, 333, 2314, 13, 4706, 736, 16321, 29915, 13, 13, 1678, 732, 6799, 13, 1678, 822, 508, 29918, 5675, 29918, 9961, 791, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 275, 29918, 29113, 322, 1583, 29889, 4882, 1275, 4810, 7428, 1806, 29911, 3352, 13, 13, 1678, 822, 508, 29918, 3827, 29918, 27159, 292, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 10575, 591, 1510, 445, 8010, 29915, 29879, 5220, 292, 2908, 29973, 13, 4706, 9995, 13, 4706, 736, 1583, 29889, 4882, 297, 313, 6154, 3267, 4214, 29892, 2672, 29918, 8618, 29954, 26785, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 508, 29918, 6717, 29918, 1454, 29918, 9961, 791, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 399, 6794, 304, 24396, 278, 28235, 2134, 791, 2106, 13, 13, 4706, 1334, 1016, 29915, 29873, 864, 304, 24396, 263, 376, 29903, 296, 363, 28268, 791, 29908, 2106, 304, 278, 1095, 4911, 577, 13, 4706, 591, 10115, 372, 515, 278, 1857, 4660, 1641, 376, 1523, 4430, 29908, 322, 278, 8010, 13, 4706, 1641, 22822, 29889, 13, 4706, 9995, 13, 4706, 1959, 29918, 3859, 353, 1583, 29889, 4882, 1275, 4810, 7428, 1806, 29911, 3352, 322, 451, 1583, 29889, 275, 29918, 29113, 13, 4706, 736, 1959, 29918, 3859, 322, 1583, 29889, 1792, 29918, 5349, 29918, 21402, 29918, 14144, 13, 13, 1678, 732, 6799, 13, 1678, 822, 6858, 29918, 9961, 791, 29898, 1311, 1125, 13, 4706, 736, 451, 1583, 29889, 9961, 791, 29879, 29889, 9933, 580, 13, 13, 1678, 822, 679, 29918, 27259, 29918, 3225, 29918, 20683, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3617, 278, 1353, 310, 10701, 3734, 304, 5870, 1269, 10854, 10900, 29879, 9212, 13, 4706, 9995, 13, 4706, 396, 3917, 278, 1353, 310, 10701, 297, 1269, 7663, 5279, 13, 4706, 5923, 29918, 20683, 353, 10854, 10900, 29889, 12650, 29889, 4572, 29898, 4058, 300, 29918, 5325, 1649, 4836, 29922, 1311, 29897, 13, 4706, 6795, 353, 16250, 29889, 17779, 29898, 735, 15423, 29918, 20683, 29897, 13, 13, 4706, 396, 10987, 278, 4328, 1546, 278, 1857, 2302, 322, 13622, 2302, 13, 4706, 363, 7663, 297, 10854, 10900, 29889, 12650, 29889, 497, 7295, 13, 9651, 1857, 29918, 2798, 353, 6795, 29961, 7320, 29962, 13, 9651, 4328, 353, 7663, 29889, 276, 2055, 2760, 29918, 1195, 12539, 448, 1857, 29918, 2798, 13, 9651, 565, 4328, 1405, 29871, 29900, 29901, 13, 18884, 7709, 426, 13, 462, 1678, 525, 7320, 2396, 7663, 29892, 13, 462, 1678, 525, 29881, 17678, 2396, 4328, 29892, 13, 18884, 500, 13, 13, 1678, 732, 6799, 13, 1678, 822, 338, 29918, 262, 29918, 18035, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 4882, 1275, 2672, 29918, 8618, 29954, 26785, 13, 13, 1678, 732, 6799, 13, 1678, 822, 756, 29918, 6144, 2147, 1849, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 6144, 2147, 1849, 29889, 9933, 580, 13, 13, 1678, 396, 822, 3638, 29918, 517, 29918, 2388, 13036, 29898, 1311, 29892, 2009, 1125, 13, 1678, 396, 268, 9995, 3664, 1598, 3831, 13036, 1048, 445, 8010, 1213, 15945, 13, 13, 1678, 396, 268, 4473, 15109, 29898, 13, 1678, 396, 308, 22986, 1799, 10461, 29903, 29889, 29903, 3919, 29918, 4986, 29918, 21514, 5265, 23219, 29892, 13, 1678, 396, 308, 2009, 29922, 3827, 29892, 13, 1678, 396, 308, 1404, 29922, 3827, 29889, 1792, 29892, 13, 1678, 396, 308, 2752, 29922, 1311, 29892, 13, 1678, 396, 268, 1723, 13, 13, 1678, 396, 268, 1583, 29889, 18616, 29918, 517, 29918, 2388, 13036, 29918, 271, 353, 29431, 29889, 3707, 580, 13, 1678, 396, 268, 1583, 29889, 7620, 29898, 5504, 29918, 9621, 29922, 1839, 18616, 29918, 517, 29918, 2388, 13036, 29918, 271, 11287, 13, 13, 13, 29992, 9573, 29918, 26740, 13, 1990, 8010, 9585, 29898, 5160, 29020, 1125, 13, 1678, 752, 13036, 29918, 5269, 353, 4733, 29889, 15778, 703, 6843, 13036, 22608, 1159, 13, 1678, 27042, 29918, 14669, 29918, 12403, 353, 4733, 29889, 18146, 3073, 29898, 4381, 29922, 5574, 29897, 13, 13, 13, 1990, 28268, 791, 29898, 9794, 29889, 3195, 1125, 13, 1678, 2060, 353, 4733, 29889, 27755, 2558, 703, 7653, 613, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 9961, 791, 29879, 1159, 13, 1678, 491, 353, 4733, 29889, 27755, 2558, 29898, 11027, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 29892, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 9961, 791, 29879, 1159, 13, 13, 1678, 2825, 29918, 271, 353, 4733, 29889, 11384, 3073, 29898, 6921, 29918, 3707, 29918, 1202, 29922, 5574, 29897, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 5412, 29918, 29873, 12966, 353, 6024, 4836, 742, 525, 1609, 2033, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 903, 877, 2052, 307, 791, 310, 426, 4836, 29913, 491, 426, 1792, 29913, 2824, 4830, 29898, 4836, 29922, 1311, 29889, 4836, 29892, 1404, 29922, 1311, 29889, 1609, 29897, 13, 13, 13, 1990, 2866, 1461, 3010, 2697, 29898, 9794, 29889, 3010, 2697, 1125, 13, 1678, 822, 23454, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 4572, 29898, 275, 29918, 7433, 29922, 5574, 29892, 2134, 369, 1649, 275, 4304, 29922, 8824, 29897, 13, 13, 13, 1990, 2866, 1461, 29898, 9794, 29889, 3195, 1125, 13, 1678, 2134, 369, 353, 4733, 29889, 27755, 2558, 29898, 11027, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 9794, 29889, 10490, 29918, 10074, 29892, 4475, 29918, 978, 2433, 1285, 1461, 29879, 1495, 13, 1678, 2060, 353, 4733, 29889, 27755, 2558, 703, 7653, 613, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 1285, 1461, 29879, 1159, 13, 13, 1678, 934, 353, 4733, 29889, 2283, 3073, 29898, 9009, 29918, 517, 29922, 1285, 1461, 29918, 2084, 29892, 8635, 29922, 25207, 10486, 3101, 13, 13, 1678, 338, 29918, 7433, 353, 4733, 29889, 18146, 3073, 703, 10140, 287, 29973, 613, 2322, 29922, 8824, 29897, 13, 1678, 2825, 29918, 271, 353, 4733, 29889, 11384, 3073, 29898, 6921, 29918, 3707, 29918, 1202, 29922, 5574, 29897, 13, 1678, 23454, 29918, 271, 353, 4733, 29889, 11384, 3073, 29898, 4304, 29922, 5574, 29897, 13, 13, 1678, 3618, 353, 2866, 1461, 3010, 2697, 29889, 294, 29918, 12847, 580, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2106, 29898, 1311, 1125, 13, 4706, 736, 903, 877, 10140, 287, 1495, 565, 1583, 29889, 275, 29918, 7433, 1683, 903, 877, 25807, 12961, 1495, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 903, 877, 21263, 363, 426, 4836, 29913, 21313, 3859, 1800, 2824, 4830, 29898, 4836, 29922, 1311, 29889, 4836, 29892, 2106, 29922, 1311, 29889, 3859, 29897, 13, 13, 1678, 822, 679, 29918, 23552, 29918, 2271, 29898, 1311, 1125, 13, 4706, 736, 11837, 877, 7302, 29901, 16418, 29901, 1285, 1461, 742, 6389, 11759, 1311, 29889, 4836, 29889, 20571, 29892, 1583, 29889, 20571, 2314, 13, 13, 13, 1990, 18744, 300, 2283, 29898, 9794, 29889, 3195, 1125, 13, 1678, 7663, 353, 4733, 29889, 27755, 2558, 703, 6268, 10900, 613, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 4058, 300, 29918, 5325, 1159, 13, 1678, 2060, 353, 4733, 29889, 27755, 2558, 703, 7653, 613, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 4058, 300, 29918, 5325, 1159, 13, 13, 1678, 3611, 353, 4733, 29889, 15778, 580, 13, 1678, 1842, 353, 4733, 29889, 2283, 3073, 29898, 9009, 29918, 517, 29922, 3225, 29918, 2084, 29892, 8635, 29922, 25207, 10486, 3101, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 903, 877, 7653, 934, 29901, 426, 3257, 29913, 2824, 4830, 29898, 3257, 29922, 1311, 29889, 3257, 29897, 13, 13, 1678, 822, 679, 29918, 5992, 29918, 689, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 3617, 385, 13213, 630, 15154, 6268, 2500, 411, 445, 770, 408, 421, 8758, 1412, 13, 13, 4706, 910, 6511, 502, 304, 2048, 8871, 310, 278, 15154, 6268, 2500, 363, 1269, 13, 4706, 2777, 310, 18744, 300, 2283, 297, 278, 20382, 10701, 4472, 29889, 29871, 450, 13, 4706, 3918, 897, 1397, 630, 4533, 4972, 3732, 372, 5189, 304, 1653, 1438, 7190, 13, 4706, 297, 278, 1776, 470, 4472, 29889, 13, 539, 9995, 13, 4706, 515, 6317, 9514, 1053, 15154, 6268, 2500, 13, 4706, 736, 15154, 6268, 2500, 29898, 8758, 29922, 1311, 29897, 13, 13, 13, 29992, 13556, 2147, 29898, 2490, 29918, 8143, 29892, 10004, 29922, 16638, 300, 2283, 29897, 13, 1753, 5217, 29918, 4058, 300, 1445, 29918, 1445, 29898, 15452, 29892, 2777, 29892, 3579, 19290, 1125, 13, 1678, 396, 15154, 278, 934, 322, 1016, 29915, 29873, 4078, 278, 2967, 1904, 13, 1678, 2777, 29889, 3225, 29889, 8143, 29898, 8824, 29897, 13, 13, 13, 1990, 10854, 10900, 29898, 9794, 29889, 3195, 1125, 13, 1678, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29945, 29946, 29897, 13, 1678, 13622, 29918, 1195, 12539, 353, 4733, 29889, 9135, 3321, 7798, 3073, 580, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 978, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 20520, 353, 6702, 978, 742, 29897, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 525, 6268, 315, 14404, 29915, 13, 13, 13, 1990, 5556, 2147, 519, 29898, 9794, 29889, 3195, 1125, 13, 1678, 1024, 353, 4733, 29889, 15778, 580, 13, 1678, 3625, 29918, 517, 29918, 262, 14917, 353, 4733, 29889, 7798, 3073, 29898, 4381, 29922, 29896, 29897, 13, 1678, 5190, 29918, 9175, 353, 4733, 29889, 23307, 3073, 29898, 13, 4706, 4236, 29918, 7501, 1169, 29922, 29896, 29900, 29892, 13, 4706, 13677, 29918, 29886, 6048, 29922, 29906, 29892, 13, 4706, 2854, 4097, 11759, 8140, 1917, 24204, 29898, 7099, 3039, 29889, 23307, 877, 29900, 29889, 29900, 29896, 8785, 1402, 13, 1678, 1723, 13, 1678, 2060, 353, 4733, 29889, 27755, 2558, 29898, 13, 4706, 8010, 29892, 13, 4706, 1870, 29922, 5574, 29892, 9654, 29922, 5574, 29892, 13, 4706, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 13, 4706, 4475, 29918, 978, 2433, 6144, 2147, 1849, 29915, 13, 1678, 1723, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 978, 13, 2 ]
wraeblast/insights.py
darvid/wraeblast
26
178492
import collections.abc import enum import os from typing import ( TYPE_CHECKING, Annotated, Any, AsyncGenerator, Optional, Union, ) import aiohttp import inflection import numpy as np import pandas as pd import pydantic import structlog import uplink import uplink.converters from pandera.decorators import check_io, check_output from pandera.errors import SchemaError from pandera.model import SchemaModel from pandera.model_components import Field from pandera.typing import Series, String from wraeblast import constants, errors from wraeblast.filtering.elements import ItemFilter from wraeblast.filtering.parsers.extended import env if TYPE_CHECKING: import uplink.commands from wraeblast.filtering.parsers.extended import config logger = structlog.get_logger() QcutItemsType = list[tuple[pd.Interval, pd.DataFrame]] SingleInfluencedQcutItemsType = list[ tuple[tuple[tuple[str, ...], pd.Interval], pd.DataFrame] ] InsightsResultType = tuple[ Union["CurrencyType", "ItemType"], pd.DataFrame, ] InsightsType = Union["CurrencyType", "ItemType"] quantiles = { "quartile": 4, "quintile": 5, "decile": 10, "percentile": 100, } shard_names_to_orb_names = { "Transmutation Shard": "Orb of Transmutation", "Alteration Shard": "Orb of Alteration", "Alchemy Shard": "Orb of Alteration", "Annulment Shard": "Orb of Annulment", "Binding Shard": "Orb of Binding", "Horizon Shard": "Orb of Horizons", "Harbinger's Shard": "Harbinger's Orb", "Engineer's Shard": "Engineer's Orb", "Ancient Shard": "Ancient Orb", "Chaos Shard": "Chaos Orb", "Mirror Shard": "Mirror of Kalandra", "Exalted Shard": "Exalted Orb", "Regal Shard": "Regal Orb", } _cache = pd.HDFStore(os.getenv("WRAEBLAST_CACHE", "./.wbinsights.h5")) class InflectedEnumMixin(enum.Enum): @property def underscored_value(self) -> str: return inflection.underscore(self.value) @property def pluralized_underscored_value(self) -> str: return inflection.pluralize(self.underscored_value) class CurrencyType(InflectedEnumMixin, enum.Enum): CURRENCY = "Currency" FRAGMENT = "Fragment" class ItemType(InflectedEnumMixin, enum.Enum): ARTIFACT = "Artifact" BASE_TYPE = "BaseType" BEAST = "Beast" BLIGHTED_MAP = "BlightedMap" CLUSTER_JEWEL = "ClusterJewel" DELIRIUM_ORB = "DeliriumOrb" DIVINATION_CARD = "DivinationCard" ESSENCE = "Essence" FOSSIL = "Fossil" HELMET_ENCHANT = "HelmetEnchant" INCUBATOR = "Incubator" INVITATION = "Invitation" MAP = "Map" OIL = "Oil" PROPHECY = "Prophecy" RESONATOR = "Resonator" SCARAB = "Scarab" SKILL_GEM = "SkillGem" UNIQUE_ACCESSORY = "UniqueAccessory" UNIQUE_ARMOUR = "UniqueArmour" UNIQUE_FLASK = "UniqueFlask" UNIQUE_JEWEL = "UniqueJewel" UNIQUE_MAP = "UniqueMap" UNIQUE_WEAPON = "UniqueWeapon" VIAL = "Vial" WATCHSTONE = "Watchstone" @property def key_name(self) -> str: return inflection.pluralize(inflection.underscore(self.value)) @uplink.response_handler def raise_for_status(response): """Checks whether or not the response was successful.""" if 200 <= response.status_code < 300: return response raise errors.UnsuccessfulInsightsRequest( f"error {response.status_code}: {response.url}" ) def get_all_insights_types() -> list[InsightsType]: return [*CurrencyType, *ItemType] def get_display_value( chaos_value: float, exalted_exchange_value: int, round_down_by: int = 1, precision: int = 0, ) -> str: if chaos_value < exalted_exchange_value: if round_down_by: chaos_value = env.round_down(chaos_value, round_down_by) return f"{chaos_value}c" else: return f"{chaos_value / exalted_exchange_value:.{precision}f}ex" def get_insights_type_by_value(s: str) -> InsightsType: for t in get_all_insights_types(): if t.value == s: return t raise KeyError(s) def get_quantile_tuple(q: str) -> tuple[str, int]: if q.startswith("D"): return ("decile", int(q[1:])) elif q.startswith("P"): return ("percentile", int(q[1:])) elif q.startswith("QU"): return ("quintile", int(q[2:])) elif q.startswith("Q"): return ("quartile", int(q[1:])) else: raise RuntimeError(f"invalid quantile: {q}") async def get_economy_overview( league: str, client: "NinjaConsumer", type_: InsightsType, ) -> pd.DataFrame: """Request an economy overview from poe.ninja.""" if type_ in CurrencyType: meth = client.get_currency_overview elif type_ in ItemType: meth = client.get_item_overview else: raise RuntimeError() logger.info( "overview.get", client=".".join([client.__module__, client.__class__.__name__]), type=type_.value, ) return await meth(league=league, type=type_.value) # type: ignore async def get_dataframes( league: str, types: list[InsightsType], ) -> AsyncGenerator[InsightsResultType, None]: """Request all economy overviews from poe.ninja.""" logger.info("all_insights.get", league=league) session = aiohttp.ClientSession() client = uplink.AiohttpClient(session=session) ninja = NinjaConsumer( base_url=NinjaConsumer.default_base_url, client=client, ) for t in types: overview = await get_economy_overview( league=league, client=ninja, type_=t, ) yield (t, overview) await session.close() async def initialize_insights_cache( league: str, cache: Optional[pd.HDFStore] = None, no_sync: bool = False, ) -> pd.HDFStore: """Fetch and cache economy insights as needed.""" if cache is None: cache = _cache # log = logger.bind(league=league, cache_dir=cache.directory) log = logger.bind(league=league) log.info("cache.initialize", league=league) missing_dataframes = [] for t in get_all_insights_types(): try: df = cache.get(f"i_{t.value}") log.debug("cache.hit", type=t.value) except KeyError: log.debug("cache.miss", type=t.value) missing_dataframes.append(t) if missing_dataframes and no_sync: raise errors.WraeblastError("insights cache is incomplete") async for t, df in get_dataframes( league=league, types=missing_dataframes, ): log.info( "overview.response", lines=df.shape[0], type=t.value, ) cache.put(f"i_{t.value}", df, format="table") return cache async def initialize_filter_context( initialize_cache: bool = True, league: Optional[str] = None, cache: Optional[pd.HDFStore] = None, no_sync: bool = False, ) -> "ItemFilterContext": """Create an ``ItemFilterContext`` from cached economy data.""" if initialize_cache: if league is None: raise RuntimeError("league must be provided if initializing cache") cache = await initialize_insights_cache( league=league, cache=cache, no_sync=no_sync, ) elif cache is None: cache = _cache else: raise RuntimeError("cache not provided") economy_data = {} for t in get_all_insights_types(): overview = cache.get(f"i_{t.value}") economy_data[t.pluralized_underscored_value] = overview return ItemFilterContext(data=economy_data) def _parse_name_and_details_id( name: str, details_id: str ) -> tuple[Optional[int], tuple[constants.Influence, ...]]: tokens = details_id.split("-") ilvl_and_influences = tokens[name.count(" ") + name.count("-") + 1 :] try: return ( int(ilvl_and_influences[0]), tuple( constants.Influence(i.capitalize()) for i in ilvl_and_influences[1:] ), ) except (IndexError, ValueError): return (None, tuple()) def get_quantile_thresholds(df: pd.DataFrame) -> list[dict[str, float]]: groups = df.groupby(list(quantiles.keys()), as_index=False) return groups.agg({"chaos_value": "min"}).to_dict( # type: ignore "records" ) class NinjaCurrencyOverviewSchema(SchemaModel): currency_type_name: Series[String] chaos_equivalent: Series[float] details_id: Series[String] pay_id: Series[float] = Field(alias="pay.id", nullable=True) pay_league_id: Series[float] = Field(alias="pay.league_id", nullable=True) pay_pay_currency_id: Series[float] = Field( alias="pay.pay_currency_id", nullable=True ) pay_get_currency_id: Series[float] = Field( alias="pay.get_currency_id", nullable=True ) pay_sample_time_utc: Series[ Annotated[pd.DatetimeTZDtype, "ns", "utc"] ] = Field(alias="pay.sample_time_utc", coerce=True, nullable=True) pay_count: Series[float] = Field(alias="pay.count", nullable=True) pay_value: Series[float] = Field(alias="pay.value", nullable=True) pay_data_point_count: Series[float] = Field( alias="pay.data_point_count", ge=0, coerce=True, nullable=True ) pay_includes_secondary: Series[bool] = Field( alias="pay.includes_secondary", coerce=True, nullable=True ) pay_listing_count: Series[float] = Field( alias="pay.listing_count", coerce=True, nullable=True ) class NinjaItemOverviewSchema(SchemaModel): id: Series[int] name: Series[String] item_class: Series[int] flavour_text: Optional[Series[String]] chaos_value: Series[float] exalted_value: Series[float] count: Series[int] details_id: Series[String] # listing_count: Series[int] icon: Optional[Series[String]] = Field(nullable=True) base_type: Optional[Series[String]] = Field(nullable=True) gem_level: Optional[Series[float]] = Field(nullable=True) gem_quality: Optional[Series[float]] = Field(nullable=True) item_level: Optional[Series[float]] = Field(nullable=True) level_required: Optional[Series[float]] = Field(nullable=True) links: Optional[Series[float]] = Field(nullable=True) map_tier: Optional[Series[float]] = Field(nullable=True) stack_size: Optional[Series[float]] = Field(nullable=True) variant: Optional[Series[String]] = Field(nullable=True) class Config: coerce = True class ExtendedNinjaOverviewSchema(SchemaModel): item_name: Series[String] chaos_value: Series[float] alt_quality: Series[String] is_alt_quality: Series[bool] chaos_value: Series[float] chaos_value_log: Series[float] quartile: Series[int] quintile: Series[int] decile: Series[int] percentile: Series[int] base_type: Optional[Series[String]] = Field(nullable=True) gem_level: Optional[Series[float]] = Field(nullable=True) gem_quality: Optional[Series[float]] = Field(nullable=True) influences: Optional[Series[String]] = Field(nullable=True) level_required: Optional[Series[float]] = Field(nullable=True) links: Optional[Series[float]] = Field(nullable=True) map_tier: Optional[Series[float]] = Field(nullable=True) num_influences: Optional[Series[int]] = Field(nullable=True) orb_name: Optional[Series[String]] = Field(nullable=True) stack_size: Optional[Series[float]] = Field(nullable=True) uber_blight: Optional[Series[bool]] = Field(nullable=True) variant: Optional[Series[String]] = Field(nullable=True) class PostProcessedNinjaOverviewSchema(ExtendedNinjaOverviewSchema): exalted_value: Series[float] display_value: Series[String] @check_output(ExtendedNinjaOverviewSchema) def transform_ninja_df(df: pd.DataFrame) -> pd.DataFrame: currency_overview_schema = NinjaCurrencyOverviewSchema.to_schema() item_overview_schema = NinjaItemOverviewSchema.to_schema() is_currency_overview = False df = df.fillna(0) try: df = currency_overview_schema.validate(df) is_currency_overview = True except SchemaError as e: df = item_overview_schema.validate(df) if is_currency_overview: try: shards = [] for shard_name, orb_name in shard_names_to_orb_names.items(): if not df[df["currency_type_name"] == shard_name].empty: continue orb_value = ( df[df["currency_type_name"] == orb_name][ "chaos_equivalent" ].iloc[0] if orb_name != "Chaos Orb" else 1 ) shards.append( { "currency_type_name": shard_name, "chaos_equivalent": orb_value / 20, } ) df = df.append( shards, verify_integrity=True, sort=True, ignore_index=True, ) except IndexError: pass if "sparkline.data" in df.columns: df = df.loc[df["sparkline.data"].str.len() != 0] output = pd.DataFrame() output["item_name"] = ( df["currency_type_name"] if "currency_type_name" in df.columns else df["name"] ) if not is_currency_overview: output["scourged"] = output["item_name"].map( lambda name: name.startswith("Scourged") ) for label in ("currency_type_name", "skill_gem_name"): if label in df.columns: output["item_name"] = df[label] if "map_tier" in df.columns: output["uber_blight"] = df["name"].map( lambda name: name.startswith("Blight-ravaged") ) if ( "base_type" in df.columns and not df[ df["base_type"].str.contains("Cluster Jewel", na=False) ].empty ): try: output["cluster_jewel_enchantment"] = df["name"].map( lambda name: constants.get_cluster_jewel_passive(name).value ) output["cluster_jewel_passives_min"] = df["trade_info"].apply( lambda trade_info: [ ti for ti in trade_info if ti["mod"] == "enchant.stat_3086156145" ][0]["min"] ) output["cluster_jewel_passives_max"] = df["trade_info"].apply( lambda trade_info: [ ti for ti in trade_info if ti["mod"] == "enchant.stat_3086156145" ][0]["max"] ) output["cluster_jewel_passives"] = output[ "cluster_jewel_passives_min" ] except (KeyError, IndexError) as e: # TODO: Find a way to filter out unique cluster jewels better pass output["alt_quality"] = "" output["is_alt_quality"] = False alt_filter = ( output["item_name"].str.startswith("Anomalous") | output["item_name"].str.startswith("Divergent") | output["item_name"].str.startswith("Phantasmal") ) if not output[alt_filter].empty: output.loc[alt_filter, "is_alt_quality"] = True output.loc[alt_filter, "alt_quality"] = output["item_name"].apply( lambda s: s[: s.find(" ")], ) output.loc[alt_filter, "item_name"] = output["item_name"].apply( lambda s: s[s.find(" ") + 1 :], ) if "name" in df.columns and "details_id" in df.columns: output["influences"] = df.apply( lambda r: "/".join( i.value for i in _parse_name_and_details_id( str(r["name"]), str(r["details_id"]), )[1] ), axis=1, ) output["num_influences"] = ( df["variant"].str.count("/").fillna(0).astype(int) if "variant" in df.columns else 0 ) for column in ( "base_type", "level_required", "links", "gem_level", "gem_quality", "map_tier", "stack_size", ): if column in df.columns: output[column] = df[column] if column == "links": output[column] = output[column].fillna(0) output["chaos_value"] = ( df["chaos_equivalent"] if "chaos_equivalent" in df.columns else df["chaos_value"] ) # Normalized chaos values # XXX: since log(0) is -inf, the min chaos value of the dataframe replaces # rows with a chaos value of 0 min_chaos_value = output.loc[ output["chaos_value"] != 0, "chaos_value" ].min() output["chaos_value"].replace(0, min_chaos_value, inplace=True) # type: ignore output["chaos_value_log"] = np.log(output["chaos_value"]) # Pre-defined quantiles (quartiles, quintiles, percentiles) for label, q in quantiles.items(): labels = None if isinstance(q, (list, tuple)): q, labels = q output[label] = pd.qcut( output["chaos_value"].rank(method="first", numeric_only=True), q=q, labels=False if labels is None else None, precision=0, duplicates="drop", ) if labels is not None: output[label] = output[label].map(dict(enumerate(labels))) return output def json_normalize(data: dict[Any, Any]) -> pd.DataFrame: df = pd.json_normalize(data) df.columns = [inflection.underscore(c) for c in df.columns] return df @uplink.install class NinjaDataFrameFactory(uplink.converters.Factory): def create_response_body_converter(self, cls, request_definition): return lambda response: transform_ninja_df( df=json_normalize(response.json()["lines"]), ) uplink_retry = uplink.retry( when=uplink.retry.when.status(503) | uplink.retry.when.raises(Exception), stop=uplink.retry.stop.after_attempt(5) | uplink.retry.stop.after_delay(10), backoff=uplink.retry.backoff.jittered(multiplier=0.5), ) @raise_for_status @uplink_retry @uplink.returns.json @uplink.json @uplink.get def get_json() -> uplink.commands.RequestDefinitionBuilder: """Template for GET requests with JSON as both request and response.""" @raise_for_status @uplink_retry @uplink.get def get_dataframe() -> uplink.commands.RequestDefinitionBuilder: ... class NinjaConsumer(uplink.Consumer): default_base_url = "https://poe.ninja/api/data/" @uplink.ratelimit(calls=2, period=150) @get_dataframe("CurrencyOverview") # type: ignore def get_currency_overview( self, league: uplink.Query(type=str), # type: ignore type: uplink.Query(type=CurrencyType), # type: ignore ) -> pd.DataFrame: ... @uplink.ratelimit(calls=2, period=150) @get_dataframe("CurrencyHistory") # type: ignore def get_currency_history( self, league: uplink.Query(type=str), # type: ignore type: uplink.Query(type=CurrencyType), # type: ignore currency_id: uplink.Query("currencyId", type=int), # type: ignore ) -> pd.DataFrame: ... @uplink.ratelimit(calls=30, period=150) @get_dataframe("ItemOverview") # type: ignore def get_item_overview( self, league: uplink.Query(type=str), # type: ignore type: uplink.Query(type=ItemType), # type: ignore ) -> pd.DataFrame: ... class ItemFilterContext(pydantic.BaseModel): """Entrypoint for accessing economy data from poe.ninja.""" data: dict[str, pd.DataFrame] _exalted_value: int = pydantic.PrivateAttr(default=0) _quantile_thresholds: dict[ str, list[dict[str, float]] ] = pydantic.PrivateAttr(default_factory=list) class Config: arbitrary_types_allowed = True def __init__(self, **data) -> None: super().__init__(**data) self._exalted_value = self.data["currencies"][ self.data["currencies"].item_name == "Exalted Orb" ].iloc[0]["chaos_value"] self._quantile_thresholds = { k: get_quantile_thresholds(df) for k, df in self.data.items() } self.data = { k: self._post_process(k, df) for k, df in self.data.items() } def get_display_value( self, chaos_value: float, round_down_by: int = 1, precision: int = 0, ): return get_display_value( chaos_value=chaos_value, exalted_exchange_value=self._exalted_value, round_down_by=round_down_by, precision=precision, ) def get_quantiles_for_threshold( self, key: str, min_chaos_value: float, ) -> Optional[dict[str, float]]: for threshold in self._quantile_thresholds[key]: if threshold["chaos_value"] >= min_chaos_value: return threshold return self._quantile_thresholds[key][-1] @pydantic.validator("data") def data_must_contain_all_types( cls, v: dict[str, pd.DataFrame] ) -> dict[str, pd.DataFrame]: for type_ in [*CurrencyType, *ItemType]: if type_.pluralized_underscored_value not in v: raise ValueError(f"{type_} missing from filter context") return v @check_io( df=ExtendedNinjaOverviewSchema.to_schema(), out=PostProcessedNinjaOverviewSchema.to_schema(), ) def _post_process(self, key: str, df: pd.DataFrame) -> pd.DataFrame: df["exalted_value"] = df["chaos_value"].apply( lambda x: x / self._exalted_value ) df["display_value"] = df["chaos_value"].apply( lambda x: get_display_value( chaos_value=x, exalted_exchange_value=self._exalted_value, precision=2, ) ) return df
[ 1, 1053, 16250, 29889, 10736, 13, 5215, 14115, 13, 5215, 2897, 13, 3166, 19229, 1053, 313, 13, 1678, 323, 6959, 29918, 3210, 16658, 4214, 29892, 13, 1678, 530, 1333, 630, 29892, 13, 1678, 3139, 29892, 13, 1678, 20688, 21575, 29892, 13, 1678, 28379, 29892, 13, 1678, 7761, 29892, 13, 29897, 13, 13, 5215, 263, 601, 1124, 13, 5215, 3041, 1464, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 5215, 282, 2941, 7716, 13, 5215, 2281, 1188, 13, 5215, 318, 572, 682, 13, 5215, 318, 572, 682, 29889, 535, 369, 2153, 13, 3166, 282, 392, 1572, 29889, 19557, 4097, 1053, 1423, 29918, 601, 29892, 1423, 29918, 4905, 13, 3166, 282, 392, 1572, 29889, 12523, 1053, 1102, 2603, 2392, 13, 3166, 282, 392, 1572, 29889, 4299, 1053, 1102, 2603, 3195, 13, 3166, 282, 392, 1572, 29889, 4299, 29918, 14036, 1053, 8989, 13, 3166, 282, 392, 1572, 29889, 1017, 15702, 1053, 10488, 29892, 1714, 13, 13, 3166, 11463, 774, 4230, 1053, 17727, 29892, 4436, 13, 3166, 11463, 774, 4230, 29889, 4572, 292, 29889, 17664, 1053, 10976, 5072, 13, 3166, 11463, 774, 4230, 29889, 4572, 292, 29889, 862, 4253, 29889, 1062, 2760, 1053, 8829, 13, 13, 13, 361, 323, 6959, 29918, 3210, 16658, 4214, 29901, 13, 1678, 1053, 318, 572, 682, 29889, 26381, 13, 13, 1678, 515, 11463, 774, 4230, 29889, 4572, 292, 29889, 862, 4253, 29889, 1062, 2760, 1053, 2295, 13, 13, 13, 21707, 353, 2281, 1188, 29889, 657, 29918, 21707, 580, 13, 13, 13, 29984, 7582, 6913, 1542, 353, 1051, 29961, 23583, 29961, 15926, 29889, 12506, 29892, 10518, 29889, 17271, 5262, 13, 15771, 15403, 3837, 1133, 29984, 7582, 6913, 1542, 353, 1051, 29961, 13, 1678, 18761, 29961, 23583, 29961, 23583, 29961, 710, 29892, 2023, 1402, 10518, 29889, 12506, 1402, 10518, 29889, 17271, 29962, 13, 29962, 13, 797, 29879, 5861, 3591, 1542, 353, 18761, 29961, 13, 1678, 7761, 3366, 29907, 10880, 1542, 613, 376, 2001, 1542, 12436, 13, 1678, 10518, 29889, 17271, 29892, 13, 29962, 13, 797, 29879, 5861, 1542, 353, 7761, 3366, 29907, 10880, 1542, 613, 376, 2001, 1542, 3108, 13, 13, 12150, 5475, 353, 426, 13, 1678, 376, 339, 442, 488, 1115, 29871, 29946, 29892, 13, 1678, 376, 339, 524, 488, 1115, 29871, 29945, 29892, 13, 1678, 376, 311, 21873, 1115, 29871, 29896, 29900, 29892, 13, 1678, 376, 25376, 488, 1115, 29871, 29896, 29900, 29900, 29892, 13, 29913, 13, 845, 538, 29918, 7039, 29918, 517, 29918, 11831, 29918, 7039, 353, 426, 13, 1678, 376, 4300, 6149, 362, 1383, 538, 1115, 376, 2816, 29890, 310, 4103, 6149, 362, 613, 13, 1678, 376, 2499, 357, 362, 1383, 538, 1115, 376, 2816, 29890, 310, 20561, 362, 613, 13, 1678, 376, 2499, 305, 6764, 1383, 538, 1115, 376, 2816, 29890, 310, 20561, 362, 613, 13, 1678, 376, 2744, 29876, 352, 358, 1383, 538, 1115, 376, 2816, 29890, 310, 8081, 352, 358, 613, 13, 1678, 376, 9270, 1383, 538, 1115, 376, 2816, 29890, 310, 25799, 613, 13, 1678, 376, 17241, 18162, 1383, 538, 1115, 376, 2816, 29890, 310, 6912, 466, 787, 613, 13, 1678, 376, 21972, 29890, 5621, 29915, 29879, 1383, 538, 1115, 376, 21972, 29890, 5621, 29915, 29879, 1394, 29890, 613, 13, 1678, 376, 12412, 261, 29915, 29879, 1383, 538, 1115, 376, 12412, 261, 29915, 29879, 1394, 29890, 613, 13, 1678, 376, 2744, 15566, 1383, 538, 1115, 376, 2744, 15566, 1394, 29890, 613, 13, 1678, 376, 1451, 29874, 359, 1383, 538, 1115, 376, 1451, 29874, 359, 1394, 29890, 613, 13, 1678, 376, 29924, 381, 729, 1383, 538, 1115, 376, 29924, 381, 729, 310, 9172, 10738, 613, 13, 1678, 376, 1252, 1997, 287, 1383, 538, 1115, 376, 1252, 1997, 287, 1394, 29890, 613, 13, 1678, 376, 4597, 284, 1383, 538, 1115, 376, 4597, 284, 1394, 29890, 613, 13, 29913, 13, 13, 29918, 8173, 353, 10518, 29889, 29950, 4037, 9044, 29898, 359, 29889, 657, 6272, 703, 29956, 4717, 25752, 4375, 1254, 29918, 29907, 2477, 9606, 613, 11393, 6294, 29893, 29890, 1144, 5861, 29889, 29882, 29945, 5783, 13, 13, 13, 1990, 9969, 781, 287, 16854, 29924, 861, 262, 29898, 18605, 29889, 16854, 1125, 13, 1678, 732, 6799, 13, 1678, 822, 23400, 2616, 287, 29918, 1767, 29898, 1311, 29897, 1599, 851, 29901, 13, 4706, 736, 3041, 1464, 29889, 870, 414, 3221, 29898, 1311, 29889, 1767, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 715, 3631, 1891, 29918, 870, 414, 2616, 287, 29918, 1767, 29898, 1311, 29897, 1599, 851, 29901, 13, 4706, 736, 3041, 1464, 29889, 572, 3631, 675, 29898, 1311, 29889, 870, 414, 2616, 287, 29918, 1767, 29897, 13, 13, 13, 1990, 315, 10880, 1542, 29898, 25433, 781, 287, 16854, 29924, 861, 262, 29892, 14115, 29889, 16854, 1125, 13, 1678, 315, 4574, 29934, 1430, 29907, 29979, 353, 376, 29907, 10880, 29908, 13, 1678, 383, 4717, 29954, 13780, 353, 376, 8752, 29908, 13, 13, 13, 1990, 10976, 1542, 29898, 25433, 781, 287, 16854, 29924, 861, 262, 29892, 14115, 29889, 16854, 1125, 13, 1678, 9033, 24301, 4519, 1783, 353, 376, 9986, 7060, 29908, 13, 1678, 350, 8127, 29918, 11116, 353, 376, 5160, 1542, 29908, 13, 1678, 20700, 28938, 353, 376, 3629, 579, 29908, 13, 1678, 350, 5265, 29954, 3912, 3352, 29918, 23827, 353, 376, 29933, 4366, 287, 3388, 29908, 13, 1678, 17332, 17321, 1001, 29918, 29967, 29923, 29956, 6670, 353, 376, 6821, 5402, 29967, 809, 295, 29908, 13, 1678, 5012, 5265, 3960, 5005, 29918, 1955, 29933, 353, 376, 29928, 5037, 16241, 2816, 29890, 29908, 13, 1678, 360, 5667, 1177, 8098, 29918, 29907, 17011, 353, 376, 12596, 3381, 13200, 29908, 13, 1678, 382, 1799, 1430, 4741, 353, 376, 29923, 893, 663, 29908, 13, 1678, 18322, 1799, 6227, 353, 376, 29943, 2209, 309, 29908, 13, 1678, 379, 6670, 2303, 29911, 29918, 1430, 3210, 13566, 353, 376, 7658, 2527, 2369, 13775, 29908, 13, 1678, 2672, 29907, 7466, 1299, 1955, 353, 376, 797, 29883, 431, 1061, 29908, 13, 1678, 2672, 29963, 1806, 8098, 353, 376, 12165, 7018, 29908, 13, 1678, 341, 3301, 353, 376, 3388, 29908, 13, 1678, 438, 6227, 353, 376, 29949, 309, 29908, 13, 1678, 13756, 29925, 9606, 29907, 29979, 353, 376, 20420, 354, 1270, 29908, 13, 1678, 390, 2890, 1164, 1299, 1955, 353, 376, 1666, 265, 1061, 29908, 13, 1678, 12314, 1718, 2882, 353, 376, 29903, 4287, 370, 29908, 13, 1678, 18581, 24071, 29918, 1692, 29924, 353, 376, 15797, 453, 29954, 331, 29908, 13, 1678, 8291, 29902, 11144, 29918, 2477, 23524, 18929, 353, 376, 8110, 802, 6638, 706, 29908, 13, 1678, 8291, 29902, 11144, 29918, 1718, 6720, 4574, 353, 376, 8110, 802, 27429, 473, 29908, 13, 1678, 8291, 29902, 11144, 29918, 10536, 3289, 29968, 353, 376, 8110, 802, 8754, 1278, 29908, 13, 1678, 8291, 29902, 11144, 29918, 29967, 29923, 29956, 6670, 353, 376, 8110, 802, 29967, 809, 295, 29908, 13, 1678, 8291, 29902, 11144, 29918, 23827, 353, 376, 8110, 802, 3388, 29908, 13, 1678, 8291, 29902, 11144, 29918, 8851, 3301, 1164, 353, 376, 8110, 802, 4806, 481, 265, 29908, 13, 1678, 5473, 1964, 353, 376, 29963, 616, 29908, 13, 1678, 399, 14789, 1254, 12413, 353, 376, 24709, 12734, 29908, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1820, 29918, 978, 29898, 1311, 29897, 1599, 851, 29901, 13, 4706, 736, 3041, 1464, 29889, 572, 3631, 675, 29898, 7192, 1464, 29889, 870, 414, 3221, 29898, 1311, 29889, 1767, 876, 13, 13, 13, 29992, 29884, 572, 682, 29889, 5327, 29918, 13789, 13, 1753, 12020, 29918, 1454, 29918, 4882, 29898, 5327, 1125, 13, 1678, 9995, 5596, 29879, 3692, 470, 451, 278, 2933, 471, 9150, 1213, 15945, 13, 1678, 565, 29871, 29906, 29900, 29900, 5277, 2933, 29889, 4882, 29918, 401, 529, 29871, 29941, 29900, 29900, 29901, 13, 4706, 736, 2933, 13, 13, 1678, 12020, 4436, 29889, 25807, 29884, 1676, 1319, 797, 29879, 5861, 3089, 29898, 13, 4706, 285, 29908, 2704, 426, 5327, 29889, 4882, 29918, 401, 6177, 426, 5327, 29889, 2271, 5038, 13, 1678, 1723, 13, 13, 13, 1753, 679, 29918, 497, 29918, 1144, 5861, 29918, 8768, 580, 1599, 1051, 29961, 797, 29879, 5861, 1542, 5387, 13, 1678, 736, 518, 29930, 29907, 10880, 1542, 29892, 334, 2001, 1542, 29962, 13, 13, 13, 1753, 679, 29918, 4990, 29918, 1767, 29898, 13, 1678, 10329, 359, 29918, 1767, 29901, 5785, 29892, 13, 1678, 429, 1997, 287, 29918, 6543, 29918, 1767, 29901, 938, 29892, 13, 1678, 4513, 29918, 3204, 29918, 1609, 29901, 938, 353, 29871, 29896, 29892, 13, 1678, 16716, 29901, 938, 353, 29871, 29900, 29892, 13, 29897, 1599, 851, 29901, 13, 1678, 565, 10329, 359, 29918, 1767, 529, 429, 1997, 287, 29918, 6543, 29918, 1767, 29901, 13, 4706, 565, 4513, 29918, 3204, 29918, 1609, 29901, 13, 9651, 10329, 359, 29918, 1767, 353, 8829, 29889, 14486, 29918, 3204, 29898, 5815, 359, 29918, 1767, 29892, 4513, 29918, 3204, 29918, 1609, 29897, 13, 4706, 736, 285, 29908, 29912, 5815, 359, 29918, 1767, 29913, 29883, 29908, 13, 1678, 1683, 29901, 13, 4706, 736, 285, 29908, 29912, 5815, 359, 29918, 1767, 847, 429, 1997, 287, 29918, 6543, 29918, 1767, 29901, 29889, 29912, 17990, 2459, 29913, 29888, 29913, 735, 29908, 13, 13, 13, 1753, 679, 29918, 1144, 5861, 29918, 1853, 29918, 1609, 29918, 1767, 29898, 29879, 29901, 851, 29897, 1599, 13377, 5861, 1542, 29901, 13, 1678, 363, 260, 297, 679, 29918, 497, 29918, 1144, 5861, 29918, 8768, 7295, 13, 4706, 565, 260, 29889, 1767, 1275, 269, 29901, 13, 9651, 736, 260, 13, 1678, 12020, 7670, 2392, 29898, 29879, 29897, 13, 13, 13, 1753, 679, 29918, 12150, 488, 29918, 23583, 29898, 29939, 29901, 851, 29897, 1599, 18761, 29961, 710, 29892, 938, 5387, 13, 1678, 565, 3855, 29889, 27382, 2541, 703, 29928, 29908, 1125, 13, 4706, 736, 4852, 311, 21873, 613, 938, 29898, 29939, 29961, 29896, 29901, 12622, 13, 1678, 25342, 3855, 29889, 27382, 2541, 703, 29925, 29908, 1125, 13, 4706, 736, 4852, 25376, 488, 613, 938, 29898, 29939, 29961, 29896, 29901, 12622, 13, 1678, 25342, 3855, 29889, 27382, 2541, 703, 13356, 29908, 1125, 13, 4706, 736, 4852, 339, 524, 488, 613, 938, 29898, 29939, 29961, 29906, 29901, 12622, 13, 1678, 25342, 3855, 29889, 27382, 2541, 703, 29984, 29908, 1125, 13, 4706, 736, 4852, 339, 442, 488, 613, 938, 29898, 29939, 29961, 29896, 29901, 12622, 13, 1678, 1683, 29901, 13, 4706, 12020, 24875, 2392, 29898, 29888, 29908, 20965, 4323, 488, 29901, 426, 29939, 27195, 13, 13, 13, 12674, 822, 679, 29918, 29872, 4599, 29891, 29918, 957, 1493, 29898, 13, 1678, 13225, 29901, 851, 29892, 13, 1678, 3132, 29901, 376, 29940, 262, 1764, 13696, 4680, 613, 13, 1678, 1134, 29918, 29901, 13377, 5861, 1542, 29892, 13, 29897, 1599, 10518, 29889, 17271, 29901, 13, 1678, 9995, 3089, 385, 26504, 975, 1493, 515, 772, 29872, 29889, 29876, 262, 1764, 1213, 15945, 13, 1678, 565, 1134, 29918, 297, 315, 10880, 1542, 29901, 13, 4706, 286, 621, 353, 3132, 29889, 657, 29918, 26095, 29918, 957, 1493, 13, 1678, 25342, 1134, 29918, 297, 10976, 1542, 29901, 13, 4706, 286, 621, 353, 3132, 29889, 657, 29918, 667, 29918, 957, 1493, 13, 1678, 1683, 29901, 13, 4706, 12020, 24875, 2392, 580, 13, 1678, 17927, 29889, 3888, 29898, 13, 4706, 376, 957, 1493, 29889, 657, 613, 13, 4706, 3132, 543, 1213, 29889, 7122, 4197, 4645, 17255, 5453, 1649, 29892, 3132, 17255, 1990, 1649, 17255, 978, 1649, 11724, 13, 4706, 1134, 29922, 1853, 5396, 1767, 29892, 13, 1678, 1723, 13, 1678, 736, 7272, 286, 621, 29898, 280, 3437, 29922, 280, 3437, 29892, 1134, 29922, 1853, 5396, 1767, 29897, 29871, 396, 1134, 29901, 11455, 13, 13, 13, 12674, 822, 679, 29918, 1272, 19935, 29898, 13, 1678, 13225, 29901, 851, 29892, 13, 1678, 4072, 29901, 1051, 29961, 797, 29879, 5861, 1542, 1402, 13, 29897, 1599, 20688, 21575, 29961, 797, 29879, 5861, 3591, 1542, 29892, 6213, 5387, 13, 1678, 9995, 3089, 599, 26504, 975, 7406, 515, 772, 29872, 29889, 29876, 262, 1764, 1213, 15945, 13, 1678, 17927, 29889, 3888, 703, 497, 29918, 1144, 5861, 29889, 657, 613, 13225, 29922, 280, 3437, 29897, 13, 1678, 4867, 353, 263, 601, 1124, 29889, 4032, 7317, 580, 13, 1678, 3132, 353, 318, 572, 682, 29889, 29909, 601, 1124, 4032, 29898, 7924, 29922, 7924, 29897, 13, 1678, 17081, 1764, 353, 27960, 1764, 13696, 4680, 29898, 13, 4706, 2967, 29918, 2271, 29922, 29940, 262, 1764, 13696, 4680, 29889, 4381, 29918, 3188, 29918, 2271, 29892, 13, 4706, 3132, 29922, 4645, 29892, 13, 1678, 1723, 13, 1678, 363, 260, 297, 4072, 29901, 13, 4706, 975, 1493, 353, 7272, 679, 29918, 29872, 4599, 29891, 29918, 957, 1493, 29898, 13, 9651, 13225, 29922, 280, 3437, 29892, 13, 9651, 3132, 29922, 29876, 262, 1764, 29892, 13, 9651, 1134, 29918, 29922, 29873, 29892, 13, 4706, 1723, 13, 4706, 7709, 313, 29873, 29892, 975, 1493, 29897, 13, 1678, 7272, 4867, 29889, 5358, 580, 13, 13, 13, 12674, 822, 11905, 29918, 1144, 5861, 29918, 8173, 29898, 13, 1678, 13225, 29901, 851, 29892, 13, 1678, 7090, 29901, 28379, 29961, 15926, 29889, 29950, 4037, 9044, 29962, 353, 6213, 29892, 13, 1678, 694, 29918, 16593, 29901, 6120, 353, 7700, 29892, 13, 29897, 1599, 10518, 29889, 29950, 4037, 9044, 29901, 13, 1678, 9995, 20927, 322, 7090, 26504, 1663, 5861, 408, 4312, 1213, 15945, 13, 1678, 565, 7090, 338, 6213, 29901, 13, 4706, 7090, 353, 903, 8173, 13, 1678, 396, 1480, 353, 17927, 29889, 5355, 29898, 280, 3437, 29922, 280, 3437, 29892, 7090, 29918, 3972, 29922, 8173, 29889, 12322, 29897, 13, 1678, 1480, 353, 17927, 29889, 5355, 29898, 280, 3437, 29922, 280, 3437, 29897, 13, 1678, 1480, 29889, 3888, 703, 8173, 29889, 24926, 613, 13225, 29922, 280, 3437, 29897, 13, 1678, 4567, 29918, 1272, 19935, 353, 5159, 13, 1678, 363, 260, 297, 679, 29918, 497, 29918, 1144, 5861, 29918, 8768, 7295, 13, 4706, 1018, 29901, 13, 9651, 4489, 353, 7090, 29889, 657, 29898, 29888, 29908, 29875, 648, 29873, 29889, 1767, 27195, 13, 9651, 1480, 29889, 8382, 703, 8173, 29889, 27342, 613, 1134, 29922, 29873, 29889, 1767, 29897, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 1480, 29889, 8382, 703, 8173, 29889, 9894, 613, 1134, 29922, 29873, 29889, 1767, 29897, 13, 9651, 4567, 29918, 1272, 19935, 29889, 4397, 29898, 29873, 29897, 13, 1678, 565, 4567, 29918, 1272, 19935, 322, 694, 29918, 16593, 29901, 13, 4706, 12020, 4436, 29889, 29956, 336, 774, 4230, 2392, 703, 1144, 5861, 7090, 338, 28907, 1159, 13, 1678, 7465, 363, 260, 29892, 4489, 297, 679, 29918, 1272, 19935, 29898, 13, 4706, 13225, 29922, 280, 3437, 29892, 13, 4706, 4072, 29922, 27259, 29918, 1272, 19935, 29892, 13, 268, 1125, 13, 4706, 1480, 29889, 3888, 29898, 13, 9651, 376, 957, 1493, 29889, 5327, 613, 13, 9651, 3454, 29922, 2176, 29889, 12181, 29961, 29900, 1402, 13, 9651, 1134, 29922, 29873, 29889, 1767, 29892, 13, 4706, 1723, 13, 4706, 7090, 29889, 649, 29898, 29888, 29908, 29875, 648, 29873, 29889, 1767, 17671, 4489, 29892, 3402, 543, 2371, 1159, 13, 1678, 736, 7090, 13, 13, 13, 12674, 822, 11905, 29918, 4572, 29918, 4703, 29898, 13, 1678, 11905, 29918, 8173, 29901, 6120, 353, 5852, 29892, 13, 1678, 13225, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 1678, 7090, 29901, 28379, 29961, 15926, 29889, 29950, 4037, 9044, 29962, 353, 6213, 29892, 13, 1678, 694, 29918, 16593, 29901, 6120, 353, 7700, 29892, 13, 29897, 1599, 376, 2001, 5072, 2677, 1115, 13, 1678, 9995, 4391, 385, 4954, 2001, 5072, 2677, 16159, 515, 22152, 26504, 848, 1213, 15945, 13, 1678, 565, 11905, 29918, 8173, 29901, 13, 4706, 565, 13225, 338, 6213, 29901, 13, 9651, 12020, 24875, 2392, 703, 280, 3437, 1818, 367, 4944, 565, 2847, 5281, 7090, 1159, 13, 4706, 7090, 353, 7272, 11905, 29918, 1144, 5861, 29918, 8173, 29898, 13, 9651, 13225, 29922, 280, 3437, 29892, 13, 9651, 7090, 29922, 8173, 29892, 13, 9651, 694, 29918, 16593, 29922, 1217, 29918, 16593, 29892, 13, 4706, 1723, 13, 1678, 25342, 7090, 338, 6213, 29901, 13, 4706, 7090, 353, 903, 8173, 13, 1678, 1683, 29901, 13, 4706, 12020, 24875, 2392, 703, 8173, 451, 4944, 1159, 13, 1678, 26504, 29918, 1272, 353, 6571, 13, 1678, 363, 260, 297, 679, 29918, 497, 29918, 1144, 5861, 29918, 8768, 7295, 13, 4706, 975, 1493, 353, 7090, 29889, 657, 29898, 29888, 29908, 29875, 648, 29873, 29889, 1767, 27195, 13, 4706, 26504, 29918, 1272, 29961, 29873, 29889, 572, 3631, 1891, 29918, 870, 414, 2616, 287, 29918, 1767, 29962, 353, 975, 1493, 13, 1678, 736, 10976, 5072, 2677, 29898, 1272, 29922, 29872, 4599, 29891, 29918, 1272, 29897, 13, 13, 13, 1753, 903, 5510, 29918, 978, 29918, 392, 29918, 14144, 29918, 333, 29898, 13, 1678, 1024, 29901, 851, 29892, 4902, 29918, 333, 29901, 851, 13, 29897, 1599, 18761, 29961, 27636, 29961, 524, 1402, 18761, 29961, 3075, 1934, 29889, 15403, 29884, 663, 29892, 2023, 5262, 29901, 13, 1678, 18897, 353, 4902, 29918, 333, 29889, 5451, 703, 29899, 1159, 13, 1678, 980, 20901, 29918, 392, 29918, 13453, 29884, 2063, 353, 18897, 29961, 978, 29889, 2798, 703, 16521, 718, 1024, 29889, 2798, 703, 29899, 1159, 718, 29871, 29896, 584, 29962, 13, 1678, 1018, 29901, 13, 4706, 736, 313, 13, 9651, 938, 29898, 309, 20901, 29918, 392, 29918, 13453, 29884, 2063, 29961, 29900, 11724, 13, 9651, 18761, 29898, 13, 18884, 17727, 29889, 15403, 29884, 663, 29898, 29875, 29889, 5030, 2410, 675, 3101, 13, 18884, 363, 474, 297, 980, 20901, 29918, 392, 29918, 13453, 29884, 2063, 29961, 29896, 17531, 13, 9651, 10353, 13, 4706, 1723, 13, 1678, 5174, 313, 3220, 2392, 29892, 7865, 2392, 1125, 13, 4706, 736, 313, 8516, 29892, 18761, 3101, 13, 13, 13, 1753, 679, 29918, 12150, 488, 29918, 386, 3781, 3361, 29898, 2176, 29901, 10518, 29889, 17271, 29897, 1599, 1051, 29961, 8977, 29961, 710, 29892, 5785, 5262, 29901, 13, 1678, 6471, 353, 4489, 29889, 27789, 29898, 1761, 29898, 12150, 5475, 29889, 8149, 25739, 408, 29918, 2248, 29922, 8824, 29897, 13, 1678, 736, 6471, 29889, 16170, 3319, 29908, 5815, 359, 29918, 1767, 1115, 376, 1195, 29908, 7690, 517, 29918, 8977, 29898, 29871, 396, 1134, 29901, 11455, 13, 4706, 376, 3757, 4339, 29908, 13, 1678, 1723, 13, 13, 13, 1990, 27960, 1764, 29907, 10880, 3563, 1493, 12763, 29898, 12763, 3195, 1125, 13, 1678, 27550, 29918, 1853, 29918, 978, 29901, 10488, 29961, 1231, 29962, 13, 1678, 10329, 359, 29918, 1686, 27445, 29901, 10488, 29961, 7411, 29962, 13, 1678, 4902, 29918, 333, 29901, 10488, 29961, 1231, 29962, 13, 1678, 5146, 29918, 333, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 19973, 543, 10472, 29889, 333, 613, 1870, 519, 29922, 5574, 29897, 13, 1678, 5146, 29918, 280, 3437, 29918, 333, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 19973, 543, 10472, 29889, 280, 3437, 29918, 333, 613, 1870, 519, 29922, 5574, 29897, 13, 1678, 5146, 29918, 10472, 29918, 26095, 29918, 333, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 13, 4706, 13995, 543, 10472, 29889, 10472, 29918, 26095, 29918, 333, 613, 1870, 519, 29922, 5574, 13, 1678, 1723, 13, 1678, 5146, 29918, 657, 29918, 26095, 29918, 333, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 13, 4706, 13995, 543, 10472, 29889, 657, 29918, 26095, 29918, 333, 613, 1870, 519, 29922, 5574, 13, 1678, 1723, 13, 1678, 5146, 29918, 11249, 29918, 2230, 29918, 329, 29883, 29901, 10488, 29961, 13, 4706, 530, 1333, 630, 29961, 15926, 29889, 16390, 5410, 29911, 29999, 29928, 1853, 29892, 376, 1983, 613, 376, 329, 29883, 3108, 13, 1678, 4514, 353, 8989, 29898, 19973, 543, 10472, 29889, 11249, 29918, 2230, 29918, 329, 29883, 613, 1302, 261, 346, 29922, 5574, 29892, 1870, 519, 29922, 5574, 29897, 13, 1678, 5146, 29918, 2798, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 19973, 543, 10472, 29889, 2798, 613, 1870, 519, 29922, 5574, 29897, 13, 1678, 5146, 29918, 1767, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 19973, 543, 10472, 29889, 1767, 613, 1870, 519, 29922, 5574, 29897, 13, 1678, 5146, 29918, 1272, 29918, 3149, 29918, 2798, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 13, 4706, 13995, 543, 10472, 29889, 1272, 29918, 3149, 29918, 2798, 613, 1737, 29922, 29900, 29892, 1302, 261, 346, 29922, 5574, 29892, 1870, 519, 29922, 5574, 13, 1678, 1723, 13, 1678, 5146, 29918, 24572, 29918, 7496, 653, 29901, 10488, 29961, 11227, 29962, 353, 8989, 29898, 13, 4706, 13995, 543, 10472, 29889, 24572, 29918, 7496, 653, 613, 1302, 261, 346, 29922, 5574, 29892, 1870, 519, 29922, 5574, 13, 1678, 1723, 13, 1678, 5146, 29918, 1761, 292, 29918, 2798, 29901, 10488, 29961, 7411, 29962, 353, 8989, 29898, 13, 4706, 13995, 543, 10472, 29889, 1761, 292, 29918, 2798, 613, 1302, 261, 346, 29922, 5574, 29892, 1870, 519, 29922, 5574, 13, 1678, 1723, 13, 13, 13, 1990, 27960, 1764, 2001, 3563, 1493, 12763, 29898, 12763, 3195, 1125, 13, 1678, 1178, 29901, 10488, 29961, 524, 29962, 13, 1678, 1024, 29901, 10488, 29961, 1231, 29962, 13, 1678, 2944, 29918, 1990, 29901, 10488, 29961, 524, 29962, 13, 1678, 21054, 473, 29918, 726, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 13, 1678, 10329, 359, 29918, 1767, 29901, 10488, 29961, 7411, 29962, 13, 1678, 429, 1997, 287, 29918, 1767, 29901, 10488, 29961, 7411, 29962, 13, 1678, 2302, 29901, 10488, 29961, 524, 29962, 13, 1678, 4902, 29918, 333, 29901, 10488, 29961, 1231, 29962, 13, 1678, 396, 18028, 29918, 2798, 29901, 10488, 29961, 524, 29962, 13, 1678, 9849, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 2967, 29918, 1853, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 7055, 29918, 5563, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 7055, 29918, 29567, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 2944, 29918, 5563, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 3233, 29918, 12403, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 2988, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 2910, 29918, 29873, 631, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 5096, 29918, 2311, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 17305, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 13, 1678, 770, 12782, 29901, 13, 4706, 1302, 261, 346, 353, 5852, 13, 13, 13, 1990, 7338, 2760, 29940, 262, 1764, 3563, 1493, 12763, 29898, 12763, 3195, 1125, 13, 1678, 2944, 29918, 978, 29901, 10488, 29961, 1231, 29962, 13, 1678, 10329, 359, 29918, 1767, 29901, 10488, 29961, 7411, 29962, 13, 1678, 5272, 29918, 29567, 29901, 10488, 29961, 1231, 29962, 13, 1678, 338, 29918, 1997, 29918, 29567, 29901, 10488, 29961, 11227, 29962, 13, 1678, 10329, 359, 29918, 1767, 29901, 10488, 29961, 7411, 29962, 13, 1678, 10329, 359, 29918, 1767, 29918, 1188, 29901, 10488, 29961, 7411, 29962, 13, 1678, 10256, 488, 29901, 10488, 29961, 524, 29962, 13, 1678, 439, 524, 488, 29901, 10488, 29961, 524, 29962, 13, 1678, 316, 21873, 29901, 10488, 29961, 524, 29962, 13, 1678, 10151, 488, 29901, 10488, 29961, 524, 29962, 13, 1678, 2967, 29918, 1853, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 7055, 29918, 5563, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 7055, 29918, 29567, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 7112, 2063, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 3233, 29918, 12403, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 2988, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 2910, 29918, 29873, 631, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 954, 29918, 13453, 29884, 2063, 29901, 28379, 29961, 19204, 29961, 524, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 19528, 29918, 978, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 5096, 29918, 2311, 29901, 28379, 29961, 19204, 29961, 7411, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 318, 495, 29918, 2204, 523, 29901, 28379, 29961, 19204, 29961, 11227, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 1678, 17305, 29901, 28379, 29961, 19204, 29961, 1231, 5262, 353, 8989, 29898, 4304, 519, 29922, 5574, 29897, 13, 13, 13, 1990, 4918, 7032, 287, 29940, 262, 1764, 3563, 1493, 12763, 29898, 5647, 2760, 29940, 262, 1764, 3563, 1493, 12763, 1125, 13, 1678, 429, 1997, 287, 29918, 1767, 29901, 10488, 29961, 7411, 29962, 13, 1678, 2479, 29918, 1767, 29901, 10488, 29961, 1231, 29962, 13, 13, 13, 29992, 3198, 29918, 4905, 29898, 5647, 2760, 29940, 262, 1764, 3563, 1493, 12763, 29897, 13, 1753, 4327, 29918, 29876, 262, 1764, 29918, 2176, 29898, 2176, 29901, 10518, 29889, 17271, 29897, 1599, 10518, 29889, 17271, 29901, 13, 1678, 27550, 29918, 957, 1493, 29918, 11010, 353, 27960, 1764, 29907, 10880, 3563, 1493, 12763, 29889, 517, 29918, 11010, 580, 13, 1678, 2944, 29918, 957, 1493, 29918, 11010, 353, 27960, 1764, 2001, 3563, 1493, 12763, 29889, 517, 29918, 11010, 580, 13, 1678, 338, 29918, 26095, 29918, 957, 1493, 353, 7700, 13, 13, 1678, 4489, 353, 4489, 29889, 5589, 1056, 29898, 29900, 29897, 13, 13, 1678, 1018, 29901, 13, 4706, 4489, 353, 27550, 29918, 957, 1493, 29918, 11010, 29889, 15480, 29898, 2176, 29897, 13, 4706, 338, 29918, 26095, 29918, 957, 1493, 353, 5852, 13, 1678, 5174, 1102, 2603, 2392, 408, 321, 29901, 13, 4706, 4489, 353, 2944, 29918, 957, 1493, 29918, 11010, 29889, 15480, 29898, 2176, 29897, 13, 13, 1678, 565, 338, 29918, 26095, 29918, 957, 1493, 29901, 13, 4706, 1018, 29901, 13, 9651, 528, 3163, 353, 5159, 13, 9651, 363, 528, 538, 29918, 978, 29892, 19528, 29918, 978, 297, 528, 538, 29918, 7039, 29918, 517, 29918, 11831, 29918, 7039, 29889, 7076, 7295, 13, 18884, 565, 451, 4489, 29961, 2176, 3366, 26095, 29918, 1853, 29918, 978, 3108, 1275, 528, 538, 29918, 978, 1822, 6310, 29901, 13, 462, 1678, 6773, 13, 18884, 19528, 29918, 1767, 353, 313, 13, 462, 1678, 4489, 29961, 2176, 3366, 26095, 29918, 1853, 29918, 978, 3108, 1275, 19528, 29918, 978, 3816, 13, 462, 4706, 376, 5815, 359, 29918, 1686, 27445, 29908, 13, 462, 268, 1822, 309, 542, 29961, 29900, 29962, 13, 462, 1678, 565, 19528, 29918, 978, 2804, 376, 1451, 29874, 359, 1394, 29890, 29908, 13, 462, 1678, 1683, 29871, 29896, 13, 18884, 1723, 13, 18884, 528, 3163, 29889, 4397, 29898, 13, 462, 1678, 426, 13, 462, 4706, 376, 26095, 29918, 1853, 29918, 978, 1115, 528, 538, 29918, 978, 29892, 13, 462, 4706, 376, 5815, 359, 29918, 1686, 27445, 1115, 19528, 29918, 1767, 847, 29871, 29906, 29900, 29892, 13, 462, 1678, 500, 13, 18884, 1723, 13, 9651, 4489, 353, 4489, 29889, 4397, 29898, 13, 18884, 528, 3163, 29892, 13, 18884, 11539, 29918, 14146, 537, 29922, 5574, 29892, 13, 18884, 2656, 29922, 5574, 29892, 13, 18884, 11455, 29918, 2248, 29922, 5574, 29892, 13, 9651, 1723, 13, 4706, 5174, 11374, 2392, 29901, 13, 9651, 1209, 13, 13, 1678, 565, 376, 12597, 1220, 29889, 1272, 29908, 297, 4489, 29889, 13099, 29901, 13, 4706, 4489, 353, 4489, 29889, 2029, 29961, 2176, 3366, 12597, 1220, 29889, 1272, 16862, 710, 29889, 2435, 580, 2804, 29871, 29900, 29962, 13, 13, 1678, 1962, 353, 10518, 29889, 17271, 580, 13, 1678, 1962, 3366, 667, 29918, 978, 3108, 353, 313, 13, 4706, 4489, 3366, 26095, 29918, 1853, 29918, 978, 3108, 13, 4706, 565, 376, 26095, 29918, 1853, 29918, 978, 29908, 297, 4489, 29889, 13099, 13, 4706, 1683, 4489, 3366, 978, 3108, 13, 1678, 1723, 13, 1678, 565, 451, 338, 29918, 26095, 29918, 957, 1493, 29901, 13, 4706, 1962, 3366, 1557, 473, 3192, 3108, 353, 1962, 3366, 667, 29918, 978, 16862, 1958, 29898, 13, 9651, 14013, 1024, 29901, 1024, 29889, 27382, 2541, 703, 4421, 473, 3192, 1159, 13, 4706, 1723, 13, 1678, 363, 3858, 297, 4852, 26095, 29918, 1853, 29918, 978, 613, 376, 808, 453, 29918, 17797, 29918, 978, 29908, 1125, 13, 4706, 565, 3858, 297, 4489, 29889, 13099, 29901, 13, 9651, 1962, 3366, 667, 29918, 978, 3108, 353, 4489, 29961, 1643, 29962, 13, 13, 1678, 565, 376, 1958, 29918, 29873, 631, 29908, 297, 4489, 29889, 13099, 29901, 13, 4706, 1962, 3366, 11234, 29918, 2204, 523, 3108, 353, 4489, 3366, 978, 16862, 1958, 29898, 13, 9651, 14013, 1024, 29901, 1024, 29889, 27382, 2541, 703, 29933, 4366, 29899, 5705, 4063, 1159, 13, 4706, 1723, 13, 13, 1678, 565, 313, 13, 4706, 376, 3188, 29918, 1853, 29908, 297, 4489, 29889, 13099, 13, 4706, 322, 451, 4489, 29961, 13, 9651, 4489, 3366, 3188, 29918, 1853, 16862, 710, 29889, 11516, 703, 6821, 5402, 9576, 295, 613, 1055, 29922, 8824, 29897, 13, 308, 1822, 6310, 13, 268, 1125, 13, 4706, 1018, 29901, 13, 9651, 1962, 3366, 19594, 29918, 29926, 809, 295, 29918, 264, 13775, 358, 3108, 353, 4489, 3366, 978, 16862, 1958, 29898, 13, 18884, 14013, 1024, 29901, 17727, 29889, 657, 29918, 19594, 29918, 29926, 809, 295, 29918, 3364, 573, 29898, 978, 467, 1767, 13, 9651, 1723, 13, 9651, 1962, 3366, 19594, 29918, 29926, 809, 295, 29918, 3364, 3145, 29918, 1195, 3108, 353, 4489, 3366, 3018, 311, 29918, 3888, 16862, 7302, 29898, 13, 18884, 14013, 11302, 29918, 3888, 29901, 518, 13, 462, 1678, 19538, 13, 462, 1678, 363, 19538, 297, 11302, 29918, 3888, 13, 462, 1678, 565, 19538, 3366, 1545, 3108, 1275, 376, 264, 13775, 29889, 6112, 29918, 29941, 29900, 29947, 29953, 29896, 29945, 29953, 29896, 29946, 29945, 29908, 13, 462, 3816, 29900, 29962, 3366, 1195, 3108, 13, 9651, 1723, 13, 9651, 1962, 3366, 19594, 29918, 29926, 809, 295, 29918, 3364, 3145, 29918, 3317, 3108, 353, 4489, 3366, 3018, 311, 29918, 3888, 16862, 7302, 29898, 13, 18884, 14013, 11302, 29918, 3888, 29901, 518, 13, 462, 1678, 19538, 13, 462, 1678, 363, 19538, 297, 11302, 29918, 3888, 13, 462, 1678, 565, 19538, 3366, 1545, 3108, 1275, 376, 264, 13775, 29889, 6112, 29918, 29941, 29900, 29947, 29953, 29896, 29945, 29953, 29896, 29946, 29945, 29908, 13, 462, 3816, 29900, 29962, 3366, 3317, 3108, 13, 9651, 1723, 13, 9651, 1962, 3366, 19594, 29918, 29926, 809, 295, 29918, 3364, 3145, 3108, 353, 1962, 29961, 13, 18884, 376, 19594, 29918, 29926, 809, 295, 29918, 3364, 3145, 29918, 1195, 29908, 13, 9651, 4514, 13, 4706, 5174, 313, 2558, 2392, 29892, 11374, 2392, 29897, 408, 321, 29901, 13, 9651, 396, 14402, 29901, 10987, 263, 982, 304, 4175, 714, 5412, 9867, 432, 809, 1379, 2253, 13, 9651, 1209, 13, 13, 1678, 1962, 3366, 1997, 29918, 29567, 3108, 353, 5124, 13, 1678, 1962, 3366, 275, 29918, 1997, 29918, 29567, 3108, 353, 7700, 13, 1678, 5272, 29918, 4572, 353, 313, 13, 4706, 1962, 3366, 667, 29918, 978, 16862, 710, 29889, 27382, 2541, 703, 2744, 290, 20521, 1159, 13, 4706, 891, 1962, 3366, 667, 29918, 978, 16862, 710, 29889, 27382, 2541, 703, 29928, 2147, 5362, 1159, 13, 4706, 891, 1962, 3366, 667, 29918, 978, 16862, 710, 29889, 27382, 2541, 703, 4819, 424, 294, 5156, 1159, 13, 1678, 1723, 13, 1678, 565, 451, 1962, 29961, 1997, 29918, 4572, 1822, 6310, 29901, 13, 4706, 1962, 29889, 2029, 29961, 1997, 29918, 4572, 29892, 376, 275, 29918, 1997, 29918, 29567, 3108, 353, 5852, 13, 4706, 1962, 29889, 2029, 29961, 1997, 29918, 4572, 29892, 376, 1997, 29918, 29567, 3108, 353, 1962, 3366, 667, 29918, 978, 16862, 7302, 29898, 13, 9651, 14013, 269, 29901, 269, 7503, 269, 29889, 2886, 703, 16521, 1402, 13, 4706, 1723, 13, 4706, 1962, 29889, 2029, 29961, 1997, 29918, 4572, 29892, 376, 667, 29918, 978, 3108, 353, 1962, 3366, 667, 29918, 978, 16862, 7302, 29898, 13, 9651, 14013, 269, 29901, 269, 29961, 29879, 29889, 2886, 703, 16521, 718, 29871, 29896, 584, 1402, 13, 4706, 1723, 13, 13, 1678, 565, 376, 978, 29908, 297, 4489, 29889, 13099, 322, 376, 14144, 29918, 333, 29908, 297, 4489, 29889, 13099, 29901, 13, 4706, 1962, 3366, 13453, 29884, 2063, 3108, 353, 4489, 29889, 7302, 29898, 13, 9651, 14013, 364, 29901, 5591, 1642, 7122, 29898, 13, 18884, 474, 29889, 1767, 13, 18884, 363, 474, 297, 903, 5510, 29918, 978, 29918, 392, 29918, 14144, 29918, 333, 29898, 13, 462, 1678, 851, 29898, 29878, 3366, 978, 3108, 511, 13, 462, 1678, 851, 29898, 29878, 3366, 14144, 29918, 333, 3108, 511, 13, 18884, 1723, 29961, 29896, 29962, 13, 9651, 10353, 13, 9651, 9685, 29922, 29896, 29892, 13, 4706, 1723, 13, 4706, 1962, 3366, 1949, 29918, 13453, 29884, 2063, 3108, 353, 313, 13, 9651, 4489, 3366, 19365, 16862, 710, 29889, 2798, 11974, 2564, 5589, 1056, 29898, 29900, 467, 579, 668, 29898, 524, 29897, 13, 9651, 565, 376, 19365, 29908, 297, 4489, 29889, 13099, 13, 9651, 1683, 29871, 29900, 13, 4706, 1723, 13, 13, 1678, 363, 1897, 297, 313, 13, 4706, 376, 3188, 29918, 1853, 613, 13, 4706, 376, 5563, 29918, 12403, 613, 13, 4706, 376, 4965, 613, 13, 4706, 376, 17797, 29918, 5563, 613, 13, 4706, 376, 17797, 29918, 29567, 613, 13, 4706, 376, 1958, 29918, 29873, 631, 613, 13, 4706, 376, 1429, 29918, 2311, 613, 13, 268, 1125, 13, 4706, 565, 1897, 297, 4489, 29889, 13099, 29901, 13, 9651, 1962, 29961, 4914, 29962, 353, 4489, 29961, 4914, 29962, 13, 9651, 565, 1897, 1275, 376, 4965, 1115, 13, 18884, 1962, 29961, 4914, 29962, 353, 1962, 29961, 4914, 1822, 5589, 1056, 29898, 29900, 29897, 13, 13, 1678, 1962, 3366, 5815, 359, 29918, 1767, 3108, 353, 313, 13, 4706, 4489, 3366, 5815, 359, 29918, 1686, 27445, 3108, 13, 4706, 565, 376, 5815, 359, 29918, 1686, 27445, 29908, 297, 4489, 29889, 13099, 13, 4706, 1683, 4489, 3366, 5815, 359, 29918, 1767, 3108, 13, 1678, 1723, 13, 1678, 396, 21981, 1891, 10329, 359, 1819, 13, 1678, 396, 22615, 29901, 1951, 1480, 29898, 29900, 29897, 338, 448, 7192, 29892, 278, 1375, 10329, 359, 995, 310, 278, 12205, 1634, 6048, 13, 1678, 396, 4206, 411, 263, 10329, 359, 995, 310, 29871, 29900, 13, 1678, 1375, 29918, 5815, 359, 29918, 1767, 353, 1962, 29889, 2029, 29961, 13, 4706, 1962, 3366, 5815, 359, 29918, 1767, 3108, 2804, 29871, 29900, 29892, 376, 5815, 359, 29918, 1767, 29908, 13, 268, 1822, 1195, 580, 13, 1678, 1962, 3366, 5815, 359, 29918, 1767, 16862, 6506, 29898, 29900, 29892, 1375, 29918, 5815, 359, 29918, 1767, 29892, 297, 6689, 29922, 5574, 29897, 29871, 396, 1134, 29901, 11455, 13, 1678, 1962, 3366, 5815, 359, 29918, 1767, 29918, 1188, 3108, 353, 7442, 29889, 1188, 29898, 4905, 3366, 5815, 359, 29918, 1767, 20068, 13, 13, 1678, 396, 4721, 29899, 12119, 4323, 5475, 313, 339, 442, 5475, 29892, 439, 524, 5475, 29892, 10151, 5475, 29897, 13, 1678, 363, 3858, 29892, 3855, 297, 4323, 5475, 29889, 7076, 7295, 13, 4706, 11073, 353, 6213, 13, 4706, 565, 338, 8758, 29898, 29939, 29892, 313, 1761, 29892, 18761, 22164, 13, 9651, 3855, 29892, 11073, 353, 3855, 13, 4706, 1962, 29961, 1643, 29962, 353, 10518, 29889, 29939, 7582, 29898, 13, 9651, 1962, 3366, 5815, 359, 29918, 1767, 16862, 10003, 29898, 5696, 543, 4102, 613, 16985, 29918, 6194, 29922, 5574, 511, 13, 9651, 3855, 29922, 29939, 29892, 13, 9651, 11073, 29922, 8824, 565, 11073, 338, 6213, 1683, 6213, 29892, 13, 9651, 16716, 29922, 29900, 29892, 13, 9651, 20955, 543, 8865, 613, 13, 4706, 1723, 13, 4706, 565, 11073, 338, 451, 6213, 29901, 13, 9651, 1962, 29961, 1643, 29962, 353, 1962, 29961, 1643, 1822, 1958, 29898, 8977, 29898, 15172, 29898, 21134, 4961, 13, 1678, 736, 1962, 13, 13, 13, 1753, 4390, 29918, 8945, 675, 29898, 1272, 29901, 9657, 29961, 10773, 29892, 3139, 2314, 1599, 10518, 29889, 17271, 29901, 13, 1678, 4489, 353, 10518, 29889, 3126, 29918, 8945, 675, 29898, 1272, 29897, 13, 1678, 4489, 29889, 13099, 353, 518, 7192, 1464, 29889, 870, 414, 3221, 29898, 29883, 29897, 363, 274, 297, 4489, 29889, 13099, 29962, 13, 1678, 736, 4489, 13, 13, 13, 29992, 29884, 572, 682, 29889, 6252, 13, 1990, 27960, 1764, 17271, 5126, 29898, 29884, 572, 682, 29889, 535, 369, 2153, 29889, 5126, 1125, 13, 1678, 822, 1653, 29918, 5327, 29918, 2587, 29918, 535, 13549, 29898, 1311, 29892, 1067, 29879, 29892, 2009, 29918, 16553, 1125, 13, 4706, 736, 14013, 2933, 29901, 4327, 29918, 29876, 262, 1764, 29918, 2176, 29898, 13, 9651, 4489, 29922, 3126, 29918, 8945, 675, 29898, 5327, 29889, 3126, 580, 3366, 9012, 3108, 511, 13, 4706, 1723, 13, 13, 13, 29884, 572, 682, 29918, 276, 2202, 353, 318, 572, 682, 29889, 276, 2202, 29898, 13, 1678, 746, 29922, 29884, 572, 682, 29889, 276, 2202, 29889, 8256, 29889, 4882, 29898, 29945, 29900, 29941, 29897, 891, 318, 572, 682, 29889, 276, 2202, 29889, 8256, 29889, 336, 4637, 29898, 2451, 511, 13, 1678, 5040, 29922, 29884, 572, 682, 29889, 276, 2202, 29889, 9847, 29889, 7045, 29918, 1131, 3456, 29898, 29945, 29897, 13, 1678, 891, 318, 572, 682, 29889, 276, 2202, 29889, 9847, 29889, 7045, 29918, 18829, 29898, 29896, 29900, 511, 13, 1678, 1250, 2696, 29922, 29884, 572, 682, 29889, 276, 2202, 29889, 1627, 2696, 29889, 29926, 5171, 287, 29898, 18056, 4926, 29922, 29900, 29889, 29945, 511, 13, 29897, 13, 13, 13, 29992, 22692, 29918, 1454, 29918, 4882, 13, 29992, 29884, 572, 682, 29918, 276, 2202, 13, 29992, 29884, 572, 682, 29889, 18280, 29889, 3126, 13, 29992, 29884, 572, 682, 29889, 3126, 13, 29992, 29884, 572, 682, 29889, 657, 13, 1753, 679, 29918, 3126, 580, 1599, 318, 572, 682, 29889, 26381, 29889, 3089, 14683, 5627, 29901, 13, 1678, 9995, 6733, 363, 12354, 7274, 411, 4663, 408, 1716, 2009, 322, 2933, 1213, 15945, 13, 13, 13, 29992, 22692, 29918, 1454, 29918, 4882, 13, 29992, 29884, 572, 682, 29918, 276, 2202, 13, 29992, 29884, 572, 682, 29889, 657, 13, 1753, 679, 29918, 1272, 2557, 580, 1599, 318, 572, 682, 29889, 26381, 29889, 3089, 14683, 5627, 29901, 13, 1678, 2023, 13, 13, 13, 1990, 27960, 1764, 13696, 4680, 29898, 29884, 572, 682, 29889, 13696, 4680, 1125, 13, 1678, 2322, 29918, 3188, 29918, 2271, 353, 376, 991, 597, 1129, 29872, 29889, 29876, 262, 1764, 29914, 2754, 29914, 1272, 12975, 13, 13, 1678, 732, 29884, 572, 682, 29889, 3605, 295, 13083, 29898, 29883, 4293, 29922, 29906, 29892, 3785, 29922, 29896, 29945, 29900, 29897, 13, 1678, 732, 657, 29918, 1272, 2557, 703, 29907, 10880, 3563, 1493, 1159, 29871, 396, 1134, 29901, 11455, 13, 1678, 822, 679, 29918, 26095, 29918, 957, 1493, 29898, 13, 4706, 1583, 29892, 13, 4706, 13225, 29901, 318, 572, 682, 29889, 3010, 29898, 1853, 29922, 710, 511, 29871, 396, 1134, 29901, 11455, 13, 4706, 1134, 29901, 318, 572, 682, 29889, 3010, 29898, 1853, 29922, 29907, 10880, 1542, 511, 29871, 396, 1134, 29901, 11455, 13, 1678, 1723, 1599, 10518, 29889, 17271, 29901, 13, 4706, 2023, 13, 13, 1678, 732, 29884, 572, 682, 29889, 3605, 295, 13083, 29898, 29883, 4293, 29922, 29906, 29892, 3785, 29922, 29896, 29945, 29900, 29897, 13, 1678, 732, 657, 29918, 1272, 2557, 703, 29907, 10880, 20570, 1159, 29871, 396, 1134, 29901, 11455, 13, 1678, 822, 679, 29918, 26095, 29918, 18434, 29898, 13, 4706, 1583, 29892, 13, 4706, 13225, 29901, 318, 572, 682, 29889, 3010, 29898, 1853, 29922, 710, 511, 29871, 396, 1134, 29901, 11455, 13, 4706, 1134, 29901, 318, 572, 682, 29889, 3010, 29898, 1853, 29922, 29907, 10880, 1542, 511, 29871, 396, 1134, 29901, 11455, 13, 4706, 27550, 29918, 333, 29901, 318, 572, 682, 29889, 3010, 703, 26095, 1204, 613, 1134, 29922, 524, 511, 29871, 396, 1134, 29901, 11455, 13, 1678, 1723, 1599, 10518, 29889, 17271, 29901, 13, 4706, 2023, 13, 13, 1678, 732, 29884, 572, 682, 29889, 3605, 295, 13083, 29898, 29883, 4293, 29922, 29941, 29900, 29892, 3785, 29922, 29896, 29945, 29900, 29897, 13, 1678, 732, 657, 29918, 1272, 2557, 703, 2001, 3563, 1493, 1159, 29871, 396, 1134, 29901, 11455, 13, 1678, 822, 679, 29918, 667, 29918, 957, 1493, 29898, 13, 4706, 1583, 29892, 13, 4706, 13225, 29901, 318, 572, 682, 29889, 3010, 29898, 1853, 29922, 710, 511, 29871, 396, 1134, 29901, 11455, 13, 4706, 1134, 29901, 318, 572, 682, 29889, 3010, 29898, 1853, 29922, 2001, 1542, 511, 29871, 396, 1134, 29901, 11455, 13, 1678, 1723, 1599, 10518, 29889, 17271, 29901, 13, 4706, 2023, 13, 13, 13, 1990, 10976, 5072, 2677, 29898, 2272, 29881, 7716, 29889, 5160, 3195, 1125, 13, 1678, 9995, 9634, 3149, 363, 17378, 26504, 848, 515, 772, 29872, 29889, 29876, 262, 1764, 1213, 15945, 13, 13, 1678, 848, 29901, 9657, 29961, 710, 29892, 10518, 29889, 17271, 29962, 13, 1678, 903, 735, 1997, 287, 29918, 1767, 29901, 938, 353, 282, 2941, 7716, 29889, 25207, 25098, 29898, 4381, 29922, 29900, 29897, 13, 1678, 903, 12150, 488, 29918, 386, 3781, 3361, 29901, 9657, 29961, 13, 4706, 851, 29892, 1051, 29961, 8977, 29961, 710, 29892, 5785, 5262, 13, 1678, 4514, 353, 282, 2941, 7716, 29889, 25207, 25098, 29898, 4381, 29918, 14399, 29922, 1761, 29897, 13, 13, 1678, 770, 12782, 29901, 13, 4706, 11472, 29918, 8768, 29918, 24622, 353, 5852, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3579, 1272, 29897, 1599, 6213, 29901, 13, 4706, 2428, 2141, 1649, 2344, 12035, 1068, 1272, 29897, 13, 4706, 1583, 3032, 735, 1997, 287, 29918, 1767, 353, 1583, 29889, 1272, 3366, 21962, 15942, 3108, 29961, 13, 9651, 1583, 29889, 1272, 3366, 21962, 15942, 16862, 667, 29918, 978, 1275, 376, 1252, 1997, 287, 1394, 29890, 29908, 13, 308, 1822, 309, 542, 29961, 29900, 29962, 3366, 5815, 359, 29918, 1767, 3108, 13, 4706, 1583, 3032, 12150, 488, 29918, 386, 3781, 3361, 353, 426, 13, 9651, 413, 29901, 679, 29918, 12150, 488, 29918, 386, 3781, 3361, 29898, 2176, 29897, 363, 413, 29892, 4489, 297, 1583, 29889, 1272, 29889, 7076, 580, 13, 4706, 500, 13, 4706, 1583, 29889, 1272, 353, 426, 13, 9651, 413, 29901, 1583, 3032, 2490, 29918, 5014, 29898, 29895, 29892, 4489, 29897, 363, 413, 29892, 4489, 297, 1583, 29889, 1272, 29889, 7076, 580, 13, 4706, 500, 13, 13, 1678, 822, 679, 29918, 4990, 29918, 1767, 29898, 13, 4706, 1583, 29892, 13, 4706, 10329, 359, 29918, 1767, 29901, 5785, 29892, 13, 4706, 4513, 29918, 3204, 29918, 1609, 29901, 938, 353, 29871, 29896, 29892, 13, 4706, 16716, 29901, 938, 353, 29871, 29900, 29892, 13, 268, 1125, 13, 4706, 736, 679, 29918, 4990, 29918, 1767, 29898, 13, 9651, 10329, 359, 29918, 1767, 29922, 5815, 359, 29918, 1767, 29892, 13, 9651, 429, 1997, 287, 29918, 6543, 29918, 1767, 29922, 1311, 3032, 735, 1997, 287, 29918, 1767, 29892, 13, 9651, 4513, 29918, 3204, 29918, 1609, 29922, 14486, 29918, 3204, 29918, 1609, 29892, 13, 9651, 16716, 29922, 17990, 2459, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 679, 29918, 12150, 5475, 29918, 1454, 29918, 386, 12268, 29898, 13, 4706, 1583, 29892, 13, 4706, 1820, 29901, 851, 29892, 13, 4706, 1375, 29918, 5815, 359, 29918, 1767, 29901, 5785, 29892, 13, 1678, 1723, 1599, 28379, 29961, 8977, 29961, 710, 29892, 5785, 5262, 29901, 13, 4706, 363, 16897, 297, 1583, 3032, 12150, 488, 29918, 386, 3781, 3361, 29961, 1989, 5387, 13, 9651, 565, 16897, 3366, 5815, 359, 29918, 1767, 3108, 6736, 1375, 29918, 5815, 359, 29918, 1767, 29901, 13, 18884, 736, 16897, 13, 4706, 736, 1583, 3032, 12150, 488, 29918, 386, 3781, 3361, 29961, 1989, 3816, 29899, 29896, 29962, 13, 13, 1678, 732, 2272, 29881, 7716, 29889, 3084, 1061, 703, 1272, 1159, 13, 1678, 822, 848, 29918, 21969, 29918, 1285, 475, 29918, 497, 29918, 8768, 29898, 13, 4706, 1067, 29879, 29892, 325, 29901, 9657, 29961, 710, 29892, 10518, 29889, 17271, 29962, 13, 1678, 1723, 1599, 9657, 29961, 710, 29892, 10518, 29889, 17271, 5387, 13, 4706, 363, 1134, 29918, 297, 518, 29930, 29907, 10880, 1542, 29892, 334, 2001, 1542, 5387, 13, 9651, 565, 1134, 5396, 572, 3631, 1891, 29918, 870, 414, 2616, 287, 29918, 1767, 451, 297, 325, 29901, 13, 18884, 12020, 7865, 2392, 29898, 29888, 29908, 29912, 1853, 29918, 29913, 4567, 515, 4175, 3030, 1159, 13, 4706, 736, 325, 13, 13, 1678, 732, 3198, 29918, 601, 29898, 13, 4706, 4489, 29922, 5647, 2760, 29940, 262, 1764, 3563, 1493, 12763, 29889, 517, 29918, 11010, 3285, 13, 4706, 714, 29922, 6747, 7032, 287, 29940, 262, 1764, 3563, 1493, 12763, 29889, 517, 29918, 11010, 3285, 13, 1678, 1723, 13, 1678, 822, 903, 2490, 29918, 5014, 29898, 1311, 29892, 1820, 29901, 851, 29892, 4489, 29901, 10518, 29889, 17271, 29897, 1599, 10518, 29889, 17271, 29901, 13, 4706, 4489, 3366, 735, 1997, 287, 29918, 1767, 3108, 353, 4489, 3366, 5815, 359, 29918, 1767, 16862, 7302, 29898, 13, 9651, 14013, 921, 29901, 921, 847, 1583, 3032, 735, 1997, 287, 29918, 1767, 13, 4706, 1723, 13, 4706, 4489, 3366, 4990, 29918, 1767, 3108, 353, 4489, 3366, 5815, 359, 29918, 1767, 16862, 7302, 29898, 13, 9651, 14013, 921, 29901, 679, 29918, 4990, 29918, 1767, 29898, 13, 18884, 10329, 359, 29918, 1767, 29922, 29916, 29892, 13, 18884, 429, 1997, 287, 29918, 6543, 29918, 1767, 29922, 1311, 3032, 735, 1997, 287, 29918, 1767, 29892, 13, 18884, 16716, 29922, 29906, 29892, 13, 9651, 1723, 13, 4706, 1723, 13, 4706, 736, 4489, 13, 2 ]
tests/test_coesa.py
TheMagicNacho/artemis-nozzle
89
183283
# coding: utf-8 """ Tests of the U.S. 1976 Standard Atmosphere implementation. All of them are validated against the `standard`_. .. _`standard`: http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770009539_1977009539.pdf """ from __future__ import division, absolute_import import numpy as np from numpy.testing import (assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal) import scipy as sp import scipy.constants from skaero.atmosphere import coesa, util def _C2K(val): """Convert Celsius to Kelvins.""" return scipy.constants.convert_temperature([val], 'C', 'K') def test_sea_level(): """Tests sea level values. """ h = 0.0 expected_h = 0.0 expected_T = _C2K(15) expected_p = sp.constants.atm expected_rho = 1.2250 h, T, p, rho = coesa.table(h) assert_equal(h, expected_h) assert_equal(T, expected_T) assert_equal(p, expected_p) assert_almost_equal(rho, expected_rho, decimal=4) def test_sea_level_0d_array(): """Tests sea level values using zero dimension array. """ h = np.array(0.0) expected_h = np.array(0.0) expected_T = np.array(_C2K(15)) expected_p = np.array(sp.constants.atm) expected_rho = np.array(1.2250) h, T, p, rho = coesa.table(h) assert_array_equal(h, expected_h) assert_array_almost_equal(T, expected_T) assert_array_almost_equal(p, expected_p) assert_array_almost_equal(rho, expected_rho) def test_sea_level_nd_array(): """Tests sea level values using n dimension array. """ h = np.array([0.0, 0.0, 0.0]) expected_h = np.array([0.0, 0.0, 0.0]) expected_T = np.array([288.15] * 3) expected_p = np.array([101325.0] * 3) expected_rho = np.array([1.2250] * 3) h, T, p, rho = coesa.table(h) assert_array_equal(h, expected_h) assert_array_almost_equal(T, expected_T) assert_array_almost_equal(p, expected_p) assert_array_almost_equal(rho, expected_rho) def test_geometric_to_geopotential(): z = np.array([50.0, 5550.0, 10450.0]) h = util.geometric_to_geopotential(z) expected_h = np.array([50.0, 5545.0, 10433.0]) assert_array_almost_equal(h, expected_h, decimal=0) def test_under_1000m(): """Tests for altitude values under 1000.0 m """ z = np.array([50.0, 550.0, 850.0]) h = util.geometric_to_geopotential(z) expected_h = np.array([50.0, 550.0, 850.0]) expected_T = np.array([287.825, 284.575, 282.626]) expected_p = np.array([100720.0, 94890.0, 91523.0]) expected_rho = np.array([1.2191, 1.1616, 1.1281]) h, T, p, rho = coesa.table(h) assert_array_almost_equal(h, expected_h, decimal=0) assert_array_almost_equal(T, expected_T, decimal=3) assert_array_almost_equal(p, expected_p, decimal=-1) assert_array_almost_equal(rho, expected_rho, decimal=4) def test_under_11km(): """Tests for altitude values between 1 and 11 km """ z = np.array([500.0, 2500.0, 6500.0, 9000.0, 11000.0]) h = util.geometric_to_geopotential(z) expected_h = np.array([500.0, 2499.0, 6493.0, 8987.0, 10981.0]) expected_T = np.array([284.900, 271.906, 245.943, 229.733, 216.774]) expected_p = np.array([95461.0, 74691.0, 44075.0, 30800.0, 22699.0]) expected_rho = np.array([1.1673, 0.95695, 0.62431, 0.46706, 0.36480]) h, T, p, rho = coesa.table(h) assert_array_almost_equal(h, expected_h, decimal=0) assert_array_almost_equal(T, expected_T, decimal=3) assert_array_almost_equal(p, expected_p, decimal=0) assert_array_almost_equal(rho, expected_rho, decimal=4) def test_under_35km(): """Tests for altitude values between 11 and 35 km """ z = np.array([15000.0, 25000.0, 35000.0]) h = util.geometric_to_geopotential(z) expected_h = np.array([14965.0, 24902., 34808.0]) expected_T = np.array([216.65, 221.552, 236.513]) expected_p = np.array([12111.0, 2549.2, 574.59]) expected_rho = np.array([0.19476, 0.040084, 0.0084634]) h, T, p, rho = coesa.table(h) assert_array_almost_equal(h, expected_h, decimal=0) assert_array_almost_equal(T, expected_T, decimal=3) assert_array_almost_equal(p, expected_p, decimal=0) assert_array_almost_equal(rho, expected_rho, decimal=5) def test_under_86km(): """Tests for altitude values between 35 and 86 km """ z = np.array([50000.0, 70000.0, 86000.0]) h = util.geometric_to_geopotential(z) expected_h = np.array([49610.0, 69238., 84852.0]) expected_T = np.array([270.65, 219.585, 186.87]) expected_p = np.array([79.779, 5.2209, 0.37338]) expected_rho = np.array([0.0010269, 0.000082829, 0.000006958]) h, T, p, rho = coesa.table(h) assert_array_almost_equal(h, expected_h, decimal=0) assert_array_almost_equal(T, expected_T, decimal=2) assert_array_almost_equal(p, expected_p, decimal=3) assert_array_almost_equal(rho, expected_rho, decimal=7)
[ 1, 396, 14137, 29901, 23616, 29899, 29947, 13, 13, 15945, 29908, 13, 24376, 310, 278, 501, 29889, 29903, 29889, 29871, 29896, 29929, 29955, 29953, 10117, 2180, 7681, 9085, 5314, 29889, 2178, 310, 963, 526, 13, 3084, 630, 2750, 278, 421, 15770, 29952, 5396, 13, 13, 636, 903, 29952, 15770, 6998, 1732, 597, 29876, 509, 29879, 29889, 29876, 11290, 29889, 13513, 29914, 10867, 29914, 29876, 11290, 29914, 29883, 6840, 29889, 29876, 509, 29879, 29889, 29876, 11290, 29889, 13513, 29914, 29896, 29929, 29955, 29955, 29900, 29900, 29900, 29929, 29945, 29941, 29929, 29918, 29896, 29929, 29955, 29955, 29900, 29900, 29929, 29945, 29941, 29929, 29889, 5140, 13, 13, 15945, 29908, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 29892, 8380, 29918, 5215, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 12655, 29889, 13424, 1053, 313, 9294, 29918, 11745, 29892, 4974, 29918, 284, 3242, 29918, 11745, 29892, 13, 462, 965, 4974, 29918, 2378, 29918, 11745, 29892, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29897, 13, 5215, 4560, 2272, 408, 805, 13, 5215, 4560, 2272, 29889, 3075, 1934, 13, 13, 3166, 269, 1335, 1489, 29889, 271, 7681, 9085, 1053, 1302, 8625, 29892, 3667, 13, 13, 13, 1753, 903, 29907, 29906, 29968, 29898, 791, 1125, 13, 1678, 9995, 18455, 14227, 1039, 375, 304, 27326, 29894, 1144, 1213, 15945, 13, 1678, 736, 4560, 2272, 29889, 3075, 1934, 29889, 13441, 29918, 12863, 1535, 4197, 791, 1402, 525, 29907, 742, 525, 29968, 1495, 13, 13, 13, 1753, 1243, 29918, 344, 29874, 29918, 5563, 7295, 13, 1678, 9995, 24376, 7205, 3233, 1819, 29889, 13, 13, 1678, 9995, 13, 1678, 298, 353, 29871, 29900, 29889, 29900, 13, 1678, 3806, 29918, 29882, 353, 29871, 29900, 29889, 29900, 13, 1678, 3806, 29918, 29911, 353, 903, 29907, 29906, 29968, 29898, 29896, 29945, 29897, 13, 1678, 3806, 29918, 29886, 353, 805, 29889, 3075, 1934, 29889, 271, 29885, 13, 1678, 3806, 29918, 4650, 353, 29871, 29896, 29889, 29906, 29906, 29945, 29900, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 13, 1678, 4974, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29897, 13, 1678, 4974, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29897, 13, 1678, 4974, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29897, 13, 1678, 4974, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29892, 13677, 29922, 29946, 29897, 13, 13, 13, 1753, 1243, 29918, 344, 29874, 29918, 5563, 29918, 29900, 29881, 29918, 2378, 7295, 13, 1678, 9995, 24376, 7205, 3233, 1819, 773, 5225, 9927, 1409, 29889, 13, 13, 1678, 9995, 13, 1678, 298, 353, 7442, 29889, 2378, 29898, 29900, 29889, 29900, 29897, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 29898, 29900, 29889, 29900, 29897, 13, 1678, 3806, 29918, 29911, 353, 7442, 29889, 2378, 7373, 29907, 29906, 29968, 29898, 29896, 29945, 876, 13, 1678, 3806, 29918, 29886, 353, 7442, 29889, 2378, 29898, 1028, 29889, 3075, 1934, 29889, 271, 29885, 29897, 13, 1678, 3806, 29918, 4650, 353, 7442, 29889, 2378, 29898, 29896, 29889, 29906, 29906, 29945, 29900, 29897, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 13, 1678, 4974, 29918, 2378, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29897, 13, 13, 13, 1753, 1243, 29918, 344, 29874, 29918, 5563, 29918, 299, 29918, 2378, 7295, 13, 1678, 9995, 24376, 7205, 3233, 1819, 773, 302, 9927, 1409, 29889, 13, 13, 1678, 9995, 13, 1678, 298, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 2314, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29900, 2314, 13, 1678, 3806, 29918, 29911, 353, 7442, 29889, 2378, 4197, 29906, 29947, 29947, 29889, 29896, 29945, 29962, 334, 29871, 29941, 29897, 13, 1678, 3806, 29918, 29886, 353, 7442, 29889, 2378, 4197, 29896, 29900, 29896, 29941, 29906, 29945, 29889, 29900, 29962, 334, 29871, 29941, 29897, 13, 1678, 3806, 29918, 4650, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29906, 29906, 29945, 29900, 29962, 334, 29871, 29941, 29897, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 13, 1678, 4974, 29918, 2378, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29897, 13, 13, 13, 1753, 1243, 29918, 479, 14066, 29918, 517, 29918, 479, 459, 327, 2556, 7295, 13, 1678, 503, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29889, 29900, 29892, 29871, 29945, 29945, 29945, 29900, 29889, 29900, 29892, 29871, 29896, 29900, 29946, 29945, 29900, 29889, 29900, 2314, 13, 1678, 298, 353, 3667, 29889, 479, 14066, 29918, 517, 29918, 479, 459, 327, 2556, 29898, 29920, 29897, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29889, 29900, 29892, 29871, 29945, 29945, 29946, 29945, 29889, 29900, 29892, 29871, 29896, 29900, 29946, 29941, 29941, 29889, 29900, 2314, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29892, 13677, 29922, 29900, 29897, 13, 13, 13, 1753, 1243, 29918, 5062, 29918, 29896, 29900, 29900, 29900, 29885, 7295, 13, 1678, 9995, 24376, 363, 5272, 4279, 1819, 1090, 29871, 29896, 29900, 29900, 29900, 29889, 29900, 286, 13, 13, 1678, 9995, 13, 1678, 503, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29889, 29900, 29892, 29871, 29945, 29945, 29900, 29889, 29900, 29892, 29871, 29947, 29945, 29900, 29889, 29900, 2314, 13, 1678, 298, 353, 3667, 29889, 479, 14066, 29918, 517, 29918, 479, 459, 327, 2556, 29898, 29920, 29897, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29889, 29900, 29892, 29871, 29945, 29945, 29900, 29889, 29900, 29892, 29871, 29947, 29945, 29900, 29889, 29900, 2314, 13, 1678, 3806, 29918, 29911, 353, 7442, 29889, 2378, 4197, 29906, 29947, 29955, 29889, 29947, 29906, 29945, 29892, 29871, 29906, 29947, 29946, 29889, 29945, 29955, 29945, 29892, 29871, 29906, 29947, 29906, 29889, 29953, 29906, 29953, 2314, 13, 1678, 3806, 29918, 29886, 353, 7442, 29889, 2378, 4197, 29896, 29900, 29900, 29955, 29906, 29900, 29889, 29900, 29892, 29871, 29929, 29946, 29947, 29929, 29900, 29889, 29900, 29892, 29871, 29929, 29896, 29945, 29906, 29941, 29889, 29900, 2314, 13, 1678, 3806, 29918, 4650, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29906, 29896, 29929, 29896, 29892, 29871, 29896, 29889, 29896, 29953, 29896, 29953, 29892, 29871, 29896, 29889, 29896, 29906, 29947, 29896, 2314, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29892, 13677, 29922, 29900, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29892, 13677, 29922, 29941, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29892, 13677, 10457, 29896, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29892, 13677, 29922, 29946, 29897, 13, 13, 13, 1753, 1243, 29918, 5062, 29918, 29896, 29896, 8848, 7295, 13, 1678, 9995, 24376, 363, 5272, 4279, 1819, 1546, 29871, 29896, 322, 29871, 29896, 29896, 2383, 13, 13, 1678, 9995, 13, 1678, 503, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29906, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29953, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29929, 29900, 29900, 29900, 29889, 29900, 29892, 29871, 29896, 29896, 29900, 29900, 29900, 29889, 29900, 2314, 13, 1678, 298, 353, 3667, 29889, 479, 14066, 29918, 517, 29918, 479, 459, 327, 2556, 29898, 29920, 29897, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29900, 29889, 29900, 29892, 29871, 29906, 29946, 29929, 29929, 29889, 29900, 29892, 29871, 29953, 29946, 29929, 29941, 29889, 29900, 29892, 29871, 29947, 29929, 29947, 29955, 29889, 29900, 29892, 29871, 29896, 29900, 29929, 29947, 29896, 29889, 29900, 2314, 13, 1678, 3806, 29918, 29911, 353, 7442, 29889, 2378, 4197, 29906, 29947, 29946, 29889, 29929, 29900, 29900, 29892, 29871, 29906, 29955, 29896, 29889, 29929, 29900, 29953, 29892, 29871, 29906, 29946, 29945, 29889, 29929, 29946, 29941, 29892, 29871, 29906, 29906, 29929, 29889, 29955, 29941, 29941, 29892, 29871, 29906, 29896, 29953, 29889, 29955, 29955, 29946, 2314, 13, 1678, 3806, 29918, 29886, 353, 7442, 29889, 2378, 4197, 29929, 29945, 29946, 29953, 29896, 29889, 29900, 29892, 29871, 29955, 29946, 29953, 29929, 29896, 29889, 29900, 29892, 29871, 29946, 29946, 29900, 29955, 29945, 29889, 29900, 29892, 29871, 29941, 29900, 29947, 29900, 29900, 29889, 29900, 29892, 29871, 29906, 29906, 29953, 29929, 29929, 29889, 29900, 2314, 13, 1678, 3806, 29918, 4650, 353, 7442, 29889, 2378, 4197, 29896, 29889, 29896, 29953, 29955, 29941, 29892, 29871, 29900, 29889, 29929, 29945, 29953, 29929, 29945, 29892, 29871, 29900, 29889, 29953, 29906, 29946, 29941, 29896, 29892, 29871, 29900, 29889, 29946, 29953, 29955, 29900, 29953, 29892, 29871, 29900, 29889, 29941, 29953, 29946, 29947, 29900, 2314, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 268, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29892, 13677, 29922, 29900, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29892, 13677, 29922, 29941, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29892, 13677, 29922, 29900, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29892, 13677, 29922, 29946, 29897, 13, 13, 13, 1753, 1243, 29918, 5062, 29918, 29941, 29945, 8848, 7295, 13, 1678, 9995, 24376, 363, 5272, 4279, 1819, 1546, 29871, 29896, 29896, 322, 29871, 29941, 29945, 2383, 13, 13, 1678, 9995, 13, 1678, 503, 353, 7442, 29889, 2378, 4197, 29896, 29945, 29900, 29900, 29900, 29889, 29900, 29892, 29871, 29906, 29945, 29900, 29900, 29900, 29889, 29900, 29892, 29871, 29941, 29945, 29900, 29900, 29900, 29889, 29900, 2314, 13, 1678, 298, 353, 3667, 29889, 479, 14066, 29918, 517, 29918, 479, 459, 327, 2556, 29898, 29920, 29897, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29896, 29946, 29929, 29953, 29945, 29889, 29900, 29892, 29871, 29906, 29946, 29929, 29900, 29906, 1696, 29871, 29941, 29946, 29947, 29900, 29947, 29889, 29900, 2314, 13, 1678, 3806, 29918, 29911, 353, 7442, 29889, 2378, 4197, 29906, 29896, 29953, 29889, 29953, 29945, 29892, 29871, 29906, 29906, 29896, 29889, 29945, 29945, 29906, 29892, 29871, 29906, 29941, 29953, 29889, 29945, 29896, 29941, 2314, 13, 1678, 3806, 29918, 29886, 353, 7442, 29889, 2378, 4197, 29896, 29906, 29896, 29896, 29896, 29889, 29900, 29892, 29871, 29906, 29945, 29946, 29929, 29889, 29906, 29892, 29871, 29945, 29955, 29946, 29889, 29945, 29929, 2314, 13, 1678, 3806, 29918, 4650, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29896, 29929, 29946, 29955, 29953, 29892, 29871, 29900, 29889, 29900, 29946, 29900, 29900, 29947, 29946, 29892, 29871, 29900, 29889, 29900, 29900, 29947, 29946, 29953, 29941, 29946, 2314, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 268, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29892, 13677, 29922, 29900, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29892, 13677, 29922, 29941, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29892, 13677, 29922, 29900, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29892, 13677, 29922, 29945, 29897, 13, 13, 13, 1753, 1243, 29918, 5062, 29918, 29947, 29953, 8848, 7295, 13, 1678, 9995, 24376, 363, 5272, 4279, 1819, 1546, 29871, 29941, 29945, 322, 29871, 29947, 29953, 2383, 13, 13, 1678, 9995, 13, 1678, 503, 353, 7442, 29889, 2378, 4197, 29945, 29900, 29900, 29900, 29900, 29889, 29900, 29892, 29871, 29955, 29900, 29900, 29900, 29900, 29889, 29900, 29892, 29871, 29947, 29953, 29900, 29900, 29900, 29889, 29900, 2314, 13, 1678, 298, 353, 3667, 29889, 479, 14066, 29918, 517, 29918, 479, 459, 327, 2556, 29898, 29920, 29897, 13, 1678, 3806, 29918, 29882, 353, 7442, 29889, 2378, 4197, 29946, 29929, 29953, 29896, 29900, 29889, 29900, 29892, 29871, 29953, 29929, 29906, 29941, 29947, 1696, 29871, 29947, 29946, 29947, 29945, 29906, 29889, 29900, 2314, 13, 1678, 3806, 29918, 29911, 353, 7442, 29889, 2378, 4197, 29906, 29955, 29900, 29889, 29953, 29945, 29892, 29871, 29906, 29896, 29929, 29889, 29945, 29947, 29945, 29892, 29871, 29896, 29947, 29953, 29889, 29947, 29955, 2314, 13, 1678, 3806, 29918, 29886, 353, 7442, 29889, 2378, 4197, 29955, 29929, 29889, 29955, 29955, 29929, 29892, 29871, 29945, 29889, 29906, 29906, 29900, 29929, 29892, 29871, 29900, 29889, 29941, 29955, 29941, 29941, 29947, 2314, 13, 1678, 3806, 29918, 4650, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29900, 29900, 29896, 29900, 29906, 29953, 29929, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29947, 29906, 29947, 29906, 29929, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29900, 29953, 29929, 29945, 29947, 2314, 13, 13, 1678, 298, 29892, 323, 29892, 282, 29892, 364, 1251, 353, 1302, 8625, 29889, 2371, 29898, 29882, 29897, 13, 268, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29882, 29892, 3806, 29918, 29882, 29892, 13677, 29922, 29900, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29911, 29892, 3806, 29918, 29911, 29892, 13677, 29922, 29906, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 29886, 29892, 3806, 29918, 29886, 29892, 13677, 29922, 29941, 29897, 13, 1678, 4974, 29918, 2378, 29918, 284, 3242, 29918, 11745, 29898, 4650, 29892, 3806, 29918, 4650, 29892, 13677, 29922, 29955, 29897, 13, 2 ]
setup.py
Leschonander/Jump-Bike-D.C-Python-API-Wrapper
0
197758
from setuptools import setup setup(name = "Jump Bike DC API Wrapper", url = 'https://github.com/Leschonander/Jump-Bike-D.C-Python-API-Wrapper', author = "<NAME>", author_email = '<EMAIL>', packages=['src'], install_requires=['requests'], version = '0.1', license = 'MIT', description = "Python Wrapper for Jump Bike D.C's open API.", long_description = open('README.md').read() )
[ 1, 515, 731, 21245, 8789, 1053, 6230, 13, 13, 14669, 29898, 978, 353, 376, 29967, 3427, 3457, 446, 13681, 3450, 399, 6794, 613, 13, 1678, 3142, 353, 525, 991, 597, 3292, 29889, 510, 29914, 29931, 1968, 265, 3825, 29914, 29967, 3427, 29899, 29933, 9345, 29899, 29928, 29889, 29907, 29899, 11980, 29899, 8787, 29899, 15646, 742, 13, 1678, 4148, 353, 9872, 5813, 28341, 13, 1678, 4148, 29918, 5269, 353, 12801, 26862, 6227, 29958, 742, 13, 1678, 9741, 29922, 1839, 4351, 7464, 13, 1678, 2601, 29918, 276, 339, 2658, 29922, 1839, 24830, 7464, 13, 1678, 1873, 353, 525, 29900, 29889, 29896, 742, 13, 1678, 19405, 353, 525, 26349, 742, 13, 1678, 6139, 353, 376, 11980, 399, 6794, 363, 435, 3427, 3457, 446, 360, 29889, 29907, 29915, 29879, 1722, 3450, 19602, 13, 1678, 1472, 29918, 8216, 353, 1722, 877, 16310, 2303, 29889, 3487, 2824, 949, 580, 13, 29897, 2 ]
parser/fase2/team29/analizer_pl/interpreter.py
estabanmike/tytus
0
132793
<gh_stars>0 from re import S from sys import path from os.path import dirname as dir path.append(dir(path[0])) from analizer_pl.C3D.operations import block from analizer_pl.reports import BnfGrammar from analizer_pl.abstract import global_env import analizer_pl.grammar as grammar def traducir(input): result = grammar.parse(input) lexerErrors = grammar.returnLexicalErrors() syntaxErrors = grammar.returnSyntacticErrors() env = global_env.GlobalEnvironment() c3d = "from sys import path\n" c3d += "from os.path import dirname as dir\n" c3d += "path.append(dir(path[0]))\n" c3d += "from analizer import interpreter as fase1\n" c3d += "from goto import with_goto\n" c3d += 'dbtemp = ""\n' c3d += "stack = []\n" c3d += "\n" optimizacion = c3d if len(lexerErrors) + len(syntaxErrors) == 0 and result: for r in result: if r: c3d += r.execute(env).value else: c3d += "Instruccion SQL \n" f = open("test-output/c3d.py", "w+") f.write(c3d) f.close() optimizacion += grammar.optimizer_.optimize() f = open("test-output/c3dopt.py", "w+") f.write(optimizacion) f.close() semanticErrors = [] functions = functionsReport(env) symbols = symbolReport() obj = { "lexical": lexerErrors, "syntax": syntaxErrors, "semantic": semanticErrors, "symbols": symbols, "functions": functions, } # grammar.InitTree() BnfGrammar.grammarReport() return obj def symbolReport(): environments = block.environments report = [] for env in environments: envName = env[0] env = env[1] vars = env.variables enc = [["ID", "Tipo", "Fila", "Columna", "Declarada en"]] filas = [] for (key, symbol) in vars.items(): r = [ symbol.value, symbol.type.name if symbol.type else "UNKNOWN", symbol.row, symbol.column, envName, ] filas.append(r) enc.append(filas) report.append(enc) environments = list() return report def functionsReport(env): rep = [["Tipo", "ID", "Tipo de Retorno", "No. de Parametros"], []] for (f, x) in env.functions.items(): r = [] r.append(x.type) r.append(x.id) if x.returnType: r.append(x.returnType.name) else: r.append("NULL") r.append(x.params) rep[1].append(r) return rep s = """ CREATE FUNCTION ValidaRegistros(tabla varchar(50),cantidad integer) RETURNS integer AS $$ DECLARE resultado INTEGER; retorna INTEGER; BEGIN if tabla = 'tbProducto' then resultado := (SELECT md5('23') si, puta as sho) ; if cantidad = resultado then retorna = 1; else retorna = 0; end if; end if; if tabla = 'tbProductoUp' then resultado := (SELECT COUNT(*) FROM tbProducto where estado = 2); if cantidad = resultado then retorna = 1; else retorna = 0; end if; end if; if tabla = 'tbbodega' then resultado := (SELECT COUNT(*) FROM tbbodega); if cantidad = resultado then retorna = 1; else retorna = 0; end if; end if; RETURN retorna; END; $$ LANGUAGE plpgsql; delete from tbbodega as tb where idbodega = 4 and idbodega = 5; """ s2 = """ CREATE FUNCTION foo(texto text, b boolean) RETURNS text AS $$ BEGIN update tbbodega set bodega = texto||"fr", id = 1 where idbodega = 4; update tbbodega set bodega = "fr" where idbodega = 4; return texto; END; $$ LANGUAGE plpgsql; CREATE FUNCTION myFuncion(texto text, b boolean) RETURNS text AS $$ BEGIN INSERT INTO tbProducto values(1,'Laptop Lenovo',md5(texto),1); SELECT 3-5>4 and -3=texto as sho, texto between symmetric 2 and 3 as alv; select * from tbCalificacion; select * from tbventa where ventaregistrada = false; select * from tbempleadopuesto group by departamento; select * from tbventa V,tbempleado E where V.idempleado = E.idempleado group by primernombre,segundonombre,primerapellido; select v.id+foo(texto, 3) from tbventa V,tbempleado E where V.idempleado = E.idempleado group by primernombre,segundonombre,primerapellido,fechaventa limit 1; select * from tbventa V,tbempleado E where V.idempleado = E.idempleado group by primernombre,segundonombre,primerapellido UNION select DISTINCT * from tbventa V,tbempleado E where V.idempleado = texto group by 1,2,3 order by 1; b = texto between symmetric 2 and 3; RETURN (3+1)*-1; END; $$ LANGUAGE plpgsql; select * from tbventa V,tbempleado E where V.idempleado = E.idempleado group by primernombre,segundonombre,primerapellido; select (3+3)*5; select * from tbventa V,tbempleado E where V.idempleado = E.idempleado group by primernombre,segundonombre,primerapellido UNION select DISTINCT * from tbventa V,tbempleado E where V.idempleado = texto group by 1,2,3 order by col ,1 ; """ s3 = """ select E.* from tabla; select departamento,count(*) CantEmpleados from tbempleadopuesto group by departamento; select primernombre,segundonombre,primerapellido,sum(montoventa) from tbventa V,tbempleado E where V.idempleado = E.idempleado group by primernombre,segundonombre,primerapellido; create table tblibrosalario ( idempleado integer not null, aniocalculo integer not null CONSTRAINT aniosalario CHECK (aniocalculo > 0), mescalculo integer not null CONSTRAINT mescalculo CHECK (mescalculo > 0), salariobase money not null, comision decimal, primary key(idempleado) ); EXECUTE md5("francisco"); update tbbodega set bodega = 'bodega zona 9' where idbodega = 4; update tbbodega set bodega = DEFAULT where idbodega = 4; """ s4 = """ CREATE FUNCTION ValidaRegistros(tabla varchar(50),cantidad integer) RETURNS integer AS $$ DECLARE resultado INTEGER; retorna INTEGER; BEGIN if tabla = 'tbProducto' then resultado := not ((4+4*10/3) NOT IN (SELECT COUNT(*) FROM tbProducto)); retorna = 0; end if; if tabla = 'tbProductoUp' then resultado := xd IN (SELECT * FROM tbProducto where estado = 2); retorna = 1; end if; if tabla = 'tbbodega' then resultado := EXISTS (SELECT COUNT(*) FROM tbbodega); retorna = 2; end if; RETURN retorna; END; $$ LANGUAGE plpgsql; """ traducir(s4)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 337, 1053, 317, 13, 3166, 10876, 1053, 2224, 13, 3166, 2897, 29889, 2084, 1053, 4516, 978, 408, 4516, 13, 13, 2084, 29889, 4397, 29898, 3972, 29898, 2084, 29961, 29900, 12622, 13, 3166, 3483, 3950, 29918, 572, 29889, 29907, 29941, 29928, 29889, 3372, 800, 1053, 2908, 13, 3166, 3483, 3950, 29918, 572, 29889, 276, 4011, 1053, 350, 29876, 29888, 29954, 2572, 3034, 13, 3166, 3483, 3950, 29918, 572, 29889, 16595, 1053, 5534, 29918, 6272, 13, 5215, 3483, 3950, 29918, 572, 29889, 1393, 3034, 408, 25437, 13, 13, 13, 1753, 25314, 381, 29898, 2080, 1125, 13, 1678, 1121, 353, 25437, 29889, 5510, 29898, 2080, 29897, 13, 1678, 19566, 261, 22463, 353, 25437, 29889, 2457, 29931, 735, 936, 22463, 580, 13, 1678, 5877, 22463, 353, 25437, 29889, 2457, 29903, 3903, 17911, 22463, 580, 13, 1678, 8829, 353, 5534, 29918, 6272, 29889, 12756, 18649, 580, 13, 1678, 274, 29941, 29881, 353, 376, 3166, 10876, 1053, 2224, 29905, 29876, 29908, 13, 1678, 274, 29941, 29881, 4619, 376, 3166, 2897, 29889, 2084, 1053, 4516, 978, 408, 4516, 29905, 29876, 29908, 13, 1678, 274, 29941, 29881, 4619, 376, 2084, 29889, 4397, 29898, 3972, 29898, 2084, 29961, 29900, 12622, 29905, 29876, 29908, 13, 1678, 274, 29941, 29881, 4619, 376, 3166, 3483, 3950, 1053, 26997, 408, 20851, 29896, 29905, 29876, 29908, 13, 1678, 274, 29941, 29881, 4619, 376, 3166, 2355, 29877, 1053, 411, 29918, 27102, 29905, 29876, 29908, 13, 1678, 274, 29941, 29881, 4619, 525, 2585, 7382, 353, 5124, 29905, 29876, 29915, 13, 1678, 274, 29941, 29881, 4619, 376, 1429, 353, 5159, 29905, 29876, 29908, 13, 1678, 274, 29941, 29881, 4619, 6634, 29876, 29908, 13, 1678, 5994, 466, 16337, 353, 274, 29941, 29881, 13, 1678, 565, 7431, 29898, 2506, 261, 22463, 29897, 718, 7431, 29898, 29562, 22463, 29897, 1275, 29871, 29900, 322, 1121, 29901, 13, 4706, 363, 364, 297, 1121, 29901, 13, 9651, 565, 364, 29901, 13, 18884, 274, 29941, 29881, 4619, 364, 29889, 7978, 29898, 6272, 467, 1767, 13, 9651, 1683, 29901, 13, 18884, 274, 29941, 29881, 4619, 376, 3379, 582, 22643, 3758, 320, 29876, 29908, 13, 1678, 285, 353, 1722, 703, 1688, 29899, 4905, 29914, 29883, 29941, 29881, 29889, 2272, 613, 376, 29893, 29974, 1159, 13, 1678, 285, 29889, 3539, 29898, 29883, 29941, 29881, 29897, 13, 1678, 285, 29889, 5358, 580, 13, 1678, 5994, 466, 16337, 4619, 25437, 29889, 20640, 3950, 5396, 20640, 675, 580, 13, 1678, 285, 353, 1722, 703, 1688, 29899, 4905, 29914, 29883, 29941, 1867, 415, 29889, 2272, 613, 376, 29893, 29974, 1159, 13, 1678, 285, 29889, 3539, 29898, 20640, 466, 16337, 29897, 13, 1678, 285, 29889, 5358, 580, 13, 1678, 28837, 22463, 353, 5159, 13, 1678, 3168, 353, 3168, 13020, 29898, 6272, 29897, 13, 1678, 15072, 353, 5829, 13020, 580, 13, 1678, 5446, 353, 426, 13, 4706, 376, 2506, 936, 1115, 19566, 261, 22463, 29892, 13, 4706, 376, 29562, 1115, 5877, 22463, 29892, 13, 4706, 376, 12846, 7716, 1115, 28837, 22463, 29892, 13, 4706, 376, 18098, 29879, 1115, 15072, 29892, 13, 4706, 376, 12171, 1115, 3168, 29892, 13, 1678, 500, 13, 1678, 396, 25437, 29889, 6644, 9643, 580, 13, 1678, 350, 29876, 29888, 29954, 2572, 3034, 29889, 1393, 3034, 13020, 580, 13, 1678, 736, 5446, 13, 13, 13, 1753, 5829, 13020, 7295, 13, 1678, 23136, 353, 2908, 29889, 21813, 1860, 13, 1678, 3461, 353, 5159, 13, 1678, 363, 8829, 297, 23136, 29901, 13, 4706, 8829, 1170, 353, 8829, 29961, 29900, 29962, 13, 4706, 8829, 353, 8829, 29961, 29896, 29962, 13, 4706, 24987, 353, 8829, 29889, 20897, 13, 4706, 2094, 353, 518, 3366, 1367, 613, 376, 29911, 22955, 613, 376, 3434, 29874, 613, 376, 1625, 398, 1056, 613, 376, 6185, 4675, 1114, 427, 3108, 29962, 13, 4706, 977, 294, 353, 5159, 13, 4706, 363, 313, 1989, 29892, 5829, 29897, 297, 24987, 29889, 7076, 7295, 13, 9651, 364, 353, 518, 13, 18884, 5829, 29889, 1767, 29892, 13, 18884, 5829, 29889, 1853, 29889, 978, 565, 5829, 29889, 1853, 1683, 376, 3904, 29968, 6632, 16048, 613, 13, 18884, 5829, 29889, 798, 29892, 13, 18884, 5829, 29889, 4914, 29892, 13, 18884, 8829, 1170, 29892, 13, 9651, 4514, 13, 9651, 977, 294, 29889, 4397, 29898, 29878, 29897, 13, 4706, 2094, 29889, 4397, 29898, 1777, 294, 29897, 13, 4706, 3461, 29889, 4397, 29898, 3977, 29897, 13, 1678, 23136, 353, 1051, 580, 13, 1678, 736, 3461, 13, 13, 13, 1753, 3168, 13020, 29898, 6272, 1125, 13, 1678, 1634, 353, 518, 3366, 29911, 22955, 613, 376, 1367, 613, 376, 29911, 22955, 316, 4649, 16378, 613, 376, 3782, 29889, 316, 12662, 300, 1883, 12436, 5159, 29962, 13, 1678, 363, 313, 29888, 29892, 921, 29897, 297, 8829, 29889, 12171, 29889, 7076, 7295, 13, 4706, 364, 353, 5159, 13, 4706, 364, 29889, 4397, 29898, 29916, 29889, 1853, 29897, 13, 4706, 364, 29889, 4397, 29898, 29916, 29889, 333, 29897, 13, 4706, 565, 921, 29889, 2457, 1542, 29901, 13, 9651, 364, 29889, 4397, 29898, 29916, 29889, 2457, 1542, 29889, 978, 29897, 13, 4706, 1683, 29901, 13, 9651, 364, 29889, 4397, 703, 10074, 1159, 13, 4706, 364, 29889, 4397, 29898, 29916, 29889, 7529, 29897, 13, 4706, 1634, 29961, 29896, 1822, 4397, 29898, 29878, 29897, 13, 1678, 736, 1634, 13, 13, 13, 29879, 353, 9995, 29871, 13, 13, 27045, 383, 28700, 2630, 1458, 4597, 391, 1883, 29898, 3891, 433, 15236, 29898, 29945, 29900, 511, 29883, 424, 2368, 6043, 29897, 28081, 4574, 3059, 6043, 3339, 2046, 13, 2287, 24529, 29871, 13, 690, 2727, 2672, 4330, 17070, 29936, 29871, 13, 2267, 272, 1056, 259, 2672, 4330, 17070, 29936, 13, 29933, 17958, 13, 12, 361, 4434, 433, 353, 525, 22625, 7566, 29877, 29915, 769, 13, 12, 1678, 24578, 3490, 313, 6404, 22821, 29945, 877, 29906, 29941, 1495, 1354, 29892, 1925, 29874, 408, 17394, 29897, 2056, 13, 268, 12, 361, 5107, 2368, 353, 24578, 769, 13, 12, 12, 12, 2267, 272, 1056, 353, 29871, 29896, 29936, 13, 12, 12, 2870, 29871, 13, 12, 12, 12, 2267, 272, 1056, 353, 29871, 29900, 29936, 13, 12, 12, 355, 565, 29936, 13, 12, 355, 565, 29936, 13, 12, 361, 4434, 433, 353, 525, 22625, 7566, 29877, 3373, 29915, 769, 13, 12, 1678, 24578, 3490, 313, 6404, 21122, 22798, 3895, 260, 29890, 7566, 29877, 988, 12082, 353, 29871, 29906, 416, 13, 268, 12, 361, 5107, 2368, 353, 24578, 769, 13, 12, 12, 12, 2267, 272, 1056, 353, 29871, 29896, 29936, 13, 12, 12, 2870, 29871, 13, 12, 12, 12, 2267, 272, 1056, 353, 29871, 29900, 29936, 13, 12, 12, 355, 565, 29936, 13, 12, 355, 565, 29936, 13, 12, 361, 4434, 433, 353, 525, 29873, 1327, 356, 3249, 29915, 769, 13, 12, 1678, 24578, 3490, 313, 6404, 21122, 22798, 3895, 260, 1327, 356, 3249, 416, 13, 268, 12, 361, 5107, 2368, 353, 24578, 769, 13, 12, 12, 12, 2267, 272, 1056, 353, 29871, 29896, 29936, 13, 12, 12, 2870, 29871, 13, 12, 12, 12, 2267, 272, 1056, 353, 29871, 29900, 29936, 13, 12, 12, 355, 565, 29936, 13, 12, 355, 565, 29936, 13, 1525, 29911, 24015, 3240, 272, 1056, 29936, 13, 11794, 29936, 13, 3997, 365, 19453, 29965, 10461, 715, 4061, 2850, 29936, 13, 8143, 515, 260, 1327, 356, 3249, 408, 260, 29890, 988, 1178, 29890, 356, 3249, 353, 29871, 29946, 322, 1178, 29890, 356, 3249, 353, 29871, 29945, 29936, 13, 15945, 29908, 13, 29879, 29906, 353, 9995, 13, 13, 27045, 383, 28700, 7953, 29898, 726, 29877, 1426, 29892, 289, 7223, 29897, 28081, 4574, 3059, 1426, 3339, 2046, 13, 29933, 17958, 13, 5504, 260, 1327, 356, 3249, 731, 289, 356, 3249, 353, 1426, 29877, 8876, 29908, 1341, 613, 1178, 353, 29871, 29896, 988, 1178, 29890, 356, 3249, 353, 29871, 29946, 29936, 29871, 13, 5504, 260, 1327, 356, 3249, 731, 289, 356, 3249, 353, 376, 1341, 29908, 988, 1178, 29890, 356, 3249, 353, 29871, 29946, 29936, 29871, 13, 2457, 1426, 29877, 29936, 13, 11794, 29936, 13, 3997, 365, 19453, 29965, 10461, 715, 4061, 2850, 29936, 13, 13, 27045, 383, 28700, 590, 14400, 291, 29898, 726, 29877, 1426, 29892, 289, 7223, 29897, 28081, 4574, 3059, 1426, 3339, 2046, 13, 29933, 17958, 13, 19460, 11646, 260, 29890, 7566, 29877, 1819, 29898, 29896, 5501, 29931, 2156, 459, 16206, 6962, 742, 3487, 29945, 29898, 726, 29877, 511, 29896, 416, 13, 6404, 29871, 29941, 29899, 29945, 29958, 29946, 322, 448, 29941, 29922, 726, 29877, 408, 17394, 29892, 1426, 29877, 1546, 18348, 29871, 29906, 322, 29871, 29941, 408, 394, 29894, 29936, 13, 13, 2622, 334, 515, 260, 29890, 7856, 928, 16337, 29936, 13, 2622, 334, 515, 260, 29890, 794, 29874, 988, 9712, 598, 29887, 2132, 1114, 353, 2089, 29936, 13, 2622, 334, 515, 260, 29890, 331, 552, 328, 459, 29771, 2318, 491, 28885, 29936, 13, 13, 2622, 334, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 382, 29889, 680, 29885, 552, 912, 13, 2972, 491, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 29936, 13, 13, 13, 2622, 325, 29889, 333, 29974, 5431, 29898, 726, 29877, 29892, 29871, 29941, 29897, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 382, 29889, 680, 29885, 552, 912, 13, 2972, 491, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 29892, 1725, 305, 485, 6381, 13, 13400, 29871, 29896, 29936, 13, 13, 2622, 334, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 382, 29889, 680, 29885, 552, 912, 13, 2972, 491, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 13, 3904, 2725, 13, 2622, 360, 9047, 28852, 334, 29871, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 1426, 29877, 13, 2972, 491, 29871, 29896, 29892, 29906, 29892, 29941, 13, 2098, 491, 29871, 29896, 29936, 13, 13, 29890, 353, 1426, 29877, 1546, 18348, 29871, 29906, 322, 29871, 29941, 29936, 13, 1525, 29911, 24015, 313, 29941, 29974, 29896, 11877, 29899, 29896, 29936, 13, 11794, 29936, 13, 3997, 365, 19453, 29965, 10461, 715, 4061, 2850, 29936, 13, 13, 2622, 334, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 382, 29889, 680, 29885, 552, 912, 13, 2972, 491, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 29936, 13, 13, 2622, 313, 29941, 29974, 29941, 11877, 29945, 29936, 13, 13, 2622, 334, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 382, 29889, 680, 29885, 552, 912, 13, 2972, 491, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 13, 3904, 2725, 13, 2622, 360, 9047, 28852, 334, 29871, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 1426, 29877, 13, 2972, 491, 29871, 29896, 29892, 29906, 29892, 29941, 13, 2098, 491, 784, 1919, 29896, 2056, 13, 13, 13, 15945, 29908, 13, 13, 29879, 29941, 353, 9995, 13, 2622, 382, 5575, 515, 4434, 433, 29936, 13, 2622, 28885, 29892, 2798, 22798, 15498, 6026, 552, 2255, 29871, 13, 3166, 260, 29890, 331, 552, 328, 459, 29771, 13, 2972, 491, 28885, 29936, 13, 2622, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 29892, 2083, 29898, 3712, 517, 794, 29874, 29897, 29871, 13, 3166, 260, 29890, 794, 29874, 478, 29892, 22625, 331, 552, 912, 382, 13, 3062, 478, 29889, 680, 29885, 552, 912, 353, 382, 29889, 680, 29885, 552, 912, 13, 2972, 491, 1903, 824, 290, 1030, 29892, 10199, 870, 4917, 1030, 29892, 558, 4193, 481, 514, 1941, 29936, 13, 3258, 1591, 260, 29890, 1982, 1883, 284, 2628, 13, 29898, 1957, 29885, 552, 912, 6043, 451, 1870, 29892, 13, 29871, 26448, 18642, 17227, 6043, 451, 1870, 8707, 1254, 4717, 10192, 385, 2363, 284, 2628, 23557, 313, 3270, 18642, 17227, 1405, 29871, 29900, 511, 13, 29871, 4883, 15807, 29877, 29871, 6043, 451, 1870, 8707, 1254, 4717, 10192, 4883, 15807, 29877, 23557, 313, 4467, 15807, 29877, 1405, 29871, 29900, 511, 13, 29871, 4497, 2628, 3188, 29871, 6909, 451, 1870, 29892, 13, 29871, 419, 2459, 268, 13677, 29892, 13, 29871, 7601, 1820, 29898, 680, 29885, 552, 912, 29897, 13, 3482, 13, 5746, 11206, 26027, 22821, 29945, 703, 16799, 3476, 1111, 1496, 13, 5504, 260, 1327, 356, 3249, 731, 289, 356, 3249, 353, 525, 29890, 356, 3249, 13890, 29871, 29929, 29915, 988, 1178, 29890, 356, 3249, 353, 29871, 29946, 29936, 29871, 13, 5504, 260, 1327, 356, 3249, 731, 289, 356, 3249, 353, 22236, 988, 1178, 29890, 356, 3249, 353, 29871, 29946, 29936, 29871, 13, 15945, 29908, 13, 13, 29879, 29946, 353, 9995, 13, 13, 27045, 383, 28700, 2630, 1458, 4597, 391, 1883, 29898, 3891, 433, 15236, 29898, 29945, 29900, 511, 29883, 424, 2368, 6043, 29897, 28081, 4574, 3059, 6043, 3339, 2046, 13, 2287, 24529, 24578, 2672, 4330, 17070, 29936, 29871, 13, 12, 12, 2267, 272, 1056, 259, 2672, 4330, 17070, 29936, 13, 29933, 17958, 13, 12, 361, 4434, 433, 353, 525, 22625, 7566, 29877, 29915, 769, 13, 12, 1678, 24578, 3490, 451, 5135, 29946, 29974, 29946, 29930, 29896, 29900, 29914, 29941, 29897, 6058, 2672, 29871, 313, 6404, 21122, 22798, 3895, 260, 29890, 7566, 29877, 2483, 29871, 13, 12, 12, 2267, 272, 1056, 353, 29871, 29900, 29936, 13, 12, 12, 13, 12, 355, 565, 29936, 13, 12, 361, 4434, 433, 353, 525, 22625, 7566, 29877, 3373, 29915, 769, 13, 12, 1678, 24578, 3490, 921, 29881, 2672, 313, 6404, 334, 3895, 260, 29890, 7566, 29877, 988, 12082, 353, 29871, 29906, 416, 13, 268, 12, 2267, 272, 1056, 353, 29871, 29896, 29936, 13, 12, 355, 565, 29936, 13, 12, 361, 4434, 433, 353, 525, 29873, 1327, 356, 3249, 29915, 769, 13, 12, 1678, 24578, 3490, 28731, 313, 6404, 21122, 22798, 3895, 260, 1327, 356, 3249, 416, 13, 268, 12, 2267, 272, 1056, 353, 29871, 29906, 29936, 13, 12, 355, 565, 29936, 13, 1525, 29911, 24015, 3240, 272, 1056, 29936, 13, 11794, 29936, 13, 3997, 365, 19453, 29965, 10461, 715, 4061, 2850, 29936, 12, 12, 12, 12, 29871, 13, 12, 13, 15945, 29908, 13, 13, 29576, 1682, 381, 29898, 29879, 29946, 29897, 13, 2 ]
x64/ascii/mixedcase/__init__.py
mitthu/alpha3
137
180154
import rm64 encoders = rm64.encoders for encoder in encoders: encoder["case"] = "mixedcase"
[ 1, 1053, 20241, 29953, 29946, 30004, 13, 30004, 13, 3977, 397, 414, 353, 20241, 29953, 29946, 29889, 3977, 397, 414, 30004, 13, 1454, 2094, 6119, 297, 2094, 397, 414, 29901, 30004, 13, 29871, 2094, 6119, 3366, 4878, 3108, 353, 376, 29885, 11925, 4878, 19451, 13, 30004, 13, 2 ]
Task2F.py
J-uliette/Warning-System
0
173679
<filename>Task2F.py from floodsystem.flood import stations_highest_rel_level from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.plot import plot_water_level_with_fit from floodsystem.datafetcher import fetch_measure_levels import datetime N=5 p=4 dt = 2 #parameters stations = build_station_list() #build list of stations update_water_levels(stations) finallist = stations_highest_rel_level(stations, N) #get 5 highest risk stations for i in range(len(finallist)): #iterate over 5 stations dates, levels = fetch_measure_levels(finallist[i][0].measure_id, dt=datetime.timedelta(days=dt)) #get the dates and levels plot_water_level_with_fit(finallist[i], dates, levels, p)
[ 1, 529, 9507, 29958, 5398, 29906, 29943, 29889, 2272, 13, 3166, 5685, 397, 5205, 29889, 29888, 417, 397, 1053, 16355, 29918, 9812, 342, 29918, 2674, 29918, 5563, 13, 3166, 5685, 397, 5205, 29889, 19569, 1272, 1053, 2048, 29918, 19569, 29918, 1761, 29892, 2767, 29918, 13405, 29918, 5563, 29879, 13, 3166, 5685, 397, 5205, 29889, 5317, 1053, 6492, 29918, 13405, 29918, 5563, 29918, 2541, 29918, 9202, 13, 3166, 5685, 397, 5205, 29889, 1272, 9155, 261, 1053, 6699, 29918, 26658, 29918, 5563, 29879, 13, 5215, 12865, 13, 13, 29940, 29922, 29945, 13, 29886, 29922, 29946, 13, 6008, 353, 29871, 29906, 396, 16744, 13, 303, 800, 353, 2048, 29918, 19569, 29918, 1761, 580, 396, 4282, 1051, 310, 16355, 13, 5504, 29918, 13405, 29918, 5563, 29879, 29898, 303, 800, 29897, 13, 4951, 497, 391, 353, 16355, 29918, 9812, 342, 29918, 2674, 29918, 5563, 29898, 303, 800, 29892, 405, 29897, 396, 657, 29871, 29945, 9939, 12045, 16355, 13, 1454, 474, 297, 3464, 29898, 2435, 29898, 4951, 497, 391, 22164, 396, 1524, 403, 975, 29871, 29945, 16355, 13, 1678, 10116, 29892, 11174, 353, 6699, 29918, 26658, 29918, 5563, 29879, 29898, 4951, 497, 391, 29961, 29875, 3816, 29900, 1822, 26658, 29918, 333, 29892, 11636, 29922, 12673, 29889, 9346, 287, 2554, 29898, 16700, 29922, 6008, 876, 396, 657, 278, 10116, 322, 11174, 13, 1678, 6492, 29918, 13405, 29918, 5563, 29918, 2541, 29918, 9202, 29898, 4951, 497, 391, 29961, 29875, 1402, 10116, 29892, 11174, 29892, 282, 29897, 2 ]
python_exercises/52Primes_iterator.py
Matheus-IT/lang-python-related
0
181285
<gh_stars>0 class Primes: def __init__(self, first, last=None): self.curr = None if last is None: self.first = 2 self.last = first else: self.first = first self.last = last def __iter__(self): return self def __next__(self): if self.curr is None: self.curr = 2 return self.curr while self.curr < self.last: self.curr += 1 if Primes.__prime(self.curr): return self.curr raise StopIteration() def __prime(n): for d in range(2, n): if n % d == 0: return False return True for p in Primes(100): print(p)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 1990, 1588, 1355, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 937, 29892, 1833, 29922, 8516, 1125, 13, 4706, 1583, 29889, 21962, 353, 6213, 13, 13, 4706, 565, 1833, 338, 6213, 29901, 13, 9651, 1583, 29889, 4102, 353, 29871, 29906, 13, 9651, 1583, 29889, 4230, 353, 937, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 4102, 353, 937, 13, 9651, 1583, 29889, 4230, 353, 1833, 13, 13, 1678, 822, 4770, 1524, 12035, 1311, 1125, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4770, 4622, 12035, 1311, 1125, 13, 4706, 565, 1583, 29889, 21962, 338, 6213, 29901, 13, 9651, 1583, 29889, 21962, 353, 29871, 29906, 13, 9651, 736, 1583, 29889, 21962, 13, 13, 4706, 1550, 1583, 29889, 21962, 529, 1583, 29889, 4230, 29901, 13, 9651, 1583, 29889, 21962, 4619, 29871, 29896, 13, 9651, 565, 1588, 1355, 17255, 10080, 29898, 1311, 29889, 21962, 1125, 13, 18884, 736, 1583, 29889, 21962, 13, 4706, 12020, 22303, 13463, 362, 580, 13, 13, 1678, 822, 4770, 10080, 29898, 29876, 1125, 13, 4706, 363, 270, 297, 3464, 29898, 29906, 29892, 302, 1125, 13, 9651, 565, 302, 1273, 270, 1275, 29871, 29900, 29901, 13, 18884, 736, 7700, 13, 4706, 736, 5852, 13, 13, 13, 1454, 282, 297, 1588, 1355, 29898, 29896, 29900, 29900, 1125, 13, 1678, 1596, 29898, 29886, 29897, 13, 2 ]
gnu_linux_box/utils/gcp_translate.py
shivag1992/WearableIntelligenceSystem
0
125832
import os import sys import threading from queue import Empty from google.cloud import translate os.environ["GOOGLE_APPLICATION_CREDENTIALS"]=os.path.join(os.path.dirname(__file__), "creds.json") def translate_text(translation_client, text="<NAME>", project_id="wearableai", source_language="es", target_language="en"): """Translating Text. text : single string - text to be translated """ location = "global" parent = f"projects/{project_id}/locations/{location}" print("Translate text is : {}".format(text)) print("Translate source_language is : {}".format(source_language)) # Detail on supported types can be found here: # https://cloud.google.com/translate/docs/supported-formats response = translation_client.translate_text( request={ "parent": parent, "contents": [text], "mime_type": "text/plain", # mime types: text/plain, text/html "source_language_code": source_language, "target_language_code": target_language, } ) # return the translation for each input text provided return response.translations[0].translated_text def run_google_translate(translate_q, obj_q, source_language="es"): print("starting translate service") #make translation client client = translate.TranslationServiceClient() t = threading.currentThread() t.do_run = True while True: #check if our thread kill switch has been activated if not getattr(t, "do_run", True): return try: transcript_obj = translate_q.get(timeout=1) if transcript_obj["is_final"]: transcript = transcript_obj["transcript"] result = translate_text(client, transcript, source_language=source_language) print("Translation result: {}".format(result)) obj_q.put({"type" : "translate_result", "data" : result}) except Exception as e: print(e) pass if __name__ == "__main__": if len(sys.argv) > 1: print("Translated text: {}".format(translate_text(sys.argv[1]))) else: print("Translated text: {}".format(translate_text()))
[ 1, 1053, 2897, 13, 5215, 10876, 13, 5215, 3244, 292, 13, 3166, 9521, 1053, 2812, 2349, 13, 3166, 5386, 29889, 9274, 1053, 14240, 13, 13, 359, 29889, 21813, 3366, 17080, 29949, 29954, 1307, 29918, 3301, 7390, 28541, 29918, 29907, 19386, 3919, 25758, 29903, 3108, 29922, 359, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 511, 376, 1037, 6289, 29889, 3126, 1159, 13, 13, 1753, 14240, 29918, 726, 29898, 3286, 18411, 29918, 4645, 29892, 1426, 543, 29966, 5813, 28341, 2060, 29918, 333, 543, 705, 279, 519, 1794, 613, 2752, 29918, 11675, 543, 267, 613, 3646, 29918, 11675, 543, 264, 29908, 1125, 13, 1678, 9995, 4300, 29880, 1218, 3992, 29889, 13, 13, 1678, 1426, 584, 2323, 1347, 448, 1426, 304, 367, 20512, 13, 13, 1678, 9995, 13, 13, 1678, 4423, 353, 376, 10945, 29908, 13, 13, 1678, 3847, 353, 285, 29908, 16418, 19248, 4836, 29918, 333, 6822, 2029, 800, 19248, 5479, 5038, 13, 13, 1678, 1596, 703, 4300, 9632, 1426, 338, 584, 6571, 1642, 4830, 29898, 726, 876, 13, 1678, 1596, 703, 4300, 9632, 2752, 29918, 11675, 338, 584, 6571, 1642, 4830, 29898, 4993, 29918, 11675, 876, 13, 1678, 396, 5953, 737, 373, 6969, 4072, 508, 367, 1476, 1244, 29901, 13, 1678, 396, 2045, 597, 9274, 29889, 3608, 29889, 510, 29914, 21652, 29914, 2640, 29914, 23765, 29899, 689, 1446, 13, 1678, 2933, 353, 13962, 29918, 4645, 29889, 21652, 29918, 726, 29898, 13, 4706, 2009, 3790, 13, 9651, 376, 3560, 1115, 3847, 29892, 13, 9651, 376, 10853, 1115, 518, 726, 1402, 13, 9651, 376, 29885, 603, 29918, 1853, 1115, 376, 726, 29914, 24595, 613, 29871, 396, 286, 603, 4072, 29901, 1426, 29914, 24595, 29892, 1426, 29914, 1420, 13, 9651, 376, 4993, 29918, 11675, 29918, 401, 1115, 2752, 29918, 11675, 29892, 13, 9651, 376, 5182, 29918, 11675, 29918, 401, 1115, 3646, 29918, 11675, 29892, 13, 4706, 500, 13, 1678, 1723, 13, 13, 1678, 396, 736, 278, 13962, 363, 1269, 1881, 1426, 4944, 13, 1678, 736, 2933, 29889, 3286, 29880, 800, 29961, 29900, 1822, 3286, 29880, 630, 29918, 726, 13, 13, 1753, 1065, 29918, 3608, 29918, 21652, 29898, 21652, 29918, 29939, 29892, 5446, 29918, 29939, 29892, 2752, 29918, 11675, 543, 267, 29908, 1125, 13, 1678, 1596, 703, 2962, 292, 14240, 2669, 1159, 13, 1678, 396, 5675, 13962, 3132, 13, 1678, 3132, 353, 14240, 29889, 4300, 18411, 3170, 4032, 580, 13, 13, 1678, 260, 353, 3244, 292, 29889, 3784, 4899, 580, 13, 1678, 260, 29889, 1867, 29918, 3389, 353, 5852, 13, 1678, 1550, 5852, 29901, 13, 4706, 396, 3198, 565, 1749, 3244, 12088, 4607, 756, 1063, 5039, 630, 13, 4706, 565, 451, 679, 5552, 29898, 29873, 29892, 376, 1867, 29918, 3389, 613, 5852, 1125, 13, 9651, 736, 13, 4706, 1018, 29901, 13, 9651, 1301, 924, 29918, 5415, 353, 14240, 29918, 29939, 29889, 657, 29898, 15619, 29922, 29896, 29897, 13, 9651, 565, 1301, 924, 29918, 5415, 3366, 275, 29918, 8394, 3108, 29901, 13, 18884, 1301, 924, 353, 1301, 924, 29918, 5415, 3366, 3286, 924, 3108, 13, 18884, 1121, 353, 14240, 29918, 726, 29898, 4645, 29892, 1301, 924, 29892, 2752, 29918, 11675, 29922, 4993, 29918, 11675, 29897, 13, 18884, 1596, 703, 4300, 18411, 1121, 29901, 6571, 1642, 4830, 29898, 2914, 876, 13, 18884, 5446, 29918, 29939, 29889, 649, 3319, 29908, 1853, 29908, 584, 376, 21652, 29918, 2914, 613, 376, 1272, 29908, 584, 1121, 1800, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1596, 29898, 29872, 29897, 13, 9651, 1209, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 565, 7431, 29898, 9675, 29889, 19218, 29897, 1405, 29871, 29896, 29901, 13, 4706, 1596, 703, 4300, 29880, 630, 1426, 29901, 6571, 1642, 4830, 29898, 21652, 29918, 726, 29898, 9675, 29889, 19218, 29961, 29896, 29962, 4961, 13, 1678, 1683, 29901, 29871, 13, 4706, 1596, 703, 4300, 29880, 630, 1426, 29901, 6571, 1642, 4830, 29898, 21652, 29918, 726, 22130, 13, 2 ]
resources/character.py
WareDave/flaskRepo
0
1614194
<filename>resources/character.py from flask import Blueprint, jsonify, request from playhouse.shortcuts import model_to_dict from flask_login import current_user, login_required import models characters = Blueprint('characters', 'characters') print() # Index route @characters.route('/', methods=["GET"]) def get_all_characters(): try: characters = [model_to_dict(character) for character in models.Character.select().where(models.Character.loggedUser_id == current_user.id)] print(characters) for character in characters: character['loggedUser'].pop('password') return jsonify(data=characters, status={"code": 200, "message": "Success"}) except models.DoesNotExist: return jsonify(data={}, status={"code": 400, "message": "Error getting the resources"}) # Create route @characters.route('/', methods=["POST"]) @login_required def create_characters(): try: payload = request.get_json() payload['loggedUser'] = current_user.id character = models.Character.create(**payload) print(character.__dict__) character_dict = model_to_dict(character) return jsonify(data = character_dict, status = {"code": 201, "message": "Success"}) except models.DoesNotExist: return jsonify(data={}, status={"code": 400, "message": "Error creating the resources"}) # Show route @characters.route('/<id>', methods=["GET"]) def get_one_characters(id): try: character = models.Character.get_by_id(id) print(character) character_dict = model_to_dict(character) return jsonify(data = character_dict, status={"code": 200, "message": f"Found character with id {character.id}"}) except models.DoesNotExist: return jsonify(data={}, status={"code": 400, "message": "Error getting one resource"}) # Update route @characters.route('/<id>', methods=["PUT"]) def update_characters(id): try: payload = request.get_json() query = models.Character.update(**payload).where(models.Character.id == id) query.execute() updated_character = model_to_dict(models.Character.get_by_id(id)) return jsonify(data=updated_character, status={"code": 200, "message": f"Resourced updated successfully"}) except models.DoesNotExist: return jsonify(data={}, status={"code": 400, "message": "Error updating one resource"}) # Delete route @characters.route('/<id>', methods=["DELETE"]) def delete_character(id): try: query = models.Character.delete().where(models.Character.id == id) query.execute() return jsonify(data='Resource successfully deleted', status={"code": 200, "message": "Resource successfully deleted"}) except models.DoesNotExist: return jsonify(data={}, status={"code": 400, "message": "Error deleting resource"})
[ 1, 529, 9507, 29958, 13237, 29914, 18609, 29889, 2272, 13, 3166, 29784, 1053, 10924, 2158, 29892, 4390, 1598, 29892, 2009, 13, 3166, 1708, 8697, 29889, 12759, 7582, 29879, 1053, 1904, 29918, 517, 29918, 8977, 13, 3166, 29784, 29918, 7507, 1053, 1857, 29918, 1792, 29892, 6464, 29918, 12403, 13, 13, 5215, 4733, 13, 13, 3090, 21706, 353, 10924, 2158, 877, 3090, 21706, 742, 525, 3090, 21706, 1495, 13, 2158, 580, 13, 13, 29937, 11374, 5782, 13, 29992, 3090, 21706, 29889, 13134, 11219, 742, 3519, 29922, 3366, 7194, 20068, 13, 1753, 679, 29918, 497, 29918, 3090, 21706, 7295, 13, 1678, 1018, 29901, 13, 4706, 4890, 353, 518, 4299, 29918, 517, 29918, 8977, 29898, 18609, 29897, 363, 2931, 297, 4733, 29889, 20755, 29889, 2622, 2141, 3062, 29898, 9794, 29889, 20755, 29889, 1188, 3192, 2659, 29918, 333, 1275, 1857, 29918, 1792, 29889, 333, 4638, 13, 4706, 1596, 29898, 3090, 21706, 29897, 13, 4706, 363, 2931, 297, 4890, 29901, 13, 9651, 2931, 1839, 1188, 3192, 2659, 13359, 7323, 877, 5630, 1495, 13, 4706, 736, 4390, 1598, 29898, 1272, 29922, 3090, 21706, 29892, 4660, 3790, 29908, 401, 1115, 29871, 29906, 29900, 29900, 29892, 376, 4906, 1115, 376, 14191, 29908, 1800, 13, 1678, 5174, 4733, 29889, 25125, 3664, 1252, 391, 29901, 13, 4706, 736, 4390, 1598, 29898, 1272, 3790, 1118, 4660, 3790, 29908, 401, 1115, 29871, 29946, 29900, 29900, 29892, 376, 4906, 1115, 376, 2392, 2805, 278, 7788, 29908, 1800, 13, 13, 29937, 6204, 5782, 13, 29992, 3090, 21706, 29889, 13134, 11219, 742, 3519, 29922, 3366, 5438, 20068, 13, 29992, 7507, 29918, 12403, 13, 1753, 1653, 29918, 3090, 21706, 7295, 13, 1678, 1018, 29901, 13, 4706, 20092, 353, 2009, 29889, 657, 29918, 3126, 580, 13, 4706, 20092, 1839, 1188, 3192, 2659, 2033, 353, 1857, 29918, 1792, 29889, 333, 13, 4706, 2931, 353, 4733, 29889, 20755, 29889, 3258, 29898, 1068, 23813, 29897, 13, 4706, 1596, 29898, 18609, 17255, 8977, 1649, 29897, 13, 4706, 2931, 29918, 8977, 353, 1904, 29918, 517, 29918, 8977, 29898, 18609, 29897, 13, 13, 4706, 736, 4390, 1598, 29898, 1272, 353, 2931, 29918, 8977, 29892, 4660, 353, 8853, 401, 1115, 29871, 29906, 29900, 29896, 29892, 376, 4906, 1115, 376, 14191, 29908, 1800, 13, 1678, 5174, 4733, 29889, 25125, 3664, 1252, 391, 29901, 13, 4706, 736, 4390, 1598, 29898, 1272, 3790, 1118, 4660, 3790, 29908, 401, 1115, 29871, 29946, 29900, 29900, 29892, 376, 4906, 1115, 376, 2392, 4969, 278, 7788, 29908, 1800, 13, 13, 13, 29937, 7704, 5782, 13, 29992, 3090, 21706, 29889, 13134, 11219, 29966, 333, 29958, 742, 3519, 29922, 3366, 7194, 20068, 13, 1753, 679, 29918, 650, 29918, 3090, 21706, 29898, 333, 1125, 13, 1678, 1018, 29901, 13, 4706, 2931, 353, 4733, 29889, 20755, 29889, 657, 29918, 1609, 29918, 333, 29898, 333, 29897, 13, 4706, 1596, 29898, 18609, 29897, 13, 4706, 2931, 29918, 8977, 353, 1904, 29918, 517, 29918, 8977, 29898, 18609, 29897, 13, 4706, 736, 4390, 1598, 29898, 1272, 353, 2931, 29918, 8977, 29892, 4660, 3790, 29908, 401, 1115, 29871, 29906, 29900, 29900, 29892, 376, 4906, 1115, 285, 29908, 9692, 2931, 411, 1178, 426, 18609, 29889, 333, 5038, 1800, 13, 1678, 5174, 4733, 29889, 25125, 3664, 1252, 391, 29901, 13, 4706, 736, 4390, 1598, 29898, 1272, 3790, 1118, 4660, 3790, 29908, 401, 1115, 29871, 29946, 29900, 29900, 29892, 376, 4906, 1115, 376, 2392, 2805, 697, 6503, 29908, 1800, 13, 13, 29937, 10318, 5782, 13, 29992, 3090, 21706, 29889, 13134, 11219, 29966, 333, 29958, 742, 3519, 29922, 3366, 12336, 20068, 13, 1753, 2767, 29918, 3090, 21706, 29898, 333, 1125, 13, 1678, 1018, 29901, 13, 4706, 20092, 353, 2009, 29889, 657, 29918, 3126, 580, 13, 4706, 2346, 353, 4733, 29889, 20755, 29889, 5504, 29898, 1068, 23813, 467, 3062, 29898, 9794, 29889, 20755, 29889, 333, 1275, 1178, 29897, 13, 4706, 2346, 29889, 7978, 580, 13, 4706, 4784, 29918, 18609, 353, 1904, 29918, 517, 29918, 8977, 29898, 9794, 29889, 20755, 29889, 657, 29918, 1609, 29918, 333, 29898, 333, 876, 13, 4706, 736, 4390, 1598, 29898, 1272, 29922, 21402, 29918, 18609, 29892, 4660, 3790, 29908, 401, 1115, 29871, 29906, 29900, 29900, 29892, 376, 4906, 1115, 285, 29908, 1666, 473, 1133, 4784, 8472, 29908, 1800, 13, 1678, 5174, 4733, 29889, 25125, 3664, 1252, 391, 29901, 13, 4706, 736, 4390, 1598, 29898, 1272, 3790, 1118, 4660, 3790, 29908, 401, 1115, 29871, 29946, 29900, 29900, 29892, 376, 4906, 1115, 376, 2392, 13271, 697, 6503, 29908, 1800, 13, 13, 13, 29937, 21267, 5782, 13, 29992, 3090, 21706, 29889, 13134, 11219, 29966, 333, 29958, 742, 3519, 29922, 3366, 2287, 18476, 20068, 13, 1753, 5217, 29918, 18609, 29898, 333, 1125, 13, 1678, 1018, 29901, 13, 4706, 2346, 353, 4733, 29889, 20755, 29889, 8143, 2141, 3062, 29898, 9794, 29889, 20755, 29889, 333, 1275, 1178, 29897, 13, 4706, 2346, 29889, 7978, 580, 13, 4706, 736, 4390, 1598, 29898, 1272, 2433, 6848, 8472, 11132, 742, 4660, 3790, 29908, 401, 1115, 29871, 29906, 29900, 29900, 29892, 376, 4906, 1115, 376, 6848, 8472, 11132, 29908, 1800, 13, 1678, 5174, 4733, 29889, 25125, 3664, 1252, 391, 29901, 13, 4706, 736, 4390, 1598, 29898, 1272, 3790, 1118, 4660, 3790, 29908, 401, 1115, 29871, 29946, 29900, 29900, 29892, 376, 4906, 1115, 376, 2392, 21228, 6503, 29908, 1800, 13, 2 ]
classifier/crossValClass.py
alexander7161/FaceGen
1
82421
<reponame>alexander7161/FaceGen from datasets import load_csv from tensorflow.keras.preprocessing.image import ImageDataGenerator import constants import numpy as np import random import pandas as pd from datasets import get_testing_data # Class for cross validation class CrossVal(object): # Shuffle data using random def shuffleData(self, data): return data.sample(frac=1).reset_index(drop=True) # Splits data into K splits with k folds. def createSplits(self, shuffledData, folds): # Split list x into k lists def foldList(x, k): return [x.loc[i::k] for i in range(k)] splits = foldList(shuffledData, folds) return splits def getSplit(self, i, splits): # Copy folds to temporary variable. splitsCopy = splits[:] # Take the ith fold as test data. test = splitsCopy[i] # Remove test data from folds. splitsCopy.pop(i) # concat the remaining data as training data. train = pd.concat(splitsCopy) return train, test # Take ith fold as test data. # Train a classifier with the remaining data. # return the accuracy of the given classifier. def getAccuracy(self, classifier, i, splits, columns, epochs, run_name): train, test = self.getSplit(i, splits) datagen = ImageDataGenerator(rescale=1./255, shear_range=0.2, zoom_range=0.2, horizontal_flip=True) batch_size = 32 train_generator = datagen.flow_from_dataframe( dataframe=train, directory="./face_data/age_gender", x_col="filename", y_col=columns, target_size=( constants.IMG_HEIGHT, constants.IMG_WIDTH), batch_size=batch_size, class_mode='raw', seed=1) validation_generator = datagen.flow_from_dataframe( dataframe=test, directory="./face_data/age_gender", x_col="filename", y_col=columns, target_size=( constants.IMG_HEIGHT, constants.IMG_WIDTH), batch_size=batch_size, class_mode='raw', seed=1) c = classifier(outputs=4, run_name=run_name) # Train classifier on training data. c.fit(train_generator, validation_generator, columns, epochs) # Get accuracy for the test data. test_generator, columns = get_testing_data("overall") loss, accuracy = c.evaluate(test_generator) return accuracy # Perfoms K-fold cross validation on the provided data and classifier. # Returns accuracy and standard deviation of accuracies. def trainTestSplit(self, classifier, run_name, epochs=30, folds=10): ffhq_data, columns = load_csv("./face_data/age_gender/labels.csv") shuffledData = self.shuffleData(ffhq_data) # Split data into K folds splits = self.createSplits(shuffledData, folds) # Collect accuracies for each fold. accuracies = [self.getAccuracy(classifier, i, splits, columns, epochs, "%s/%d" % (run_name, i)) for i in range(folds)] # Compute mean accuracy. accuracy = np.mean(accuracies) std = np.std(accuracies) return accuracy, std
[ 1, 529, 276, 1112, 420, 29958, 744, 29916, 3825, 29955, 29896, 29953, 29896, 29914, 23360, 15462, 13, 3166, 20035, 1053, 2254, 29918, 7638, 13, 3166, 26110, 29889, 3946, 294, 29889, 1457, 19170, 29889, 3027, 1053, 7084, 1469, 21575, 13, 5215, 17727, 13, 5215, 12655, 408, 7442, 13, 5215, 4036, 13, 5215, 11701, 408, 10518, 13, 3166, 20035, 1053, 679, 29918, 13424, 29918, 1272, 13, 13, 29937, 4134, 363, 4891, 8845, 13, 13, 13, 1990, 11189, 1440, 29898, 3318, 1125, 13, 13, 1678, 396, 1383, 21897, 848, 773, 4036, 13, 1678, 822, 528, 21897, 1469, 29898, 1311, 29892, 848, 1125, 13, 4706, 736, 848, 29889, 11249, 29898, 1154, 29922, 29896, 467, 12071, 29918, 2248, 29898, 8865, 29922, 5574, 29897, 13, 13, 1678, 396, 317, 572, 1169, 848, 964, 476, 8536, 1169, 411, 413, 900, 6289, 29889, 13, 1678, 822, 1653, 29903, 572, 1169, 29898, 1311, 29892, 528, 3096, 839, 1469, 29892, 900, 6289, 1125, 13, 4706, 396, 26178, 1051, 921, 964, 413, 8857, 13, 4706, 822, 900, 29881, 1293, 29898, 29916, 29892, 413, 1125, 13, 9651, 736, 518, 29916, 29889, 2029, 29961, 29875, 1057, 29895, 29962, 363, 474, 297, 3464, 29898, 29895, 4638, 13, 13, 4706, 8536, 1169, 353, 900, 29881, 1293, 29898, 845, 3096, 839, 1469, 29892, 900, 6289, 29897, 13, 13, 4706, 736, 8536, 1169, 13, 13, 1678, 822, 679, 18772, 29898, 1311, 29892, 474, 29892, 8536, 1169, 1125, 13, 4706, 396, 14187, 900, 6289, 304, 13201, 2286, 29889, 13, 4706, 8536, 1169, 11882, 353, 8536, 1169, 7503, 29962, 13, 4706, 396, 11190, 278, 372, 29882, 900, 29881, 408, 1243, 848, 29889, 13, 4706, 1243, 353, 8536, 1169, 11882, 29961, 29875, 29962, 13, 4706, 396, 15154, 1243, 848, 515, 900, 6289, 29889, 13, 4706, 8536, 1169, 11882, 29889, 7323, 29898, 29875, 29897, 13, 4706, 396, 3022, 271, 278, 9886, 848, 408, 6694, 848, 29889, 13, 4706, 7945, 353, 10518, 29889, 17685, 29898, 23579, 1169, 11882, 29897, 13, 13, 4706, 736, 7945, 29892, 1243, 13, 13, 1678, 396, 11190, 372, 29882, 900, 29881, 408, 1243, 848, 29889, 13, 1678, 396, 28186, 263, 770, 3709, 411, 278, 9886, 848, 29889, 13, 1678, 396, 736, 278, 13600, 310, 278, 2183, 770, 3709, 29889, 13, 1678, 822, 679, 7504, 332, 4135, 29898, 1311, 29892, 770, 3709, 29892, 474, 29892, 8536, 1169, 29892, 4341, 29892, 21502, 12168, 29892, 1065, 29918, 978, 1125, 13, 4706, 7945, 29892, 1243, 353, 1583, 29889, 657, 18772, 29898, 29875, 29892, 8536, 1169, 29897, 13, 13, 4706, 1418, 5370, 353, 7084, 1469, 21575, 29898, 690, 29883, 744, 29922, 29896, 6904, 29906, 29945, 29945, 29892, 13, 462, 462, 268, 1183, 279, 29918, 3881, 29922, 29900, 29889, 29906, 29892, 13, 462, 462, 268, 19342, 29918, 3881, 29922, 29900, 29889, 29906, 29892, 13, 462, 462, 268, 14698, 29918, 29888, 3466, 29922, 5574, 29897, 13, 13, 4706, 9853, 29918, 2311, 353, 29871, 29941, 29906, 13, 13, 4706, 7945, 29918, 27959, 353, 1418, 5370, 29889, 1731, 29918, 3166, 29918, 1272, 2557, 29898, 13, 9651, 12205, 29922, 14968, 29892, 13, 9651, 3884, 543, 6904, 2161, 29918, 1272, 29914, 482, 29918, 26098, 613, 13, 9651, 921, 29918, 1054, 543, 9507, 613, 13, 9651, 343, 29918, 1054, 29922, 13099, 29892, 13, 9651, 3646, 29918, 2311, 7607, 13, 18884, 17727, 29889, 7833, 29954, 29918, 9606, 22530, 29892, 17727, 29889, 7833, 29954, 29918, 22574, 511, 13, 9651, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29892, 13, 9651, 770, 29918, 8513, 2433, 1610, 742, 13, 9651, 16717, 29922, 29896, 29897, 13, 13, 4706, 8845, 29918, 27959, 353, 1418, 5370, 29889, 1731, 29918, 3166, 29918, 1272, 2557, 29898, 13, 9651, 12205, 29922, 1688, 29892, 13, 9651, 3884, 543, 6904, 2161, 29918, 1272, 29914, 482, 29918, 26098, 613, 13, 9651, 921, 29918, 1054, 543, 9507, 613, 13, 9651, 343, 29918, 1054, 29922, 13099, 29892, 13, 9651, 3646, 29918, 2311, 7607, 13, 18884, 17727, 29889, 7833, 29954, 29918, 9606, 22530, 29892, 17727, 29889, 7833, 29954, 29918, 22574, 511, 13, 9651, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29892, 13, 9651, 770, 29918, 8513, 2433, 1610, 742, 13, 9651, 16717, 29922, 29896, 29897, 13, 13, 4706, 274, 353, 770, 3709, 29898, 4905, 29879, 29922, 29946, 29892, 1065, 29918, 978, 29922, 3389, 29918, 978, 29897, 13, 4706, 396, 28186, 770, 3709, 373, 6694, 848, 29889, 13, 4706, 274, 29889, 9202, 29898, 14968, 29918, 27959, 29892, 8845, 29918, 27959, 29892, 4341, 29892, 21502, 12168, 29897, 13, 4706, 396, 3617, 13600, 363, 278, 1243, 848, 29889, 13, 4706, 1243, 29918, 27959, 29892, 4341, 353, 679, 29918, 13424, 29918, 1272, 703, 957, 497, 1159, 13, 4706, 6410, 29892, 13600, 353, 274, 29889, 24219, 403, 29898, 1688, 29918, 27959, 29897, 13, 4706, 736, 13600, 13, 13, 1678, 396, 2431, 29888, 4835, 476, 29899, 8771, 4891, 8845, 373, 278, 4944, 848, 322, 770, 3709, 29889, 13, 1678, 396, 16969, 13600, 322, 3918, 29522, 310, 1035, 2002, 2478, 29889, 13, 1678, 822, 7945, 3057, 18772, 29898, 1311, 29892, 770, 3709, 29892, 1065, 29918, 978, 29892, 21502, 12168, 29922, 29941, 29900, 29892, 900, 6289, 29922, 29896, 29900, 1125, 13, 4706, 14336, 29882, 29939, 29918, 1272, 29892, 4341, 353, 2254, 29918, 7638, 703, 6904, 2161, 29918, 1272, 29914, 482, 29918, 26098, 29914, 21134, 29889, 7638, 1159, 13, 13, 4706, 528, 3096, 839, 1469, 353, 1583, 29889, 845, 21897, 1469, 29898, 600, 29882, 29939, 29918, 1272, 29897, 13, 13, 4706, 396, 26178, 848, 964, 476, 900, 6289, 13, 4706, 8536, 1169, 353, 1583, 29889, 3258, 29903, 572, 1169, 29898, 845, 3096, 839, 1469, 29892, 900, 6289, 29897, 13, 13, 4706, 396, 24930, 1035, 2002, 2478, 363, 1269, 900, 29881, 29889, 13, 4706, 1035, 2002, 2478, 353, 518, 1311, 29889, 657, 7504, 332, 4135, 29898, 1990, 3709, 29892, 474, 29892, 8536, 1169, 29892, 4341, 29892, 21502, 12168, 29892, 11860, 29879, 22584, 29881, 29908, 1273, 313, 3389, 29918, 978, 29892, 474, 876, 13, 462, 418, 363, 474, 297, 3464, 29898, 29888, 3361, 4638, 13, 13, 4706, 396, 11796, 29872, 2099, 13600, 29889, 13, 4706, 13600, 353, 7442, 29889, 12676, 29898, 5753, 2002, 2478, 29897, 13, 4706, 3659, 353, 7442, 29889, 4172, 29898, 5753, 2002, 2478, 29897, 13, 4706, 736, 13600, 29892, 3659, 13, 2 ]
pyit/cops/tab_indentation.py
ysv/pyit
0
152275
from pyit.cop import IRawFileCop, Cop from pyit.offence import Offence class TabIndentationCop(Cop): COP_CONFIG = {} TAB_INDENT = '\t' __implements__ = [IRawFileCop] offences = [] def __init__(self, cop_conf=None): if cop_conf is None: self.cop_conf = {**self.DEFAULT_CONFIG, **self.COP_CONFIG} else: self.cop_conf = {**self.DEFAULT_CONFIG, **self.COP_CONFIG, **cop_conf} @classmethod def name(cls): return 'tab_indentation_cop' def process_file(self, lines, filename): if not self.processable(): return for i, line in enumerate(lines): tab_index = line.find(self.TAB_INDENT) if tab_index != -1: off = Offence( cop_name=self.name(), location=(i + 1, tab_index), message="Indentation contains tab.", filename=filename, severity='warning' ) self.offences.append(off)
[ 1, 515, 11451, 277, 29889, 9708, 1053, 306, 22131, 2283, 29907, 459, 29892, 10061, 13, 3166, 11451, 277, 29889, 2696, 663, 1053, 5947, 663, 13, 13, 13, 1990, 11090, 2568, 9233, 29907, 459, 29898, 29907, 459, 1125, 13, 13, 1678, 315, 4590, 29918, 25903, 353, 6571, 13, 13, 1678, 323, 2882, 29918, 22255, 3919, 353, 11297, 29873, 29915, 13, 13, 1678, 4770, 326, 9711, 1649, 353, 518, 8193, 1450, 2283, 29907, 459, 29962, 13, 1678, 1283, 2063, 353, 5159, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5614, 29918, 5527, 29922, 8516, 1125, 13, 4706, 565, 5614, 29918, 5527, 338, 6213, 29901, 13, 9651, 1583, 29889, 9708, 29918, 5527, 353, 426, 1068, 1311, 29889, 23397, 29918, 25903, 29892, 3579, 1311, 29889, 3217, 29925, 29918, 25903, 29913, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 9708, 29918, 5527, 353, 426, 1068, 1311, 29889, 23397, 29918, 25903, 29892, 3579, 1311, 29889, 3217, 29925, 29918, 25903, 29892, 3579, 9708, 29918, 5527, 29913, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 1024, 29898, 25932, 1125, 13, 4706, 736, 525, 3891, 29918, 513, 9233, 29918, 9708, 29915, 13, 13, 1678, 822, 1889, 29918, 1445, 29898, 1311, 29892, 3454, 29892, 10422, 1125, 13, 4706, 565, 451, 1583, 29889, 5014, 519, 7295, 13, 9651, 736, 13, 13, 4706, 363, 474, 29892, 1196, 297, 26985, 29898, 9012, 1125, 13, 9651, 4434, 29918, 2248, 353, 1196, 29889, 2886, 29898, 1311, 29889, 29911, 2882, 29918, 22255, 3919, 29897, 13, 9651, 565, 4434, 29918, 2248, 2804, 448, 29896, 29901, 13, 18884, 1283, 353, 5947, 663, 29898, 13, 462, 1678, 5614, 29918, 978, 29922, 1311, 29889, 978, 3285, 13, 462, 1678, 4423, 7607, 29875, 718, 29871, 29896, 29892, 4434, 29918, 2248, 511, 13, 462, 1678, 2643, 543, 2568, 9233, 3743, 4434, 19602, 13, 462, 1678, 10422, 29922, 9507, 29892, 13, 462, 1678, 2775, 537, 2433, 27392, 29915, 13, 18884, 1723, 13, 18884, 1583, 29889, 2696, 2063, 29889, 4397, 29898, 2696, 29897, 13, 2 ]
prep_scripts/depth/demo.py
nhh1501/SynthText-vietnamese
0
83279
<gh_stars>0 import argparse import torch import torch.nn.parallel from models import modules, net, resnet, densenet, senet import numpy as np import loaddata_demo as loaddata import pdb import matplotlib.image import matplotlib.pyplot as plt plt.set_cmap("jet") def define_model(is_resnet, is_densenet, is_senet): if is_resnet: original_model = resnet.resnet50(pretrained = True) Encoder = modules.E_resnet(original_model) model = net.model(Encoder, num_features=2048, block_channel = [256, 512, 1024, 2048]) if is_densenet: original_model = densenet.densenet161(pretrained=True) Encoder = modules.E_densenet(original_model) model = net.model(Encoder, num_features=2208, block_channel = [192, 384, 1056, 2208]) if is_senet: original_model = senet.senet154(pretrained='imagenet') Encoder = modules.E_senet(original_model) model = net.model(Encoder, num_features=2048, block_channel = [256, 512, 1024, 2048]) return model def main(): model = define_model(is_resnet=False, is_densenet=False, is_senet=True) model = torch.nn.DataParallel(model).cuda() model.load_state_dict(torch.load('./pretrained_model/model_senet')) model.eval() nyu2_loader = loaddata.readNyu2('data/demo/img_nyu2.png') test(nyu2_loader, model) def test(nyu2_loader, model): for i, image in enumerate(nyu2_loader): image = torch.autograd.Variable(image, volatile=True).cuda() out = model(image) matplotlib.image.imsave('data/demo/out.png', out.view(out.size(2),out.size(3)).data.cpu().numpy()) if __name__ == '__main__': main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 1852, 5510, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 29889, 23482, 13, 13, 3166, 4733, 1053, 10585, 29892, 7787, 29892, 620, 1212, 29892, 6245, 264, 300, 29892, 6940, 300, 13, 5215, 12655, 408, 7442, 13, 5215, 658, 1202, 532, 29918, 17482, 408, 658, 1202, 532, 13, 5215, 282, 2585, 13, 13, 5215, 22889, 29889, 3027, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 572, 29873, 29889, 842, 29918, 29883, 1958, 703, 4026, 1159, 13, 13, 13, 1753, 4529, 29918, 4299, 29898, 275, 29918, 690, 1212, 29892, 338, 29918, 29881, 14762, 300, 29892, 338, 29918, 4881, 300, 1125, 13, 1678, 565, 338, 29918, 690, 1212, 29901, 13, 4706, 2441, 29918, 4299, 353, 620, 1212, 29889, 690, 1212, 29945, 29900, 29898, 1457, 3018, 1312, 353, 5852, 29897, 13, 4706, 11346, 6119, 353, 10585, 29889, 29923, 29918, 690, 1212, 29898, 13492, 29918, 4299, 29897, 13, 4706, 1904, 353, 7787, 29889, 4299, 29898, 8566, 6119, 29892, 954, 29918, 22100, 29922, 29906, 29900, 29946, 29947, 29892, 2908, 29918, 12719, 353, 518, 29906, 29945, 29953, 29892, 29871, 29945, 29896, 29906, 29892, 29871, 29896, 29900, 29906, 29946, 29892, 29871, 29906, 29900, 29946, 29947, 2314, 13, 1678, 565, 338, 29918, 29881, 14762, 300, 29901, 13, 4706, 2441, 29918, 4299, 353, 6245, 264, 300, 29889, 29881, 14762, 300, 29896, 29953, 29896, 29898, 1457, 3018, 1312, 29922, 5574, 29897, 13, 4706, 11346, 6119, 353, 10585, 29889, 29923, 29918, 29881, 14762, 300, 29898, 13492, 29918, 4299, 29897, 13, 4706, 1904, 353, 7787, 29889, 4299, 29898, 8566, 6119, 29892, 954, 29918, 22100, 29922, 29906, 29906, 29900, 29947, 29892, 2908, 29918, 12719, 353, 518, 29896, 29929, 29906, 29892, 29871, 29941, 29947, 29946, 29892, 29871, 29896, 29900, 29945, 29953, 29892, 29871, 29906, 29906, 29900, 29947, 2314, 13, 1678, 565, 338, 29918, 4881, 300, 29901, 13, 4706, 2441, 29918, 4299, 353, 6940, 300, 29889, 4881, 300, 29896, 29945, 29946, 29898, 1457, 3018, 1312, 2433, 326, 5370, 300, 1495, 13, 4706, 11346, 6119, 353, 10585, 29889, 29923, 29918, 4881, 300, 29898, 13492, 29918, 4299, 29897, 13, 4706, 1904, 353, 7787, 29889, 4299, 29898, 8566, 6119, 29892, 954, 29918, 22100, 29922, 29906, 29900, 29946, 29947, 29892, 2908, 29918, 12719, 353, 518, 29906, 29945, 29953, 29892, 29871, 29945, 29896, 29906, 29892, 29871, 29896, 29900, 29906, 29946, 29892, 29871, 29906, 29900, 29946, 29947, 2314, 13, 13, 1678, 736, 1904, 13, 1678, 13, 13, 1753, 1667, 7295, 13, 1678, 1904, 353, 4529, 29918, 4299, 29898, 275, 29918, 690, 1212, 29922, 8824, 29892, 338, 29918, 29881, 14762, 300, 29922, 8824, 29892, 338, 29918, 4881, 300, 29922, 5574, 29897, 13, 1678, 1904, 353, 4842, 305, 29889, 15755, 29889, 1469, 2177, 6553, 29898, 4299, 467, 29883, 6191, 580, 13, 1678, 1904, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 7345, 305, 29889, 1359, 877, 6904, 1457, 3018, 1312, 29918, 4299, 29914, 4299, 29918, 4881, 300, 8785, 13, 1678, 1904, 29889, 14513, 580, 13, 13, 1678, 7098, 29884, 29906, 29918, 12657, 353, 658, 1202, 532, 29889, 949, 29940, 29891, 29884, 29906, 877, 1272, 29914, 17482, 29914, 2492, 29918, 1460, 29884, 29906, 29889, 2732, 1495, 13, 259, 13, 1678, 1243, 29898, 1460, 29884, 29906, 29918, 12657, 29892, 1904, 29897, 13, 13, 13, 1753, 1243, 29898, 1460, 29884, 29906, 29918, 12657, 29892, 1904, 1125, 13, 1678, 363, 474, 29892, 1967, 297, 26985, 29898, 1460, 29884, 29906, 29918, 12657, 1125, 418, 13, 4706, 1967, 353, 4842, 305, 29889, 1300, 468, 3665, 29889, 16174, 29898, 3027, 29892, 1700, 24285, 29922, 5574, 467, 29883, 6191, 580, 13, 4706, 714, 353, 1904, 29898, 3027, 29897, 13, 308, 13, 4706, 22889, 29889, 3027, 29889, 326, 7620, 877, 1272, 29914, 17482, 29914, 449, 29889, 2732, 742, 714, 29889, 1493, 29898, 449, 29889, 2311, 29898, 29906, 511, 449, 29889, 2311, 29898, 29941, 8106, 1272, 29889, 21970, 2141, 23749, 3101, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
integreat_cms/sitemap/views.py
Carlosbogo/integreat-cms
1
131898
<reponame>Carlosbogo/integreat-cms """ This module contains views for generating the sitemap dynamically. The views are class-based patches of the inbuilt views :func:`~django.contrib.sitemaps.views.index` and :func:`~django.contrib.sitemaps.views.sitemap` of the :mod:`django.contrib.sitemaps` :doc:`django:ref/contrib/sitemaps`. """ import logging from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.http import Http404 from django.shortcuts import get_object_or_404 from django.urls import reverse from django.utils.http import http_date from django.views.generic.base import TemplateResponseMixin, View from ..cms.constants import region_status from ..cms.models import Region from .utils import get_sitemaps logger = logging.getLogger(__name__) class SitemapIndexView(TemplateResponseMixin, View): """ This view allows to generate a sitemap index dynamically. It is a patched version of :func:`django.contrib.sitemaps.views.index` with the following changes: * Sitemaps dynamically queried on each request, not on the application startup * :attr:`~integreat_cms.core.settings.WEBAPP_URL` is used for the domain instead of the host of the sitemap * Empty sitemaps are not included in the index """ #: The template to render (see :class:`~django.views.generic.base.TemplateResponseMixin`) template_name = "sitemap_index.xml" #: The content type to use for the response (see :class:`~django.views.generic.base.TemplateResponseMixin`) content_type = "application/xml" def get(self, request, *args, **kwargs): """ This function handles a get request :param request: The current request :type request: ~django.http.HttpRequest :param args: The supplied args :type args: list :param kwargs: The supplied keyword args :type kwargs: dict :return: The rendered template response :rtype: ~django.template.response.TemplateResponse """ logger.debug("Sitemap index requested with args %r and kwargs %r", args, kwargs) sitemaps = [] # Only add active regions to the sitemap index for region in Region.objects.filter(status=region_status.ACTIVE): # Only add active languages to the sitemap index for language_tree_node in region.language_tree_nodes.filter(active=True): # Only add sitemaps with actual content (empty list evaluates to False) if get_sitemaps(region, language_tree_node.language): sitemap_url = reverse( "sitemap", kwargs={ "region_slug": region.slug, "language_slug": language_tree_node.slug, }, ) absolute_url = f"{settings.WEBAPP_URL}{sitemap_url}" sitemaps.append(absolute_url) logger.debug("Sitemap index: %r", sitemaps) return self.render_to_response({"sitemaps": sitemaps}) class SitemapView(TemplateResponseMixin, View): """ This view allows to generate a sitemap dynamically. A sitemap contains the urls of multiple :class:`~integreat_cms.sitemap.sitemaps.WebappSitemap` instances, one for each content type. It is a patched version of :func:`django.contrib.sitemaps.views.sitemap` with the following changes: * Sitemaps dynamically queried on each request, not on the application startup * HTTP 404 returned if sitemap is empty * Support for pagination was dropped (only needed with more than 50000 urls per region and language) """ #: The template to render (see :class:`~django.views.generic.base.TemplateResponseMixin`) template_name = "sitemap.xml" #: The content type to use for the response (see :class:`~django.views.generic.base.TemplateResponseMixin`) content_type = "application/xml" def get(self, request, *args, **kwargs): """ This function handles a get request :param request: The current request :type request: ~django.http.HttpRequest :param args: The supplied args :type args: list :param kwargs: The supplied keyword args (should contain ``region_slug`` and ``language_slug``) :type kwargs: dict :raises ~django.http.Http404: Raises a HTTP 404 if the either the region or language does not exist or is invalid or if the sitemap is empty. :return: The rendered template response :rtype: ~django.template.response.TemplateResponse """ logger.debug("Sitemap requested with args %r and kwargs %r", args, kwargs) # Only return a sitemap if the region is active region = get_object_or_404( Region, slug=kwargs.get("region_slug"), status=region_status.ACTIVE ) # Only return a sitemap if the language is active language = get_object_or_404( region.language_tree_nodes, language__slug=kwargs.get("language_slug"), active=True, ).language sitemaps = get_sitemaps(region, language) # Only return a sitemap if it contains any elements if not sitemaps: raise Http404 # Join the lists of all urls of all sitemaps urls = sum( [sitemap.get_urls(site=get_current_site(request)) for sitemap in sitemaps], [], ) # Pick the latest last_modified if all sitemaps last_modified = max([sitemap.latest_lastmod for sitemap in sitemaps]) logger.debug("Sitemap urls %r", urls) response = self.render_to_response({"urlset": urls}) response["Last-Modified"] = http_date(last_modified.timestamp()) return response
[ 1, 529, 276, 1112, 420, 29958, 8179, 5409, 29890, 10482, 29914, 6693, 7979, 271, 29899, 29883, 1516, 13, 15945, 29908, 13, 4013, 3883, 3743, 8386, 363, 14655, 278, 269, 667, 481, 11200, 29889, 13, 1576, 8386, 526, 770, 29899, 6707, 13261, 267, 310, 278, 297, 16145, 8386, 584, 9891, 18078, 30022, 14095, 29889, 21570, 29889, 29879, 667, 2547, 29889, 7406, 29889, 2248, 29952, 322, 13, 29901, 9891, 18078, 30022, 14095, 29889, 21570, 29889, 29879, 667, 2547, 29889, 7406, 29889, 29879, 667, 481, 29952, 310, 278, 584, 1545, 18078, 14095, 29889, 21570, 29889, 29879, 667, 2547, 29952, 584, 1514, 18078, 14095, 29901, 999, 29914, 21570, 29914, 29879, 667, 2547, 1412, 13, 15945, 29908, 13, 5215, 12183, 13, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 21570, 29889, 16315, 29889, 12759, 7582, 29879, 1053, 679, 29918, 3784, 29918, 2746, 13, 3166, 9557, 29889, 1124, 1053, 9056, 29946, 29900, 29946, 13, 3166, 9557, 29889, 12759, 7582, 29879, 1053, 679, 29918, 3318, 29918, 272, 29918, 29946, 29900, 29946, 13, 3166, 9557, 29889, 26045, 1053, 11837, 13, 3166, 9557, 29889, 13239, 29889, 1124, 1053, 1732, 29918, 1256, 13, 3166, 9557, 29889, 7406, 29889, 19206, 29889, 3188, 1053, 25663, 5103, 29924, 861, 262, 29892, 4533, 13, 13, 13, 3166, 6317, 29883, 1516, 29889, 3075, 1934, 1053, 5120, 29918, 4882, 13, 3166, 6317, 29883, 1516, 29889, 9794, 1053, 11069, 13, 13, 3166, 869, 13239, 1053, 679, 29918, 29879, 667, 2547, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 1990, 317, 667, 481, 3220, 1043, 29898, 6733, 5103, 29924, 861, 262, 29892, 4533, 1125, 13, 1678, 9995, 13, 1678, 910, 1776, 6511, 304, 5706, 263, 269, 667, 481, 2380, 11200, 29889, 13, 1678, 739, 338, 263, 13261, 287, 1873, 310, 584, 9891, 18078, 14095, 29889, 21570, 29889, 29879, 667, 2547, 29889, 7406, 29889, 2248, 29952, 411, 278, 1494, 3620, 29901, 13, 13, 1678, 334, 317, 667, 2547, 11200, 22320, 1000, 373, 1269, 2009, 29892, 451, 373, 278, 2280, 20234, 13, 1678, 334, 584, 5552, 18078, 30022, 6693, 7979, 271, 29918, 29883, 1516, 29889, 3221, 29889, 11027, 29889, 8851, 29933, 20576, 29918, 4219, 29952, 338, 1304, 363, 278, 5354, 2012, 310, 278, 3495, 310, 278, 269, 667, 481, 13, 1678, 334, 2812, 2349, 269, 667, 2547, 526, 451, 5134, 297, 278, 2380, 13, 1678, 9995, 13, 13, 1678, 396, 29901, 450, 4472, 304, 4050, 313, 4149, 584, 1990, 18078, 30022, 14095, 29889, 7406, 29889, 19206, 29889, 3188, 29889, 6733, 5103, 29924, 861, 262, 6348, 13, 1678, 4472, 29918, 978, 353, 376, 29879, 667, 481, 29918, 2248, 29889, 3134, 29908, 13, 1678, 396, 29901, 450, 2793, 1134, 304, 671, 363, 278, 2933, 313, 4149, 584, 1990, 18078, 30022, 14095, 29889, 7406, 29889, 19206, 29889, 3188, 29889, 6733, 5103, 29924, 861, 262, 6348, 13, 1678, 2793, 29918, 1853, 353, 376, 6214, 29914, 3134, 29908, 13, 13, 1678, 822, 679, 29898, 1311, 29892, 2009, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 910, 740, 17766, 263, 679, 2009, 13, 13, 4706, 584, 3207, 2009, 29901, 450, 1857, 2009, 13, 4706, 584, 1853, 2009, 29901, 3695, 14095, 29889, 1124, 29889, 26021, 13, 13, 4706, 584, 3207, 6389, 29901, 450, 19056, 6389, 13, 4706, 584, 1853, 6389, 29901, 1051, 13, 13, 4706, 584, 3207, 9049, 5085, 29901, 450, 19056, 13553, 6389, 13, 4706, 584, 1853, 9049, 5085, 29901, 9657, 13, 13, 4706, 584, 2457, 29901, 450, 13751, 4472, 2933, 13, 4706, 584, 29878, 1853, 29901, 3695, 14095, 29889, 6886, 29889, 5327, 29889, 6733, 5103, 13, 4706, 9995, 13, 13, 4706, 17927, 29889, 8382, 703, 29903, 667, 481, 2380, 13877, 411, 6389, 1273, 29878, 322, 9049, 5085, 1273, 29878, 613, 6389, 29892, 9049, 5085, 29897, 13, 13, 4706, 269, 667, 2547, 353, 5159, 13, 4706, 396, 9333, 788, 6136, 12786, 304, 278, 269, 667, 481, 2380, 13, 4706, 363, 5120, 297, 11069, 29889, 12650, 29889, 4572, 29898, 4882, 29922, 12803, 29918, 4882, 29889, 17923, 18474, 1125, 13, 9651, 396, 9333, 788, 6136, 10276, 304, 278, 269, 667, 481, 2380, 13, 9651, 363, 4086, 29918, 8336, 29918, 3177, 297, 5120, 29889, 11675, 29918, 8336, 29918, 18010, 29889, 4572, 29898, 4925, 29922, 5574, 1125, 13, 18884, 396, 9333, 788, 269, 667, 2547, 411, 3935, 2793, 313, 6310, 1051, 6161, 1078, 304, 7700, 29897, 13, 18884, 565, 679, 29918, 29879, 667, 2547, 29898, 12803, 29892, 4086, 29918, 8336, 29918, 3177, 29889, 11675, 1125, 13, 462, 1678, 269, 667, 481, 29918, 2271, 353, 11837, 29898, 13, 462, 4706, 376, 29879, 667, 481, 613, 13, 462, 4706, 9049, 5085, 3790, 13, 462, 9651, 376, 12803, 29918, 29517, 1115, 5120, 29889, 29517, 29892, 13, 462, 9651, 376, 11675, 29918, 29517, 1115, 4086, 29918, 8336, 29918, 3177, 29889, 29517, 29892, 13, 462, 4706, 2981, 13, 462, 1678, 1723, 13, 462, 1678, 8380, 29918, 2271, 353, 285, 29908, 29912, 11027, 29889, 8851, 29933, 20576, 29918, 4219, 1157, 29879, 667, 481, 29918, 2271, 5038, 13, 462, 1678, 269, 667, 2547, 29889, 4397, 29898, 23552, 29918, 2271, 29897, 13, 13, 4706, 17927, 29889, 8382, 703, 29903, 667, 481, 2380, 29901, 1273, 29878, 613, 269, 667, 2547, 29897, 13, 13, 4706, 736, 1583, 29889, 9482, 29918, 517, 29918, 5327, 3319, 29908, 29879, 667, 2547, 1115, 269, 667, 2547, 1800, 13, 13, 13, 1990, 317, 667, 481, 1043, 29898, 6733, 5103, 29924, 861, 262, 29892, 4533, 1125, 13, 1678, 9995, 13, 1678, 910, 1776, 6511, 304, 5706, 263, 269, 667, 481, 11200, 29889, 13, 1678, 319, 269, 667, 481, 3743, 278, 23942, 310, 2999, 584, 1990, 18078, 30022, 6693, 7979, 271, 29918, 29883, 1516, 29889, 29879, 667, 481, 29889, 29879, 667, 2547, 29889, 3609, 932, 29903, 667, 481, 29952, 8871, 29892, 697, 363, 1269, 2793, 1134, 29889, 13, 1678, 739, 338, 263, 13261, 287, 1873, 310, 584, 9891, 18078, 14095, 29889, 21570, 29889, 29879, 667, 2547, 29889, 7406, 29889, 29879, 667, 481, 29952, 411, 278, 1494, 3620, 29901, 13, 13, 1678, 334, 317, 667, 2547, 11200, 22320, 1000, 373, 1269, 2009, 29892, 451, 373, 278, 2280, 20234, 13, 1678, 334, 7331, 29871, 29946, 29900, 29946, 4133, 565, 269, 667, 481, 338, 4069, 13, 1678, 334, 18601, 363, 10203, 3381, 471, 13700, 313, 6194, 4312, 411, 901, 1135, 29871, 29945, 29900, 29900, 29900, 29900, 23942, 639, 5120, 322, 4086, 29897, 13, 1678, 9995, 13, 13, 1678, 396, 29901, 450, 4472, 304, 4050, 313, 4149, 584, 1990, 18078, 30022, 14095, 29889, 7406, 29889, 19206, 29889, 3188, 29889, 6733, 5103, 29924, 861, 262, 6348, 13, 1678, 4472, 29918, 978, 353, 376, 29879, 667, 481, 29889, 3134, 29908, 13, 1678, 396, 29901, 450, 2793, 1134, 304, 671, 363, 278, 2933, 313, 4149, 584, 1990, 18078, 30022, 14095, 29889, 7406, 29889, 19206, 29889, 3188, 29889, 6733, 5103, 29924, 861, 262, 6348, 13, 1678, 2793, 29918, 1853, 353, 376, 6214, 29914, 3134, 29908, 13, 13, 1678, 822, 679, 29898, 1311, 29892, 2009, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 910, 740, 17766, 263, 679, 2009, 13, 13, 4706, 584, 3207, 2009, 29901, 450, 1857, 2009, 13, 4706, 584, 1853, 2009, 29901, 3695, 14095, 29889, 1124, 29889, 26021, 13, 13, 4706, 584, 3207, 6389, 29901, 450, 19056, 6389, 13, 4706, 584, 1853, 6389, 29901, 1051, 13, 13, 4706, 584, 3207, 9049, 5085, 29901, 450, 19056, 13553, 6389, 313, 9344, 1712, 4954, 12803, 29918, 29517, 16159, 322, 4954, 11675, 29918, 29517, 29952, 6348, 13, 4706, 584, 1853, 9049, 5085, 29901, 9657, 13, 13, 4706, 584, 336, 4637, 3695, 14095, 29889, 1124, 29889, 5506, 29946, 29900, 29946, 29901, 390, 1759, 267, 263, 7331, 29871, 29946, 29900, 29946, 565, 278, 2845, 278, 5120, 470, 4086, 947, 451, 1863, 470, 338, 8340, 13, 462, 462, 418, 470, 565, 278, 269, 667, 481, 338, 4069, 29889, 13, 13, 4706, 584, 2457, 29901, 450, 13751, 4472, 2933, 13, 4706, 584, 29878, 1853, 29901, 3695, 14095, 29889, 6886, 29889, 5327, 29889, 6733, 5103, 13, 4706, 9995, 13, 13, 4706, 17927, 29889, 8382, 703, 29903, 667, 481, 13877, 411, 6389, 1273, 29878, 322, 9049, 5085, 1273, 29878, 613, 6389, 29892, 9049, 5085, 29897, 13, 13, 4706, 396, 9333, 736, 263, 269, 667, 481, 565, 278, 5120, 338, 6136, 13, 4706, 5120, 353, 679, 29918, 3318, 29918, 272, 29918, 29946, 29900, 29946, 29898, 13, 9651, 11069, 29892, 2243, 688, 29922, 19290, 29889, 657, 703, 12803, 29918, 29517, 4968, 4660, 29922, 12803, 29918, 4882, 29889, 17923, 18474, 13, 4706, 1723, 13, 4706, 396, 9333, 736, 263, 269, 667, 481, 565, 278, 4086, 338, 6136, 13, 4706, 4086, 353, 679, 29918, 3318, 29918, 272, 29918, 29946, 29900, 29946, 29898, 13, 9651, 5120, 29889, 11675, 29918, 8336, 29918, 18010, 29892, 13, 9651, 4086, 1649, 29517, 29922, 19290, 29889, 657, 703, 11675, 29918, 29517, 4968, 13, 9651, 6136, 29922, 5574, 29892, 13, 4706, 13742, 11675, 13, 13, 4706, 269, 667, 2547, 353, 679, 29918, 29879, 667, 2547, 29898, 12803, 29892, 4086, 29897, 13, 13, 4706, 396, 9333, 736, 263, 269, 667, 481, 565, 372, 3743, 738, 3161, 13, 4706, 565, 451, 269, 667, 2547, 29901, 13, 9651, 12020, 9056, 29946, 29900, 29946, 13, 13, 4706, 396, 3650, 262, 278, 8857, 310, 599, 23942, 310, 599, 269, 667, 2547, 13, 4706, 23942, 353, 2533, 29898, 13, 9651, 518, 29879, 667, 481, 29889, 657, 29918, 26045, 29898, 2746, 29922, 657, 29918, 3784, 29918, 2746, 29898, 3827, 876, 363, 269, 667, 481, 297, 269, 667, 2547, 1402, 13, 9651, 19997, 13, 4706, 1723, 13, 4706, 396, 23868, 278, 9281, 1833, 29918, 1545, 2164, 565, 599, 269, 667, 2547, 13, 4706, 1833, 29918, 1545, 2164, 353, 4236, 4197, 29879, 667, 481, 29889, 12333, 29918, 4230, 1545, 363, 269, 667, 481, 297, 269, 667, 2547, 2314, 13, 13, 4706, 17927, 29889, 8382, 703, 29903, 667, 481, 23942, 1273, 29878, 613, 23942, 29897, 13, 13, 4706, 2933, 353, 1583, 29889, 9482, 29918, 517, 29918, 5327, 3319, 29908, 2271, 842, 1115, 23942, 1800, 13, 4706, 2933, 3366, 8897, 29899, 2111, 2164, 3108, 353, 1732, 29918, 1256, 29898, 4230, 29918, 1545, 2164, 29889, 16394, 3101, 13, 4706, 736, 2933, 13, 2 ]
bioparser/msigdb.py
dhimmel/serg-pycode
0
119959
<reponame>dhimmel/serg-pycode import os import csv import data # http://www.broadinstitute.org/gsea/downloads.jsp abbrev_to_name = { 'c1.all': 'positional gene sets', 'c2.all': 'all curated gene sets', 'c2.cgp': 'chemical and genetic perturbations', 'c2.cp.all': 'all canonical pathways', 'c2.cp.biocarta': 'BioCarta gene sets', 'c2.cp.kegg': 'KEGG gene sets', 'c2.cp.reactome': 'Reactome gene sets', 'c3.all': 'all motif gene sets', 'c3.mir': 'microRNA targets', 'c3.tft': 'transcription factor targets', 'c4.all': 'all computational gene sets', 'c4.cgn': ' cancer gene neighborhoods', 'c4.cm': 'cancer modules', 'c5.all': 'all GO gene sets', 'c5.bp': 'GO biological processes', 'c5.cc': 'GO cellular components', 'c5.mf': 'GO molecular functions', 'c6.all': 'all oncogenic signatures gene sets', 'c7.all': 'all immunologic signatures gene sets' } class MSigDB(object): def __init__(self, directory=None): if directory is None: directory = data.current_path('msigdb') self.directory = directory self.abbrev_to_name = abbrev_to_name @staticmethod def gmt_row_generator(path): """ (name, description, members) """ read_file = open(path) reader = csv.reader(read_file, delimiter='\t') for row in reader: yield row[0], row[1], row[2:] read_file.close() def get_gmt_path(self, abbrev, version='v4.0', id_type='entrez'): filename = '{}.{}.{}.gmt'.format(abbrev, version, id_type) path = os.path.join(self.directory, filename) return path def gene_set_generator(self, abbrev): identifiers_to_genes = data.Data().hgnc.identifiers_to_genes path = self.get_gmt_path(abbrev, id_type='entrez') for name, description, members in self.gmt_row_generator(path): genes = identifiers_to_genes(members, id_type='entrez') yield name, description, genes if __name__ == '__main__': msigdb = MSigDB() for abbrev in abbrev_to_name.keys(): list(msigdb.gene_set_generator(abbrev))
[ 1, 529, 276, 1112, 420, 29958, 12744, 6727, 295, 29914, 643, 29887, 29899, 2272, 401, 13, 5215, 2897, 13, 5215, 11799, 13, 13, 5215, 848, 13, 13, 29937, 1732, 597, 1636, 29889, 6729, 328, 2611, 12356, 29889, 990, 29914, 29887, 344, 29874, 29914, 10382, 29879, 29889, 21318, 13, 370, 1030, 29894, 29918, 517, 29918, 978, 353, 426, 13, 1678, 525, 29883, 29896, 29889, 497, 2396, 525, 1066, 3245, 18530, 6166, 742, 13, 1678, 525, 29883, 29906, 29889, 497, 2396, 525, 497, 3151, 630, 18530, 6166, 742, 13, 1678, 525, 29883, 29906, 29889, 29883, 29887, 29886, 2396, 525, 14969, 936, 322, 2531, 7492, 22786, 800, 742, 13, 1678, 525, 29883, 29906, 29889, 6814, 29889, 497, 2396, 525, 497, 24420, 2224, 1994, 742, 13, 1678, 525, 29883, 29906, 29889, 6814, 29889, 5365, 542, 16979, 2396, 525, 29933, 601, 29907, 16979, 18530, 6166, 742, 13, 1678, 525, 29883, 29906, 29889, 6814, 29889, 29895, 387, 29887, 2396, 525, 6059, 26788, 18530, 6166, 742, 13, 1678, 525, 29883, 29906, 29889, 6814, 29889, 8423, 608, 2396, 525, 1123, 627, 608, 18530, 6166, 742, 13, 1678, 525, 29883, 29941, 29889, 497, 2396, 525, 497, 3184, 361, 18530, 6166, 742, 13, 1678, 525, 29883, 29941, 29889, 11038, 2396, 525, 29885, 2357, 29934, 3521, 22525, 742, 13, 1678, 525, 29883, 29941, 29889, 29873, 615, 2396, 525, 3286, 3395, 7329, 22525, 742, 13, 1678, 525, 29883, 29946, 29889, 497, 2396, 525, 497, 26845, 18530, 6166, 742, 13, 1678, 525, 29883, 29946, 29889, 29883, 5138, 2396, 525, 23900, 18530, 18403, 29879, 742, 13, 1678, 525, 29883, 29946, 29889, 4912, 2396, 525, 3068, 2265, 10585, 742, 13, 1678, 525, 29883, 29945, 29889, 497, 2396, 525, 497, 21947, 18530, 6166, 742, 13, 1678, 525, 29883, 29945, 29889, 25288, 2396, 525, 17080, 4768, 5996, 10174, 742, 13, 1678, 525, 29883, 29945, 29889, 617, 2396, 525, 17080, 3038, 1070, 7117, 742, 13, 1678, 525, 29883, 29945, 29889, 29885, 29888, 2396, 525, 17080, 13206, 16637, 3168, 742, 13, 1678, 525, 29883, 29953, 29889, 497, 2396, 525, 497, 373, 29883, 6352, 293, 1804, 3698, 18530, 6166, 742, 13, 1678, 525, 29883, 29955, 29889, 497, 2396, 525, 497, 5198, 348, 1189, 293, 1804, 3698, 18530, 6166, 29915, 13, 29913, 13, 13, 13, 1990, 10888, 335, 4051, 29898, 3318, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3884, 29922, 8516, 1125, 13, 4706, 565, 3884, 338, 6213, 29901, 13, 9651, 3884, 353, 848, 29889, 3784, 29918, 2084, 877, 1516, 335, 2585, 1495, 13, 4706, 1583, 29889, 12322, 353, 3884, 13, 4706, 1583, 29889, 370, 1030, 29894, 29918, 517, 29918, 978, 353, 29759, 29894, 29918, 517, 29918, 978, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 330, 4378, 29918, 798, 29918, 27959, 29898, 2084, 1125, 13, 4706, 9995, 13, 4706, 313, 978, 29892, 6139, 29892, 5144, 29897, 13, 4706, 9995, 13, 4706, 1303, 29918, 1445, 353, 1722, 29898, 2084, 29897, 13, 4706, 9591, 353, 11799, 29889, 16950, 29898, 949, 29918, 1445, 29892, 28552, 2433, 29905, 29873, 1495, 13, 4706, 363, 1948, 297, 9591, 29901, 13, 9651, 7709, 1948, 29961, 29900, 1402, 1948, 29961, 29896, 1402, 1948, 29961, 29906, 17531, 13, 4706, 1303, 29918, 1445, 29889, 5358, 580, 13, 13, 1678, 822, 679, 29918, 29887, 4378, 29918, 2084, 29898, 1311, 29892, 29759, 29894, 29892, 1873, 2433, 29894, 29946, 29889, 29900, 742, 1178, 29918, 1853, 2433, 14056, 29920, 29374, 13, 4706, 10422, 353, 22372, 1836, 29912, 1836, 29912, 1836, 29887, 4378, 4286, 4830, 29898, 370, 1030, 29894, 29892, 1873, 29892, 1178, 29918, 1853, 29897, 13, 4706, 2224, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 12322, 29892, 10422, 29897, 13, 4706, 736, 2224, 13, 13, 1678, 822, 18530, 29918, 842, 29918, 27959, 29898, 1311, 29892, 29759, 29894, 1125, 13, 4706, 2893, 14903, 29918, 517, 29918, 1885, 267, 353, 848, 29889, 1469, 2141, 29882, 5138, 29883, 29889, 1693, 14903, 29918, 517, 29918, 1885, 267, 13, 4706, 2224, 353, 1583, 29889, 657, 29918, 29887, 4378, 29918, 2084, 29898, 370, 1030, 29894, 29892, 1178, 29918, 1853, 2433, 14056, 29920, 1495, 13, 4706, 363, 1024, 29892, 6139, 29892, 5144, 297, 1583, 29889, 29887, 4378, 29918, 798, 29918, 27959, 29898, 2084, 1125, 13, 9651, 2531, 267, 353, 2893, 14903, 29918, 517, 29918, 1885, 267, 29898, 28109, 29892, 1178, 29918, 1853, 2433, 14056, 29920, 1495, 13, 9651, 7709, 1024, 29892, 6139, 29892, 2531, 267, 13, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 10887, 335, 2585, 353, 10888, 335, 4051, 580, 13, 1678, 363, 29759, 29894, 297, 29759, 29894, 29918, 517, 29918, 978, 29889, 8149, 7295, 13, 4706, 1051, 29898, 1516, 335, 2585, 29889, 29887, 1600, 29918, 842, 29918, 27959, 29898, 370, 1030, 29894, 876, 13, 2 ]
2_Regression/ARX_Regression/empirical_id.py
abe-mart/arduino
1
19291
import numpy as np import apm_id as arx ###################################################### # Configuration ###################################################### # number of terms ny = 2 # output coefficients nu = 1 # input coefficients # number of inputs ni = 1 # number of outputs no = 1 # load data and parse into columns data = np.loadtxt('data_step_test.csv',delimiter=',') ###################################################### # generate time-series model arx.apm_id(data,ni,nu,ny)
[ 1, 1053, 12655, 408, 7442, 30004, 13, 5215, 3095, 29885, 29918, 333, 408, 564, 29916, 30004, 13, 30004, 13, 13383, 13383, 13383, 4136, 2277, 30004, 13, 29937, 20999, 30004, 13, 13383, 13383, 13383, 4136, 2277, 30004, 13, 29937, 1353, 310, 4958, 30004, 13, 1460, 353, 29871, 29906, 396, 1962, 16127, 30004, 13, 3433, 353, 29871, 29896, 396, 1881, 16127, 30004, 13, 29937, 1353, 310, 10970, 30004, 13, 1240, 353, 29871, 29896, 30004, 13, 29937, 1353, 310, 14391, 30004, 13, 1217, 353, 29871, 29896, 30004, 13, 29937, 2254, 848, 322, 6088, 964, 4341, 30004, 13, 1272, 353, 7442, 29889, 1359, 3945, 877, 1272, 29918, 10568, 29918, 1688, 29889, 7638, 742, 6144, 19657, 29922, 742, 1495, 30004, 13, 13383, 13383, 13383, 4136, 2277, 30004, 13, 30004, 13, 29937, 5706, 931, 29899, 13757, 1904, 30004, 13, 279, 29916, 29889, 481, 29885, 29918, 333, 29898, 1272, 29892, 1240, 29892, 3433, 29892, 1460, 8443, 13, 2 ]
old/ML models/SGD_Classifier.py
saisankargochhayat/doot
0
145740
<gh_stars>0 from sklearn.linear_model import SGDClassifier # import pprint data = [] labels = [] train_data = [] train_labels = [] test_data = [] test_labels = [] with open("../Server/sampledata.csv", 'r') as ppd: for line in ppd: attr = line.split(',') data.append(attr) with open("../Server/samplelabel.csv", 'r') as ppd: for line in ppd: attr = line.split(',') labels.append(attr[0][0:len(attr[0])-1]) # with open("a_f_train.csv", 'r') as ppd: # for line in ppd: # attr = line.split(',') # data.append(map(float, attr[0:31])) # labels.append(attr[31][0:-1]) # with open("a_f_test1.csv", 'r') as ppd: # for line in ppd: # attr = line.split(',') # test_data.append(map(float, attr[0:31])) # test_labels.append(attr[31][0:-1]) # # with open("a_f_test2.csv", 'r') as ppd: # for line in ppd: # attr = line.split(',') # test_data.append(map(float, attr[0:31])) # test_labels.append(attr[31][0:-1]) # with open("a_f_test.csv", 'r') as ppd: # for line in ppd: # attr = line.split(',') # test_data.append(map(float, attr[0:31])) # test_labels.append(attr[31][0:-1]) # with open("a_f_test3.csv", 'r') as ppd: # for line in ppd: # attr = line.split(',') # test_data.append(map(float, attr[0:31])) # test_labels.append(attr[31][0:-1]) from sklearn.cross_validation import train_test_split train_data, test_data, train_labels, test_labels = train_test_split(data, labels, test_size = .5) clf = SGDClassifier(loss="hinge", penalty="l2") clf.fit(train_data,train_labels) predictions = clf.predict(test_data) # for i in range(len(predictions)): # print predictions[i], test_labels[i] #with open("data1", 'w') as _file: # _file.write(pprint.pformat(data1)) from sklearn.metrics import accuracy_score print(accuracy_score(test_labels, predictions))
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 2071, 19668, 29889, 10660, 29918, 4299, 1053, 317, 29954, 29928, 2385, 3709, 13, 29937, 1053, 282, 2158, 13, 13, 1272, 353, 5159, 13, 21134, 353, 5159, 13, 14968, 29918, 1272, 353, 5159, 13, 14968, 29918, 21134, 353, 5159, 13, 1688, 29918, 1272, 353, 5159, 13, 1688, 29918, 21134, 353, 5159, 13, 13, 2541, 1722, 703, 6995, 6004, 29914, 11249, 1272, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 1678, 363, 1196, 297, 6499, 29881, 29901, 13, 4706, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 848, 29889, 4397, 29898, 5552, 29897, 13, 13, 2541, 1722, 703, 6995, 6004, 29914, 11249, 1643, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 1678, 363, 1196, 297, 6499, 29881, 29901, 13, 4706, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 4706, 11073, 29889, 4397, 29898, 5552, 29961, 29900, 3816, 29900, 29901, 2435, 29898, 5552, 29961, 29900, 2314, 29899, 29896, 2314, 13, 29937, 411, 1722, 703, 29874, 29918, 29888, 29918, 14968, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 29937, 268, 363, 1196, 297, 6499, 29881, 29901, 13, 29937, 308, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 29937, 308, 848, 29889, 4397, 29898, 1958, 29898, 7411, 29892, 12421, 29961, 29900, 29901, 29941, 29896, 12622, 13, 29937, 308, 11073, 29889, 4397, 29898, 5552, 29961, 29941, 29896, 3816, 29900, 13018, 29896, 2314, 13, 13, 29937, 411, 1722, 703, 29874, 29918, 29888, 29918, 1688, 29896, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 29937, 268, 363, 1196, 297, 6499, 29881, 29901, 13, 29937, 308, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 29937, 308, 1243, 29918, 1272, 29889, 4397, 29898, 1958, 29898, 7411, 29892, 12421, 29961, 29900, 29901, 29941, 29896, 12622, 13, 29937, 308, 1243, 29918, 21134, 29889, 4397, 29898, 5552, 29961, 29941, 29896, 3816, 29900, 13018, 29896, 2314, 13, 29937, 13, 29937, 411, 1722, 703, 29874, 29918, 29888, 29918, 1688, 29906, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 29937, 268, 363, 1196, 297, 6499, 29881, 29901, 13, 29937, 308, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 29937, 308, 1243, 29918, 1272, 29889, 4397, 29898, 1958, 29898, 7411, 29892, 12421, 29961, 29900, 29901, 29941, 29896, 12622, 13, 29937, 308, 1243, 29918, 21134, 29889, 4397, 29898, 5552, 29961, 29941, 29896, 3816, 29900, 13018, 29896, 2314, 13, 13, 29937, 411, 1722, 703, 29874, 29918, 29888, 29918, 1688, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 29937, 268, 363, 1196, 297, 6499, 29881, 29901, 13, 29937, 308, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 29937, 308, 1243, 29918, 1272, 29889, 4397, 29898, 1958, 29898, 7411, 29892, 12421, 29961, 29900, 29901, 29941, 29896, 12622, 13, 29937, 308, 1243, 29918, 21134, 29889, 4397, 29898, 5552, 29961, 29941, 29896, 3816, 29900, 13018, 29896, 2314, 13, 13, 29937, 411, 1722, 703, 29874, 29918, 29888, 29918, 1688, 29941, 29889, 7638, 613, 525, 29878, 1495, 408, 6499, 29881, 29901, 13, 29937, 268, 363, 1196, 297, 6499, 29881, 29901, 13, 29937, 308, 12421, 353, 1196, 29889, 5451, 29317, 1495, 13, 29937, 308, 1243, 29918, 1272, 29889, 4397, 29898, 1958, 29898, 7411, 29892, 12421, 29961, 29900, 29901, 29941, 29896, 12622, 13, 29937, 308, 1243, 29918, 21134, 29889, 4397, 29898, 5552, 29961, 29941, 29896, 3816, 29900, 13018, 29896, 2314, 13, 13, 3166, 2071, 19668, 29889, 19128, 29918, 18157, 1053, 7945, 29918, 1688, 29918, 5451, 13, 14968, 29918, 1272, 29892, 1243, 29918, 1272, 29892, 7945, 29918, 21134, 29892, 1243, 29918, 21134, 353, 7945, 29918, 1688, 29918, 5451, 29898, 1272, 29892, 11073, 29892, 1243, 29918, 2311, 353, 869, 29945, 29897, 13, 13, 695, 29888, 353, 317, 29954, 29928, 2385, 3709, 29898, 6758, 543, 2790, 29872, 613, 27368, 543, 29880, 29906, 1159, 13, 695, 29888, 29889, 9202, 29898, 14968, 29918, 1272, 29892, 14968, 29918, 21134, 29897, 13, 27711, 1080, 353, 1067, 29888, 29889, 27711, 29898, 1688, 29918, 1272, 29897, 13, 13, 29937, 363, 29871, 474, 297, 3464, 29898, 2435, 29898, 27711, 1080, 22164, 13, 29937, 268, 1596, 27303, 29961, 29875, 1402, 1243, 29918, 21134, 29961, 29875, 29962, 13, 13, 29937, 2541, 1722, 703, 1272, 29896, 613, 525, 29893, 1495, 408, 903, 1445, 29901, 13, 29937, 4706, 903, 1445, 29889, 3539, 29898, 407, 29878, 524, 29889, 29886, 4830, 29898, 1272, 29896, 876, 13, 13, 3166, 2071, 19668, 29889, 2527, 10817, 1053, 13600, 29918, 13628, 13, 2158, 29898, 562, 2764, 4135, 29918, 13628, 29898, 1688, 29918, 21134, 29892, 27303, 876, 13, 2 ]
genhernquist/Normalisation.py
lauralwatkins/genhernquist
2
108679
<gh_stars>1-10 #!/usr/bin/env python from astropy import units as u from .Cumulative3D import Cumulative3D def Normalisation(total, rs, alpha, beta, gamma): """ Normalisation of a generalised Hernquist model required to have a total cumulative quantity. INPUTS total : total quantity enclosed (can have unit) rs : scale radius of model (requires unit) alpha : sharpness of transition between inner and outer beta : outer logarithmic slope gamma : inner logarithmic slope """ # make a trial normalisation with units from the total and the scale radius trial_norm = 1*u.Quantity(total).unit/rs.unit**3 # calculate the cumulative total for the trial normalisation trial_total = Cumulative3D(rs*1e4, trial_norm, rs, alpha, beta, gamma) # the normalisation for the target total is a simple rescaling normalisation = trial_norm*total/trial_total return normalisation
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 3166, 8717, 14441, 1053, 10340, 408, 318, 13, 3166, 869, 29907, 398, 28524, 29941, 29928, 1053, 315, 398, 28524, 29941, 29928, 13, 13, 13, 1753, 21981, 4371, 29898, 7827, 29892, 20371, 29892, 15595, 29892, 21762, 29892, 330, 2735, 1125, 13, 268, 13, 1678, 9995, 13, 1678, 21981, 4371, 310, 263, 2498, 3368, 25962, 339, 391, 1904, 3734, 304, 505, 263, 3001, 13, 1678, 13299, 28524, 14728, 29889, 13, 268, 13, 1678, 2672, 12336, 29903, 13, 418, 3001, 584, 3001, 14728, 427, 15603, 313, 3068, 505, 5190, 29897, 13, 418, 20371, 1678, 584, 6287, 11855, 310, 1904, 313, 276, 339, 2658, 5190, 29897, 13, 418, 15595, 584, 15301, 2264, 310, 9558, 1546, 6426, 322, 11420, 13, 418, 21762, 29871, 584, 11420, 1480, 23830, 13076, 24968, 13, 418, 330, 2735, 584, 6426, 1480, 23830, 13076, 24968, 13, 1678, 9995, 13, 268, 13, 1678, 396, 1207, 263, 14260, 4226, 4371, 411, 10340, 515, 278, 3001, 322, 278, 6287, 11855, 13, 1678, 14260, 29918, 12324, 353, 29871, 29896, 29930, 29884, 29889, 22930, 537, 29898, 7827, 467, 5441, 29914, 2288, 29889, 5441, 1068, 29941, 13, 268, 13, 1678, 396, 8147, 278, 13299, 28524, 3001, 363, 278, 14260, 4226, 4371, 13, 1678, 14260, 29918, 7827, 353, 315, 398, 28524, 29941, 29928, 29898, 2288, 29930, 29896, 29872, 29946, 29892, 14260, 29918, 12324, 29892, 20371, 29892, 15595, 29892, 21762, 29892, 13, 4706, 330, 2735, 29897, 13, 268, 13, 1678, 396, 278, 4226, 4371, 363, 278, 3646, 3001, 338, 263, 2560, 620, 1052, 292, 13, 1678, 4226, 4371, 353, 14260, 29918, 12324, 29930, 7827, 29914, 3626, 284, 29918, 7827, 13, 268, 13, 1678, 736, 4226, 4371, 13, 2 ]
investopedia_api/option_trade.py
kevihiiin/investopedia_simulator_api
0
147400
<filename>investopedia_api/option_trade.py import re import warnings from lxml import html from ratelimit import limits, sleep_and_retry from investopedia_api.session_singleton import Session from investopedia_api.trade_common import OrderType, Duration, Trade from investopedia_api.utils import UrlHelper class OptionTrade(Trade): def __init__( self, contract, quantity, trade_type, order_type=OrderType.MARKET(), duration=Duration.GOOD_TILL_CANCELLED(), send_email=True): self.security_type = 'option' self.base_url = UrlHelper.route('tradeoption') self.submit_url = UrlHelper.route('tradeoption_submit') super().__init__(contract.base_symbol, quantity, trade_type, order_type, duration, send_email) self.contract = contract self.prepared_trade = None @property def contract(self): return self._contract @contract.setter def contract(self, contract): tt = 's' if self.trade_type == 'BUY_TO_OPEN': tt = 'b' self.query_params.update({ 'ap': contract.ask, 'bid': contract.bid, 'sym': contract.contract_name, 't': contract.contract_type.lower()[0], 's': contract.strike_price, 'msym': contract.raw['Month'], 'tt': tt }) self._contract = contract @sleep_and_retry @limits(calls=6, period=30) def _get_max_shares(self): if self.form_token is None: self.refresh_form_token() uri = UrlHelper.set_query(self.base_url, self.query_params) self.form_data['isShowMax'] = 1 resp = Session().post(uri, data=self.form_data) tree = html.fromstring(resp.text) self.form_data['isShowMax'] = 0 self.refresh_form_token(tree) fon = lambda x: x[0] if len(x)> 0 else None try: xpath1 = '//div[@id="limitDiv"]/span[@id="limitationLabel"]/text()' xpath2 = '//div[@id="limitDiv"]/span/text()' text = fon(tree.xpath(xpath1)) or fon(tree.xpath(xpath2)) shares_match = re.search( r'maximum\s*of\s*(\d+)\s*(?:shares|option)', text) return int(shares_match.group(1)) except Exception as e: error = e warnings.warn("Unable to determine max shares: %s" % e) return return 0 def go_to_preview(self): session = Session() self.form_data.update({'btnReview': 'Preview+Order', 'isShowMax': 0}) uri = UrlHelper.set_query(UrlHelper.route( 'tradeoption'), self.query_params) return session.post(uri, data=self.form_data)
[ 1, 529, 9507, 29958, 262, 10147, 459, 1381, 29918, 2754, 29914, 3385, 29918, 3018, 311, 29889, 2272, 13, 5215, 337, 13, 5215, 18116, 13, 13, 3166, 301, 3134, 1053, 3472, 13, 3166, 7548, 295, 13083, 1053, 13071, 29892, 8709, 29918, 392, 29918, 276, 2202, 13, 13, 3166, 13258, 459, 1381, 29918, 2754, 29889, 7924, 29918, 2976, 11285, 1053, 16441, 13, 3166, 13258, 459, 1381, 29918, 2754, 29889, 3018, 311, 29918, 9435, 1053, 8170, 1542, 29892, 360, 2633, 29892, 27226, 13, 3166, 13258, 459, 1381, 29918, 2754, 29889, 13239, 1053, 501, 2096, 10739, 13, 13, 13, 1990, 10831, 5323, 311, 29898, 5323, 311, 1125, 13, 1678, 822, 4770, 2344, 12035, 13, 9651, 1583, 29892, 13, 9651, 8078, 29892, 13, 9651, 14728, 29892, 13, 9651, 11302, 29918, 1853, 29892, 13, 9651, 1797, 29918, 1853, 29922, 7514, 1542, 29889, 1529, 29934, 29968, 2544, 3285, 13, 9651, 14385, 29922, 18984, 29889, 17080, 13668, 29918, 29911, 24071, 29918, 29907, 23219, 29931, 20566, 3285, 13, 9651, 3638, 29918, 5269, 29922, 5574, 1125, 13, 13, 4706, 1583, 29889, 8926, 29918, 1853, 353, 525, 3385, 29915, 13, 4706, 1583, 29889, 3188, 29918, 2271, 353, 501, 2096, 10739, 29889, 13134, 877, 3018, 311, 3385, 1495, 13, 4706, 1583, 29889, 7892, 29918, 2271, 353, 501, 2096, 10739, 29889, 13134, 877, 3018, 311, 3385, 29918, 7892, 1495, 13, 4706, 2428, 2141, 1649, 2344, 12035, 1285, 1461, 29889, 3188, 29918, 18098, 29892, 14728, 29892, 13, 462, 308, 11302, 29918, 1853, 29892, 1797, 29918, 1853, 29892, 14385, 29892, 3638, 29918, 5269, 29897, 13, 13, 4706, 1583, 29889, 1285, 1461, 353, 8078, 13, 4706, 1583, 29889, 15287, 1965, 29918, 3018, 311, 353, 6213, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8078, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 1285, 1461, 13, 13, 1678, 732, 1285, 1461, 29889, 842, 357, 13, 1678, 822, 8078, 29898, 1311, 29892, 8078, 1125, 13, 4706, 260, 29873, 353, 525, 29879, 29915, 13, 4706, 565, 1583, 29889, 3018, 311, 29918, 1853, 1275, 525, 7838, 29979, 29918, 4986, 29918, 4590, 1430, 2396, 13, 9651, 260, 29873, 353, 525, 29890, 29915, 13, 4706, 1583, 29889, 1972, 29918, 7529, 29889, 5504, 3319, 13, 9651, 525, 481, 2396, 8078, 29889, 1278, 29892, 13, 9651, 525, 23883, 2396, 8078, 29889, 23883, 29892, 13, 9651, 525, 11967, 2396, 8078, 29889, 1285, 1461, 29918, 978, 29892, 13, 9651, 525, 29873, 2396, 8078, 29889, 1285, 1461, 29918, 1853, 29889, 13609, 580, 29961, 29900, 1402, 13, 9651, 525, 29879, 2396, 8078, 29889, 303, 20995, 29918, 9175, 29892, 13, 9651, 525, 1516, 962, 2396, 8078, 29889, 1610, 1839, 13953, 7464, 13, 9651, 525, 698, 2396, 260, 29873, 13, 4706, 5615, 13, 13, 4706, 1583, 3032, 1285, 1461, 353, 8078, 13, 13, 1678, 732, 17059, 29918, 392, 29918, 276, 2202, 13, 1678, 732, 12514, 29898, 29883, 4293, 29922, 29953, 29892, 3785, 29922, 29941, 29900, 29897, 13, 1678, 822, 903, 657, 29918, 3317, 29918, 845, 5114, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 689, 29918, 6979, 338, 6213, 29901, 13, 9651, 1583, 29889, 22379, 29918, 689, 29918, 6979, 580, 13, 4706, 21333, 353, 501, 2096, 10739, 29889, 842, 29918, 1972, 29898, 1311, 29889, 3188, 29918, 2271, 29892, 1583, 29889, 1972, 29918, 7529, 29897, 13, 4706, 1583, 29889, 689, 29918, 1272, 1839, 275, 8964, 7976, 2033, 353, 29871, 29896, 13, 4706, 4613, 353, 16441, 2141, 2490, 29898, 5338, 29892, 848, 29922, 1311, 29889, 689, 29918, 1272, 29897, 13, 4706, 5447, 353, 3472, 29889, 3166, 1807, 29898, 13713, 29889, 726, 29897, 13, 4706, 1583, 29889, 689, 29918, 1272, 1839, 275, 8964, 7976, 2033, 353, 29871, 29900, 13, 4706, 1583, 29889, 22379, 29918, 689, 29918, 6979, 29898, 8336, 29897, 13, 4706, 10866, 353, 14013, 921, 29901, 921, 29961, 29900, 29962, 565, 7431, 29898, 29916, 15410, 29871, 29900, 1683, 6213, 13, 13, 4706, 1018, 29901, 13, 9651, 921, 2084, 29896, 353, 525, 458, 4563, 17548, 333, 543, 13400, 12596, 3108, 29914, 9653, 17548, 333, 543, 2576, 7018, 4775, 3108, 29914, 726, 580, 29915, 13, 9651, 921, 2084, 29906, 353, 525, 458, 4563, 17548, 333, 543, 13400, 12596, 3108, 29914, 9653, 29914, 726, 580, 29915, 13, 9651, 1426, 353, 10866, 29898, 8336, 29889, 23635, 29898, 23635, 29896, 876, 470, 10866, 29898, 8336, 29889, 23635, 29898, 23635, 29906, 876, 13, 9651, 29358, 29918, 4352, 353, 337, 29889, 4478, 29898, 13, 18884, 364, 29915, 27525, 398, 29905, 29879, 29930, 974, 29905, 29879, 29930, 1194, 29881, 29974, 2144, 29879, 29930, 10780, 29901, 845, 5114, 29989, 3385, 29897, 742, 1426, 29897, 13, 9651, 736, 938, 29898, 845, 5114, 29918, 4352, 29889, 2972, 29898, 29896, 876, 13, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1059, 353, 321, 13, 9651, 18116, 29889, 25442, 703, 2525, 519, 304, 8161, 4236, 29358, 29901, 1273, 29879, 29908, 1273, 321, 29897, 13, 9651, 736, 13, 4706, 736, 29871, 29900, 13, 13, 1678, 822, 748, 29918, 517, 29918, 25347, 29898, 1311, 1125, 13, 4706, 4867, 353, 16441, 580, 13, 4706, 1583, 29889, 689, 29918, 1272, 29889, 5504, 3319, 29915, 7290, 1123, 1493, 2396, 525, 6572, 1493, 29974, 7514, 742, 525, 275, 8964, 7976, 2396, 29871, 29900, 1800, 13, 4706, 21333, 353, 501, 2096, 10739, 29889, 842, 29918, 1972, 29898, 5983, 10739, 29889, 13134, 29898, 13, 9651, 525, 3018, 311, 3385, 5477, 1583, 29889, 1972, 29918, 7529, 29897, 13, 4706, 736, 4867, 29889, 2490, 29898, 5338, 29892, 848, 29922, 1311, 29889, 689, 29918, 1272, 29897, 13, 2 ]
yt_concate/pipeline/steps/preflight.py
ThatMrWayne/yout_concate
0
195297
<filename>yt_concate/pipeline/steps/preflight.py import logging from yt_concate.pipeline.steps.step import Step class Preflight(Step): def process(self, inputs, utils, data): logger = logging.getLogger('record') logger.info('In preflight.') utils.create_downloads_dirs()
[ 1, 529, 9507, 29958, 3637, 29918, 535, 29883, 403, 29914, 13096, 5570, 29914, 24530, 29914, 29886, 999, 4366, 29889, 2272, 13, 5215, 12183, 13, 3166, 343, 29873, 29918, 535, 29883, 403, 29889, 13096, 5570, 29889, 24530, 29889, 10568, 1053, 16696, 13, 13, 13, 13, 1990, 27611, 4366, 29898, 14448, 1125, 13, 1678, 822, 1889, 29898, 1311, 29892, 10970, 29892, 3667, 29879, 29892, 848, 1125, 13, 4706, 17927, 353, 12183, 29889, 657, 16363, 877, 11651, 1495, 13, 4706, 17927, 29889, 3888, 877, 797, 758, 1579, 523, 29889, 1495, 13, 4706, 3667, 29879, 29889, 3258, 29918, 10382, 29879, 29918, 3972, 29879, 580, 13, 2 ]
tests/test_simpleflow/test_format.py
mookerji/simpleflow
0
147817
import json import os import unittest import random import boto from moto import mock_s3 from simpleflow import constants, format from simpleflow.storage import push_content @mock_s3 class TestFormat(unittest.TestCase): def setUp(self): pass def tearDown(self): # reset jumbo fields bucket so most tests will have jumbo fields disabled os.environ["SIMPLEFLOW_JUMBO_FIELDS_BUCKET"] = "" def setup_jumbo_fields(self, bucket): os.environ["SIMPLEFLOW_JUMBO_FIELDS_BUCKET"] = bucket self.conn = boto.connect_s3() self.conn.create_bucket(bucket.split("/")[0]) def test_encode_none(self): self.assertEquals( format.encode(None, 1), None ) def test_encode_smaller(self): MAX_LENGTH = random.randint(10, 1000) message = 'A' * (MAX_LENGTH // 2) self.assertEquals( format.encode(message, MAX_LENGTH), message, ) def test_encode_longer(self): MAX_LENGTH = random.randint(10, 1000) message = 'A' * 1000 with self.assertRaisesRegexp(ValueError, "Message too long"): format.encode(message, MAX_LENGTH) def test_identity_doesnt_use_jumbo_fields(self): self.setup_jumbo_fields("jumbo-bucket") message = 'A' * (constants.MAX_RESULT_LENGTH * 2) with self.assertRaisesRegexp(ValueError, "Message too long"): format.identity(message) def test_jumbo_fields_encoding_without_directory(self): self.setup_jumbo_fields("jumbo-bucket") message = 'A' * 64000 encoded = format.result(message) # => simpleflow+s3://jumbo-bucket/f6ea95a<...>ea3 64002 assert encoded.startswith("simpleflow+s3://jumbo-bucket/") self.assertEquals(encoded.split()[1], "64002") key = encoded.split()[0].replace("simpleflow+s3://jumbo-bucket/", "") self.assertEquals( self.conn.get_bucket("jumbo-bucket").get_key(key).get_contents_as_string(encoding='utf-8'), json.dumps(message), ) def test_jumbo_fields_encoding_with_directory(self): self.setup_jumbo_fields("jumbo-bucket/with/subdir") message = 'A' * 64000 encoded = format.result(message) # => simpleflow+s3://jumbo-bucket/with/subdir/f6ea95a<...>ea3 64002 assert encoded.startswith("simpleflow+s3://jumbo-bucket/with/subdir/") self.assertEquals(encoded.split()[1], "64002") key = encoded.split()[0].replace("simpleflow+s3://jumbo-bucket/", "") self.assertEquals( self.conn.get_bucket("jumbo-bucket").get_key(key).get_contents_as_string(encoding='utf-8'), json.dumps(message), ) def test_jumbo_fields_with_directory_strip_trailing_slash(self): self.setup_jumbo_fields("jumbo-bucket/with/subdir/") message = 'A' * 64000 encoded = format.result(message) assert not encoded.startswith("simpleflow+s3://jumbo-bucket/with/subdir//") def test_jumbo_fields_encoding_raise_if_encoded_form_overflows_thresholds(self): # 'reason' field is limited to 256 chars for instance self.setup_jumbo_fields("jumbo-bucket/with/a/very/long/name/" + "a" * 256) message = 'A' * 500 with self.assertRaisesRegexp(ValueError, "Jumbo field signature is longer than"): format.reason(message) def test_decode(self): self.setup_jumbo_fields("jumbo-bucket") push_content("jumbo-bucket", "abc", "decoded jumbo field yay!") cases = [ [None, None], ["foo bar baz", "foo bar baz"], ['"a string"', "a string"], ['[1, 2]', [1, 2]], ["simpleflow+s3://jumbo-bucket/abc 24", "decoded jumbo field yay!"], ] for case in cases: self.assertEquals(case[1], format.decode(case[0])) def test_decode_no_parse_json(self): self.setup_jumbo_fields("jumbo-bucket") push_content("jumbo-bucket", "abc", "decoded jumbo field yay!") cases = [ [None, None], ["foo bar baz", "foo bar baz"], ['"a string"', '"a string"'], ['[1, 2]', "[1, 2]"], ["simpleflow+s3://jumbo-bucket/abc 24", "decoded jumbo field yay!"], ] for case in cases: self.assertEquals(case[1], format.decode(case[0], parse_json=False))
[ 1, 1053, 4390, 13, 5215, 2897, 13, 5215, 443, 27958, 13, 5215, 4036, 13, 13, 5215, 289, 3747, 13, 3166, 3184, 29877, 1053, 11187, 29918, 29879, 29941, 13, 13, 3166, 2560, 1731, 1053, 17727, 29892, 3402, 13, 3166, 2560, 1731, 29889, 12925, 1053, 5503, 29918, 3051, 13, 13, 13, 29992, 17640, 29918, 29879, 29941, 13, 1990, 4321, 5809, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 734, 279, 6767, 29898, 1311, 1125, 13, 4706, 396, 10092, 432, 398, 833, 4235, 20968, 577, 1556, 6987, 674, 505, 432, 398, 833, 4235, 12708, 13, 4706, 2897, 29889, 21813, 3366, 5425, 3580, 1307, 29943, 27998, 29918, 29967, 5005, 8456, 29918, 3738, 6670, 8452, 29918, 7838, 7077, 2544, 3108, 353, 5124, 13, 13, 1678, 822, 6230, 29918, 29926, 398, 833, 29918, 9621, 29898, 1311, 29892, 20968, 1125, 13, 4706, 2897, 29889, 21813, 3366, 5425, 3580, 1307, 29943, 27998, 29918, 29967, 5005, 8456, 29918, 3738, 6670, 8452, 29918, 7838, 7077, 2544, 3108, 353, 20968, 13, 4706, 1583, 29889, 13082, 353, 289, 3747, 29889, 6915, 29918, 29879, 29941, 580, 13, 4706, 1583, 29889, 13082, 29889, 3258, 29918, 21454, 29898, 21454, 29889, 5451, 11974, 1159, 29961, 29900, 2314, 13, 13, 1678, 822, 1243, 29918, 12508, 29918, 9290, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 14776, 29898, 13, 9651, 3402, 29889, 12508, 29898, 8516, 29892, 29871, 29896, 511, 13, 9651, 6213, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 12508, 29918, 9278, 261, 29898, 1311, 1125, 13, 4706, 18134, 29918, 19433, 353, 4036, 29889, 9502, 524, 29898, 29896, 29900, 29892, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 313, 12648, 29918, 19433, 849, 29871, 29906, 29897, 13, 4706, 1583, 29889, 9294, 14776, 29898, 13, 9651, 3402, 29889, 12508, 29898, 4906, 29892, 18134, 29918, 19433, 511, 13, 9651, 2643, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 12508, 29918, 5426, 261, 29898, 1311, 1125, 13, 4706, 18134, 29918, 19433, 353, 4036, 29889, 9502, 524, 29898, 29896, 29900, 29892, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 29871, 29896, 29900, 29900, 29900, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 4597, 4548, 29898, 1917, 2392, 29892, 376, 3728, 2086, 1472, 29908, 1125, 13, 9651, 3402, 29889, 12508, 29898, 4906, 29892, 18134, 29918, 19433, 29897, 13, 13, 1678, 822, 1243, 29918, 22350, 29918, 13221, 593, 29918, 1509, 29918, 29926, 398, 833, 29918, 9621, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 1159, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 313, 3075, 1934, 29889, 12648, 29918, 15989, 8647, 29918, 19433, 334, 29871, 29906, 29897, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 4597, 4548, 29898, 1917, 2392, 29892, 376, 3728, 2086, 1472, 29908, 1125, 13, 9651, 3402, 29889, 22350, 29898, 4906, 29897, 13, 13, 1678, 822, 1243, 29918, 29926, 398, 833, 29918, 9621, 29918, 22331, 29918, 14037, 29918, 12322, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 1159, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 29871, 29953, 29946, 29900, 29900, 29900, 13, 4706, 18511, 353, 3402, 29889, 2914, 29898, 4906, 29897, 13, 4706, 396, 1149, 2560, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 29888, 29953, 11248, 29929, 29945, 29874, 29966, 856, 29958, 11248, 29941, 29871, 29953, 29946, 29900, 29900, 29906, 13, 13, 4706, 4974, 18511, 29889, 27382, 2541, 703, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 1159, 13, 4706, 1583, 29889, 9294, 14776, 29898, 26716, 29889, 5451, 580, 29961, 29896, 1402, 376, 29953, 29946, 29900, 29900, 29906, 1159, 13, 13, 4706, 1820, 353, 18511, 29889, 5451, 580, 29961, 29900, 1822, 6506, 703, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 613, 20569, 13, 4706, 1583, 29889, 9294, 14776, 29898, 13, 9651, 1583, 29889, 13082, 29889, 657, 29918, 21454, 703, 29926, 398, 833, 29899, 21454, 2564, 657, 29918, 1989, 29898, 1989, 467, 657, 29918, 10853, 29918, 294, 29918, 1807, 29898, 22331, 2433, 9420, 29899, 29947, 5477, 13, 9651, 4390, 29889, 29881, 17204, 29898, 4906, 511, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 29926, 398, 833, 29918, 9621, 29918, 22331, 29918, 2541, 29918, 12322, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 29914, 2541, 29914, 1491, 3972, 1159, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 29871, 29953, 29946, 29900, 29900, 29900, 13, 4706, 18511, 353, 3402, 29889, 2914, 29898, 4906, 29897, 13, 4706, 396, 1149, 2560, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 2541, 29914, 1491, 3972, 29914, 29888, 29953, 11248, 29929, 29945, 29874, 29966, 856, 29958, 11248, 29941, 29871, 29953, 29946, 29900, 29900, 29906, 13, 13, 4706, 4974, 18511, 29889, 27382, 2541, 703, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 2541, 29914, 1491, 3972, 29914, 1159, 13, 4706, 1583, 29889, 9294, 14776, 29898, 26716, 29889, 5451, 580, 29961, 29896, 1402, 376, 29953, 29946, 29900, 29900, 29906, 1159, 13, 13, 4706, 1820, 353, 18511, 29889, 5451, 580, 29961, 29900, 1822, 6506, 703, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 613, 20569, 13, 4706, 1583, 29889, 9294, 14776, 29898, 13, 9651, 1583, 29889, 13082, 29889, 657, 29918, 21454, 703, 29926, 398, 833, 29899, 21454, 2564, 657, 29918, 1989, 29898, 1989, 467, 657, 29918, 10853, 29918, 294, 29918, 1807, 29898, 22331, 2433, 9420, 29899, 29947, 5477, 13, 9651, 4390, 29889, 29881, 17204, 29898, 4906, 511, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 29926, 398, 833, 29918, 9621, 29918, 2541, 29918, 12322, 29918, 17010, 29918, 3018, 6504, 29918, 17057, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 29914, 2541, 29914, 1491, 3972, 29914, 1159, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 29871, 29953, 29946, 29900, 29900, 29900, 13, 4706, 18511, 353, 3402, 29889, 2914, 29898, 4906, 29897, 13, 13, 4706, 4974, 451, 18511, 29889, 27382, 2541, 703, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 2541, 29914, 1491, 3972, 458, 1159, 13, 13, 1678, 822, 1243, 29918, 29926, 398, 833, 29918, 9621, 29918, 22331, 29918, 22692, 29918, 361, 29918, 26716, 29918, 689, 29918, 2262, 29879, 29918, 386, 3781, 3361, 29898, 1311, 1125, 13, 4706, 396, 525, 23147, 29915, 1746, 338, 9078, 304, 29871, 29906, 29945, 29953, 22524, 363, 2777, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 29914, 2541, 29914, 29874, 29914, 1201, 29914, 5426, 29914, 978, 12975, 718, 376, 29874, 29908, 334, 29871, 29906, 29945, 29953, 29897, 13, 13, 4706, 2643, 353, 525, 29909, 29915, 334, 29871, 29945, 29900, 29900, 13, 4706, 411, 1583, 29889, 9294, 29934, 1759, 267, 4597, 4548, 29898, 1917, 2392, 29892, 376, 29967, 398, 833, 1746, 12608, 338, 5520, 1135, 29908, 1125, 13, 9651, 3402, 29889, 23147, 29898, 4906, 29897, 13, 13, 1678, 822, 1243, 29918, 13808, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 1159, 13, 4706, 5503, 29918, 3051, 703, 29926, 398, 833, 29899, 21454, 613, 376, 10736, 613, 376, 7099, 6797, 432, 398, 833, 1746, 343, 388, 29991, 1159, 13, 13, 4706, 4251, 353, 518, 13, 9651, 518, 8516, 29892, 462, 462, 29871, 6213, 1402, 13, 9651, 6796, 5431, 2594, 12741, 613, 462, 308, 376, 5431, 2594, 12741, 12436, 13, 9651, 6024, 29908, 29874, 1347, 29908, 742, 462, 3986, 376, 29874, 1347, 12436, 13, 9651, 6024, 29961, 29896, 29892, 29871, 29906, 29962, 742, 462, 795, 518, 29896, 29892, 29871, 29906, 20526, 13, 9651, 6796, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 10736, 29871, 29906, 29946, 613, 376, 7099, 6797, 432, 398, 833, 1746, 343, 388, 3850, 1402, 13, 4706, 4514, 13, 13, 4706, 363, 1206, 297, 4251, 29901, 13, 9651, 1583, 29889, 9294, 14776, 29898, 4878, 29961, 29896, 1402, 3402, 29889, 13808, 29898, 4878, 29961, 29900, 12622, 13, 13, 1678, 822, 1243, 29918, 13808, 29918, 1217, 29918, 5510, 29918, 3126, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14669, 29918, 29926, 398, 833, 29918, 9621, 703, 29926, 398, 833, 29899, 21454, 1159, 13, 4706, 5503, 29918, 3051, 703, 29926, 398, 833, 29899, 21454, 613, 376, 10736, 613, 376, 7099, 6797, 432, 398, 833, 1746, 343, 388, 29991, 1159, 13, 13, 4706, 4251, 353, 518, 13, 9651, 518, 8516, 29892, 462, 462, 29871, 6213, 1402, 13, 9651, 6796, 5431, 2594, 12741, 613, 462, 308, 376, 5431, 2594, 12741, 12436, 13, 9651, 6024, 29908, 29874, 1347, 29908, 742, 462, 3986, 18793, 29874, 1347, 29908, 7464, 13, 9651, 6024, 29961, 29896, 29892, 29871, 29906, 29962, 742, 462, 795, 14704, 29896, 29892, 29871, 29906, 29962, 12436, 13, 9651, 6796, 12857, 1731, 29974, 29879, 29941, 597, 29926, 398, 833, 29899, 21454, 29914, 10736, 29871, 29906, 29946, 613, 376, 7099, 6797, 432, 398, 833, 1746, 343, 388, 3850, 1402, 13, 4706, 4514, 13, 13, 4706, 363, 1206, 297, 4251, 29901, 13, 9651, 1583, 29889, 9294, 14776, 29898, 4878, 29961, 29896, 1402, 3402, 29889, 13808, 29898, 4878, 29961, 29900, 1402, 6088, 29918, 3126, 29922, 8824, 876, 13, 2 ]
geometry_utils/tests/test_bound_box.py
NOAA-ORR-ERD/geometry_utils
0
13482
#!/usr/bin/env python """ Test code for the BBox Object """ import numpy as np import pytest from geometry_utils.bound_box import (BBox, asBBox, NullBBox, InfBBox, fromBBArray, from_points, ) class TestConstructors(): def test_creates(self): B = BBox(((0, 0), (5, 5))) assert isinstance(B, BBox) def test_type(self): B = np.array(((0, 0), (5, 5))) assert not isinstance(B, BBox) def testDataType(self): B = BBox(((0, 0), (5, 5))) assert B.dtype == np.float def testShape(self): B = BBox((0, 0, 5, 5)) assert B.shape == (2, 2) def testShape2(self): with pytest.raises(ValueError): BBox((0, 0, 5)) def testShape3(self): with pytest.raises(ValueError): BBox((0, 0, 5, 6, 7)) def testArrayConstruction(self): A = np.array(((4, 5), (10, 12)), np.float_) B = BBox(A) assert isinstance(B, BBox) def testMinMax(self): with pytest.raises(ValueError): BBox((0, 0, -1, 6)) def testMinMax2(self): with pytest.raises(ValueError): BBox((0, 0, 1, -6)) def testMinMax3(self): # OK to have a zero-sized BB B = BBox(((0, 0), (0, 5))) assert isinstance(B, BBox) def testMinMax4(self): # OK to have a zero-sized BB B = BBox(((10., -34), (10., -34.0))) assert isinstance(B, BBox) def testMinMax5(self): # OK to have a tiny BB B = BBox(((0, 0), (1e-20, 5))) assert isinstance(B, BBox) def testMinMax6(self): # Should catch tiny difference with pytest.raises(ValueError): BBox(((0, 0), (-1e-20, 5))) class TestAsBBox(): def testPassThrough(self): B = BBox(((0, 0), (5, 5))) C = asBBox(B) assert B is C def testPassThrough2(self): B = ((0, 0), (5, 5)) C = asBBox(B) assert B is not C def testPassArray(self): # Different data type A = np.array(((0, 0), (5, 5))) C = asBBox(A) assert A is not C def testPassArray2(self): # same data type -- should be a view A = np.array(((0, 0), (5, 5)), np.float_) C = asBBox(A) A[0, 0] = -10 assert C[0, 0] == A[0, 0] class TestIntersect(): def testSame(self): B = BBox(((-23.5, 456), (56, 532.0))) C = BBox(((-23.5, 456), (56, 532.0))) assert B.Overlaps(C) def testUpperLeft(self): B = BBox(((5, 10), (15, 25))) C = BBox(((0, 12), (10, 32.0))) assert B.Overlaps(C) def testUpperRight(self): B = BBox(((5, 10), (15, 25))) C = BBox(((12, 12), (25, 32.0))) assert B.Overlaps(C) def testLowerRight(self): B = BBox(((5, 10), (15, 25))) C = BBox(((12, 5), (25, 15))) assert B.Overlaps(C) def testLowerLeft(self): B = BBox(((5, 10), (15, 25))) C = BBox(((-10, 5), (8.5, 15))) assert B.Overlaps(C) def testBelow(self): B = BBox(((5, 10), (15, 25))) C = BBox(((-10, 5), (8.5, 9.2))) assert not B.Overlaps(C) def testAbove(self): B = BBox(((5, 10), (15, 25))) C = BBox(((-10, 25.001), (8.5, 32))) assert not B.Overlaps(C) def testLeft(self): B = BBox(((5, 10), (15, 25))) C = BBox(((4, 8), (4.95, 32))) assert not B.Overlaps(C) def testRight(self): B = BBox(((5, 10), (15, 25))) C = BBox(((17.1, 8), (17.95, 32))) assert not B.Overlaps(C) def testInside(self): B = BBox(((-15, -25), (-5, -10))) C = BBox(((-12, -22), (-6, -8))) assert B.Overlaps(C) def testOutside(self): B = BBox(((-15, -25), (-5, -10))) C = BBox(((-17, -26), (3, 0))) assert B.Overlaps(C) def testTouch(self): B = BBox(((5, 10), (15, 25))) C = BBox(((15, 8), (17.95, 32))) assert B.Overlaps(C) def testCorner(self): B = BBox(((5, 10), (15, 25))) C = BBox(((15, 25), (17.95, 32))) assert B.Overlaps(C) def testZeroSize(self): B = BBox(((5, 10), (15, 25))) C = BBox(((15, 25), (15, 25))) assert B.Overlaps(C) def testZeroSize2(self): B = BBox(((5, 10), (5, 10))) C = BBox(((15, 25), (15, 25))) assert not B.Overlaps(C) def testZeroSize3(self): B = BBox(((5, 10), (5, 10))) C = BBox(((0, 8), (10, 12))) assert B.Overlaps(C) def testZeroSize4(self): B = BBox(((5, 1), (10, 25))) C = BBox(((8, 8), (8, 8))) assert B.Overlaps(C) class TestEquality(): def testSame(self): B = BBox(((1.0, 2.0), (5., 10.))) C = BBox(((1.0, 2.0), (5., 10.))) assert B == C def testIdentical(self): B = BBox(((1.0, 2.0), (5., 10.))) assert B == B def testNotSame(self): B = BBox(((1.0, 2.0), (5., 10.))) C = BBox(((1.0, 2.0), (5., 10.1))) assert not B == C def testWithArray(self): B = BBox(((1.0, 2.0), (5., 10.))) C = np.array(((1.0, 2.0), (5., 10.))) assert B == C def testWithArray2(self): B = BBox(((1.0, 2.0), (5., 10.))) C = np.array(((1.0, 2.0), (5., 10.))) assert C == B def testWithArray3(self): B = BBox(((1.0, 2.0), (5., 10.))) C = np.array(((1.01, 2.0), (5., 10.))) assert not C == B class TestInside(): def testSame(self): B = BBox(((1.0, 2.0), (5., 10.))) C = BBox(((1.0, 2.0), (5., 10.))) assert B.Inside(C) def testPoint(self): B = BBox(((1.0, 2.0), (5., 10.))) C = BBox(((3.0, 4.0), (3.0, 4.0))) assert B.Inside(C) def testPointOutside(self): B = BBox(((1.0, 2.0), (5., 10.))) C = BBox(((-3.0, 4.0), (0.10, 4.0))) assert not B.Inside(C) def testUpperLeft(self): B = BBox(((5, 10), (15, 25))) C = BBox(((0, 12), (10, 32.0))) assert not B.Inside(C) def testUpperRight(self): B = BBox(((5, 10), (15, 25))) C = BBox(((12, 12), (25, 32.0))) assert not B.Inside(C) def testLowerRight(self): B = BBox(((5, 10), (15, 25))) C = BBox(((12, 5), (25, 15))) assert not B.Inside(C) def testLowerLeft(self): B = BBox(((5, 10), (15, 25))) C = BBox(((-10, 5), (8.5, 15))) assert not (B.Inside(C)) def testBelow(self): B = BBox(((5, 10), (15, 25))) C = BBox(((-10, 5), (8.5, 9.2))) assert not (B.Inside(C)) def testAbove(self): B = BBox(((5, 10), (15, 25))) C = BBox(((-10, 25.001), (8.5, 32))) assert not (B.Inside(C)) def testLeft(self): B = BBox(((5, 10), (15, 25))) C = BBox(((4, 8), (4.95, 32))) assert not (B.Inside(C)) def testRight(self): B = BBox(((5, 10), (15, 25))) C = BBox(((17.1, 8), (17.95, 32))) assert not (B.Inside(C)) class TestPointInside(): def testPointIn(self): B = BBox(((1.0, 2.0), (5., 10.))) P = (3.0, 4.0) assert (B.PointInside(P)) def testUpperLeft(self): B = BBox(((5, 10), (15, 25))) P = (4, 30) assert not (B.PointInside(P)) def testUpperRight(self): B = BBox(((5, 10), (15, 25))) P = (16, 30) assert not (B.PointInside(P)) def testLowerRight(self): B = BBox(((5, 10), (15, 25))) P = (16, 4) assert not (B.PointInside(P)) def testLowerLeft(self): B = BBox(((5, 10), (15, 25))) P = (-10, 5) assert not (B.PointInside(P)) def testBelow(self): B = BBox(((5, 10), (15, 25))) P = (10, 5) assert not (B.PointInside(P)) def testAbove(self): B = BBox(((5, 10), (15, 25))) P = (10, 25.001) assert not (B.PointInside(P)) def testLeft(self): B = BBox(((5, 10), (15, 25))) P = (4, 12) assert not (B.PointInside(P)) def testRight(self): B = BBox(((5, 10), (15, 25))) P = (17.1, 12.3) assert not (B.PointInside(P)) def testPointOnTopLine(self): B = BBox(((1.0, 2.0), (5., 10.))) P = (3.0, 10.) assert (B.PointInside(P)) def testPointLeftTopLine(self): B = BBox(((1.0, 2.0), (5., 10.))) P = (-3.0, 10.) assert not (B.PointInside(P)) def testPointOnBottomLine(self): B = BBox(((1.0, 2.0), (5., 10.))) P = (3.0, 5.) assert (B.PointInside(P)) def testPointOnLeft(self): B = BBox(((-10., -10.), (-1.0, -1.0))) P = (-10, -5.) assert (B.PointInside(P)) def testPointOnRight(self): B = BBox(((-10., -10.), (-1.0, -1.0))) P = (-1, -5.) assert (B.PointInside(P)) def testPointOnBottomRight(self): B = BBox(((-10., -10.), (-1.0, -1.0))) P = (-1, -10.) assert (B.PointInside(P)) class Test_from_points(): def testCreate(self): Pts = np.array(((5, 2), (3, 4), (1, 6)), np.float64) B = from_points(Pts) assert (B[0, 0] == 1.0 and B[0, 1] == 2.0 and B[1, 0] == 5.0 and B[1, 1] == 6.0) def testCreateInts(self): Pts = np.array(((5, 2), (3, 4), (1, 6))) B = from_points(Pts) assert (B[0, 0] == 1.0 and B[0, 1] == 2.0 and B[1, 0] == 5.0 and B[1, 1] == 6.0) def testSinglePoint(self): Pts = np.array((5, 2), np.float_) B = from_points(Pts) assert (B[0, 0] == 5. and B[0, 1] == 2.0 and B[1, 0] == 5. and B[1, 1] == 2.0) def testListTuples(self): Pts = [(3, 6.5), (13, 43.2), (-4.32, -4), (65, -23), (-0.0001, 23.432)] B = from_points(Pts) assert (B[0, 0] == -4.32 and B[0, 1] == -23.0 and B[1, 0] == 65.0 and B[1, 1] == 43.2) class TestMerge(): A = BBox(((-23.5, 456), (56, 532.0))) B = BBox(((-20.3, 460), (54, 465))) # B should be completely inside A C = BBox(((-23.5, 456), (58, 540.))) # up and to the right or A D = BBox(((-26.5, 12), (56, 532.0))) def testInside(self): C = self.A.copy() C.Merge(self.B) assert (C == self.A) def testFullOutside(self): C = self.B.copy() C.Merge(self.A) assert (C == self.A) def testUpRight(self): A = self.A.copy() A.Merge(self.C) assert (A[0] == self.A[0] and A[1] == self.C[1]) def testDownLeft(self): A = self.A.copy() A.Merge(self.D) assert (A[0] == self.D[0] and A[1] == self.A[1]) class TestWidthHeight(): B = BBox(((1.0, 2.0), (5., 10.))) def testWidth(self): assert (self.B.Width == 4.0) def testWidth2(self): assert (self.B.Height == 8.0) def testSetW(self): with pytest.raises(AttributeError): self.B.Height = 6 def testSetH(self): with pytest.raises(AttributeError): self.B.Width = 6 class TestCenter(): B = BBox(((1.0, 2.0), (5., 10.))) def testCenter(self): assert ((self.B.Center == (3.0, 6.0)).all()) def testSetCenter(self): with pytest.raises(AttributeError): self.B.Center = (6, 5) class TestBBarray(): BBarray = np.array((((-23.5, 456), (56, 532.0)), ((-20.3, 460), (54, 465)), ((-23.5, 456), (58, 540.)), ((-26.5, 12), (56, 532.0))), dtype=np.float) BB = asBBox(((-26.5, 12.), (58., 540.))) def testJoin(self): BB = fromBBArray(self.BBarray) assert BB == self.BB class TestNullBBox(): B1 = NullBBox() B2 = NullBBox() B3 = BBox(((1.0, 2.0), (5., 10.))) def testValues(self): assert (np.alltrue(np.isnan(self.B1))) def testIsNull(self): assert (self.B1.IsNull) def testEquals(self): assert ((self.B1 == self.B2) is True) def testNotEquals(self): assert not self.B1 == self.B3 def testNotEquals2(self): assert not self.B3 == self.B1 def testMerge(self): C = self.B1.copy() C.Merge(self.B3) assert C == self.B3, 'merge failed, got: %s' % C def testOverlaps(self): assert self.B1.Overlaps(self.B3) is False def testOverlaps2(self): assert self.B3.Overlaps(self.B1) is False class TestInfBBox(): B1 = InfBBox() B2 = InfBBox() B3 = BBox(((1.0, 2.0), (5., 10.))) NB = NullBBox() def testValues(self): assert (np.alltrue(np.isinf(self.B1))) # def testIsNull(self): # assert ( self.B1.IsNull ) def testEquals(self): assert self.B1 == self.B2 def testNotEquals(self): assert not self.B1 == self.B3 def testNotEquals2(self): assert self.B1 != self.B3 def testNotEquals3(self): assert not self.B3 == self.B1 def testMerge(self): C = self.B1.copy() C.Merge(self.B3) assert C == self.B2, 'merge failed, got: %s' % C def testMerge2(self): C = self.B3.copy() C.Merge(self.B1) assert C == self.B1, 'merge failed, got: %s' % C def testOverlaps(self): assert (self.B1.Overlaps(self.B2) is True) def testOverlaps2(self): assert (self.B3.Overlaps(self.B1) is True) def testOverlaps3(self): assert (self.B1.Overlaps(self.B3) is True) def testOverlaps4(self): assert (self.B1.Overlaps(self.NB) is True) def testOverlaps5(self): assert (self.NB.Overlaps(self.B1) is True) class TestSides(): B = BBox(((1.0, 2.0), (5., 10.))) def testLeft(self): assert self.B.Left == 1.0 def testRight(self): assert self.B.Right == 5.0 def testBottom(self): assert self.B.Bottom == 2.0 def testTop(self): assert self.B.Top == 10.0 class TestAsPoly(): B = BBox(((5, 0), (10, 20))) corners = np.array([(5., 0.), (5., 20.), (10., 20.), (10., 0.)], dtype=np.float64) def testCorners(self): print(self.B.AsPoly()) assert np.array_equal(self.B.AsPoly(), self.corners)
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 15945, 29908, 13, 3057, 775, 363, 278, 350, 3313, 4669, 13, 15945, 29908, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 11451, 1688, 13, 13, 3166, 16303, 29918, 13239, 29889, 9917, 29918, 1884, 1053, 313, 29933, 3313, 29892, 13, 462, 462, 418, 408, 29933, 3313, 29892, 13, 462, 462, 418, 19014, 29933, 3313, 29892, 13, 462, 462, 418, 9969, 29933, 3313, 29892, 13, 462, 462, 418, 515, 14388, 2588, 29892, 13, 462, 462, 418, 515, 29918, 9748, 29892, 13, 462, 462, 418, 1723, 13, 13, 13, 1990, 4321, 1168, 4984, 943, 7295, 13, 13, 1678, 822, 1243, 29918, 1037, 1078, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 4961, 13, 4706, 4974, 338, 8758, 29898, 29933, 29892, 350, 3313, 29897, 13, 13, 1678, 822, 1243, 29918, 1853, 29898, 1311, 1125, 13, 4706, 350, 353, 7442, 29889, 2378, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 4961, 13, 4706, 4974, 451, 338, 8758, 29898, 29933, 29892, 350, 3313, 29897, 13, 13, 1678, 822, 1243, 1469, 1542, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 4961, 13, 4706, 4974, 350, 29889, 29881, 1853, 1275, 7442, 29889, 7411, 13, 13, 1678, 822, 1243, 24111, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29900, 29892, 29871, 29900, 29892, 29871, 29945, 29892, 29871, 29945, 876, 13, 4706, 4974, 350, 29889, 12181, 1275, 313, 29906, 29892, 29871, 29906, 29897, 13, 13, 1678, 822, 1243, 24111, 29906, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 350, 3313, 3552, 29900, 29892, 29871, 29900, 29892, 29871, 29945, 876, 13, 13, 1678, 822, 1243, 24111, 29941, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 350, 3313, 3552, 29900, 29892, 29871, 29900, 29892, 29871, 29945, 29892, 29871, 29953, 29892, 29871, 29955, 876, 13, 13, 1678, 822, 1243, 2588, 12075, 4080, 29898, 1311, 1125, 13, 4706, 319, 353, 7442, 29889, 2378, 3552, 29898, 29946, 29892, 29871, 29945, 511, 313, 29896, 29900, 29892, 29871, 29896, 29906, 8243, 7442, 29889, 7411, 19925, 13, 4706, 350, 353, 350, 3313, 29898, 29909, 29897, 13, 4706, 4974, 338, 8758, 29898, 29933, 29892, 350, 3313, 29897, 13, 13, 1678, 822, 1243, 8140, 7976, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 350, 3313, 3552, 29900, 29892, 29871, 29900, 29892, 448, 29896, 29892, 29871, 29953, 876, 13, 13, 1678, 822, 1243, 8140, 7976, 29906, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 350, 3313, 3552, 29900, 29892, 29871, 29900, 29892, 29871, 29896, 29892, 448, 29953, 876, 13, 13, 1678, 822, 1243, 8140, 7976, 29941, 29898, 1311, 1125, 13, 4706, 396, 9280, 304, 505, 263, 5225, 29899, 29879, 1891, 29449, 13, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29900, 29892, 29871, 29945, 4961, 13, 4706, 4974, 338, 8758, 29898, 29933, 29892, 350, 3313, 29897, 13, 13, 1678, 822, 1243, 8140, 7976, 29946, 29898, 1311, 1125, 13, 4706, 396, 9280, 304, 505, 263, 5225, 29899, 29879, 1891, 29449, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29900, 1696, 448, 29941, 29946, 511, 313, 29896, 29900, 1696, 448, 29941, 29946, 29889, 29900, 4961, 13, 4706, 4974, 338, 8758, 29898, 29933, 29892, 350, 3313, 29897, 13, 13, 1678, 822, 1243, 8140, 7976, 29945, 29898, 1311, 1125, 13, 4706, 396, 9280, 304, 505, 263, 21577, 29449, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29896, 29872, 29899, 29906, 29900, 29892, 29871, 29945, 4961, 13, 4706, 4974, 338, 8758, 29898, 29933, 29892, 350, 3313, 29897, 13, 13, 1678, 822, 1243, 8140, 7976, 29953, 29898, 1311, 1125, 13, 4706, 396, 10575, 4380, 21577, 4328, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29900, 511, 8521, 29896, 29872, 29899, 29906, 29900, 29892, 29871, 29945, 4961, 13, 13, 13, 1990, 4321, 2887, 29933, 3313, 7295, 13, 13, 1678, 822, 1243, 7129, 29911, 1092, 820, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 4961, 13, 4706, 315, 353, 408, 29933, 3313, 29898, 29933, 29897, 13, 4706, 4974, 350, 338, 315, 13, 13, 1678, 822, 1243, 7129, 29911, 1092, 820, 29906, 29898, 1311, 1125, 13, 4706, 350, 353, 5135, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 876, 13, 4706, 315, 353, 408, 29933, 3313, 29898, 29933, 29897, 13, 4706, 4974, 350, 338, 451, 315, 13, 13, 1678, 822, 1243, 7129, 2588, 29898, 1311, 1125, 13, 4706, 396, 360, 15622, 848, 1134, 13, 4706, 319, 353, 7442, 29889, 2378, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 4961, 13, 4706, 315, 353, 408, 29933, 3313, 29898, 29909, 29897, 13, 4706, 4974, 319, 338, 451, 315, 13, 13, 1678, 822, 1243, 7129, 2588, 29906, 29898, 1311, 1125, 13, 4706, 396, 1021, 848, 1134, 1192, 881, 367, 263, 1776, 13, 4706, 319, 353, 7442, 29889, 2378, 3552, 29898, 29900, 29892, 29871, 29900, 511, 313, 29945, 29892, 29871, 29945, 8243, 7442, 29889, 7411, 19925, 13, 4706, 315, 353, 408, 29933, 3313, 29898, 29909, 29897, 13, 4706, 319, 29961, 29900, 29892, 29871, 29900, 29962, 353, 448, 29896, 29900, 13, 4706, 4974, 315, 29961, 29900, 29892, 29871, 29900, 29962, 1275, 319, 29961, 29900, 29892, 29871, 29900, 29962, 13, 13, 13, 1990, 4321, 4074, 8803, 7295, 13, 13, 1678, 822, 1243, 29903, 420, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 6278, 29906, 29941, 29889, 29945, 29892, 29871, 29946, 29945, 29953, 511, 313, 29945, 29953, 29892, 29871, 29945, 29941, 29906, 29889, 29900, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29906, 29941, 29889, 29945, 29892, 29871, 29946, 29945, 29953, 511, 313, 29945, 29953, 29892, 29871, 29945, 29941, 29906, 29889, 29900, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 26214, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29896, 29906, 511, 313, 29896, 29900, 29892, 29871, 29941, 29906, 29889, 29900, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 26214, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29906, 29892, 29871, 29896, 29906, 511, 313, 29906, 29945, 29892, 29871, 29941, 29906, 29889, 29900, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 19357, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29906, 29892, 29871, 29945, 511, 313, 29906, 29945, 29892, 29871, 29896, 29945, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 19357, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29900, 29892, 29871, 29945, 511, 313, 29947, 29889, 29945, 29892, 29871, 29896, 29945, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 21140, 340, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29900, 29892, 29871, 29945, 511, 313, 29947, 29889, 29945, 29892, 29871, 29929, 29889, 29906, 4961, 13, 4706, 4974, 451, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 29909, 29205, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29900, 29892, 29871, 29906, 29945, 29889, 29900, 29900, 29896, 511, 313, 29947, 29889, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 451, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29946, 29892, 29871, 29947, 511, 313, 29946, 29889, 29929, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 451, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29955, 29889, 29896, 29892, 29871, 29947, 511, 313, 29896, 29955, 29889, 29929, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 451, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 797, 2975, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 6278, 29896, 29945, 29892, 448, 29906, 29945, 511, 8521, 29945, 29892, 448, 29896, 29900, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29906, 29892, 448, 29906, 29906, 511, 8521, 29953, 29892, 448, 29947, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 3744, 2975, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 6278, 29896, 29945, 29892, 448, 29906, 29945, 511, 8521, 29945, 29892, 448, 29896, 29900, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29955, 29892, 448, 29906, 29953, 511, 313, 29941, 29892, 29871, 29900, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 15852, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29945, 29892, 29871, 29947, 511, 313, 29896, 29955, 29889, 29929, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 12521, 1089, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29945, 29892, 29871, 29906, 29945, 511, 313, 29896, 29955, 29889, 29929, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 24214, 3505, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29945, 29892, 29871, 29906, 29945, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 24214, 3505, 29906, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29945, 29892, 29871, 29896, 29900, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29945, 29892, 29871, 29906, 29945, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 4974, 451, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 24214, 3505, 29941, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29945, 29892, 29871, 29896, 29900, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29947, 511, 313, 29896, 29900, 29892, 29871, 29896, 29906, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 24214, 3505, 29946, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 511, 313, 29896, 29900, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29947, 29892, 29871, 29947, 511, 313, 29947, 29892, 29871, 29947, 4961, 13, 4706, 4974, 350, 29889, 3563, 14128, 29898, 29907, 29897, 13, 13, 13, 1990, 4321, 6108, 2877, 7295, 13, 13, 1678, 822, 1243, 29903, 420, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 4974, 350, 1275, 315, 13, 13, 1678, 822, 1243, 7648, 936, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 4974, 350, 1275, 350, 13, 13, 1678, 822, 1243, 3664, 29903, 420, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 29896, 4961, 13, 4706, 4974, 451, 350, 1275, 315, 13, 13, 1678, 822, 1243, 3047, 2588, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 7442, 29889, 2378, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 4974, 350, 1275, 315, 13, 13, 1678, 822, 1243, 3047, 2588, 29906, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 7442, 29889, 2378, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 4974, 315, 1275, 350, 13, 13, 1678, 822, 1243, 3047, 2588, 29941, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 7442, 29889, 2378, 3552, 29898, 29896, 29889, 29900, 29896, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 4974, 451, 315, 1275, 350, 13, 13, 13, 1990, 4321, 797, 2975, 7295, 13, 13, 1678, 822, 1243, 29903, 420, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 4974, 350, 29889, 797, 2975, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 5228, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 511, 313, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 4961, 13, 4706, 4974, 350, 29889, 797, 2975, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 5228, 3744, 2975, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 511, 313, 29900, 29889, 29896, 29900, 29892, 29871, 29946, 29889, 29900, 4961, 13, 4706, 4974, 451, 350, 29889, 797, 2975, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 26214, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29900, 29892, 29871, 29896, 29906, 511, 313, 29896, 29900, 29892, 29871, 29941, 29906, 29889, 29900, 4961, 13, 4706, 4974, 451, 350, 29889, 797, 2975, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 26214, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29906, 29892, 29871, 29896, 29906, 511, 313, 29906, 29945, 29892, 29871, 29941, 29906, 29889, 29900, 4961, 13, 4706, 4974, 451, 350, 29889, 797, 2975, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 19357, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29906, 29892, 29871, 29945, 511, 313, 29906, 29945, 29892, 29871, 29896, 29945, 4961, 13, 4706, 4974, 451, 350, 29889, 797, 2975, 29898, 29907, 29897, 13, 13, 1678, 822, 1243, 19357, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29900, 29892, 29871, 29945, 511, 313, 29947, 29889, 29945, 29892, 29871, 29896, 29945, 4961, 13, 4706, 4974, 451, 313, 29933, 29889, 797, 2975, 29898, 29907, 876, 13, 13, 1678, 822, 1243, 21140, 340, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29900, 29892, 29871, 29945, 511, 313, 29947, 29889, 29945, 29892, 29871, 29929, 29889, 29906, 4961, 13, 4706, 4974, 451, 313, 29933, 29889, 797, 2975, 29898, 29907, 876, 13, 13, 1678, 822, 1243, 29909, 29205, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 6278, 29896, 29900, 29892, 29871, 29906, 29945, 29889, 29900, 29900, 29896, 511, 313, 29947, 29889, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 451, 313, 29933, 29889, 797, 2975, 29898, 29907, 876, 13, 13, 1678, 822, 1243, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29946, 29892, 29871, 29947, 511, 313, 29946, 29889, 29929, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 451, 313, 29933, 29889, 797, 2975, 29898, 29907, 876, 13, 13, 1678, 822, 1243, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 315, 353, 350, 3313, 3552, 29898, 29896, 29955, 29889, 29896, 29892, 29871, 29947, 511, 313, 29896, 29955, 29889, 29929, 29945, 29892, 29871, 29941, 29906, 4961, 13, 4706, 4974, 451, 313, 29933, 29889, 797, 2975, 29898, 29907, 876, 13, 13, 13, 1990, 4321, 5228, 797, 2975, 7295, 13, 13, 1678, 822, 1243, 5228, 797, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 349, 353, 313, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 29897, 13, 4706, 4974, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 26214, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29946, 29892, 29871, 29941, 29900, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 26214, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29896, 29953, 29892, 29871, 29941, 29900, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 19357, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29896, 29953, 29892, 29871, 29946, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 19357, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 8521, 29896, 29900, 29892, 29871, 29945, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 21140, 340, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29896, 29900, 29892, 29871, 29945, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 29909, 29205, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29896, 29900, 29892, 29871, 29906, 29945, 29889, 29900, 29900, 29896, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29946, 29892, 29871, 29896, 29906, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29896, 29900, 511, 313, 29896, 29945, 29892, 29871, 29906, 29945, 4961, 13, 4706, 349, 353, 313, 29896, 29955, 29889, 29896, 29892, 29871, 29896, 29906, 29889, 29941, 29897, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 5228, 2951, 7031, 3542, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 349, 353, 313, 29941, 29889, 29900, 29892, 29871, 29896, 29900, 1846, 13, 4706, 4974, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 5228, 8091, 7031, 3542, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 349, 353, 8521, 29941, 29889, 29900, 29892, 29871, 29896, 29900, 1846, 13, 4706, 4974, 451, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 5228, 2951, 15342, 3542, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 4706, 349, 353, 313, 29941, 29889, 29900, 29892, 29871, 29945, 1846, 13, 4706, 4974, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 5228, 2951, 8091, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 6278, 29896, 29900, 1696, 448, 29896, 29900, 9774, 8521, 29896, 29889, 29900, 29892, 448, 29896, 29889, 29900, 4961, 13, 4706, 349, 353, 8521, 29896, 29900, 29892, 448, 29945, 1846, 13, 4706, 4974, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 5228, 2951, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 6278, 29896, 29900, 1696, 448, 29896, 29900, 9774, 8521, 29896, 29889, 29900, 29892, 448, 29896, 29889, 29900, 4961, 13, 4706, 349, 353, 8521, 29896, 29892, 448, 29945, 1846, 13, 4706, 4974, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 1678, 822, 1243, 5228, 2951, 15342, 7341, 29898, 1311, 1125, 13, 4706, 350, 353, 350, 3313, 3552, 6278, 29896, 29900, 1696, 448, 29896, 29900, 9774, 8521, 29896, 29889, 29900, 29892, 448, 29896, 29889, 29900, 4961, 13, 4706, 349, 353, 8521, 29896, 29892, 448, 29896, 29900, 1846, 13, 4706, 4974, 313, 29933, 29889, 5228, 797, 2975, 29898, 29925, 876, 13, 13, 13, 1990, 4321, 29918, 3166, 29918, 9748, 7295, 13, 13, 1678, 822, 1243, 4391, 29898, 1311, 1125, 13, 4706, 349, 1372, 353, 7442, 29889, 2378, 3552, 29898, 29945, 29892, 29871, 29906, 511, 313, 29941, 29892, 29871, 29946, 511, 313, 29896, 29892, 29871, 29953, 8243, 7442, 29889, 7411, 29953, 29946, 29897, 13, 4706, 350, 353, 515, 29918, 9748, 29898, 29925, 1372, 29897, 13, 13, 4706, 4974, 313, 29933, 29961, 29900, 29892, 29871, 29900, 29962, 1275, 29871, 29896, 29889, 29900, 322, 13, 18884, 350, 29961, 29900, 29892, 29871, 29896, 29962, 1275, 29871, 29906, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29900, 29962, 1275, 29871, 29945, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29896, 29962, 1275, 29871, 29953, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 4391, 2928, 29879, 29898, 1311, 1125, 13, 4706, 349, 1372, 353, 7442, 29889, 2378, 3552, 29898, 29945, 29892, 29871, 29906, 511, 313, 29941, 29892, 29871, 29946, 511, 313, 29896, 29892, 29871, 29953, 4961, 13, 4706, 350, 353, 515, 29918, 9748, 29898, 29925, 1372, 29897, 13, 4706, 4974, 313, 29933, 29961, 29900, 29892, 29871, 29900, 29962, 1275, 29871, 29896, 29889, 29900, 322, 13, 18884, 350, 29961, 29900, 29892, 29871, 29896, 29962, 1275, 29871, 29906, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29900, 29962, 1275, 29871, 29945, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29896, 29962, 1275, 29871, 29953, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 15771, 5228, 29898, 1311, 1125, 13, 4706, 349, 1372, 353, 7442, 29889, 2378, 3552, 29945, 29892, 29871, 29906, 511, 7442, 29889, 7411, 19925, 13, 4706, 350, 353, 515, 29918, 9748, 29898, 29925, 1372, 29897, 13, 4706, 4974, 313, 29933, 29961, 29900, 29892, 29871, 29900, 29962, 1275, 29871, 29945, 29889, 322, 13, 18884, 350, 29961, 29900, 29892, 29871, 29896, 29962, 1275, 29871, 29906, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29900, 29962, 1275, 29871, 29945, 29889, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29896, 29962, 1275, 29871, 29906, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 1293, 23215, 2701, 29898, 1311, 1125, 13, 4706, 349, 1372, 353, 17288, 29941, 29892, 29871, 29953, 29889, 29945, 511, 313, 29896, 29941, 29892, 29871, 29946, 29941, 29889, 29906, 511, 8521, 29946, 29889, 29941, 29906, 29892, 448, 29946, 511, 313, 29953, 29945, 29892, 448, 29906, 29941, 511, 8521, 29900, 29889, 29900, 29900, 29900, 29896, 29892, 13, 18884, 29906, 29941, 29889, 29946, 29941, 29906, 4638, 13, 4706, 350, 353, 515, 29918, 9748, 29898, 29925, 1372, 29897, 13, 4706, 4974, 313, 29933, 29961, 29900, 29892, 29871, 29900, 29962, 1275, 448, 29946, 29889, 29941, 29906, 322, 13, 18884, 350, 29961, 29900, 29892, 29871, 29896, 29962, 1275, 448, 29906, 29941, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29900, 29962, 1275, 29871, 29953, 29945, 29889, 29900, 322, 13, 18884, 350, 29961, 29896, 29892, 29871, 29896, 29962, 1275, 29871, 29946, 29941, 29889, 29906, 29897, 13, 13, 13, 1990, 4321, 15836, 479, 7295, 13, 13, 1678, 319, 353, 350, 3313, 3552, 6278, 29906, 29941, 29889, 29945, 29892, 29871, 29946, 29945, 29953, 511, 313, 29945, 29953, 29892, 29871, 29945, 29941, 29906, 29889, 29900, 4961, 13, 1678, 350, 353, 350, 3313, 3552, 6278, 29906, 29900, 29889, 29941, 29892, 29871, 29946, 29953, 29900, 511, 313, 29945, 29946, 29892, 29871, 29946, 29953, 29945, 4961, 259, 396, 350, 881, 367, 6446, 2768, 319, 13, 1678, 315, 353, 350, 3313, 3552, 6278, 29906, 29941, 29889, 29945, 29892, 29871, 29946, 29945, 29953, 511, 313, 29945, 29947, 29892, 29871, 29945, 29946, 29900, 29889, 4961, 29871, 396, 701, 322, 304, 278, 1492, 470, 319, 13, 1678, 360, 353, 350, 3313, 3552, 6278, 29906, 29953, 29889, 29945, 29892, 29871, 29896, 29906, 511, 313, 29945, 29953, 29892, 29871, 29945, 29941, 29906, 29889, 29900, 4961, 13, 13, 1678, 822, 1243, 797, 2975, 29898, 1311, 1125, 13, 4706, 315, 353, 1583, 29889, 29909, 29889, 8552, 580, 13, 4706, 315, 29889, 15836, 479, 29898, 1311, 29889, 29933, 29897, 13, 4706, 4974, 313, 29907, 1275, 1583, 29889, 29909, 29897, 13, 13, 1678, 822, 1243, 13658, 3744, 2975, 29898, 1311, 1125, 13, 4706, 315, 353, 1583, 29889, 29933, 29889, 8552, 580, 13, 4706, 315, 29889, 15836, 479, 29898, 1311, 29889, 29909, 29897, 13, 4706, 4974, 313, 29907, 1275, 1583, 29889, 29909, 29897, 13, 13, 1678, 822, 1243, 3373, 7341, 29898, 1311, 1125, 13, 4706, 319, 353, 1583, 29889, 29909, 29889, 8552, 580, 13, 4706, 319, 29889, 15836, 479, 29898, 1311, 29889, 29907, 29897, 13, 4706, 4974, 313, 29909, 29961, 29900, 29962, 1275, 1583, 29889, 29909, 29961, 29900, 29962, 322, 319, 29961, 29896, 29962, 1275, 1583, 29889, 29907, 29961, 29896, 2314, 13, 13, 1678, 822, 1243, 6767, 8091, 29898, 1311, 1125, 13, 4706, 319, 353, 1583, 29889, 29909, 29889, 8552, 580, 13, 4706, 319, 29889, 15836, 479, 29898, 1311, 29889, 29928, 29897, 13, 4706, 4974, 313, 29909, 29961, 29900, 29962, 1275, 1583, 29889, 29928, 29961, 29900, 29962, 322, 319, 29961, 29896, 29962, 1275, 1583, 29889, 29909, 29961, 29896, 2314, 13, 13, 13, 1990, 4321, 6110, 7011, 7295, 13, 13, 1678, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 13, 1678, 822, 1243, 6110, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29889, 6110, 1275, 29871, 29946, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 6110, 29906, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29889, 7011, 1275, 29871, 29947, 29889, 29900, 29897, 13, 13, 1678, 822, 1243, 2697, 29956, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 6708, 2392, 1125, 13, 9651, 1583, 29889, 29933, 29889, 7011, 353, 29871, 29953, 13, 13, 1678, 822, 1243, 2697, 29950, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 6708, 2392, 1125, 13, 9651, 1583, 29889, 29933, 29889, 6110, 353, 29871, 29953, 13, 13, 13, 1990, 4321, 13409, 7295, 13, 13, 1678, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 13, 1678, 822, 1243, 13409, 29898, 1311, 1125, 13, 4706, 4974, 5135, 1311, 29889, 29933, 29889, 13409, 1275, 313, 29941, 29889, 29900, 29892, 29871, 29953, 29889, 29900, 8106, 497, 3101, 13, 13, 1678, 822, 1243, 2697, 13409, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 6708, 2392, 1125, 13, 9651, 1583, 29889, 29933, 29889, 13409, 353, 313, 29953, 29892, 29871, 29945, 29897, 13, 13, 13, 1990, 4321, 14388, 2378, 7295, 13, 13, 1678, 29449, 2378, 353, 7442, 29889, 2378, 3552, 3552, 29899, 29906, 29941, 29889, 29945, 29892, 29871, 29946, 29945, 29953, 511, 313, 29945, 29953, 29892, 29871, 29945, 29941, 29906, 29889, 29900, 8243, 5135, 29899, 29906, 29900, 29889, 29941, 29892, 29871, 29946, 29953, 29900, 511, 13, 462, 539, 313, 29945, 29946, 29892, 29871, 29946, 29953, 29945, 8243, 5135, 29899, 29906, 29941, 29889, 29945, 29892, 29871, 29946, 29945, 29953, 511, 313, 29945, 29947, 29892, 29871, 29945, 29946, 29900, 1846, 511, 5135, 29899, 29906, 29953, 29889, 29945, 29892, 13, 462, 4706, 29896, 29906, 511, 313, 29945, 29953, 29892, 29871, 29945, 29941, 29906, 29889, 29900, 876, 511, 26688, 29922, 9302, 29889, 7411, 29897, 13, 1678, 29449, 353, 408, 29933, 3313, 3552, 6278, 29906, 29953, 29889, 29945, 29892, 29871, 29896, 29906, 9774, 313, 29945, 29947, 1696, 29871, 29945, 29946, 29900, 29889, 4961, 13, 13, 1678, 822, 1243, 17242, 29898, 1311, 1125, 13, 4706, 29449, 353, 515, 14388, 2588, 29898, 1311, 29889, 14388, 2378, 29897, 13, 4706, 4974, 29449, 1275, 1583, 29889, 14388, 13, 13, 13, 1990, 4321, 7327, 29933, 3313, 7295, 13, 13, 1678, 350, 29896, 353, 19014, 29933, 3313, 580, 13, 1678, 350, 29906, 353, 19014, 29933, 3313, 580, 13, 1678, 350, 29941, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 13, 1678, 822, 1243, 9065, 29898, 1311, 1125, 13, 4706, 4974, 313, 9302, 29889, 497, 3009, 29898, 9302, 29889, 275, 13707, 29898, 1311, 29889, 29933, 29896, 4961, 13, 13, 1678, 822, 1243, 3624, 7327, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29896, 29889, 3624, 7327, 29897, 13, 13, 1678, 822, 1243, 14776, 29898, 1311, 1125, 13, 4706, 4974, 5135, 1311, 29889, 29933, 29896, 1275, 1583, 29889, 29933, 29906, 29897, 338, 5852, 29897, 13, 13, 1678, 822, 1243, 3664, 14776, 29898, 1311, 1125, 13, 4706, 4974, 451, 1583, 29889, 29933, 29896, 1275, 1583, 29889, 29933, 29941, 13, 13, 1678, 822, 1243, 3664, 14776, 29906, 29898, 1311, 1125, 13, 4706, 4974, 451, 1583, 29889, 29933, 29941, 1275, 1583, 29889, 29933, 29896, 13, 13, 1678, 822, 1243, 15836, 479, 29898, 1311, 1125, 13, 4706, 315, 353, 1583, 29889, 29933, 29896, 29889, 8552, 580, 13, 4706, 315, 29889, 15836, 479, 29898, 1311, 29889, 29933, 29941, 29897, 13, 4706, 4974, 315, 1275, 1583, 29889, 29933, 29941, 29892, 525, 14634, 5229, 29892, 2355, 29901, 1273, 29879, 29915, 1273, 315, 13, 13, 1678, 822, 1243, 3563, 14128, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29896, 29889, 3563, 14128, 29898, 1311, 29889, 29933, 29941, 29897, 338, 7700, 13, 13, 1678, 822, 1243, 3563, 14128, 29906, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29941, 29889, 3563, 14128, 29898, 1311, 29889, 29933, 29896, 29897, 338, 7700, 13, 13, 13, 1990, 4321, 25433, 29933, 3313, 7295, 13, 13, 1678, 350, 29896, 353, 9969, 29933, 3313, 580, 13, 1678, 350, 29906, 353, 9969, 29933, 3313, 580, 13, 1678, 350, 29941, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 1678, 405, 29933, 353, 19014, 29933, 3313, 580, 13, 13, 1678, 822, 1243, 9065, 29898, 1311, 1125, 13, 4706, 4974, 313, 9302, 29889, 497, 3009, 29898, 9302, 29889, 275, 7192, 29898, 1311, 29889, 29933, 29896, 4961, 13, 13, 29937, 1678, 822, 1243, 3624, 7327, 29898, 1311, 1125, 13, 29937, 4706, 4974, 313, 1583, 29889, 29933, 29896, 29889, 3624, 7327, 1723, 13, 13, 1678, 822, 1243, 14776, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29896, 1275, 1583, 29889, 29933, 29906, 13, 13, 1678, 822, 1243, 3664, 14776, 29898, 1311, 1125, 13, 4706, 4974, 451, 1583, 29889, 29933, 29896, 1275, 1583, 29889, 29933, 29941, 13, 13, 1678, 822, 1243, 3664, 14776, 29906, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29896, 2804, 1583, 29889, 29933, 29941, 13, 13, 1678, 822, 1243, 3664, 14776, 29941, 29898, 1311, 1125, 13, 4706, 4974, 451, 1583, 29889, 29933, 29941, 1275, 1583, 29889, 29933, 29896, 13, 13, 1678, 822, 1243, 15836, 479, 29898, 1311, 1125, 13, 4706, 315, 353, 1583, 29889, 29933, 29896, 29889, 8552, 580, 13, 4706, 315, 29889, 15836, 479, 29898, 1311, 29889, 29933, 29941, 29897, 13, 4706, 4974, 315, 1275, 1583, 29889, 29933, 29906, 29892, 525, 14634, 5229, 29892, 2355, 29901, 1273, 29879, 29915, 1273, 315, 13, 13, 1678, 822, 1243, 15836, 479, 29906, 29898, 1311, 1125, 13, 4706, 315, 353, 1583, 29889, 29933, 29941, 29889, 8552, 580, 13, 4706, 315, 29889, 15836, 479, 29898, 1311, 29889, 29933, 29896, 29897, 13, 4706, 4974, 315, 1275, 1583, 29889, 29933, 29896, 29892, 525, 14634, 5229, 29892, 2355, 29901, 1273, 29879, 29915, 1273, 315, 13, 13, 1678, 822, 1243, 3563, 14128, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29896, 29889, 3563, 14128, 29898, 1311, 29889, 29933, 29906, 29897, 338, 5852, 29897, 13, 13, 1678, 822, 1243, 3563, 14128, 29906, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29941, 29889, 3563, 14128, 29898, 1311, 29889, 29933, 29896, 29897, 338, 5852, 29897, 13, 13, 1678, 822, 1243, 3563, 14128, 29941, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29896, 29889, 3563, 14128, 29898, 1311, 29889, 29933, 29941, 29897, 338, 5852, 29897, 13, 13, 1678, 822, 1243, 3563, 14128, 29946, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 29933, 29896, 29889, 3563, 14128, 29898, 1311, 29889, 23189, 29897, 338, 5852, 29897, 13, 13, 1678, 822, 1243, 3563, 14128, 29945, 29898, 1311, 1125, 13, 4706, 4974, 313, 1311, 29889, 23189, 29889, 3563, 14128, 29898, 1311, 29889, 29933, 29896, 29897, 338, 5852, 29897, 13, 13, 13, 1990, 4321, 29903, 2247, 7295, 13, 13, 1678, 350, 353, 350, 3313, 3552, 29898, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 511, 313, 29945, 1696, 29871, 29896, 29900, 29889, 4961, 13, 13, 1678, 822, 1243, 8091, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29889, 8091, 1275, 29871, 29896, 29889, 29900, 13, 13, 1678, 822, 1243, 7341, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29889, 7341, 1275, 29871, 29945, 29889, 29900, 13, 13, 1678, 822, 1243, 15342, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29889, 15342, 1275, 29871, 29906, 29889, 29900, 13, 13, 1678, 822, 1243, 7031, 29898, 1311, 1125, 13, 4706, 4974, 1583, 29889, 29933, 29889, 7031, 1275, 29871, 29896, 29900, 29889, 29900, 13, 13, 13, 1990, 4321, 2887, 7713, 29891, 7295, 13, 13, 1678, 350, 353, 350, 3313, 3552, 29898, 29945, 29892, 29871, 29900, 511, 313, 29896, 29900, 29892, 29871, 29906, 29900, 4961, 13, 1678, 26995, 353, 7442, 29889, 2378, 4197, 29898, 29945, 1696, 29871, 29900, 9774, 313, 29945, 1696, 29871, 29906, 29900, 9774, 313, 29896, 29900, 1696, 29871, 29906, 29900, 9774, 313, 29896, 29900, 1696, 29871, 29900, 1846, 1402, 13, 462, 539, 26688, 29922, 9302, 29889, 7411, 29953, 29946, 29897, 13, 13, 1678, 822, 1243, 29907, 1398, 414, 29898, 1311, 1125, 13, 4706, 1596, 29898, 1311, 29889, 29933, 29889, 2887, 7713, 29891, 3101, 13, 4706, 4974, 7442, 29889, 2378, 29918, 11745, 29898, 1311, 29889, 29933, 29889, 2887, 7713, 29891, 3285, 1583, 29889, 29883, 1398, 414, 29897, 13, 2 ]
vfp2py/fxp_read.py
wroldwiedbwe/vfp2py
36
1602501
# coding=utf-8 from __future__ import absolute_import, division, print_function import io import sys import os import struct from math import floor, log10 from datetime import datetime, timedelta from collections import OrderedDict import re import errno import dbf HEADER_SIZE = 0x29 FOOTER_ENTRY_SIZE = 0x19 ENCRYPTED_IDENTIFIER = b'\xfe\xf2\xee' IDENTIFIER = b'\xfe\xf2\xff' def checksum_calc(string): chunk = string[0] chunka = (chunk & 0xF0) >> 4 chunkb = (chunk & 0x0F) >> 0 chunk = string[1] chunkc = (chunk & 0xF0) >> 4 chunkd = (chunk & 0x0F) >> 0 for chunk in string: chunka ^= (chunk & 0xF0) >> 4 chunkb ^= (chunk & 0x0F) >> 0 chunk = (chunka << 9) + ((chunka ^ chunkb) << 5) chunka, chunkb, chunkc, chunkd = ( chunka ^ chunkb ^ chunkc ^ ((chunk & 0xF000) >> 12), chunkd ^ ((chunk & 0x0F00) >> 8), chunka ^ ((chunk & 0x00F0) >> 4), chunka ^ chunkb ^ ((chunk & 0x000F) >> 0), ) return (chunka << 12) + (chunkb << 8) + (chunkc << 4) + (chunkd << 0) class BinaryFix(object): def __init__(self, name, open_params): self.fid = io.open(name, open_params) def read(self, length=None): return bytearray(self.fid.read(length)) def write(self, string): self.fid.write(string) def __enter__(self): return self def __exit__(self, type, value, traceback): self.fid.close() def seek(self, pos, start_pos=0): self.fid.seek(pos, start_pos) def tell(self): return self.fid.tell() def open(name, open_params): return BinaryFix(name, open_params) class FXPName(object): def __init__(self, name): self.name = str(name) def __repr__(self): return self.name class FXPAlias(FXPName): def __repr__(self): return self.name + '.' class FXPNumber(object): def __init__(self, number, digits, dec_digits=0): self.number = number digits -= dec_digits digits = max(digits, 0) self.format_string = '{{:0{}.{}f}}'.format(digits, dec_digits) def __repr__(self): return self.format_string.format(self.number) class FXPCurrency(object): def __init__(self, number, digits, dec_digits=0): self.number = number self.dec_digits = dec_digits digits -= dec_digits digits = max(digits, 0) self.digits = digits def __repr__(self): base = 10**self.dec_digits return '${}.{}'.format(self.number // base, self.number % base) def round_sig(x, sig): if x == 0: return 0. return round(x, sig-int(floor(log10(abs(x))))-1) def read_string(fid, *args): return fid.read(read_ushort(fid)).decode('ISO-8859-1') def read_single_quoted_string(fid, *args): return FXPName("'{}'".format(read_string(fid))) def read_double_quoted_string(fid, *args): return FXPName('"{}"'.format(read_string(fid))) def read_int8(fid, *args): digits = fid.read(1)[0] return FXPNumber(fid.read(1)[0], digits) def read_int16(fid, *args): digits = fid.read(1)[0] return FXPNumber(read_short(fid), digits) def read_int32(fid, *args): digits = fid.read(1)[0] return FXPNumber(read_int(fid), digits) def read_double(fid, *args): digits = fid.read(1)[0] - 1 dec_digits = fid.read(1)[0] return FXPNumber(struct.unpack('<d', fid.read(8))[0], digits, dec_digits) def read_float(fid, *args): return FXPNumber(struct.unpack('<i', fid.read(4))[0] / 65536., 10, 4) def read_currency(fid, *args): digits = fid.read(1)[0] - 1 dec_digits = fid.read(1)[0] return FXPCurrency(struct.unpack('<q', fid.read(8))[0], digits, dec_digits) def read_datetimeexpr(fid): days = struct.unpack('<d', fid.read(8))[0] if not days: return None days = timedelta(days - 2440588) days=timedelta(seconds=round(days.total_seconds())) return datetime.utcfromtimestamp(0) + days def read_datetime(fid, *args): dt = read_datetimeexpr(fid) if not dt: return '{ / / }' return '{{^{}}}'.format(dt) def read_date(fid, *args): dt = read_datetimeexpr(fid) if not dt: return '{ / / }' return '{{^{}}}'.format(dt.date()) def read_alias(fid, names, *args): return FXPAlias(names[read_ushort(fid)]) def read_special_alias(fid, *args): return FXPAlias(SPECIAL_NAMES[fid.read(1)[0]]) def read_system_alias(fid, *args): return FXPAlias(SYSTEM_NAMES[fid.read(1)[0]]) def read_system_name(fid, *args): return FXPName(SYSTEM_NAMES[fid.read(1)[0]]) def read_menu_system_name(fid, *args): return FXPName(MENU_SYSTEM_NAMES[fid.read(1)[0]]) def read_name(fid, names): return FXPName(names[read_ushort(fid)]) def read_raw(fid, length): return ' '.join('{:02x}'.format(d) for d in fid.read(length)) def read_next_code(fid, names, expr=None): if expr is None: expr = [] codeval = fid.read(1)[0] if codeval == END_EXPR: return codeval if codeval == PARAMETER_MARK: code = codeval elif codeval == SQL_SUBQUERY: length = read_ushort(fid) final = fid.tell() + length fid.read(1) code = FXPName('(SELECT {})'.format(parse_subline(fid, length, final, names, []))) elif codeval in FUNCTIONS: code = FUNCTIONS[codeval] if codeval in (0xE5, 0xF6): code = code(fid, names) while expr and type(expr[-1]) is FXPAlias: code = FXPName(repr(expr.pop()) + repr(code)) code = repr(code) elif callable(code): code = code(fid) parameters = [] while expr: parameter = expr.pop() if parameter == PARAMETER_MARK: break parameters.insert(0, parameter) code += '({})'.format(', '.join(repr(p) for p in parameters)) if codeval == 0xE5: code = FXPAlias(code) else: code = FXPName(code) elif codeval in OPERATORS: code = OPERATORS[codeval] if code[1] == 0: return read_next_code(fid, names, expr) elif code[1] > 0: parameters = [p for p in reversed([expr.pop() for i in range(code[1])])] if len(parameters) == 1: code = FXPName('({} {})'.format(code[0], repr(parameters[0]))) else: code = FXPName('({})'.format((' ' + code[0] + ' ').join(repr(p) for p in parameters))) else: code = code[0] elif codeval in VALUES: code = VALUES[codeval] if callable(code): code = code(fid, names) if codeval in (0xF0, 0xF1): return read_next_code(fid, names, expr) if type(code) is FXPName: while expr and type(expr[-1]) is FXPAlias: code = FXPName(repr(expr.pop()) + repr(code)) elif type(code) is FXPAlias: pass elif type(code) in (float, int): code = FXPName(repr(code)) else: code = FXPName(code) else: raise KeyError(hex(codeval)) return code def read_expr(fid, names, *args): expr = [] while True: code = read_next_code(fid, names, expr) if code == END_EXPR: break if code: expr.append(code) if len(expr) == 1: return expr[0] return expr def read_setcode(fid, length): return ['SET ' + SETCODES[fid.read(1)[0]]] def read_text(fid, length): length = read_ushort(fid) return [''.join(chr(x) for x in fid.read(length))] class Token(object): def __init__(self, tokenstr, tokenval): self.str = tokenstr self.val = tokenval def __repr__(self): return repr('{}({})'.format(self.str, self.val)) END_EXPR = 0xFD; PARAMETER_MARK = 0x43; SQL_SUBQUERY = 0xE8 SPECIAL_NAMES = { 0x0D: 'M', } SYSTEM_NAMES = { 0x00: '_ALIGNMENT', 0x05: '_PAGENO', 0x19: '_DBLCLICK', 0x1A: '_CALCVALUE', 0x1B: '_CALCMEM', 0x1C: '_DIARYDATE', 0x1D: '_CLIPTEXT', 0x1E: '_TEXT', 0x1F: '_PRETEXT', 0x20: '_TALLY', 0x21: '_CUROBJ', 0x22: '_MLINE', 0x23: '_THROTTLE', 0x24: '_GENMENU', 0x2F: '_STARTUP', 0x30: '_TRANSPORT', 0x31: '_BEAUTIFY', 0x32: '_DOS', 0x33: '_MAC', 0x34: '_UNIX', 0x35: '_WINDOWS', 0x36: '_SPELLCHK', 0x37: '_SHELL', 0x39: '_SCREEN', 0x3A: '_BUILDER', 0x3B: '_CONVERTER', 0x3C: '_WIZARD', 0x3D: '_TRIGGERLEVEL', 0x3E: '_ASCIICOLS', 0x3F: '_ASCIIROWS', 0x40: '_BROWSER', 0x41: '_SCCTEXT', 0x42: '_COVERAGE', 0x43: '_VFP', 0x44: '_GALLERY', 0x45: '_GETEXPR', 0x46: '_INCLUDE', 0x47: '_GENHTML', 0x49: '_SAMPLES', 0x4A: '_TASKLIST', 0x4B: '_ObjectBrowser', 0x4D: '_FOXCODE', 0x4E: '_FoxTask', 0x4F: '_CODESENSE', 0x50: '_INCSEEK', 0x51: '_PAGETOTAL', 0x52: '_FOXREF', 0x53: '_TOOLBOX', 0x54: '_TASKPANE', 0x55: '_REPORTBUILDER', 0x56: '_REPORTPREVIEW', 0x57: '_REPORTOUTPUT', } MENU_SYSTEM_NAMES = { 0x02: '_MSYSMENU', 0x03: '_MSM_SYSTM', 0x04: '_MSM_FILE', 0x05: '_MSM_EDIT', 0x08: '_MSM_PROG', 0x09: '_MSM_WINDO', 0x0A: '_MSM_VIEW', 0x0B: '_MSM_TOOLS', 0x0D: '_MSYSTEM', 0x10: '_MST_HPSCH', 0x12: '_MST_MACRO', 0x13: '_MST_SP100', 0x1B: '_MST_SP200', 0x1E: '_MST_TECHS', 0x1F: '_MST_ABOUT', 0x22: '_MST_VFPWEB', 0x23: '_MFILE', 0x24: '_MFI_NEW', 0x25: '_MFI_OPEN', 0x26: '_MFI_CLOSE', 0x27: '_MFI_CLALL', 0x28: '_MFI_SP100', 0x29: '_MFI_SAVE', 0x2A: '_MFI_SAVAS', 0x2B: '_MFI_REVRT', 0x2C: '_MFI_SP200', 0x2F: '_MFI_SYSPRINT', 0x31: '_MFI_SP300', 0x32: '_MFI_QUIT', 0x33: '_MFI_PREVU', 0x34: '_MFI_PGSET', 0x35: '_MFI_IMPORT', 0x36: '_MFI_EXPORT', 0x37: '_MFI_SP400', 0x38: '_MFI_SEND', 0x39: '_MEDIT', 0x3A: '_MED_UNDO', 0x3B: '_MED_REDO', 0x3C: '_MED_SP100', 0x3D: '_MED_CUT', 0x3E: '_MED_COPY', 0x3F: '_MED_PASTE', 0x40: '_MED_PSTLK', 0x41: '_MED_CLEAR', 0x42: '_MED_SP200', 0x43: '_MED_INSOB', 0x44: '_MED_OBJ', 0x45: '_MED_LINK', 0x47: '_MED_SP300', 0x48: '_MED_SLCTA', 0x49: '_MED_SP400', 0x4A: '_MED_GOTO', 0x4B: '_MED_FIND', 0x4D: '_MED_REPL', 0x4F: '_MED_SP500', 0x50: '_MED_BEAUT', 0x51: '_MED_PREF', 0x70: '_MPROG', 0x71: '_MPR_DO', 0x72: '_MPR_SP100', 0x73: '_MPR_CANCL', 0x74: '_MPR_RESUM', 0x76: '_MPR_COMPL', 0x7C: '_MPR_SUSPEND', 0x7D: '_MWINDOW', 0x7E: '_MWI_ARRAN', 0x7F: '_MWI_HIDE', 0x82: '_MWI_CLEAR', 0x83: '_MWI_SP100', 0x88: '_MWI_ROTAT', 0x8A: '_MWI_SP200', 0x8B: '_MWI_CMD', 0x8C: '_MWI_VIEW', 0x8D: '_MVI_TOOLB', 0x8E: '_MVIEW', 0x90: '_MTOOLS', 0x91: '_MTL_WZRDS', 0x92: '_MTL_SP100', 0x93: '_MTL_SP200', 0x94: '_MTL_SP300', 0x95: '_MTL_SP400', 0x96: '_MTL_OPTNS', 0x97: '_MTL_BROWSER', 0x98: '_MTI_FOXCODE', 0x99: '_MTL_DEBUGGER', 0x9A: '_MTI_TRACE', 0x9E: '_MTI_LOCALS', 0x9F: '_MTI_DBGOUT', 0xA0: '_MTI_CALLSTACK', 0xC4: '_MSM_TEXT', 0xE6: '_MST_MSDNS', 0xED: '_MTL_GALLERY', 0xEE: '_MTL_COVERAGE', 0xEF: '_MTI_TASKLIST', 0xF1: '_MTI_DOCVIEW', 0xF2: '_MTI_BREAKPOINT', 0xF4: '_MED_LISTMEMBERS', 0xF5: '_MED_QUICKINFO', 0xF6: '_MED_BKMKS', 0xFD: '_MWI_CASCADE', 0xFE: '_MWI_DOCKABLE', } COMMANDS = { #Commands are identified by a single byte as shown in the following list: 0x00: 'SELECT', 0x01: lambda fid, length: ['RAW CODE: ' + fid.read(length).decode('ISO-8859-1')], 0x02: '?', 0x03: '??', 0x04: '@', 0x05: 'ACCEPT', 0x06: 'APPEND', 0x07: 'ASSIST', 0x08: 'AVERAGE', 0x09: 'BROWSE', 0x0A: 'CALL', 0x0B: 'CANCEL', 0x0C: 'CASE', 0x0D: 'CHANGE', 0x0E: 'CLEAR', 0x0F: 'CLOSE', 0x10: 'CONTINUE', 0x11: 'COPY', 0x12: 'COUNT', 0x13: 'CREATE', 0x14: 'DELETE', 0x15: 'DIMENSION', 0x16: 'DIR', 0x17: 'DISPLAY', 0x18: 'DO', 0x19: 'EDIT', 0x1A: 'EJECT', 0x1B: 'ELSE', 0x1C: 'ENDCASE', 0x1D: 'ENDDO', 0x1E: 'ENDIF', 0x1F: 'ENDTEXT', 0x20: 'ERASE', 0x21: 'EXIT', 0x22: 'FIND', 0x23: 'GO', 0x24: 'HELP', 0x25: 'IF', 0x26: 'INDEX', 0x27: 'INPUT', 0x28: 'INSERT', 0x29: 'JOIN', 0x2A: 'LABEL', 0x2B: 'LIST', 0x2C: 'LOAD', 0x2D: 'LOCATE', 0x2E: 'LOOP', 0x2F: 'MODIFY', 0x30: lambda fid, length: ['NOTE'] + [fid.read(length).decode('ISO-8859-1')],#'NOTE', 0x31: 'ON', 0x32: 'OTHERWISE', 0x33: 'PACK', 0x34: 'PARAMETERS', 0x35: 'PRIVATE', 0x36: 'PROCEDURE', 0x37: 'PUBLIC', 0x38: 'QUIT', 0x39: 'READ', 0x3A: 'RECALL', 0x3B: 'REINDEX', 0x3C: 'RELEASE', 0x3D: 'RENAME', 0x3E: 'REPLACE', 0x3F: 'REPORT', 0x40: 'RESTORE', 0x41: 'RESUME', 0x42: 'RETURN', 0x43: 'RUN', 0x44: 'SAVE', 0x45: 'SEEK', 0x46: 'SELECT', 0x47: read_setcode, 0x48: 'SKIP', 0x49: 'SORT', 0x4A: 'STORE', 0x4B: 'SUM', 0x4C: 'SUSPEND', 0x4D: 'TEXT', 0x4E: 'TOTAL', 0x4F: 'TYPE', 0x50: 'UPDATE', 0x51: 'USE', 0x52: 'WAIT', 0x53: 'ZAP', 0x54: lambda fid, length: [], #variable assignment 0x55: 'ENDPROC\n', 0x56: 'EXPORT', 0x57: 'IMPORT', 0x58: 'RETRY', 0x5A: 'UNLOCK', 0x5B: 'FLUSH', 0x5C: 'KEYBOARD', 0x5D: 'MENU', 0x5E: 'SCATTER', 0x5F: 'GATHER', 0x60: 'SCROLL', 0x68: 'CREATE', 0x69: 'ALTER', 0x6A: 'DROP', 0x6F: 'SELECT', 0x70: 'UPDATE', 0x71: 'DELETE', 0x72: 'INSERT', 0x73: 'DEFINE', 0x74: 'ACTIVATE', 0x75: 'DEACTIVATE', 0x76: 'PRINTJOB', 0x77: 'ENDPRINTJOB', 0x79: '???', 0x7A: 'MOVE', 0x7B: 'ON', #CLEAR ON event 0x7C: 'DECLARE', 0x7D: 'CALCULATE', 0x7E: 'SCAN', 0x7F: 'ENDSCAN', 0x80: 'SHOW', 0x81: 'PLAY', 0x82: 'GETEXPR', 0x83: 'COMPILE', 0x84: 'FOR', 0x85: 'ENDFOR', 0x86: '=', #expression, 0x87: 'HIDE', 0x89: 'SIZE', 0x8A: 'PUSH', 0x8B: 'POP', 0x8C: 'ZOOM', 0x8D: '\\', 0x8E: '\\\\', 0x8F: 'BUILD', 0x90: 'EXTERNAL', 0x93: 'BLANK', 0x95: 'OPEN', 0x96: 'ADD', 0x97: 'REMOVE', 0x99: lambda fid, length: [], #function call 0x9B: 'BEGIN', 0x9C: 'ROLLBACK', 0x9D: 'END', 0x9E: 'add hidden method', 0x9F: 'HIDDEN', 0xA0: 'VALIDATE', 0xA1: 'PROTECTED', 0xA2: 'add method', 0xA3: 'add protected method', 0xA6: 'WITH', 0xA7: 'ENDWITH', 0xA8: 'ERROR', 0xA9: 'ASSERT', 0xAA: 'DEBUGOUT', 0xAB: 'FREE', 0xAC: 'NODEFAULT', 0xAD: 'MOUSE', 0xAE: 'LOCAL', 0xAF: 'LPARAMETERS', 0xB0: 'CD', 0xB1: 'MKDIR', 0xB2: 'RMDIR', 0xB3: 'DEBUG', 0xB4: lambda fid, length: ['BAD CODE: ' + fid.read(length).decode('ISO-8859-1')], 0xB5: 'FOR EACH', 0xB6: 'ENDFOREACH', 0xB7: 'DOEVENTS', 0xB9: 'IMPLEMENTS', 0xBA: 'TRY', 0xBB: 'CATCH', 0xBC: 'FINALLY', 0xBD: 'THROW', 0xBE: 'ENDTRY', 0xFB: read_text, } SETCODES = { 0x01: 'ALTERNATE', 0x02: 'BELL', 0x03: 'CARRY', 0x05: 'CENTURY', 0x07: 'COLOR', 0x09: 'CONFIRM', 0x0A: 'CONSOLE', 0x0B: 'DATE', 0x0C: 'DEBUG', 0x0E: 'DEFAULT', 0x0D: 'DECIMALS', 0x0F: 'DELETED', 0x15: 'ESCAPE', 0x16: 'EXACT', 0x17: 'EXCLUSIVE', 0x18: 'FIELDS', 0x1A: 'FILTER', 0x1B: 'FIXED', 0x1C: 'FORMAT', 0x1D: 'FUNCTION', 0x1E: 'HEADINGS', 0x1F: 'HELP', 0x21: 'INDEX', 0x23: 'MARGIN', 0x24: 'MEMOWIDTH', 0x26: 'MESSAGE', 0x27: 'ODOMETER', 0x28: 'ORDER', 0x29: 'PATH', 0x2A: 'PRINTER', 0x2B: 'PROCEDURE', 0x2D: 'RELATION', 0x2E: 'SAFETY', 0x30: 'STATUS', 0x31: 'STEP', 0x32: 'TALK', 0x35: 'TYPEAHEAD', 0x36: 'UNIQUE', 0x37: 'VIEW', 0x39: 'HOURS', 0x3A: 'MARK', 0x3B: 'POINT', 0x3C: 'SEPERATOR', 0x3D: 'BORDER', 0x3E: 'CLOCK', 0x40: 'SPACE', 0x41: 'COMPATIBLE', 0x42: 'AUTOSAVE', 0x43: 'BLOCKSIZE', 0x45: 'DEVELOPMENT', 0x46: 'NEAR', 0x48: 'REFRESH', 0x49: 'LOCK', 0x4C: 'WINDOW', 0x4D: 'REPROCESS', 0x4E: 'SKIP', 0x51: 'FULLPATH', 0x54: 'RESOURCE', 0x55: 'TOPIC', 0x57: 'LOGERRORS', 0x59: 'SYSMENU', 0x5A: 'NOTIFY', 0x5C: 'MACKEY', 0x5D: 'CURSOR', 0x5E: 'UDFPARMS', 0x5F: 'MULTILOCKS', 0x60: 'TEXTMERGE', 0x61: 'OPTIMIZE', 0x62: 'LIBRARY', 0x64: 'ANSI', 0x65: 'TRBETWEEN', 0x66: 'PDSETUP', 0x68: 'KEYCOMP', 0x69: 'PALETTE', 0x6A: 'READBORDER', 0x6B: 'COLLATE', 0x6D: 'NOCPTRANS', 0x77: 'NULL', 0x79: 'TAG', 0x7B: 'CPDIALOG', 0x7C: 'CPCOMPILE', 0x7D: 'SECONDS', 0x7E: 'CLASSLIB', 0x7F: 'DATABASE', 0x80: 'DATASESSION', 0x81: 'FDOW', 0x82: 'FWEEK', 0x83: 'SYSFORMATS', 0x84: 'OLEOBJECT', 0x85: 'ASSERTS', 0x86: 'COVERAGE', 0x87: 'EVENTTRACKING', 0x88: 'NULLDISPLAY', 0x89: 'EVENTLIST', 0x8D: 'BROWSEIME', 0x8E: 'STRICTDATE', 0x8F: 'AUTOINCERROR', 0x90: 'ENGINEBEHAVIOR', 0x91: 'TABLEVALIDATE', 0x92: 'SQLBUFFERING', 0x94: 'TABLEPROMPT', 0xFE: '\n', } CLAUSES = { 0x01: 'ADDITIVE', 0x02: 'ALIAS', 0x03: 'ALL', 0x04: 'ARRAY', 0x05: 'AT', 0x06: 'BAR', 0x07: ',', 0x08: 'BLANK', 0x0C: 'CLEAR', 0x0D: 'COLOR', 0x0E: 'DEFAULT', 0x0F: 'DOUBLE', 0x11: 'FIELDS', 0x12: 'FILE', 0x13: 'FOR', 0x14: 'FORM', 0x15: 'FROM', 0x16: 'IN', 0x17: 'KEY', 0x18: '(@ or LIKE)', 0x1A: 'MACROS', 0x1B: 'MEMO', 0x1C: 'MENU', 0x1D: 'MESSAGE', 0x1E: 'NEXT', 0x1F: 'OFF', 0x20: 'ON', 0x21: 'PRINTER', 0x22: 'PROMPT', 0x23: 'RECORD', 0x24: 'REST', 0x25: 'SAVE', 0x26: 'SCREEN', 0x27: 'TITLE', 0x28: 'TO', 0x29: 'TOP', 0x30: 'NOOPTIMIZE', 0x2B: 'WHILE', 0x2C: 'WINDOW', 0x2E: 'OBJECT', 0x31: 'TABLE', 0x32: 'LABEL', 0x33: 'REPORT', 0x36: 'BOTTOM', 0x38: 'BY', 0x39: 'NOCONSOLE', 0x3A: 'NOWAIT', 0x3B: 'PLAIN', 0x3C: 'DESCENDING', 0x3D: 'NOWINDOW', 0x40: 'FONT', 0x41: 'STYLE', 0x42: 'RGB', 0x48: 'CASE', 0x49: 'ID', 0x4A: 'NAME', 0x4B: 'PROGRAM', 0x4C: 'QUERY', 0x4E: 'SCHEME', 0x4F: 'CLASS', 0x51: 'AS', 0x52: 'CLASSLIB', 0x56: 'DLLS', 0x57: 'SHORT', 0x58: 'LEFT', 0x59: 'RIGHT', 0x5B: 'RTLJUSTIFY', 0x5C: 'LTRJUSTIFY', 0x5F: 'PICTRES', 0xE5: read_name, #user defined function alias 0xF6: read_name, #user defined function 0xFC: read_expr, END_EXPR: 'END EXPR', #0xFD 0xFE: '\n' } MULTICLAUSES = { 0x10: ('=', 'ERROR'), 0xBB: ('XL5', 'WITH BUFFERING='), 0xBC: ('INTO', 'ACTIVATE', 'COMMAND', 'PAD'), 0xBD: ('CENTER', 'CURSOR', 'TRANSACTION', 'APP', 'MINIMIZE', 'ESCAPE'), 0xBE: ('PROCEDURE', 'DELIMITED', 'EXE', 'DISTINCT', 'DOS', 'PAGE'), 0xBF: ('UNKNOWN', 'MIN', 'FLOAT'), 0xC0: ('HAVING', 'FREE', 'LOCAL', 'FOOTER'), 0xC1: ('LINE', 'TRIGGER', 'GLOBAL', 'GET'), 0xC2: ('SHARED', 'DATABASE', 'DROP', 'GETS', 'NOINIT'), 0xC3: ('ORDER BY', 'OF', 'REPLACE', 'NOCLOSE'), 0xC4: ('SAY', 'VIEWS'), 0xC5: ('VALUES', 'DBLCLICK'), 0xC6: ('POPUP', 'WHERE', 'DLL', 'DRAG', 'EXCLUDE'), 0xC7: ('*', 'STEP', 'XLS', 'MARK'), 0xC8: ('READ', 'MARGIN', 'RPD', 'READERROR'), 0xCA: ('TAG', 'SET', 'FORCE', 'NOMINIMIZE', 'EXIT'), 0xCB: ('STATUS', 'RECOMPILE', 'PRIMARY', 'WRK'), 0xCC: ('STRUCTURE', 'RELATIVE', 'FOREIGN', 'PROTECTED'), 0xCD: ('SHUTDOWN', 'NOFILTER'), 0xCE: ('TIMEOUT', 'UPDATE'), 0xCF: ('SHADOW',), 0xD0: ('NOCLEAR', 'SELECTION'), 0xD1: ('WITH', 'INTEGER', 'CONNECTION'), 0xD2: ('NOMARGIN',), 0xD3: ('UNIQUE', 'SIZE'), 0xD4: ('TYPE', 'LONG', 'SYSTEM'), 0xD5: ('EVENTS', 'CSV', 'COLUMN'), 0xD6: ('STRING', 'SHEET', 'NORM'), 0xD7: ('READWRITE',), } VALUES = { 0x2D: '.F.', 0x61: '.T.', 0xE4: '.NULL.', 0xD9: read_double_quoted_string, 0xDB: '', 0xDE: read_currency, 0xDF: '::', 0xE0: read_name, 0xE1: read_system_alias, 0xE2: '.', 0xE3: read_alias, 0xE6: read_datetime, 0xE7: read_float, SQL_SUBQUERY: 'SQL SUBQUERY', #0xE8 0xE9: read_int32, 0xEB: read_next_code, 0xEC: read_menu_system_name, 0xED: read_system_name, 0xEE: read_date, 0xF0: lambda fid, *args: '(SHORT CIRCUIT AND IN {})'.format(read_ushort(fid)), 0xF1: lambda fid, *args: '(SHORT CIRCUIT OR IN {})'.format(read_ushort(fid)), 0xF2: lambda fid, *args: '(SHORT CIRCUIT IIF IN {})'.format(read_ushort(fid)), 0xF3: lambda fid, *args: '(SHORT CIRCUIT IIF IN {})'.format(read_ushort(fid)), 0xF4: read_alias, 0xF5: read_special_alias, 0xF7: read_name, 0xF8: read_int8, 0xF9: read_int16, 0xFA: read_double, 0xFB: read_single_quoted_string, 0xFC: read_expr, 0xFF: lambda fid, *args: 'ff ' + read_raw(fid, 2), } OPERATORS = { 0x00: ('NOP', 0), 0x01: ('$', 2), 0x03: ('END PAREN', 0), 0x04: ('*', 2), 0x05: ('^', 2), 0x06: ('+', 2), 0x07: (',', 2), 0x08: ('-', 2), 0x09: ('AND', 2), 0x0A: ('NOT', 1), 0x0B: ('OR', 2), 0x0C: ('/', 2), 0x0D: ('<', 2), 0x0E: ('<=', 2), 0x0F: ('!=', 2), 0x10: ('=', 2), 0x11: ('>', 2), 0x12: ('>=', 2), 0x14: ('==', 2), 0x18: ('@', -1), 0xCC: ('', 1), } FUNCTIONS = { 0x19: 'ABS', 0x1A: lambda fid: EXTENDED1[fid.read(1)[0]], 0x1B: 'ALIAS', 0x1C: 'ASC', 0x1D: 'AT', 0x1E: 'BOF', 0x1F: 'CDOW', 0x20: 'CHR', 0x21: 'CMONTH', 0x22: 'COL', 0x23: 'CTOD', 0x24: 'DATE', 0x25: 'DAY', 0x26: 'DBF', 0x27: 'DELETED', 0x28: 'DISKSPACE', 0x29: 'DOW', 0x2A: 'DTOC', 0x2B: 'EOF', 0x2C: 'ERROR', 0x2E: 'FCOUNT', 0x2F: 'FIELD', 0x30: 'FILE', 0x31: 'FKLABEL', 0x32: 'FKMAX', 0x33: 'FLOCK', 0x34: 'FOUND', 0x35: 'GETENV', 0x36: 'IIF', 0x37: 'INKEY', 0x38: 'INT', 0x39: 'ISALPHA', 0x3A: 'ISCOLOR', 0x3B: 'ISLOWER', 0x3C: 'ISUPPER', 0x3D: 'LEFT', 0x3E: 'LEN', 0x3F: 'LOCK', 0x40: 'LOWER', 0x41: 'LTRIM', 0x42: 'LUPDATE', PARAMETER_MARK: 'MARK PARAMETERS', #0x43 0x44: 'MAX', 0x45: 'MESSAGE', 0x46: 'MIN', 0x47: 'MOD', 0x48: 'MONTH', 0x49: 'NDX', 0x4A: 'OS', 0x4B: 'PCOL', 0x4C: 'PROW', 0x4D: 'READKEY', 0x4E: 'RECCOUNT', 0x4F: 'RECNO', 0x50: 'RECSIZE', 0x51: 'REPLICATE', 0x52: 'RIGHT', 0x53: 'RLOCK', 0x54: 'ROUND', 0x55: 'ROWS', 0x56: 'RTRIM', 0x57: 'SELECT', 0x58: 'SPACE', 0x59: 'SQRT', 0x5A: 'STR', 0x5B: 'STUFF', 0x5C: 'SUBSTR', 0x5D: 'SYS', 0x5E: 'TIME', 0x5F: 'TRANSFORM', 0x60: 'TRIM', 0x62: 'TYPE', 0x64: 'UPDATED', 0x66: 'UPPER', 0x67: 'VAL', 0x68: 'VERSION', 0x69: 'YEAR', 0x6A: 'DMY', 0x6B: 'MDY', 0x6C: 'BAR', 0x6D: 'KEY', 0x6F: 'MEMORY', 0x70: 'MENU', 0x72: 'PAD', 0x73: 'POPUP', 0x74: 'PROGRAM', 0x75: 'PV', 0x76: 'SET', 0x77: 'CEILING', 0x7A: 'FLOOR', 0x7B: 'FV', 0x7C: 'LASTKEY', 0x7D: 'LIKE', 0x7E: 'LOOKUP', 0x7F: 'CDX', 0x80: 'MEMLINES', 0x81: 'MLINE', 0x82: 'ORDER', 0x83: 'PAYMENT', 0x84: 'PRINTSTATUS', 0x85: 'PROMPT', 0x86: 'RAND', 0x87: 'VARREAD', 0x89: 'RTOD', 0x8A: 'SEEK', 0x8B: 'SIGN', 0x8C: 'TAG', 0x8D: 'DTOR', 0x8E: 'DTOS', 0x8F: 'SCHEME', 0x90: 'FOPEN', 0x91: 'FCLOSE', 0x92: 'FREAD', 0x93: 'FWRITE', 0x94: 'FERROR', 0x95: 'FCREATE', 0x96: 'FSEEK', 0x97: 'FGETS', 0x98: 'FFLUSH', 0x99: 'FPUTS', 0x9B: 'ALLTRIM', 0x9C: 'ATLINE', 0x9D: 'CHRTRAN', 0x9E: 'FILTER', 0x9F: 'RELATION', 0xA0: 'TARGET', 0xA1: 'EMPTY', 0xA2: 'FEOF', 0xA3: 'HEADER', 0xA5: 'RAT', 0xA6: 'RATC', 0xA7: 'SECONDS', 0xA8: 'STRTRAN', 0xAA: 'USED', 0xAB: 'BETWEEN', 0xAC: 'CHRSAW', 0xAD: 'INLIST', 0xAE: 'ISDIGIT', 0xAF: 'OCCURS', 0xB0: 'PADC', 0xB1: 'PADL', 0xB2: 'PADR', 0xB3: 'FSIZE', 0xB4: 'SROWS', 0xB5: 'SCOLS', 0xB6: 'WCOLS', 0xB7: 'WROWS', 0xB8: 'ATC', 0xB9: 'ATCLINE', 0xBA: 'CURDIR', 0xBC: 'PROPER', 0xBB: 'FULLPATH', 0xBD: 'WEXISTS', 0xBE: 'WONTOP', 0xBF: 'WOUTPUT', 0xC0: 'WVISIBLE', 0xC1: 'GETFILE', 0xC2: 'PUTFILE', 0xC3: 'GOMONTH', 0xC4: 'PARAMETERS', 0xC5: 'MCOL', 0xC6: 'MDOWN', 0xC7: 'MROW', 0xC8: 'WLCOL', 0xC9: 'WLROW', 0xCB: 'FCHSIZE', 0xCD: 'ALEN', 0xCE: 'EVALUATE', 0xD1: 'ISNULL', 0xD2: 'NVL', 0xE5: read_name, #user defined function alias 0xEA: lambda fid: EXTENDED2[fid.read(1)[0]], 0xF6: read_name, #user defined function } EXTENDED1 = { 0x00: 'DISPLAYPATH', 0x01: 'CURSORTOXML', 0x02: 'XMLTOCURSOR', 0x03: 'GETINTERFACE', 0x04: 'BINDEVENT', 0x05: 'RAISEEVENT', 0x06: 'ADOCKSTATE', 0x07: 'GETCURSORADAPTER', 0x08: 'UNBINDEVENTS', 0x09: 'AEVENTS', 0x0A: 'ADDPROPERTY', 0x0E: 'ICASE', 0x0C: 'EVL', 0x0F: 'CAST', 0x10: 'ASQLHANDLES', 0x11: 'SETRESULTSET', 0x12: 'GETRESULTSET', 0x13: 'CLEARRESULTSET', 0x14: 'SQLIDLEDISCONNECT', 0x15: 'ISMEMOFETCHED', 0x16: 'GETAUTOINCVALUE', 0x17: 'MAKETRANSACTABLE', 0x18: 'ISTRANSACTABLE', 0x19: 'ISPEN', } EXTENDED2 = { #This list contains all those functions that are available through the 0xEA (extended function) code: 0x00: 'PRMPAD', 0x01: 'PRMBAR', 0x02: 'MRKPAD', 0x03: 'MRKBAR', 0x04: 'CNTPAD', 0x05: 'CNTBAR', 0x06: 'GETPAD', 0x07: 'GETBAR', 0x08: 'MWINDOW', 0x09: 'OBJNUM', 0x0A: 'WPARENT', 0x0B: 'WCHILD', 0x0C: 'RDLEVEL', 0x0D: 'ACOPY', 0x0E: 'AINS', 0x0F: 'ADEL', 0x10: 'ASORT', 0x11: 'ASCAN', 0x12: 'AELEMENT', 0x13: 'ASUBSCRIPT', 0x14: 'AFIELDS', 0x15: 'ADIR', 0x16: 'LOCFILE', 0x17: 'WBORDER', 0x18: 'ON', 0x19: '', #Some sort of array indicator? 0x1A: 'WLAST', 0x1B: 'SKPBAR', 0x1C: 'SKPPAD', 0x1D: 'WMAXIMUM', 0x1E: 'WMINIMUM', 0x1F: 'WREAD', 0x20: 'WTITLE', 0x21: 'GETPEM', 0x23: 'TXTWIDTH', 0x24: 'FONTMETRIC', 0x25: 'SYSMETRIC', 0x26: 'WFONT', 0x27: 'GETFONT', 0x28: 'AFONT', 0x29: 'DDEADVISE', 0x2A: 'DDEENABLED', 0x2B: 'DDEEXECUTE', 0x2C: 'DDEINITIATE', 0x2D: 'DDEPOKE', 0x2E: 'DDEREQUEST', 0x2F: 'DDESETSERVICE', 0x30: 'DDESETTOPIC', 0x31: 'DDETERMINATE', 0x32: 'DDELASTERROR', 0x33: 'GETDIR', 0x34: 'DDEABORTTRANS', 0x35: 'DDESETOPTION', 0x36: 'OEMTOANSI', 0x38: 'RGBSCHEME', 0x39: 'CPCONVERT', 0x3A: 'CPCURRENT', 0x3B: 'CPDBF', 0x3C: 'IDXCOLLATE', 0x3E: 'CAPSLOCK', 0x3F: 'NUMLOCK', 0x40: 'INSMODE', 0x41: 'SOUNDEX', 0x42: 'DIFFERENCE', 0x43: 'COS', 0x44: 'SIN', 0x45: 'TAN', 0x46: 'ACOS', 0x47: 'ASIN', 0x48: 'ATAN', 0x49: 'ATN2', 0x4A: 'LOG', 0x4B: 'LOG10', 0x4C: 'EXP', 0x4D: 'PI', 0x4E: 'CREATEOBJECT', 0x4F: 'BARPROMPT', 0x51: 'HOME', 0x53: 'FOR', 0x54: 'UNIQUE', 0x55: 'DESCENDING', 0x56: 'TAGCOUNT', 0x57: 'TAGNO', 0x58: 'FDATE', 0x59: 'FTIME', 0x5A: 'ISBLANK', 0x5B: 'ISMOUSE', 0x5C: 'GETOBJECT', 0x5D: 'OBJTOCLIENT', 0x5E: 'RGB', 0x5F: 'OLDVAL', 0x60: 'ASELOBJ', 0x61: 'ACLASS', 0x62: 'AMEMBERS', 0x63: 'COMPOBJ', 0x64: 'SQLCANCEL', 0x65: 'SQLCOLUMNS', 0x66: 'SQLCONNECT', 0x67: 'SQLDISCONNECT', 0x68: 'PEMSTATUS', 0x69: 'SQLEXEC', 0x6A: 'SQLGETPROP', 0x6B: 'SQLMORERESULTS', 0x6C: 'SQLSETPROP', 0x6D: 'SQLTABLES', 0x6E: 'FLDLIST', 0x6F: 'PRTINFO', 0x70: 'KEYMATCH', 0x71: 'OBJVAR', 0x72: 'NORMALIZE', 0x73: 'ISREADONLY', 0x74: 'PCOUNT', 0x78: 'MESSAGEBOX', 0x79: 'AUSED', 0x7A: 'AERROR', 0x7B: 'SQLCOMMIT', 0x7C: 'SQLROLLBACK', 0x7D: 'MTON', 0x7E: 'NTOM', 0x7F: 'DTOT', 0x80: 'TTOD', 0x81: 'TTOC', 0x82: 'CTOT', 0x83: 'HOUR', 0x84: 'MINUTE', 0x85: 'SEC', 0x86: 'DATETIME', 0x87: 'REQUERY', 0x88: 'CURSORSETPROP', 0x89: 'CURSORGETPROP', 0x8A: 'DBSETPROP', 0x8B: 'DBGETPROP', 0x8C: 'GETCOLOR', 0x8D: 'PRIMARY', 0x8E: 'CANDIDATE', 0x8F: 'CURVAL', 0x90: 'GETFLDSTATE', 0x91: 'SETFLDSTATE', 0x92: 'GETNEXTMODIFIED', 0x93: 'TABLEUPDATE', 0x94: 'TABLEREVERT', 0x95: 'ADATABASES', 0x96: 'DBC', 0x98: 'ADBOBJECTS', 0x99: 'APRINTERS', 0x9A: 'GETPRINTER', 0x9B: 'GETPICT', 0x9C: 'WEEK', 0x9D: 'REFRESH', 0x9E: 'GETCP', 0x9F: 'SQLSTRINGCONNECT', 0xA0: 'CREATEBINARY', 0xA1: 'DODEFAULT', 0xA2: 'ISEXCLUSIVE', 0xA3: 'TXNLEVEL', 0xA4: 'DBUSED', 0xA5: 'AINSTANCE', 0xA6: 'INDBC', 0xA7: 'BITLSHIFT', 0xA8: 'BITRSHIFT', 0xA9: 'BITAND', 0xAA: 'BITOR', 0xAB: 'BITNOT', 0xAC: 'BITXOR', 0xAD: 'BITSET', 0xAE: 'BITTEST', 0xAF: 'BITCLEAR', 0xB0: 'AT_C', 0xB1: 'ATCC', 0xB2: 'RATLINE', 0xB3: 'LEFTC', 0xB4: 'RIGHTC', 0xB5: 'SUBSTRC', 0xB6: 'STUFFC', 0xB7: 'LENC', 0xB8: 'CHRTRANC', 0xBA: 'LIKEC', 0xBC: 'IMESTATUS', 0xBD: 'ISLEADBYTE', 0xBE: 'STRCONV', 0xBF: 'BINTOC', 0xC0: 'CTOBIN', 0xC1: 'ISFLOCKED', 0xC2: 'ISRLOCKED', 0xC3: 'LOADPICTURE', 0xC4: 'SAVEPICTURE', 0xC5: 'SQLPREPARE', 0xC6: 'DIRECTORY', 0xC7: 'CREATEOFFLINE', 0xC8: 'DROPOFFLINE', 0xC9: 'AGETCLASS', 0xCA: 'AVCXCLASSES', 0xCB: 'STRTOFILE', 0xCC: 'FILETOSTR', 0xCD: 'ADDBS', 0xCE: 'DEFAULTEXT', 0xCF: 'DRIVETYPE', 0xD0: 'FORCEEXT', 0xD1: 'FORCEPATH', 0xD2: 'JUSTDRIVE', 0xD3: 'JUSTEXT', 0xD4: 'JUSTFNAME', 0xD5: 'JUSTPATH', 0xD6: 'JUSTSTEM', 0xD7: 'INDEXSEEK', 0xD8: 'COMRETURNERROR', 0xD9: 'VARTYPE', 0xDA: 'ALINES', 0xDB: 'NEWOBJECT', 0xDC: 'AMOUSEOBJ', 0xDD: 'COMCLASSINFO', 0xE0: 'ANETRESOURCES', 0xE1: 'AGETFILEVERSION', 0xE2: 'CREATEOBJECTEX', 0xE3: 'COMARRAY', 0xE4: 'EXECSCRIPT', 0xE5: 'XMLUPDATEGRAM', 0xE6: 'COMPROP', 0xE7: 'ATAGINFO', 0xE8: 'ASTACKINFO', 0xE9: 'EVENTHANDLER', 0xEA: 'EDITSOURCE', 0xEB: 'ADLLS', 0xEC: 'QUARTER', 0xED: 'GETWORDCOUNT', 0xEE: 'GETWORDNUM', 0xEF: 'ALANGUAGE', 0xF0: 'STREXTRACT', 0xF1: 'INPUTBOX', 0xF2: 'APROCINFO', 0xF3: 'WDOCKABLE', 0xF4: 'ASESSIONS', 0xF5: 'TEXTMERGE', 0xFD: 'MIN', } CLAUSES.update(VALUES) def read_short(fid): return struct.unpack('<h', fid.read(2))[0] def read_ushort(fid): return struct.unpack('<H', fid.read(2))[0] def read_int(fid): return struct.unpack('<i', fid.read(4))[0] def read_uint(fid): return struct.unpack('<I', fid.read(4))[0] def parse_subline(fid, length, final, names, line): while fid.tell() < final: clauseval = fid.read(1)[0] if clauseval in CLAUSES: clause = CLAUSES[clauseval] if clauseval in MULTICLAUSES: clause = ' or '.join(MULTICLAUSES[clauseval]) if clauseval == 0xF6 or clauseval == 0xF7: clause = clause(fid, names) while line and type(line[-1]) is FXPAlias: clause = FXPName(repr(line.pop()) + repr(clause)) elif callable(clause): clause = clause(fid, names) else: clause = FXPName(clause) line.append(clause) if len(line) > 1 and isinstance(line[-2], int): line.pop(-2) fid.seek(final - length) try: line = [' '.join(repr(l) for l in line)] except: pass line + [read_raw(fid, length)] + [fid.tell() - length] return line[0] def parse_line(fid, length, names): final = fid.tell() + length line = [] command = COMMANDS[fid.read(1)[0]] if callable(command): line += [FXPName(c) for c in command(fid, length-1)] else: line.append(FXPName(command)) return parse_subline(fid, length, final, names, line) def read_code_line_area(fid, names, final_fpos): d = [] while fid.tell() < final_fpos: try: start_pos = fid.tell() length = read_ushort(fid) d.append(parse_line(fid, length-2, names)) except: import traceback traceback.print_exc() fid.seek(start_pos) length = read_ushort(fid) line = read_raw(fid, length-2) print(line, file=sys.stderr) d.append(line) return ''.join(d) def read_code_name_list(fid): num_entries = read_ushort(fid) return [read_string(fid) for i in range(num_entries)] def change_named_value(expr, names): expr = expr.split()[1] if expr.endswith('.'): return names[int(expr[:-1])] + '.' else: return names[int(expr)] return expr def concatenate_aliases(codes, names): codes = codes[:] new_codes = [] while codes: code = codes.pop(0) if isinstance(code, str) and code.startswith('NAME '): code = change_named_value(code, names) while code.endswith('.'): code += change_named_value(codes.pop(0), names) if isinstance(code, str) and code.startswith('SPECIAL_NAME '): code = change_named_value(code, SPECIAL_NAMES) while code.endswith('.'): code += change_named_value(codes.pop(0), names) new_codes.append(code) return new_codes def read_code_block(fid): tot_length = read_ushort(fid) if tot_length == 0: tot_length = read_uint(fid) start_pos = fid.tell() fid.seek(fid.tell() + tot_length) names = read_code_name_list(fid) fid.seek(start_pos) return read_code_line_area(fid, names, start_pos+tot_length) def convert_date(date_bits): year = ((date_bits & 0xfe000000) >> 25) + 1980 month = (date_bits & 0x1e00000) >> 21 day = (date_bits & 0x1f0000) >> 16 hour = (date_bits & 0xf800) >> 11 minute = (date_bits & 0x7e0) >> 5 second = (date_bits & 0x1f) << 1 return datetime(year, month, day, hour, minute, second) def read_procedure_header(fid): return OrderedDict(( ('name', read_string(fid)), ('pos', read_uint(fid)), ('class_flag', read_short(fid)), ('class', read_short(fid)), )) def read_class_header(fid): return { 'name': read_string(fid), 'parent': read_string(fid), 'pos': read_uint(fid), 'reserved': fid.read(2), } def read_line_info(fid): return read_raw(fid, 2) def read_source_info(fid): unknown1, unknown2, unknown3, line_num_start = struct.unpack('IIII', fid.read(16)) return line_num_start, unknown1, unknown2, unknown3 def read_until_null(fid): string = fid.read(1) while string[-1] != 0: string += fid.read(1) if string: string = string[:-1] return string.decode('ISO-8859-1') def read_fxp_file_block(fid, start_pos, name_pos): fid.seek(start_pos) fmt = '<hhiiiiiiIIB' num_procedures, num_classes, main_codepos, procedure_pos, class_pos, source_info_pos, num_code_lines, code_lines_pos, date, original_name_pos, codepage = struct.unpack(fmt, fid.read(struct.calcsize(fmt))) procedure_pos += start_pos class_pos += start_pos code_lines_pos += start_pos source_info_pos += start_pos date = convert_date(date) codepage = dbf.code_pages[255 - codepage] fid.seek(name_pos + original_name_pos) original_name = read_until_null(fid) for item in ('num_procedures', 'num_classes', 'main_codepos', 'procedure_pos', 'class_pos', 'source_info_pos', 'num_code_lines', 'code_lines_pos', 'date', 'original_name', 'codepage'): print('{} = {!r}'.format(item, eval(item))) fid.seek(procedure_pos) procedures = [OrderedDict((key, val) for key, val in zip(('name', 'pos', 'class_flag', 'class'), ('', main_codepos, 0, -1)))] procedures += [read_procedure_header(fid) for i in range(num_procedures)] fid.seek(class_pos, 0) classes = [read_class_header(fid) for i in range(num_classes)] fid.seek(code_lines_pos) line_info = [read_line_info(fid) for i in range(num_code_lines)] fid.seek(source_info_pos) source_info = [read_source_info(fid) for i in range(num_procedures + num_classes + 1)] for proc_or_cls in procedures + classes: fid.seek(proc_or_cls['pos'] + start_pos) proc_or_cls['code'] = read_code_block(fid) proc_or_cls.pop('pos') return procedures, classes def fxp_read(fxp_file, output_dir=None): with open(fxp_file, 'rb') as fid: header_bytes = fid.read(HEADER_SIZE) if len(header_bytes) < HEADER_SIZE: raise Exception('File header too short') identifier, head, num_files, main_file, footer_pos, name_pos, name_len, reserved, checksum = struct.unpack('<3s2sHHIII18sH', header_bytes) if identifier == ENCRYPTED_IDENTIFIER: print(repr(header_bytes)) raise Exception('Encrypted file') if identifier != IDENTIFIER: print('bad header') raise Exception('bad header: {!r}'.format(identifier)) if checksum != checksum_calc(header_bytes[:-4]): raise Exception('bad checksum') for item in ('head', 'num_files', 'main_file', 'footer_pos', 'name_pos', 'name_len', 'reserved', 'checksum'): print('{} = {!r}'.format(item, eval(item))) print() if output_dir: try: os.makedirs(output_dir) except OSError as e: if e.errno != errno.EEXIST: raise fid.seek(footer_pos) footer_entries = [struct.unpack('<BIIII8s', fid.read(FOOTER_ENTRY_SIZE)) for i in range(num_files)] output = OrderedDict() for i, (file_type, file_start, file_stop, dirname_start, filename_start, reserved) in enumerate(footer_entries): if i == main_file: print('MAIN') fid.seek(name_pos + dirname_start) dirname = read_until_null(fid) fid.seek(name_pos + filename_start) filename = read_until_null(fid) for item in ('file_type', 'file_start', 'file_stop', 'dirname_start', 'filename_start', 'reserved', 'dirname', 'filename'): print('{} = {!r}'.format(item, eval(item))) if file_type == 0: try: output[filename] = read_fxp_file_block(fid, file_start, name_pos) except: pass if output_dir: with open(os.path.join(output_dir, filename), 'wb') as outfid: fid.seek(file_start) blocklen = file_stop - file_start filename_blocklen = len(dirname) + len(filename) + 3 new_footer_pos = HEADER_SIZE + blocklen + filename_blocklen new_name_pos = HEADER_SIZE + blocklen header_data = bytearray(struct.pack('<5sHHIII', IDENTIFIER, 1, 0, new_footer_pos, new_name_pos, filename_blocklen)) header_data += b'\x00' * 16 outfid.write(header_data) outfid.write(b'\x00' * 2) outfid.write(struct.pack('<H', checksum_calc(header_data))) file_start = outfid.tell() outfid.write(fid.read(blocklen)) file_stop = outfid.tell() outfid.write(b'\x00') outfid.write((dirname + '\x00').encode('ISO-8859-1')) outfid.write((filename + '\x00').encode('ISO-8859-1')) outfid.write(struct.pack('<BIIII', file_type, file_start, file_stop, 1, 1 + len(dirname) + 1)) outfid.write(b'\x00' * 8) else: if output_dir: with open(os.path.join(output_dir, filename), 'wb') as outfid: fid.seek(file_start) outfid.write(fid.read(file_stop - file_start)) print() if output_dir: for filename in output: with open(os.path.join(output_dir, os.path.splitext(filename)[0]) + '.prg', 'wb') as outfid: procedures, classes = output[filename] for proc in procedures: if not proc['class_flag']: if proc['name']: outfid.write('PROCEDURE {}\n'.format(proc['name']).encode('ISO-8859-1')) outfid.write(proc['code'].encode('ISO-8859-1')) for cls in classes: outfid.write('DEFINE CLASS {} AS {}\n'.format(cls['name'], cls['parent']).encode('ISO-8859-1')) for line in cls['code'].splitlines(True): match = re.match(r'add (hidden |protected |)?method ([0-9]*)', line) if match: qualifier = match.groups()[0] proc = procedures[int(match.groups()[1])] outfid.write('{}PROCEDURE {}\n'.format(qualifier, proc['name']).encode('ISO-8859-1')) outfid.write(proc['code'].encode('ISO-8859-1')) else: outfid.write(line) for filename in output: import pprint printer = pprint.PrettyPrinter(depth=10, indent=4) procedures, classes = output[filename] printer.pprint(filename) printer.pprint(procedures) printer.pprint(classes) if __name__ == '__main__': fxp_read(sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else None)
[ 1, 396, 14137, 29922, 9420, 29899, 29947, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 13, 13, 5215, 12013, 13, 13, 5215, 10876, 13, 5215, 2897, 13, 5215, 2281, 13, 3166, 5844, 1053, 11904, 29892, 1480, 29896, 29900, 13, 3166, 12865, 1053, 12865, 29892, 5335, 287, 2554, 13, 3166, 16250, 1053, 8170, 287, 21533, 13, 5215, 337, 13, 5215, 4589, 1217, 13, 13, 5215, 270, 1635, 13, 13, 23252, 1001, 29918, 14226, 353, 29871, 29900, 29916, 29906, 29929, 13, 5800, 2891, 1001, 29918, 3919, 13207, 29918, 14226, 353, 29871, 29900, 29916, 29896, 29929, 13, 1430, 11341, 29979, 7982, 3352, 29918, 1367, 3919, 29902, 3738, 1001, 353, 289, 12764, 29916, 1725, 29905, 24660, 29906, 29905, 29916, 3905, 29915, 13, 1367, 3919, 29902, 3738, 1001, 353, 289, 12764, 29916, 1725, 29905, 24660, 29906, 29905, 29916, 600, 29915, 13, 13, 1753, 1423, 2083, 29918, 28667, 29898, 1807, 1125, 13, 1678, 19875, 353, 1347, 29961, 29900, 29962, 13, 1678, 521, 348, 1335, 353, 313, 29812, 669, 29871, 29900, 29916, 29943, 29900, 29897, 5099, 29871, 29946, 13, 1678, 19875, 29890, 353, 313, 29812, 669, 29871, 29900, 29916, 29900, 29943, 29897, 5099, 29871, 29900, 13, 1678, 19875, 353, 1347, 29961, 29896, 29962, 13, 1678, 19875, 29883, 353, 313, 29812, 669, 29871, 29900, 29916, 29943, 29900, 29897, 5099, 29871, 29946, 13, 1678, 19875, 29881, 353, 313, 29812, 669, 29871, 29900, 29916, 29900, 29943, 29897, 5099, 29871, 29900, 13, 13, 1678, 363, 19875, 297, 1347, 29901, 13, 4706, 521, 348, 1335, 6228, 29922, 313, 29812, 669, 29871, 29900, 29916, 29943, 29900, 29897, 5099, 29871, 29946, 13, 4706, 19875, 29890, 6228, 29922, 313, 29812, 669, 29871, 29900, 29916, 29900, 29943, 29897, 5099, 29871, 29900, 13, 13, 4706, 19875, 353, 313, 305, 348, 1335, 3532, 29871, 29929, 29897, 718, 5135, 305, 348, 1335, 6228, 19875, 29890, 29897, 3532, 29871, 29945, 29897, 13, 13, 4706, 521, 348, 1335, 29892, 19875, 29890, 29892, 19875, 29883, 29892, 19875, 29881, 353, 313, 13, 9651, 521, 348, 1335, 6228, 19875, 29890, 6228, 19875, 29883, 6228, 5135, 29812, 669, 29871, 29900, 29916, 29943, 29900, 29900, 29900, 29897, 5099, 29871, 29896, 29906, 511, 13, 9651, 19875, 29881, 6228, 5135, 29812, 669, 29871, 29900, 29916, 29900, 29943, 29900, 29900, 29897, 5099, 29871, 29947, 511, 13, 9651, 521, 348, 1335, 6228, 5135, 29812, 669, 29871, 29900, 29916, 29900, 29900, 29943, 29900, 29897, 5099, 29871, 29946, 511, 13, 9651, 521, 348, 1335, 6228, 19875, 29890, 6228, 5135, 29812, 669, 29871, 29900, 29916, 29900, 29900, 29900, 29943, 29897, 5099, 29871, 29900, 511, 13, 4706, 1723, 13, 13, 1678, 736, 313, 305, 348, 1335, 3532, 29871, 29896, 29906, 29897, 718, 313, 29812, 29890, 3532, 29871, 29947, 29897, 718, 313, 29812, 29883, 3532, 29871, 29946, 29897, 718, 313, 29812, 29881, 3532, 29871, 29900, 29897, 13, 13, 1990, 29479, 29943, 861, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 29892, 1722, 29918, 7529, 1125, 13, 4706, 1583, 29889, 29888, 333, 353, 12013, 29889, 3150, 29898, 978, 29892, 1722, 29918, 7529, 29897, 13, 13, 1678, 822, 1303, 29898, 1311, 29892, 3309, 29922, 8516, 1125, 13, 4706, 736, 7023, 2378, 29898, 1311, 29889, 29888, 333, 29889, 949, 29898, 2848, 876, 13, 13, 1678, 822, 2436, 29898, 1311, 29892, 1347, 1125, 13, 4706, 1583, 29889, 29888, 333, 29889, 3539, 29898, 1807, 29897, 13, 13, 1678, 822, 4770, 5893, 12035, 1311, 1125, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4770, 13322, 12035, 1311, 29892, 1134, 29892, 995, 29892, 9637, 1627, 1125, 13, 4706, 1583, 29889, 29888, 333, 29889, 5358, 580, 13, 13, 1678, 822, 16508, 29898, 1311, 29892, 926, 29892, 1369, 29918, 1066, 29922, 29900, 1125, 13, 4706, 1583, 29889, 29888, 333, 29889, 344, 1416, 29898, 1066, 29892, 1369, 29918, 1066, 29897, 13, 13, 1678, 822, 2649, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 29888, 333, 29889, 29873, 514, 580, 13, 13, 1753, 1722, 29898, 978, 29892, 1722, 29918, 7529, 1125, 13, 1678, 736, 29479, 29943, 861, 29898, 978, 29892, 1722, 29918, 7529, 29897, 13, 13, 1990, 383, 29990, 29925, 1170, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 1125, 13, 4706, 1583, 29889, 978, 353, 851, 29898, 978, 29897, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 978, 13, 13, 1990, 383, 29990, 7228, 18849, 29898, 26753, 29925, 1170, 1125, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 978, 718, 525, 6169, 13, 13, 1990, 383, 29990, 29925, 4557, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1353, 29892, 13340, 29892, 1602, 29918, 7501, 1169, 29922, 29900, 1125, 13, 4706, 1583, 29889, 4537, 353, 1353, 13, 4706, 13340, 22361, 1602, 29918, 7501, 1169, 13, 4706, 13340, 353, 4236, 29898, 7501, 1169, 29892, 29871, 29900, 29897, 13, 4706, 1583, 29889, 4830, 29918, 1807, 353, 525, 6224, 29901, 29900, 29912, 1836, 8875, 29888, 930, 4286, 4830, 29898, 7501, 1169, 29892, 1602, 29918, 7501, 1169, 29897, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 4830, 29918, 1807, 29889, 4830, 29898, 1311, 29889, 4537, 29897, 13, 13, 1990, 383, 29990, 9026, 10880, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1353, 29892, 13340, 29892, 1602, 29918, 7501, 1169, 29922, 29900, 1125, 13, 4706, 1583, 29889, 4537, 353, 1353, 13, 4706, 1583, 29889, 7099, 29918, 7501, 1169, 353, 1602, 29918, 7501, 1169, 13, 4706, 13340, 22361, 1602, 29918, 7501, 1169, 13, 4706, 13340, 353, 4236, 29898, 7501, 1169, 29892, 29871, 29900, 29897, 13, 4706, 1583, 29889, 7501, 1169, 353, 13340, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 2967, 353, 29871, 29896, 29900, 1068, 1311, 29889, 7099, 29918, 7501, 1169, 13, 4706, 736, 525, 5303, 1836, 8875, 4286, 4830, 29898, 1311, 29889, 4537, 849, 2967, 29892, 1583, 29889, 4537, 1273, 2967, 29897, 13, 13, 1753, 4513, 29918, 18816, 29898, 29916, 29892, 4365, 1125, 13, 1678, 565, 921, 1275, 29871, 29900, 29901, 13, 4706, 736, 29871, 29900, 29889, 13, 1678, 736, 4513, 29898, 29916, 29892, 4365, 29899, 524, 29898, 14939, 29898, 1188, 29896, 29900, 29898, 6897, 29898, 29916, 13697, 29899, 29896, 29897, 13, 13, 1753, 1303, 29918, 1807, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 25947, 29889, 949, 29898, 949, 29918, 1878, 441, 29898, 29888, 333, 8106, 13808, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 1495, 13, 13, 1753, 1303, 29918, 14369, 29918, 339, 5715, 29918, 1807, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 29925, 1170, 703, 29915, 8875, 29915, 1642, 4830, 29898, 949, 29918, 1807, 29898, 29888, 333, 4961, 13, 13, 1753, 1303, 29918, 8896, 29918, 339, 5715, 29918, 1807, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 29925, 1170, 877, 29908, 29912, 5038, 4286, 4830, 29898, 949, 29918, 1807, 29898, 29888, 333, 4961, 13, 13, 1753, 1303, 29918, 524, 29947, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 13340, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 1678, 736, 383, 29990, 29925, 4557, 29898, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 1402, 13340, 29897, 13, 13, 1753, 1303, 29918, 524, 29896, 29953, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 13340, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 1678, 736, 383, 29990, 29925, 4557, 29898, 949, 29918, 12759, 29898, 29888, 333, 511, 13340, 29897, 13, 13, 1753, 1303, 29918, 524, 29941, 29906, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 13340, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 1678, 736, 383, 29990, 29925, 4557, 29898, 949, 29918, 524, 29898, 29888, 333, 511, 13340, 29897, 13, 13, 1753, 1303, 29918, 8896, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 13340, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 448, 29871, 29896, 13, 1678, 1602, 29918, 7501, 1169, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 1678, 736, 383, 29990, 29925, 4557, 29898, 4984, 29889, 348, 4058, 877, 29966, 29881, 742, 25947, 29889, 949, 29898, 29947, 876, 29961, 29900, 1402, 13340, 29892, 1602, 29918, 7501, 1169, 29897, 13, 13, 1753, 1303, 29918, 7411, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 29925, 4557, 29898, 4984, 29889, 348, 4058, 877, 29966, 29875, 742, 25947, 29889, 949, 29898, 29946, 876, 29961, 29900, 29962, 847, 29871, 29953, 29945, 29945, 29941, 29953, 1696, 29871, 29896, 29900, 29892, 29871, 29946, 29897, 13, 13, 1753, 1303, 29918, 26095, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 13340, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 448, 29871, 29896, 13, 1678, 1602, 29918, 7501, 1169, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 1678, 736, 383, 29990, 9026, 10880, 29898, 4984, 29889, 348, 4058, 877, 29966, 29939, 742, 25947, 29889, 949, 29898, 29947, 876, 29961, 29900, 1402, 13340, 29892, 1602, 29918, 7501, 1169, 29897, 13, 13, 1753, 1303, 29918, 12673, 13338, 29898, 29888, 333, 1125, 13, 1678, 3841, 353, 2281, 29889, 348, 4058, 877, 29966, 29881, 742, 25947, 29889, 949, 29898, 29947, 876, 29961, 29900, 29962, 13, 1678, 565, 451, 3841, 29901, 13, 4706, 736, 6213, 13, 1678, 3841, 353, 5335, 287, 2554, 29898, 16700, 448, 29871, 29906, 29946, 29946, 29900, 29945, 29947, 29947, 29897, 13, 1678, 3841, 29922, 9346, 287, 2554, 29898, 23128, 29922, 14486, 29898, 16700, 29889, 7827, 29918, 23128, 22130, 13, 1678, 736, 12865, 29889, 329, 29883, 3166, 16394, 29898, 29900, 29897, 718, 3841, 13, 13, 1753, 1303, 29918, 12673, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 11636, 353, 1303, 29918, 12673, 13338, 29898, 29888, 333, 29897, 13, 1678, 565, 451, 11636, 29901, 13, 4706, 736, 22372, 847, 847, 500, 29915, 13, 1678, 736, 525, 6224, 998, 12499, 4286, 4830, 29898, 6008, 29897, 13, 13, 1753, 1303, 29918, 1256, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 11636, 353, 1303, 29918, 12673, 13338, 29898, 29888, 333, 29897, 13, 1678, 565, 451, 11636, 29901, 13, 4706, 736, 22372, 847, 847, 500, 29915, 13, 1678, 736, 525, 6224, 998, 12499, 4286, 4830, 29898, 6008, 29889, 1256, 3101, 13, 13, 1753, 1303, 29918, 19973, 29898, 29888, 333, 29892, 2983, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 7228, 18849, 29898, 7039, 29961, 949, 29918, 1878, 441, 29898, 29888, 333, 29897, 2314, 13, 13, 1753, 1303, 29918, 18732, 29918, 19973, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 7228, 18849, 29898, 29903, 4162, 8426, 1964, 29918, 5813, 29903, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 24960, 13, 13, 1753, 1303, 29918, 5205, 29918, 19973, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 7228, 18849, 29898, 14816, 1254, 12665, 29918, 5813, 29903, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 24960, 13, 13, 1753, 1303, 29918, 5205, 29918, 978, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 29925, 1170, 29898, 14816, 1254, 12665, 29918, 5813, 29903, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 24960, 13, 13, 1753, 1303, 29918, 6510, 29918, 5205, 29918, 978, 29898, 29888, 333, 29892, 334, 5085, 1125, 13, 1678, 736, 383, 29990, 29925, 1170, 29898, 29924, 1430, 29965, 29918, 14816, 1254, 12665, 29918, 5813, 29903, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 24960, 13, 13, 1753, 1303, 29918, 978, 29898, 29888, 333, 29892, 2983, 1125, 13, 1678, 736, 383, 29990, 29925, 1170, 29898, 7039, 29961, 949, 29918, 1878, 441, 29898, 29888, 333, 29897, 2314, 13, 13, 1753, 1303, 29918, 1610, 29898, 29888, 333, 29892, 3309, 1125, 13, 1678, 736, 525, 15300, 7122, 877, 25641, 29900, 29906, 29916, 29913, 4286, 4830, 29898, 29881, 29897, 363, 270, 297, 25947, 29889, 949, 29898, 2848, 876, 13, 13, 1753, 1303, 29918, 4622, 29918, 401, 29898, 29888, 333, 29892, 2983, 29892, 22010, 29922, 8516, 1125, 13, 1678, 565, 22010, 338, 6213, 29901, 13, 4706, 22010, 353, 5159, 13, 1678, 775, 791, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 1678, 565, 775, 791, 1275, 11056, 29918, 5746, 10593, 29901, 13, 4706, 736, 775, 791, 13, 1678, 565, 775, 791, 1275, 349, 1718, 25797, 4945, 29918, 1529, 29934, 29968, 29901, 13, 4706, 775, 353, 775, 791, 13, 1678, 25342, 775, 791, 1275, 3758, 29918, 20633, 13356, 24422, 29901, 13, 4706, 3309, 353, 1303, 29918, 1878, 441, 29898, 29888, 333, 29897, 13, 4706, 2186, 353, 25947, 29889, 29873, 514, 580, 718, 3309, 13, 4706, 25947, 29889, 949, 29898, 29896, 29897, 13, 4706, 775, 353, 383, 29990, 29925, 1170, 877, 29898, 6404, 426, 1800, 4286, 4830, 29898, 5510, 29918, 1491, 1220, 29898, 29888, 333, 29892, 3309, 29892, 2186, 29892, 2983, 29892, 5159, 4961, 13, 1678, 25342, 775, 791, 297, 383, 28700, 29903, 29901, 13, 4706, 775, 353, 383, 28700, 29903, 29961, 401, 791, 29962, 13, 4706, 565, 775, 791, 297, 313, 29900, 29916, 29923, 29945, 29892, 29871, 29900, 29916, 29943, 29953, 1125, 13, 9651, 775, 353, 775, 29898, 29888, 333, 29892, 2983, 29897, 13, 9651, 1550, 22010, 322, 1134, 29898, 13338, 14352, 29896, 2314, 338, 383, 29990, 7228, 18849, 29901, 13, 18884, 775, 353, 383, 29990, 29925, 1170, 29898, 276, 558, 29898, 13338, 29889, 7323, 3101, 718, 2062, 29898, 401, 876, 13, 9651, 775, 353, 2062, 29898, 401, 29897, 13, 4706, 25342, 1246, 519, 29898, 401, 1125, 13, 9651, 775, 353, 775, 29898, 29888, 333, 29897, 13, 4706, 4128, 353, 5159, 13, 4706, 1550, 22010, 29901, 13, 9651, 3443, 353, 22010, 29889, 7323, 580, 13, 9651, 565, 3443, 1275, 349, 1718, 25797, 4945, 29918, 1529, 29934, 29968, 29901, 13, 18884, 2867, 13, 9651, 4128, 29889, 7851, 29898, 29900, 29892, 3443, 29897, 13, 4706, 775, 4619, 525, 3319, 1800, 4286, 4830, 29317, 15300, 7122, 29898, 276, 558, 29898, 29886, 29897, 363, 282, 297, 4128, 876, 13, 4706, 565, 775, 791, 1275, 29871, 29900, 29916, 29923, 29945, 29901, 13, 9651, 775, 353, 383, 29990, 7228, 18849, 29898, 401, 29897, 13, 4706, 1683, 29901, 13, 9651, 775, 353, 383, 29990, 29925, 1170, 29898, 401, 29897, 13, 1678, 25342, 775, 791, 297, 6418, 1001, 1299, 24125, 29901, 13, 4706, 775, 353, 6418, 1001, 1299, 24125, 29961, 401, 791, 29962, 13, 4706, 565, 775, 29961, 29896, 29962, 1275, 29871, 29900, 29901, 13, 9651, 736, 1303, 29918, 4622, 29918, 401, 29898, 29888, 333, 29892, 2983, 29892, 22010, 29897, 13, 4706, 25342, 775, 29961, 29896, 29962, 1405, 29871, 29900, 29901, 13, 9651, 4128, 353, 518, 29886, 363, 282, 297, 18764, 287, 4197, 13338, 29889, 7323, 580, 363, 474, 297, 3464, 29898, 401, 29961, 29896, 2314, 2314, 29962, 13, 9651, 565, 7431, 29898, 16744, 29897, 1275, 29871, 29896, 29901, 13, 18884, 775, 353, 383, 29990, 29925, 1170, 877, 3319, 29913, 426, 1800, 4286, 4830, 29898, 401, 29961, 29900, 1402, 2062, 29898, 16744, 29961, 29900, 29962, 4961, 13, 9651, 1683, 29901, 13, 18884, 775, 353, 383, 29990, 29925, 1170, 877, 3319, 1800, 4286, 4830, 29898, 877, 525, 718, 775, 29961, 29900, 29962, 718, 525, 525, 467, 7122, 29898, 276, 558, 29898, 29886, 29897, 363, 282, 297, 4128, 4961, 13, 4706, 1683, 29901, 13, 9651, 775, 353, 775, 29961, 29900, 29962, 13, 1678, 25342, 775, 791, 297, 15673, 29901, 13, 4706, 775, 353, 15673, 29961, 401, 791, 29962, 13, 4706, 565, 1246, 519, 29898, 401, 1125, 13, 9651, 775, 353, 775, 29898, 29888, 333, 29892, 2983, 29897, 13, 4706, 565, 775, 791, 297, 313, 29900, 29916, 29943, 29900, 29892, 29871, 29900, 29916, 29943, 29896, 1125, 13, 9651, 736, 1303, 29918, 4622, 29918, 401, 29898, 29888, 333, 29892, 2983, 29892, 22010, 29897, 13, 4706, 565, 1134, 29898, 401, 29897, 338, 383, 29990, 29925, 1170, 29901, 13, 9651, 1550, 22010, 322, 1134, 29898, 13338, 14352, 29896, 2314, 338, 383, 29990, 7228, 18849, 29901, 13, 18884, 775, 353, 383, 29990, 29925, 1170, 29898, 276, 558, 29898, 13338, 29889, 7323, 3101, 718, 2062, 29898, 401, 876, 13, 4706, 25342, 1134, 29898, 401, 29897, 338, 383, 29990, 7228, 18849, 29901, 13, 9651, 1209, 13, 4706, 25342, 1134, 29898, 401, 29897, 297, 313, 7411, 29892, 938, 1125, 13, 9651, 775, 353, 383, 29990, 29925, 1170, 29898, 276, 558, 29898, 401, 876, 13, 4706, 1683, 29901, 13, 9651, 775, 353, 383, 29990, 29925, 1170, 29898, 401, 29897, 13, 1678, 1683, 29901, 13, 4706, 12020, 7670, 2392, 29898, 20970, 29898, 401, 791, 876, 13, 1678, 736, 775, 13, 13, 1753, 1303, 29918, 13338, 29898, 29888, 333, 29892, 2983, 29892, 334, 5085, 1125, 13, 1678, 22010, 353, 5159, 13, 1678, 1550, 5852, 29901, 13, 4706, 775, 353, 1303, 29918, 4622, 29918, 401, 29898, 29888, 333, 29892, 2983, 29892, 22010, 29897, 13, 4706, 565, 775, 1275, 11056, 29918, 5746, 10593, 29901, 13, 9651, 2867, 13, 4706, 565, 775, 29901, 13, 9651, 22010, 29889, 4397, 29898, 401, 29897, 13, 1678, 565, 7431, 29898, 13338, 29897, 1275, 29871, 29896, 29901, 13, 4706, 736, 22010, 29961, 29900, 29962, 13, 1678, 736, 22010, 13, 13, 1753, 1303, 29918, 842, 401, 29898, 29888, 333, 29892, 3309, 1125, 13, 1678, 736, 6024, 10490, 525, 718, 11368, 16524, 29903, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 5262, 29962, 13, 13, 1753, 1303, 29918, 726, 29898, 29888, 333, 29892, 3309, 1125, 13, 1678, 3309, 353, 1303, 29918, 1878, 441, 29898, 29888, 333, 29897, 13, 1678, 736, 6024, 4286, 7122, 29898, 22495, 29898, 29916, 29897, 363, 921, 297, 25947, 29889, 949, 29898, 2848, 28166, 13, 13, 1990, 25159, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5993, 710, 29892, 5993, 791, 1125, 13, 4706, 1583, 29889, 710, 353, 5993, 710, 13, 4706, 1583, 29889, 791, 353, 5993, 791, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 2062, 877, 29912, 2119, 29912, 1800, 4286, 4830, 29898, 1311, 29889, 710, 29892, 1583, 29889, 791, 876, 13, 13, 11794, 29918, 5746, 10593, 353, 29871, 29900, 29916, 26453, 29936, 13, 16320, 25797, 4945, 29918, 1529, 29934, 29968, 353, 29871, 29900, 29916, 29946, 29941, 29936, 13, 4176, 29918, 20633, 13356, 24422, 353, 29871, 29900, 29916, 29923, 29947, 13, 13, 29903, 4162, 8426, 1964, 29918, 5813, 29903, 353, 426, 13, 268, 29900, 29916, 29900, 29928, 29901, 525, 29924, 742, 13, 29913, 13, 13, 14816, 1254, 12665, 29918, 5813, 29903, 353, 426, 13, 268, 29900, 29916, 29900, 29900, 29901, 22868, 1964, 17298, 13780, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 22868, 7228, 24647, 29949, 742, 13, 268, 29900, 29916, 29896, 29929, 29901, 22868, 4051, 29931, 6154, 2965, 29968, 742, 13, 268, 29900, 29916, 29896, 29909, 29901, 22868, 29907, 1964, 29907, 19143, 742, 13, 268, 29900, 29916, 29896, 29933, 29901, 22868, 29907, 1964, 29907, 2303, 29924, 742, 13, 268, 29900, 29916, 29896, 29907, 29901, 22868, 4571, 19926, 6248, 742, 13, 268, 29900, 29916, 29896, 29928, 29901, 22868, 27205, 29925, 16975, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 22868, 16975, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 22868, 15094, 16975, 742, 13, 268, 29900, 29916, 29906, 29900, 29901, 22868, 29911, 9818, 29979, 742, 13, 268, 29900, 29916, 29906, 29896, 29901, 22868, 29907, 29965, 1672, 29933, 29967, 742, 13, 268, 29900, 29916, 29906, 29906, 29901, 22868, 1988, 8895, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 22868, 4690, 1672, 19988, 1307, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 22868, 24647, 29924, 1430, 29965, 742, 13, 268, 29900, 29916, 29906, 29943, 29901, 22868, 25826, 4897, 742, 13, 268, 29900, 29916, 29941, 29900, 29901, 22868, 26813, 5550, 8476, 742, 13, 268, 29900, 29916, 29941, 29896, 29901, 22868, 15349, 20656, 6545, 29979, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 22868, 29928, 3267, 742, 13, 268, 29900, 29916, 29941, 29941, 29901, 22868, 1529, 29907, 742, 13, 268, 29900, 29916, 29941, 29946, 29901, 22868, 3904, 6415, 742, 13, 268, 29900, 29916, 29941, 29945, 29901, 22868, 25152, 3970, 7811, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 22868, 29903, 4162, 2208, 3210, 29968, 742, 13, 268, 29900, 29916, 29941, 29955, 29901, 22868, 7068, 29923, 2208, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 22868, 7187, 1525, 1430, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 22868, 29933, 3120, 29931, 8032, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 22868, 6007, 5348, 4945, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 22868, 22119, 29999, 17011, 742, 13, 268, 29900, 29916, 29941, 29928, 29901, 22868, 29911, 22789, 17070, 1307, 29963, 6670, 742, 13, 268, 29900, 29916, 29941, 29923, 29901, 22868, 28599, 2687, 3217, 8547, 742, 13, 268, 29900, 29916, 29941, 29943, 29901, 22868, 28599, 2687, 1672, 7811, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 22868, 29933, 25180, 6304, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 22868, 7187, 1783, 12194, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 22868, 3217, 5348, 10461, 742, 13, 268, 29900, 29916, 29946, 29941, 29901, 22868, 24460, 29925, 742, 13, 268, 29900, 29916, 29946, 29946, 29901, 22868, 29954, 9818, 24422, 742, 13, 268, 29900, 29916, 29946, 29945, 29901, 22868, 1692, 4330, 29990, 10593, 742, 13, 268, 29900, 29916, 29946, 29953, 29901, 22868, 1177, 6154, 29965, 2287, 742, 13, 268, 29900, 29916, 29946, 29955, 29901, 22868, 24647, 7020, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 22868, 8132, 3580, 17101, 742, 13, 268, 29900, 29916, 29946, 29909, 29901, 22868, 29911, 3289, 29968, 24360, 742, 13, 268, 29900, 29916, 29946, 29933, 29901, 22868, 2061, 21537, 742, 13, 268, 29900, 29916, 29946, 29928, 29901, 22868, 5800, 29990, 16524, 742, 13, 268, 29900, 29916, 29946, 29923, 29901, 22868, 29943, 2251, 5398, 742, 13, 268, 29900, 29916, 29946, 29943, 29901, 22868, 16524, 29903, 1430, 1660, 742, 13, 268, 29900, 29916, 29945, 29900, 29901, 22868, 1177, 29907, 22048, 29968, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 22868, 7228, 7194, 2891, 1964, 742, 13, 268, 29900, 29916, 29945, 29906, 29901, 22868, 5800, 29990, 25866, 742, 13, 268, 29900, 29916, 29945, 29941, 29901, 22868, 4986, 5607, 8456, 29990, 742, 13, 268, 29900, 29916, 29945, 29946, 29901, 22868, 29911, 3289, 29968, 29925, 2190, 29923, 742, 13, 268, 29900, 29916, 29945, 29945, 29901, 22868, 1525, 15082, 29933, 3120, 29931, 8032, 742, 13, 268, 29900, 29916, 29945, 29953, 29901, 22868, 1525, 29925, 1955, 3557, 1525, 29963, 8673, 29956, 742, 13, 268, 29900, 29916, 29945, 29955, 29901, 22868, 1525, 29925, 1955, 4986, 2692, 12336, 742, 13, 29913, 13, 13, 29924, 1430, 29965, 29918, 14816, 1254, 12665, 29918, 5813, 29903, 353, 426, 13, 268, 29900, 29916, 29900, 29906, 29901, 22868, 4345, 29979, 17061, 1430, 29965, 742, 13, 268, 29900, 29916, 29900, 29941, 29901, 22868, 4345, 29924, 29918, 14816, 1254, 29924, 742, 13, 268, 29900, 29916, 29900, 29946, 29901, 22868, 4345, 29924, 29918, 7724, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 22868, 4345, 29924, 29918, 12378, 742, 13, 268, 29900, 29916, 29900, 29947, 29901, 22868, 4345, 29924, 29918, 8618, 29954, 742, 13, 268, 29900, 29916, 29900, 29929, 29901, 22868, 4345, 29924, 29918, 25152, 3970, 742, 13, 268, 29900, 29916, 29900, 29909, 29901, 22868, 4345, 29924, 29918, 29963, 8673, 29956, 742, 13, 268, 29900, 29916, 29900, 29933, 29901, 22868, 4345, 29924, 29918, 4986, 5607, 29903, 742, 13, 268, 29900, 29916, 29900, 29928, 29901, 22868, 4345, 29979, 1254, 12665, 742, 13, 268, 29900, 29916, 29896, 29900, 29901, 22868, 29924, 1254, 29918, 3954, 29903, 3210, 742, 13, 268, 29900, 29916, 29896, 29906, 29901, 22868, 29924, 1254, 29918, 1529, 29907, 1672, 742, 13, 268, 29900, 29916, 29896, 29941, 29901, 22868, 29924, 1254, 29918, 5550, 29896, 29900, 29900, 742, 13, 268, 29900, 29916, 29896, 29933, 29901, 22868, 29924, 1254, 29918, 5550, 29906, 29900, 29900, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 22868, 29924, 1254, 29918, 4330, 3210, 29903, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 22868, 29924, 1254, 29918, 2882, 12015, 742, 13, 268, 29900, 29916, 29906, 29906, 29901, 22868, 29924, 1254, 29918, 24460, 29925, 8851, 29933, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 22868, 29924, 7724, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 22868, 29924, 3738, 29918, 28577, 742, 13, 268, 29900, 29916, 29906, 29945, 29901, 22868, 29924, 3738, 29918, 4590, 1430, 742, 13, 268, 29900, 29916, 29906, 29953, 29901, 22868, 29924, 3738, 29918, 29907, 3927, 1660, 742, 13, 268, 29900, 29916, 29906, 29955, 29901, 22868, 29924, 3738, 29918, 6154, 9818, 742, 13, 268, 29900, 29916, 29906, 29947, 29901, 22868, 29924, 3738, 29918, 5550, 29896, 29900, 29900, 742, 13, 268, 29900, 29916, 29906, 29929, 29901, 22868, 29924, 3738, 29918, 29903, 7520, 29923, 742, 13, 268, 29900, 29916, 29906, 29909, 29901, 22868, 29924, 3738, 29918, 29903, 7520, 3289, 742, 13, 268, 29900, 29916, 29906, 29933, 29901, 22868, 29924, 3738, 29918, 1525, 29963, 13079, 742, 13, 268, 29900, 29916, 29906, 29907, 29901, 22868, 29924, 3738, 29918, 5550, 29906, 29900, 29900, 742, 13, 268, 29900, 29916, 29906, 29943, 29901, 22868, 29924, 3738, 29918, 14816, 5550, 29934, 10192, 742, 13, 268, 29900, 29916, 29941, 29896, 29901, 22868, 29924, 3738, 29918, 5550, 29941, 29900, 29900, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 22868, 29924, 3738, 29918, 13356, 1806, 742, 13, 268, 29900, 29916, 29941, 29941, 29901, 22868, 29924, 3738, 29918, 15094, 29963, 29965, 742, 13, 268, 29900, 29916, 29941, 29946, 29901, 22868, 29924, 3738, 29918, 16903, 10490, 742, 13, 268, 29900, 29916, 29941, 29945, 29901, 22868, 29924, 3738, 29918, 29902, 3580, 8476, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 22868, 29924, 3738, 29918, 5746, 15082, 742, 13, 268, 29900, 29916, 29941, 29955, 29901, 22868, 29924, 3738, 29918, 5550, 29946, 29900, 29900, 742, 13, 268, 29900, 29916, 29941, 29947, 29901, 22868, 29924, 3738, 29918, 29903, 11794, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 22868, 2303, 29928, 1806, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 22868, 2303, 29928, 29918, 18783, 29949, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 22868, 2303, 29928, 29918, 1525, 3970, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 22868, 2303, 29928, 29918, 5550, 29896, 29900, 29900, 742, 13, 268, 29900, 29916, 29941, 29928, 29901, 22868, 2303, 29928, 29918, 29907, 2692, 742, 13, 268, 29900, 29916, 29941, 29923, 29901, 22868, 2303, 29928, 29918, 3217, 20055, 742, 13, 268, 29900, 29916, 29941, 29943, 29901, 22868, 2303, 29928, 29918, 7228, 1254, 29923, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 22868, 2303, 29928, 29918, 29925, 1254, 29931, 29968, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 22868, 2303, 29928, 29918, 29907, 1307, 1718, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 22868, 2303, 29928, 29918, 5550, 29906, 29900, 29900, 742, 13, 268, 29900, 29916, 29946, 29941, 29901, 22868, 2303, 29928, 29918, 1177, 6156, 29933, 742, 13, 268, 29900, 29916, 29946, 29946, 29901, 22868, 2303, 29928, 29918, 14824, 29967, 742, 13, 268, 29900, 29916, 29946, 29945, 29901, 22868, 2303, 29928, 29918, 23714, 29968, 742, 13, 268, 29900, 29916, 29946, 29955, 29901, 22868, 2303, 29928, 29918, 5550, 29941, 29900, 29900, 742, 13, 268, 29900, 29916, 29946, 29947, 29901, 22868, 2303, 29928, 29918, 12750, 1783, 29909, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 22868, 2303, 29928, 29918, 5550, 29946, 29900, 29900, 742, 13, 268, 29900, 29916, 29946, 29909, 29901, 22868, 2303, 29928, 29918, 29954, 2891, 29949, 742, 13, 268, 29900, 29916, 29946, 29933, 29901, 22868, 2303, 29928, 29918, 29943, 22255, 742, 13, 268, 29900, 29916, 29946, 29928, 29901, 22868, 2303, 29928, 29918, 1525, 7390, 742, 13, 268, 29900, 29916, 29946, 29943, 29901, 22868, 2303, 29928, 29918, 5550, 29945, 29900, 29900, 742, 13, 268, 29900, 29916, 29945, 29900, 29901, 22868, 2303, 29928, 29918, 15349, 20656, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 22868, 2303, 29928, 29918, 15094, 29943, 742, 13, 268, 29900, 29916, 29955, 29900, 29901, 22868, 3580, 1672, 29954, 742, 13, 268, 29900, 29916, 29955, 29896, 29901, 22868, 3580, 29934, 29918, 3970, 742, 13, 268, 29900, 29916, 29955, 29906, 29901, 22868, 3580, 29934, 29918, 5550, 29896, 29900, 29900, 742, 13, 268, 29900, 29916, 29955, 29941, 29901, 22868, 3580, 29934, 29918, 29907, 2190, 6154, 742, 13, 268, 29900, 29916, 29955, 29946, 29901, 22868, 3580, 29934, 29918, 15989, 5005, 742, 13, 268, 29900, 29916, 29955, 29953, 29901, 22868, 3580, 29934, 29918, 21514, 29931, 742, 13, 268, 29900, 29916, 29955, 29907, 29901, 22868, 3580, 29934, 29918, 29903, 3308, 29925, 11794, 742, 13, 268, 29900, 29916, 29955, 29928, 29901, 22868, 29924, 25152, 3970, 29956, 742, 13, 268, 29900, 29916, 29955, 29923, 29901, 22868, 29924, 22119, 29918, 1718, 29934, 2190, 742, 13, 268, 29900, 29916, 29955, 29943, 29901, 22868, 29924, 22119, 29918, 29950, 22027, 742, 13, 268, 29900, 29916, 29947, 29906, 29901, 22868, 29924, 22119, 29918, 29907, 1307, 1718, 742, 13, 268, 29900, 29916, 29947, 29941, 29901, 22868, 29924, 22119, 29918, 5550, 29896, 29900, 29900, 742, 13, 268, 29900, 29916, 29947, 29947, 29901, 22868, 29924, 22119, 29918, 1672, 29911, 1299, 742, 13, 268, 29900, 29916, 29947, 29909, 29901, 22868, 29924, 22119, 29918, 5550, 29906, 29900, 29900, 742, 13, 268, 29900, 29916, 29947, 29933, 29901, 22868, 29924, 22119, 29918, 29907, 5773, 742, 13, 268, 29900, 29916, 29947, 29907, 29901, 22868, 29924, 22119, 29918, 29963, 8673, 29956, 742, 13, 268, 29900, 29916, 29947, 29928, 29901, 22868, 29924, 18118, 29918, 4986, 5607, 29933, 742, 13, 268, 29900, 29916, 29947, 29923, 29901, 22868, 29924, 29963, 8673, 29956, 742, 13, 268, 29900, 29916, 29929, 29900, 29901, 22868, 29924, 4986, 5607, 29903, 742, 13, 268, 29900, 29916, 29929, 29896, 29901, 22868, 11490, 29931, 29918, 29956, 29999, 29934, 8452, 742, 13, 268, 29900, 29916, 29929, 29906, 29901, 22868, 11490, 29931, 29918, 5550, 29896, 29900, 29900, 742, 13, 268, 29900, 29916, 29929, 29941, 29901, 22868, 11490, 29931, 29918, 5550, 29906, 29900, 29900, 742, 13, 268, 29900, 29916, 29929, 29946, 29901, 22868, 11490, 29931, 29918, 5550, 29941, 29900, 29900, 742, 13, 268, 29900, 29916, 29929, 29945, 29901, 22868, 11490, 29931, 29918, 5550, 29946, 29900, 29900, 742, 13, 268, 29900, 29916, 29929, 29953, 29901, 22868, 11490, 29931, 29918, 14094, 3059, 742, 13, 268, 29900, 29916, 29929, 29955, 29901, 22868, 11490, 29931, 29918, 29933, 25180, 6304, 742, 13, 268, 29900, 29916, 29929, 29947, 29901, 22868, 11490, 29902, 29918, 5800, 29990, 16524, 742, 13, 268, 29900, 29916, 29929, 29929, 29901, 22868, 11490, 29931, 29918, 18525, 17070, 742, 13, 268, 29900, 29916, 29929, 29909, 29901, 22868, 11490, 29902, 29918, 5659, 11538, 742, 13, 268, 29900, 29916, 29929, 29923, 29901, 22868, 11490, 29902, 29918, 16652, 1964, 29903, 742, 13, 268, 29900, 29916, 29929, 29943, 29901, 22868, 11490, 29902, 29918, 4051, 29954, 12015, 742, 13, 268, 29900, 29916, 29909, 29900, 29901, 22868, 11490, 29902, 29918, 29907, 9818, 1254, 11375, 742, 13, 268, 29900, 29916, 29907, 29946, 29901, 22868, 4345, 29924, 29918, 16975, 742, 13, 268, 29900, 29916, 29923, 29953, 29901, 22868, 29924, 1254, 29918, 4345, 29928, 3059, 742, 13, 268, 29900, 29916, 3352, 29901, 22868, 11490, 29931, 29918, 29954, 9818, 24422, 742, 13, 268, 29900, 29916, 17896, 29901, 22868, 11490, 29931, 29918, 3217, 5348, 10461, 742, 13, 268, 29900, 29916, 29638, 29901, 22868, 11490, 29902, 29918, 29911, 3289, 29968, 24360, 742, 13, 268, 29900, 29916, 29943, 29896, 29901, 22868, 11490, 29902, 29918, 3970, 15633, 8673, 29956, 742, 13, 268, 29900, 29916, 29943, 29906, 29901, 22868, 11490, 29902, 29918, 29933, 1525, 22311, 29925, 6992, 29911, 742, 13, 268, 29900, 29916, 29943, 29946, 29901, 22868, 2303, 29928, 29918, 24360, 2303, 9486, 23598, 742, 13, 268, 29900, 29916, 29943, 29945, 29901, 22868, 2303, 29928, 29918, 13356, 2965, 29968, 11690, 742, 13, 268, 29900, 29916, 29943, 29953, 29901, 22868, 2303, 29928, 29918, 29933, 29968, 29924, 17557, 742, 13, 268, 29900, 29916, 26453, 29901, 22868, 29924, 22119, 29918, 29907, 3289, 5454, 2287, 742, 13, 268, 29900, 29916, 16359, 29901, 22868, 29924, 22119, 29918, 3970, 7077, 6181, 742, 13, 29913, 13, 13, 19795, 1529, 2797, 29903, 353, 426, 13, 1678, 396, 5261, 4167, 526, 15659, 491, 263, 2323, 7023, 408, 4318, 297, 278, 1494, 1051, 29901, 13, 268, 29900, 29916, 29900, 29900, 29901, 525, 6404, 742, 13, 268, 29900, 29916, 29900, 29896, 29901, 14013, 25947, 29892, 3309, 29901, 6024, 4717, 29956, 4810, 2287, 29901, 525, 718, 25947, 29889, 949, 29898, 2848, 467, 13808, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 1495, 1402, 13, 268, 29900, 29916, 29900, 29906, 29901, 525, 29973, 742, 13, 268, 29900, 29916, 29900, 29941, 29901, 525, 8773, 742, 13, 268, 29900, 29916, 29900, 29946, 29901, 18803, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 525, 2477, 4741, 7982, 742, 13, 268, 29900, 29916, 29900, 29953, 29901, 525, 20576, 11794, 742, 13, 268, 29900, 29916, 29900, 29955, 29901, 525, 22933, 9047, 742, 13, 268, 29900, 29916, 29900, 29947, 29901, 525, 29909, 5348, 10461, 742, 13, 268, 29900, 29916, 29900, 29929, 29901, 525, 29933, 25180, 1660, 742, 13, 268, 29900, 29916, 29900, 29909, 29901, 525, 29907, 9818, 742, 13, 268, 29900, 29916, 29900, 29933, 29901, 525, 29907, 23219, 29931, 742, 13, 268, 29900, 29916, 29900, 29907, 29901, 525, 23487, 742, 13, 268, 29900, 29916, 29900, 29928, 29901, 525, 3210, 24336, 742, 13, 268, 29900, 29916, 29900, 29923, 29901, 525, 29907, 1307, 1718, 742, 13, 268, 29900, 29916, 29900, 29943, 29901, 525, 29907, 3927, 1660, 742, 13, 268, 29900, 29916, 29896, 29900, 29901, 525, 22412, 1177, 4462, 742, 13, 268, 29900, 29916, 29896, 29896, 29901, 525, 3217, 20055, 742, 13, 268, 29900, 29916, 29896, 29906, 29901, 525, 18736, 742, 13, 268, 29900, 29916, 29896, 29941, 29901, 525, 27045, 742, 13, 268, 29900, 29916, 29896, 29946, 29901, 525, 2287, 18476, 742, 13, 268, 29900, 29916, 29896, 29945, 29901, 525, 4571, 29924, 1430, 13381, 742, 13, 268, 29900, 29916, 29896, 29953, 29901, 525, 9464, 742, 13, 268, 29900, 29916, 29896, 29955, 29901, 525, 23711, 29925, 18799, 742, 13, 268, 29900, 29916, 29896, 29947, 29901, 525, 3970, 742, 13, 268, 29900, 29916, 29896, 29929, 29901, 525, 12378, 742, 13, 268, 29900, 29916, 29896, 29909, 29901, 525, 29923, 17637, 742, 13, 268, 29900, 29916, 29896, 29933, 29901, 525, 6670, 1660, 742, 13, 268, 29900, 29916, 29896, 29907, 29901, 525, 11794, 23487, 742, 13, 268, 29900, 29916, 29896, 29928, 29901, 525, 11794, 3970, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 525, 1430, 4571, 29943, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 525, 11794, 16975, 742, 13, 268, 29900, 29916, 29906, 29900, 29901, 525, 1001, 8127, 742, 13, 268, 29900, 29916, 29906, 29896, 29901, 525, 5746, 1806, 742, 13, 268, 29900, 29916, 29906, 29906, 29901, 525, 29943, 22255, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 525, 17080, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 525, 29950, 6670, 29925, 742, 13, 268, 29900, 29916, 29906, 29945, 29901, 525, 6545, 742, 13, 268, 29900, 29916, 29906, 29953, 29901, 525, 27992, 742, 13, 268, 29900, 29916, 29906, 29955, 29901, 525, 1177, 12336, 742, 13, 268, 29900, 29916, 29906, 29947, 29901, 525, 19460, 742, 13, 268, 29900, 29916, 29906, 29929, 29901, 525, 29967, 6992, 742, 13, 268, 29900, 29916, 29906, 29909, 29901, 525, 24461, 6670, 742, 13, 268, 29900, 29916, 29906, 29933, 29901, 525, 24360, 742, 13, 268, 29900, 29916, 29906, 29907, 29901, 525, 29428, 742, 13, 268, 29900, 29916, 29906, 29928, 29901, 525, 16652, 3040, 742, 13, 268, 29900, 29916, 29906, 29923, 29901, 525, 3927, 4590, 742, 13, 268, 29900, 29916, 29906, 29943, 29901, 525, 6720, 4571, 29943, 29979, 742, 13, 268, 29900, 29916, 29941, 29900, 29901, 14013, 25947, 29892, 3309, 29901, 6024, 12256, 29923, 2033, 718, 518, 29888, 333, 29889, 949, 29898, 2848, 467, 13808, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 1495, 1402, 29937, 29915, 12256, 29923, 742, 13, 268, 29900, 29916, 29941, 29896, 29901, 525, 1164, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 525, 2891, 4448, 22119, 1660, 742, 13, 268, 29900, 29916, 29941, 29941, 29901, 525, 29925, 11375, 742, 13, 268, 29900, 29916, 29941, 29946, 29901, 525, 16320, 25797, 4945, 29903, 742, 13, 268, 29900, 29916, 29941, 29945, 29901, 525, 29829, 29963, 3040, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 525, 8618, 29907, 3352, 11499, 742, 13, 268, 29900, 29916, 29941, 29955, 29901, 525, 7056, 13367, 2965, 742, 13, 268, 29900, 29916, 29941, 29947, 29901, 525, 13356, 1806, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 525, 16310, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 525, 1525, 29907, 9818, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 525, 1525, 27992, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 525, 14829, 742, 13, 268, 29900, 29916, 29941, 29928, 29901, 525, 29934, 1430, 25797, 742, 13, 268, 29900, 29916, 29941, 29923, 29901, 525, 1525, 7390, 11538, 742, 13, 268, 29900, 29916, 29941, 29943, 29901, 525, 1525, 15082, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 525, 1525, 1254, 29949, 1525, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 525, 1525, 14605, 2303, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 525, 1525, 29911, 24015, 742, 13, 268, 29900, 29916, 29946, 29941, 29901, 525, 29934, 3904, 742, 13, 268, 29900, 29916, 29946, 29946, 29901, 525, 29903, 7520, 29923, 742, 13, 268, 29900, 29916, 29946, 29945, 29901, 525, 22048, 29968, 742, 13, 268, 29900, 29916, 29946, 29953, 29901, 525, 6404, 742, 13, 268, 29900, 29916, 29946, 29955, 29901, 1303, 29918, 842, 401, 29892, 13, 268, 29900, 29916, 29946, 29947, 29901, 525, 16033, 5690, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 525, 29903, 8476, 742, 13, 268, 29900, 29916, 29946, 29909, 29901, 525, 1254, 29949, 1525, 742, 13, 268, 29900, 29916, 29946, 29933, 29901, 525, 25021, 742, 13, 268, 29900, 29916, 29946, 29907, 29901, 525, 29903, 3308, 29925, 11794, 742, 13, 268, 29900, 29916, 29946, 29928, 29901, 525, 16975, 742, 13, 268, 29900, 29916, 29946, 29923, 29901, 525, 29911, 2891, 1964, 742, 13, 268, 29900, 29916, 29946, 29943, 29901, 525, 11116, 742, 13, 268, 29900, 29916, 29945, 29900, 29901, 525, 14474, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 525, 17171, 742, 13, 268, 29900, 29916, 29945, 29906, 29901, 525, 12982, 1806, 742, 13, 268, 29900, 29916, 29945, 29941, 29901, 525, 29999, 3301, 742, 13, 268, 29900, 29916, 29945, 29946, 29901, 14013, 25947, 29892, 3309, 29901, 19997, 396, 11918, 12827, 13, 268, 29900, 29916, 29945, 29945, 29901, 525, 11794, 8618, 29907, 29905, 29876, 742, 13, 268, 29900, 29916, 29945, 29953, 29901, 525, 5746, 15082, 742, 13, 268, 29900, 29916, 29945, 29955, 29901, 525, 29902, 3580, 8476, 742, 13, 268, 29900, 29916, 29945, 29947, 29901, 525, 1525, 5659, 29979, 742, 13, 268, 29900, 29916, 29945, 29909, 29901, 525, 3904, 21339, 742, 13, 268, 29900, 29916, 29945, 29933, 29901, 525, 10536, 3308, 29950, 742, 13, 268, 29900, 29916, 29945, 29907, 29901, 525, 10818, 8456, 17011, 742, 13, 268, 29900, 29916, 29945, 29928, 29901, 525, 29924, 1430, 29965, 742, 13, 268, 29900, 29916, 29945, 29923, 29901, 525, 7187, 1299, 4945, 742, 13, 268, 29900, 29916, 29945, 29943, 29901, 525, 29954, 1299, 4448, 742, 13, 268, 29900, 29916, 29953, 29900, 29901, 525, 7187, 1672, 2208, 742, 13, 268, 29900, 29916, 29953, 29947, 29901, 525, 27045, 742, 13, 268, 29900, 29916, 29953, 29929, 29901, 525, 1964, 4945, 742, 13, 268, 29900, 29916, 29953, 29909, 29901, 525, 29928, 29366, 742, 13, 268, 29900, 29916, 29953, 29943, 29901, 525, 6404, 742, 13, 268, 29900, 29916, 29955, 29900, 29901, 525, 14474, 742, 13, 268, 29900, 29916, 29955, 29896, 29901, 525, 2287, 18476, 742, 13, 268, 29900, 29916, 29955, 29906, 29901, 525, 19460, 742, 13, 268, 29900, 29916, 29955, 29941, 29901, 525, 24405, 8895, 742, 13, 268, 29900, 29916, 29955, 29946, 29901, 525, 17923, 5667, 3040, 742, 13, 268, 29900, 29916, 29955, 29945, 29901, 525, 2287, 17923, 5667, 3040, 742, 13, 268, 29900, 29916, 29955, 29953, 29901, 525, 10593, 10192, 29967, 14824, 742, 13, 268, 29900, 29916, 29955, 29955, 29901, 525, 11794, 10593, 10192, 29967, 14824, 742, 13, 268, 29900, 29916, 29955, 29929, 29901, 525, 28772, 742, 13, 268, 29900, 29916, 29955, 29909, 29901, 525, 6720, 12064, 742, 13, 268, 29900, 29916, 29955, 29933, 29901, 525, 1164, 742, 396, 29907, 1307, 1718, 6732, 1741, 13, 268, 29900, 29916, 29955, 29907, 29901, 525, 2287, 24529, 742, 13, 268, 29900, 29916, 29955, 29928, 29901, 525, 29907, 1964, 29907, 13309, 3040, 742, 13, 268, 29900, 29916, 29955, 29923, 29901, 525, 7187, 2190, 742, 13, 268, 29900, 29916, 29955, 29943, 29901, 525, 11794, 7187, 2190, 742, 13, 268, 29900, 29916, 29947, 29900, 29901, 525, 7068, 9806, 742, 13, 268, 29900, 29916, 29947, 29896, 29901, 525, 29925, 18799, 742, 13, 268, 29900, 29916, 29947, 29906, 29901, 525, 1692, 4330, 29990, 10593, 742, 13, 268, 29900, 29916, 29947, 29941, 29901, 525, 19795, 2227, 1307, 742, 13, 268, 29900, 29916, 29947, 29946, 29901, 525, 22051, 742, 13, 268, 29900, 29916, 29947, 29945, 29901, 525, 1430, 4037, 1955, 742, 13, 268, 29900, 29916, 29947, 29953, 29901, 525, 29922, 742, 396, 17471, 29892, 13, 268, 29900, 29916, 29947, 29955, 29901, 525, 29950, 22027, 742, 13, 268, 29900, 29916, 29947, 29929, 29901, 525, 14226, 742, 13, 268, 29900, 29916, 29947, 29909, 29901, 525, 29925, 3308, 29950, 742, 13, 268, 29900, 29916, 29947, 29933, 29901, 525, 29925, 4590, 742, 13, 268, 29900, 29916, 29947, 29907, 29901, 525, 29999, 29949, 6488, 742, 13, 268, 29900, 29916, 29947, 29928, 29901, 525, 1966, 742, 13, 268, 29900, 29916, 29947, 29923, 29901, 525, 1966, 1966, 742, 13, 268, 29900, 29916, 29947, 29943, 29901, 525, 29933, 25282, 742, 13, 268, 29900, 29916, 29929, 29900, 29901, 525, 5746, 4945, 29940, 1964, 742, 13, 268, 29900, 29916, 29929, 29941, 29901, 525, 13367, 2190, 29968, 742, 13, 268, 29900, 29916, 29929, 29945, 29901, 525, 4590, 1430, 742, 13, 268, 29900, 29916, 29929, 29953, 29901, 525, 17744, 742, 13, 268, 29900, 29916, 29929, 29955, 29901, 525, 1525, 6720, 12064, 742, 13, 268, 29900, 29916, 29929, 29929, 29901, 14013, 25947, 29892, 3309, 29901, 19997, 396, 2220, 1246, 13, 268, 29900, 29916, 29929, 29933, 29901, 525, 29933, 17958, 742, 13, 268, 29900, 29916, 29929, 29907, 29901, 525, 1672, 2208, 29933, 11375, 742, 13, 268, 29900, 29916, 29929, 29928, 29901, 525, 11794, 742, 13, 268, 29900, 29916, 29929, 29923, 29901, 525, 1202, 7934, 1158, 742, 13, 268, 29900, 29916, 29929, 29943, 29901, 525, 29950, 1367, 29928, 1430, 742, 13, 268, 29900, 29916, 29909, 29900, 29901, 525, 26707, 3040, 742, 13, 268, 29900, 29916, 29909, 29896, 29901, 525, 8618, 4330, 1783, 3352, 742, 13, 268, 29900, 29916, 29909, 29906, 29901, 525, 1202, 1158, 742, 13, 268, 29900, 29916, 29909, 29941, 29901, 525, 1202, 6364, 1158, 742, 13, 268, 29900, 29916, 29909, 29953, 29901, 525, 29956, 13054, 742, 13, 268, 29900, 29916, 29909, 29955, 29901, 525, 11794, 29956, 13054, 742, 13, 268, 29900, 29916, 29909, 29947, 29901, 525, 11432, 742, 13, 268, 29900, 29916, 29909, 29929, 29901, 525, 22933, 20161, 742, 13, 268, 29900, 29916, 6344, 29901, 525, 18525, 12015, 742, 13, 268, 29900, 29916, 2882, 29901, 525, 29943, 21661, 742, 13, 268, 29900, 29916, 2477, 29901, 525, 6632, 23397, 742, 13, 268, 29900, 29916, 3035, 29901, 525, 6720, 17171, 742, 13, 268, 29900, 29916, 16036, 29901, 525, 16652, 1964, 742, 13, 268, 29900, 29916, 5098, 29901, 525, 13208, 1718, 25797, 4945, 29903, 742, 13, 268, 29900, 29916, 29933, 29900, 29901, 525, 6530, 742, 13, 268, 29900, 29916, 29933, 29896, 29901, 525, 29924, 29968, 9464, 742, 13, 268, 29900, 29916, 29933, 29906, 29901, 525, 29934, 29924, 9464, 742, 13, 268, 29900, 29916, 29933, 29941, 29901, 525, 18525, 742, 13, 268, 29900, 29916, 29933, 29946, 29901, 14013, 25947, 29892, 3309, 29901, 6024, 29933, 3035, 4810, 2287, 29901, 525, 718, 25947, 29889, 949, 29898, 2848, 467, 13808, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 1495, 1402, 13, 268, 29900, 29916, 29933, 29945, 29901, 525, 22051, 382, 2477, 29950, 742, 13, 268, 29900, 29916, 29933, 29953, 29901, 525, 1430, 4037, 29949, 1525, 2477, 29950, 742, 13, 268, 29900, 29916, 29933, 29955, 29901, 525, 3970, 22240, 3919, 29903, 742, 13, 268, 29900, 29916, 29933, 29929, 29901, 525, 29902, 3580, 1307, 13780, 29903, 742, 13, 268, 29900, 29916, 5688, 29901, 525, 5659, 29979, 742, 13, 268, 29900, 29916, 14388, 29901, 525, 29907, 14789, 742, 13, 268, 29900, 29916, 5371, 29901, 525, 29943, 1177, 9818, 29979, 742, 13, 268, 29900, 29916, 29121, 29901, 525, 4690, 25180, 742, 13, 268, 29900, 29916, 15349, 29901, 525, 11794, 5659, 29979, 742, 13, 268, 29900, 29916, 18426, 29901, 1303, 29918, 726, 29892, 13, 29913, 13, 13, 10490, 16524, 29903, 353, 426, 13, 268, 29900, 29916, 29900, 29896, 29901, 525, 1964, 4945, 29940, 3040, 742, 13, 268, 29900, 29916, 29900, 29906, 29901, 525, 15349, 2208, 742, 13, 268, 29900, 29916, 29900, 29941, 29901, 525, 29907, 1718, 13207, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 525, 29907, 3919, 4574, 29979, 742, 13, 268, 29900, 29916, 29900, 29955, 29901, 525, 15032, 1955, 742, 13, 268, 29900, 29916, 29900, 29929, 29901, 525, 6007, 3738, 29934, 29924, 742, 13, 268, 29900, 29916, 29900, 29909, 29901, 525, 6007, 6156, 1307, 742, 13, 268, 29900, 29916, 29900, 29933, 29901, 525, 6248, 742, 13, 268, 29900, 29916, 29900, 29907, 29901, 525, 18525, 742, 13, 268, 29900, 29916, 29900, 29923, 29901, 525, 23397, 742, 13, 268, 29900, 29916, 29900, 29928, 29901, 525, 2287, 29907, 2260, 8547, 742, 13, 268, 29900, 29916, 29900, 29943, 29901, 525, 2287, 1307, 29911, 3352, 742, 13, 268, 29900, 29916, 29896, 29945, 29901, 525, 2890, 29907, 3301, 29923, 742, 13, 268, 29900, 29916, 29896, 29953, 29901, 525, 5746, 17923, 742, 13, 268, 29900, 29916, 29896, 29955, 29901, 525, 5746, 6154, 3308, 18474, 742, 13, 268, 29900, 29916, 29896, 29947, 29901, 525, 3738, 6670, 8452, 742, 13, 268, 29900, 29916, 29896, 29909, 29901, 525, 3738, 29931, 4945, 742, 13, 268, 29900, 29916, 29896, 29933, 29901, 525, 25634, 3352, 742, 13, 268, 29900, 29916, 29896, 29907, 29901, 525, 19094, 1299, 742, 13, 268, 29900, 29916, 29896, 29928, 29901, 525, 29943, 28700, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 525, 23252, 4214, 29903, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 525, 29950, 6670, 29925, 742, 13, 268, 29900, 29916, 29906, 29896, 29901, 525, 27992, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 525, 1529, 29934, 29954, 1177, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 525, 2303, 6720, 22574, 742, 13, 268, 29900, 29916, 29906, 29953, 29901, 525, 2303, 1799, 10461, 742, 13, 268, 29900, 29916, 29906, 29955, 29901, 525, 29949, 3970, 2303, 4945, 742, 13, 268, 29900, 29916, 29906, 29947, 29901, 525, 22364, 742, 13, 268, 29900, 29916, 29906, 29929, 29901, 525, 10145, 742, 13, 268, 29900, 29916, 29906, 29909, 29901, 525, 10593, 23845, 742, 13, 268, 29900, 29916, 29906, 29933, 29901, 525, 8618, 29907, 3352, 11499, 742, 13, 268, 29900, 29916, 29906, 29928, 29901, 525, 1525, 29931, 8098, 742, 13, 268, 29900, 29916, 29906, 29923, 29901, 525, 29903, 5098, 2544, 29979, 742, 13, 268, 29900, 29916, 29941, 29900, 29901, 525, 27047, 742, 13, 268, 29900, 29916, 29941, 29896, 29901, 525, 1254, 15488, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 525, 29911, 1964, 29968, 742, 13, 268, 29900, 29916, 29941, 29945, 29901, 525, 11116, 29909, 23252, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 525, 3904, 29902, 11144, 742, 13, 268, 29900, 29916, 29941, 29955, 29901, 525, 29963, 8673, 29956, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 525, 8187, 4574, 29903, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 525, 1529, 29934, 29968, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 525, 29925, 6992, 29911, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 525, 1660, 13171, 1299, 1955, 742, 13, 268, 29900, 29916, 29941, 29928, 29901, 525, 29933, 22364, 742, 13, 268, 29900, 29916, 29941, 29923, 29901, 525, 29907, 21339, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 525, 5550, 11538, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 525, 21514, 1299, 8979, 1307, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 525, 20656, 3267, 7520, 29923, 742, 13, 268, 29900, 29916, 29946, 29941, 29901, 525, 29933, 21339, 14226, 742, 13, 268, 29900, 29916, 29946, 29945, 29901, 525, 2287, 12064, 3927, 13427, 3919, 742, 13, 268, 29900, 29916, 29946, 29953, 29901, 525, 8186, 1718, 742, 13, 268, 29900, 29916, 29946, 29947, 29901, 525, 25866, 1525, 7068, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 525, 21339, 742, 13, 268, 29900, 29916, 29946, 29907, 29901, 525, 25152, 3970, 29956, 742, 13, 268, 29900, 29916, 29946, 29928, 29901, 525, 1525, 8618, 23524, 742, 13, 268, 29900, 29916, 29946, 29923, 29901, 525, 16033, 5690, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 525, 29943, 3299, 10145, 742, 13, 268, 29900, 29916, 29945, 29946, 29901, 525, 1525, 27839, 4741, 742, 13, 268, 29900, 29916, 29945, 29945, 29901, 525, 4986, 2227, 29907, 742, 13, 268, 29900, 29916, 29945, 29955, 29901, 525, 14480, 11432, 29903, 742, 13, 268, 29900, 29916, 29945, 29929, 29901, 525, 14816, 17061, 1430, 29965, 742, 13, 268, 29900, 29916, 29945, 29909, 29901, 525, 12256, 6545, 29979, 742, 13, 268, 29900, 29916, 29945, 29907, 29901, 525, 1529, 29907, 10818, 742, 13, 268, 29900, 29916, 29945, 29928, 29901, 525, 22484, 29903, 1955, 742, 13, 268, 29900, 29916, 29945, 29923, 29901, 525, 29965, 4037, 16320, 4345, 742, 13, 268, 29900, 29916, 29945, 29943, 29901, 525, 29924, 8647, 29902, 21339, 29903, 742, 13, 268, 29900, 29916, 29953, 29900, 29901, 525, 16975, 29924, 1001, 1692, 742, 13, 268, 29900, 29916, 29953, 29896, 29901, 525, 14094, 7833, 29902, 10721, 742, 13, 268, 29900, 29916, 29953, 29906, 29901, 525, 5265, 15176, 19926, 742, 13, 268, 29900, 29916, 29953, 29946, 29901, 525, 2190, 5425, 742, 13, 268, 29900, 29916, 29953, 29945, 29901, 525, 5659, 29933, 2544, 8851, 1430, 742, 13, 268, 29900, 29916, 29953, 29953, 29901, 525, 25014, 10490, 4897, 742, 13, 268, 29900, 29916, 29953, 29947, 29901, 525, 10818, 21514, 742, 13, 268, 29900, 29916, 29953, 29929, 29901, 525, 7228, 1307, 29911, 4330, 742, 13, 268, 29900, 29916, 29953, 29909, 29901, 525, 16310, 29933, 22364, 742, 13, 268, 29900, 29916, 29953, 29933, 29901, 525, 3217, 2208, 3040, 742, 13, 268, 29900, 29916, 29953, 29928, 29901, 525, 6632, 6271, 26813, 29903, 742, 13, 268, 29900, 29916, 29955, 29955, 29901, 525, 10074, 742, 13, 268, 29900, 29916, 29955, 29929, 29901, 525, 16881, 742, 13, 268, 29900, 29916, 29955, 29933, 29901, 525, 6271, 4571, 1964, 29949, 29954, 742, 13, 268, 29900, 29916, 29955, 29907, 29901, 525, 6271, 19795, 2227, 1307, 742, 13, 268, 29900, 29916, 29955, 29928, 29901, 525, 1660, 6007, 8452, 742, 13, 268, 29900, 29916, 29955, 29923, 29901, 525, 13875, 1799, 5265, 29933, 742, 13, 268, 29900, 29916, 29955, 29943, 29901, 525, 25832, 27982, 742, 13, 268, 29900, 29916, 29947, 29900, 29901, 525, 25832, 8127, 13507, 742, 13, 268, 29900, 29916, 29947, 29896, 29901, 525, 29943, 3970, 29956, 742, 13, 268, 29900, 29916, 29947, 29906, 29901, 525, 29943, 8851, 29923, 29968, 742, 13, 268, 29900, 29916, 29947, 29941, 29901, 525, 14816, 29903, 19094, 1299, 29903, 742, 13, 268, 29900, 29916, 29947, 29946, 29901, 525, 29949, 1307, 14824, 17637, 742, 13, 268, 29900, 29916, 29947, 29945, 29901, 525, 22933, 1001, 9375, 742, 13, 268, 29900, 29916, 29947, 29953, 29901, 525, 3217, 5348, 10461, 742, 13, 268, 29900, 29916, 29947, 29955, 29901, 525, 22240, 3919, 5659, 11375, 4214, 742, 13, 268, 29900, 29916, 29947, 29947, 29901, 525, 10074, 23711, 29925, 18799, 742, 13, 268, 29900, 29916, 29947, 29929, 29901, 525, 22240, 3919, 24360, 742, 13, 268, 29900, 29916, 29947, 29928, 29901, 525, 29933, 25180, 1660, 8890, 742, 13, 268, 29900, 29916, 29947, 29923, 29901, 525, 1254, 3960, 1783, 6248, 742, 13, 268, 29900, 29916, 29947, 29943, 29901, 525, 20656, 6992, 29907, 11432, 742, 13, 268, 29900, 29916, 29929, 29900, 29901, 525, 1430, 29954, 8895, 15349, 29950, 7520, 29902, 1955, 742, 13, 268, 29900, 29916, 29929, 29896, 29901, 525, 21009, 26707, 3040, 742, 13, 268, 29900, 29916, 29929, 29906, 29901, 525, 4176, 7838, 28483, 4214, 742, 13, 268, 29900, 29916, 29929, 29946, 29901, 525, 21009, 29925, 3491, 7982, 742, 13, 268, 29900, 29916, 16359, 29901, 11297, 29876, 742, 13, 29913, 13, 13, 13875, 17171, 29903, 353, 426, 13, 268, 29900, 29916, 29900, 29896, 29901, 525, 17744, 1806, 18474, 742, 13, 268, 29900, 29916, 29900, 29906, 29901, 525, 1964, 29902, 3289, 742, 13, 268, 29900, 29916, 29900, 29941, 29901, 525, 9818, 742, 13, 268, 29900, 29916, 29900, 29946, 29901, 525, 1718, 22800, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 525, 1299, 742, 13, 268, 29900, 29916, 29900, 29953, 29901, 525, 29933, 1718, 742, 13, 268, 29900, 29916, 29900, 29955, 29901, 13420, 742, 13, 268, 29900, 29916, 29900, 29947, 29901, 525, 13367, 2190, 29968, 742, 13, 268, 29900, 29916, 29900, 29907, 29901, 525, 29907, 1307, 1718, 742, 13, 268, 29900, 29916, 29900, 29928, 29901, 525, 15032, 1955, 742, 13, 268, 29900, 29916, 29900, 29923, 29901, 525, 23397, 742, 13, 268, 29900, 29916, 29900, 29943, 29901, 525, 3970, 7466, 1307, 742, 13, 268, 29900, 29916, 29896, 29896, 29901, 525, 3738, 6670, 8452, 742, 13, 268, 29900, 29916, 29896, 29906, 29901, 525, 7724, 742, 13, 268, 29900, 29916, 29896, 29941, 29901, 525, 22051, 742, 13, 268, 29900, 29916, 29896, 29946, 29901, 525, 19094, 742, 13, 268, 29900, 29916, 29896, 29945, 29901, 525, 21482, 742, 13, 268, 29900, 29916, 29896, 29953, 29901, 525, 1177, 742, 13, 268, 29900, 29916, 29896, 29955, 29901, 525, 10818, 742, 13, 268, 29900, 29916, 29896, 29947, 29901, 525, 10394, 470, 22962, 29897, 742, 13, 268, 29900, 29916, 29896, 29909, 29901, 525, 1529, 29907, 1672, 29903, 742, 13, 268, 29900, 29916, 29896, 29933, 29901, 525, 2303, 6720, 742, 13, 268, 29900, 29916, 29896, 29907, 29901, 525, 29924, 1430, 29965, 742, 13, 268, 29900, 29916, 29896, 29928, 29901, 525, 2303, 1799, 10461, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 525, 29940, 12194, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 525, 27681, 742, 13, 268, 29900, 29916, 29906, 29900, 29901, 525, 1164, 742, 13, 268, 29900, 29916, 29906, 29896, 29901, 525, 10593, 23845, 742, 13, 268, 29900, 29916, 29906, 29906, 29901, 525, 29925, 3491, 7982, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 525, 1525, 29907, 25593, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 525, 1525, 1254, 742, 13, 268, 29900, 29916, 29906, 29945, 29901, 525, 29903, 7520, 29923, 742, 13, 268, 29900, 29916, 29906, 29953, 29901, 525, 7187, 1525, 1430, 742, 13, 268, 29900, 29916, 29906, 29955, 29901, 525, 29911, 1806, 1307, 742, 13, 268, 29900, 29916, 29906, 29947, 29901, 525, 4986, 742, 13, 268, 29900, 29916, 29906, 29929, 29901, 525, 29911, 4590, 742, 13, 268, 29900, 29916, 29941, 29900, 29901, 525, 6632, 14094, 7833, 29902, 10721, 742, 13, 268, 29900, 29916, 29906, 29933, 29901, 525, 29956, 17628, 1307, 742, 13, 268, 29900, 29916, 29906, 29907, 29901, 525, 25152, 3970, 29956, 742, 13, 268, 29900, 29916, 29906, 29923, 29901, 525, 14824, 17637, 742, 13, 268, 29900, 29916, 29941, 29896, 29901, 525, 21009, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 525, 24461, 6670, 742, 13, 268, 29900, 29916, 29941, 29941, 29901, 525, 1525, 15082, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 525, 29933, 2891, 4986, 29924, 742, 13, 268, 29900, 29916, 29941, 29947, 29901, 525, 22716, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 525, 6632, 6007, 6156, 1307, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 525, 6632, 12982, 1806, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 525, 29925, 4375, 1177, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 525, 2287, 7187, 11794, 4214, 742, 13, 268, 29900, 29916, 29941, 29928, 29901, 525, 6632, 25152, 3970, 29956, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 525, 29943, 1164, 29911, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 525, 1254, 29979, 1307, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 525, 28212, 742, 13, 268, 29900, 29916, 29946, 29947, 29901, 525, 23487, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 525, 1367, 742, 13, 268, 29900, 29916, 29946, 29909, 29901, 525, 5813, 742, 13, 268, 29900, 29916, 29946, 29933, 29901, 525, 8618, 29954, 25058, 742, 13, 268, 29900, 29916, 29946, 29907, 29901, 525, 13356, 24422, 742, 13, 268, 29900, 29916, 29946, 29923, 29901, 525, 29903, 3210, 29923, 2303, 742, 13, 268, 29900, 29916, 29946, 29943, 29901, 525, 13875, 1799, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 525, 3289, 742, 13, 268, 29900, 29916, 29945, 29906, 29901, 525, 13875, 1799, 5265, 29933, 742, 13, 268, 29900, 29916, 29945, 29953, 29901, 525, 29928, 2208, 29903, 742, 13, 268, 29900, 29916, 29945, 29955, 29901, 525, 7068, 8476, 742, 13, 268, 29900, 29916, 29945, 29947, 29901, 525, 28024, 742, 13, 268, 29900, 29916, 29945, 29929, 29901, 525, 22789, 3912, 742, 13, 268, 29900, 29916, 29945, 29933, 29901, 525, 13079, 29931, 29967, 17321, 6545, 29979, 742, 13, 268, 29900, 29916, 29945, 29907, 29901, 525, 29931, 5659, 29967, 17321, 6545, 29979, 742, 13, 268, 29900, 29916, 29945, 29943, 29901, 525, 2227, 1783, 15989, 742, 13, 13, 268, 29900, 29916, 29923, 29945, 29901, 1303, 29918, 978, 29892, 396, 1792, 3342, 740, 13995, 13, 268, 29900, 29916, 29943, 29953, 29901, 1303, 29918, 978, 29892, 396, 1792, 3342, 740, 13, 268, 29900, 29916, 8610, 29901, 1303, 29918, 13338, 29892, 13, 1678, 11056, 29918, 5746, 10593, 29901, 525, 11794, 8528, 10593, 742, 396, 29900, 29916, 26453, 13, 268, 29900, 29916, 16359, 29901, 11297, 29876, 29915, 13, 29913, 13, 13, 29924, 8647, 2965, 4375, 17171, 29903, 353, 426, 13, 268, 29900, 29916, 29896, 29900, 29901, 6702, 29922, 742, 525, 11432, 5477, 13, 268, 29900, 29916, 14388, 29901, 6702, 29990, 29931, 29945, 742, 525, 29956, 13054, 350, 29965, 28483, 4214, 2433, 511, 13, 268, 29900, 29916, 5371, 29901, 6702, 1177, 4986, 742, 525, 17923, 5667, 3040, 742, 525, 19795, 1529, 2797, 742, 525, 29925, 3035, 5477, 13, 268, 29900, 29916, 29121, 29901, 6702, 29907, 3919, 1001, 742, 525, 22484, 29903, 1955, 742, 525, 26813, 8132, 9838, 742, 525, 20576, 742, 525, 16173, 7833, 29902, 10721, 742, 525, 2890, 29907, 3301, 29923, 5477, 13, 268, 29900, 29916, 15349, 29901, 6702, 8618, 29907, 3352, 11499, 742, 525, 2287, 5265, 26349, 3352, 742, 525, 5746, 29923, 742, 525, 4571, 1254, 28852, 742, 525, 29928, 3267, 742, 525, 7228, 1692, 5477, 13, 268, 29900, 29916, 28062, 29901, 6702, 3904, 29968, 6632, 16048, 742, 525, 16173, 742, 525, 29943, 3927, 1299, 5477, 13, 268, 29900, 29916, 29907, 29900, 29901, 6702, 29950, 7520, 4214, 742, 525, 29943, 21661, 742, 525, 16652, 1964, 742, 525, 5800, 2891, 1001, 5477, 13, 268, 29900, 29916, 29907, 29896, 29901, 6702, 18521, 742, 525, 29911, 22789, 17070, 742, 525, 29954, 28902, 1964, 742, 525, 7194, 5477, 13, 268, 29900, 29916, 29907, 29906, 29901, 6702, 23498, 19386, 742, 525, 25832, 27982, 742, 525, 29928, 29366, 742, 525, 7194, 29903, 742, 525, 6632, 26019, 5477, 13, 268, 29900, 29916, 29907, 29941, 29901, 6702, 22364, 6770, 742, 525, 9800, 742, 525, 1525, 7390, 11538, 742, 525, 6632, 29907, 3927, 1660, 5477, 13, 268, 29900, 29916, 29907, 29946, 29901, 6702, 8132, 29979, 742, 525, 29963, 8673, 7811, 5477, 13, 268, 29900, 29916, 29907, 29945, 29901, 6702, 8932, 12996, 742, 525, 4051, 29931, 6154, 2965, 29968, 5477, 13, 268, 29900, 29916, 29907, 29953, 29901, 6702, 29925, 4590, 4897, 742, 525, 22043, 742, 525, 29928, 2208, 742, 525, 29928, 4717, 29954, 742, 525, 5746, 6154, 29965, 2287, 5477, 13, 268, 29900, 29916, 29907, 29955, 29901, 6702, 29930, 742, 525, 1254, 15488, 742, 525, 29990, 8547, 742, 525, 1529, 29934, 29968, 5477, 13, 268, 29900, 29916, 29907, 29947, 29901, 6702, 16310, 742, 525, 1529, 29934, 29954, 1177, 742, 525, 29934, 25014, 742, 525, 16310, 11432, 5477, 13, 268, 29900, 29916, 5454, 29901, 6702, 16881, 742, 525, 10490, 742, 525, 22051, 4741, 742, 525, 29940, 6488, 1177, 7833, 29902, 10721, 742, 525, 5746, 1806, 5477, 13, 268, 29900, 29916, 21685, 29901, 6702, 27047, 742, 525, 1525, 19795, 2227, 1307, 742, 525, 10593, 24480, 742, 525, 9980, 29968, 5477, 13, 268, 29900, 29916, 4174, 29901, 6702, 10810, 29965, 1783, 11499, 742, 525, 1525, 29931, 1299, 18474, 742, 525, 5800, 1525, 17298, 742, 525, 8618, 4330, 1783, 3352, 5477, 13, 268, 29900, 29916, 6530, 29901, 6702, 7068, 2692, 3970, 16048, 742, 525, 6632, 3738, 29931, 4945, 5477, 13, 268, 29900, 29916, 4741, 29901, 6702, 15307, 12015, 742, 525, 14474, 5477, 13, 268, 29900, 29916, 9207, 29901, 6702, 7068, 3035, 9806, 742, 511, 13, 268, 29900, 29916, 29928, 29900, 29901, 6702, 6632, 29907, 1307, 1718, 742, 525, 6404, 2725, 5477, 13, 268, 29900, 29916, 29928, 29896, 29901, 6702, 29956, 13054, 742, 525, 1177, 4330, 17070, 742, 525, 6007, 8186, 9838, 5477, 13, 268, 29900, 29916, 29928, 29906, 29901, 6702, 6632, 1529, 29934, 29954, 1177, 742, 511, 13, 268, 29900, 29916, 29928, 29941, 29901, 6702, 3904, 29902, 11144, 742, 525, 14226, 5477, 13, 268, 29900, 29916, 29928, 29946, 29901, 6702, 11116, 742, 525, 29931, 20614, 742, 525, 14816, 1254, 12665, 5477, 13, 268, 29900, 29916, 29928, 29945, 29901, 6702, 22240, 3919, 29903, 742, 525, 29907, 7597, 742, 525, 15032, 29127, 5477, 13, 268, 29900, 29916, 29928, 29953, 29901, 6702, 20785, 742, 525, 7068, 29923, 2544, 742, 525, 29940, 12054, 5477, 13, 268, 29900, 29916, 29928, 29955, 29901, 6702, 16310, 16365, 742, 511, 13, 29913, 13, 13, 8932, 12996, 353, 426, 13, 268, 29900, 29916, 29906, 29928, 29901, 15300, 29943, 29889, 742, 13, 268, 29900, 29916, 29953, 29896, 29901, 15300, 29911, 29889, 742, 13, 268, 29900, 29916, 29923, 29946, 29901, 15300, 10074, 29889, 742, 13, 268, 29900, 29916, 29928, 29929, 29901, 1303, 29918, 8896, 29918, 339, 5715, 29918, 1807, 29892, 13, 268, 29900, 29916, 4051, 29901, 15516, 13, 268, 29900, 29916, 2287, 29901, 1303, 29918, 26095, 29892, 13, 268, 29900, 29916, 4037, 29901, 525, 1057, 742, 13, 268, 29900, 29916, 29923, 29900, 29901, 1303, 29918, 978, 29892, 13, 268, 29900, 29916, 29923, 29896, 29901, 1303, 29918, 5205, 29918, 19973, 29892, 13, 268, 29900, 29916, 29923, 29906, 29901, 15300, 742, 13, 268, 29900, 29916, 29923, 29941, 29901, 1303, 29918, 19973, 29892, 13, 268, 29900, 29916, 29923, 29953, 29901, 1303, 29918, 12673, 29892, 13, 268, 29900, 29916, 29923, 29955, 29901, 1303, 29918, 7411, 29892, 13, 1678, 3758, 29918, 20633, 13356, 24422, 29901, 525, 4176, 27092, 13356, 24422, 742, 396, 29900, 29916, 29923, 29947, 13, 268, 29900, 29916, 29923, 29929, 29901, 1303, 29918, 524, 29941, 29906, 29892, 13, 268, 29900, 29916, 25752, 29901, 1303, 29918, 4622, 29918, 401, 29892, 13, 268, 29900, 29916, 11206, 29901, 1303, 29918, 6510, 29918, 5205, 29918, 978, 29892, 13, 268, 29900, 29916, 3352, 29901, 1303, 29918, 5205, 29918, 978, 29892, 13, 268, 29900, 29916, 17896, 29901, 1303, 29918, 1256, 29892, 13, 268, 29900, 29916, 29943, 29900, 29901, 14013, 25947, 29892, 334, 5085, 29901, 525, 29898, 7068, 8476, 315, 8193, 29907, 29965, 1806, 5300, 2672, 426, 1800, 4286, 4830, 29898, 949, 29918, 1878, 441, 29898, 29888, 333, 8243, 13, 268, 29900, 29916, 29943, 29896, 29901, 14013, 25947, 29892, 334, 5085, 29901, 525, 29898, 7068, 8476, 315, 8193, 29907, 29965, 1806, 6323, 2672, 426, 1800, 4286, 4830, 29898, 949, 29918, 1878, 441, 29898, 29888, 333, 8243, 13, 268, 29900, 29916, 29943, 29906, 29901, 14013, 25947, 29892, 334, 5085, 29901, 525, 29898, 7068, 8476, 315, 8193, 29907, 29965, 1806, 1944, 29943, 2672, 426, 1800, 4286, 4830, 29898, 949, 29918, 1878, 441, 29898, 29888, 333, 8243, 13, 268, 29900, 29916, 29943, 29941, 29901, 14013, 25947, 29892, 334, 5085, 29901, 525, 29898, 7068, 8476, 315, 8193, 29907, 29965, 1806, 1944, 29943, 2672, 426, 1800, 4286, 4830, 29898, 949, 29918, 1878, 441, 29898, 29888, 333, 8243, 13, 268, 29900, 29916, 29943, 29946, 29901, 1303, 29918, 19973, 29892, 13, 268, 29900, 29916, 29943, 29945, 29901, 1303, 29918, 18732, 29918, 19973, 29892, 13, 268, 29900, 29916, 29943, 29955, 29901, 1303, 29918, 978, 29892, 13, 268, 29900, 29916, 29943, 29947, 29901, 1303, 29918, 524, 29947, 29892, 13, 268, 29900, 29916, 29943, 29929, 29901, 1303, 29918, 524, 29896, 29953, 29892, 13, 268, 29900, 29916, 4519, 29901, 1303, 29918, 8896, 29892, 13, 268, 29900, 29916, 18426, 29901, 1303, 29918, 14369, 29918, 339, 5715, 29918, 1807, 29892, 13, 268, 29900, 29916, 8610, 29901, 1303, 29918, 13338, 29892, 13, 268, 29900, 29916, 4198, 29901, 14013, 25947, 29892, 334, 5085, 29901, 525, 600, 525, 718, 1303, 29918, 1610, 29898, 29888, 333, 29892, 29871, 29906, 511, 13, 29913, 13, 13, 4590, 1001, 1299, 24125, 353, 426, 13, 268, 29900, 29916, 29900, 29900, 29901, 6702, 29940, 4590, 742, 29871, 29900, 511, 13, 268, 29900, 29916, 29900, 29896, 29901, 6702, 29938, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29941, 29901, 6702, 11794, 349, 1718, 1430, 742, 29871, 29900, 511, 13, 268, 29900, 29916, 29900, 29946, 29901, 6702, 29930, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29945, 29901, 6702, 29985, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29953, 29901, 6702, 29974, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29955, 29901, 313, 742, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29947, 29901, 6702, 29899, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29929, 29901, 6702, 9468, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29909, 29901, 6702, 12256, 742, 29871, 29896, 511, 13, 268, 29900, 29916, 29900, 29933, 29901, 6702, 1955, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29907, 29901, 6702, 29914, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29928, 29901, 6702, 29966, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29923, 29901, 6702, 14065, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29900, 29943, 29901, 6702, 19216, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29896, 29900, 29901, 6702, 29922, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29896, 29896, 29901, 6702, 29958, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29896, 29906, 29901, 6702, 18572, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29896, 29946, 29901, 6702, 1360, 742, 29871, 29906, 511, 13, 268, 29900, 29916, 29896, 29947, 29901, 6702, 29992, 742, 448, 29896, 511, 13, 268, 29900, 29916, 4174, 29901, 6702, 742, 29871, 29896, 511, 13, 29913, 13, 13, 29943, 28700, 29903, 353, 426, 13, 268, 29900, 29916, 29896, 29929, 29901, 525, 2882, 29903, 742, 13, 268, 29900, 29916, 29896, 29909, 29901, 14013, 25947, 29901, 8528, 29911, 1430, 2287, 29928, 29896, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 20526, 13, 268, 29900, 29916, 29896, 29933, 29901, 525, 1964, 29902, 3289, 742, 13, 268, 29900, 29916, 29896, 29907, 29901, 525, 28599, 742, 13, 268, 29900, 29916, 29896, 29928, 29901, 525, 1299, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 525, 8456, 29943, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 525, 29907, 3970, 29956, 742, 13, 268, 29900, 29916, 29906, 29900, 29901, 525, 3210, 29934, 742, 13, 268, 29900, 29916, 29906, 29896, 29901, 525, 29907, 22877, 4690, 742, 13, 268, 29900, 29916, 29906, 29906, 29901, 525, 15032, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 525, 1783, 13668, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 525, 6248, 742, 13, 268, 29900, 29916, 29906, 29945, 29901, 525, 28658, 742, 13, 268, 29900, 29916, 29906, 29953, 29901, 525, 4051, 29943, 742, 13, 268, 29900, 29916, 29906, 29955, 29901, 525, 2287, 1307, 29911, 3352, 742, 13, 268, 29900, 29916, 29906, 29947, 29901, 525, 23711, 29968, 5550, 11538, 742, 13, 268, 29900, 29916, 29906, 29929, 29901, 525, 3970, 29956, 742, 13, 268, 29900, 29916, 29906, 29909, 29901, 525, 29928, 4986, 29907, 742, 13, 268, 29900, 29916, 29906, 29933, 29901, 525, 29923, 9800, 742, 13, 268, 29900, 29916, 29906, 29907, 29901, 525, 11432, 742, 13, 268, 29900, 29916, 29906, 29923, 29901, 525, 29943, 18736, 742, 13, 268, 29900, 29916, 29906, 29943, 29901, 525, 3738, 27286, 742, 13, 268, 29900, 29916, 29941, 29900, 29901, 525, 7724, 742, 29871, 13, 268, 29900, 29916, 29941, 29896, 29901, 525, 29943, 29968, 24461, 6670, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 525, 29943, 29968, 12648, 742, 13, 268, 29900, 29916, 29941, 29941, 29901, 525, 29943, 21339, 742, 13, 268, 29900, 29916, 29941, 29946, 29901, 525, 5800, 18783, 742, 13, 268, 29900, 29916, 29941, 29945, 29901, 525, 7194, 25838, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 525, 2687, 29943, 742, 13, 268, 29900, 29916, 29941, 29955, 29901, 525, 1177, 10818, 742, 13, 268, 29900, 29916, 29941, 29947, 29901, 525, 10192, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 525, 3235, 1964, 29925, 15715, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 525, 3235, 15032, 1955, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 525, 3235, 27998, 1001, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 525, 3235, 4897, 13171, 742, 13, 268, 29900, 29916, 29941, 29928, 29901, 525, 28024, 742, 13, 268, 29900, 29916, 29941, 29923, 29901, 525, 1307, 29940, 742, 13, 268, 29900, 29916, 29941, 29943, 29901, 525, 21339, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 525, 27998, 1001, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 525, 5850, 3960, 29924, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 525, 29931, 14474, 742, 13, 1678, 349, 1718, 25797, 4945, 29918, 1529, 29934, 29968, 29901, 525, 1529, 29934, 29968, 349, 1718, 25797, 4945, 29903, 742, 396, 29900, 29916, 29946, 29941, 13, 268, 29900, 29916, 29946, 29946, 29901, 525, 12648, 742, 13, 268, 29900, 29916, 29946, 29945, 29901, 525, 2303, 1799, 10461, 742, 13, 268, 29900, 29916, 29946, 29953, 29901, 525, 16173, 742, 13, 268, 29900, 29916, 29946, 29955, 29901, 525, 6720, 29928, 742, 13, 268, 29900, 29916, 29946, 29947, 29901, 525, 22877, 4690, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 525, 2797, 29990, 742, 13, 268, 29900, 29916, 29946, 29909, 29901, 525, 3267, 742, 13, 268, 29900, 29916, 29946, 29933, 29901, 525, 29925, 15032, 742, 13, 268, 29900, 29916, 29946, 29907, 29901, 525, 8618, 29956, 742, 13, 268, 29900, 29916, 29946, 29928, 29901, 525, 16310, 10818, 742, 13, 268, 29900, 29916, 29946, 29923, 29901, 525, 1525, 29907, 18736, 742, 13, 268, 29900, 29916, 29946, 29943, 29901, 525, 1525, 29907, 6632, 742, 13, 268, 29900, 29916, 29945, 29900, 29901, 525, 1525, 29907, 14226, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 525, 1525, 7390, 2965, 3040, 742, 13, 268, 29900, 29916, 29945, 29906, 29901, 525, 22789, 3912, 742, 13, 268, 29900, 29916, 29945, 29941, 29901, 525, 2241, 29949, 7077, 742, 13, 268, 29900, 29916, 29945, 29946, 29901, 525, 1672, 18783, 742, 13, 268, 29900, 29916, 29945, 29945, 29901, 525, 1672, 7811, 742, 13, 268, 29900, 29916, 29945, 29953, 29901, 525, 13079, 3960, 29924, 742, 13, 268, 29900, 29916, 29945, 29955, 29901, 525, 6404, 742, 13, 268, 29900, 29916, 29945, 29947, 29901, 525, 5550, 11538, 742, 13, 268, 29900, 29916, 29945, 29929, 29901, 525, 29903, 29984, 13079, 742, 13, 268, 29900, 29916, 29945, 29909, 29901, 525, 10810, 742, 13, 268, 29900, 29916, 29945, 29933, 29901, 525, 1254, 29965, 4198, 742, 13, 268, 29900, 29916, 29945, 29907, 29901, 525, 20633, 10810, 742, 13, 268, 29900, 29916, 29945, 29928, 29901, 525, 14816, 29903, 742, 13, 268, 29900, 29916, 29945, 29923, 29901, 525, 15307, 742, 13, 268, 29900, 29916, 29945, 29943, 29901, 525, 26813, 29903, 19094, 742, 13, 268, 29900, 29916, 29953, 29900, 29901, 525, 29911, 3960, 29924, 742, 13, 268, 29900, 29916, 29953, 29906, 29901, 525, 11116, 742, 13, 268, 29900, 29916, 29953, 29946, 29901, 525, 14474, 29928, 742, 13, 268, 29900, 29916, 29953, 29953, 29901, 525, 4897, 13171, 742, 13, 268, 29900, 29916, 29953, 29955, 29901, 525, 8932, 742, 13, 268, 29900, 29916, 29953, 29947, 29901, 525, 16358, 742, 13, 268, 29900, 29916, 29953, 29929, 29901, 525, 29979, 26441, 742, 13, 268, 29900, 29916, 29953, 29909, 29901, 525, 29928, 17870, 742, 13, 268, 29900, 29916, 29953, 29933, 29901, 525, 5773, 29979, 742, 13, 268, 29900, 29916, 29953, 29907, 29901, 525, 29933, 1718, 742, 13, 268, 29900, 29916, 29953, 29928, 29901, 525, 10818, 742, 13, 268, 29900, 29916, 29953, 29943, 29901, 525, 2303, 29924, 18929, 742, 13, 268, 29900, 29916, 29955, 29900, 29901, 525, 29924, 1430, 29965, 742, 13, 268, 29900, 29916, 29955, 29906, 29901, 525, 29925, 3035, 742, 13, 268, 29900, 29916, 29955, 29941, 29901, 525, 29925, 4590, 4897, 742, 13, 268, 29900, 29916, 29955, 29946, 29901, 525, 8618, 29954, 25058, 742, 13, 268, 29900, 29916, 29955, 29945, 29901, 525, 29925, 29963, 742, 13, 268, 29900, 29916, 29955, 29953, 29901, 525, 10490, 742, 13, 268, 29900, 29916, 29955, 29955, 29901, 525, 4741, 6227, 4214, 742, 13, 268, 29900, 29916, 29955, 29909, 29901, 525, 29943, 3927, 1955, 742, 13, 268, 29900, 29916, 29955, 29933, 29901, 525, 29943, 29963, 742, 13, 268, 29900, 29916, 29955, 29907, 29901, 525, 4375, 1254, 10818, 742, 13, 268, 29900, 29916, 29955, 29928, 29901, 525, 5265, 6059, 742, 13, 268, 29900, 29916, 29955, 29923, 29901, 525, 3927, 8949, 4897, 742, 13, 268, 29900, 29916, 29955, 29943, 29901, 525, 6530, 29990, 742, 13, 268, 29900, 29916, 29947, 29900, 29901, 525, 2303, 1988, 1177, 2890, 742, 13, 268, 29900, 29916, 29947, 29896, 29901, 525, 1988, 8895, 742, 13, 268, 29900, 29916, 29947, 29906, 29901, 525, 22364, 742, 13, 268, 29900, 29916, 29947, 29941, 29901, 525, 7228, 29979, 13780, 742, 13, 268, 29900, 29916, 29947, 29946, 29901, 525, 10593, 10192, 27047, 742, 13, 268, 29900, 29916, 29947, 29945, 29901, 525, 29925, 3491, 7982, 742, 13, 268, 29900, 29916, 29947, 29953, 29901, 525, 29934, 9468, 742, 13, 268, 29900, 29916, 29947, 29955, 29901, 525, 26865, 16310, 742, 13, 268, 29900, 29916, 29947, 29929, 29901, 525, 29934, 4986, 29928, 742, 13, 268, 29900, 29916, 29947, 29909, 29901, 525, 22048, 29968, 742, 13, 268, 29900, 29916, 29947, 29933, 29901, 525, 5425, 20728, 742, 13, 268, 29900, 29916, 29947, 29907, 29901, 525, 16881, 742, 13, 268, 29900, 29916, 29947, 29928, 29901, 525, 12972, 1955, 742, 13, 268, 29900, 29916, 29947, 29923, 29901, 525, 12972, 3267, 742, 13, 268, 29900, 29916, 29947, 29943, 29901, 525, 29903, 3210, 29923, 2303, 742, 13, 268, 29900, 29916, 29929, 29900, 29901, 525, 29943, 4590, 1430, 742, 13, 268, 29900, 29916, 29929, 29896, 29901, 525, 8610, 3927, 1660, 742, 13, 268, 29900, 29916, 29929, 29906, 29901, 525, 29943, 16310, 742, 13, 268, 29900, 29916, 29929, 29941, 29901, 525, 29943, 16365, 742, 13, 268, 29900, 29916, 29929, 29946, 29901, 525, 29943, 11432, 742, 13, 268, 29900, 29916, 29929, 29945, 29901, 525, 8610, 11110, 742, 13, 268, 29900, 29916, 29929, 29953, 29901, 525, 29943, 22048, 29968, 742, 13, 268, 29900, 29916, 29929, 29955, 29901, 525, 29943, 7194, 29903, 742, 13, 268, 29900, 29916, 29929, 29947, 29901, 525, 4198, 29931, 3308, 29950, 742, 13, 268, 29900, 29916, 29929, 29929, 29901, 525, 29943, 12336, 29903, 742, 13, 268, 29900, 29916, 29929, 29933, 29901, 525, 1964, 5850, 3960, 29924, 742, 13, 268, 29900, 29916, 29929, 29907, 29901, 525, 1299, 18521, 742, 13, 268, 29900, 29916, 29929, 29928, 29901, 525, 3210, 29934, 26813, 742, 13, 268, 29900, 29916, 29929, 29923, 29901, 525, 3738, 29931, 4945, 742, 13, 268, 29900, 29916, 29929, 29943, 29901, 525, 1525, 29931, 8098, 742, 13, 268, 29900, 29916, 29909, 29900, 29901, 525, 29911, 1718, 7194, 742, 13, 268, 29900, 29916, 29909, 29896, 29901, 525, 29923, 3580, 15631, 742, 13, 268, 29900, 29916, 29909, 29906, 29901, 525, 16359, 9800, 742, 13, 268, 29900, 29916, 29909, 29941, 29901, 525, 23252, 1001, 742, 13, 268, 29900, 29916, 29909, 29945, 29901, 525, 29934, 1299, 742, 13, 268, 29900, 29916, 29909, 29953, 29901, 525, 29934, 1299, 29907, 742, 13, 268, 29900, 29916, 29909, 29955, 29901, 525, 1660, 6007, 8452, 742, 13, 268, 29900, 29916, 29909, 29947, 29901, 525, 10810, 26813, 742, 13, 268, 29900, 29916, 6344, 29901, 525, 17171, 29928, 742, 13, 268, 29900, 29916, 2882, 29901, 525, 29933, 2544, 8851, 1430, 742, 13, 268, 29900, 29916, 2477, 29901, 525, 3210, 29934, 8132, 29956, 742, 13, 268, 29900, 29916, 3035, 29901, 525, 1177, 24360, 742, 13, 268, 29900, 29916, 16036, 29901, 525, 3235, 4571, 29954, 1806, 742, 13, 268, 29900, 29916, 5098, 29901, 525, 29949, 4174, 4574, 29903, 742, 13, 268, 29900, 29916, 29933, 29900, 29901, 525, 29925, 3035, 29907, 742, 13, 268, 29900, 29916, 29933, 29896, 29901, 525, 29925, 3035, 29931, 742, 13, 268, 29900, 29916, 29933, 29906, 29901, 525, 29925, 3035, 29934, 742, 13, 268, 29900, 29916, 29933, 29941, 29901, 525, 29943, 14226, 742, 13, 268, 29900, 29916, 29933, 29946, 29901, 525, 29903, 1672, 7811, 742, 13, 268, 29900, 29916, 29933, 29945, 29901, 525, 29903, 3217, 8547, 742, 13, 268, 29900, 29916, 29933, 29953, 29901, 525, 29956, 3217, 8547, 742, 13, 268, 29900, 29916, 29933, 29955, 29901, 525, 29956, 1672, 7811, 742, 13, 268, 29900, 29916, 29933, 29947, 29901, 525, 1299, 29907, 742, 13, 268, 29900, 29916, 29933, 29929, 29901, 525, 1299, 6154, 8895, 742, 13, 268, 29900, 29916, 5688, 29901, 525, 22484, 9464, 742, 13, 268, 29900, 29916, 5371, 29901, 525, 8618, 13171, 742, 13, 268, 29900, 29916, 14388, 29901, 525, 29943, 3299, 10145, 742, 13, 268, 29900, 29916, 29121, 29901, 525, 29956, 5746, 24306, 742, 13, 268, 29900, 29916, 15349, 29901, 525, 29956, 1164, 29911, 4590, 742, 13, 268, 29900, 29916, 28062, 29901, 525, 29956, 12015, 12336, 742, 13, 268, 29900, 29916, 29907, 29900, 29901, 525, 29956, 28607, 8979, 1307, 742, 13, 268, 29900, 29916, 29907, 29896, 29901, 525, 7194, 7724, 742, 13, 268, 29900, 29916, 29907, 29906, 29901, 525, 12336, 7724, 742, 13, 268, 29900, 29916, 29907, 29941, 29901, 525, 29954, 6488, 1164, 4690, 742, 13, 268, 29900, 29916, 29907, 29946, 29901, 525, 16320, 25797, 4945, 29903, 742, 13, 268, 29900, 29916, 29907, 29945, 29901, 525, 29924, 15032, 742, 13, 268, 29900, 29916, 29907, 29953, 29901, 525, 29924, 3970, 16048, 742, 13, 268, 29900, 29916, 29907, 29955, 29901, 525, 29924, 25180, 742, 13, 268, 29900, 29916, 29907, 29947, 29901, 525, 29956, 29931, 15032, 742, 13, 268, 29900, 29916, 29907, 29929, 29901, 525, 29956, 29931, 25180, 742, 13, 268, 29900, 29916, 21685, 29901, 525, 29943, 3210, 14226, 742, 13, 268, 29900, 29916, 6530, 29901, 525, 29909, 1307, 29940, 742, 13, 268, 29900, 29916, 4741, 29901, 525, 29923, 8932, 29965, 3040, 742, 13, 268, 29900, 29916, 29928, 29896, 29901, 525, 3235, 10074, 742, 13, 268, 29900, 29916, 29928, 29906, 29901, 525, 29940, 29963, 29931, 742, 13, 268, 29900, 29916, 29923, 29945, 29901, 1303, 29918, 978, 29892, 396, 1792, 3342, 740, 13995, 13, 268, 29900, 29916, 29923, 29909, 29901, 14013, 25947, 29901, 8528, 29911, 1430, 2287, 29928, 29906, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 20526, 13, 268, 29900, 29916, 29943, 29953, 29901, 1303, 29918, 978, 29892, 396, 1792, 3342, 740, 13, 29913, 13, 13, 12194, 1430, 2287, 29928, 29896, 353, 426, 13, 268, 29900, 29916, 29900, 29900, 29901, 525, 23711, 29925, 18799, 10145, 742, 13, 268, 29900, 29916, 29900, 29896, 29901, 525, 22484, 29903, 1955, 4986, 9165, 742, 13, 268, 29900, 29916, 29900, 29906, 29901, 525, 9165, 4986, 22484, 29903, 1955, 742, 13, 268, 29900, 29916, 29900, 29941, 29901, 525, 7194, 23845, 29943, 11538, 742, 13, 268, 29900, 29916, 29900, 29946, 29901, 525, 29933, 1177, 2287, 29963, 3919, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 525, 4717, 29902, 22048, 29963, 3919, 742, 13, 268, 29900, 29916, 29900, 29953, 29901, 525, 3035, 29949, 7077, 19713, 742, 13, 268, 29900, 29916, 29900, 29955, 29901, 525, 7194, 22484, 29903, 1955, 3035, 3301, 4945, 742, 13, 268, 29900, 29916, 29900, 29947, 29901, 525, 3904, 29933, 1177, 2287, 29963, 3919, 29903, 742, 13, 268, 29900, 29916, 29900, 29929, 29901, 525, 16036, 29963, 3919, 29903, 742, 13, 268, 29900, 29916, 29900, 29909, 29901, 525, 17744, 8618, 13171, 15631, 742, 13, 268, 29900, 29916, 29900, 29923, 29901, 525, 2965, 8127, 742, 13, 268, 29900, 29916, 29900, 29907, 29901, 525, 22240, 29931, 742, 13, 268, 29900, 29916, 29900, 29943, 29901, 525, 5454, 1254, 742, 13, 268, 29900, 29916, 29896, 29900, 29901, 525, 3289, 2239, 29950, 9468, 17101, 742, 13, 268, 29900, 29916, 29896, 29896, 29901, 525, 10490, 15989, 8647, 10490, 742, 13, 268, 29900, 29916, 29896, 29906, 29901, 525, 7194, 15989, 8647, 10490, 742, 13, 268, 29900, 29916, 29896, 29941, 29901, 525, 29907, 1307, 1718, 15989, 8647, 10490, 742, 13, 268, 29900, 29916, 29896, 29946, 29901, 525, 4176, 1367, 20566, 3235, 6007, 8186, 1783, 742, 13, 268, 29900, 29916, 29896, 29945, 29901, 525, 3235, 2303, 6720, 29943, 2544, 3210, 3352, 742, 13, 268, 29900, 29916, 29896, 29953, 29901, 525, 1692, 6040, 2692, 6992, 29907, 19143, 742, 13, 268, 29900, 29916, 29896, 29955, 29901, 525, 1529, 29968, 2544, 29934, 2190, 8132, 1783, 6181, 742, 13, 268, 29900, 29916, 29896, 29947, 29901, 525, 9047, 29934, 2190, 8132, 1783, 6181, 742, 13, 268, 29900, 29916, 29896, 29929, 29901, 525, 3235, 29925, 1430, 742, 13, 29913, 13, 13, 12194, 1430, 2287, 29928, 29906, 353, 426, 13, 1678, 396, 4013, 1051, 3743, 599, 1906, 3168, 393, 526, 3625, 1549, 278, 29871, 29900, 29916, 29923, 29909, 313, 1062, 2760, 740, 29897, 775, 29901, 13, 268, 29900, 29916, 29900, 29900, 29901, 525, 10593, 3580, 3035, 742, 13, 268, 29900, 29916, 29900, 29896, 29901, 525, 10593, 9486, 1718, 742, 13, 268, 29900, 29916, 29900, 29906, 29901, 525, 21055, 29968, 29925, 3035, 742, 13, 268, 29900, 29916, 29900, 29941, 29901, 525, 21055, 26067, 1718, 742, 13, 268, 29900, 29916, 29900, 29946, 29901, 525, 13778, 3557, 3035, 742, 13, 268, 29900, 29916, 29900, 29945, 29901, 525, 13778, 24895, 1718, 742, 13, 268, 29900, 29916, 29900, 29953, 29901, 525, 1692, 3557, 3035, 742, 13, 268, 29900, 29916, 29900, 29955, 29901, 525, 7194, 29933, 1718, 742, 13, 268, 29900, 29916, 29900, 29947, 29901, 525, 29924, 25152, 3970, 29956, 742, 13, 268, 29900, 29916, 29900, 29929, 29901, 525, 14824, 29967, 13967, 742, 13, 268, 29900, 29916, 29900, 29909, 29901, 525, 29956, 16320, 3919, 742, 13, 268, 29900, 29916, 29900, 29933, 29901, 525, 29956, 3210, 6227, 29928, 742, 13, 268, 29900, 29916, 29900, 29907, 29901, 525, 29934, 29928, 1307, 29963, 6670, 742, 13, 268, 29900, 29916, 29900, 29928, 29901, 525, 2477, 4590, 29979, 742, 13, 268, 29900, 29916, 29900, 29923, 29901, 525, 29909, 1177, 29903, 742, 13, 268, 29900, 29916, 29900, 29943, 29901, 525, 29909, 2287, 29931, 742, 13, 268, 29900, 29916, 29896, 29900, 29901, 525, 3289, 8476, 742, 13, 268, 29900, 29916, 29896, 29896, 29901, 525, 28599, 2190, 742, 13, 268, 29900, 29916, 29896, 29906, 29901, 525, 16036, 1307, 13780, 742, 13, 268, 29900, 29916, 29896, 29941, 29901, 525, 3289, 7466, 7187, 24290, 742, 13, 268, 29900, 29916, 29896, 29946, 29901, 525, 29909, 3738, 6670, 8452, 742, 13, 268, 29900, 29916, 29896, 29945, 29901, 525, 3035, 8193, 742, 13, 268, 29900, 29916, 29896, 29953, 29901, 525, 16652, 7724, 742, 13, 268, 29900, 29916, 29896, 29955, 29901, 525, 29956, 29933, 22364, 742, 13, 268, 29900, 29916, 29896, 29947, 29901, 525, 1164, 742, 13, 268, 29900, 29916, 29896, 29929, 29901, 15516, 396, 9526, 2656, 310, 1409, 27717, 29973, 13, 268, 29900, 29916, 29896, 29909, 29901, 525, 29956, 4375, 1254, 742, 13, 268, 29900, 29916, 29896, 29933, 29901, 525, 16033, 29925, 29933, 1718, 742, 13, 268, 29900, 29916, 29896, 29907, 29901, 525, 16033, 18009, 3035, 742, 13, 268, 29900, 29916, 29896, 29928, 29901, 525, 29956, 12648, 7833, 5005, 742, 13, 268, 29900, 29916, 29896, 29923, 29901, 525, 29956, 16173, 7833, 5005, 742, 13, 268, 29900, 29916, 29896, 29943, 29901, 525, 29956, 16310, 742, 13, 268, 29900, 29916, 29906, 29900, 29901, 525, 17755, 1806, 1307, 742, 13, 268, 29900, 29916, 29906, 29896, 29901, 525, 1692, 3557, 12665, 742, 13, 268, 29900, 29916, 29906, 29941, 29901, 525, 29911, 12188, 22574, 742, 13, 268, 29900, 29916, 29906, 29946, 29901, 525, 29943, 1164, 29911, 2303, 5659, 2965, 742, 13, 268, 29900, 29916, 29906, 29945, 29901, 525, 14816, 29903, 2303, 5659, 2965, 742, 13, 268, 29900, 29916, 29906, 29953, 29901, 525, 29686, 1164, 29911, 742, 13, 268, 29900, 29916, 29906, 29955, 29901, 525, 7194, 29943, 1164, 29911, 742, 13, 268, 29900, 29916, 29906, 29947, 29901, 525, 5098, 1164, 29911, 742, 13, 268, 29900, 29916, 29906, 29929, 29901, 525, 29928, 2287, 3035, 18118, 1660, 742, 13, 268, 29900, 29916, 29906, 29909, 29901, 525, 29928, 2287, 1430, 6181, 29928, 742, 13, 268, 29900, 29916, 29906, 29933, 29901, 525, 29928, 2287, 5746, 11206, 26027, 742, 13, 268, 29900, 29916, 29906, 29907, 29901, 525, 29928, 2287, 26019, 29902, 3040, 742, 13, 268, 29900, 29916, 29906, 29928, 29901, 525, 29928, 2287, 13152, 6059, 742, 13, 268, 29900, 29916, 29906, 29923, 29901, 525, 7858, 27267, 14130, 742, 13, 268, 29900, 29916, 29906, 29943, 29901, 525, 29928, 2287, 10490, 6304, 19059, 742, 13, 268, 29900, 29916, 29941, 29900, 29901, 525, 29928, 2287, 10490, 4986, 2227, 29907, 742, 13, 268, 29900, 29916, 29941, 29896, 29901, 525, 29928, 2287, 4945, 16173, 3040, 742, 13, 268, 29900, 29916, 29941, 29906, 29901, 525, 29928, 2287, 4375, 1254, 11432, 742, 13, 268, 29900, 29916, 29941, 29941, 29901, 525, 7194, 9464, 742, 13, 268, 29900, 29916, 29941, 29946, 29901, 525, 29928, 2287, 2882, 8476, 26813, 29903, 742, 13, 268, 29900, 29916, 29941, 29945, 29901, 525, 29928, 2287, 10490, 14094, 2725, 742, 13, 268, 29900, 29916, 29941, 29953, 29901, 525, 29949, 12665, 4986, 2190, 5425, 742, 13, 268, 29900, 29916, 29941, 29947, 29901, 525, 28212, 29903, 3210, 29923, 2303, 742, 13, 268, 29900, 29916, 29941, 29929, 29901, 525, 6271, 6007, 5348, 29911, 742, 13, 268, 29900, 29916, 29941, 29909, 29901, 525, 6271, 22484, 29450, 742, 13, 268, 29900, 29916, 29941, 29933, 29901, 525, 6271, 4051, 29943, 742, 13, 268, 29900, 29916, 29941, 29907, 29901, 525, 1367, 29990, 3217, 2208, 3040, 742, 13, 268, 29900, 29916, 29941, 29923, 29901, 525, 29907, 3301, 29903, 21339, 742, 13, 268, 29900, 29916, 29941, 29943, 29901, 525, 11601, 1988, 29949, 7077, 742, 13, 268, 29900, 29916, 29946, 29900, 29901, 525, 1177, 29903, 20387, 742, 13, 268, 29900, 29916, 29946, 29896, 29901, 525, 6156, 3904, 19577, 742, 13, 268, 29900, 29916, 29946, 29906, 29901, 525, 4571, 28483, 1430, 4741, 742, 13, 268, 29900, 29916, 29946, 29941, 29901, 525, 3217, 29903, 742, 13, 268, 29900, 29916, 29946, 29946, 29901, 525, 29903, 1177, 742, 13, 268, 29900, 29916, 29946, 29945, 29901, 525, 29911, 2190, 742, 13, 268, 29900, 29916, 29946, 29953, 29901, 525, 2477, 3267, 742, 13, 268, 29900, 29916, 29946, 29955, 29901, 525, 3289, 1177, 742, 13, 268, 29900, 29916, 29946, 29947, 29901, 525, 1299, 2190, 742, 13, 268, 29900, 29916, 29946, 29929, 29901, 525, 1299, 29940, 29906, 742, 13, 268, 29900, 29916, 29946, 29909, 29901, 525, 14480, 742, 13, 268, 29900, 29916, 29946, 29933, 29901, 525, 14480, 29896, 29900, 742, 13, 268, 29900, 29916, 29946, 29907, 29901, 525, 5746, 29925, 742, 13, 268, 29900, 29916, 29946, 29928, 29901, 525, 2227, 742, 13, 268, 29900, 29916, 29946, 29923, 29901, 525, 27045, 14824, 17637, 742, 13, 268, 29900, 29916, 29946, 29943, 29901, 525, 29933, 1718, 29925, 3491, 7982, 742, 13, 268, 29900, 29916, 29945, 29896, 29901, 525, 17353, 742, 13, 268, 29900, 29916, 29945, 29941, 29901, 525, 22051, 742, 13, 268, 29900, 29916, 29945, 29946, 29901, 525, 3904, 29902, 11144, 742, 13, 268, 29900, 29916, 29945, 29945, 29901, 525, 2287, 7187, 11794, 4214, 742, 13, 268, 29900, 29916, 29945, 29953, 29901, 525, 16881, 18736, 742, 13, 268, 29900, 29916, 29945, 29955, 29901, 525, 16881, 6632, 742, 13, 268, 29900, 29916, 29945, 29947, 29901, 525, 29943, 6248, 742, 13, 268, 29900, 29916, 29945, 29929, 29901, 525, 7818, 8890, 742, 13, 268, 29900, 29916, 29945, 29909, 29901, 525, 29902, 1744, 29931, 2190, 29968, 742, 13, 268, 29900, 29916, 29945, 29933, 29901, 525, 3235, 6720, 17171, 742, 13, 268, 29900, 29916, 29945, 29907, 29901, 525, 1692, 4986, 29933, 17637, 742, 13, 268, 29900, 29916, 29945, 29928, 29901, 525, 14824, 29967, 4986, 27205, 3919, 742, 13, 268, 29900, 29916, 29945, 29923, 29901, 525, 28212, 742, 13, 268, 29900, 29916, 29945, 29943, 29901, 525, 5607, 29928, 8932, 742, 13, 268, 29900, 29916, 29953, 29900, 29901, 525, 8127, 28902, 29967, 742, 13, 268, 29900, 29916, 29953, 29896, 29901, 525, 2477, 4375, 1799, 742, 13, 268, 29900, 29916, 29953, 29906, 29901, 525, 25797, 9486, 23598, 742, 13, 268, 29900, 29916, 29953, 29941, 29901, 525, 21514, 14824, 29967, 742, 13, 268, 29900, 29916, 29953, 29946, 29901, 525, 4176, 29907, 23219, 29931, 742, 13, 268, 29900, 29916, 29953, 29945, 29901, 525, 4176, 15032, 5005, 3059, 742, 13, 268, 29900, 29916, 29953, 29953, 29901, 525, 4176, 6007, 8186, 1783, 742, 13, 268, 29900, 29916, 29953, 29955, 29901, 525, 4176, 23711, 6007, 8186, 1783, 742, 13, 268, 29900, 29916, 29953, 29947, 29901, 525, 4162, 29924, 27047, 742, 13, 268, 29900, 29916, 29953, 29929, 29901, 525, 29903, 29984, 1307, 29990, 11206, 742, 13, 268, 29900, 29916, 29953, 29909, 29901, 525, 4176, 1692, 3557, 29366, 742, 13, 268, 29900, 29916, 29953, 29933, 29901, 525, 4176, 29924, 1955, 1001, 2890, 8647, 29903, 742, 13, 268, 29900, 29916, 29953, 29907, 29901, 525, 4176, 1660, 3557, 29366, 742, 13, 268, 29900, 29916, 29953, 29928, 29901, 525, 4176, 21009, 29903, 742, 13, 268, 29900, 29916, 29953, 29923, 29901, 525, 29943, 10249, 24360, 742, 13, 268, 29900, 29916, 29953, 29943, 29901, 525, 10593, 29911, 11690, 742, 13, 268, 29900, 29916, 29955, 29900, 29901, 525, 10818, 29924, 14789, 742, 13, 268, 29900, 29916, 29955, 29896, 29901, 525, 14824, 29967, 26865, 742, 13, 268, 29900, 29916, 29955, 29906, 29901, 525, 29940, 1955, 1529, 5265, 10721, 742, 13, 268, 29900, 29916, 29955, 29941, 29901, 525, 3235, 16310, 1164, 16786, 742, 13, 268, 29900, 29916, 29955, 29946, 29901, 525, 29925, 18736, 742, 13, 268, 29900, 29916, 29955, 29947, 29901, 525, 2303, 1799, 10461, 8456, 29990, 742, 13, 268, 29900, 29916, 29955, 29929, 29901, 525, 29909, 17171, 29928, 742, 13, 268, 29900, 29916, 29955, 29909, 29901, 525, 29909, 11432, 742, 13, 268, 29900, 29916, 29955, 29933, 29901, 525, 4176, 3217, 7428, 1806, 742, 13, 268, 29900, 29916, 29955, 29907, 29901, 525, 4176, 1672, 2208, 29933, 11375, 742, 13, 268, 29900, 29916, 29955, 29928, 29901, 525, 11490, 1164, 742, 13, 268, 29900, 29916, 29955, 29923, 29901, 525, 29940, 4986, 29924, 742, 13, 268, 29900, 29916, 29955, 29943, 29901, 525, 12972, 2891, 742, 13, 268, 29900, 29916, 29947, 29900, 29901, 525, 29911, 4986, 29928, 742, 13, 268, 29900, 29916, 29947, 29896, 29901, 525, 29911, 4986, 29907, 742, 13, 268, 29900, 29916, 29947, 29906, 29901, 525, 1783, 2891, 742, 13, 268, 29900, 29916, 29947, 29941, 29901, 525, 8187, 4574, 742, 13, 268, 29900, 29916, 29947, 29946, 29901, 525, 16173, 26027, 742, 13, 268, 29900, 29916, 29947, 29945, 29901, 525, 1660, 29907, 742, 13, 268, 29900, 29916, 29947, 29953, 29901, 525, 25832, 2544, 8890, 742, 13, 268, 29900, 29916, 29947, 29955, 29901, 525, 1525, 13356, 24422, 742, 13, 268, 29900, 29916, 29947, 29947, 29901, 525, 22484, 29903, 1955, 1660, 3557, 29366, 742, 13, 268, 29900, 29916, 29947, 29929, 29901, 525, 22484, 29903, 1955, 1692, 3557, 29366, 742, 13, 268, 29900, 29916, 29947, 29909, 29901, 525, 4051, 1660, 3557, 29366, 742, 13, 268, 29900, 29916, 29947, 29933, 29901, 525, 4051, 1692, 3557, 29366, 742, 13, 268, 29900, 29916, 29947, 29907, 29901, 525, 7194, 15032, 1955, 742, 13, 268, 29900, 29916, 29947, 29928, 29901, 525, 10593, 24480, 742, 13, 268, 29900, 29916, 29947, 29923, 29901, 525, 29907, 9468, 1367, 3040, 742, 13, 268, 29900, 29916, 29947, 29943, 29901, 525, 22484, 8932, 742, 13, 268, 29900, 29916, 29929, 29900, 29901, 525, 7194, 29943, 10249, 19713, 742, 13, 268, 29900, 29916, 29929, 29896, 29901, 525, 1660, 8969, 10249, 19713, 742, 13, 268, 29900, 29916, 29929, 29906, 29901, 525, 7194, 29940, 12194, 6720, 4571, 3738, 3352, 742, 13, 268, 29900, 29916, 29929, 29941, 29901, 525, 21009, 14474, 742, 13, 268, 29900, 29916, 29929, 29946, 29901, 525, 29911, 2882, 29931, 27267, 5348, 29911, 742, 13, 268, 29900, 29916, 29929, 29945, 29901, 525, 3035, 1299, 27982, 29903, 742, 13, 268, 29900, 29916, 29929, 29953, 29901, 525, 22840, 742, 13, 268, 29900, 29916, 29929, 29947, 29901, 525, 3035, 8456, 29933, 17637, 29903, 742, 13, 268, 29900, 29916, 29929, 29929, 29901, 525, 3301, 29934, 23845, 29903, 742, 13, 268, 29900, 29916, 29929, 29909, 29901, 525, 1692, 3557, 29934, 23845, 742, 13, 268, 29900, 29916, 29929, 29933, 29901, 525, 7194, 2227, 1783, 742, 13, 268, 29900, 29916, 29929, 29907, 29901, 525, 8851, 29923, 29968, 742, 13, 268, 29900, 29916, 29929, 29928, 29901, 525, 25866, 1525, 7068, 742, 13, 268, 29900, 29916, 29929, 29923, 29901, 525, 7194, 6271, 742, 13, 268, 29900, 29916, 29929, 29943, 29901, 525, 4176, 20785, 6007, 8186, 1783, 742, 13, 268, 29900, 29916, 29909, 29900, 29901, 525, 27045, 29933, 1177, 19926, 742, 13, 268, 29900, 29916, 29909, 29896, 29901, 525, 3970, 23397, 742, 13, 268, 29900, 29916, 29909, 29906, 29901, 525, 29902, 1660, 29990, 6154, 3308, 18474, 742, 13, 268, 29900, 29916, 29909, 29941, 29901, 525, 28627, 29940, 1307, 29963, 6670, 742, 13, 268, 29900, 29916, 29909, 29946, 29901, 525, 4051, 17171, 29928, 742, 13, 268, 29900, 29916, 29909, 29945, 29901, 525, 29909, 25580, 23219, 742, 13, 268, 29900, 29916, 29909, 29953, 29901, 525, 1177, 22840, 742, 13, 268, 29900, 29916, 29909, 29955, 29901, 525, 22698, 29931, 7068, 6545, 29911, 742, 13, 268, 29900, 29916, 29909, 29947, 29901, 525, 22698, 29934, 7068, 6545, 29911, 742, 13, 268, 29900, 29916, 29909, 29929, 29901, 525, 22698, 9468, 742, 13, 268, 29900, 29916, 6344, 29901, 525, 22698, 1955, 742, 13, 268, 29900, 29916, 2882, 29901, 525, 22698, 12256, 742, 13, 268, 29900, 29916, 2477, 29901, 525, 22698, 29990, 1955, 742, 13, 268, 29900, 29916, 3035, 29901, 525, 22698, 10490, 742, 13, 268, 29900, 29916, 16036, 29901, 525, 22698, 18267, 742, 13, 268, 29900, 29916, 5098, 29901, 525, 22698, 29907, 1307, 1718, 742, 13, 268, 29900, 29916, 29933, 29900, 29901, 525, 1299, 29918, 29907, 742, 13, 268, 29900, 29916, 29933, 29896, 29901, 525, 1299, 4174, 742, 13, 268, 29900, 29916, 29933, 29906, 29901, 525, 29934, 1299, 18521, 742, 13, 268, 29900, 29916, 29933, 29941, 29901, 525, 28024, 29907, 742, 13, 268, 29900, 29916, 29933, 29946, 29901, 525, 22789, 3912, 29907, 742, 13, 268, 29900, 29916, 29933, 29945, 29901, 525, 20633, 1254, 10363, 742, 13, 268, 29900, 29916, 29933, 29953, 29901, 525, 1254, 29965, 4198, 29907, 742, 13, 268, 29900, 29916, 29933, 29955, 29901, 525, 1307, 15868, 742, 13, 268, 29900, 29916, 29933, 29947, 29901, 525, 3210, 29934, 26813, 29907, 742, 13, 268, 29900, 29916, 5688, 29901, 525, 5265, 6059, 29907, 742, 13, 268, 29900, 29916, 5371, 29901, 525, 8890, 27047, 742, 13, 268, 29900, 29916, 29121, 29901, 525, 3235, 1307, 3035, 22716, 4330, 742, 13, 268, 29900, 29916, 15349, 29901, 525, 10810, 6007, 29963, 742, 13, 268, 29900, 29916, 28062, 29901, 525, 29933, 1177, 4986, 29907, 742, 13, 268, 29900, 29916, 29907, 29900, 29901, 525, 1783, 14824, 1177, 742, 13, 268, 29900, 29916, 29907, 29896, 29901, 525, 3235, 29943, 21339, 3352, 742, 13, 268, 29900, 29916, 29907, 29906, 29901, 525, 3235, 2241, 29949, 7077, 3352, 742, 13, 268, 29900, 29916, 29907, 29941, 29901, 525, 29428, 2227, 1783, 11499, 742, 13, 268, 29900, 29916, 29907, 29946, 29901, 525, 29903, 7520, 29923, 2227, 1783, 11499, 742, 13, 268, 29900, 29916, 29907, 29945, 29901, 525, 4176, 15094, 7228, 1525, 742, 13, 268, 29900, 29916, 29907, 29953, 29901, 525, 4571, 26282, 18929, 742, 13, 268, 29900, 29916, 29907, 29955, 29901, 525, 27045, 27681, 18521, 742, 13, 268, 29900, 29916, 29907, 29947, 29901, 525, 29928, 1672, 13152, 4198, 18521, 742, 13, 268, 29900, 29916, 29907, 29929, 29901, 525, 29909, 7194, 13875, 1799, 742, 13, 268, 29900, 29916, 5454, 29901, 525, 7520, 29907, 29990, 6154, 3289, 1660, 29903, 742, 13, 268, 29900, 29916, 21685, 29901, 525, 10810, 4986, 7724, 742, 13, 268, 29900, 29916, 4174, 29901, 525, 7724, 29911, 3718, 29934, 742, 13, 268, 29900, 29916, 6530, 29901, 525, 3035, 4051, 29903, 742, 13, 268, 29900, 29916, 4741, 29901, 525, 2287, 4519, 13309, 16975, 742, 13, 268, 29900, 29916, 9207, 29901, 525, 29928, 3960, 29963, 2544, 6959, 742, 13, 268, 29900, 29916, 29928, 29900, 29901, 525, 22051, 4741, 12194, 742, 13, 268, 29900, 29916, 29928, 29896, 29901, 525, 22051, 4741, 10145, 742, 13, 268, 29900, 29916, 29928, 29906, 29901, 525, 29967, 17321, 29928, 3960, 12064, 742, 13, 268, 29900, 29916, 29928, 29941, 29901, 525, 29967, 17321, 12194, 742, 13, 268, 29900, 29916, 29928, 29946, 29901, 525, 29967, 17321, 29943, 5813, 742, 13, 268, 29900, 29916, 29928, 29945, 29901, 525, 29967, 17321, 10145, 742, 13, 268, 29900, 29916, 29928, 29953, 29901, 525, 29967, 17321, 1254, 12665, 742, 13, 268, 29900, 29916, 29928, 29955, 29901, 525, 27992, 22048, 29968, 742, 13, 268, 29900, 29916, 29928, 29947, 29901, 525, 19795, 1525, 29911, 24015, 11432, 742, 13, 268, 29900, 29916, 29928, 29929, 29901, 525, 29963, 8322, 6959, 742, 13, 268, 29900, 29916, 7698, 29901, 525, 1964, 1177, 2890, 742, 13, 268, 29900, 29916, 4051, 29901, 525, 28577, 14824, 17637, 742, 13, 268, 29900, 29916, 12696, 29901, 525, 5194, 29949, 17171, 14824, 29967, 742, 13, 268, 29900, 29916, 7858, 29901, 525, 3217, 12513, 4375, 1799, 11690, 742, 13, 268, 29900, 29916, 29923, 29900, 29901, 525, 2190, 2544, 1525, 27839, 27266, 742, 13, 268, 29900, 29916, 29923, 29896, 29901, 525, 29909, 7194, 7724, 16358, 742, 13, 268, 29900, 29916, 29923, 29906, 29901, 525, 27045, 14824, 17637, 5746, 742, 13, 268, 29900, 29916, 29923, 29941, 29901, 525, 3217, 1529, 29934, 22800, 742, 13, 268, 29900, 29916, 29923, 29946, 29901, 525, 5746, 11206, 7187, 24290, 742, 13, 268, 29900, 29916, 29923, 29945, 29901, 525, 9165, 14474, 29954, 25058, 742, 13, 268, 29900, 29916, 29923, 29953, 29901, 525, 21514, 29366, 742, 13, 268, 29900, 29916, 29923, 29955, 29901, 525, 8254, 29954, 11690, 742, 13, 268, 29900, 29916, 29923, 29947, 29901, 525, 28938, 11375, 11690, 742, 13, 268, 29900, 29916, 29923, 29929, 29901, 525, 22240, 3919, 29950, 9468, 29931, 1001, 742, 13, 268, 29900, 29916, 29923, 29909, 29901, 525, 12378, 27839, 4741, 742, 13, 268, 29900, 29916, 25752, 29901, 525, 3035, 2208, 29903, 742, 13, 268, 29900, 29916, 11206, 29901, 525, 13356, 1718, 4945, 742, 13, 268, 29900, 29916, 3352, 29901, 525, 7194, 17013, 18736, 742, 13, 268, 29900, 29916, 17896, 29901, 525, 7194, 17013, 13967, 742, 13, 268, 29900, 29916, 29638, 29901, 525, 1964, 19453, 29965, 10461, 742, 13, 268, 29900, 29916, 29943, 29900, 29901, 525, 1254, 1525, 12188, 4717, 1783, 742, 13, 268, 29900, 29916, 29943, 29896, 29901, 525, 1177, 12336, 8456, 29990, 742, 13, 268, 29900, 29916, 29943, 29906, 29901, 525, 3301, 1672, 29907, 11690, 742, 13, 268, 29900, 29916, 29943, 29941, 29901, 525, 29956, 3970, 7077, 6181, 742, 13, 268, 29900, 29916, 29943, 29946, 29901, 525, 8127, 13507, 29903, 742, 13, 268, 29900, 29916, 29943, 29945, 29901, 525, 16975, 29924, 1001, 1692, 742, 13, 268, 29900, 29916, 26453, 29901, 525, 16173, 742, 13, 29913, 13, 13, 13875, 17171, 29903, 29889, 5504, 29898, 8932, 12996, 29897, 13, 13, 1753, 1303, 29918, 12759, 29898, 29888, 333, 1125, 13, 1678, 736, 2281, 29889, 348, 4058, 877, 29966, 29882, 742, 25947, 29889, 949, 29898, 29906, 876, 29961, 29900, 29962, 13, 13, 1753, 1303, 29918, 1878, 441, 29898, 29888, 333, 1125, 13, 1678, 736, 2281, 29889, 348, 4058, 877, 29966, 29950, 742, 25947, 29889, 949, 29898, 29906, 876, 29961, 29900, 29962, 13, 13, 1753, 1303, 29918, 524, 29898, 29888, 333, 1125, 13, 1678, 736, 2281, 29889, 348, 4058, 877, 29966, 29875, 742, 25947, 29889, 949, 29898, 29946, 876, 29961, 29900, 29962, 13, 13, 1753, 1303, 29918, 13470, 29898, 29888, 333, 1125, 13, 1678, 736, 2281, 29889, 348, 4058, 877, 29966, 29902, 742, 25947, 29889, 949, 29898, 29946, 876, 29961, 29900, 29962, 13, 13, 1753, 6088, 29918, 1491, 1220, 29898, 29888, 333, 29892, 3309, 29892, 2186, 29892, 2983, 29892, 1196, 1125, 13, 1678, 1550, 25947, 29889, 29873, 514, 580, 529, 2186, 29901, 13, 4706, 11845, 791, 353, 25947, 29889, 949, 29898, 29896, 9601, 29900, 29962, 13, 4706, 565, 11845, 791, 297, 315, 4375, 17171, 29903, 29901, 13, 9651, 11845, 353, 315, 4375, 17171, 29903, 29961, 16398, 1509, 791, 29962, 13, 4706, 565, 11845, 791, 297, 341, 8647, 2965, 4375, 17171, 29903, 29901, 13, 9651, 11845, 353, 525, 470, 15300, 7122, 29898, 29924, 8647, 2965, 4375, 17171, 29903, 29961, 16398, 1509, 791, 2314, 13, 4706, 565, 11845, 791, 1275, 29871, 29900, 29916, 29943, 29953, 470, 11845, 791, 1275, 29871, 29900, 29916, 29943, 29955, 29901, 13, 9651, 11845, 353, 11845, 29898, 29888, 333, 29892, 2983, 29897, 13, 9651, 1550, 1196, 322, 1134, 29898, 1220, 14352, 29896, 2314, 338, 383, 29990, 7228, 18849, 29901, 13, 18884, 11845, 353, 383, 29990, 29925, 1170, 29898, 276, 558, 29898, 1220, 29889, 7323, 3101, 718, 2062, 29898, 16398, 1509, 876, 13, 4706, 25342, 1246, 519, 29898, 16398, 1509, 1125, 13, 9651, 11845, 353, 11845, 29898, 29888, 333, 29892, 2983, 29897, 13, 4706, 1683, 29901, 13, 9651, 11845, 353, 383, 29990, 29925, 1170, 29898, 16398, 1509, 29897, 13, 4706, 1196, 29889, 4397, 29898, 16398, 1509, 29897, 13, 1678, 565, 7431, 29898, 1220, 29897, 1405, 29871, 29896, 322, 338, 8758, 29898, 1220, 14352, 29906, 1402, 938, 1125, 13, 4706, 1196, 29889, 7323, 6278, 29906, 29897, 13, 1678, 25947, 29889, 344, 1416, 29898, 8394, 448, 3309, 29897, 13, 1678, 1018, 29901, 13, 4706, 1196, 353, 6024, 15300, 7122, 29898, 276, 558, 29898, 29880, 29897, 363, 301, 297, 1196, 4638, 13, 1678, 5174, 29901, 13, 4706, 1209, 13, 1678, 1196, 718, 518, 949, 29918, 1610, 29898, 29888, 333, 29892, 3309, 4638, 718, 518, 29888, 333, 29889, 29873, 514, 580, 448, 3309, 29962, 13, 1678, 736, 1196, 29961, 29900, 29962, 13, 13, 1753, 6088, 29918, 1220, 29898, 29888, 333, 29892, 3309, 29892, 2983, 1125, 13, 1678, 2186, 353, 25947, 29889, 29873, 514, 580, 718, 3309, 13, 1678, 1196, 353, 5159, 13, 1678, 1899, 353, 23353, 1529, 2797, 29903, 29961, 29888, 333, 29889, 949, 29898, 29896, 9601, 29900, 5262, 13, 1678, 565, 1246, 519, 29898, 6519, 1125, 13, 4706, 1196, 4619, 518, 26753, 29925, 1170, 29898, 29883, 29897, 363, 274, 297, 1899, 29898, 29888, 333, 29892, 3309, 29899, 29896, 4638, 13, 1678, 1683, 29901, 13, 4706, 1196, 29889, 4397, 29898, 26753, 29925, 1170, 29898, 6519, 876, 13, 1678, 736, 6088, 29918, 1491, 1220, 29898, 29888, 333, 29892, 3309, 29892, 2186, 29892, 2983, 29892, 1196, 29897, 13, 13, 1753, 1303, 29918, 401, 29918, 1220, 29918, 6203, 29898, 29888, 333, 29892, 2983, 29892, 2186, 29918, 29888, 1066, 1125, 13, 1678, 270, 353, 5159, 13, 1678, 1550, 25947, 29889, 29873, 514, 580, 529, 2186, 29918, 29888, 1066, 29901, 13, 4706, 1018, 29901, 13, 9651, 1369, 29918, 1066, 353, 25947, 29889, 29873, 514, 580, 13, 9651, 3309, 353, 1303, 29918, 1878, 441, 29898, 29888, 333, 29897, 13, 9651, 270, 29889, 4397, 29898, 5510, 29918, 1220, 29898, 29888, 333, 29892, 3309, 29899, 29906, 29892, 2983, 876, 13, 4706, 5174, 29901, 13, 9651, 1053, 9637, 1627, 13, 9651, 9637, 1627, 29889, 2158, 29918, 735, 29883, 580, 13, 9651, 25947, 29889, 344, 1416, 29898, 2962, 29918, 1066, 29897, 13, 9651, 3309, 353, 1303, 29918, 1878, 441, 29898, 29888, 333, 29897, 13, 9651, 1196, 353, 1303, 29918, 1610, 29898, 29888, 333, 29892, 3309, 29899, 29906, 29897, 13, 9651, 1596, 29898, 1220, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 9651, 270, 29889, 4397, 29898, 1220, 29897, 13, 1678, 736, 525, 4286, 7122, 29898, 29881, 29897, 13, 13, 1753, 1303, 29918, 401, 29918, 978, 29918, 1761, 29898, 29888, 333, 1125, 13, 1678, 954, 29918, 26586, 353, 1303, 29918, 1878, 441, 29898, 29888, 333, 29897, 13, 1678, 736, 518, 949, 29918, 1807, 29898, 29888, 333, 29897, 363, 474, 297, 3464, 29898, 1949, 29918, 26586, 4638, 13, 13, 1753, 1735, 29918, 17514, 29918, 1767, 29898, 13338, 29892, 2983, 1125, 13, 1678, 22010, 353, 22010, 29889, 5451, 580, 29961, 29896, 29962, 13, 1678, 565, 22010, 29889, 1975, 2541, 877, 6169, 1125, 13, 4706, 736, 2983, 29961, 524, 29898, 13338, 7503, 29899, 29896, 2314, 29962, 718, 525, 6169, 13, 1678, 1683, 29901, 13, 4706, 736, 2983, 29961, 524, 29898, 13338, 4638, 13, 1678, 736, 22010, 13, 13, 1753, 16125, 403, 29918, 2606, 2129, 29898, 18137, 29892, 2983, 1125, 13, 1678, 11561, 353, 11561, 7503, 29962, 13, 1678, 716, 29918, 18137, 353, 5159, 13, 1678, 1550, 11561, 29901, 13, 4706, 775, 353, 11561, 29889, 7323, 29898, 29900, 29897, 13, 4706, 565, 338, 8758, 29898, 401, 29892, 851, 29897, 322, 775, 29889, 27382, 2541, 877, 5813, 525, 1125, 13, 9651, 775, 353, 1735, 29918, 17514, 29918, 1767, 29898, 401, 29892, 2983, 29897, 13, 9651, 1550, 775, 29889, 1975, 2541, 877, 6169, 1125, 13, 18884, 775, 4619, 1735, 29918, 17514, 29918, 1767, 29898, 18137, 29889, 7323, 29898, 29900, 511, 2983, 29897, 13, 4706, 565, 338, 8758, 29898, 401, 29892, 851, 29897, 322, 775, 29889, 27382, 2541, 877, 29903, 4162, 8426, 1964, 29918, 5813, 525, 1125, 13, 9651, 775, 353, 1735, 29918, 17514, 29918, 1767, 29898, 401, 29892, 317, 4162, 8426, 1964, 29918, 5813, 29903, 29897, 13, 9651, 1550, 775, 29889, 1975, 2541, 877, 6169, 1125, 13, 18884, 775, 4619, 1735, 29918, 17514, 29918, 1767, 29898, 18137, 29889, 7323, 29898, 29900, 511, 2983, 29897, 13, 4706, 716, 29918, 18137, 29889, 4397, 29898, 401, 29897, 13, 1678, 736, 716, 29918, 18137, 13, 13, 1753, 1303, 29918, 401, 29918, 1271, 29898, 29888, 333, 1125, 13, 1678, 2025, 29918, 2848, 353, 1303, 29918, 1878, 441, 29898, 29888, 333, 29897, 13, 1678, 565, 2025, 29918, 2848, 1275, 29871, 29900, 29901, 13, 4706, 2025, 29918, 2848, 353, 1303, 29918, 13470, 29898, 29888, 333, 29897, 13, 1678, 1369, 29918, 1066, 353, 25947, 29889, 29873, 514, 580, 13, 1678, 25947, 29889, 344, 1416, 29898, 29888, 333, 29889, 29873, 514, 580, 718, 2025, 29918, 2848, 29897, 13, 1678, 2983, 353, 1303, 29918, 401, 29918, 978, 29918, 1761, 29898, 29888, 333, 29897, 13, 13, 1678, 25947, 29889, 344, 1416, 29898, 2962, 29918, 1066, 29897, 13, 1678, 736, 1303, 29918, 401, 29918, 1220, 29918, 6203, 29898, 29888, 333, 29892, 2983, 29892, 1369, 29918, 1066, 29974, 4260, 29918, 2848, 29897, 13, 13, 1753, 3588, 29918, 1256, 29898, 1256, 29918, 14836, 1125, 13, 1678, 1629, 353, 5135, 1256, 29918, 14836, 669, 29871, 29900, 29916, 1725, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 5099, 29871, 29906, 29945, 29897, 718, 29871, 29896, 29929, 29947, 29900, 13, 1678, 4098, 353, 313, 1256, 29918, 14836, 669, 29871, 29900, 29916, 29896, 29872, 29900, 29900, 29900, 29900, 29900, 29897, 5099, 29871, 29906, 29896, 13, 1678, 2462, 353, 313, 1256, 29918, 14836, 669, 29871, 29900, 29916, 29896, 29888, 29900, 29900, 29900, 29900, 29897, 5099, 29871, 29896, 29953, 13, 1678, 7234, 353, 313, 1256, 29918, 14836, 669, 29871, 29900, 24660, 29947, 29900, 29900, 29897, 5099, 29871, 29896, 29896, 13, 1678, 11015, 353, 313, 1256, 29918, 14836, 669, 29871, 29900, 29916, 29955, 29872, 29900, 29897, 5099, 29871, 29945, 13, 1678, 1473, 353, 313, 1256, 29918, 14836, 669, 29871, 29900, 29916, 29896, 29888, 29897, 3532, 29871, 29896, 13, 1678, 736, 12865, 29898, 6360, 29892, 4098, 29892, 2462, 29892, 7234, 29892, 11015, 29892, 1473, 29897, 13, 13, 1753, 1303, 29918, 771, 26600, 29918, 6672, 29898, 29888, 333, 1125, 13, 1678, 736, 8170, 287, 21533, 3552, 13, 4706, 6702, 978, 742, 1303, 29918, 1807, 29898, 29888, 333, 8243, 13, 4706, 6702, 1066, 742, 1303, 29918, 13470, 29898, 29888, 333, 8243, 13, 4706, 6702, 1990, 29918, 15581, 742, 1303, 29918, 12759, 29898, 29888, 333, 8243, 13, 4706, 6702, 1990, 742, 1303, 29918, 12759, 29898, 29888, 333, 8243, 13, 268, 876, 13, 13, 1753, 1303, 29918, 1990, 29918, 6672, 29898, 29888, 333, 1125, 13, 1678, 736, 426, 13, 4706, 525, 978, 2396, 1303, 29918, 1807, 29898, 29888, 333, 511, 13, 4706, 525, 3560, 2396, 1303, 29918, 1807, 29898, 29888, 333, 511, 13, 4706, 525, 1066, 2396, 1303, 29918, 13470, 29898, 29888, 333, 511, 13, 4706, 525, 690, 9841, 2396, 25947, 29889, 949, 29898, 29906, 511, 13, 1678, 500, 13, 13, 1753, 1303, 29918, 1220, 29918, 3888, 29898, 29888, 333, 1125, 13, 1678, 736, 1303, 29918, 1610, 29898, 29888, 333, 29892, 29871, 29906, 29897, 13, 13, 1753, 1303, 29918, 4993, 29918, 3888, 29898, 29888, 333, 1125, 13, 1678, 9815, 29896, 29892, 9815, 29906, 29892, 9815, 29941, 29892, 1196, 29918, 1949, 29918, 2962, 353, 2281, 29889, 348, 4058, 877, 2687, 2687, 742, 25947, 29889, 949, 29898, 29896, 29953, 876, 13, 1678, 736, 1196, 29918, 1949, 29918, 2962, 29892, 9815, 29896, 29892, 9815, 29906, 29892, 9815, 29941, 13, 13, 1753, 1303, 29918, 29305, 29918, 4304, 29898, 29888, 333, 1125, 13, 1678, 1347, 353, 25947, 29889, 949, 29898, 29896, 29897, 13, 1678, 1550, 1347, 14352, 29896, 29962, 2804, 29871, 29900, 29901, 13, 4706, 1347, 4619, 25947, 29889, 949, 29898, 29896, 29897, 13, 1678, 565, 1347, 29901, 13, 4706, 1347, 353, 1347, 7503, 29899, 29896, 29962, 13, 1678, 736, 1347, 29889, 13808, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 1495, 13, 13, 1753, 1303, 29918, 11093, 29886, 29918, 1445, 29918, 1271, 29898, 29888, 333, 29892, 1369, 29918, 1066, 29892, 1024, 29918, 1066, 1125, 13, 1678, 25947, 29889, 344, 1416, 29898, 2962, 29918, 1066, 29897, 13, 1678, 19200, 353, 12801, 25446, 2236, 2236, 2236, 2687, 29933, 29915, 13, 1678, 954, 29918, 771, 1133, 1973, 29892, 954, 29918, 13203, 29892, 1667, 29918, 401, 1066, 29892, 8792, 29918, 1066, 29892, 770, 29918, 1066, 29892, 2752, 29918, 3888, 29918, 1066, 29892, 954, 29918, 401, 29918, 9012, 29892, 775, 29918, 9012, 29918, 1066, 29892, 2635, 29892, 2441, 29918, 978, 29918, 1066, 29892, 775, 3488, 353, 2281, 29889, 348, 4058, 29898, 23479, 29892, 25947, 29889, 949, 29898, 4984, 29889, 28667, 2311, 29898, 23479, 4961, 13, 13, 1678, 8792, 29918, 1066, 4619, 1369, 29918, 1066, 13, 1678, 770, 29918, 1066, 4619, 1369, 29918, 1066, 13, 1678, 775, 29918, 9012, 29918, 1066, 4619, 1369, 29918, 1066, 13, 1678, 2752, 29918, 3888, 29918, 1066, 4619, 1369, 29918, 1066, 13, 13, 1678, 2635, 353, 3588, 29918, 1256, 29898, 1256, 29897, 13, 13, 1678, 775, 3488, 353, 270, 1635, 29889, 401, 29918, 12292, 29961, 29906, 29945, 29945, 448, 775, 3488, 29962, 13, 13, 1678, 25947, 29889, 344, 1416, 29898, 978, 29918, 1066, 718, 2441, 29918, 978, 29918, 1066, 29897, 13, 1678, 2441, 29918, 978, 353, 1303, 29918, 29305, 29918, 4304, 29898, 29888, 333, 29897, 13, 13, 1678, 363, 2944, 297, 6702, 1949, 29918, 771, 1133, 1973, 742, 525, 1949, 29918, 13203, 742, 525, 3396, 29918, 401, 1066, 742, 525, 771, 26600, 29918, 1066, 742, 525, 1990, 29918, 1066, 742, 525, 4993, 29918, 3888, 29918, 1066, 742, 525, 1949, 29918, 401, 29918, 9012, 742, 525, 401, 29918, 9012, 29918, 1066, 742, 525, 1256, 742, 525, 13492, 29918, 978, 742, 525, 401, 3488, 29374, 13, 4706, 1596, 877, 8875, 353, 426, 29991, 29878, 29913, 4286, 4830, 29898, 667, 29892, 19745, 29898, 667, 4961, 13, 13, 1678, 25947, 29889, 344, 1416, 29898, 771, 26600, 29918, 1066, 29897, 13, 1678, 28648, 353, 518, 7514, 287, 21533, 3552, 1989, 29892, 659, 29897, 363, 1820, 29892, 659, 297, 14319, 29898, 877, 978, 742, 525, 1066, 742, 525, 1990, 29918, 15581, 742, 525, 1990, 5477, 6702, 742, 1667, 29918, 401, 1066, 29892, 29871, 29900, 29892, 448, 29896, 876, 4638, 13, 1678, 28648, 4619, 518, 949, 29918, 771, 26600, 29918, 6672, 29898, 29888, 333, 29897, 363, 474, 297, 3464, 29898, 1949, 29918, 771, 1133, 1973, 4638, 13, 268, 13, 1678, 25947, 29889, 344, 1416, 29898, 1990, 29918, 1066, 29892, 29871, 29900, 29897, 13, 1678, 4413, 353, 518, 949, 29918, 1990, 29918, 6672, 29898, 29888, 333, 29897, 363, 474, 297, 3464, 29898, 1949, 29918, 13203, 4638, 13, 13, 1678, 25947, 29889, 344, 1416, 29898, 401, 29918, 9012, 29918, 1066, 29897, 13, 1678, 1196, 29918, 3888, 353, 518, 949, 29918, 1220, 29918, 3888, 29898, 29888, 333, 29897, 363, 474, 297, 3464, 29898, 1949, 29918, 401, 29918, 9012, 4638, 13, 13, 1678, 25947, 29889, 344, 1416, 29898, 4993, 29918, 3888, 29918, 1066, 29897, 13, 1678, 2752, 29918, 3888, 353, 518, 949, 29918, 4993, 29918, 3888, 29898, 29888, 333, 29897, 363, 474, 297, 3464, 29898, 1949, 29918, 771, 1133, 1973, 718, 954, 29918, 13203, 718, 29871, 29896, 4638, 13, 13, 1678, 363, 9580, 29918, 272, 29918, 25932, 297, 28648, 718, 4413, 29901, 13, 4706, 25947, 29889, 344, 1416, 29898, 15439, 29918, 272, 29918, 25932, 1839, 1066, 2033, 718, 1369, 29918, 1066, 29897, 13, 4706, 9580, 29918, 272, 29918, 25932, 1839, 401, 2033, 353, 1303, 29918, 401, 29918, 1271, 29898, 29888, 333, 29897, 13, 4706, 9580, 29918, 272, 29918, 25932, 29889, 7323, 877, 1066, 1495, 13, 13, 1678, 736, 28648, 29892, 4413, 13, 13, 1753, 285, 26330, 29918, 949, 29898, 11093, 29886, 29918, 1445, 29892, 1962, 29918, 3972, 29922, 8516, 1125, 13, 1678, 411, 1722, 29898, 11093, 29886, 29918, 1445, 29892, 525, 6050, 1495, 408, 25947, 29901, 13, 4706, 4839, 29918, 13193, 353, 25947, 29889, 949, 29898, 23252, 1001, 29918, 14226, 29897, 13, 13, 4706, 565, 7431, 29898, 6672, 29918, 13193, 29897, 529, 17714, 3035, 1001, 29918, 14226, 29901, 13, 9651, 12020, 8960, 877, 2283, 4839, 2086, 3273, 1495, 13, 13, 4706, 15882, 29892, 2343, 29892, 954, 29918, 5325, 29892, 1667, 29918, 1445, 29892, 24166, 29918, 1066, 29892, 1024, 29918, 1066, 29892, 1024, 29918, 2435, 29892, 21676, 29892, 1423, 2083, 353, 2281, 29889, 348, 4058, 877, 29966, 29941, 29879, 29906, 29879, 27590, 5287, 29896, 29947, 29879, 29950, 742, 4839, 29918, 13193, 29897, 13, 13, 4706, 565, 15882, 1275, 12524, 11341, 29979, 7982, 3352, 29918, 1367, 3919, 29902, 3738, 1001, 29901, 13, 9651, 1596, 29898, 276, 558, 29898, 6672, 29918, 13193, 876, 13, 9651, 12020, 8960, 877, 8566, 14740, 934, 1495, 13, 13, 4706, 565, 15882, 2804, 3553, 3919, 29902, 3738, 1001, 29901, 13, 9651, 1596, 877, 12313, 4839, 1495, 13, 9651, 12020, 8960, 877, 12313, 4839, 29901, 426, 29991, 29878, 29913, 4286, 4830, 29898, 25378, 876, 13, 13, 4706, 565, 1423, 2083, 2804, 1423, 2083, 29918, 28667, 29898, 6672, 29918, 13193, 7503, 29899, 29946, 29962, 1125, 13, 9651, 12020, 8960, 877, 12313, 1423, 2083, 1495, 13, 13, 4706, 363, 2944, 297, 6702, 2813, 742, 525, 1949, 29918, 5325, 742, 525, 3396, 29918, 1445, 742, 525, 21720, 29918, 1066, 742, 525, 978, 29918, 1066, 742, 525, 978, 29918, 2435, 742, 525, 690, 9841, 742, 525, 3198, 2083, 29374, 13, 9651, 1596, 877, 8875, 353, 426, 29991, 29878, 29913, 4286, 4830, 29898, 667, 29892, 19745, 29898, 667, 4961, 13, 4706, 1596, 580, 13, 13, 4706, 565, 1962, 29918, 3972, 29901, 13, 9651, 1018, 29901, 13, 18884, 2897, 29889, 29885, 12535, 12935, 29898, 4905, 29918, 3972, 29897, 13, 9651, 5174, 438, 29173, 408, 321, 29901, 13, 18884, 565, 321, 29889, 3127, 1217, 2804, 4589, 1217, 29889, 29923, 5746, 9047, 29901, 13, 462, 1678, 12020, 13, 13, 4706, 25947, 29889, 344, 1416, 29898, 21720, 29918, 1066, 29897, 13, 4706, 24166, 29918, 26586, 353, 518, 4984, 29889, 348, 4058, 877, 29966, 29933, 2687, 2687, 29947, 29879, 742, 25947, 29889, 949, 29898, 5800, 2891, 1001, 29918, 3919, 13207, 29918, 14226, 876, 363, 474, 297, 3464, 29898, 1949, 29918, 5325, 4638, 13, 13, 4706, 1962, 353, 8170, 287, 21533, 580, 13, 4706, 363, 474, 29892, 313, 1445, 29918, 1853, 29892, 934, 29918, 2962, 29892, 934, 29918, 9847, 29892, 4516, 978, 29918, 2962, 29892, 10422, 29918, 2962, 29892, 21676, 29897, 297, 26985, 29898, 21720, 29918, 26586, 1125, 13, 9651, 565, 474, 1275, 1667, 29918, 1445, 29901, 13, 18884, 1596, 877, 29032, 1495, 13, 9651, 25947, 29889, 344, 1416, 29898, 978, 29918, 1066, 718, 4516, 978, 29918, 2962, 29897, 13, 9651, 4516, 978, 353, 1303, 29918, 29305, 29918, 4304, 29898, 29888, 333, 29897, 13, 9651, 25947, 29889, 344, 1416, 29898, 978, 29918, 1066, 718, 10422, 29918, 2962, 29897, 13, 9651, 10422, 353, 1303, 29918, 29305, 29918, 4304, 29898, 29888, 333, 29897, 13, 9651, 363, 2944, 297, 6702, 1445, 29918, 1853, 742, 525, 1445, 29918, 2962, 742, 525, 1445, 29918, 9847, 742, 525, 25721, 29918, 2962, 742, 525, 9507, 29918, 2962, 742, 525, 690, 9841, 742, 525, 25721, 742, 525, 9507, 29374, 13, 18884, 1596, 877, 8875, 353, 426, 29991, 29878, 29913, 4286, 4830, 29898, 667, 29892, 19745, 29898, 667, 4961, 13, 9651, 565, 934, 29918, 1853, 1275, 29871, 29900, 29901, 13, 18884, 1018, 29901, 13, 462, 1678, 1962, 29961, 9507, 29962, 353, 1303, 29918, 11093, 29886, 29918, 1445, 29918, 1271, 29898, 29888, 333, 29892, 934, 29918, 2962, 29892, 1024, 29918, 1066, 29897, 13, 18884, 5174, 29901, 13, 462, 1678, 1209, 13, 18884, 565, 1962, 29918, 3972, 29901, 13, 462, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4905, 29918, 3972, 29892, 10422, 511, 525, 29893, 29890, 1495, 408, 714, 29888, 333, 29901, 13, 462, 4706, 25947, 29889, 344, 1416, 29898, 1445, 29918, 2962, 29897, 13, 462, 4706, 2908, 2435, 353, 934, 29918, 9847, 448, 934, 29918, 2962, 13, 462, 4706, 10422, 29918, 1271, 2435, 353, 7431, 29898, 25721, 29897, 718, 7431, 29898, 9507, 29897, 718, 29871, 29941, 13, 462, 4706, 716, 29918, 21720, 29918, 1066, 353, 17714, 3035, 1001, 29918, 14226, 718, 2908, 2435, 718, 10422, 29918, 1271, 2435, 13, 462, 4706, 716, 29918, 978, 29918, 1066, 353, 17714, 3035, 1001, 29918, 14226, 718, 2908, 2435, 13, 462, 4706, 4839, 29918, 1272, 353, 7023, 2378, 29898, 4984, 29889, 4058, 877, 29966, 29945, 29879, 27590, 5287, 742, 3553, 3919, 29902, 3738, 1001, 29892, 29871, 29896, 29892, 29871, 29900, 29892, 716, 29918, 21720, 29918, 1066, 29892, 716, 29918, 978, 29918, 1066, 29892, 10422, 29918, 1271, 2435, 876, 13, 462, 4706, 4839, 29918, 1272, 4619, 289, 12764, 29916, 29900, 29900, 29915, 334, 29871, 29896, 29953, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 6672, 29918, 1272, 29897, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 29890, 12764, 29916, 29900, 29900, 29915, 334, 29871, 29906, 29897, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 4984, 29889, 4058, 877, 29966, 29950, 742, 1423, 2083, 29918, 28667, 29898, 6672, 29918, 1272, 4961, 13, 462, 4706, 934, 29918, 2962, 353, 714, 29888, 333, 29889, 29873, 514, 580, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 29888, 333, 29889, 949, 29898, 1271, 2435, 876, 13, 462, 4706, 934, 29918, 9847, 353, 714, 29888, 333, 29889, 29873, 514, 580, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 29890, 12764, 29916, 29900, 29900, 1495, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 3552, 25721, 718, 11297, 29916, 29900, 29900, 2824, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 3552, 9507, 718, 11297, 29916, 29900, 29900, 2824, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 4984, 29889, 4058, 877, 29966, 29933, 2687, 2687, 742, 934, 29918, 1853, 29892, 934, 29918, 2962, 29892, 934, 29918, 9847, 29892, 29871, 29896, 29892, 29871, 29896, 718, 7431, 29898, 25721, 29897, 718, 29871, 29896, 876, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 29890, 12764, 29916, 29900, 29900, 29915, 334, 29871, 29947, 29897, 13, 9651, 1683, 29901, 13, 18884, 565, 1962, 29918, 3972, 29901, 13, 462, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4905, 29918, 3972, 29892, 10422, 511, 525, 29893, 29890, 1495, 408, 714, 29888, 333, 29901, 13, 462, 4706, 25947, 29889, 344, 1416, 29898, 1445, 29918, 2962, 29897, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 29898, 29888, 333, 29889, 949, 29898, 1445, 29918, 9847, 448, 934, 29918, 2962, 876, 13, 9651, 1596, 580, 13, 13, 4706, 565, 1962, 29918, 3972, 29901, 13, 9651, 363, 10422, 297, 1962, 29901, 13, 18884, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 4905, 29918, 3972, 29892, 2897, 29889, 2084, 29889, 23579, 568, 486, 29898, 9507, 9601, 29900, 2314, 718, 15300, 558, 29887, 742, 525, 29893, 29890, 1495, 408, 714, 29888, 333, 29901, 13, 462, 1678, 28648, 29892, 4413, 353, 1962, 29961, 9507, 29962, 13, 462, 1678, 363, 9580, 297, 28648, 29901, 13, 462, 4706, 565, 451, 9580, 1839, 1990, 29918, 15581, 2033, 29901, 13, 462, 9651, 565, 9580, 1839, 978, 2033, 29901, 13, 462, 18884, 714, 29888, 333, 29889, 3539, 877, 8618, 29907, 3352, 11499, 426, 1012, 29876, 4286, 4830, 29898, 15439, 1839, 978, 2033, 467, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 9651, 714, 29888, 333, 29889, 3539, 29898, 15439, 1839, 401, 13359, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 1678, 363, 1067, 29879, 297, 4413, 29901, 13, 462, 4706, 714, 29888, 333, 29889, 3539, 877, 24405, 8895, 315, 4375, 1799, 6571, 3339, 426, 1012, 29876, 4286, 4830, 29898, 25932, 1839, 978, 7464, 1067, 29879, 1839, 3560, 2033, 467, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 4706, 363, 1196, 297, 1067, 29879, 1839, 401, 13359, 5451, 9012, 29898, 5574, 1125, 13, 462, 9651, 1993, 353, 337, 29889, 4352, 29898, 29878, 29915, 1202, 313, 10892, 891, 24681, 891, 6877, 5696, 9310, 29900, 29899, 29929, 29962, 7528, 742, 1196, 29897, 13, 462, 9651, 565, 1993, 29901, 13, 462, 18884, 4021, 3709, 353, 1993, 29889, 13155, 580, 29961, 29900, 29962, 13, 462, 18884, 9580, 353, 28648, 29961, 524, 29898, 4352, 29889, 13155, 580, 29961, 29896, 2314, 29962, 13, 462, 18884, 714, 29888, 333, 29889, 3539, 877, 8875, 8618, 29907, 3352, 11499, 426, 1012, 29876, 4286, 4830, 29898, 15380, 3709, 29892, 9580, 1839, 978, 2033, 467, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 18884, 714, 29888, 333, 29889, 3539, 29898, 15439, 1839, 401, 13359, 12508, 877, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 8785, 13, 462, 9651, 1683, 29901, 13, 462, 18884, 714, 29888, 333, 29889, 3539, 29898, 1220, 29897, 13, 13, 4706, 363, 10422, 297, 1962, 29901, 13, 9651, 1053, 282, 2158, 13, 9651, 23028, 353, 282, 2158, 29889, 6572, 4349, 4040, 1639, 29898, 19488, 29922, 29896, 29900, 29892, 29536, 29922, 29946, 29897, 13, 9651, 28648, 29892, 4413, 353, 1962, 29961, 9507, 29962, 13, 9651, 23028, 29889, 407, 29878, 524, 29898, 9507, 29897, 13, 9651, 23028, 29889, 407, 29878, 524, 29898, 771, 1133, 1973, 29897, 13, 9651, 23028, 29889, 407, 29878, 524, 29898, 13203, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 285, 26330, 29918, 949, 29898, 9675, 29889, 19218, 29961, 29896, 1402, 10876, 29889, 19218, 29961, 29906, 29962, 565, 7431, 29898, 9675, 29889, 19218, 29897, 1405, 29871, 29906, 1683, 6213, 29897, 13, 2 ]
utils/app.py
dlzcn/MemoryMonitor
0
176569
<reponame>dlzcn/MemoryMonitor #! /usr/bin/env python3 # -*- coding: utf-8 -*- # ****************************************************** # @author: <NAME> - <EMAIL> # @date (created): 2019-06-27 11:31 # @file: app.py # @brief: # @internal: # revision: 8 # last modified: 2019-11-28 15:41:23 # ***************************************************** import os import sys import logging import multiprocessing from typing import Tuple, Union from logging.handlers import QueueHandler, QueueListener, RotatingFileHandler def open_file(filename): if sys.platform == "win32": os.startfile(filename) else: import subprocess opener = "open" if sys.platform == "darwin" else "xdg-open" subprocess.call([opener, filename]) def get_script_path(): return os.path.dirname(os.path.realpath(sys.argv[0])) def get_application_path(): # determine if application is a script file or frozen exe if getattr(sys, 'frozen', False): application_path = os.path.dirname(sys.executable) elif sys.argv[0]: application_path = os.path.dirname(os.path.realpath(sys.argv[0])) elif __file__: application_path = os.path.dirname(__file__) else: application_path = os.getcwd() return application_path class WriteStream(object): """ The new Stream Object which replaces the default stream associated with sys.stdout This object just puts data in a queue! """ def __init__(self, queue): self.queue = queue def write(self, text): self.queue.put(text) def flush(self): return def logger_init_for_worker(q: multiprocessing.Queue): """ Init logger in worker process :param q: multiprocess.Queue """ # all records from worker processes go to qh and then into q qh = QueueHandler(q) logger = logging.getLogger() logger.setLevel(logging.DEBUG) logger.addHandler(qh) def logger_init_main(filename=None, mp=False) -> \ Tuple[Union[QueueListener, None], Union[multiprocessing.Queue, None]]: """ Init logger for current process :param filename: str or None File rotating handler will be used if filename is given. Otherwise stream handler is used :param mp: bool Set Ture if you want to handle logging information in worker process :return: Tuple QueueListner, multiprocessing.Queue """ # this is the handler for all log records if filename is not None: handler = RotatingFileHandler( filename, encoding='utf-8', maxBytes=1 << 22, backupCount=10) else: handler = logging.StreamHandler() if multiprocessing: handler.setFormatter( logging.Formatter( fmt='%(asctime)s %(levelname)-8s: %(process)-6s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S' ) ) else: handler.setFormatter( logging.Formatter( fmt='%(asctime)s %(levelname)-8s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S' ) ) logger = logging.getLogger() logger.setLevel(logging.DEBUG) # add the handler to the logger so records from this process are handled logger.addHandler(handler) if mp: q = multiprocessing.Queue() # ql gets records from the queue and sends them to the handler ql = QueueListener(q, handler) ql.start() return ql, q else: return None, None
[ 1, 529, 276, 1112, 420, 29958, 11671, 29920, 18038, 29914, 16015, 7185, 2105, 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, 334, 7775, 7775, 7775, 2328, 29930, 13, 29937, 308, 732, 8921, 29901, 529, 5813, 29958, 448, 529, 26862, 6227, 29958, 13, 29937, 732, 1256, 313, 11600, 1125, 29871, 29906, 29900, 29896, 29929, 29899, 29900, 29953, 29899, 29906, 29955, 29871, 29896, 29896, 29901, 29941, 29896, 13, 29937, 965, 732, 1445, 29901, 623, 29889, 2272, 13, 29937, 3986, 732, 1182, 2575, 29901, 29871, 13, 29937, 539, 732, 7564, 29901, 29871, 13, 29937, 4706, 26554, 29901, 29871, 29947, 13, 29937, 259, 1833, 9120, 29901, 29871, 29906, 29900, 29896, 29929, 29899, 29896, 29896, 29899, 29906, 29947, 29871, 29896, 29945, 29901, 29946, 29896, 29901, 29906, 29941, 13, 29937, 334, 7775, 7775, 7775, 2328, 13, 13, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 12183, 13, 5215, 6674, 307, 985, 292, 13, 3166, 19229, 1053, 12603, 552, 29892, 7761, 13, 3166, 12183, 29889, 3179, 9306, 1053, 5462, 434, 4598, 29892, 5462, 434, 3962, 29892, 9664, 1218, 2283, 4598, 13, 13, 13, 1753, 1722, 29918, 1445, 29898, 9507, 1125, 13, 1678, 565, 10876, 29889, 12120, 1275, 376, 5080, 29941, 29906, 1115, 13, 4706, 2897, 29889, 2962, 1445, 29898, 9507, 29897, 13, 1678, 1683, 29901, 13, 4706, 1053, 1014, 5014, 13, 4706, 1015, 759, 353, 376, 3150, 29908, 565, 10876, 29889, 12120, 1275, 376, 16702, 5080, 29908, 1683, 376, 29916, 20726, 29899, 3150, 29908, 13, 4706, 1014, 5014, 29889, 4804, 4197, 459, 759, 29892, 10422, 2314, 13, 13, 13, 1753, 679, 29918, 2154, 29918, 2084, 7295, 13, 1678, 736, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 29898, 9675, 29889, 19218, 29961, 29900, 12622, 13, 13, 13, 1753, 679, 29918, 6214, 29918, 2084, 7295, 13, 1678, 396, 8161, 565, 2280, 338, 263, 2471, 934, 470, 14671, 2256, 429, 29872, 13, 1678, 565, 679, 5552, 29898, 9675, 29892, 525, 29888, 307, 2256, 742, 7700, 1125, 13, 4706, 2280, 29918, 2084, 353, 2897, 29889, 2084, 29889, 25721, 29898, 9675, 29889, 4258, 9246, 29897, 13, 1678, 25342, 10876, 29889, 19218, 29961, 29900, 5387, 13, 4706, 2280, 29918, 2084, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 6370, 2084, 29898, 9675, 29889, 19218, 29961, 29900, 12622, 13, 1678, 25342, 4770, 1445, 1649, 29901, 13, 4706, 2280, 29918, 2084, 353, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 29897, 13, 1678, 1683, 29901, 13, 4706, 2280, 29918, 2084, 353, 2897, 29889, 657, 29883, 9970, 580, 13, 13, 1678, 736, 2280, 29918, 2084, 13, 13, 13, 1990, 14350, 3835, 29898, 3318, 1125, 13, 1678, 9995, 450, 716, 13763, 4669, 607, 1634, 6048, 278, 2322, 4840, 6942, 411, 10876, 29889, 25393, 13, 1678, 910, 1203, 925, 15223, 848, 297, 263, 9521, 29991, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9521, 1125, 13, 4706, 1583, 29889, 9990, 353, 9521, 13, 13, 1678, 822, 2436, 29898, 1311, 29892, 1426, 1125, 13, 4706, 1583, 29889, 9990, 29889, 649, 29898, 726, 29897, 13, 13, 1678, 822, 28371, 29898, 1311, 1125, 13, 4706, 736, 13, 13, 13, 1753, 17927, 29918, 2344, 29918, 1454, 29918, 24602, 29898, 29939, 29901, 6674, 307, 985, 292, 29889, 10620, 1125, 13, 1678, 9995, 29871, 10886, 17927, 297, 15645, 1889, 13, 1678, 584, 3207, 3855, 29901, 6674, 307, 985, 29889, 10620, 13, 1678, 9995, 13, 1678, 396, 599, 6475, 515, 15645, 10174, 748, 304, 3855, 29882, 322, 769, 964, 3855, 13, 1678, 3855, 29882, 353, 5462, 434, 4598, 29898, 29939, 29897, 13, 1678, 17927, 353, 12183, 29889, 657, 16363, 580, 13, 1678, 17927, 29889, 842, 10108, 29898, 21027, 29889, 18525, 29897, 13, 1678, 17927, 29889, 1202, 4598, 29898, 29939, 29882, 29897, 13, 13, 13, 1753, 17927, 29918, 2344, 29918, 3396, 29898, 9507, 29922, 8516, 29892, 22326, 29922, 8824, 29897, 1599, 320, 13, 4706, 12603, 552, 29961, 19986, 29961, 10620, 3962, 29892, 6213, 1402, 7761, 29961, 18056, 307, 985, 292, 29889, 10620, 29892, 6213, 5262, 29901, 13, 1678, 9995, 10886, 17927, 363, 1857, 1889, 13, 1678, 584, 3207, 10422, 29901, 851, 470, 6213, 13, 4706, 3497, 5731, 1218, 7834, 674, 367, 1304, 565, 10422, 338, 2183, 29889, 13466, 4840, 7834, 338, 1304, 13, 1678, 584, 3207, 22326, 29901, 6120, 13, 4706, 3789, 323, 545, 565, 366, 864, 304, 4386, 12183, 2472, 297, 15645, 1889, 13, 1678, 584, 2457, 29901, 12603, 552, 13, 4706, 5462, 434, 1293, 1089, 29892, 6674, 307, 985, 292, 29889, 10620, 13, 1678, 9995, 13, 1678, 396, 445, 338, 278, 7834, 363, 599, 1480, 6475, 13, 1678, 565, 10422, 338, 451, 6213, 29901, 13, 4706, 7834, 353, 9664, 1218, 2283, 4598, 29898, 13, 9651, 10422, 29892, 8025, 2433, 9420, 29899, 29947, 742, 4236, 11207, 29922, 29896, 3532, 29871, 29906, 29906, 29892, 16199, 3981, 29922, 29896, 29900, 29897, 13, 1678, 1683, 29901, 13, 4706, 7834, 353, 12183, 29889, 3835, 4598, 580, 13, 1678, 565, 6674, 307, 985, 292, 29901, 13, 4706, 7834, 29889, 842, 18522, 29898, 13, 9651, 12183, 29889, 18522, 29898, 13, 18884, 19200, 2433, 29995, 29898, 294, 312, 603, 29897, 29879, 1273, 29898, 5563, 978, 6817, 29947, 29879, 29901, 1273, 29898, 5014, 6817, 29953, 29879, 448, 1273, 29898, 4906, 29897, 29879, 742, 13, 18884, 2635, 23479, 2433, 29995, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29915, 13, 9651, 1723, 13, 4706, 1723, 13, 1678, 1683, 29901, 13, 4706, 7834, 29889, 842, 18522, 29898, 13, 9651, 12183, 29889, 18522, 29898, 13, 18884, 19200, 2433, 29995, 29898, 294, 312, 603, 29897, 29879, 1273, 29898, 5563, 978, 6817, 29947, 29879, 29901, 1273, 29898, 4906, 29897, 29879, 742, 13, 18884, 2635, 23479, 2433, 29995, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 29915, 13, 9651, 1723, 13, 4706, 1723, 13, 1678, 17927, 353, 12183, 29889, 657, 16363, 580, 13, 1678, 17927, 29889, 842, 10108, 29898, 21027, 29889, 18525, 29897, 13, 1678, 396, 788, 278, 7834, 304, 278, 17927, 577, 6475, 515, 445, 1889, 526, 16459, 13, 1678, 17927, 29889, 1202, 4598, 29898, 13789, 29897, 13, 13, 1678, 565, 22326, 29901, 13, 4706, 3855, 353, 6674, 307, 985, 292, 29889, 10620, 580, 13, 4706, 396, 29871, 1519, 4947, 6475, 515, 278, 9521, 322, 16003, 963, 304, 278, 7834, 13, 308, 1519, 353, 5462, 434, 3962, 29898, 29939, 29892, 7834, 29897, 13, 308, 1519, 29889, 2962, 580, 13, 4706, 736, 29871, 1519, 29892, 3855, 13, 1678, 1683, 29901, 13, 4706, 736, 6213, 29892, 6213, 13, 2 ]
theory/conditionals.py
librity/nc_pyjobs
0
161797
# python3 theory/conditionals.py def plus(a, b): if type(a) is int or type(a) is float: if type(b) is int or type(b) is float: return a + b else: return None else: return None print(plus(1, '10')) def can_drink(age): print(f"You are {age} years old.") if age < 18: print("You can't drink.") elif age == 18 or age == 19: print("Go easy on it cowbow.") elif age > 19 and age < 25: print("Buckle up son.") else: print("Enjoy your drink!") can_drink(17) can_drink(19) can_drink(21) can_drink(25)
[ 1, 396, 3017, 29941, 6368, 29914, 16122, 1338, 29889, 2272, 13, 13, 1753, 2298, 29898, 29874, 29892, 289, 1125, 13, 29871, 565, 1134, 29898, 29874, 29897, 338, 938, 470, 1134, 29898, 29874, 29897, 338, 5785, 29901, 13, 1678, 565, 1134, 29898, 29890, 29897, 338, 938, 470, 1134, 29898, 29890, 29897, 338, 5785, 29901, 13, 418, 736, 263, 718, 289, 13, 1678, 1683, 29901, 13, 418, 736, 6213, 13, 29871, 1683, 29901, 13, 1678, 736, 6213, 13, 13, 13, 2158, 29898, 11242, 29898, 29896, 29892, 525, 29896, 29900, 8785, 13, 13, 13, 1753, 508, 29918, 7707, 682, 29898, 482, 1125, 13, 29871, 1596, 29898, 29888, 29908, 3492, 526, 426, 482, 29913, 2440, 2030, 23157, 13, 13, 29871, 565, 5046, 529, 29871, 29896, 29947, 29901, 13, 1678, 1596, 703, 3492, 508, 29915, 29873, 13748, 23157, 13, 29871, 25342, 5046, 1275, 29871, 29896, 29947, 470, 5046, 1275, 29871, 29896, 29929, 29901, 13, 1678, 1596, 703, 8120, 4780, 373, 372, 21282, 17729, 23157, 13, 29871, 25342, 5046, 1405, 29871, 29896, 29929, 322, 5046, 529, 29871, 29906, 29945, 29901, 13, 1678, 1596, 703, 29933, 2707, 280, 701, 1487, 23157, 13, 29871, 1683, 29901, 13, 1678, 1596, 703, 2369, 2212, 29891, 596, 13748, 29991, 1159, 13, 13, 13, 3068, 29918, 7707, 682, 29898, 29896, 29955, 29897, 13, 3068, 29918, 7707, 682, 29898, 29896, 29929, 29897, 13, 3068, 29918, 7707, 682, 29898, 29906, 29896, 29897, 13, 3068, 29918, 7707, 682, 29898, 29906, 29945, 29897, 13, 2 ]
gamesystem.py
cristilianojr/JOKENPOH
1
9454
<reponame>cristilianojr/JOKENPOH import random from tkinter import PhotoImage """ Esse arquivo define os estados do game """ def ia_chocer(): """IA faz a escolha de um numero aleatório""" posibility = ['rock', 'paper', 'scissor'] value = posibility[random.randint(0, 2)] return value def battle_verification(player_choice, ia_choice): state_victoryorlose = '' if player_choice == 'rock': if ia_choice == 'rock': state_victoryorlose = 'draw' elif ia_choice == 'scissor': state_victoryorlose = 'victory' elif ia_choice == 'paper': state_victoryorlose = 'defeat' elif player_choice == 'scissor': if ia_choice == 'rock': state_victoryorlose = 'defeat' elif ia_choice == 'scissor': state_victoryorlose = 'draw' elif ia_choice == 'paper': state_victoryorlose = 'victory' elif player_choice == 'paper': if ia_choice == 'rock': state_victoryorlose = 'victory' elif ia_choice == 'scissor': state_victoryorlose = 'defeat' elif ia_choice == 'paper': state_victoryorlose = 'draw' return state_victoryorlose
[ 1, 529, 276, 1112, 420, 29958, 29883, 2021, 309, 3328, 29926, 29878, 29914, 29967, 8949, 1430, 13152, 29950, 13, 5215, 4036, 13, 3166, 18883, 1639, 1053, 1963, 3747, 2940, 13, 13, 13, 15945, 29908, 13, 14190, 344, 19325, 4243, 4529, 2897, 707, 2255, 437, 3748, 13, 13, 15945, 29908, 13, 13, 13, 1753, 29871, 423, 29918, 305, 542, 261, 7295, 13, 1678, 9995, 10764, 16928, 263, 25224, 2350, 316, 1922, 17910, 8080, 20062, 5378, 15945, 29908, 13, 1678, 926, 4127, 353, 6024, 20821, 742, 525, 19773, 742, 525, 1557, 790, 272, 2033, 13, 1678, 995, 353, 926, 4127, 29961, 8172, 29889, 9502, 524, 29898, 29900, 29892, 29871, 29906, 4638, 13, 1678, 736, 995, 13, 13, 1753, 10555, 29918, 369, 2450, 29898, 9106, 29918, 16957, 29892, 29871, 423, 29918, 16957, 1125, 13, 1678, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 6629, 13, 1678, 565, 4847, 29918, 16957, 1275, 525, 20821, 2396, 13, 4706, 565, 29871, 423, 29918, 16957, 1275, 525, 20821, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 4012, 29915, 13, 4706, 25342, 29871, 423, 29918, 16957, 1275, 525, 1557, 790, 272, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 29894, 919, 706, 29915, 13, 4706, 25342, 29871, 423, 29918, 16957, 1275, 525, 19773, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 311, 1725, 271, 29915, 13, 1678, 25342, 4847, 29918, 16957, 1275, 525, 1557, 790, 272, 2396, 13, 4706, 565, 29871, 423, 29918, 16957, 1275, 525, 20821, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 311, 1725, 271, 29915, 13, 4706, 25342, 29871, 423, 29918, 16957, 1275, 525, 1557, 790, 272, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 4012, 29915, 13, 4706, 25342, 29871, 423, 29918, 16957, 1275, 525, 19773, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 29894, 919, 706, 29915, 13, 1678, 25342, 4847, 29918, 16957, 1275, 525, 19773, 2396, 13, 4706, 565, 29871, 423, 29918, 16957, 1275, 525, 20821, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 29894, 919, 706, 29915, 13, 4706, 25342, 29871, 423, 29918, 16957, 1275, 525, 1557, 790, 272, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 311, 1725, 271, 29915, 13, 4706, 25342, 29871, 423, 29918, 16957, 1275, 525, 19773, 2396, 13, 9651, 2106, 29918, 29894, 919, 706, 272, 2226, 353, 525, 4012, 29915, 13, 1678, 736, 2106, 29918, 29894, 919, 706, 272, 2226, 29871, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 2 ]
conda/core/link.py
astrojuanlu/conda
0
76814
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from collections import defaultdict from logging import getLogger import os from os.path import join from subprocess import CalledProcessError, check_call import sys from traceback import format_exc import warnings from .linked_data import (get_python_version_for_prefix, linked_data as get_linked_data, load_meta) from .package_cache import PackageCache from .path_actions import (CompilePycAction, CreateApplicationEntryPointAction, CreateLinkedPackageRecordAction, CreatePrivateEnvMetaAction, CreatePythonEntryPointAction, LinkPathAction, MakeMenuAction, RemoveLinkedPackageRecordAction, RemoveMenuAction, RemovePrivateEnvMetaAction, UnlinkPathAction) from .. import CondaMultiError from .._vendor.auxlib.collection import first from .._vendor.auxlib.ish import dals from ..base.context import context from ..common.compat import iteritems, itervalues, on_win, text_type from ..common.path import (explode_directories, get_all_directories, get_bin_directory_short_path, get_major_minor_version, get_python_site_packages_short_path) from ..exceptions import (KnownPackageClobberError, SharedLinkPathClobberError, UnknownPackageClobberError, maybe_raise) from ..gateways.disk.delete import rm_rf from ..gateways.disk.read import isfile, lexists, read_package_info from ..gateways.disk.test import hardlink_supported, softlink_supported from ..models.dist import Dist from ..models.enums import LinkType try: from cytoolz.itertoolz import concat, concatv, groupby except ImportError: from .._vendor.toolz.itertoolz import concat, concatv, groupby # NOQA log = getLogger(__name__) def determine_link_type(extracted_package_dir, target_prefix): source_test_file = join(extracted_package_dir, 'info', 'index.json') if context.always_copy: return LinkType.copy if context.always_softlink: return LinkType.softlink if hardlink_supported(source_test_file, target_prefix): return LinkType.hardlink if context.allow_softlinks and softlink_supported(source_test_file, target_prefix): return LinkType.softlink return LinkType.copy def make_unlink_actions(transaction_context, target_prefix, linked_package_data): # no side effects in this function! unlink_path_actions = tuple(UnlinkPathAction(transaction_context, linked_package_data, target_prefix, trgt) for trgt in linked_package_data.files) remove_menu_actions = RemoveMenuAction.create_actions(transaction_context, linked_package_data, target_prefix) meta_short_path = '%s/%s' % ('conda-meta', Dist(linked_package_data).to_filename('.json')) remove_conda_meta_actions = (RemoveLinkedPackageRecordAction(transaction_context, linked_package_data, target_prefix, meta_short_path),) _all_d = get_all_directories(axn.target_short_path for axn in unlink_path_actions) all_directories = sorted(explode_directories(_all_d, already_split=True), reverse=True) directory_remove_actions = tuple(UnlinkPathAction(transaction_context, linked_package_data, target_prefix, d, LinkType.directory) for d in all_directories) if linked_package_data.preferred_env is not None: app_entry_point_short_path = os.path.join(get_bin_directory_short_path(), linked_package_data.name) unlink_app_entry_point = UnlinkPathAction(transaction_context, linked_package_data, context.root_prefix, app_entry_point_short_path), unlink_path_actions = unlink_path_actions + unlink_app_entry_point private_envs_meta_action = RemovePrivateEnvMetaAction( transaction_context, linked_package_data, target_prefix), else: private_envs_meta_action = () return tuple(concatv( remove_menu_actions, unlink_path_actions, directory_remove_actions, private_envs_meta_action, remove_conda_meta_actions, )) class UnlinkLinkTransaction(object): @classmethod def create_from_dists(cls, index, target_prefix, unlink_dists, link_dists): # This constructor method helps to patch into the 'plan' framework linked_packages_data_to_unlink = tuple(load_meta(target_prefix, dist) for dist in unlink_dists) log.debug("instantiating UnlinkLinkTransaction with\n" " target_prefix: %s\n" " unlink_dists:\n" " %s\n" " link_dists:\n" " %s\n", target_prefix, '\n '.join(text_type(d) for d in unlink_dists), '\n '.join(text_type(d) for d in link_dists)) pkg_dirs_to_link = tuple(PackageCache[dist].extracted_package_dir for dist in link_dists) assert all(pkg_dirs_to_link) packages_info_to_link = tuple(read_package_info(index[dist], pkg_dir) for dist, pkg_dir in zip(link_dists, pkg_dirs_to_link)) return UnlinkLinkTransaction(target_prefix, linked_packages_data_to_unlink, packages_info_to_link) def __init__(self, target_prefix, linked_packages_data_to_unlink, packages_info_to_link): # type: (str, Sequence[Dist], Sequence[PackageInfo]) -> NoneType # order of unlink_dists and link_dists will be preserved throughout # should be given in dependency-sorted order self.target_prefix = target_prefix self.linked_packages_data_to_unlink = linked_packages_data_to_unlink self.packages_info_to_link = packages_info_to_link self._prepared = False self._verified = False def prepare(self): if self._prepared: return # gather information from disk and caches self.prefix_linked_data = get_linked_data(self.target_prefix) link_types = tuple(determine_link_type(pkg_info.extracted_package_dir, self.target_prefix) for pkg_info in self.packages_info_to_link) # make all the path actions # no side effects allowed when instantiating these action objects transaction_context = dict() python_version = self.get_python_version(self.target_prefix, self.linked_packages_data_to_unlink, self.packages_info_to_link) transaction_context['target_python_version'] = python_version sp = get_python_site_packages_short_path(python_version) transaction_context['target_site_packages_short_path'] = sp unlink_actions = tuple((lnkd_pkg_data, make_unlink_actions(transaction_context, self.target_prefix, lnkd_pkg_data)) for lnkd_pkg_data in self.linked_packages_data_to_unlink) link_actions = ( (pkg_info, self.make_link_actions(transaction_context, pkg_info, self.target_prefix, lt)) for pkg_info, lt in zip(self.packages_info_to_link, link_types) ) self.all_actions = tuple(per_pkg_actions for per_pkg_actions in concatv(unlink_actions, link_actions)) # type: Tuple[pkg_data, Tuple[PathAction]] self.num_unlink_pkgs = len(unlink_actions) self._prepared = True @staticmethod def _verify_individual_level(all_actions): # run all per-action verify methods # one of the more important of these checks is to verify that a file listed in # the packages manifest (i.e. info/files) is actually contained within the package for _, pkg_actions in all_actions: for axn in pkg_actions: if axn.verified: continue error_result = axn.verify() if error_result: log.debug("Verification error in action %s", axn) log.debug(format_exc()) yield error_result @staticmethod def _verify_transaction_level(target_prefix, all_actions, num_unlink_pkgs): # further verification of the whole transaction # for each path we are creating in link_actions, we need to make sure # 1. each path either doesn't already exist in the prefix, or will be unlinked # 2. there's only a single instance of each path # paths are case-insensitive on windows apparently lower_on_win = lambda p: p.lower() if on_win else p unlink_paths = set(lower_on_win(axn.target_short_path) for _, pkg_actions in all_actions[:num_unlink_pkgs] for axn in pkg_actions if isinstance(axn, UnlinkPathAction)) # we can get all of the paths being linked by looking only at the # CreateLinkedPackageRecordAction actions create_lpr_actions = (axn for _, pkg_actions in all_actions[num_unlink_pkgs:] for axn in pkg_actions if isinstance(axn, CreateLinkedPackageRecordAction)) link_paths_dict = defaultdict(list) for axn in create_lpr_actions: for path in axn.linked_package_record.files: path = lower_on_win(path) link_paths_dict[path].append(axn) if path not in unlink_paths and lexists(join(target_prefix, path)): # we have a collision; at least try to figure out where it came from linked_data = get_linked_data(target_prefix) colliding_linked_package_record = first( (lpr for lpr in itervalues(linked_data)), key=lambda lpr: path in lpr.files ) if colliding_linked_package_record: yield KnownPackageClobberError(Dist(axn.linked_package_record), path, Dist(colliding_linked_package_record), context) else: yield UnknownPackageClobberError(Dist(axn.linked_package_record), path, context) for path, axns in iteritems(link_paths_dict): if len(axns) > 1: yield SharedLinkPathClobberError( path, tuple(Dist(axn.linked_package_record) for axn in axns), context ) def verify(self): if not self._prepared: self.prepare() exceptions = tuple(exc for exc in concatv( self._verify_individual_level(self.all_actions), self._verify_transaction_level(self.target_prefix, self.all_actions, self.num_unlink_pkgs), ) if exc) if exceptions: maybe_raise(CondaMultiError(exceptions), context) else: log.info(exceptions) self._verified = True def execute(self): if not self._verified: self.verify() pkg_idx = 0 try: for pkg_idx, (pkg_data, actions) in enumerate(self.all_actions): self._execute_actions(self.target_prefix, self.num_unlink_pkgs, pkg_idx, pkg_data, actions) except Exception as execute_multi_exc: # reverse all executed packages except the one that failed rollback_excs = [] if context.rollback_enabled: failed_pkg_idx = pkg_idx reverse_actions = self.all_actions[:failed_pkg_idx] for pkg_idx, (pkg_data, actions) in reversed(tuple(enumerate(reverse_actions))): excs = self._reverse_actions(self.target_prefix, self.num_unlink_pkgs, pkg_idx, pkg_data, actions) rollback_excs.extend(excs) raise CondaMultiError(tuple(concatv( (execute_multi_exc.errors if isinstance(execute_multi_exc, CondaMultiError) else (execute_multi_exc,)), rollback_excs, ))) else: for pkg_idx, (pkg_data, actions) in enumerate(self.all_actions): for axn_idx, action in enumerate(actions): action.cleanup() @staticmethod def _execute_actions(target_prefix, num_unlink_pkgs, pkg_idx, pkg_data, actions): axn_idx, action, is_unlink = 0, None, True try: dist = Dist(pkg_data) is_unlink = pkg_idx <= num_unlink_pkgs - 1 if is_unlink: log.info("===> UNLINKING PACKAGE: %s <===\n" " prefix=%s\n", dist, target_prefix) else: log.info("===> LINKING PACKAGE: %s <===\n" " prefix=%s\n" " source=%s\n", dist, target_prefix, pkg_data.extracted_package_dir) run_script(target_prefix if is_unlink else pkg_data.extracted_package_dir, Dist(pkg_data), 'pre-unlink' if is_unlink else 'pre-link', target_prefix if is_unlink else None) for axn_idx, action in enumerate(actions): action.execute() run_script(target_prefix, Dist(pkg_data), 'post-unlink' if is_unlink else 'post-link') except Exception as e: # this won't be a multi error # reverse this package log.debug("Error in action #%d for pkg_idx #%d %r", axn_idx, pkg_idx, action) log.debug(format_exc()) reverse_excs = () if context.rollback_enabled: log.error("An error occurred while %s package '%s'.\n" "%r\n" "Attempting to roll back.\n", 'uninstalling' if is_unlink else 'installing', Dist(pkg_data), e) reverse_excs = UnlinkLinkTransaction._reverse_actions( target_prefix, num_unlink_pkgs, pkg_idx, pkg_data, actions, reverse_from_idx=axn_idx ) raise CondaMultiError(tuple(concatv( (e,), reverse_excs, ))) @staticmethod def _reverse_actions(target_prefix, num_unlink_pkgs, pkg_idx, pkg_data, actions, reverse_from_idx=-1): # reverse_from_idx = -1 means reverse all actions dist = Dist(pkg_data) is_unlink = pkg_idx <= num_unlink_pkgs - 1 if is_unlink: log.info("===> REVERSING PACKAGE UNLINK: %s <===\n" " prefix=%s\n", dist, target_prefix) else: log.info("===> REVERSING PACKAGE LINK: %s <===\n" " prefix=%s\n", dist, target_prefix) log.debug("reversing pkg_idx #%d from axn_idx #%d", pkg_idx, reverse_from_idx) exceptions = [] reverse_actions = actions if reverse_from_idx < 0 else actions[:reverse_from_idx+1] for axn_idx, action in reversed(tuple(enumerate(reverse_actions))): try: action.reverse() except Exception as e: log.debug("action.reverse() error in action #%d for pkg_idx #%d %r", axn_idx, pkg_idx, action) log.debug(format_exc()) exceptions.append(e) return exceptions @staticmethod def get_python_version(target_prefix, linked_packages_data_to_unlink, packages_info_to_link): # this method determines the python version that will be present at the # end of the transaction linking_new_python = next((package_info for package_info in packages_info_to_link if package_info.index_json_record.name == 'python'), None) if linking_new_python: # is python being linked? we're done full_version = linking_new_python.index_json_record.version assert full_version return get_major_minor_version(full_version) # is python already linked and not being unlinked? that's ok too linked_python_version = get_python_version_for_prefix(target_prefix) if linked_python_version: find_python = (lnkd_pkg_data for lnkd_pkg_data in linked_packages_data_to_unlink if lnkd_pkg_data.name == 'python') unlinking_this_python = next(find_python, None) if unlinking_this_python is None: # python is not being unlinked return linked_python_version # there won't be any python in the finished environment return None @staticmethod def make_link_actions(transaction_context, package_info, target_prefix, requested_link_type): required_quad = transaction_context, package_info, target_prefix, requested_link_type file_link_actions = LinkPathAction.create_file_link_actions(*required_quad) create_directory_actions = LinkPathAction.create_directory_actions( *required_quad, file_link_actions=file_link_actions ) create_menu_actions = MakeMenuAction.create_actions(*required_quad) python_entry_point_actions = CreatePythonEntryPointAction.create_actions(*required_quad) compile_pyc_actions = CompilePycAction.create_actions(*required_quad, file_link_actions=file_link_actions) application_entry_point_actions = CreateApplicationEntryPointAction.create_actions( *required_quad ) private_envs_meta_actions = CreatePrivateEnvMetaAction.create_actions(*required_quad) all_target_short_paths = tuple(axn.target_short_path for axn in concatv( file_link_actions, python_entry_point_actions, compile_pyc_actions, application_entry_point_actions, )) meta_create_actions = CreateLinkedPackageRecordAction.create_actions( *required_quad, all_target_short_paths=all_target_short_paths ) # the ordering here is significant return tuple(concatv( meta_create_actions, create_directory_actions, file_link_actions, python_entry_point_actions, compile_pyc_actions, create_menu_actions, application_entry_point_actions, private_envs_meta_actions, )) def run_script(prefix, dist, action='post-link', env_prefix=None): """ call the post-link (or pre-unlink) script, and return True on success, False on failure """ path = join(prefix, 'Scripts' if on_win else 'bin', '.%s-%s.%s' % (dist.name, action, 'bat' if on_win else 'sh')) if not isfile(path): return True env = os.environ.copy() if action == 'pre-link': env[str('SOURCE_DIR')] = str(prefix) warnings.warn(dals(""" Package %s uses a pre-link script. Pre-link scripts are potentially dangerous. This is because pre-link scripts have the ability to change the package contents in the package cache, and therefore modify the underlying files for already-created conda environments. Future versions of conda may deprecate and ignore pre-link scripts. """ % dist)) if on_win: try: command_args = [os.environ['COMSPEC'], '/c', path] except KeyError: return False else: shell_path = '/bin/sh' if 'bsd' in sys.platform else '/bin/bash' command_args = [shell_path, path] env[str('ROOT_PREFIX')] = sys.prefix env[str('PREFIX')] = str(env_prefix or prefix) env[str('PKG_NAME')] = str(dist.name) env[str('PKG_VERSION')] = str(dist.version) env[str('PKG_BUILDNUM')] = str(dist.build_number) try: log.debug("for %s at %s, executing script: $ %s", dist, env[str('PREFIX')], ' '.join(command_args)) return _run_script(command_args, env) finally: messages(prefix) def _run_script(command_args, env): try: check_call(command_args, env=env) except CalledProcessError: return False else: return True def messages(prefix): path = join(prefix, '.messages.txt') if isfile(path): with open(path) as fi: fh = sys.stderr if context.json else sys.stdout fh.write(fi.read()) rm_rf(path)
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 29892, 29104, 29918, 20889, 1338, 13, 13, 3166, 16250, 1053, 2322, 8977, 13, 3166, 12183, 1053, 679, 16363, 13, 5215, 2897, 13, 3166, 2897, 29889, 2084, 1053, 5988, 13, 3166, 1014, 5014, 1053, 3037, 839, 7032, 2392, 29892, 1423, 29918, 4804, 13, 5215, 10876, 13, 3166, 9637, 1627, 1053, 3402, 29918, 735, 29883, 13, 5215, 18116, 13, 13, 3166, 869, 2324, 287, 29918, 1272, 1053, 313, 657, 29918, 4691, 29918, 3259, 29918, 1454, 29918, 13506, 29892, 9024, 29918, 1272, 408, 679, 29918, 2324, 287, 29918, 1272, 29892, 13, 462, 3986, 2254, 29918, 7299, 29897, 13, 3166, 869, 5113, 29918, 8173, 1053, 22029, 10408, 13, 3166, 869, 2084, 29918, 7387, 1053, 313, 6843, 488, 29925, 11078, 4276, 29892, 6204, 4873, 9634, 5228, 4276, 29892, 13, 462, 965, 6204, 6595, 287, 14459, 9182, 4276, 29892, 6204, 25207, 21745, 19346, 4276, 29892, 13, 462, 965, 6204, 11980, 9634, 5228, 4276, 29892, 6645, 2605, 4276, 29892, 8561, 6823, 4276, 29892, 13, 462, 965, 15154, 6595, 287, 14459, 9182, 4276, 29892, 15154, 6823, 4276, 29892, 13, 462, 965, 15154, 25207, 21745, 19346, 4276, 29892, 853, 2324, 2605, 4276, 29897, 13, 3166, 6317, 1053, 11790, 29874, 15329, 2392, 13, 3166, 6317, 29918, 19167, 29889, 2993, 1982, 29889, 10855, 1053, 937, 13, 3166, 6317, 29918, 19167, 29889, 2993, 1982, 29889, 728, 1053, 270, 1338, 13, 3166, 6317, 3188, 29889, 4703, 1053, 3030, 13, 3166, 6317, 9435, 29889, 12667, 1053, 4256, 7076, 29892, 4256, 5975, 29892, 373, 29918, 5080, 29892, 1426, 29918, 1853, 13, 3166, 6317, 9435, 29889, 2084, 1053, 313, 24516, 356, 29918, 11851, 3842, 29892, 679, 29918, 497, 29918, 11851, 3842, 29892, 679, 29918, 2109, 29918, 12322, 29918, 12759, 29918, 2084, 29892, 13, 462, 965, 679, 29918, 21355, 29918, 1195, 272, 29918, 3259, 29892, 13, 462, 965, 679, 29918, 4691, 29918, 2746, 29918, 8318, 29918, 12759, 29918, 2084, 29897, 13, 3166, 6317, 11739, 29879, 1053, 313, 29968, 21369, 14459, 29907, 2127, 495, 2392, 29892, 21236, 6595, 2605, 29907, 2127, 495, 2392, 29892, 13, 462, 3986, 853, 5203, 14459, 29907, 2127, 495, 2392, 29892, 5505, 29918, 22692, 29897, 13, 3166, 6317, 17062, 1994, 29889, 20960, 29889, 8143, 1053, 20241, 29918, 9600, 13, 3166, 6317, 17062, 1994, 29889, 20960, 29889, 949, 1053, 338, 1445, 29892, 19566, 2879, 29892, 1303, 29918, 5113, 29918, 3888, 13, 3166, 6317, 17062, 1994, 29889, 20960, 29889, 1688, 1053, 2898, 2324, 29918, 23765, 29892, 4964, 2324, 29918, 23765, 13, 3166, 6317, 9794, 29889, 5721, 1053, 6652, 13, 3166, 6317, 9794, 29889, 264, 6762, 1053, 6645, 1542, 13, 13, 2202, 29901, 13, 1678, 515, 5094, 10154, 29920, 29889, 1524, 10154, 29920, 1053, 3022, 271, 29892, 3022, 271, 29894, 29892, 2318, 1609, 13, 19499, 16032, 2392, 29901, 13, 1678, 515, 6317, 29918, 19167, 29889, 10154, 29920, 29889, 1524, 10154, 29920, 1053, 3022, 271, 29892, 3022, 271, 29894, 29892, 2318, 1609, 29871, 396, 11698, 29984, 29909, 13, 13, 1188, 353, 679, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 1753, 8161, 29918, 2324, 29918, 1853, 29898, 21111, 287, 29918, 5113, 29918, 3972, 29892, 3646, 29918, 13506, 1125, 13, 1678, 2752, 29918, 1688, 29918, 1445, 353, 5988, 29898, 21111, 287, 29918, 5113, 29918, 3972, 29892, 525, 3888, 742, 525, 2248, 29889, 3126, 1495, 13, 1678, 565, 3030, 29889, 21936, 29918, 8552, 29901, 13, 4706, 736, 6645, 1542, 29889, 8552, 13, 1678, 565, 3030, 29889, 21936, 29918, 2695, 2324, 29901, 13, 4706, 736, 6645, 1542, 29889, 2695, 2324, 13, 1678, 565, 2898, 2324, 29918, 23765, 29898, 4993, 29918, 1688, 29918, 1445, 29892, 3646, 29918, 13506, 1125, 13, 4706, 736, 6645, 1542, 29889, 6800, 2324, 13, 1678, 565, 3030, 29889, 9536, 29918, 2695, 4965, 322, 4964, 2324, 29918, 23765, 29898, 4993, 29918, 1688, 29918, 1445, 29892, 3646, 29918, 13506, 1125, 13, 4706, 736, 6645, 1542, 29889, 2695, 2324, 13, 1678, 736, 6645, 1542, 29889, 8552, 13, 13, 13, 1753, 1207, 29918, 348, 2324, 29918, 7387, 29898, 20736, 29918, 4703, 29892, 3646, 29918, 13506, 29892, 9024, 29918, 5113, 29918, 1272, 1125, 13, 1678, 396, 694, 2625, 9545, 297, 445, 740, 29991, 13, 1678, 443, 2324, 29918, 2084, 29918, 7387, 353, 18761, 29898, 2525, 2324, 2605, 4276, 29898, 20736, 29918, 4703, 29892, 9024, 29918, 5113, 29918, 1272, 29892, 13, 462, 462, 462, 3646, 29918, 13506, 29892, 534, 4141, 29897, 13, 462, 18884, 363, 534, 4141, 297, 9024, 29918, 5113, 29918, 1272, 29889, 5325, 29897, 13, 13, 1678, 3349, 29918, 6510, 29918, 7387, 353, 15154, 6823, 4276, 29889, 3258, 29918, 7387, 29898, 20736, 29918, 4703, 29892, 13, 462, 462, 462, 3986, 9024, 29918, 5113, 29918, 1272, 29892, 13, 462, 462, 462, 3986, 3646, 29918, 13506, 29897, 13, 13, 1678, 12700, 29918, 12759, 29918, 2084, 353, 14210, 29879, 22584, 29879, 29915, 1273, 6702, 18050, 29899, 7299, 742, 6652, 29898, 2324, 287, 29918, 5113, 29918, 1272, 467, 517, 29918, 9507, 12839, 3126, 8785, 13, 1678, 3349, 29918, 18050, 29918, 7299, 29918, 7387, 353, 313, 15941, 6595, 287, 14459, 9182, 4276, 29898, 20736, 29918, 4703, 29892, 13, 462, 462, 462, 462, 9024, 29918, 5113, 29918, 1272, 29892, 13, 462, 462, 462, 462, 3646, 29918, 13506, 29892, 12700, 29918, 12759, 29918, 2084, 511, 29897, 13, 13, 1678, 903, 497, 29918, 29881, 353, 679, 29918, 497, 29918, 11851, 3842, 29898, 1165, 29876, 29889, 5182, 29918, 12759, 29918, 2084, 363, 4853, 29876, 297, 443, 2324, 29918, 2084, 29918, 7387, 29897, 13, 1678, 599, 29918, 11851, 3842, 353, 12705, 29898, 24516, 356, 29918, 11851, 3842, 7373, 497, 29918, 29881, 29892, 2307, 29918, 5451, 29922, 5574, 511, 11837, 29922, 5574, 29897, 13, 1678, 3884, 29918, 5992, 29918, 7387, 353, 18761, 29898, 2525, 2324, 2605, 4276, 29898, 20736, 29918, 4703, 29892, 9024, 29918, 5113, 29918, 1272, 29892, 13, 462, 462, 462, 418, 3646, 29918, 13506, 29892, 270, 29892, 6645, 1542, 29889, 12322, 29897, 13, 462, 462, 268, 363, 270, 297, 599, 29918, 11851, 3842, 29897, 13, 13, 1678, 565, 9024, 29918, 5113, 29918, 1272, 29889, 1457, 14373, 29918, 6272, 338, 451, 6213, 29901, 13, 4706, 623, 29918, 8269, 29918, 3149, 29918, 12759, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 657, 29918, 2109, 29918, 12322, 29918, 12759, 29918, 2084, 3285, 13, 462, 462, 462, 29871, 9024, 29918, 5113, 29918, 1272, 29889, 978, 29897, 13, 4706, 443, 2324, 29918, 932, 29918, 8269, 29918, 3149, 353, 853, 2324, 2605, 4276, 29898, 20736, 29918, 4703, 29892, 9024, 29918, 5113, 29918, 1272, 29892, 13, 462, 462, 462, 29871, 3030, 29889, 4632, 29918, 13506, 29892, 623, 29918, 8269, 29918, 3149, 29918, 12759, 29918, 2084, 511, 13, 4706, 443, 2324, 29918, 2084, 29918, 7387, 353, 443, 2324, 29918, 2084, 29918, 7387, 718, 443, 2324, 29918, 932, 29918, 8269, 29918, 3149, 13, 4706, 2024, 29918, 264, 4270, 29918, 7299, 29918, 2467, 353, 15154, 25207, 21745, 19346, 4276, 29898, 13, 9651, 10804, 29918, 4703, 29892, 9024, 29918, 5113, 29918, 1272, 29892, 3646, 29918, 13506, 511, 13, 1678, 1683, 29901, 13, 4706, 2024, 29918, 264, 4270, 29918, 7299, 29918, 2467, 353, 3861, 13, 13, 1678, 736, 18761, 29898, 17685, 29894, 29898, 13, 4706, 3349, 29918, 6510, 29918, 7387, 29892, 13, 4706, 443, 2324, 29918, 2084, 29918, 7387, 29892, 13, 4706, 3884, 29918, 5992, 29918, 7387, 29892, 13, 4706, 2024, 29918, 264, 4270, 29918, 7299, 29918, 2467, 29892, 13, 4706, 3349, 29918, 18050, 29918, 7299, 29918, 7387, 29892, 13, 268, 876, 13, 13, 13, 1990, 853, 2324, 6595, 12460, 29898, 3318, 1125, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 1653, 29918, 3166, 29918, 29881, 2879, 29898, 25932, 29892, 2380, 29892, 3646, 29918, 13506, 29892, 443, 2324, 29918, 29881, 2879, 29892, 1544, 29918, 29881, 2879, 1125, 13, 4706, 396, 910, 5823, 1158, 6911, 304, 13261, 964, 278, 525, 9018, 29915, 6890, 13, 4706, 9024, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 353, 18761, 29898, 1359, 29918, 7299, 29898, 5182, 29918, 13506, 29892, 1320, 29897, 13, 462, 462, 1669, 363, 1320, 297, 443, 2324, 29918, 29881, 2879, 29897, 13, 13, 4706, 1480, 29889, 8382, 703, 2611, 3656, 1218, 853, 2324, 6595, 12460, 411, 29905, 29876, 29908, 13, 462, 29871, 376, 29871, 3646, 29918, 13506, 29901, 1273, 29879, 29905, 29876, 29908, 13, 462, 29871, 376, 29871, 443, 2324, 29918, 29881, 2879, 3583, 29876, 29908, 13, 462, 29871, 376, 1678, 1273, 29879, 29905, 29876, 29908, 13, 462, 29871, 376, 29871, 1544, 29918, 29881, 2879, 3583, 29876, 29908, 13, 462, 29871, 376, 1678, 1273, 29879, 29905, 29876, 613, 13, 462, 29871, 3646, 29918, 13506, 29892, 13, 462, 29871, 11297, 29876, 1678, 15300, 7122, 29898, 726, 29918, 1853, 29898, 29881, 29897, 363, 270, 297, 443, 2324, 29918, 29881, 2879, 511, 13, 462, 29871, 11297, 29876, 1678, 15300, 7122, 29898, 726, 29918, 1853, 29898, 29881, 29897, 363, 270, 297, 1544, 29918, 29881, 2879, 876, 13, 13, 4706, 282, 9415, 29918, 3972, 29879, 29918, 517, 29918, 2324, 353, 18761, 29898, 14459, 10408, 29961, 5721, 1822, 21111, 287, 29918, 5113, 29918, 3972, 363, 1320, 297, 1544, 29918, 29881, 2879, 29897, 13, 4706, 4974, 599, 29898, 15865, 29918, 3972, 29879, 29918, 517, 29918, 2324, 29897, 13, 4706, 9741, 29918, 3888, 29918, 517, 29918, 2324, 353, 18761, 29898, 949, 29918, 5113, 29918, 3888, 29898, 2248, 29961, 5721, 1402, 282, 9415, 29918, 3972, 29897, 13, 462, 462, 418, 363, 1320, 29892, 282, 9415, 29918, 3972, 297, 14319, 29898, 2324, 29918, 29881, 2879, 29892, 282, 9415, 29918, 3972, 29879, 29918, 517, 29918, 2324, 876, 13, 13, 4706, 736, 853, 2324, 6595, 12460, 29898, 5182, 29918, 13506, 29892, 9024, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 29892, 13, 462, 462, 268, 9741, 29918, 3888, 29918, 517, 29918, 2324, 29897, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 29918, 13506, 29892, 9024, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 29892, 9741, 29918, 3888, 29918, 517, 29918, 2324, 1125, 13, 4706, 396, 1134, 29901, 313, 710, 29892, 922, 3910, 29961, 13398, 1402, 922, 3910, 29961, 14459, 3401, 2314, 1599, 6213, 1542, 13, 4706, 396, 1797, 310, 443, 2324, 29918, 29881, 2879, 322, 1544, 29918, 29881, 2879, 674, 367, 21634, 10106, 13, 4706, 396, 259, 881, 367, 2183, 297, 10609, 29899, 24582, 1797, 13, 13, 4706, 1583, 29889, 5182, 29918, 13506, 353, 3646, 29918, 13506, 13, 4706, 1583, 29889, 2324, 287, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 353, 9024, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 13, 4706, 1583, 29889, 8318, 29918, 3888, 29918, 517, 29918, 2324, 353, 9741, 29918, 3888, 29918, 517, 29918, 2324, 13, 13, 4706, 1583, 3032, 15287, 1965, 353, 7700, 13, 4706, 1583, 3032, 369, 2164, 353, 7700, 13, 13, 1678, 822, 19012, 29898, 1311, 1125, 13, 4706, 565, 1583, 3032, 15287, 1965, 29901, 13, 9651, 736, 13, 13, 4706, 396, 11705, 2472, 515, 8086, 322, 274, 14520, 13, 4706, 1583, 29889, 13506, 29918, 2324, 287, 29918, 1272, 353, 679, 29918, 2324, 287, 29918, 1272, 29898, 1311, 29889, 5182, 29918, 13506, 29897, 13, 4706, 1544, 29918, 8768, 353, 18761, 29898, 4801, 837, 457, 29918, 2324, 29918, 1853, 29898, 15865, 29918, 3888, 29889, 21111, 287, 29918, 5113, 29918, 3972, 29892, 1583, 29889, 5182, 29918, 13506, 29897, 13, 462, 965, 363, 282, 9415, 29918, 3888, 297, 1583, 29889, 8318, 29918, 3888, 29918, 517, 29918, 2324, 29897, 13, 13, 4706, 396, 1207, 599, 278, 2224, 8820, 13, 4706, 396, 694, 2625, 9545, 6068, 746, 13213, 1218, 1438, 3158, 3618, 13, 4706, 10804, 29918, 4703, 353, 9657, 580, 13, 4706, 3017, 29918, 3259, 353, 1583, 29889, 657, 29918, 4691, 29918, 3259, 29898, 1311, 29889, 5182, 29918, 13506, 29892, 13, 462, 462, 462, 1583, 29889, 2324, 287, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 29892, 13, 462, 462, 462, 1583, 29889, 8318, 29918, 3888, 29918, 517, 29918, 2324, 29897, 13, 4706, 10804, 29918, 4703, 1839, 5182, 29918, 4691, 29918, 3259, 2033, 353, 3017, 29918, 3259, 13, 4706, 805, 353, 679, 29918, 4691, 29918, 2746, 29918, 8318, 29918, 12759, 29918, 2084, 29898, 4691, 29918, 3259, 29897, 13, 4706, 10804, 29918, 4703, 1839, 5182, 29918, 2746, 29918, 8318, 29918, 12759, 29918, 2084, 2033, 353, 805, 13, 13, 4706, 443, 2324, 29918, 7387, 353, 18761, 3552, 3083, 29895, 29881, 29918, 15865, 29918, 1272, 29892, 1207, 29918, 348, 2324, 29918, 7387, 29898, 20736, 29918, 4703, 29892, 13, 462, 462, 462, 462, 259, 1583, 29889, 5182, 29918, 13506, 29892, 13, 462, 462, 462, 462, 259, 301, 29876, 29895, 29881, 29918, 15865, 29918, 1272, 876, 13, 462, 1669, 363, 301, 29876, 29895, 29881, 29918, 15865, 29918, 1272, 297, 1583, 29889, 2324, 287, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 29897, 13, 13, 4706, 1544, 29918, 7387, 353, 313, 13, 9651, 313, 15865, 29918, 3888, 29892, 1583, 29889, 5675, 29918, 2324, 29918, 7387, 29898, 20736, 29918, 4703, 29892, 282, 9415, 29918, 3888, 29892, 13, 462, 462, 795, 1583, 29889, 5182, 29918, 13506, 29892, 301, 29873, 876, 13, 9651, 363, 282, 9415, 29918, 3888, 29892, 301, 29873, 297, 14319, 29898, 1311, 29889, 8318, 29918, 3888, 29918, 517, 29918, 2324, 29892, 1544, 29918, 8768, 29897, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 497, 29918, 7387, 353, 18761, 29898, 546, 29918, 15865, 29918, 7387, 363, 639, 29918, 15865, 29918, 7387, 297, 13, 462, 462, 3022, 271, 29894, 29898, 348, 2324, 29918, 7387, 29892, 1544, 29918, 7387, 876, 13, 4706, 396, 1134, 29901, 12603, 552, 29961, 15865, 29918, 1272, 29892, 12603, 552, 29961, 2605, 4276, 5262, 13, 13, 4706, 1583, 29889, 1949, 29918, 348, 2324, 29918, 20571, 3174, 353, 7431, 29898, 348, 2324, 29918, 7387, 29897, 13, 13, 4706, 1583, 3032, 15287, 1965, 353, 5852, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 27902, 29918, 513, 23352, 29918, 5563, 29898, 497, 29918, 7387, 1125, 13, 4706, 396, 1065, 599, 639, 29899, 2467, 11539, 3519, 13, 4706, 396, 259, 697, 310, 278, 901, 4100, 310, 1438, 12747, 338, 304, 11539, 393, 263, 934, 9904, 297, 13, 4706, 396, 259, 278, 9741, 10419, 313, 29875, 29889, 29872, 29889, 5235, 29914, 5325, 29897, 338, 2869, 11122, 2629, 278, 3577, 13, 4706, 363, 17117, 282, 9415, 29918, 7387, 297, 599, 29918, 7387, 29901, 13, 9651, 363, 4853, 29876, 297, 282, 9415, 29918, 7387, 29901, 13, 18884, 565, 4853, 29876, 29889, 369, 2164, 29901, 13, 462, 1678, 6773, 13, 18884, 1059, 29918, 2914, 353, 4853, 29876, 29889, 27902, 580, 13, 18884, 565, 1059, 29918, 2914, 29901, 13, 462, 1678, 1480, 29889, 8382, 703, 6565, 2450, 1059, 297, 3158, 1273, 29879, 613, 4853, 29876, 29897, 13, 462, 1678, 1480, 29889, 8382, 29898, 4830, 29918, 735, 29883, 3101, 13, 462, 1678, 7709, 1059, 29918, 2914, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 27902, 29918, 20736, 29918, 5563, 29898, 5182, 29918, 13506, 29892, 599, 29918, 7387, 29892, 954, 29918, 348, 2324, 29918, 20571, 3174, 1125, 13, 4706, 396, 4340, 1147, 2450, 310, 278, 3353, 10804, 13, 4706, 396, 363, 1269, 2224, 591, 526, 4969, 297, 1544, 29918, 7387, 29892, 591, 817, 304, 1207, 1854, 13, 4706, 396, 1678, 29896, 29889, 1269, 2224, 2845, 1838, 29915, 29873, 2307, 1863, 297, 278, 10944, 29892, 470, 674, 367, 443, 2324, 287, 13, 4706, 396, 1678, 29906, 29889, 727, 29915, 29879, 871, 263, 2323, 2777, 310, 1269, 2224, 13, 13, 4706, 396, 10898, 526, 1206, 29899, 1144, 575, 3321, 373, 5417, 13229, 13, 4706, 5224, 29918, 265, 29918, 5080, 353, 14013, 282, 29901, 282, 29889, 13609, 580, 565, 373, 29918, 5080, 1683, 282, 13, 4706, 443, 2324, 29918, 24772, 353, 731, 29898, 13609, 29918, 265, 29918, 5080, 29898, 1165, 29876, 29889, 5182, 29918, 12759, 29918, 2084, 29897, 13, 462, 965, 363, 17117, 282, 9415, 29918, 7387, 297, 599, 29918, 7387, 7503, 1949, 29918, 348, 2324, 29918, 20571, 3174, 29962, 13, 462, 965, 363, 4853, 29876, 297, 282, 9415, 29918, 7387, 13, 462, 965, 565, 338, 8758, 29898, 1165, 29876, 29892, 853, 2324, 2605, 4276, 876, 13, 4706, 396, 591, 508, 679, 599, 310, 278, 10898, 1641, 9024, 491, 3063, 871, 472, 278, 13, 4706, 396, 259, 6204, 6595, 287, 14459, 9182, 4276, 8820, 13, 4706, 1653, 29918, 29880, 558, 29918, 7387, 353, 313, 1165, 29876, 13, 462, 795, 363, 17117, 282, 9415, 29918, 7387, 297, 599, 29918, 7387, 29961, 1949, 29918, 348, 2324, 29918, 20571, 3174, 17531, 13, 462, 795, 363, 4853, 29876, 297, 282, 9415, 29918, 7387, 13, 462, 795, 565, 338, 8758, 29898, 1165, 29876, 29892, 6204, 6595, 287, 14459, 9182, 4276, 876, 13, 13, 4706, 1544, 29918, 24772, 29918, 8977, 353, 2322, 8977, 29898, 1761, 29897, 13, 4706, 363, 4853, 29876, 297, 1653, 29918, 29880, 558, 29918, 7387, 29901, 13, 9651, 363, 2224, 297, 4853, 29876, 29889, 2324, 287, 29918, 5113, 29918, 11651, 29889, 5325, 29901, 13, 18884, 2224, 353, 5224, 29918, 265, 29918, 5080, 29898, 2084, 29897, 13, 18884, 1544, 29918, 24772, 29918, 8977, 29961, 2084, 1822, 4397, 29898, 1165, 29876, 29897, 13, 18884, 565, 2224, 451, 297, 443, 2324, 29918, 24772, 322, 19566, 2879, 29898, 7122, 29898, 5182, 29918, 13506, 29892, 2224, 22164, 13, 462, 1678, 396, 591, 505, 263, 22369, 29936, 472, 3203, 1018, 304, 4377, 714, 988, 372, 2996, 515, 13, 462, 1678, 9024, 29918, 1272, 353, 679, 29918, 2324, 287, 29918, 1272, 29898, 5182, 29918, 13506, 29897, 13, 462, 1678, 5321, 4821, 29918, 2324, 287, 29918, 5113, 29918, 11651, 353, 937, 29898, 13, 462, 4706, 313, 29880, 558, 363, 301, 558, 297, 4256, 5975, 29898, 2324, 287, 29918, 1272, 8243, 13, 462, 4706, 1820, 29922, 2892, 301, 558, 29901, 2224, 297, 301, 558, 29889, 5325, 13, 462, 1678, 1723, 13, 462, 1678, 565, 5321, 4821, 29918, 2324, 287, 29918, 5113, 29918, 11651, 29901, 13, 462, 4706, 7709, 8360, 776, 14459, 29907, 2127, 495, 2392, 29898, 13398, 29898, 1165, 29876, 29889, 2324, 287, 29918, 5113, 29918, 11651, 511, 2224, 29892, 13, 462, 462, 462, 539, 6652, 29898, 22017, 4821, 29918, 2324, 287, 29918, 5113, 29918, 11651, 511, 13, 462, 462, 462, 539, 3030, 29897, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 7709, 853, 5203, 14459, 29907, 2127, 495, 2392, 29898, 13398, 29898, 1165, 29876, 29889, 2324, 287, 29918, 5113, 29918, 11651, 511, 2224, 29892, 13, 462, 462, 462, 308, 3030, 29897, 13, 4706, 363, 2224, 29892, 4853, 1983, 297, 4256, 7076, 29898, 2324, 29918, 24772, 29918, 8977, 1125, 13, 9651, 565, 7431, 29898, 1165, 1983, 29897, 1405, 29871, 29896, 29901, 13, 18884, 7709, 21236, 6595, 2605, 29907, 2127, 495, 2392, 29898, 13, 462, 1678, 2224, 29892, 18761, 29898, 13398, 29898, 1165, 29876, 29889, 2324, 287, 29918, 5113, 29918, 11651, 29897, 363, 4853, 29876, 297, 4853, 1983, 511, 3030, 13, 18884, 1723, 13, 13, 1678, 822, 11539, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 15287, 1965, 29901, 13, 9651, 1583, 29889, 19125, 580, 13, 13, 4706, 15283, 353, 18761, 29898, 735, 29883, 363, 5566, 297, 3022, 271, 29894, 29898, 13, 9651, 1583, 3032, 27902, 29918, 513, 23352, 29918, 5563, 29898, 1311, 29889, 497, 29918, 7387, 511, 13, 9651, 1583, 3032, 27902, 29918, 20736, 29918, 5563, 29898, 1311, 29889, 5182, 29918, 13506, 29892, 1583, 29889, 497, 29918, 7387, 29892, 13, 462, 462, 965, 1583, 29889, 1949, 29918, 348, 2324, 29918, 20571, 3174, 511, 13, 4706, 1723, 565, 5566, 29897, 13, 13, 4706, 565, 15283, 29901, 13, 9651, 5505, 29918, 22692, 29898, 10983, 29874, 15329, 2392, 29898, 11739, 29879, 511, 3030, 29897, 13, 4706, 1683, 29901, 13, 9651, 1480, 29889, 3888, 29898, 11739, 29879, 29897, 13, 13, 4706, 1583, 3032, 369, 2164, 353, 5852, 13, 13, 1678, 822, 6222, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 369, 2164, 29901, 13, 9651, 1583, 29889, 27902, 580, 13, 13, 4706, 282, 9415, 29918, 13140, 353, 29871, 29900, 13, 4706, 1018, 29901, 13, 9651, 363, 282, 9415, 29918, 13140, 29892, 313, 15865, 29918, 1272, 29892, 8820, 29897, 297, 26985, 29898, 1311, 29889, 497, 29918, 7387, 1125, 13, 18884, 1583, 3032, 7978, 29918, 7387, 29898, 1311, 29889, 5182, 29918, 13506, 29892, 1583, 29889, 1949, 29918, 348, 2324, 29918, 20571, 3174, 29892, 282, 9415, 29918, 13140, 29892, 13, 462, 462, 418, 282, 9415, 29918, 1272, 29892, 8820, 29897, 13, 4706, 5174, 8960, 408, 6222, 29918, 9910, 29918, 735, 29883, 29901, 13, 9651, 396, 11837, 599, 8283, 9741, 5174, 278, 697, 393, 5229, 13, 9651, 9679, 1627, 29918, 735, 2395, 353, 5159, 13, 9651, 565, 3030, 29889, 1245, 1627, 29918, 17590, 29901, 13, 18884, 5229, 29918, 15865, 29918, 13140, 353, 282, 9415, 29918, 13140, 13, 18884, 11837, 29918, 7387, 353, 1583, 29889, 497, 29918, 7387, 7503, 26061, 29918, 15865, 29918, 13140, 29962, 13, 18884, 363, 282, 9415, 29918, 13140, 29892, 313, 15865, 29918, 1272, 29892, 8820, 29897, 297, 18764, 287, 29898, 23583, 29898, 15172, 29898, 24244, 29918, 7387, 876, 1125, 13, 462, 1678, 429, 2395, 353, 1583, 3032, 24244, 29918, 7387, 29898, 1311, 29889, 5182, 29918, 13506, 29892, 1583, 29889, 1949, 29918, 348, 2324, 29918, 20571, 3174, 29892, 13, 462, 462, 462, 282, 9415, 29918, 13140, 29892, 282, 9415, 29918, 1272, 29892, 8820, 29897, 13, 462, 1678, 9679, 1627, 29918, 735, 2395, 29889, 21843, 29898, 735, 2395, 29897, 13, 13, 9651, 12020, 11790, 29874, 15329, 2392, 29898, 23583, 29898, 17685, 29894, 29898, 13, 18884, 313, 7978, 29918, 9910, 29918, 735, 29883, 29889, 12523, 13, 462, 565, 338, 8758, 29898, 7978, 29918, 9910, 29918, 735, 29883, 29892, 11790, 29874, 15329, 2392, 29897, 13, 462, 1683, 313, 7978, 29918, 9910, 29918, 735, 29883, 29892, 8243, 13, 18884, 9679, 1627, 29918, 735, 2395, 29892, 13, 632, 4961, 13, 13, 4706, 1683, 29901, 13, 9651, 363, 282, 9415, 29918, 13140, 29892, 313, 15865, 29918, 1272, 29892, 8820, 29897, 297, 26985, 29898, 1311, 29889, 497, 29918, 7387, 1125, 13, 18884, 363, 4853, 29876, 29918, 13140, 29892, 3158, 297, 26985, 29898, 7387, 1125, 13, 462, 1678, 3158, 29889, 14941, 786, 580, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 7978, 29918, 7387, 29898, 5182, 29918, 13506, 29892, 954, 29918, 348, 2324, 29918, 20571, 3174, 29892, 282, 9415, 29918, 13140, 29892, 282, 9415, 29918, 1272, 29892, 8820, 1125, 13, 4706, 4853, 29876, 29918, 13140, 29892, 3158, 29892, 338, 29918, 348, 2324, 353, 29871, 29900, 29892, 6213, 29892, 5852, 13, 4706, 1018, 29901, 13, 9651, 1320, 353, 6652, 29898, 15865, 29918, 1272, 29897, 13, 9651, 338, 29918, 348, 2324, 353, 282, 9415, 29918, 13140, 5277, 954, 29918, 348, 2324, 29918, 20571, 3174, 448, 29871, 29896, 13, 9651, 565, 338, 29918, 348, 2324, 29901, 13, 18884, 1480, 29889, 3888, 703, 1360, 4261, 8291, 23714, 29968, 4214, 349, 11375, 10461, 29901, 1273, 29879, 529, 1360, 2013, 29876, 29908, 13, 462, 308, 376, 29871, 10944, 16328, 29879, 29905, 29876, 613, 13, 462, 308, 1320, 29892, 3646, 29918, 13506, 29897, 13, 13, 9651, 1683, 29901, 13, 18884, 1480, 29889, 3888, 703, 1360, 4261, 21724, 29968, 4214, 349, 11375, 10461, 29901, 1273, 29879, 529, 1360, 2013, 29876, 29908, 13, 462, 308, 376, 29871, 10944, 16328, 29879, 29905, 29876, 29908, 13, 462, 308, 376, 29871, 2752, 16328, 29879, 29905, 29876, 613, 13, 462, 308, 1320, 29892, 3646, 29918, 13506, 29892, 282, 9415, 29918, 1272, 29889, 21111, 287, 29918, 5113, 29918, 3972, 29897, 13, 13, 9651, 1065, 29918, 2154, 29898, 5182, 29918, 13506, 565, 338, 29918, 348, 2324, 1683, 282, 9415, 29918, 1272, 29889, 21111, 287, 29918, 5113, 29918, 3972, 29892, 13, 462, 539, 6652, 29898, 15865, 29918, 1272, 511, 13, 462, 539, 525, 1457, 29899, 348, 2324, 29915, 565, 338, 29918, 348, 2324, 1683, 525, 1457, 29899, 2324, 742, 13, 462, 539, 3646, 29918, 13506, 565, 338, 29918, 348, 2324, 1683, 6213, 29897, 13, 9651, 363, 4853, 29876, 29918, 13140, 29892, 3158, 297, 26985, 29898, 7387, 1125, 13, 18884, 3158, 29889, 7978, 580, 13, 9651, 1065, 29918, 2154, 29898, 5182, 29918, 13506, 29892, 6652, 29898, 15865, 29918, 1272, 511, 525, 2490, 29899, 348, 2324, 29915, 565, 338, 29918, 348, 2324, 1683, 525, 2490, 29899, 2324, 1495, 13, 4706, 5174, 8960, 408, 321, 29901, 29871, 396, 445, 2113, 29915, 29873, 367, 263, 2473, 1059, 13, 9651, 396, 11837, 445, 3577, 13, 9651, 1480, 29889, 8382, 703, 2392, 297, 3158, 396, 29995, 29881, 363, 282, 9415, 29918, 13140, 396, 29995, 29881, 1273, 29878, 613, 4853, 29876, 29918, 13140, 29892, 282, 9415, 29918, 13140, 29892, 3158, 29897, 13, 9651, 1480, 29889, 8382, 29898, 4830, 29918, 735, 29883, 3101, 13, 9651, 11837, 29918, 735, 2395, 353, 3861, 13, 9651, 565, 3030, 29889, 1245, 1627, 29918, 17590, 29901, 13, 18884, 1480, 29889, 2704, 703, 2744, 1059, 10761, 1550, 1273, 29879, 3577, 14210, 29879, 4286, 29905, 29876, 29908, 13, 462, 3986, 11860, 29878, 29905, 29876, 29908, 13, 462, 3986, 376, 4165, 3456, 292, 304, 9679, 1250, 7790, 29876, 613, 13, 462, 3986, 525, 348, 6252, 292, 29915, 565, 338, 29918, 348, 2324, 1683, 525, 6252, 292, 742, 6652, 29898, 15865, 29918, 1272, 511, 321, 29897, 13, 18884, 11837, 29918, 735, 2395, 353, 853, 2324, 6595, 12460, 3032, 24244, 29918, 7387, 29898, 13, 462, 1678, 3646, 29918, 13506, 29892, 954, 29918, 348, 2324, 29918, 20571, 3174, 29892, 282, 9415, 29918, 13140, 29892, 282, 9415, 29918, 1272, 29892, 8820, 29892, 13, 462, 1678, 11837, 29918, 3166, 29918, 13140, 29922, 1165, 29876, 29918, 13140, 13, 18884, 1723, 13, 9651, 12020, 11790, 29874, 15329, 2392, 29898, 23583, 29898, 17685, 29894, 29898, 13, 18884, 313, 29872, 29892, 511, 13, 18884, 11837, 29918, 735, 2395, 29892, 13, 632, 4961, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 24244, 29918, 7387, 29898, 5182, 29918, 13506, 29892, 954, 29918, 348, 2324, 29918, 20571, 3174, 29892, 282, 9415, 29918, 13140, 29892, 282, 9415, 29918, 1272, 29892, 8820, 29892, 13, 462, 308, 11837, 29918, 3166, 29918, 13140, 10457, 29896, 1125, 13, 4706, 396, 11837, 29918, 3166, 29918, 13140, 353, 448, 29896, 2794, 11837, 599, 8820, 13, 4706, 1320, 353, 6652, 29898, 15865, 29918, 1272, 29897, 13, 4706, 338, 29918, 348, 2324, 353, 282, 9415, 29918, 13140, 5277, 954, 29918, 348, 2324, 29918, 20571, 3174, 448, 29871, 29896, 13, 4706, 565, 338, 29918, 348, 2324, 29901, 13, 9651, 1480, 29889, 3888, 703, 1360, 4261, 5195, 5348, 29903, 4214, 349, 11375, 10461, 8291, 23714, 29968, 29901, 1273, 29879, 529, 1360, 2013, 29876, 29908, 13, 462, 268, 376, 29871, 10944, 16328, 29879, 29905, 29876, 613, 13, 462, 268, 1320, 29892, 3646, 29918, 13506, 29897, 13, 13, 4706, 1683, 29901, 13, 9651, 1480, 29889, 3888, 703, 1360, 4261, 5195, 5348, 29903, 4214, 349, 11375, 10461, 21724, 29968, 29901, 1273, 29879, 529, 1360, 2013, 29876, 29908, 13, 462, 268, 376, 29871, 10944, 16328, 29879, 29905, 29876, 613, 13, 462, 268, 1320, 29892, 3646, 29918, 13506, 29897, 13, 4706, 1480, 29889, 8382, 703, 276, 874, 292, 282, 9415, 29918, 13140, 396, 29995, 29881, 515, 4853, 29876, 29918, 13140, 396, 29995, 29881, 613, 282, 9415, 29918, 13140, 29892, 11837, 29918, 3166, 29918, 13140, 29897, 13, 13, 4706, 15283, 353, 5159, 13, 4706, 11837, 29918, 7387, 353, 8820, 565, 11837, 29918, 3166, 29918, 13140, 529, 29871, 29900, 1683, 8820, 7503, 24244, 29918, 3166, 29918, 13140, 29974, 29896, 29962, 13, 4706, 363, 4853, 29876, 29918, 13140, 29892, 3158, 297, 18764, 287, 29898, 23583, 29898, 15172, 29898, 24244, 29918, 7387, 876, 1125, 13, 9651, 1018, 29901, 13, 18884, 3158, 29889, 24244, 580, 13, 9651, 5174, 8960, 408, 321, 29901, 13, 18884, 1480, 29889, 8382, 703, 2467, 29889, 24244, 580, 1059, 297, 3158, 396, 29995, 29881, 363, 282, 9415, 29918, 13140, 396, 29995, 29881, 1273, 29878, 613, 4853, 29876, 29918, 13140, 29892, 13, 462, 3986, 282, 9415, 29918, 13140, 29892, 3158, 29897, 13, 18884, 1480, 29889, 8382, 29898, 4830, 29918, 735, 29883, 3101, 13, 18884, 15283, 29889, 4397, 29898, 29872, 29897, 13, 4706, 736, 15283, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 4691, 29918, 3259, 29898, 5182, 29918, 13506, 29892, 9024, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 29892, 9741, 29918, 3888, 29918, 517, 29918, 2324, 1125, 13, 4706, 396, 445, 1158, 3683, 1475, 278, 3017, 1873, 393, 674, 367, 2198, 472, 278, 13, 4706, 396, 1095, 310, 278, 10804, 13, 4706, 25236, 29918, 1482, 29918, 4691, 353, 2446, 3552, 5113, 29918, 3888, 363, 3577, 29918, 3888, 297, 9741, 29918, 3888, 29918, 517, 29918, 2324, 13, 462, 462, 259, 565, 3577, 29918, 3888, 29889, 2248, 29918, 3126, 29918, 11651, 29889, 978, 1275, 525, 4691, 5477, 13, 462, 462, 29871, 6213, 29897, 13, 4706, 565, 25236, 29918, 1482, 29918, 4691, 29901, 13, 9651, 396, 338, 3017, 1641, 9024, 29973, 591, 29915, 276, 2309, 13, 9651, 2989, 29918, 3259, 353, 25236, 29918, 1482, 29918, 4691, 29889, 2248, 29918, 3126, 29918, 11651, 29889, 3259, 13, 9651, 4974, 2989, 29918, 3259, 13, 9651, 736, 679, 29918, 21355, 29918, 1195, 272, 29918, 3259, 29898, 8159, 29918, 3259, 29897, 13, 13, 4706, 396, 338, 3017, 2307, 9024, 322, 451, 1641, 443, 2324, 287, 29973, 393, 29915, 29879, 3431, 2086, 13, 4706, 9024, 29918, 4691, 29918, 3259, 353, 679, 29918, 4691, 29918, 3259, 29918, 1454, 29918, 13506, 29898, 5182, 29918, 13506, 29897, 13, 4706, 565, 9024, 29918, 4691, 29918, 3259, 29901, 13, 9651, 1284, 29918, 4691, 353, 313, 3083, 29895, 29881, 29918, 15865, 29918, 1272, 363, 301, 29876, 29895, 29881, 29918, 15865, 29918, 1272, 297, 9024, 29918, 8318, 29918, 1272, 29918, 517, 29918, 348, 2324, 13, 462, 965, 565, 301, 29876, 29895, 29881, 29918, 15865, 29918, 1272, 29889, 978, 1275, 525, 4691, 1495, 13, 9651, 443, 2324, 292, 29918, 1366, 29918, 4691, 353, 2446, 29898, 2886, 29918, 4691, 29892, 6213, 29897, 13, 9651, 565, 443, 2324, 292, 29918, 1366, 29918, 4691, 338, 6213, 29901, 13, 18884, 396, 3017, 338, 451, 1641, 443, 2324, 287, 13, 18884, 736, 9024, 29918, 4691, 29918, 3259, 13, 13, 4706, 396, 727, 2113, 29915, 29873, 367, 738, 3017, 297, 278, 7743, 5177, 13, 4706, 736, 6213, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 1207, 29918, 2324, 29918, 7387, 29898, 20736, 29918, 4703, 29892, 3577, 29918, 3888, 29892, 3646, 29918, 13506, 29892, 13877, 29918, 2324, 29918, 1853, 1125, 13, 4706, 3734, 29918, 3425, 353, 10804, 29918, 4703, 29892, 3577, 29918, 3888, 29892, 3646, 29918, 13506, 29892, 13877, 29918, 2324, 29918, 1853, 13, 13, 4706, 934, 29918, 2324, 29918, 7387, 353, 6645, 2605, 4276, 29889, 3258, 29918, 1445, 29918, 2324, 29918, 7387, 10456, 12403, 29918, 3425, 29897, 13, 4706, 1653, 29918, 12322, 29918, 7387, 353, 6645, 2605, 4276, 29889, 3258, 29918, 12322, 29918, 7387, 29898, 13, 9651, 334, 12403, 29918, 3425, 29892, 934, 29918, 2324, 29918, 7387, 29922, 1445, 29918, 2324, 29918, 7387, 13, 4706, 1723, 13, 4706, 1653, 29918, 6510, 29918, 7387, 353, 8561, 6823, 4276, 29889, 3258, 29918, 7387, 10456, 12403, 29918, 3425, 29897, 13, 13, 4706, 3017, 29918, 8269, 29918, 3149, 29918, 7387, 353, 6204, 11980, 9634, 5228, 4276, 29889, 3258, 29918, 7387, 10456, 12403, 29918, 3425, 29897, 13, 4706, 6633, 29918, 2272, 29883, 29918, 7387, 353, 3831, 488, 29925, 11078, 4276, 29889, 3258, 29918, 7387, 10456, 12403, 29918, 3425, 29892, 13, 462, 462, 462, 795, 934, 29918, 2324, 29918, 7387, 29922, 1445, 29918, 2324, 29918, 7387, 29897, 13, 13, 4706, 2280, 29918, 8269, 29918, 3149, 29918, 7387, 353, 6204, 4873, 9634, 5228, 4276, 29889, 3258, 29918, 7387, 29898, 13, 9651, 334, 12403, 29918, 3425, 13, 4706, 1723, 13, 4706, 2024, 29918, 264, 4270, 29918, 7299, 29918, 7387, 353, 6204, 25207, 21745, 19346, 4276, 29889, 3258, 29918, 7387, 10456, 12403, 29918, 3425, 29897, 13, 13, 4706, 599, 29918, 5182, 29918, 12759, 29918, 24772, 353, 18761, 29898, 1165, 29876, 29889, 5182, 29918, 12759, 29918, 2084, 363, 4853, 29876, 297, 3022, 271, 29894, 29898, 13, 9651, 934, 29918, 2324, 29918, 7387, 29892, 13, 9651, 3017, 29918, 8269, 29918, 3149, 29918, 7387, 29892, 13, 9651, 6633, 29918, 2272, 29883, 29918, 7387, 29892, 13, 9651, 2280, 29918, 8269, 29918, 3149, 29918, 7387, 29892, 13, 308, 876, 13, 4706, 12700, 29918, 3258, 29918, 7387, 353, 6204, 6595, 287, 14459, 9182, 4276, 29889, 3258, 29918, 7387, 29898, 13, 9651, 334, 12403, 29918, 3425, 29892, 599, 29918, 5182, 29918, 12759, 29918, 24772, 29922, 497, 29918, 5182, 29918, 12759, 29918, 24772, 13, 4706, 1723, 13, 4706, 396, 278, 20520, 1244, 338, 7282, 13, 4706, 736, 18761, 29898, 17685, 29894, 29898, 13, 9651, 12700, 29918, 3258, 29918, 7387, 29892, 13, 9651, 1653, 29918, 12322, 29918, 7387, 29892, 13, 9651, 934, 29918, 2324, 29918, 7387, 29892, 13, 9651, 3017, 29918, 8269, 29918, 3149, 29918, 7387, 29892, 13, 9651, 6633, 29918, 2272, 29883, 29918, 7387, 29892, 13, 9651, 1653, 29918, 6510, 29918, 7387, 29892, 13, 9651, 2280, 29918, 8269, 29918, 3149, 29918, 7387, 29892, 13, 9651, 2024, 29918, 264, 4270, 29918, 7299, 29918, 7387, 29892, 13, 308, 876, 13, 13, 13, 1753, 1065, 29918, 2154, 29898, 13506, 29892, 1320, 29892, 3158, 2433, 2490, 29899, 2324, 742, 8829, 29918, 13506, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 1246, 278, 1400, 29899, 2324, 313, 272, 758, 29899, 348, 2324, 29897, 2471, 29892, 322, 736, 5852, 373, 2551, 29892, 13, 1678, 7700, 373, 10672, 13, 1678, 9995, 13, 1678, 2224, 353, 5988, 29898, 13506, 29892, 13, 18884, 525, 4081, 29879, 29915, 565, 373, 29918, 5080, 1683, 525, 2109, 742, 13, 18884, 15300, 29995, 29879, 19222, 29879, 29889, 29995, 29879, 29915, 1273, 313, 5721, 29889, 978, 29892, 3158, 29892, 525, 10222, 29915, 565, 373, 29918, 5080, 1683, 525, 845, 8785, 13, 1678, 565, 451, 338, 1445, 29898, 2084, 1125, 13, 4706, 736, 5852, 13, 13, 1678, 8829, 353, 2897, 29889, 21813, 29889, 8552, 580, 13, 13, 1678, 565, 3158, 1275, 525, 1457, 29899, 2324, 2396, 13, 4706, 8829, 29961, 710, 877, 27839, 4741, 29918, 9464, 1495, 29962, 353, 851, 29898, 13506, 29897, 13, 4706, 18116, 29889, 25442, 29898, 29881, 1338, 703, 15945, 13, 4706, 22029, 1273, 29879, 3913, 263, 758, 29899, 2324, 2471, 29889, 4721, 29899, 2324, 12078, 526, 19998, 18215, 29889, 13, 4706, 910, 338, 1363, 758, 29899, 2324, 12078, 505, 278, 11509, 304, 1735, 278, 3577, 8118, 297, 278, 13, 4706, 3577, 7090, 29892, 322, 5480, 6623, 278, 14407, 2066, 363, 2307, 29899, 11600, 378, 1388, 13, 4706, 23136, 29889, 29871, 16367, 6910, 310, 378, 1388, 1122, 16460, 403, 322, 11455, 758, 29899, 2324, 12078, 29889, 13, 4706, 9995, 1273, 1320, 876, 13, 13, 1678, 565, 373, 29918, 5080, 29901, 13, 4706, 1018, 29901, 13, 9651, 1899, 29918, 5085, 353, 518, 359, 29889, 21813, 1839, 3217, 4345, 4162, 29907, 7464, 8207, 29883, 742, 2224, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 736, 7700, 13, 1678, 1683, 29901, 13, 4706, 6473, 29918, 2084, 353, 8207, 2109, 29914, 845, 29915, 565, 525, 29890, 4928, 29915, 297, 10876, 29889, 12120, 1683, 8207, 2109, 29914, 13067, 29915, 13, 4706, 1899, 29918, 5085, 353, 518, 15903, 29918, 2084, 29892, 2224, 29962, 13, 13, 1678, 8829, 29961, 710, 877, 21289, 29918, 15094, 25634, 1495, 29962, 353, 10876, 29889, 13506, 13, 1678, 8829, 29961, 710, 877, 15094, 25634, 1495, 29962, 353, 851, 29898, 6272, 29918, 13506, 470, 10944, 29897, 13, 1678, 8829, 29961, 710, 877, 21738, 29954, 29918, 5813, 1495, 29962, 353, 851, 29898, 5721, 29889, 978, 29897, 13, 1678, 8829, 29961, 710, 877, 21738, 29954, 29918, 16358, 1495, 29962, 353, 851, 29898, 5721, 29889, 3259, 29897, 13, 1678, 8829, 29961, 710, 877, 21738, 29954, 29918, 29933, 25282, 13967, 1495, 29962, 353, 851, 29898, 5721, 29889, 4282, 29918, 4537, 29897, 13, 13, 1678, 1018, 29901, 13, 4706, 1480, 29889, 8382, 703, 1454, 1273, 29879, 472, 1273, 29879, 29892, 14012, 2471, 29901, 395, 1273, 29879, 613, 13, 462, 29871, 1320, 29892, 8829, 29961, 710, 877, 15094, 25634, 1495, 1402, 525, 15300, 7122, 29898, 6519, 29918, 5085, 876, 13, 4706, 736, 903, 3389, 29918, 2154, 29898, 6519, 29918, 5085, 29892, 8829, 29897, 13, 1678, 7146, 29901, 13, 4706, 7191, 29898, 13506, 29897, 13, 13, 13, 1753, 903, 3389, 29918, 2154, 29898, 6519, 29918, 5085, 29892, 8829, 1125, 13, 1678, 1018, 29901, 13, 4706, 1423, 29918, 4804, 29898, 6519, 29918, 5085, 29892, 8829, 29922, 6272, 29897, 13, 1678, 5174, 3037, 839, 7032, 2392, 29901, 13, 4706, 736, 7700, 13, 1678, 1683, 29901, 13, 4706, 736, 5852, 13, 13, 13, 1753, 7191, 29898, 13506, 1125, 13, 1678, 2224, 353, 5988, 29898, 13506, 29892, 15300, 19158, 29889, 3945, 1495, 13, 1678, 565, 338, 1445, 29898, 2084, 1125, 13, 4706, 411, 1722, 29898, 2084, 29897, 408, 5713, 29901, 13, 9651, 285, 29882, 353, 10876, 29889, 303, 20405, 565, 3030, 29889, 3126, 1683, 10876, 29889, 25393, 13, 9651, 285, 29882, 29889, 3539, 29898, 7241, 29889, 949, 3101, 13, 4706, 20241, 29918, 9600, 29898, 2084, 29897, 13, 2 ]
api_server.py
ChristianKreuzberger/computer.vision.101
0
30228
<reponame>ChristianKreuzberger/computer.vision.101 import os os.environ["KERAS_BACKEND"] = "tensorflow" import numpy as np import keras from keras.applications import imagenet_utils from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.preprocessing import image from keras.preprocessing.image import img_to_array from keras.regularizers import l2 from PIL import Image from flask import Flask from flask_restful import Api, Resource, reqparse import werkzeug input_shape = (28, 28, 1) num_classes = 10 def build_model(): model = Sequential() model.add(Conv2D(32, (3, 3), padding='same', kernel_regularizer=l2(0.01), input_shape=input_shape)) model.add(Activation('relu')) model.add(Conv2D(32, (5, 5), kernel_regularizer=l2(0.01))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Conv2D(64, (3, 3), padding='same', kernel_regularizer=l2(0.01))) model.add(Activation('relu')) model.add(Conv2D(64, (5, 5), kernel_regularizer=l2(0.01))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Flatten()) model.add(Dense(512)) model.add(Activation('relu')) model.add(Dropout(0.5)) model.add(Dense(num_classes)) model.add(Activation('softmax')) return model model = build_model() model.summary() model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) model.load_weights("fashion-mnist-90.h5") model._make_predict_function() mapping = { 0: "T-shirt/top", 1: "Trouser", 2: "Pullover", 3: "Dress", 4: "Coat", 5: "Sandal", 6: "Shirt", 7: "Sneaker", 8: "Bag", 9: "Ankle boot" } app = Flask(__name__) api = Api(app) @app.route('/') def get_index(): return """ <html> <head> <title>Classify Image</title> </head> <body> <form method="post" action="/classify" enctype="multipart/form-data"> File: <input type="file" name="image" /><br /> <input type="submit"> </form> </body> </html> """ @app.route('/classify', methods=['POST']) def post_image(): parse = reqparse.RequestParser() parse.add_argument('image', type=werkzeug.datastructures.FileStorage, location='files') args = parse.parse_args() if not 'image' in args or not args['image']: return { 'message': "Please provide an image" }, 400 img_stream = args['image'].stream prepared_image = image.load_img(img_stream, target_size=(28, 28)) # convert input image to gray scale prepared_image = prepared_image.convert('L') # convert the image to a numpy array prepared_image = image.img_to_array(prepared_image) prepared_image = np.expand_dims(prepared_image, axis=0) # and finally reshape the array prepared_image = prepared_image.reshape(1, 28, 28, 1) result = model.predict_classes(prepared_image) classification = result[0] import json return json.dumps({ "classifications": result.tolist(), "string": mapping[classification] }) app.run(debug=True, host="0.0.0.0") # Test with # curl -F image=@`pwd`/fashion-mnist-handbag.png -X POST http://127.0.0.1:5000/classify # curl -F image=@`pwd`/fashion-mnist-shoe.png -X POST http://127.0.0.1:5000/classify
[ 1, 529, 276, 1112, 420, 29958, 18687, 713, 29968, 276, 3365, 15734, 29914, 12097, 261, 29889, 4924, 29889, 29896, 29900, 29896, 13, 5215, 2897, 13, 359, 29889, 21813, 3366, 29968, 1001, 3289, 29918, 29933, 11375, 11794, 3108, 353, 376, 29056, 29908, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 13023, 294, 13, 13, 3166, 13023, 294, 29889, 932, 5795, 1053, 527, 5370, 300, 29918, 13239, 13, 3166, 13023, 294, 29889, 9794, 1053, 922, 339, 2556, 13, 3166, 13023, 294, 29889, 29277, 1053, 360, 1947, 29892, 20724, 449, 29892, 21775, 362, 29892, 2379, 8606, 13, 3166, 13023, 294, 29889, 29277, 1053, 1281, 29894, 29906, 29928, 29892, 5918, 11426, 292, 29906, 29928, 13, 3166, 13023, 294, 29889, 1457, 19170, 1053, 1967, 13, 3166, 13023, 294, 29889, 1457, 19170, 29889, 3027, 1053, 10153, 29918, 517, 29918, 2378, 13, 3166, 13023, 294, 29889, 15227, 19427, 1053, 301, 29906, 13, 13, 3166, 349, 6227, 1053, 7084, 13, 3166, 29784, 1053, 2379, 1278, 13, 3166, 29784, 29918, 5060, 1319, 1053, 29749, 29892, 18981, 29892, 12428, 5510, 13, 5215, 23085, 13289, 13, 13, 13, 2080, 29918, 12181, 353, 313, 29906, 29947, 29892, 29871, 29906, 29947, 29892, 29871, 29896, 29897, 13, 1949, 29918, 13203, 353, 29871, 29896, 29900, 13, 13, 13, 1753, 2048, 29918, 4299, 7295, 13, 1678, 1904, 353, 922, 339, 2556, 580, 13, 1678, 1904, 29889, 1202, 29898, 1168, 29894, 29906, 29928, 29898, 29941, 29906, 29892, 313, 29941, 29892, 29871, 29941, 511, 7164, 2433, 17642, 742, 8466, 29918, 15227, 3950, 29922, 29880, 29906, 29898, 29900, 29889, 29900, 29896, 511, 1881, 29918, 12181, 29922, 2080, 29918, 12181, 876, 13, 1678, 1904, 29889, 1202, 29898, 21786, 362, 877, 2674, 29884, 8785, 13, 1678, 1904, 29889, 1202, 29898, 1168, 29894, 29906, 29928, 29898, 29941, 29906, 29892, 313, 29945, 29892, 29871, 29945, 511, 8466, 29918, 15227, 3950, 29922, 29880, 29906, 29898, 29900, 29889, 29900, 29896, 4961, 13, 1678, 1904, 29889, 1202, 29898, 21786, 362, 877, 2674, 29884, 8785, 13, 1678, 1904, 29889, 1202, 29898, 7976, 11426, 292, 29906, 29928, 29898, 10109, 29918, 2311, 7607, 29906, 29892, 29871, 29906, 4961, 13, 1678, 1904, 29889, 1202, 29898, 15063, 449, 29898, 29900, 29889, 29906, 29945, 876, 13, 13, 1678, 1904, 29889, 1202, 29898, 1168, 29894, 29906, 29928, 29898, 29953, 29946, 29892, 313, 29941, 29892, 29871, 29941, 511, 7164, 2433, 17642, 742, 8466, 29918, 15227, 3950, 29922, 29880, 29906, 29898, 29900, 29889, 29900, 29896, 4961, 13, 1678, 1904, 29889, 1202, 29898, 21786, 362, 877, 2674, 29884, 8785, 13, 1678, 1904, 29889, 1202, 29898, 1168, 29894, 29906, 29928, 29898, 29953, 29946, 29892, 313, 29945, 29892, 29871, 29945, 511, 8466, 29918, 15227, 3950, 29922, 29880, 29906, 29898, 29900, 29889, 29900, 29896, 4961, 13, 1678, 1904, 29889, 1202, 29898, 21786, 362, 877, 2674, 29884, 8785, 13, 1678, 1904, 29889, 1202, 29898, 7976, 11426, 292, 29906, 29928, 29898, 10109, 29918, 2311, 7607, 29906, 29892, 29871, 29906, 4961, 13, 1678, 1904, 29889, 1202, 29898, 15063, 449, 29898, 29900, 29889, 29906, 29945, 876, 13, 13, 1678, 1904, 29889, 1202, 29898, 29943, 5066, 841, 3101, 13, 1678, 1904, 29889, 1202, 29898, 29928, 1947, 29898, 29945, 29896, 29906, 876, 13, 1678, 1904, 29889, 1202, 29898, 21786, 362, 877, 2674, 29884, 8785, 13, 1678, 1904, 29889, 1202, 29898, 15063, 449, 29898, 29900, 29889, 29945, 876, 13, 1678, 1904, 29889, 1202, 29898, 29928, 1947, 29898, 1949, 29918, 13203, 876, 13, 1678, 1904, 29889, 1202, 29898, 21786, 362, 877, 2695, 3317, 8785, 13, 13, 1678, 736, 1904, 13, 13, 13, 4299, 353, 2048, 29918, 4299, 580, 13, 4299, 29889, 7727, 580, 13, 4299, 29889, 12198, 29898, 6758, 2433, 29883, 20440, 936, 29918, 19128, 296, 14441, 742, 13, 795, 5994, 3950, 2433, 328, 314, 742, 13, 795, 21556, 29922, 1839, 562, 2764, 4135, 11287, 13, 4299, 29889, 1359, 29918, 705, 5861, 703, 29888, 10904, 29899, 23521, 391, 29899, 29929, 29900, 29889, 29882, 29945, 1159, 13, 4299, 3032, 5675, 29918, 27711, 29918, 2220, 580, 13, 13, 20698, 353, 426, 13, 268, 29900, 29901, 376, 29911, 29899, 845, 2728, 29914, 3332, 613, 29871, 13, 268, 29896, 29901, 376, 2308, 283, 643, 613, 13, 268, 29906, 29901, 376, 29925, 352, 417, 369, 613, 13, 268, 29941, 29901, 376, 29928, 1253, 613, 13, 268, 29946, 29901, 376, 7967, 271, 613, 13, 268, 29945, 29901, 376, 29903, 24258, 613, 13, 268, 29953, 29901, 376, 2713, 2728, 613, 13, 268, 29955, 29901, 376, 29903, 484, 5790, 613, 13, 268, 29947, 29901, 376, 23544, 613, 13, 268, 29929, 29901, 376, 2744, 29895, 280, 6579, 29908, 13, 29913, 13, 13, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 2754, 353, 29749, 29898, 932, 29897, 13, 13, 29992, 932, 29889, 13134, 11219, 1495, 13, 1753, 679, 29918, 2248, 7295, 13, 1678, 736, 9995, 13, 1678, 529, 1420, 29958, 13, 1678, 529, 2813, 29958, 13, 1678, 529, 3257, 29958, 2385, 1598, 7084, 829, 3257, 29958, 13, 1678, 1533, 2813, 29958, 13, 1678, 529, 2587, 29958, 13, 4706, 529, 689, 1158, 543, 2490, 29908, 3158, 13802, 1990, 1598, 29908, 427, 312, 668, 543, 18056, 442, 29914, 689, 29899, 1272, 1013, 13, 9651, 3497, 29901, 529, 2080, 1134, 543, 1445, 29908, 1024, 543, 3027, 29908, 2900, 29966, 1182, 2900, 13, 9651, 529, 2080, 1134, 543, 7892, 1013, 13, 4706, 1533, 689, 29958, 13, 1678, 1533, 2587, 29958, 13, 1678, 1533, 1420, 29958, 13, 1678, 9995, 13, 13, 29992, 932, 29889, 13134, 11219, 1990, 1598, 742, 3519, 29922, 1839, 5438, 11287, 13, 1753, 1400, 29918, 3027, 7295, 13, 1678, 6088, 353, 12428, 5510, 29889, 3089, 11726, 580, 13, 1678, 6088, 29889, 1202, 29918, 23516, 877, 3027, 742, 1134, 29922, 9888, 13289, 29889, 4130, 7614, 5313, 1973, 29889, 2283, 10486, 29892, 4423, 2433, 5325, 1495, 13, 13, 1678, 6389, 353, 6088, 29889, 5510, 29918, 5085, 580, 13, 13, 1678, 565, 451, 525, 3027, 29915, 297, 6389, 470, 451, 6389, 1839, 3027, 2033, 29901, 13, 4706, 736, 426, 13, 9651, 525, 4906, 2396, 376, 12148, 3867, 385, 1967, 29908, 13, 4706, 2981, 29871, 29946, 29900, 29900, 13, 13, 1678, 10153, 29918, 5461, 353, 6389, 1839, 3027, 13359, 5461, 13, 13, 1678, 13240, 29918, 3027, 353, 1967, 29889, 1359, 29918, 2492, 29898, 2492, 29918, 5461, 29892, 3646, 29918, 2311, 7607, 29906, 29947, 29892, 29871, 29906, 29947, 876, 13, 1678, 396, 3588, 1881, 1967, 304, 16749, 6287, 13, 1678, 13240, 29918, 3027, 353, 13240, 29918, 3027, 29889, 13441, 877, 29931, 1495, 13, 1678, 396, 3588, 278, 1967, 304, 263, 12655, 1409, 13, 1678, 13240, 29918, 3027, 353, 1967, 29889, 2492, 29918, 517, 29918, 2378, 29898, 15287, 1965, 29918, 3027, 29897, 13, 1678, 13240, 29918, 3027, 353, 7442, 29889, 18837, 29918, 6229, 29879, 29898, 15287, 1965, 29918, 3027, 29892, 9685, 29922, 29900, 29897, 13, 13, 1678, 396, 322, 7146, 620, 14443, 278, 1409, 13, 1678, 13240, 29918, 3027, 353, 13240, 29918, 3027, 29889, 690, 14443, 29898, 29896, 29892, 29871, 29906, 29947, 29892, 29871, 29906, 29947, 29892, 29871, 29896, 29897, 13, 13, 13, 1678, 1121, 353, 1904, 29889, 27711, 29918, 13203, 29898, 15287, 1965, 29918, 3027, 29897, 13, 13, 1678, 12965, 353, 1121, 29961, 29900, 29962, 13, 13, 1678, 1053, 4390, 13, 13, 1678, 736, 4390, 29889, 29881, 17204, 3319, 13, 4706, 376, 1990, 8232, 1115, 1121, 29889, 25027, 391, 3285, 13, 4706, 376, 1807, 1115, 10417, 29961, 1990, 2450, 29962, 13, 1678, 5615, 13, 13, 13, 13, 932, 29889, 3389, 29898, 8382, 29922, 5574, 29892, 3495, 543, 29900, 29889, 29900, 29889, 29900, 29889, 29900, 1159, 13, 13, 29937, 4321, 411, 13, 29937, 11051, 448, 29943, 1967, 29922, 29992, 29952, 29886, 9970, 29952, 29914, 29888, 10904, 29899, 23521, 391, 29899, 3179, 23156, 29889, 2732, 448, 29990, 11971, 1732, 597, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29901, 29945, 29900, 29900, 29900, 29914, 1990, 1598, 13, 29937, 11051, 448, 29943, 1967, 29922, 29992, 29952, 29886, 9970, 29952, 29914, 29888, 10904, 29899, 23521, 391, 29899, 845, 7297, 29889, 2732, 448, 29990, 11971, 1732, 597, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29901, 29945, 29900, 29900, 29900, 29914, 1990, 1598, 13, 2 ]
11_testing_best_practices/generate_maze_faster.py
krother/maze_run
7
17856
# Improved version of the code from chapter 03 # created in chapter 11 to accelerate execution import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) in dots else "#" grid += "\n" return grid def get_all_dot_positions(xsize, ysize): """Returns a list of (x, y) tuples covering all positions in a grid""" return [(x,y) for x in range(1, xsize-1) for y in range(1, ysize-1)] def get_neighbors(x, y): """Returns a list with the 8 neighbor positions of (x, y)""" return [ (x, y-1), (x, y+1), (x-1, y), (x+1, y), (x-1, y-1), (x+1, y-1), (x-1, y+1), (x+1, y+1) ] def generate_dot_positions(xsize, ysize): """Creates positions of dots for a random maze""" positions = get_all_dot_positions(xsize, ysize) random.shuffle(positions) dots = set() for x, y in positions: neighbors = get_neighbors(x, y) free = [nb in dots for nb in neighbors] if free.count(True) < 5: dots.add((x, y)) return dots def create_maze(xsize, ysize): """Returns a xsize*ysize maze as a string""" dots = generate_dot_positions(xsize, ysize) maze = create_grid_string(dots, xsize, ysize) return maze if __name__ == '__main__': dots = set(((1,1), (1,2), (1,3), (2,2), (3,1), (3,2), (3,3))) print(create_grid_string(dots, 5, 5)) positions = get_all_dot_positions(5, 5) print(create_grid_string(positions, 5, 5)) neighbors = get_neighbors(3, 2) print(create_grid_string(neighbors, 5, 5)) maze = create_maze(12, 7) print(maze)
[ 1, 29871, 13, 29937, 1954, 771, 1490, 1873, 310, 278, 775, 515, 16385, 29871, 29900, 29941, 13, 29937, 2825, 297, 16385, 29871, 29896, 29896, 304, 15592, 403, 8225, 13, 13, 13, 5215, 4036, 13, 13, 29990, 12648, 29892, 612, 12648, 353, 29871, 29896, 29929, 29892, 29871, 29896, 29953, 13, 13, 13, 1753, 1653, 29918, 7720, 29918, 1807, 29898, 7778, 29892, 921, 2311, 29892, 343, 2311, 1125, 13, 1678, 9995, 13, 1678, 6760, 1078, 263, 6856, 310, 2159, 313, 4419, 29892, 343, 29891, 29897, 29871, 13, 1678, 411, 278, 2183, 11909, 310, 270, 1862, 29889, 13, 1678, 9995, 13, 1678, 6856, 353, 5124, 13, 1678, 363, 343, 297, 3464, 29898, 952, 675, 1125, 13, 4706, 363, 921, 297, 3464, 29898, 29916, 2311, 1125, 13, 9651, 6856, 4619, 376, 1213, 565, 313, 29916, 29892, 343, 29897, 297, 270, 1862, 1683, 12305, 29908, 13, 4706, 6856, 4619, 6634, 29876, 29908, 13, 1678, 736, 6856, 13, 13, 13, 1753, 679, 29918, 497, 29918, 6333, 29918, 1066, 2187, 29898, 29916, 2311, 29892, 343, 2311, 1125, 13, 1678, 9995, 11609, 29879, 263, 1051, 310, 313, 29916, 29892, 343, 29897, 5291, 2701, 21653, 599, 11909, 297, 263, 6856, 15945, 29908, 13, 1678, 736, 17288, 29916, 29892, 29891, 29897, 363, 921, 297, 3464, 29898, 29896, 29892, 921, 2311, 29899, 29896, 29897, 363, 343, 297, 3464, 29898, 29896, 29892, 343, 2311, 29899, 29896, 4638, 13, 13, 13, 1753, 679, 29918, 484, 1141, 29890, 943, 29898, 29916, 29892, 343, 1125, 13, 1678, 9995, 11609, 29879, 263, 1051, 411, 278, 29871, 29947, 12307, 11909, 310, 313, 29916, 29892, 343, 5513, 15945, 13, 1678, 736, 518, 13, 4706, 313, 29916, 29892, 343, 29899, 29896, 511, 313, 29916, 29892, 343, 29974, 29896, 511, 313, 29916, 29899, 29896, 29892, 343, 511, 313, 29916, 29974, 29896, 29892, 343, 511, 13, 4706, 313, 29916, 29899, 29896, 29892, 343, 29899, 29896, 511, 313, 29916, 29974, 29896, 29892, 343, 29899, 29896, 511, 313, 29916, 29899, 29896, 29892, 343, 29974, 29896, 511, 313, 29916, 29974, 29896, 29892, 343, 29974, 29896, 29897, 13, 1678, 4514, 13, 13, 13, 1753, 5706, 29918, 6333, 29918, 1066, 2187, 29898, 29916, 2311, 29892, 343, 2311, 1125, 13, 1678, 9995, 9832, 1078, 11909, 310, 270, 1862, 363, 263, 4036, 611, 911, 15945, 29908, 13, 1678, 11909, 353, 679, 29918, 497, 29918, 6333, 29918, 1066, 2187, 29898, 29916, 2311, 29892, 343, 2311, 29897, 13, 1678, 4036, 29889, 845, 21897, 29898, 1066, 2187, 29897, 13, 1678, 270, 1862, 353, 731, 580, 13, 1678, 363, 921, 29892, 343, 297, 11909, 29901, 13, 4706, 22092, 943, 353, 679, 29918, 484, 1141, 29890, 943, 29898, 29916, 29892, 343, 29897, 13, 4706, 3889, 353, 518, 9877, 297, 270, 1862, 363, 302, 29890, 297, 22092, 943, 29962, 13, 4706, 565, 3889, 29889, 2798, 29898, 5574, 29897, 529, 29871, 29945, 29901, 13, 9651, 270, 1862, 29889, 1202, 3552, 29916, 29892, 343, 876, 13, 1678, 736, 270, 1862, 13, 13, 13, 1753, 1653, 29918, 655, 911, 29898, 29916, 2311, 29892, 343, 2311, 1125, 13, 1678, 9995, 11609, 29879, 263, 921, 2311, 29930, 952, 675, 611, 911, 408, 263, 1347, 15945, 29908, 13, 1678, 270, 1862, 353, 5706, 29918, 6333, 29918, 1066, 2187, 29898, 29916, 2311, 29892, 343, 2311, 29897, 13, 1678, 611, 911, 353, 1653, 29918, 7720, 29918, 1807, 29898, 7778, 29892, 921, 2311, 29892, 343, 2311, 29897, 13, 1678, 736, 611, 911, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 270, 1862, 353, 731, 3552, 29898, 29896, 29892, 29896, 511, 313, 29896, 29892, 29906, 511, 313, 29896, 29892, 29941, 511, 313, 29906, 29892, 29906, 511, 313, 29941, 29892, 29896, 511, 313, 29941, 29892, 29906, 511, 313, 29941, 29892, 29941, 4961, 13, 1678, 1596, 29898, 3258, 29918, 7720, 29918, 1807, 29898, 7778, 29892, 29871, 29945, 29892, 29871, 29945, 876, 13, 13, 1678, 11909, 353, 679, 29918, 497, 29918, 6333, 29918, 1066, 2187, 29898, 29945, 29892, 29871, 29945, 29897, 13, 1678, 1596, 29898, 3258, 29918, 7720, 29918, 1807, 29898, 1066, 2187, 29892, 29871, 29945, 29892, 29871, 29945, 876, 13, 13, 1678, 22092, 943, 353, 679, 29918, 484, 1141, 29890, 943, 29898, 29941, 29892, 29871, 29906, 29897, 13, 1678, 1596, 29898, 3258, 29918, 7720, 29918, 1807, 29898, 484, 1141, 29890, 943, 29892, 29871, 29945, 29892, 29871, 29945, 876, 13, 13, 1678, 611, 911, 353, 1653, 29918, 655, 911, 29898, 29896, 29906, 29892, 29871, 29955, 29897, 13, 1678, 1596, 29898, 655, 911, 29897, 13, 2 ]
Chatbot.py
CeFlorian/ChatBot
0
157474
<filename>Chatbot.py from chatterbot import ChatBot from chatterbot.trainers import ListTrainer from chatterbot.trainers import ChatterBotCorpusTrainer import discord import base64 from Crypto import Random from Crypto.Hash import SHA256 from Crypto.Cipher import AES def cipherAES(password, iv): key = SHA256.new(password).digest() return AES.new(key, AES.MODE_CFB, iv) def encrypt2(plaintext, password): iv = Random.new().read(AES.block_size) return base64.b64encode(iv + cipherAES(password, iv).encrypt(plaintext)) def decrypt2(ciphertext, password): d = base64.b64decode(ciphertext) iv, ciphertext = d[:AES.block_size], d[AES.block_size:] return cipherAES(password, iv).decrypt(ciphertext) llaveEncripted = '<KEY>' llave = decrypt2(llaveEncripted, b'mypass').decode("utf-8") chat = ChatBot('Boty') """ talk = ['Hola', 'Que tal', 'Tengo una pregunta', 'Si, dime', 'Cuantos cursos puedo llevar en la univerisidad?', 'Lo normal son 5 cursos, para mas información acerca de los cursos y requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Cuales cursos puedo llevar en el semestre?', 'Dime de que semestre quieres conocer los cursos que corresponden', 'Primer ciclo', 'Al primer semestre correponden los siguientes cursos:\n 1590-001. DESARROLLO HUMANO Y PROFESIONAL,\n 1590-002. METODOLOGIA DE LA INVESTIGACION,\n 1590-003. CONTABILIDAD I,\n 1590-004. INTRODUCCION A LOS SISTEMAS DE COMPUTO,\n 1590-005. LOGICA DE SISTEMAS,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Segundo ciclo', 'Al segundo semestre correponden los siguientes cursos:\n 1590-006. PRECALCULO,\n 1590-007. ALGEBRA LINEAL,\n 1590-008. ALGORITMOS,\n 1590-009. CONTABILIDAD II,\n 1590-010. MATEMATICA DISCRETA,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Tercer ciclo', 'Al tercer semestre correponden los siguientes cursos:\n 1590-011. FISICA I,\n 1590-012. PROGRAMACION I,\n 1590-013. CALCULO I,\n 1590-014. PROCESO ADMINISTRATIVO,\n 1590-015. DERECHO INFORMATICO,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Cuarto ciclo', 'Al cuarto semestre correponden los siguientes cursos:\n 1590-016. MICROECONOMIA,\n 1590-017. PROGRAMACION II,\n 1590-018. CALCULO II,\n 1590-019. ESTADISTICA I,\n 1590-020. FISICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Quinto ciclo', 'Al quinto semestre correponden los siguientes cursos:\n 1590-021. METODOS NUMERICOS,\n 1590-022. PROGRAMACION III,\n 1590-023. EMPRENDEDORES DE NEGOCIOS,\n 1590-024. ELECTRONICA ANALOGICA,\n 1590-025. ESTADISTICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Sexto ciclo','Al sexto semestre correponden los siguientes cursos: 1590026 INVESTIGACION DE OPERACIONES. 1590027 BASES DE DATOS. 1590028 AUTOMATAS Y LENGUAJES FORMALES. 1590029 SISTEMAS OPERATIVOS I. 1590030 ELECTRONICA DIGITAL.', 'Septimo ciclo', 'Al septimo semestre correponden los siguientes cursos: 1590031 BASES DE DATOS II. 1590032 ANALISIS DE SISTEMAS I. 1590033 SISTEMAS OPERATIVOS II. 1590034 ARQUITECTURA DE COMPUTADORAS I. 1590035 COMPILADORES.', 'Octavo ciclo', 'Al octavo semestre correponden los siguientes cursos: 1590036 DESARROLLO WEB. 1590037 ANALISIS DE SISTEMAS II. 1590038 REDES DE COMPUTADORAS I. 1590039 ETICA PROFESIONAL. 1590040 ARQUITECTURA DE COMPUTADORAS II.', 'Noveno ciclo', 'Al noveno semestre correponden los siguientes cursos: 1590041 ADMINISTRACION DE TECNOLOGIAS DE INFORMACION. 1590042 INGENIERIA DE SOFTWARE. 1590043 PROYECTOD DE GRADUACION I. 1590044 REDES DE COMPUTADORAS II. 1590045 INTELIGENCIA ARTIFICIA.', 'Decimo ciclo','Al decimo semestre correponden los siguientes cursos: 1590046 TELECOMUNICACIONES. 1590047 SEMINARIOS DE TECNOLOGIAS DE INFORMACION. 1590048 ASEGURAMIENTO DE LA CALIDAD DEL SOFTWARE. 1590049 PROYECTO DE GRADUACION II. 1590050 SEGURIDAD Y AUDITORIA DE SISTEMAS.', 'Como puedo inscribirme en linea?', 'Los pasos para inscribirse son: 1. Entregar documentación en Registro y Control Académico\n 2. Pago de Matrícula\n 3. Asignación de Cursos. Los pagos puedes hacerlos por medio de la pagina de la Universidad: https://apps2.umg.edu.gt/pagos/,\r\n o\r por medio de tu banca en linea. \n Para obtener mas información sobre requisitos de ingreso visitar: https://umg.edu.gt/info/aspirantes \n Y para llenar formulario de nuevo estudiante visitar: https://apps2.umg.edu.gt/nuevosestudiantes/ Y para información sobre inscripciones visitar https://umg.edu.gt/info/inscripciones \n Y para asignar cursos en linea puedes visitar: https://umg.edu.gt/info/estudiantes/asignaciones', 'Cuales son los pasos para graduarme', 'Son los siguientes: a) 1000 horas de práctica laboral profesional: a partir del 7mo. ciclo b) Evaluación general en áreas de conocimiento (escalonado en 3 etapas): 1. Area de ciencias de la ingeniería: aprobado del 1 al 6o ciclo e inglés intermedios 4. 2. Área de análisis, diseño y Desarrollo: Aprobados del 1o. al 8o. ciclos e inglés avanzados II 3. Área de administración de tecnologías de información: Aprobados del 1o. al 10o. ciclo e inglés avanzados IV c) Trabajo de graduación ó 50% de créditos de una de las maestrías autorizadas.', 'Como hago un examen extraordinario', 'Debes de pagar 100 quetzales en tu banco y luego presentarsela a tu catedratico para tener el derecho', 'Por que no veo mi nota en el sistema', 'Puede ser por dos razones:\n 1.No estas solvente\n 2.No te examinaste', 'Cual es el proceso de cierre?, 'El proceso de cierre es el siguiente, debes tener ganados los 50 cursos que tiene la carrera para que puedas cerrar tu pensum.', 'Como apruebo mi proyecto de graduación?', '.Llevar un control de las asesorías y entrega de borradores de su Trabajo, al docente asesor y al revisor, por medio escrito haciendo constar fechas de entrega y devolución de los mismos, con las correcciones o enmiendas pertinentes. En otras palabras, el estudiante deberá llevar una bitácora del desarrollo del Trabajo de Graduación. Para mas info visita:http://cdn.umg.edu.gt/pdf/pregrados/arquitectura/normativos/normativo_trabajo_graduacion.pdf' 'Muchas gracias', 'Es un placer, Saludos'] """ trainer = ChatterBotCorpusTrainer(chat) trainer.train("chatterbot.corpus.spanish") trainer = ListTrainer(chat) #trainer.train(talk) trainer.train(['Hola', 'Hola, como te va?', 'Tengo una pregunta', 'Si, dime...' ]) trainer.train(['como puedo inscribirme en linea', 'Los pasos para inscribirse son: 1. Entregar documentación en Registro y Control Académico\n 2. Pago de Matrícula\n 3. Asignación de Cursos. Los pagos puedes hacerlos por medio de la pagina de la Universidad: https://apps2.umg.edu.gt/pagos/,\r\n o\r por medio de tu banca en linea. \n Para obtener mas información sobre requisitos de ingreso visitar: https://umg.edu.gt/info/aspirantes \n Y para llenar formulario de nuevo estudiante visitar: https://apps2.umg.edu.gt/nuevosestudiantes/ Y para información sobre inscripciones visitar https://umg.edu.gt/info/inscripciones \n Y para asignar cursos en linea puedes visitar: https://umg.edu.gt/info/estudiantes/asignaciones', 'Cuales son los pasos para graduarme', 'Son los siguientes: a) 1000 horas de práctica laboral profesional: a partir del 7mo. ciclo b) Evaluación general en áreas de conocimiento (escalonado en 3 etapas): 1. Area de ciencias de la ingeniería: aprobado del 1 al 6o ciclo e inglés intermedios 4. 2. Área de análisis, diseño y Desarrollo: Aprobados del 1o. al 8o. ciclos e inglés avanzados II 3. Área de administración de tecnologías de información: Aprobados del 1o. al 10o. ciclo e inglés avanzados IV c) Trabajo de graduación ó 50% de créditos de una de las maestrías autorizadas.', 'como hago un examen extraordinario', 'Debes de pagar 100 quetzales en tu banco y luego presentarsela a tu catedratico para tener el derecho', 'por que no veo mi nota en el sistema', 'Puede ser por dos razones:\n 1.No estas solvente\n 2.No te examinaste', 'muchas gracias', 'Es un placer, Saludos' ]) trainer.train(['cuales y que cursos puedo llevar en el semestre', 'Dime de que semestre quieres conocer los cursos que corresponden', 'cuantos cursos llevaria en la U Universidad', 'Lo normal son 5 cursos, para mas información acerca de los cursos y requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'primer 1er 1 ciclo', 'Al primer semestre correponden los siguientes cursos:\n 1590-001. DESARROLLO HUMANO Y PROFESIONAL,\n 1590-002. METODOLOGIA DE LA INVESTIGACION,\n 1590-003. CONTABILIDAD I,\n 1590-004. INTRODUCCION A LOS SISTEMAS DE COMPUTO,\n 1590-005. LOGICA DE SISTEMAS,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'segundo 2do 2 ciclo', 'Al segundo semestre correponden los siguientes cursos:\n 1590-006. PRECALCULO,\n 1590-007. ALGEBRA LINEAL,\n 1590-008. ALGORITMOS,\n 1590-009. CONTABILIDAD II,\n 1590-010. MATEMATICA DISCRETA,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'tercer 3ro 3 ciclo', 'Al tercer semestre correponden los siguientes cursos:\n 1590-011. FISICA I,\n 1590-012. PROGRAMACION I,\n 1590-013. CALCULO I,\n 1590-014. PROCESO ADMINISTRATIVO,\n 1590-015. DERECHO INFORMATICO,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'cuarto 4to 4 ciclo', 'Al cuarto semestre correponden los siguientes cursos:\n 1590-016. MICROECONOMIA,\n 1590-017. PROGRAMACION II,\n 1590-018. CALCULO II,\n 1590-019. ESTADISTICA I,\n 1590-020. FISICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'quinto ciclo', 'Al quinto semestre correponden los siguientes cursos:\n 1590-021. METODOS NUMERICOS,\n 1590-022. PROGRAMACION III,\n 1590-023. EMPRENDEDORES DE NEGOCIOS,\n 1590-024. ELECTRONICA ANALOGICA,\n 1590-025. ESTADISTICA II,\n para mas información acerca de los cursos y sus requisitos puedes visitar: https://apps2.umg.edu.gt/pensum', 'Sexto ciclo','Al sexto semestre correponden los siguientes cursos: 1590026 INVESTIGACION DE OPERACIONES. 1590027 BASES DE DATOS. 1590028 AUTOMATAS Y LENGUAJES FORMALES. 1590029 SISTEMAS OPERATIVOS I. 1590030 ELECTRONICA DIGITAL.', 'Septimo ciclo', 'Al septimo semestre correponden los siguientes cursos: 1590031 BASES DE DATOS II. 1590032 ANALISIS DE SISTEMAS I. 1590033 SISTEMAS OPERATIVOS II. 1590034 ARQUITECTURA DE COMPUTADORAS I. 1590035 COMPILADORES.', 'Oct<NAME>', 'Al octavo semestre correponden los siguientes cursos: 1590036 DESARROLLO WEB. 1590037 ANALISIS DE SISTEMAS II. 1590038 REDES DE COMPUTADORAS I. 1590039 ETICA PROFESIONAL. 1590040 ARQUITECTURA DE COMPUTADORAS II.', 'Noveno ciclo', 'Al noveno semestre correponden los siguientes cursos: 1590041 ADMINISTRACION DE TECNOLOGIAS DE INFORMACION. 1590042 INGENIERIA DE SOFTWARE. 1590043 PROYECTOD DE GRADUACION I. 1590044 REDES DE COMPUTADORAS II. 1590045 INTELIGENCIA ARTIFICIA.', 'Decimo ciclo','Al decimo semestre correponden los siguientes cursos: 1590046 TELECOMUNICACIONES. 1590047 SEMINARIOS DE TECNOLOGIAS DE INFORMACION. 1590048 ASEGURAMIENTO DE LA CALIDAD DEL SOFTWARE. 1590049 PROYECTO DE GRADUACION II. 1590050 SEGURIDAD Y AUDITORIA DE SISTEMAS.', ]) #""" #while True: # peticion = input('Tu: ') # respuesta = chat.get_response(peticion) # print('BOOT: ', respuesta) disparate='Así no va!' entradaAnterior="" respAnterior="" async def validaciones(peticion): global disparate global entradaAnterior global respAnterior if respAnterior == '¿Qué debería haber dicho?': entradaCorreccion = peticion trainer.train([entradaAnterior, entradaCorreccion]) respuesta = "He aprendiendo que cuando digas {} debo responder {}".format(entradaAnterior, entradaCorreccion) elif peticion == disparate: respuesta = '¿Qué debería haber dicho?' else: entradaAnterior = peticion respuesta = chat.get_response(peticion) respAnterior = respuesta return respuesta while True: cliente = discord.Client() @cliente.event async def on_message(mensaje): if mensaje.author == cliente.user: return peticion = mensaje.content respuesta = await validaciones(peticion) if not respuesta or respuesta == '': await mensaje.channel.send('No se ha podido obtener respuesta, por favor intente nuevamente.') else: await mensaje.channel.send(respuesta) cliente.run(llave) """ while True: peticion = input('Tu: ') respuesta = chat.get_response(peticion) if respAnterior == '¿Qué debería haber dicho?': entradaCorreccion = peticion trainer.train([entradaAnterior, entradaCorreccion]) respuesta = "He aprendiendo que cuando digas {} debo responder {}".format(entradaAnterior, entradaCorreccion) if peticion == 'Asi no va!': respuesta = '¿Qué debería haber dicho?' else: entradaAnterior = peticion respAnterior = respuesta print('BOOT: ', respuesta) """
[ 1, 529, 9507, 29958, 1451, 271, 7451, 29889, 2272, 13, 3166, 521, 2620, 7451, 1053, 29871, 678, 271, 29933, 327, 30004, 13, 3166, 521, 2620, 7451, 29889, 14968, 414, 1053, 2391, 5323, 4983, 30004, 13, 3166, 521, 2620, 7451, 29889, 14968, 414, 1053, 678, 2620, 29933, 327, 12521, 13364, 5323, 4983, 30004, 13, 5215, 2313, 536, 30004, 13, 30004, 13, 5215, 2967, 29953, 29946, 30004, 13, 3166, 315, 17929, 1053, 16968, 30004, 13, 3166, 315, 17929, 29889, 10438, 1053, 317, 15715, 29906, 29945, 29953, 30004, 13, 3166, 315, 17929, 29889, 29907, 29875, 8096, 1053, 319, 2890, 30004, 13, 30004, 13, 30004, 13, 1753, 4583, 8096, 29909, 2890, 29898, 5630, 29892, 20444, 1125, 30004, 13, 1678, 1820, 353, 317, 15715, 29906, 29945, 29953, 29889, 1482, 29898, 5630, 467, 7501, 342, 26471, 13, 1678, 736, 319, 2890, 29889, 1482, 29898, 1989, 29892, 319, 2890, 29889, 20387, 29918, 9207, 29933, 29892, 20444, 8443, 13, 30004, 13, 1753, 27924, 29906, 29898, 24595, 726, 29892, 4800, 1125, 30004, 13, 1678, 20444, 353, 16968, 29889, 1482, 2141, 949, 29898, 29909, 2890, 29889, 1271, 29918, 2311, 8443, 13, 1678, 736, 2967, 29953, 29946, 29889, 29890, 29953, 29946, 12508, 29898, 440, 718, 4583, 8096, 29909, 2890, 29898, 5630, 29892, 20444, 467, 3977, 4641, 29898, 24595, 726, 876, 30004, 13, 30004, 13, 1753, 1602, 4641, 29906, 29898, 455, 8096, 726, 29892, 4800, 1125, 30004, 13, 1678, 270, 353, 2967, 29953, 29946, 29889, 29890, 29953, 29946, 13808, 29898, 455, 8096, 726, 8443, 13, 1678, 20444, 29892, 4583, 8096, 726, 353, 270, 7503, 29909, 2890, 29889, 1271, 29918, 2311, 1402, 270, 29961, 29909, 2890, 29889, 1271, 29918, 2311, 17531, 30004, 13, 1678, 736, 4583, 8096, 29909, 2890, 29898, 5630, 29892, 20444, 467, 7099, 4641, 29898, 455, 8096, 726, 8443, 13, 29871, 6756, 13, 30004, 13, 13520, 345, 2369, 924, 287, 353, 12801, 10818, 16299, 30004, 13, 13520, 345, 353, 1602, 4641, 29906, 29898, 13520, 345, 2369, 924, 287, 29892, 289, 29915, 1357, 3364, 2824, 13808, 703, 9420, 29899, 29947, 1159, 30004, 13, 30004, 13, 30004, 13, 13496, 353, 678, 271, 29933, 327, 877, 29933, 18820, 1495, 30004, 13, 15945, 19451, 13, 29873, 2235, 353, 6024, 29950, 2963, 742, 525, 8654, 5969, 23592, 13, 4706, 525, 29911, 22260, 1185, 16177, 16138, 742, 525, 25598, 29892, 270, 603, 23592, 13, 4706, 525, 29907, 29884, 424, 359, 18580, 359, 2653, 23162, 19804, 1707, 427, 425, 443, 2147, 275, 2368, 29973, 742, 525, 3410, 4226, 1487, 29871, 29945, 18580, 359, 29892, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 742, 6756, 13, 4706, 525, 29907, 950, 267, 18580, 359, 2653, 23162, 19804, 1707, 427, 560, 3031, 15679, 29973, 742, 29871, 525, 29928, 603, 316, 712, 3031, 15679, 439, 631, 267, 11515, 261, 1232, 18580, 359, 712, 3928, 264, 23592, 13, 4706, 525, 4040, 4193, 18286, 417, 742, 525, 2499, 7130, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29896, 29889, 18539, 1718, 1672, 2208, 29949, 379, 29965, 1529, 6632, 612, 13756, 29943, 2890, 2725, 1964, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29906, 29889, 341, 2544, 29949, 3970, 14480, 10764, 5012, 17900, 2672, 12064, 1254, 6259, 2477, 2725, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29941, 29889, 8707, 29911, 2882, 6227, 1367, 3035, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29946, 29889, 19578, 1672, 14849, 4174, 2725, 319, 365, 3267, 317, 9047, 26862, 29903, 5012, 4810, 3580, 2692, 29949, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29945, 29889, 25401, 2965, 29909, 5012, 317, 9047, 26862, 29903, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 17669, 6201, 18286, 417, 742, 525, 2499, 14729, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29953, 29889, 349, 1525, 29907, 1964, 29907, 29965, 3927, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29955, 29889, 14445, 1692, 29933, 4717, 365, 8895, 1964, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29947, 29889, 14445, 29954, 1955, 1806, 29924, 3267, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29929, 29889, 8707, 29911, 2882, 6227, 1367, 3035, 1944, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29900, 29889, 341, 3040, 29924, 1299, 2965, 29909, 28657, 22245, 6040, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 29911, 261, 2265, 18286, 417, 742, 525, 2499, 1935, 2265, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29896, 29889, 383, 3235, 2965, 29909, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29906, 29889, 13756, 29954, 4717, 1529, 29907, 2725, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29941, 29889, 315, 1964, 29907, 29965, 3927, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29946, 29889, 13756, 27266, 29949, 11033, 16173, 9047, 29934, 1299, 5667, 29949, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29945, 29889, 360, 27267, 3210, 29949, 2672, 19094, 1299, 2965, 29949, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 29907, 29884, 22171, 18286, 417, 742, 525, 2499, 2723, 22171, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29953, 29889, 341, 2965, 1672, 29923, 6007, 6488, 10764, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29955, 29889, 13756, 29954, 4717, 1529, 29907, 2725, 1944, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29947, 29889, 315, 1964, 29907, 29965, 3927, 1944, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29929, 29889, 382, 1254, 3035, 9047, 2965, 29909, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29900, 29889, 383, 3235, 2965, 29909, 1944, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 2182, 8941, 18286, 417, 742, 525, 2499, 439, 8941, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29896, 29889, 341, 2544, 13668, 3267, 28019, 1001, 2965, 3267, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29906, 29889, 13756, 29954, 4717, 1529, 29907, 2725, 4786, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29941, 29889, 382, 3580, 29934, 1430, 2287, 3970, 15989, 5012, 405, 11787, 29949, 8426, 3267, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29946, 29889, 382, 3281, 29934, 1164, 2965, 29909, 13764, 1964, 29949, 29954, 2965, 29909, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29945, 29889, 382, 1254, 3035, 9047, 2965, 29909, 1944, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 29903, 1062, 29877, 18286, 417, 3788, 2499, 409, 486, 29877, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29953, 2672, 12064, 1254, 6259, 2477, 2725, 5012, 6418, 1001, 2477, 2725, 2890, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29955, 350, 8127, 29903, 5012, 27640, 3267, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29947, 26524, 6488, 1299, 3289, 612, 365, 1430, 29954, 29965, 29909, 29967, 2890, 15842, 1529, 17101, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29929, 317, 9047, 26862, 29903, 6418, 1001, 1299, 5667, 3267, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29900, 382, 3281, 29934, 1164, 2965, 29909, 360, 6259, 1806, 1964, 29889, 23592, 13, 4706, 525, 2008, 415, 4200, 18286, 417, 742, 525, 2499, 4843, 4200, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29896, 350, 8127, 29903, 5012, 27640, 3267, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29906, 13764, 1964, 3235, 3235, 5012, 317, 9047, 26862, 29903, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29941, 317, 9047, 26862, 29903, 6418, 1001, 1299, 5667, 3267, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29946, 9033, 13356, 9094, 1783, 4574, 29909, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29945, 23353, 2227, 29931, 3035, 29949, 15989, 29889, 23592, 13, 4706, 525, 25375, 27082, 18286, 417, 742, 525, 2499, 4725, 27082, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29953, 18539, 1718, 1672, 2208, 29949, 399, 25752, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29955, 13764, 1964, 3235, 3235, 5012, 317, 9047, 26862, 29903, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29947, 5195, 2287, 29903, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29929, 382, 29911, 2965, 29909, 13756, 29943, 2890, 2725, 1964, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29900, 9033, 13356, 9094, 1783, 4574, 29909, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 1944, 29889, 23592, 13, 4706, 525, 25363, 8154, 18286, 417, 742, 525, 2499, 2420, 8154, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29896, 11033, 16173, 9047, 29934, 2477, 2725, 5012, 323, 11206, 6632, 14480, 29902, 3289, 5012, 2672, 22051, 1529, 29907, 2725, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29906, 2672, 24647, 29902, 1001, 10764, 5012, 7791, 7818, 12982, 1525, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29941, 13756, 29979, 13845, 13668, 5012, 18016, 3035, 29965, 2477, 2725, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29946, 5195, 2287, 29903, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29945, 2672, 4330, 5265, 24647, 8426, 29909, 9033, 29911, 6545, 2965, 10764, 29889, 23592, 13, 4706, 525, 6185, 4200, 18286, 417, 3788, 2499, 1602, 4200, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29953, 17067, 1307, 19795, 3904, 2965, 2477, 2725, 2890, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29955, 3725, 16173, 1718, 25925, 5012, 323, 11206, 6632, 14480, 29902, 3289, 5012, 2672, 22051, 1529, 29907, 2725, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29947, 319, 1660, 29954, 4574, 5194, 29902, 3919, 29949, 5012, 17900, 315, 1964, 1367, 3035, 5012, 29931, 7791, 7818, 12982, 1525, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29929, 13756, 29979, 13845, 29949, 5012, 18016, 3035, 29965, 2477, 2725, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29945, 29900, 3725, 29954, 4574, 1367, 3035, 612, 319, 15789, 1806, 1955, 10764, 5012, 317, 9047, 26862, 29903, 29889, 23592, 13, 4706, 525, 1523, 29877, 2653, 23162, 1663, 699, 20397, 1004, 427, 26241, 29973, 742, 525, 29286, 2331, 359, 1702, 1663, 699, 20397, 344, 1487, 29901, 29871, 29896, 29889, 4284, 1727, 279, 1842, 2709, 427, 2169, 19150, 343, 11264, 7255, 15335, 1417, 29905, 29876, 29871, 29906, 29889, 349, 4425, 316, 5345, 29878, 13984, 29905, 29876, 29871, 29941, 29889, 1094, 647, 2709, 316, 315, 1295, 359, 29889, 4602, 10203, 359, 2653, 11696, 14557, 5409, 1277, 19301, 316, 425, 10203, 1099, 316, 425, 12824, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 13573, 359, 29914, 2053, 29878, 29905, 29876, 288, 29905, 29878, 1277, 19301, 316, 5291, 9892, 1113, 427, 26241, 29889, 320, 29876, 12994, 14403, 759, 5516, 29717, 4166, 5054, 275, 12870, 316, 2348, 28857, 1998, 3673, 29901, 2045, 597, 398, 29887, 29889, 6085, 29889, 4141, 29914, 3888, 29914, 4692, 381, 3794, 320, 29876, 612, 1702, 301, 2435, 279, 883, 1070, 601, 316, 15671, 13497, 12361, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29876, 434, 23517, 342, 4749, 3794, 29914, 29871, 612, 1702, 29717, 4166, 1663, 699, 6739, 2884, 1998, 3673, 2045, 597, 398, 29887, 29889, 6085, 29889, 4141, 29914, 3888, 29914, 1144, 699, 6739, 2884, 320, 29876, 612, 1702, 408, 647, 279, 18580, 359, 427, 26241, 2653, 11696, 1998, 3673, 29901, 2045, 597, 398, 29887, 29889, 6085, 29889, 4141, 29914, 3888, 29914, 342, 4749, 3794, 29914, 294, 647, 6027, 23592, 13, 4706, 525, 29907, 950, 267, 1487, 1232, 2331, 359, 1702, 10591, 279, 1004, 742, 525, 29903, 265, 1232, 29673, 29901, 263, 29897, 29871, 29896, 29900, 29900, 29900, 4029, 294, 316, 544, 18343, 983, 10212, 284, 13091, 1848, 29901, 263, 8019, 628, 29871, 29955, 4346, 29889, 18286, 417, 289, 29897, 382, 4387, 2709, 2498, 427, 3976, 12588, 316, 11515, 9043, 313, 267, 1052, 265, 912, 427, 29871, 29941, 634, 481, 294, 1125, 29871, 29896, 29889, 18320, 316, 274, 819, 3465, 316, 425, 24386, 631, 1553, 29901, 11712, 29890, 912, 628, 29871, 29896, 394, 29871, 29953, 29877, 18286, 417, 321, 5102, 1006, 2168, 2363, 29871, 29946, 29889, 29871, 29906, 29889, 7260, 5638, 316, 385, 2464, 15773, 29892, 10267, 8266, 343, 2726, 279, 20426, 29901, 319, 22795, 2255, 628, 29871, 29896, 29877, 29889, 394, 29871, 29947, 29877, 29889, 18286, 5409, 321, 5102, 1029, 4096, 2255, 1944, 29871, 29941, 29889, 7260, 5638, 316, 4113, 12496, 1290, 316, 20790, 1189, 8577, 316, 29717, 29901, 319, 22795, 2255, 628, 29871, 29896, 29877, 29889, 394, 29871, 29896, 29900, 29877, 29889, 18286, 417, 321, 5102, 1029, 4096, 2255, 6599, 274, 29897, 3201, 29890, 7069, 316, 10591, 2709, 17604, 29871, 29945, 29900, 29995, 316, 2181, 2487, 12870, 316, 1185, 316, 1869, 611, 16444, 8577, 8478, 466, 3922, 29889, 23592, 13, 4706, 525, 1523, 29877, 298, 4425, 443, 4392, 264, 4805, 4194, 2628, 742, 525, 10251, 267, 316, 10203, 279, 29871, 29896, 29900, 29900, 439, 6618, 2122, 427, 5291, 9892, 1111, 343, 19102, 2198, 1503, 3100, 263, 5291, 274, 630, 3605, 1417, 1702, 22975, 560, 14923, 1859, 23592, 13, 4706, 525, 29925, 272, 712, 694, 2453, 29877, 3737, 451, 29874, 427, 560, 10502, 742, 525, 29925, 29884, 2742, 724, 1277, 3248, 8006, 2873, 3583, 29876, 29871, 29896, 29889, 3782, 22388, 899, 794, 29872, 29905, 29876, 29871, 29906, 29889, 3782, 734, 4392, 262, 4350, 23592, 13, 4706, 525, 29907, 950, 831, 560, 14177, 29877, 316, 274, 6349, 14579, 525, 6489, 14177, 29877, 316, 274, 6349, 831, 560, 18436, 29892, 2553, 267, 22975, 9581, 2255, 1232, 29871, 29945, 29900, 18580, 359, 712, 10258, 425, 22750, 1702, 712, 2653, 287, 294, 274, 3127, 279, 5291, 10420, 398, 29889, 23592, 13, 4706, 525, 1523, 29877, 21783, 434, 833, 3737, 28255, 316, 10591, 2709, 29973, 742, 15300, 29931, 280, 1707, 443, 2761, 316, 1869, 27985, 272, 8577, 343, 875, 1727, 29874, 316, 9820, 3665, 2361, 316, 480, 3201, 29890, 7069, 29892, 394, 1574, 2016, 27985, 272, 343, 394, 337, 19188, 29892, 1277, 19301, 3966, 9296, 447, 27182, 1040, 279, 1238, 27148, 316, 875, 1727, 29874, 343, 316, 1555, 16249, 316, 1232, 21436, 359, 29892, 378, 1869, 14515, 14980, 288, 427, 2460, 355, 294, 13499, 262, 5326, 29889, 1174, 16255, 27555, 3417, 29892, 560, 13497, 12361, 316, 495, 29976, 19804, 1707, 1185, 2586, 25968, 2207, 628, 27862, 628, 3201, 29890, 7069, 316, 1632, 13467, 2709, 29889, 12994, 5516, 5235, 1998, 2028, 29901, 1124, 597, 13687, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 5140, 29914, 1457, 629, 2255, 29914, 19862, 4496, 2002, 29914, 12324, 29002, 29914, 12324, 11692, 29918, 3018, 29890, 7069, 29918, 5105, 29884, 16337, 29889, 5140, 29915, 30004, 13, 4706, 525, 29924, 987, 294, 2646, 3465, 742, 525, 14190, 443, 2174, 2265, 29892, 3956, 566, 359, 2033, 30004, 13, 4706, 9995, 30004, 13, 4706, 6756, 13, 3018, 4983, 353, 678, 2620, 29933, 327, 12521, 13364, 5323, 4983, 29898, 13496, 8443, 13, 3018, 4983, 29889, 14968, 703, 305, 2620, 7451, 29889, 2616, 13364, 29889, 9653, 728, 1159, 539, 6756, 13, 29871, 6756, 13, 3018, 4983, 353, 2391, 5323, 4983, 29898, 13496, 8443, 13, 29937, 3018, 4983, 29889, 14968, 29898, 29873, 2235, 8443, 13, 30004, 13, 30004, 13, 3018, 4983, 29889, 14968, 18959, 29950, 2963, 742, 525, 29950, 2963, 29892, 1986, 734, 2947, 29973, 23592, 13, 4706, 525, 29911, 22260, 1185, 16177, 16138, 742, 525, 25598, 29892, 270, 603, 856, 29915, 30004, 13, 308, 2314, 30004, 13, 30004, 13, 3018, 4983, 29889, 14968, 18959, 23700, 2653, 23162, 1663, 699, 20397, 1004, 427, 26241, 742, 525, 29286, 2331, 359, 1702, 1663, 699, 20397, 344, 1487, 29901, 29871, 29896, 29889, 4284, 1727, 279, 1842, 2709, 427, 2169, 19150, 343, 11264, 7255, 15335, 1417, 29905, 29876, 29871, 29906, 29889, 349, 4425, 316, 5345, 29878, 13984, 29905, 29876, 29871, 29941, 29889, 1094, 647, 2709, 316, 315, 1295, 359, 29889, 4602, 10203, 359, 2653, 11696, 14557, 5409, 1277, 19301, 316, 425, 10203, 1099, 316, 425, 12824, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 13573, 359, 29914, 2053, 29878, 29905, 29876, 288, 29905, 29878, 1277, 19301, 316, 5291, 9892, 1113, 427, 26241, 29889, 320, 29876, 12994, 14403, 759, 5516, 29717, 4166, 5054, 275, 12870, 316, 2348, 28857, 1998, 3673, 29901, 2045, 597, 398, 29887, 29889, 6085, 29889, 4141, 29914, 3888, 29914, 4692, 381, 3794, 320, 29876, 612, 1702, 301, 2435, 279, 883, 1070, 601, 316, 15671, 13497, 12361, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29876, 434, 23517, 342, 4749, 3794, 29914, 29871, 612, 1702, 29717, 4166, 1663, 699, 6739, 2884, 1998, 3673, 2045, 597, 398, 29887, 29889, 6085, 29889, 4141, 29914, 3888, 29914, 1144, 699, 6739, 2884, 320, 29876, 612, 1702, 408, 647, 279, 18580, 359, 427, 26241, 2653, 11696, 1998, 3673, 29901, 2045, 597, 398, 29887, 29889, 6085, 29889, 4141, 29914, 3888, 29914, 342, 4749, 3794, 29914, 294, 647, 6027, 23592, 13, 539, 525, 29907, 950, 267, 1487, 1232, 2331, 359, 1702, 10591, 279, 1004, 742, 525, 29903, 265, 1232, 29673, 29901, 263, 29897, 29871, 29896, 29900, 29900, 29900, 4029, 294, 316, 544, 18343, 983, 10212, 284, 13091, 1848, 29901, 263, 8019, 628, 29871, 29955, 4346, 29889, 18286, 417, 289, 29897, 382, 4387, 2709, 2498, 427, 3976, 12588, 316, 11515, 9043, 313, 267, 1052, 265, 912, 427, 29871, 29941, 634, 481, 294, 1125, 29871, 29896, 29889, 18320, 316, 274, 819, 3465, 316, 425, 24386, 631, 1553, 29901, 11712, 29890, 912, 628, 29871, 29896, 394, 29871, 29953, 29877, 18286, 417, 321, 5102, 1006, 2168, 2363, 29871, 29946, 29889, 29871, 29906, 29889, 7260, 5638, 316, 385, 2464, 15773, 29892, 10267, 8266, 343, 2726, 279, 20426, 29901, 319, 22795, 2255, 628, 29871, 29896, 29877, 29889, 394, 29871, 29947, 29877, 29889, 18286, 5409, 321, 5102, 1029, 4096, 2255, 1944, 29871, 29941, 29889, 7260, 5638, 316, 4113, 12496, 1290, 316, 20790, 1189, 8577, 316, 29717, 29901, 319, 22795, 2255, 628, 29871, 29896, 29877, 29889, 394, 29871, 29896, 29900, 29877, 29889, 18286, 417, 321, 5102, 1029, 4096, 2255, 6599, 274, 29897, 3201, 29890, 7069, 316, 10591, 2709, 17604, 29871, 29945, 29900, 29995, 316, 2181, 2487, 12870, 316, 1185, 316, 1869, 611, 16444, 8577, 8478, 466, 3922, 29889, 23592, 13, 4706, 525, 23700, 298, 4425, 443, 4392, 264, 4805, 4194, 2628, 742, 525, 10251, 267, 316, 10203, 279, 29871, 29896, 29900, 29900, 439, 6618, 2122, 427, 5291, 9892, 1111, 343, 19102, 2198, 1503, 3100, 263, 5291, 274, 630, 3605, 1417, 1702, 22975, 560, 14923, 1859, 23592, 13, 4706, 525, 1971, 712, 694, 2453, 29877, 3737, 451, 29874, 427, 560, 10502, 742, 525, 29925, 29884, 2742, 724, 1277, 3248, 8006, 2873, 3583, 29876, 29871, 29896, 29889, 3782, 22388, 899, 794, 29872, 29905, 29876, 29871, 29906, 29889, 3782, 734, 4392, 262, 4350, 23592, 13, 4706, 525, 29885, 987, 294, 2646, 3465, 742, 525, 14190, 443, 2174, 2265, 29892, 3956, 566, 359, 29915, 30004, 13, 308, 2314, 30004, 13, 3018, 4983, 29889, 14968, 18959, 29883, 950, 267, 343, 712, 18580, 359, 2653, 23162, 19804, 1707, 427, 560, 3031, 15679, 742, 525, 29928, 603, 316, 712, 3031, 15679, 439, 631, 267, 11515, 261, 1232, 18580, 359, 712, 3928, 264, 23592, 13, 4706, 525, 4979, 424, 359, 18580, 359, 19804, 1707, 423, 427, 425, 501, 12824, 742, 525, 3410, 4226, 1487, 29871, 29945, 18580, 359, 29892, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 742, 6756, 13, 4706, 525, 558, 4193, 29871, 29896, 261, 29871, 29896, 18286, 417, 742, 525, 2499, 7130, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29896, 29889, 18539, 1718, 1672, 2208, 29949, 379, 29965, 1529, 6632, 612, 13756, 29943, 2890, 2725, 1964, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29906, 29889, 341, 2544, 29949, 3970, 14480, 10764, 5012, 17900, 2672, 12064, 1254, 6259, 2477, 2725, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29941, 29889, 8707, 29911, 2882, 6227, 1367, 3035, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29946, 29889, 19578, 1672, 14849, 4174, 2725, 319, 365, 3267, 317, 9047, 26862, 29903, 5012, 4810, 3580, 2692, 29949, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29945, 29889, 25401, 2965, 29909, 5012, 317, 9047, 26862, 29903, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 10199, 6201, 29871, 29906, 1867, 29871, 29906, 18286, 417, 742, 525, 2499, 14729, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29953, 29889, 349, 1525, 29907, 1964, 29907, 29965, 3927, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29955, 29889, 14445, 1692, 29933, 4717, 365, 8895, 1964, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29947, 29889, 14445, 29954, 1955, 1806, 29924, 3267, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29900, 29929, 29889, 8707, 29911, 2882, 6227, 1367, 3035, 1944, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29900, 29889, 341, 3040, 29924, 1299, 2965, 29909, 28657, 22245, 6040, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 357, 2265, 29871, 29941, 307, 259, 29941, 18286, 417, 742, 525, 2499, 1935, 2265, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29896, 29889, 383, 3235, 2965, 29909, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29906, 29889, 13756, 29954, 4717, 1529, 29907, 2725, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29941, 29889, 315, 1964, 29907, 29965, 3927, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29946, 29889, 13756, 27266, 29949, 11033, 16173, 9047, 29934, 1299, 5667, 29949, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29945, 29889, 360, 27267, 3210, 29949, 2672, 19094, 1299, 2965, 29949, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 4979, 22171, 29871, 29946, 517, 29871, 29946, 18286, 417, 742, 525, 2499, 2723, 22171, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29953, 29889, 341, 2965, 1672, 29923, 6007, 6488, 10764, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29955, 29889, 13756, 29954, 4717, 1529, 29907, 2725, 1944, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29947, 29889, 315, 1964, 29907, 29965, 3927, 1944, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29896, 29929, 29889, 382, 1254, 3035, 9047, 2965, 29909, 306, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29900, 29889, 383, 3235, 2965, 29909, 1944, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 339, 8941, 18286, 417, 742, 525, 2499, 439, 8941, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 3583, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29896, 29889, 341, 2544, 13668, 3267, 28019, 1001, 2965, 3267, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29906, 29889, 13756, 29954, 4717, 1529, 29907, 2725, 4786, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29941, 29889, 382, 3580, 29934, 1430, 2287, 3970, 15989, 5012, 405, 11787, 29949, 8426, 3267, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29946, 29889, 382, 3281, 29934, 1164, 2965, 29909, 13764, 1964, 29949, 29954, 2965, 29909, 2053, 29876, 29871, 29896, 29945, 29929, 29900, 29899, 29900, 29906, 29945, 29889, 382, 1254, 3035, 9047, 2965, 29909, 1944, 2053, 29876, 29871, 1702, 5516, 29717, 1274, 24340, 316, 1232, 18580, 359, 343, 2858, 5054, 275, 12870, 2653, 11696, 1998, 3673, 29901, 2045, 597, 13371, 29906, 29889, 398, 29887, 29889, 6085, 29889, 4141, 29914, 29886, 575, 398, 23592, 13, 4706, 525, 29903, 1062, 29877, 18286, 417, 3788, 2499, 409, 486, 29877, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29953, 2672, 12064, 1254, 6259, 2477, 2725, 5012, 6418, 1001, 2477, 2725, 2890, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29955, 350, 8127, 29903, 5012, 27640, 3267, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29947, 26524, 6488, 1299, 3289, 612, 365, 1430, 29954, 29965, 29909, 29967, 2890, 15842, 1529, 17101, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29906, 29929, 317, 9047, 26862, 29903, 6418, 1001, 1299, 5667, 3267, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29900, 382, 3281, 29934, 1164, 2965, 29909, 360, 6259, 1806, 1964, 29889, 23592, 13, 4706, 525, 2008, 415, 4200, 18286, 417, 742, 525, 2499, 4843, 4200, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29896, 350, 8127, 29903, 5012, 27640, 3267, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29906, 13764, 1964, 3235, 3235, 5012, 317, 9047, 26862, 29903, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29941, 317, 9047, 26862, 29903, 6418, 1001, 1299, 5667, 3267, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29946, 9033, 13356, 9094, 1783, 4574, 29909, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29945, 23353, 2227, 29931, 3035, 29949, 15989, 29889, 23592, 13, 4706, 525, 25375, 29966, 5813, 29958, 742, 525, 2499, 4725, 27082, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29953, 18539, 1718, 1672, 2208, 29949, 399, 25752, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29955, 13764, 1964, 3235, 3235, 5012, 317, 9047, 26862, 29903, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29947, 5195, 2287, 29903, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29941, 29929, 382, 29911, 2965, 29909, 13756, 29943, 2890, 2725, 1964, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29900, 9033, 13356, 9094, 1783, 4574, 29909, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 1944, 29889, 23592, 13, 4706, 525, 25363, 8154, 18286, 417, 742, 525, 2499, 2420, 8154, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29896, 11033, 16173, 9047, 29934, 2477, 2725, 5012, 323, 11206, 6632, 14480, 29902, 3289, 5012, 2672, 22051, 1529, 29907, 2725, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29906, 2672, 24647, 29902, 1001, 10764, 5012, 7791, 7818, 12982, 1525, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29941, 13756, 29979, 13845, 13668, 5012, 18016, 3035, 29965, 2477, 2725, 306, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29946, 5195, 2287, 29903, 5012, 4810, 3580, 2692, 3035, 1955, 3289, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29945, 2672, 4330, 5265, 24647, 8426, 29909, 9033, 29911, 6545, 2965, 10764, 29889, 23592, 13, 4706, 525, 6185, 4200, 18286, 417, 3788, 2499, 1602, 4200, 3031, 15679, 14515, 2818, 264, 1232, 29673, 18580, 359, 29901, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29953, 17067, 1307, 19795, 3904, 2965, 2477, 2725, 2890, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29955, 3725, 16173, 1718, 25925, 5012, 323, 11206, 6632, 14480, 29902, 3289, 5012, 2672, 22051, 1529, 29907, 2725, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29947, 319, 1660, 29954, 4574, 5194, 29902, 3919, 29949, 5012, 17900, 315, 1964, 1367, 3035, 5012, 29931, 7791, 7818, 12982, 1525, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29946, 29929, 13756, 29979, 13845, 29949, 5012, 18016, 3035, 29965, 2477, 2725, 1944, 29889, 29871, 29896, 29945, 29929, 29900, 29900, 29945, 29900, 3725, 29954, 4574, 1367, 3035, 612, 319, 15789, 1806, 1955, 10764, 5012, 317, 9047, 26862, 29903, 29889, 23592, 13, 6756, 13, 308, 2314, 30004, 13, 30004, 13, 30004, 13, 29937, 15945, 19451, 13, 30004, 13, 29937, 8000, 5852, 29901, 30004, 13, 29937, 1678, 5697, 15353, 353, 1881, 877, 23215, 29901, 525, 8443, 13, 29937, 1678, 620, 28959, 353, 13563, 29889, 657, 29918, 5327, 29898, 29886, 7492, 291, 8443, 13, 29937, 1678, 1596, 877, 8456, 2891, 29901, 13420, 620, 28959, 8443, 13, 30004, 13, 30004, 13, 2218, 862, 403, 2433, 2887, 29983, 694, 2947, 20714, 30004, 13, 14856, 1114, 2744, 8733, 13776, 30004, 13, 13713, 2744, 8733, 13776, 30004, 13, 30004, 13, 30004, 13, 12674, 822, 2854, 6027, 29898, 29886, 7492, 291, 1125, 30004, 13, 1678, 6756, 13, 1678, 5534, 17508, 403, 30004, 13, 1678, 5534, 9953, 1114, 2744, 8733, 30004, 13, 1678, 5534, 4613, 2744, 8733, 29871, 6756, 13, 4706, 6756, 13, 1678, 565, 4613, 2744, 8733, 1275, 525, 30158, 2182, 29948, 316, 495, 1553, 23086, 12658, 29877, 29973, 2396, 30004, 13, 4706, 9953, 1114, 12521, 276, 22643, 353, 5697, 15353, 30004, 13, 4706, 1020, 4983, 29889, 14968, 4197, 14856, 1114, 2744, 8733, 29892, 9953, 1114, 12521, 276, 22643, 2314, 30004, 13, 4706, 620, 28959, 353, 376, 3868, 21783, 355, 17008, 712, 10284, 4697, 294, 6571, 316, 833, 620, 27582, 6571, 1642, 4830, 29898, 14856, 1114, 2744, 8733, 29892, 9953, 1114, 12521, 276, 22643, 8443, 13, 1678, 25342, 5697, 15353, 1275, 17508, 403, 29901, 30004, 13, 4706, 620, 28959, 353, 525, 30158, 2182, 29948, 316, 495, 1553, 23086, 12658, 29877, 17901, 30004, 13, 1678, 1683, 29901, 6756, 13, 4706, 9953, 1114, 2744, 8733, 353, 5697, 15353, 30004, 13, 4706, 620, 28959, 353, 13563, 29889, 657, 29918, 5327, 29898, 29886, 7492, 291, 8443, 13, 9651, 6756, 13, 1678, 4613, 2744, 8733, 353, 620, 28959, 30004, 13, 1678, 6756, 13, 1678, 736, 620, 28959, 30004, 13, 4706, 6756, 13, 4706, 6756, 13, 30004, 13, 30004, 13, 8000, 5852, 29901, 30004, 13, 1678, 6756, 13, 1678, 3132, 29872, 353, 2313, 536, 29889, 4032, 26471, 13, 1678, 732, 4645, 29872, 29889, 3696, 30004, 13, 1678, 7465, 822, 373, 29918, 4906, 29898, 29885, 575, 8339, 1125, 268, 6756, 13, 4706, 6756, 13, 4706, 565, 18664, 8339, 29889, 8921, 1275, 3132, 29872, 29889, 1792, 29901, 30004, 13, 9651, 736, 30004, 13, 4706, 5697, 15353, 353, 18664, 8339, 29889, 3051, 30004, 13, 4706, 6756, 13, 4706, 620, 28959, 353, 7272, 2854, 6027, 29898, 29886, 7492, 291, 8443, 13, 4706, 6756, 13, 4706, 565, 451, 620, 28959, 470, 620, 28959, 1275, 525, 2396, 30004, 13, 9651, 7272, 18664, 8339, 29889, 12719, 29889, 6717, 877, 3782, 409, 447, 2532, 1941, 14403, 759, 620, 28959, 29892, 1277, 7853, 938, 2016, 8005, 29894, 2503, 29889, 1495, 30004, 13, 4706, 1683, 29901, 30004, 13, 9651, 7272, 18664, 8339, 29889, 12719, 29889, 6717, 29898, 690, 28959, 8443, 13, 4706, 6756, 13, 1678, 3132, 29872, 29889, 3389, 29898, 13520, 345, 8443, 13, 30004, 13, 30004, 13, 15945, 19451, 13, 8000, 5852, 29901, 30004, 13, 1678, 5697, 15353, 353, 1881, 877, 23215, 29901, 525, 8443, 13, 1678, 620, 28959, 353, 13563, 29889, 657, 29918, 5327, 29898, 29886, 7492, 291, 8443, 13, 1678, 6756, 13, 1678, 565, 4613, 2744, 8733, 1275, 525, 30158, 2182, 29948, 316, 495, 1553, 23086, 12658, 29877, 29973, 2396, 30004, 13, 4706, 9953, 1114, 12521, 276, 22643, 353, 5697, 15353, 30004, 13, 4706, 1020, 4983, 29889, 14968, 4197, 14856, 1114, 2744, 8733, 29892, 9953, 1114, 12521, 276, 22643, 2314, 30004, 13, 4706, 620, 28959, 353, 376, 3868, 21783, 355, 17008, 712, 10284, 4697, 294, 6571, 316, 833, 620, 27582, 6571, 1642, 4830, 29898, 14856, 1114, 2744, 8733, 29892, 9953, 1114, 12521, 276, 22643, 8443, 13, 4706, 6756, 13, 1678, 565, 5697, 15353, 1275, 525, 29909, 1039, 694, 2947, 29991, 2396, 30004, 13, 4706, 620, 28959, 353, 525, 30158, 2182, 29948, 316, 495, 1553, 23086, 12658, 29877, 17901, 30004, 13, 1678, 1683, 29901, 6756, 13, 4706, 9953, 1114, 2744, 8733, 353, 5697, 15353, 30004, 13, 4706, 6756, 13, 1678, 4613, 2744, 8733, 353, 620, 28959, 30004, 13, 1678, 6756, 13, 1678, 1596, 877, 8456, 2891, 29901, 13420, 620, 28959, 8443, 13, 15945, 19451, 13, 30004, 13, 2 ]